@xfers/design-system 5.0.0-dev.7624cd9986 → 5.0.0-dev.8da41ea20c
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/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/dist/components/Modal/DialogItems.js +41 -0
- package/dist/components/Modal/DialogItems.js.map +1 -0
- package/dist/components/Modal/index.js +29 -32
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.js +42 -0
- package/dist/components/Modal/styles.js.map +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/shared/modalContext.js +2 -2
- package/dist/shared/modalContext.js.map +1 -1
- package/dist/types/components/Modal/DialogItems.d.ts +13 -0
- package/dist/types/components/Modal/index.d.ts +9 -2
- package/dist/types/components/Modal/styles.d.ts +17 -0
- package/dist/types/index.d.ts +1 -0
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -18,5 +18,5 @@ function cr(t){return t+.5|0}const dr=(t,e,n)=>Math.max(Math.min(t,n),e);functio
|
|
|
18
18
|
* https://www.chartjs.org
|
|
19
19
|
* (c) 2022 Chart.js Contributors
|
|
20
20
|
* Released under the MIT License
|
|
21
|
-
*/var xl=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ja.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,r=o.length-1,s=!1;for(;r>=0;--r)a=o[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(o[r]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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((t,e)=>Math.max(t,e._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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const yl="transparent",vl={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Ur(t||yl),o=i.valid&&Ur(e||yl);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class _l{constructor(t,e,n,i){const o=e[n];i=_s([t.to,i,o,t.from]);const a=_s([t.from,o,i]);this._active=!0,this._fn=t.fn||vl[t.type||typeof a],this._easing=lr[t.easing]||lr.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=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=_s([t.to,e,i,t.from]),this._from=_s([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,r=this._to;let s;if(this._active=o!==r&&(a||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,r,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Zr.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 wl=Object.keys(Zr.animation);Zr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Zr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Zr.describe("animations",{_fallback:"animation"}),Zr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class kl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ta(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!ta(i))return;const o={};for(const t of wl)o[t]=i[t];(Qo(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,r);continue}d.cancel()}h&&h.duration?(o[l]=d=new _l(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(xl.add(this._chart,n),!0):void 0}}function Sl(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function El(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Ml(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let r,s,l,c;if(null!==e){for(r=0,s=o.length;r<s;++r){if(l=+o[r],l===n){if(i.all)continue;break}c=t.values[l],ea(c)&&(a||0===e||Aa(e)===Aa(c))&&(e+=c)}return e}}function Dl(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Cl(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Ol(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Tl(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:r,index:s}=i,l=a.axis,c=r.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,r,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Cl(o,d,a),u[s]=h,u._top=Ol(u,r,!0,i.type),u._bottom=Ol(u,r,!1,i.type)}}function Al(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Pl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Rl=t=>"reset"===t||"none"===t,Ll=(t,e)=>e?t:Object.assign({},t);class Il{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=Dl(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Pl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ia(n.xAxisID,Al(t,"x")),a=e.yAxisID=ia(n.yAxisID,Al(t,"y")),r=e.rAxisID=ia(n.rAxisID,Al(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,a,r),c=e.vAxisID=i(s,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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&&Za(this._data,this),t._stacked&&Pl(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(ta(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Za(n,this);const t=this._cachedMeta;Pl(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),qa.forEach(t=>{const e="_onData"+xa(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Dl(e.vScale,e),e.stack!==n.stack&&(i=!0,Pl(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Tl(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,r=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Qo(i[t])?this.parseArrayData(n,i,t,e):ta(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&Tl(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,r=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[r]:c||o.parse(l[p],p),[s]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(ga(u,r),h),y:a.parse(ga(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return Ml({keys:El(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,a=Ml(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,r=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:El(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(r);let h,u;function p(){u=i[h];const e=u[r.axis];return!ea(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],ea(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return ta(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ia(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Sl(t,n),o=Sl(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],r=this._drawStart||0,s=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,r,s),c=r;c<r+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return ws(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return ws(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,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",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,r=o[a],s=this.enableOptionSharing&&ya(n);if(r)return Ll(r,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Zr.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[a]=Object.freeze(Ll(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(a,this.getContext(t,n,e))}const l=new kl(i,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Rl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Rl(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Rl(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"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,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let r;const s=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(s(o),r=t;r<a;++r)o[r]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Pl(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nl(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Ka(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,a,r,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ya(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return s}function Fl(t,e,n,i){return Qo(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),r=Math.min(o,a),s=Math.max(o,a);let l=r,c=s;Math.abs(r)>Math.abs(s)&&(l=s,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:r,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function zl(t,e,n,i){const o=t.iScale,a=t.vScale,r=o.getLabels(),s=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(r[c],c),l.push(Fl(u,h,a,c));return l}function Bl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Yl(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Vl(d,r,s,l)]=!0,o=c)),a[Vl(o,r,s,l)]=!0,t.borderSkipped=a}function Vl(t,e,n,i){var o,a,r;return i?(r=n,t=Hl(t=(o=t)===(a=e)?r:o===r?a:o,n,e)):t=Hl(t,e,n),t}function Hl(t,e,n){return"start"===t?e:"end"===t?n:t}function Wl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Il.defaults={},Il.prototype.datasetElementType=null,Il.prototype.dataElementType=null;class Ul extends Il{parsePrimitiveData(t,e,n,i){return zl(t,e,n,i)}parseArrayData(t,e,n,i){return zl(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?r:s,c="x"===a.axis?r:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(ga(f,l),h),d.push(Fl(ga(f,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._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:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,r=Bl(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:r}}=this,s=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Jo(e[r.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[r.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||Bl(e._custom)||a===f._top||a===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const g=m.options||t[u].options;Yl(m,g,f,a),Wl(m,g,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Jo(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const r=t.barThickness;return{min:r||Nl(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,r=this.getParsed(t),s=r._custom,l=Bl(s);let c,d,h=r[e.axis],u=0,p=n?this.applyStack(e,r,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Aa(h)!==Aa(s.barEnd)&&(u=0),u+=h);const f=Jo(i)||l?u:i;let m=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Aa(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);m=Math.max(Math.min(m,r),i),c=m+d}if(m===e.getPixelForValue(a)){const t=Aa(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=ia(i.maxBarThickness,1/0);let r,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let r=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===r&&(r=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-r);const c=a-(a-Math.min(r,s))/2*l;return{chunk:Math.abs(s-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,r;return Jo(o)?(a=e.min*n.categoryPercentage,r=n.barPercentage):(a=o*i,r=1),{chunk:a/i,ratio:r,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ul.id="bar",Ul.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ul.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class jl extends Il{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+a+", "+r+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=r.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),f=u[d]=o?r.getBasePixel():r.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ia(n&&n._custom,o),i}}jl.id="bubble",jl.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},jl.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Gl extends Il{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,r=t=>+n[t];if(ta(n[t])){const{key:t="value"}=this._parsing;r=e=>+ga(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return Na(this.options.rotation-90)}_getCircumference(){return Na(this.options.circumference)}_getRotationExtents(){let t=ka,e=-ka;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(t,e,n){let i=1,o=1,a=0,r=0;if(e<ka){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>Wa(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Wa(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),g=p(Da,d,u),b=f(wa,c,h),x=f(wa+Da,d,u);i=(m-b)/2,o=(g-x)/2,a=-(m+b)/2,r=-(g+x)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:r}}(u,h,s),b=(n.width-a)/p,x=(n.height-a)/f,y=Math.max(Math.min(b,x)/2,0),v=oa(this.options.radius,y),_=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=g*v,i.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/ka)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.chartArea,s=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),g+=e,this.updateElement(n,m,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ka*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,r,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,r=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=r.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ia(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Gl.id="doughnut",Gl.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"},Gl.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Gl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Qo(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class $l extends Il{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:s}=nr(e,i,a);this._drawStart=r,this._drawCount=s,ir(e)&&(r=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,r,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=r.axis,{spanGaps:p,segment:f}=this.options,m=Ra(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=g?e:{},y=Jo(n[u]),v=x[h]=a.getPixelForValue(n[h],p),_=x[u]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[u],p);x.skip=isNaN(v)||isNaN(_)||y,x.stop=p>0&&Math.abs(n[h]-b[h])>m,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),g||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}$l.id="line",$l.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},$l.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xl extends Il{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Ns.bind(this)(t,e,n,i)}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((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*wa;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),m=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(r.animateScale&&(m=0),r.animateRotate&&(n=f=d));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Na(this.resolveDataElementOptions(t,e).angle||n):0}}Xl.id="polarArea",Xl.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ql extends Gl{}ql.id="pie",ql.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Zl extends Il{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Ns.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),s=o.getPointPositionForValue(r,this.getParsed(r).r),l=a?o.xCenter:s.x,c=a?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,d,i)}}}Zl.id="radar",Zl.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Zl.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Kl{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:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ra(this.x)&&Ra(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Kl.defaults={},Kl.defaultRoutes=void 0;const Jl={values:t=>Qo(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=Ta(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sl(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ta(t)));return 1===i||2===i||5===i?Jl.numeric.call(this,t,e,n):""}};var Ql={formatters:Jl};function tc(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,r=o[0],s=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,r=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),a++,r=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-r)/(a-1)):null;for(ec(e,l,c,Jo(i)?0:r-i,r),t=0,n=a-1;t<n;t++)ec(e,l,c,o[t],o[t+1]);return ec(e,l,c,s,Jo(i)?e.length:s+i),l}return ec(e,l,c),l}function ec(t,e,n,i,o){const a=ia(i,0),r=Math.min(ia(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}Zr.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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Ql.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Zr.route("scale.ticks","color","","color"),Zr.route("scale.grid","color","","borderColor"),Zr.route("scale.grid","borderColor","","borderColor"),Zr.route("scale.title","color","","color"),Zr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Zr.describe("scales",{_fallback:"scale"}),Zr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const nc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ic(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function oc(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,r=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>r+s)))return c}function rc(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const n=vs(t.font,e),i=ys(t.padding);return(Qo(t.text)?t.text.length:1)*n.lineHeight+i.height}function lc(t,e,n){let i=tr(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class cc extends Kl{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:n,_suggestedMax:i}=this;return t=na(t,Number.POSITIVE_INFINITY),e=na(e,Number.NEGATIVE_INFINITY),n=na(n,Number.POSITIVE_INFINITY),i=na(i,Number.NEGATIVE_INFINITY),{min:na(t,n),max:na(e,i),minDefined:ea(t),maxDefined:ea(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let s=0,l=r.length;s<l;++s)e=r[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:na(n,na(i,n)),max:na(i,na(n,i))}}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(){ra(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=oa(e,(o-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(a)),max:r(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=r<this.ticks.length;this._convertTicksToLabels(s?ic(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=tc(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ra(this.options.afterUpdate,[this])}beforeSetDimensions(){ra(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(){ra(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ra(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ra(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=ra(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){ra(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ra(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,r,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Ua(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),r=this.maxHeight-rc(t.grid)-e.padding-sc(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Fa(Math.min(Math.asin(Ua((c.highest.height+6)/a,-1,1)),Math.asin(Ua(r/s,-1,1))-Math.asin(Ua(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){ra(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ra(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=sc(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=rc(o)+a):(t.height=this.maxHeight,t.width=rc(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),s=2*n.padding,l=Na(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),r?(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,n,i){const{ticks:{align:o,padding:a},position:r}=this.options,s=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_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(){ra(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Jo(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ic(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let r,s,l,c,d,h,u,p,f,m,g,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,d=this._resolveTickFontOptions(r),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=m=0,Jo(c)||Qo(c)){if(Qo(c))for(s=0,l=c.length;s<l;++s)g=c[s],Jo(g)||Qo(g)||(f=Kr(n,u.data,u.gc,f,g),m+=p)}else f=Kr(n,u.data,u.gc,f,c),m=p;o.push(f),a.push(m),b=Math.max(f,b),x=Math.max(m,x)}!function(t,e){sa(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const y=o.indexOf(b),v=a.indexOf(x),_=t=>({width:o[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),widths:o,heights:a}}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 Ua(this._alignToPixels?Qr(this.chart,e,0):e,-32768,32767)}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 n=e[t];return n.$context||(n.$context=function(t,e,n){return ws(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ws(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Na(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,r=o.offset,s=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=rc(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Qr(n,t,u)};let m,g,b,x,y,v,_,w,k,S,E,M;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,S=f(t.top)+p,M=t.bottom;else if("bottom"===a)m=f(this.top),S=t.top,M=f(t.bottom)-p,v=m+p,w=this.top+c;else if("left"===a)m=f(this.right),y=this.right-c,_=m-p,k=f(t.left)+p,E=t.right;else if("right"===a)m=f(this.left),k=t.left,E=f(t.right)-p,y=m+p,_=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,v=m+p,w=v+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-p,_=y-c,k=t.left,E=t.right}const D=ia(i.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/D));for(g=0;g<l;g+=C){const t=o.setContext(this.getContext(g)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=oc(this,g,r),void 0!==b&&(x=Qr(n,b,e),s?y=_=k=E=x:v=w=S=M=x,d.push({tx1:y,ty1:v,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:M,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=rc(n.grid),u=h+c,p=d?-c:u,f=-Na(this.labelRotation),m=[];let g,b,x,y,v,_,w,k,S,E,M,D,C="middle";if("top"===i)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)v=(t.left+t.right)/2-u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?C="top":"end"===s&&(C="bottom"));const O=this._getLabelSizes();for(g=0,b=r.length;g<b;++g){x=r[g],y=x.label;const t=o.setContext(this.getContext(g));k=this.getPixelForTick(g)+o.labelOffset,S=this._resolveTickFontOptions(g),E=S.lineHeight,M=Qo(y)?y.length:1;const e=M/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(a?(v=k,"inner"===w&&(u=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),D="top"===i?"near"===l||0!==f?-M*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-M*E,d&&(D*=-1)):(_=k,D=(1-M)*E/2),t.showLabelBackdrop){const e=ys(t.backdropPadding),n=O.heights[g],i=O.widths[g];let o=_+D-e.top,a=v-e.left;switch(C){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:f,label:y,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:D,textAlign:u,textBaseline:C,translation:[v,_],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Na(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,r=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l+=r)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l-=r)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Qr(t,this.left,o)-o/2,l=Qr(t,this.right,a)+a/2,c=d=r):(c=Qr(t,this.top,o)-o/2,d=Qr(t,this.bottom,a)+a/2,s=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&os(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),cs(e,a,0,t.textOffset,n,t)}n&&rs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=vs(n.font),a=ys(n.padding),r=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||ta(e)?(s+=a.bottom,Qo(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:r,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const m=r-o,g=s-a;if(t.isHorizontal()){if(u=er(i,a,s),ta(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:nc(t,n,e);h=s-a}else{if(ta(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-g+e}else u="center"===n?(c.left+c.right)/2-g+e:nc(t,n,e);p=er(i,r,o),f="left"===n?-Da:Da}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,r);cs(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:lc(r,e,i),textBaseline:"middle",translation:[l,c]})}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,n=ia(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===cc.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return vs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class dc{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=ua(Object.create(null),[n?Zr.get(n):{},Zr.get(e),t.defaults]);Zr.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),r=e[n].split("."),s=r.pop(),l=r.join(".");Zr.route(a,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&Zr.describe(e,t.descriptors)}(t,a,n),this.override&&Zr.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Zr[i]&&(delete Zr[i][n],this.override&&delete Gr[n])}}var hc=new class{constructor(){this.controllers=new dc(Il,"datasets",!0),this.elements=new dc(Kl,"elements"),this.plugins=new dc(Object,"plugins"),this.scales=new dc(cc,"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,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):sa(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=xa(t);ra(n["before"+i],[],n),e[t](n),ra(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class uc extends Il{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=nr(e,n,i);if(this._drawStart=o,this._drawCount=a,ir(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:r},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=hc.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=r.axis,{spanGaps:f,segment:m}=this.options,g=Ra(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},y=Jo(n[p]),v=f[u]=a.getPixelForValue(n[u],c),_=f[p]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[p],c);f.skip=isNaN(v)||isNaN(_)||y,f.stop=c>0&&Math.abs(n[u]-x[u])>g,m&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function pc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}uc.id="scatter",uc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},uc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class fc{constructor(t){this.options=t||{}}init(t){}formats(){return pc()}parse(t,e){return pc()}format(t,e){return pc()}add(t,e,n){return pc()}diff(t,e,n){return pc()}startOf(t,e,n){return pc()}endOf(t,e){return pc()}}fc.override=function(t){Object.assign(fc.prototype,t)};var mc={_date:fc};function gc(t,e,n,i){const{controller:o,data:a,_sorted:r}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&r&&a.length){const t=s._reversePixels?Xa:$a;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),r=t(a,e,n+o);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function xc(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=gc(a[t],e,r,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function yc(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return xc(t,n,e,function(n,r,s){(o||is(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:r,index:s})},!0),a}function vc(t,e,n,i,o,a){let r=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return xc(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!a||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(r=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:n,datasetIndex:c,index:d})}),r}function _c(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?vc(t,e,n,i,o,a):function(t,e,n,i){let o=[];return xc(t,n,e,function(t,n,a){const{startAngle:r,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ba(t,{x:e.x,y:e.y});Wa(l,r,s)&&o.push({element:t,datasetIndex:n,index:a})}),o}(t,e,n,o):[]}function wc(t,e,n,i,o){const a=[],r="x"===n?"inXRange":"inYRange";let s=!1;return xc(t,n,e,(t,i,l)=>{t[r](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:a}var kc={evaluateInteractionItems:xc,modes:{index(t,e,n,i){const o=Zs(e,t),a=n.axis||"x",r=n.includeInvisible||!1,s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;let s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>yc(t,Zs(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;return _c(t,o,a,n.intersect,i,r)},x:(t,e,n,i)=>wc(t,Zs(e,t),"x",n.intersect,i),y:(t,e,n,i)=>wc(t,Zs(e,t),"y",n.intersect,i)}};const Sc=["left","top","right","bottom"];function Ec(t,e){return t.filter(t=>t.pos===e)}function Mc(t,e){return t.filter(t=>-1===Sc.indexOf(t.pos)&&t.box.axis===e)}function Dc(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Cc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!Sc.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,r,s;for(a=0,r=t.length;a<r;++a){s=t[a];const{fullSize:r}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:r&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:r&&e.availableHeight)}return n}function Oc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Tc(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ac(t,e,n,i){const{pos:o,box:a}=n,r=t.maxPadding;if(!ta(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Tc(r,a.getPadding());const s=Math.max(0,e.outerWidth-Oc(r,t,"left","right")),l=Math.max(0,e.outerHeight-Oc(r,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Pc(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Rc(t,e,n,i){const o=[];let a,r,s,l,c,d;for(a=0,r=t.length,c=0;a<r;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Pc(s.horizontal,e));const{same:r,other:h}=Ac(e,n,s,i);c|=r&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Rc(o,e,n,i)||d}function Lc(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ic(t,e,n,i){const o=n.padding;let{x:a,y:r}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,a=l.size||t.height;ya(l.start)&&(r=l.start),t.fullSize?Lc(t,o.left,r,n.outerWidth-o.right-o.left,a):Lc(t,e.left+l.placed,r,i,a),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ya(l.start)&&(a=l.start),t.fullSize?Lc(t,a,o.top,r,n.outerHeight-o.bottom-o.top):Lc(t,a,e.top+l.placed,r,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=r}Zr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Nc={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=ys(t.options.layout.padding),a=Math.max(e-o.width,0),r=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,a,r,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:r,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:r&&a+r,stackWeight:s});return e}(t),n=Dc(e.filter(t=>t.box.fullSize),!0),i=Dc(Ec(e,"left"),!0),o=Dc(Ec(e,"right")),a=Dc(Ec(e,"top"),!0),r=Dc(Ec(e,"bottom")),s=Mc(e,"x"),l=Mc(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(r).concat(s),chartArea:Ec(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(r).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;sa(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),u=Object.assign({},o);Tc(u,ys(i));const p=Object.assign({maxPadding:u,w:a,h:r,x:o.left,y:o.top},o),f=Cc(l.concat(c),h);Rc(s.fullSize,p,h,f),Rc(l,p,h,f),Rc(c,p,h,f)&&Rc(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ic(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ic(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},sa(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Fc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class zc extends Fc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bc="$chartjs",Yc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vc=t=>null===t||""===t;const Hc=!!tl&&{passive:!0};function Wc(t,e,n){t.canvas.removeEventListener(e,n,Hc)}function Uc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function jc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.addedNodes,i),e=e&&!Uc(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Gc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.removedNodes,i),e=e&&!Uc(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const $c=new Map;let Xc=0;function qc(){const t=window.devicePixelRatio;t!==Xc&&(Xc=t,$c.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Zc(t,e,n){const i=t.canvas,o=i&&js(i);if(!o)return;const a=Qa((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),r=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)});return r.observe(o),function(t,e){$c.size||window.addEventListener("resize",qc),$c.set(t,e)}(t,a),r}function Kc(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){$c.delete(t),$c.size||window.removeEventListener("resize",qc)}(t)}function Jc(t,e,n){const i=t.canvas,o=Qa(e=>{null!==t.ctx&&n(function(t,e){const n=Yc[t.type]||t.type,{x:i,y:o}=Zs(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Hc)}(i,e,o),o}class Qc extends Fc{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Bc]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vc(o)){const e=el(t,"width");void 0!==e&&(t.width=e)}if(Vc(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=el(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Bc])return!1;const n=e[Bc].initial;["height","width"].forEach(t=>{const i=n[t];Jo(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Bc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:jc,detach:Gc,resize:Zc}[e]||Jc;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Kc,detach:Kc,resize:Kc}[e]||Wc)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Js(t,e,n,i)}isAttached(t){const e=js(t);return!(!e||!e.isConnected)}}class td{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===ra(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Jo(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 n=t&&t.config,i=ia(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(hc.plugins.items);for(let t=0;t<i.length;t++)n.push(hc.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],r=t.getContext();for(const s of e){const e=s.id,l=ed(i[e],o);null!==l&&a.push({plugin:s,options:nd(t.config,{plugin:s,local:n[e]},l,r)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function ed(t,e){return e||!1!==t?!0===t?{}:t:null}function nd(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(i,a);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function id(t,e){const n=Zr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function od(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function rd(t){const e=t.options||(t.options={});e.plugins=ia(e.plugins,{}),e.scales=function(t,e){const n=Gr[t.type]||{scales:{}},i=e.scales||{},o=id(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!ta(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=od(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||t,r[t]=pa(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||id(o,e),l=(Gr[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),pa(r[o],[{axis:e},i[o],l[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];pa(e,[Zr.scales[e.type],Zr.scale])}),r}(t,e)}function sd(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ld=new Map,cd=new Set;function dd(t,e){let n=ld.get(t);return n||(n=e(),ld.set(t,n),cd.add(n)),n}const hd=(t,e,n)=>{const i=ga(e,n);void 0!==i&&t.add(i)};class ud{constructor(t){this._config=function(t){return(t=t||{}).data=sd(t.data),rd(t),t}(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=sd(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(),rd(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return dd(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return dd(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return dd(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return dd(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),r=a.get(e);if(r)return r;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>hd(s,t,e))),e.forEach(t=>hd(s,i,t)),e.forEach(t=>hd(s,Gr[o]||{},t)),e.forEach(t=>hd(s,Zr,t)),e.forEach(t=>hd(s,$r,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),cd.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Gr[e]||{},Zr.datasets[e]||{},{type:e},Zr,$r]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=pd(this._resolverCache,t,i);let s=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=Es(t);for(const o of e){const e=n(o),a=i(o),r=(a||e)&&t[o];if(e&&(va(r)||fd(r))||a&&Qo(r))return!0}return!1}(a,e)){o.$shared=!1;s=Ss(a,n=va(n)?n():n,this.createResolver(t,n,r))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=pd(this._resolverCache,t,n);return ta(e)?Ss(o,e,void 0,i):o}}function pd(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:ks(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,a)}return a}const fd=t=>ta(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||va(t[n]),!1);const md=["top","bottom","left","right","chartArea"];function gd(t,e){return"top"===t||"bottom"===t||-1===md.indexOf(t)&&"x"===e}function xd(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function yd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ra(n&&n.onComplete,[t],e)}function vd(t){const e=t.chart,n=e.options.animation;ra(n&&n.onProgress,[t],e)}function _d(t){return Us()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wd={},kd=t=>{const e=_d(t);return Object.values(wd).filter(t=>t.canvas===e).pop()};function Sd(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class Ed{constructor(t,e){const n=this.config=new ud(e),i=_d(t),o=kd(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Us()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zc:Qc}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,a.aspectRatio),s=r&&r.canvas,l=s&&s.height,c=s&&s.width;this.id=Ko(),this.ctx=r,this.canvas=s,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new td,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],wd[this.id]=this,r&&s?(xl.listen(this,"complete",yd),xl.listen(this,"progress",vd),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return Jo(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(t,e){xl.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),ra(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){sa(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=od(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}}))),sa(o,e=>{const o=e.options,a=o.id,r=od(a,o),s=ia(o.type,e.dtype);void 0!==o.position&&gd(o.position,r)===gd(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(hc.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),sa(i,(t,e)=>{t||delete n[e]}),sa(n,t=>{Nc.configure(this,t,t.options),Nc.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(xd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||id(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=hc.getController(a),{datasetElementType:i,dataElementType:r}=Zr.datasets[a];Object.assign(e.prototype,{dataElementType:hc.getElement(r),datasetElementType:i&&hc.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){sa(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||sa(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(xd("z","_idx"));const{_active:r,_lastEvent:s}=this;s?this._eventHandler(s,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){sa(this.scales,t=>{Nc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);_a(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){Sd(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!_a(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Nc.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],sa(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,va(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xl.has(this)?this.attached&&!xl.running(this)&&xl.start(this):(this.draw(),yd({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))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,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))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,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&os(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&rs(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return is(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=kc.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=ws(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);ya(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i: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(),xl.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(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete wd[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};sa(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){sa(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},sa(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,r,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),r=0,s=t.length;r<s;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!la(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),a=o(e,t),r=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,r=this._getActiveElements(t,i,n,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,ra(o.onHover,[t,r,this],this),s&&ra(o.onClick,[t,r,this],this));const c=!la(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const Md=()=>sa(Ed.instances,t=>t._plugins.invalidate()),Dd=!0;function Cd(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:r,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,r,s,i-c,n+c),l>o?(c=o/l,t.arc(a,r,l,n+c,i-c,!0)):t.arc(a,r,o,n+Da,i-Da),t.closePath(),t.clip()}function Od(t,e,n,i){const o=gs(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-e)/2,r=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return Ua(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Ua(o.innerStart,0,r),innerEnd:Ua(o.innerEnd,0,r)}}function Td(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ad(t,e,n,i,o,a){const{x:r,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const m=(f-Math.max(.001,f*h-n/wa)/h)/2,g=l+m+p,b=o-m-p,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:_}=Od(e,u,h,b-g),w=h-x,k=h-y,S=g+x/w,E=b-y/k,M=u+v,D=u+_,C=g+v/M,O=b-_/D;if(t.beginPath(),a){if(t.arc(r,s,h,S,E),y>0){const e=Td(k,E,r,s);t.arc(e.x,e.y,y,E,b+Da)}const e=Td(D,b,r,s);if(t.lineTo(e.x,e.y),_>0){const e=Td(D,O,r,s);t.arc(e.x,e.y,_,b+Da,O+Math.PI)}if(t.arc(r,s,u,b-_/u,g+v/u,!0),v>0){const e=Td(M,C,r,s);t.arc(e.x,e.y,v,C+Math.PI,g-Da)}const n=Td(w,g,r,s);if(t.lineTo(n.x,n.y),x>0){const e=Td(w,S,r,s);t.arc(e.x,e.y,x,g-Da,S)}}else{t.moveTo(r,s);const e=Math.cos(S)*h+r,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+r,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function Pd(t,e,n,i,o,a){const{options:r}=e,{borderWidth:s,borderJoinStyle:l}=r,c="inner"===r.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:r,fullCircles:s}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(n&&Cd(t,e,a+ka),t.beginPath(),t.arc(i,o,c,a+ka,a,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+ka),d=0;d<s;++d)t.stroke()}(t,e,c),c&&Cd(t,e,o),Ad(t,e,n,i,o,a),t.stroke())}Object.defineProperties(Ed,{defaults:{enumerable:Dd,value:Zr},instances:{enumerable:Dd,value:wd},overrides:{enumerable:Dd,value:Gr},registry:{enumerable:Dd,value:hc},version:{enumerable:Dd,value:"3.9.1"},getChart:{enumerable:Dd,value:kd},register:{enumerable:Dd,value:(...t)=>{hc.add(...t),Md()}},unregister:{enumerable:Dd,value:(...t)=>{hc.remove(...t),Md()}}});class Rd extends Kl{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Ba(i,{x:t,y:e}),{startAngle:r,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ia(d,s-r)>=ka||Wa(o,r,s),p=ja(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(a+r+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ka?Math.floor(n/ka):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=wa&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:a,startAngle:r,circumference:s}=e;let l=e.endAngle;if(a){Ad(t,e,n,i,r+ka,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=r+s%ka,s%ka===0&&(l+=ka))}return Ad(t,e,n,i,l,o),t.fill(),l}(t,this,r,o,a);Pd(t,this,r,o,s,a),t.restore()}}function Ld(t,e,n=e){t.lineCap=ia(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ia(n.borderDash,e.borderDash)),t.lineDashOffset=ia(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ia(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ia(n.borderWidth,e.borderWidth),t.strokeStyle=ia(n.borderColor,e.borderColor)}function Id(t,e,n){t.lineTo(n.x,n.y)}function Nd(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:r,end:s}=e,l=Math.max(o,r),c=Math.min(a,s),d=o<r&&a<r||o>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Fd(t,e,n,i){const{points:o,options:a}=e,{count:r,start:s,loop:l,ilen:c}=Nd(o,n,i),d=function(t){return t.stepped?ss:t.tension||"monotone"===t.cubicInterpolationMode?ls:Id}(a);let h,u,p,{move:f=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(s+(m?c-h:h))%r],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,m,a.stepped),p=u);return l&&(u=o[(s+(m?c:0))%r],d(t,p,u,m,a.stepped)),!!l}function zd(t,e,n,i){const o=e.points,{count:a,start:r,ilen:s}=Nd(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,m,g=0,b=0;const x=t=>(r+(c?s-t:t))%a,y=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),g=(b*g+e)/++b):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),m=n}y()}function Bd(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?zd:Fd}Rd.id="arc",Rd.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Rd.defaultRoutes={backgroundColor:"backgroundColor"};const Yd="function"==typeof Path2D;function Vd(t,e,n,i){Yd&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Ld(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,r=Bd(e);for(const s of o)Ld(t,a,s.style),t.beginPath(),r(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Hd extends Kl{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ws(this._points,n,t,i,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=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:r,end:s}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return ml(t,!0===i?[{start:r,end:s,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let r,s=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(r-1)%o,loop:i}),e=s=n.stop?r:null):(s=r,l.skip&&(e=r)),l=n}return null!==s&&a.push({start:e%o,end:s%o,loop:i}),a}(n,r,s<r?s+o:s,!!t._fullLoop&&0===r&&s===o-1),n,e)}(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,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=fl(this,{property:e,start:i,end:i});if(!a.length)return;const r=[],s=function(t){return t.stepped?il:t.tension||"monotone"===t.cubicInterpolationMode?ol:nl}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){r.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Bd(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Bd(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Vd(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wd(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Hd.id="line",Hd.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Hd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Hd.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ud extends Kl{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,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Wd(this,t,"x",e)}inYRange(t,e){return Wd(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!is(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,es(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function jd(t,e){const{x:n,y:i,base:o,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=r/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Gd(t,e,n,i){return t?0:Ua(e,n,i)}function $d(t){const e=jd(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=bs(i);return{t:Gd(o.top,a.top,0,n),r:Gd(o.right,a.right,0,e),b:Gd(o.bottom,a.bottom,0,n),l:Gd(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=xs(o),r=Math.min(e,n),s=t.borderSkipped,l=i||ta(o);return{topLeft:Gd(!l||s.top||s.left,a.topLeft,0,r),topRight:Gd(!l||s.top||s.right,a.topRight,0,r),bottomLeft:Gd(!l||s.bottom||s.left,a.bottomLeft,0,r),bottomRight:Gd(!l||s.bottom||s.right,a.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Xd(t,e,n,i){const o=null===e,a=null===n,r=t&&!(o&&a)&&jd(t,i);return r&&(o||ja(e,r.left,r.right))&&(a||ja(n,r.top,r.bottom))}function qd(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zd(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+r,radius:t.radius}}Ud.id="point",Ud.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ud.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kd extends Kl{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:n,backgroundColor:i}}=this,{inner:o,outer:a}=$d(this),r=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?hs:qd;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Zd(a,e,o)),t.clip(),r(t,Zd(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Zd(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Xd(this,t,e,n)}inXRange(t,e){return Xd(this,t,null,e)}inYRange(t,e){return Xd(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Jd(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=Ha(o),a=Ha(a)),{property:t,start:o,end:a}}function Qd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function th(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function eh(t,e){let n=[],i=!1;return Qo(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Qd(t,e,o);const r=o[t],s=o[e];null!==i?(a.push({x:r.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:r.y}),a.push({x:n,y:s.y}))}),a}(t,e),n.length?new Hd({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function nh(t){return t&&!1!==t.fill}function ih(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ea(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function oh(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ia(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(ta(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ea(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function rh(t,e,n){const i=[];for(let o=0;o<n.length;o++){const a=n[o],{first:r,last:s,point:l}=sh(a,e,"x");if(!(!l||r&&s))if(r)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function sh(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,r=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=r[e.start][n],c=r[e.end][n];if(ja(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Kd.id="bar",Kd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class lh{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:ka},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function ch(t){const{chart:e,fill:n,line:i}=t;if(ea(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],a=i.segments,r=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(eh({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)rh(o,r[t],s)}return new Hd({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,r=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:ta(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new lh({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,r));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:ta(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ea(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof lh?o:eh(o,i)}function dh(t,e,n){const i=ch(e),{line:o,scale:a,axis:r}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(os(t,n),function(t,e){const{line:n,target:i,above:o,below:a,area:r,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==o&&(hh(t,i,r.top),uh(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),hh(t,i,r.bottom));uh(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:a,axis:r}),rs(t))}function hh(t,e,n){const{segments:i,points:o}=e;let a=!0,r=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Qd(i,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,s,{move:r}),r?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function uh(t,e){const{line:n,target:i,property:o,color:a,scale:r}=e,s=function(t,e,n){const i=t.segments,o=t.points,a=e.points,r=[];for(const t of i){let{start:i,end:s}=t;s=Qd(i,s,o);const l=Jd(n,o[i],o[s],t.loop);if(!e.segments){r.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=fl(e,l);for(const e of c){const i=Jd(n,a[e.start],a[e.end],e.loop),s=pl(t,o,i);for(const t of s)r.push({source:t,target:e,start:{[n]:th(l,i,"start",Math.max)},end:{[n]:th(l,i,"end",Math.min)}})}}return r}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ph(t,r,h&&Jd(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():fh(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||fh(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ph(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:a,start:r,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(r,i,s-r,o-i),t.clip())}function fh(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var mh={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let a,r,s,l;for(r=0;r<i;++r)a=t.getDatasetMeta(r),s=a.dataset,l=null,s&&s.options&&s instanceof Hd&&(l={visible:t.isDatasetVisible(r),index:r,fill:oh(s,r,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,o.push(l);for(r=0;r<i;++r)l=o[r],l&&!1!==l.fill&&(l.fill=ih(o,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&dh(t.ctx,n,a))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;nh(n)&&dh(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;nh(i)&&"beforeDatasetDraw"===n.drawTime&&dh(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const gh=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class bh extends Kl{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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=ra(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=vs(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:s}=gh(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,s)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+r;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*r>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+r}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,a)=>{const m=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),s[a]={left:p,top:u,col:f,width:m,height:i},h=Math.max(h,m),u+=i+r}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=ll(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=er(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,r=er(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(r),s.width),r+=s.width+i}else{let o=0,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=r,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),r+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;os(t,this),this._draw(),rs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,r=Zr.color,s=ll(t.rtl,this.left,this.width),l=vs(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=gh(a,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:er(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:er(o,this.top+x+d,this.bottom-e[0].height),line:0},cl(this.ctx,t.textDirection);const y=g+d;this.legendItems.forEach((v,_)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const w=i.measureText(v.text).width,k=s.textAlign(v.textAlign||(v.textAlign=a.textAlign)),S=f+u+w;let E=p.x,M=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(M=p.y+=y,p.line++,E=p.x=er(o,this.left+d,this.right-n[p.line])):_>0&&M+y>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,M=p.y=er(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;i.save();const o=ia(n.lineWidth,1);if(i.fillStyle=ia(n.fillStyle,r),i.lineCap=ia(n.lineCap,"butt"),i.lineDashOffset=ia(n.lineDashOffset,0),i.lineJoin=ia(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ia(n.strokeStyle,r),i.setLineDash(ia(n.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);ns(i,r,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((h-m)/2,0),r=s.leftForLtr(t,f),l=xs(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?hs(i,{x:r,y:a,w:f,h:m,radius:l}):i.rect(r,a,f,m),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),M,v),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,E+f+u,b?E+S:this.right,t.rtl),function(t,e,n){cs(i,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),M,v),b?p.x+=S+d:p.y+=y}),dl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=vs(e.font),i=ys(e.padding);if(!e.display)return;const o=ll(t.rtl,this.left,this.width),a=this.ctx,r=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=er(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+er(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=er(r,d,d+h);a.textAlign=o.textAlign(tr(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,cs(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=vs(t.font),n=ys(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(ja(t,this.left,this.right)&&ja(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ja(t,i.left,i.left+i.width)&&ja(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,n);i&&!o&&ra(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&ra(e.onHover,[t,n,this],this)}else n&&ra(e.onClick,[t,n,this],this)}}var xh={id:"legend",_element:bh,start(t,e,n){const i=t.legend=new bh({ctx:t.ctx,options:n,chart:t});Nc.configure(t,i,n),Nc.addBox(t,i)},stop(t){Nc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Nc.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(n?0:void 0),s=ys(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:r.borderColor,pointStyle:i||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const yh={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Ya(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function vh(t,e){return e&&(Qo(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function _h(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wh(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:r,value:s}=a.getLabelAndValue(o);return{chart:t,label:r,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function kh(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:r,boxHeight:s}=e,l=vs(e.bodyFont),c=vs(e.titleFont),d=vs(e.footerFont),h=a.length,u=o.length,p=i.length,f=ys(e.padding);let m=f.height,g=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){g=Math.max(g,n.measureText(t).width+x)};return n.save(),n.font=c.string,sa(t.title,y),n.font=l.string,sa(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,sa(i,t=>{sa(t.before,y),sa(t.lines,y),sa(t.after,y)}),x=0,n.font=d.string,sa(t.footer,y),n.restore(),g+=f.width,{width:g,height:m}}function Sh(t,e,n,i){const{x:o,width:a}=n,{width:r,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=r-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,r=n.caretSize+n.caretPadding;return"left"===t&&o+a+r>e.width||"right"===t&&o-a-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Eh(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Sh(t,e,n,i),yAlign:i}}function Mh(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:s,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(r);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Ua(f,0,i.width-e.width),y:Ua(m,0,i.height-e.height)}}function Dh(t,e,n){const i=ys(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ch(t){return vh([],_h(t))}function Oh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Th extends Kl{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,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new kl(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,ws(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}getBeforeBody(t,e){return Ch(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return sa(t,t=>{const e={before:[],lines:[],after:[]},o=Oh(n,t);vh(e.before,_h(o.beforeLabel.call(this,t))),vh(e.lines,o.label.call(this,t)),vh(e.after,_h(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ch(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let r,s,l=[];for(r=0,s=e.length;r<s;++r)l.push(wh(this.chart,e[r]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),sa(l,e=>{const n=Oh(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=yh[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=kh(this,n),r=Object.assign({},t,e),s=Eh(this.chart,n,r),l=Mh(n,r,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:r}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=xs(r),{x:h,y:u}=t,{width:p,height:f}=e;let m,g,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(m=h,g=m-a,x=y+a,v=y-a):(m=h+p,g=m+a,x=y-a,v=y+a),b=m):(g="left"===i?h+Math.max(s,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(x=u,y=x-a,m=g-a,b=g+a):(x=u+f,y=x+a,m=g+a,b=g-a),v=x),{x1:m,x2:g,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,r,s;if(o){const l=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=vs(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,s+1===o&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=vs(o.bodyFont),h=Dh(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,es(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,es(t,e,n,c)}else{t.lineWidth=ta(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),r=xs(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,hs(t,{x:e,y:f,w:l,h:s,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),hs(t,{x:n,y:f+1,w:l-2,h:s-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=a.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=vs(n.bodyFont);let h=d.lineHeight,u=0;const p=ll(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},m=p.textAlign(a);let g,b,x,y,v,_,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Dh(this,m,n),e.fillStyle=n.bodyColor,sa(this.beforeBody,f),u=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(g=i[y],b=this.labelTextColors[y],e.fillStyle=b,sa(g.before,f),x=g.lines,r&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,w=x.length;v<w;++v)f(x[v]),h=d.lineHeight;sa(g.after,f)}u=0,h=d.lineHeight,sa(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,r;if(o){const s=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=vs(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:r,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+d,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+l-h,s),e.quadraticCurveTo(r+l,s,r+l,s+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l,s+c-p),e.quadraticCurveTo(r+l,s+c,r+l-p,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+u,s+c),e.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(r,s+d),e.quadraticCurveTo(r,s,r+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=yh[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=kh(this,t),r=Object.assign({},n,this._size),s=Eh(e,t,r),l=Mh(t,r,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=ys(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),cl(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),dl(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!la(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),r=this._positionChanged(a,t),s=e||!la(a,o)||r;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=yh[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Th.positioners=yh;var Ah={id:"tooltip",_element:Th,positioners:yh,afterInit(t,e,n){n&&(t.tooltip=new Th({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:Zo,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:Zo,beforeBody:Zo,beforeLabel:Zo,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Jo(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.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(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Zo,afterBody:Zo,beforeFooter:Zo,footer:Zo,afterFooter:Zo}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ph(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class Rh extends cc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Jo(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ua(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Ph(n,t,ia(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}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"number"!=typeof t&&(t=this.parse(t)),null===t?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}}function Lh(t,e){const n=[],{bounds:i,step:o,min:a,max:r,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:m}=e,g=!Jo(a),b=!Jo(r),x=!Jo(l),y=(m-f)/(d+1);let v,_,w,k,S=Pa((m-f)/p/u)*u;if(S<1e-14&&!g&&!b)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=Pa(k*S/p/u)*u),Jo(s)||(v=Math.pow(10,s),S=Math.ceil(S*v)/v),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(_=f,w=m),g&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,_=a,w=r):x?(_=g?a:_,w=b?r:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=La(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(za(S),za(_));v=Math.pow(10,Jo(s)?E:s),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let M=0;for(g&&(h&&_!==a?(n.push({value:a}),_<a&&M++,La(Math.round((_+M*S)*v)/v,a,Ih(a,y,t))&&M++):_<a&&M++);M<k;++M)n.push({value:Math.round((_+M*S)*v)/v});return b&&h&&w!==r?n.length&&La(n[n.length-1].value,r,Ih(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&w!==r||n.push({value:w}),n}function Ih(t,e,{horizontal:n,minRotation:i}){const o=Na(i),a=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Rh.id="category",Rh.defaults={ticks:{callback:Rh.prototype.getLabelForValue}};class Nh extends cc{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 Jo(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,r=t=>o=n?o:t;if(t){const t=Aa(i),e=Aa(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Lh({maxTicks:n,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:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Ia(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return sl(t,this.chart.options.locale,this.options.ticks.format)}}class Fh extends Nh{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?t:0,this.max=ea(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Na(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function zh(t){return 1===t/Math.pow(10,Math.floor(Ta(t)))}Fh.id="linear",Fh.defaults={ticks:{callback:Ql.formatters.numeric}};class Bh extends cc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Nh.prototype.parse.apply(this,[t,e]);if(0!==n)return ea(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?Math.max(0,t):null,this.max=ea(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(Ta(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(r(n,-1)),a(r(i,1)))),n<=0&&o(r(i,-1)),i<=0&&a(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&o(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ta(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=na(t.min,Math.pow(10,Math.floor(Ta(e.min)))),r=Math.floor(Ta(a)),s=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:zh(a)}),++s,10===s&&(s=1,++r,l=r>=0?1:l),a=Math.round(s*Math.pow(10,r)*l)/l}while(r<n||r===n&&s<i);const c=na(t.max,a);return o.push({value:c,major:zh(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ia(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":sl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ta(t),this._valueRange=Ta(this.max)-Ta(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ta(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Yh(t){const e=t.ticks;if(e.display&&t.display){const t=ys(e.backdropPadding);return ia(e.font&&e.font.size,Zr.font.size)+t.height}return 0}function Vh(t,e,n){return n=Qo(n)?n:[n],{w:Jr(t,e.string,n),h:n.length*e.lineHeight}}function Hh(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Wh(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,s=r.centerPointLabels?wa/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));o[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=vs(a.font),h=Vh(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Ha(t.getIndexAngle(l)+s),p=Math.round(Fa(u));Uh(n,e,u,Hh(p,c.x,h.w,0,180),Hh(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,r=Yh(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?wa/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,s+r+n[a],l),c=Math.round(Fa(Ha(o.angle+Da))),d=e[a],h=$h(o.y,d.h,c),u=jh(c),p=Gh(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Uh(t,e,n,i,o){const a=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/r,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function jh(t){return 0===t||180===t?"center":t<180?"left":"right"}function Gh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function $h(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xh(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,ka);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}Bh.id="logarithmic",Bh.defaults={ticks:{callback:Ql.formatters.logarithmic,major:{enabled:!0}}};class qh extends Nh{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=ys(Yh(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ea(t)&&!isNaN(t)?t:0,this.max=ea(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yh(this.options))}generateTickLabels(t){Nh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=ra(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Wh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Ha(t*(ka/(this._pointLabels.length||1))+Na(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Jo(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(Jo(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 n=e[t];return function(t,e,n){return ws(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Da+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Xh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,r,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=vs(e.font),{x:r,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Jo(p)){const t=xs(e.borderRadius),i=ys(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,r=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),hs(n,{x:o,y:a,w:r,h:s,radius:t}),n.fill()):n.fillRect(o,a,r,s)}cs(n,t._pointLabels[o],r,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,a=e.circular,{color:r,lineWidth:s}=e;!a&&!i||!r||!s||n<0||(o.save(),o.strokeStyle=r,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Xh(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),r,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,r)=>{if(0===r&&!e.reverse)return;const s=n.setContext(this.getContext(r)),l=vs(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=ys(s.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}cs(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}qh.id="radialLinear",qh.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ql.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},qh.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},qh.descriptors={angleLines:{_fallback:"grid"}};const Zh={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}},Kh=Object.keys(Zh);function Jh(t,e){return t-e}function Qh(t,e){if(Jo(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),ea(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(o&&(r="week"!==o||!Ra(a)&&!0!==a?n.startOf(r,o):n.startOf(r,"isoWeek",a)),+r)}function tu(t,e,n,i){const o=Kh.length;for(let a=Kh.indexOf(t);a<o-1;++a){const t=Zh[Kh[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Kh[a]}return Kh[o-1]}function eu(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Ga(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function nu(t,e,n){const i=[],o={},a=e.length;let r,s;for(r=0;r<a;++r)s=e[r],o[s]=r,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),r=e[e.length-1].value;let s,l;for(s=a;s<=r;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class iu extends cc{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 n=t.time||(t.time={}),i=this._adapter=new mc._date(t.adapters.date);i.init(e),pa(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Qh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ea(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ea(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?tu(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=Kh.length-1;a>=Kh.indexOf(n);a--){const n=Kh[a];if(Zh[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Kh[n?Kh.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Kh.indexOf(t)+1,n=Kh.length;e<n;++e)if(Zh[Kh[e]].common)return Kh[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),nu(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=Ua(i,0,a),o=Ua(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||tu(o.minUnit,e,n,this._getLabelCapacity(e)),r=ia(o.stepSize,1),s="week"===a&&o.isoWeekday,l=Ra(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,r,a),h++)eu(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||eu(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,r=this._unit,s=this._majorUnit,l=r&&a[r],c=s&&a[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?ra(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Na(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*o+r*a,h:n*a+r*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,nu(this,[t],this._majorUnit),i),a=this._getLabelSize(o),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Qh(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ka(t.sort(Jh))}}function ou(t,e,n){let i,o,a,r,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=$a(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:o,time:r}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=$a(t,"time",e)),({time:i,pos:a}=t[s]),({time:o,pos:r}=t[l]));const c=o-i;return c?a+(r-a)*(e-i)/c:a}iu.id="time",iu.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ru extends iu{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=ou(e,this.min),this._tableRange=ou(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,r,s,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,r=i.length;a<r;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&o.push({time:l,pos:a/(r-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(ou(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ou(this._table,n*this._tableRange+this._minPos,!0)}}ru.id="timeseries",ru.defaults=iu.defaults;const su="label";function lu(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function cu(t,e){t.labels=e}function du(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:su;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function hu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su;const n={labels:[],datasets:[]};return cu(n,t.labels),du(n,t.datasets,e),n}function uu(t,e){let{height:n=150,width:i=300,redraw:o=!1,datasetIdKey:a,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=t;const p=lt(null),f=lt(),m=()=>{p.current&&(f.current=new Ed(p.current,{type:r,data:hu(s,a),options:l&&{...l},plugins:c}),lu(e,f.current))},g=()=>{lu(e,null),f.current&&(f.current.destroy(),f.current=null)};return ct(()=>{var t,e;!o&&f.current&&l&&(t=f.current,e=l,Object.assign(t.options,e))},[o,l]),ct(()=>{!o&&f.current&&cu(f.current.config.data,s.labels)},[o,s.labels]),ct(()=>{!o&&f.current&&s.datasets&&du(f.current.config.data,s.datasets,a)},[o,s.datasets]),ct(()=>{f.current&&(o?(g(),setTimeout(m)):f.current.update(h))},[o,l,s.labels,s.datasets,h]),ct(()=>{f.current&&(g(),setTimeout(m))},[r]),ct(()=>(m(),()=>g()),[]),tt.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:i},u),d)}const pu=nt(uu);Ed.register(Rh,Fh,Ud,Hd,$l,Ah,xh,mh);var fu=function(t){var e=t.xValues,n=t.yValues,i=t.dataPrefix,o=t.dataPostfix,a=t.straitsXStyle,r=t.height,s=void 0===r?40:r,l=lt(null),c=st({datasets:[]}),d=c[0],h=c[1],u={labels:e,datasets:[{data:n}]},p=i||"",f=o||"";ct(function(){var t=l.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Wt(Wt({},u),{datasets:u.datasets.map(function(t){return Wt(Wt({},t),{backgroundColor:a?i:n,fill:!0,borderColor:a?"#00D37E":"#2E8DEE",pointRadius:0})})});h(o)}},[a,e,n]);var m={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:a?1:0,backgroundColor:a?"#ffffff":"#000000",titleColor:a?"#1B2736":"#fff",bodyColor:a?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return a?"".concat(p).concat(t[0].parsed.y).concat(f):t[0].label},label:function(t){return a?t.label:"".concat(p).concat(t.parsed.y).concat(f)}}}},scales:{x:{ticks:{color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(p).concat(t).concat(f)}},grid:{display:!1,drawBorder:!1}}}};return tt.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},tt.createElement(pu,{id:"chart",ref:l,type:"line",data:d,options:m}))};function mu(t){var e=t.children,n=t.activeKey,i=t.width,o=void 0===i?250:i,a=Ht(t,["children","activeKey","width"]),r=ji().brand,s=e.map(function(t,e){return tt.createElement(mt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return tt.createElement(Su,{key:e,isActive:e===n,activeColor:r.primary.default})});return tt.createElement(_u,null,tt.createElement(wu,Wt({renderTabBar:function(){return tt.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},a),s),tt.createElement(ku,null,l))}var gu,bu,xu,yu,vu,_u=qn.div(gu||(gu=Vt(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),wu=qn(mt)(bu||(bu=Vt(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),ku=qn.span(xu||(xu=Vt(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),Su=qn.span(yu||(yu=Vt(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function Eu(t){var e=t.menu,n=t.children,i=t.type,o=void 0===i?"default":i,a=t.placement,r=void 0===a?"bottomLeft":a,s=t.className,l=void 0===s?"":s,c=t.trigger,d=void 0===c?["click"]:c,h=t.disabled,u=void 0!==h&&h,p=Ht(t,["menu","children","type","placement","className","trigger","disabled"]),f=ji(),m=f.brand,g=f.spacing,b="\n background-color: ".concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n\n &:focus {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(m.action.hover,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n "),x="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(m.action.disabledOpacity,";\n "),y=qn(gt.Button)(vu||(vu=Vt(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),bi,ki,b,!0===u&&x,g.md,bi,ki,b,!0===u&&x,g.sm);if("split"===o)return tt.createElement(y,Wt({className:l,menu:e,placement:r,trigger:d},p),n);var v=lt(null);return ct(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=v.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),tt.createElement(gt,Wt({menu:e,placement:r,trigger:d},p),tt.createElement("div",{ref:v},n))}function Mu(t){var e=t.children,n=t.placement,i=void 0===n?"bottomRight":n,o=t.overlayClassName,a=void 0===o?Ru:o,r=t.arrowPointAtCenter,s=void 0===r||r,l=t.trigger,c=void 0===l?"hover":l,d=t.color,h=t.title,u=t.content,p=t.mouseEnterDelay,f=void 0===p?0:p,m=t.mouseLeaveDelay,g=void 0===m?0:m,b=t.isNew,x=void 0!==b&&b,y=t.actionTitle,v=t.dismissTitle,_=t.maxWidth,w=t.onAction,k=t.onDismiss,S=_?{maxWidth:_}:void 0;return tt.createElement(bt,{overlayClassName:a,arrowPointAtCenter:s,trigger:c,color:d,placement:i,overlayStyle:S,title:tt.createElement(Lu,null,h&&tt.createElement(No,{style:{fontSize:Vi.P1,marginBottom:"16px",color:Li.text.white}},h,!0===x&&tt.createElement(Nu,null,"New")),u,(y||v)&&tt.createElement(Iu,null,tt.createElement(zu,{onClick:function(t){t.preventDefault(),k&&k()}},v),tt.createElement(Fu,{onClick:function(t){t.preventDefault(),w&&w()}},y))),mouseEnterDelay:f,mouseLeaveDelay:g},e)}var Du,Cu,Ou,Tu,Au,Pu,Ru=on(Du||(Du=Vt(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),fi,Vi.P1,Yi.REGULAR,Li.text.white,Li.brand.primary.contrast,hi,Li.brand.primary.contrast),Lu=qn.div(Cu||(Cu=Vt(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),Iu=qn.div(Ou||(Ou=Vt(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),Nu=qn.span(Tu||(Tu=Vt(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),zn.G400,Li.text.white,Vi.SMALL,Yi.BOLD),Fu=qn.a(Au||(Au=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.brand.action.default,Li.brand.action.hover),zu=qn.a(Pu||(Pu=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.text.white,Li.text.white);Ii('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Bu={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Yu=function(t){var e=t.icon,n=t.size,i=void 0===n?"m":n,o=t.fill,a=void 0===o?0:o,r=t.color,s=void 0===r?Vn.BLACK:r,l=t.className,c=void 0===l?"":l,d=t.style,h="string"==typeof i?Bu[i]:i,u=Wt({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:s},d);return tt.createElement("span",{className:"material-symbols-rounded ".concat(c),style:u,translate:"no"},e)},Vu={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Hu={sm:"xs",lg:"s"},Wu={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},critical:{base:Li.color.surface.subdueCritical,text:Li.color.status.critical,icon:Li.color.status.critical,border:Li.color.status.critical},warning:{base:Li.color.surface.subdueWarning,text:Li.color.status.warning,icon:Li.color.status.warning,border:Li.color.status.warning},info:{base:Li.color.surface.SubdueInfo,text:Li.color.status.info,icon:Li.color.status.info,border:Li.color.status.info},neutral:{base:Vn.G100,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}},Uu={positive:{base:Li.color.status.positive,text:Li.color.base.onContainer,icon:"",border:Li.color.status.positive},neutral:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:"",border:Li.color.base.line}},ju={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},disabled:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:Li.color.surface.disabledOnSurface,border:Li.color.base.line},neutral:{base:Li.color.surface.neutral,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}};function Gu(t,e,n){switch(e){case"outlined":default:return Wu[t][n];case"filled":return Uu[t][n];case"removable":return ju[t][n]}}function $u(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,a=t.size,r=void 0===a?"sm":a,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return tt.createElement(np,{type:e,size:r,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&tt.createElement(Yu,{icon:Vu[e],size:Hu[r],color:Gu(e,l,"icon")}),tt.createElement(dn.Body,{size:r,color:Gu(e,l,"text")},n),"removable"===l&&tt.createElement(ep,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==c||c()},type:"tertiary",icon:tt.createElement(Yu,{icon:"close",size:Hu[r],color:Gu(e,l,"icon")})}))}var Xu,qu,Zu,Ku,Ju,Qu,tp,ep=qn(eo)(Xu||(Xu=Vt(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),np=qn.div(qu||(qu=Vt(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return function(t){var e=t.type,n=t.variant,i=void 0===n?"outlined":n,o=t.size,a=void 0===o?"sm":o,r=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===a?"24px":"32px",";\n background-color: ").concat(e&&i?Gu(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Gu(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(r?"pointer":"default",";\n\n")}(t)}),ip=qn.div(Zu||(Zu=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),op=qn.div(Ku||(Ku=Vt(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),rp=qn.div(Ju||(Ju=Vt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),sp="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(Li.color.component.placeholderInput," !important;\n }\n }\n"),lp="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(Li.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(Li.color.base.onNeutral," !important;\n }\n"),cp="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(Li.color.base.onNeutral," !important;\n }\n }\n"),dp=qn(xt)(Qu||(Qu=Vt(["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"])),Li.color.surface.neutral,function(t){return function(t){var e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===t.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===t.$mode?"flex-start":"center"," !important;\n padding: ").concat(e," 16px !important;\n\n min-height: ").concat("sm"===t.$size?"36px":"48px"," !important;\n ").concat("multiple"!==t.$mode?"height: ".concat("sm"===t.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(t.disabled?Li.color.surface.disabledSurface:Li.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.color.base.line," !important;\n }\n")}(t)},function(t){return function(t){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!t.disabled&&"\n box-shadow: 0 0 0 1px ".concat(Li.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.color.base.primary2," !important;\n "),"\n }\n")}(t)},sp,function(t){return function(t){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===t.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===t.$mode?"align-content: center !important;":"","\n }\n")}(t)},lp,cp),hp="\n .rc-virtual-list-holder-inner {\n gap: 0;\n }\n .rc-virtual-list-holder {\n overflow-y: auto !important;\n }\n .ant-select-item {\n color: ".concat(Li.color.base.onNeutral," !important;\n padding: 12px !important;\n margin-bottom: 4px !important;\n }\n .ant-select-item:last-child {\n margin-bottom: 0 !important;\n }\n"),up="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(Li.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),pp="\n .ant-select-item:hover {\n background: ".concat(Li.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(Li.color.interactive.pressedSurface," !important;\n }\n"),fp="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(Li.color.surface.disabledSurface," !important;\n span { \n color: ").concat(Li.color.surface.disabledOnSurface," !important;\n }\n }\n"),mp=qn.div(tp||(tp=Vt(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),hp,up,pp,fp),gp={padding:0,paddingBottom:"4px",borderRadius:"12px"},bp={sm:"md",lg:"lg"},xp={sm:"md",lg:"lg"},yp=function(t){return tt.createElement(tt.Fragment,null,t&&tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t),tt.createElement(Yu,{icon:"keyboard_arrow_down"}))},vp=function(t,e){return e?tt.createElement(dn.Body,{size:bp[t]},e):null},_p=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return tt.createElement($u,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},wp=function(t){var e=t.children,n=t.disabled,i=void 0!==n&&n,o=t.size,a=void 0===o?"sm":o,r=t.mode,s=t.label,l=t.labelTooltip,c=t.selectRef,d=t.placeholder,h=t.error,u=void 0!==h&&h,p=t.secondaryText,f=t.helperText,m=t.options,g=Ht(t,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),b=lt(null),x=c||b;return tt.createElement(rp,null,s&&function(t,e){return t?tt.createElement(ip,null,tt.createElement(dn.Body,{size:"md"},t),e?tt.createElement(Mu,{placement:"top",title:"I'm Tooltip Component",content:e},tt.createElement("span",null,tt.createElement(Yu,{icon:"info",size:"xs"}))):null):null}(s,l),tt.createElement(dp,Wt({disabled:i,mode:r,ref:x,$size:a,$mode:r,getPopupContainer:function(){return document.body}},g,{error:u,dropdownRender:function(t){return tt.createElement(mp,{$size:a},tt.createElement(dn.Body,{size:"sm"===a?"md":"lg"},t))},dropdownStyle:gp,suffixIcon:yp(p),placeholder:vp(a,d),showArrow:!0,tagRender:_p(r,i,a),maxTagCount:999}),m?function(t,e){return t.map(function(t){var n=t.value,i=t.label,o=t.icon,a=t.disabled;return tt.createElement(xt.Option,{key:n,value:n,disabled:a},tt.createElement(op,null,o&&tt.createElement(o,{style:{width:"16px",height:"16px"}}),tt.createElement(dn.Body,{size:xp[e]},i)))})}(m,a):e),function(t){return t?tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t):null}(f))};wp.Option=xt.Option;var kp=function(t,e){var n=e.iconSrc,i=void 0===n?null:n,o=e.extraText,a=void 0===o?"":o,r=e.extraAction,s=void 0===r?function(){}:r,l=e.isAddItemBarVisible,c=void 0===l||l,d=e.topContent,h=e.bottomContent,u=e.actionContent;return tt.createElement(Op,null,d,t,u||function(t){var e=t.iconSrc,n=void 0===e?null:e,i=t.extraText,o=void 0===i?"":i,a=t.extraAction,r=void 0===a?function(){}:a,s=t.isAddItemBarVisible;return void 0===s||s?tt.createElement(Ap,{onMouseDown:function(){r()}},n?tt.createElement(Tp,{src:n}):tt.createElement(Rt,null),o):null}({iconSrc:i,extraText:a,extraAction:s,isAddItemBarVisible:c}),h)},Sp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,d=t.extraText,h=void 0===d?"":d,u=t.extraAction,p=void 0===u?function(){}:u,f=t.isAddItemBarVisible,m=void 0===f||f,g=t.topContent,b=void 0===g?null:g,x=t.bottomContent,y=void 0===x?null:x,v=t.actionContent,_=void 0===v?null:v,w=Ht(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return tt.createElement(wp,Wt({className:n,disabled:a,mode:r,label:s,dropdownRender:function(t){return kp(t,{iconSrc:c,extraText:h,extraAction:p,isAddItemBarVisible:m,topContent:b,bottomContent:y,actionContent:_})}},w),i)};Sp.Option=wp.Option;var Ep,Mp,Dp,Cp,Op=qn.div(Ep||(Ep=Vt(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),Tp=qn.img(Mp||(Mp=Vt(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),Ap=qn(Io)(Dp||(Dp=Vt(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),Pp=on(Cp||(Cp=Vt(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),io,Vi.P1,Bn.R400,Bn.R400,Bn.R400,Bn.R300,Bn.R100,Bn.R300,Bn.R100,Bn.R300,Bn.R200,Bn.R200,Bn.R100,Bn.R400,Bn.R100,Bn.R300),Rp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=Ht(t,["className","children"]);return tt.createElement(yt,Wt({className:nn(Pp,n)},o),i)};function Lp(t,e,n,i){void 0===e&&(e="large");var o=so[e],a=o.height,r=o.borderRadius,s=o.padding,l=n?t.color.status.critical:t.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(io,";\n font-size: ").concat(Vi.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(a,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(r," ").concat(r," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(r," 0 0 ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(r," ").concat(r," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(r," 0 0 ").concat(r," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n &.ant-input-group-wrapper-status-error .ant-input-group-addon,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:last-child,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(r," !important;\n border-bottom-left-radius: ").concat(r," !important;\n border-color: ").concat(t.color.base.line,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(r," !important;\n border-bottom-right-radius: ").concat(r," !important;\n border-color: ").concat(t.color.base.line,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-left: 1px solid ").concat(t.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-right: 1px solid ").concat(t.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(i?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function Ip(t){var e=t.text,n=t.error,i=ji();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return tt.createElement(dn.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function Np(t){var e=t.label,n=t.required,i=t.optional,o=t.showInfoIcon,a=t.infoText,r=t.onInfoClick,s=ji();return e?tt.createElement(zp,null,tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutral}},e,n&&tt.createElement("span",{style:{color:s.error.text,marginLeft:2}},"*")),i&&tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutralSecondary}},"Optional"),o&&a&&tt.createElement(Mu,{content:a,placement:"top"},tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))),o&&!a&&tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))):null}Rp.Item=function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]);return tt.createElement(yt.Item,Wt({className:nn(Pp,n)},i))},Rp.useForm=yt.useForm;var Fp,zp=qn.div(Fp||(Fp=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),Bp=function(t){var e=t.addonBefore,n=t.addonAfter,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.disabledAddon,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.label,u=t.required,p=t.optional,f=void 0!==p&&p,m=t.size,g=void 0===m?"large":m,b=t.helperText,x=t.error,y=t.showInfoIcon,v=t.infoText,_=t.onInfoClick,w=Ht(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),k=Lp(ji(),g,x,l);return tt.createElement("div",null,tt.createElement(Np,{label:h,required:u,optional:f,showInfoIcon:y,infoText:v,onInfoClick:_}),tt.createElement(vt,Wt({className:"".concat(on(k)," ").concat(d),addonBefore:e,addonAfter:n,placeholder:o,disabled:r},w)),tt.createElement(Ip,{text:b,error:x}))};Bp.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=t.optional,u=void 0!==h&&h,p=t.size,f=void 0===p?"large":p,m=t.helperText,g=t.error,b=t.showInfoIcon,x=t.infoText,y=t.onInfoClick,v=Ht(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),_=Lp(ji(),f,g);return tt.createElement("div",null,tt.createElement(Np,{label:c,required:d,optional:u,showInfoIcon:b,infoText:x,onInfoClick:y}),tt.createElement(vt.Password,Wt({className:"".concat(on(_)," ").concat(l),addonBefore:n,placeholder:o,disabled:r,visibilityToggle:!0},v)),tt.createElement(Ip,{text:m,error:g}))},Bp.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.className,r=void 0===a?"":a,s=t.onChange,l=t.onSearch,c=t.size,d=void 0===c?"large":c,h=t.helperText,u=t.error,p=Ht(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),f=ji(),m="".concat(Lp(f,d,u),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(f.color.surface.neutral,";\n padding: ").concat("string"==typeof n?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return tt.createElement("div",null,tt.createElement(vt,Wt({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(on(m)," ").concat(r),prefix:tt.createElement("span",{onClick:l,style:{display:"flex",cursor:l?"pointer":"default"}},tt.createElement(Yu,{icon:"search",size:"small"===d?"xs":"m",color:f.color.base.onNeutral}))},p)),tt.createElement(Ip,{text:h,error:u}))},Bp.TextArea=function(t){var e=t.className,n=void 0===e?"":e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.helperText,h=t.error,u=t.showInfoIcon,p=t.infoText,f=t.onInfoClick,m=Ht(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),g=ji(),b=h?g.color.status.critical:g.color.base.line,x=so[c],y=x.borderRadius,v=x.padding,_="".concat(Lp(g,c,h),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(y," !important;\n border-color: ").concat(b,";\n padding: ").concat(v,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(h?g.color.status.critical:g.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(g.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n background-color: ").concat(g.color.surface.disabledSurface,";\n border-color: ").concat(g.color.base.line,";\n &::placeholder {\n color: ").concat(g.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(g.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(g.color.base.line," !important; }\n }\n }\n ");return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:u,infoText:p,onInfoClick:f}),tt.createElement(vt.TextArea,Wt({className:"".concat(on(_)," ").concat(n)},m)),tt.createElement(Ip,{text:d,error:h}))},Bp.Group=vt.Group;var Yp,Vp,Hp,Wp,Up,jp,Gp,$p,Xp,qp,Zp,Kp,Jp,Qp,tf,ef,nf,of,rf,sf,lf,cf,df=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,a=t.value,r=t.defaultValue,s=t.onChange,l=t.disabled,c=void 0!==l&&l,d=t.disabledInput,h=void 0!==d&&d,u=t.disabledPrefix,p=void 0!==u&&u,f=t.staticPrefix,m=void 0!==f&&f,g=t.error,b=void 0!==g&&g,x=t.className,y=ji(),v=c||h,_=c||p,w=b?y.color.status.critical:y.color.base.line,k=y.color.base.line;return tt.createElement(mf,{className:x},i&&tt.createElement(gf,{borderColor:k,bgColor:_?y.color.surface.disabledSurface:m?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:_?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:_?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:_},i),tt.createElement(xf,{type:"text",placeholder:o,value:a,defaultValue:r,onChange:s,disabled:v,borderColor:w,focusBorderColor:y.color.base.primary2,textColor:y.color.base.onNeutral,placeholderColor:y.color.component.placeholderInput,disabledBgColor:y.color.surface.disabledSurface,disabledTextColor:y.color.surface.disabledOnSurface,hasPrefix:!!i,isDisabled:v}),tt.createElement(yf,{type:"button",onClick:n,disabled:c||b,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:c||b},e))},hf=so.large,uf=hf.height,pf=hf.borderRadius,ff=hf.padding,mf=qn.div(Yp||(Yp=Vt(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),uf),gf=qn.div(Vp||(Vp=Vt(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(t){return t.borderColor},pf,pf,function(t){return t.bgColor},function(t){return t.textColor},io,Vi.P1,function(t){return t.isDisabled?"not-allowed":"default"},function(t){return t.isDisabled?"none":"auto"},function(t){return t.isDisabled?t.bgColor:t.hoverBgColor}),xf=qn.input(Hp||(Hp=Vt(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),ff,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(pf," 0 0 ").concat(pf)},io,Vi.P1,function(t){return t.isDisabled?t.disabledTextColor:t.textColor},function(t){return t.isDisabled?t.disabledBgColor:"transparent"},function(t){return t.isDisabled?"not-allowed":"text"},function(t){return t.placeholderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor}),yf=qn.button(Wp||(Wp=Vt(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),pf,pf,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},io,Vi.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),vf=function(t){var e=t.onClose,n=t.icon,i=t.title,o=t.children,a=t.footer,r=t.disabledCloseIcon,s=t.className,l=ji().neutral;return tt.createElement(Df,{className:s},(n||i||!r)&&tt.createElement(_f,{hasIcon:Boolean(n)},tt.createElement(Sf,null,tt.createElement(Ef,null,n,tt.createElement(Ro,null,i||"")),!r&&tt.createElement(Mf,{onClick:function(){return e()}},tt.createElement(At,{color:l.text,width:18}))),tt.createElement(Yo,null)),tt.createElement(wf,null,o),a&&tt.createElement(kf,null,a))},_f=qn.div(Up||(Up=Vt(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Ai,Ai),wf=qn(Io)(jp||(jp=Vt(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ti,Ai,Ai,Ai),kf=qn.div(Gp||(Gp=Vt(["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Ai,Ci,Ci),Sf=qn.div($p||($p=Vt(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Ef=qn.div(Xp||(Xp=Vt(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Mf=qn.div(qp||(qp=Vt(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"]))),Df=qn.div(Zp||(Zp=Vt(["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"]))),Cf=document.body,Of=function(t){var e=ji().neutral,n=st(document.createElement("div"))[0];return ct(function(){return Cf.appendChild(n),function(){Cf.removeChild(n)}},[n]),Ut.createPortal(tt.createElement(Af,{open:t.open},t.open&&tt.createElement(Cn,{styles:Mn(Kp||(Kp=Vt(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),tt.createElement("div",{className:"".concat(on(Jp||(Jp=Vt(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(t.modalClassName)},tt.createElement(Pf,{hasIcon:Boolean(t.icon)},tt.createElement(If,null,tt.createElement(Nf,null,t.icon,tt.createElement(Ro,null,t.title)),!t.disabledCloseIcon&&tt.createElement(Ff,{onClick:function(){return t.onClose()}},tt.createElement(At,{color:e.text,width:18}))),tt.createElement(Yo,null)),tt.createElement(Rf,null,t.children),tt.createElement(Lf,null,t.footer))),n)},Tf=Tn(Qp||(Qp=Vt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Af=qn.div(ef||(ef=Vt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Mn(tf||(tf=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Tf)}),Pf=qn.div(nf||(nf=Vt(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Ai,Ai),Rf=qn.div(of||(of=Vt(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ti,Ai,Ai,Ai),Lf=qn.div(rf||(rf=Vt(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Ai,Ci,Ci),If=qn.div(sf||(sf=Vt(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Nf=qn.div(lf||(lf=Vt(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),Ff=qn.div(cf||(cf=Vt(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));function zf(t){var e=t.current,n=t.pageSize,i=t.total,o=t.onChange,a=t.showSizeChanger,r=t.onShowSizeChange,s=t.pageSizeOptions,l="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(Vn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(io,";\n border-radius: 5px;\n border: 1px solid ").concat(Vn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Hn.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return tt.createElement(_t,{className:"".concat(on(l)),current:e,pageSize:n,total:i,onChange:o,showSizeChanger:a,onShowSizeChange:r,pageSizeOptions:s})}var Bf,Yf={Group:function(t){return tt.createElement(wt.Group,Wt({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,i=Ht(t,["children","disabled"]),o=ji().brand,a="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(Vn.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(io," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(Vn.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(n?"":"\n border-color: ".concat(o.primary.default," !important;\n color: ").concat(Vn.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(We.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(o.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(Vn.BLACK," !important;\n }\n ");return tt.createElement(wt.Button,Wt({className:on(a),disabled:n},i),tt.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},tt.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},tt.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),tt.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}},Vf={},Hf={exports:{}};function Wf(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uf,jf={exports:{}};function Gf(){return Uf||(Uf=1,(t=jf).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function b(t){if(null==t._isValid){var e=g(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function x(t){var e=f(NaN);return null!=t?p(g(e),t):g(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var y=i.momentProperties=[];function v(t,e){var n,i,o;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=g(e)),l(e._locale)||(t._locale=e._locale),y.length>0)for(n=0;n<y.length;n++)l(o=e[i=y[n]])||(t[i]=o);return t}var _=!1;function w(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function M(t,e,n){var i,o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&r++;return r+a}function D(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,a=[],r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(var s in o+="\n["+r+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[r];a.push(o)}D(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,T={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),T[t]||(D(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function R(t){var e,n;for(n in t)P(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&r(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return P(i)?i.call(e,n):i}var z={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"};function B(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}var Y="Invalid date";function V(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function U(t){return this._ordinal.replace("%d",t)}var j={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G(t,e,n,i){var o=this._relativeTime[n];return P(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return P(n)?n(e):n.replace(/%s/i,e)}var X={};function q(t,e){var n=t.toLowerCase();X[n]=X[n+"s"]=X[e]=t}function Z(t){return"string"==typeof t?X[t]||X[t.toLowerCase()]:void 0}function K(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var J={};function Q(t,e){J[t]=e}function tt(t){var e=[];for(var n in t)e.push({unit:n,priority:J[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function et(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var nt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},at={};function rt(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(at[t]=o),e&&(at[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(at[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function lt(t){var e,n,i=t.match(nt);for(e=0,n=i.length;e<n;e++)at[i[e]]?i[e]=at[i[e]]:i[e]=st(i[e]);return function(e){var o,a="";for(o=0;o<n;o++)a+=P(i[o])?i[o].call(e,t):i[o];return a}}function ct(t,e){return t.isValid()?(e=dt(e,t.localeData()),ot[e]=ot[e]||lt(e),ot[e](t)):t.localeData().invalidDate()}function dt(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(it.lastIndex=0;n>=0&&it.test(t);)t=t.replace(it,i),it.lastIndex=0,n-=1;return t}var ht=/\d/,ut=/\d\d/,pt=/\d{3}/,ft=/\d{4}/,mt=/[+-]?\d{6}/,gt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,yt=/\d{1,3}/,vt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,kt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Mt=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,Ct={};function Ot(t,e,n){Ct[t]=P(e)?e:function(t,i){return t&&n?n:e}}function Tt(t,e){return u(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Rt={};function Lt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)Rt[t[n]]=i}function It(t,e){Lt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Rt,t)&&Rt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,Yt=3,Vt=4,Ht=5,Wt=6,Ut=7,jt=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}rt("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),rt(0,["YY",2],0,function(){return this.year()%100}),rt(0,["YYYY",4],0,"year"),rt(0,["YYYYY",5],0,"year"),rt(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Ot("Y",kt),Ot("YY",gt,ut),Ot("YYYY",vt,ft),Ot("YYYYY",_t,mt),Ot("YYYYYY",_t,mt),Lt(["YYYYY","YYYYYY"],Ft),Lt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Lt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Lt("Y",function(t,e){e[Ft]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return $t(this.year())}function Kt(t,e){return function(n){return null!=n?(Qt(this,t,n),i.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$t(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ie(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function te(t){return P(this[t=Z(t)])?this[t]():this}function ee(t,e){if("object"==typeof t)for(var n=tt(t=K(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(P(this[t=Z(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?$t(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},rt("M",["MM",2],"Mo",function(){return this.month()+1}),rt("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),rt("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Ot("M",gt),Ot("MM",gt,ut),Ot("MMM",function(t,e){return e.monthsShortRegex(t)}),Ot("MMMM",function(t,e){return e.monthsRegex(t)}),Lt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Lt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:g(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function re(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}var se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function le(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))||-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))||-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null}function de(t,e,n){var i,o,a;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ie(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ue(t){return null!=t?(he(this,t),i.updateOffset(this,!0),this):Jt(this,"Month")}function pe(){return ie(this.year(),this.month())}var fe=Dt;function me(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=fe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var ge=Dt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),a.sort(t),e=0;e<12;e++)i[e]=Pt(i[e]),o[e]=Pt(o[e]);for(e=0;e<24;e++)a[e]=Pt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ye(t,e,n,i,o,a,r){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,a,r),s}function ve(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _e(t,e,n){var i=7+e-n;return-(7+ve(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var a,r,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?r=Gt(a=t-1)+s:s>Gt(t)?(a=t+1,r=s-Gt(t)):(a=t,r=s),{year:a,dayOfYear:r}}function ke(t,e,n){var i,o,a=_e(t.year(),e,n),r=Math.floor((t.dayOfYear()-a-1)/7)+1;return r<1?i=r+Se(o=t.year()-1,e,n):r>Se(t.year(),e,n)?(i=r-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{week:i,year:o}}function Se(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(Gt(t)-i+o)/7}function Ee(t){return ke(t,this._week.dow,this._week.doy).week}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Ot("w",gt),Ot("ww",gt,ut),Ot("W",gt),Ot("WW",gt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Me={dow:0,doy:6};function De(){return this._week.dow}function Ce(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Te(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(t,e){return t.slice(e,7).concat(t.slice(0,e))}rt("d",0,"do","day"),rt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),rt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),rt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),rt("e",0,0,"weekday"),rt("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Ot("d",gt),Ot("e",gt),Ot("E",gt),Ot("dd",function(t,e){return e.weekdaysMinRegex(t)}),Ot("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Ot("dddd",function(t,e){return e.weekdaysRegex(t)}),It(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:g(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Re(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Be(t){return!0===t?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ye(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null}function Ve(t,e,n){var i,o,a;if(this._weekdaysParseExact)return Ye.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ue(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var je=Dt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Dt;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Dt;function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,o,a,r=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);for(r.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Pt(s[e]),l[e]=Pt(l[e]),c[e]=Pt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){rt(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Je),rt("k",["kk",2],0,Qe),rt("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),rt("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)}),tn("a",!0),tn("A",!1),q("hour","h"),Q("hour",13),Ot("a",en),Ot("A",en),Ot("H",gt),Ot("h",gt),Ot("k",gt),Ot("HH",gt,ut),Ot("hh",gt,ut),Ot("kk",gt,ut),Ot("hmm",bt),Ot("hmmss",xt),Ot("Hmm",bt),Ot("Hmmss",xt),Lt(["H","HH"],Yt),Lt(["k","kk"],function(t,e,n){var i=E(t);e[Yt]=24===i?0:i}),Lt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Lt(["h","hh"],function(t,e,n){e[Yt]=E(t),g(n).bigHour=!0}),Lt("hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i)),g(n).bigHour=!0}),Lt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),g(n).bigHour=!0}),Lt("Hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i))}),Lt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var rn,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:Y,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:j,months:ae,monthsShort:se,week:Me,weekdays:Le,weekdaysMin:ze,weekdaysShort:Ne,meridiemParse:on},cn={},dn={};function hn(t){return t?t.toLowerCase().replace("_","-"):t}function un(t){for(var e,n,i,o,a=0;a<t.length;){for(e=(o=hn(t[a]).split("-")).length,n=(n=hn(t[a+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&M(o,n,!0)>=e-1)break;e--}a++}return rn}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=rn._abbr,Wf("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):mn(t,e))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),rn._abbr}function mn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=cn[t])A("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."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(L(i,e)),dn[t]&&dn[t].forEach(function(t){mn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function gn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=L(o,e))).parentLocale=cn[t],cn[t]=n,fn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return rn;if(!a(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return O(cn)}function yn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[Yt]<0||n[Yt]>24||24===n[Yt]&&(0!==n[Vt]||0!==n[Ht]||0!==n[Wt])?Yt:n[Vt]<0||n[Vt]>59?Vt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,g(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),g(t)._overflowWeeks&&-1===e&&(e=Ut),g(t)._overflowWeekday&&-1===e&&(e=jt),g(t).overflow=e),t}function vn(t,e,n){return null!=t?t:null!=e?e:n}function _n(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wn(t){var e,n,i,o,a,r=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(a=vn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=ve(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[Bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yt]&&0===t._a[Vt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Yt]=0),t._d=(t._useUTC?ve:ye).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,a,r,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,r=4,n=vn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=vn(e.W,1),((o=vn(e.E,1))<1||o>7)&&(l=!0);else{a=t._locale._week.dow,r=t._locale._week.doy;var c=ke(Xn(),a,r);n=vn(e.gg,t._a[Ft],c.year),i=vn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a}i<1||i>Se(n,a,r)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=we(n,i,o,a,r),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}var Sn=/^\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)?)?$/,En=/^\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)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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}/]],Cn=[["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/]],On=/^\/?Date\((\-?\d+)/i;function Tn(t){var e,n,i,o,a,r,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(g(t).iso=!0,e=0,n=Dn.length;e<n;e++)if(Dn[e][1].exec(l[1])){o=Dn[e][0],i=!1!==Dn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[3])){a=(l[2]||" ")+Cn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!i&&null!=a)return void(t._isValid=!1);if(l[4]){if(!Mn.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(a||"")+(r||""),Yn(t)}else t._isValid=!1}var An=/^(?:(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}))$/;function Pn(t,e,n,i,o,a){var r=[Rn(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return a&&r.push(parseInt(a,10)),r}function Rn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ln(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return Nn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function zn(t){var e=An.exec(Ln(t._i));if(e){var n=Pn(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=ve.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=On.exec(t._i);null===e?(Tn(t),!1===t._isValid&&(delete t._isValid,zn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Yn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],g(t).empty=!0;var e,n,o,a,r,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)a=o[e],(n=(s.match(Tt(a,t))||[])[0])&&((r=s.substr(0,s.indexOf(n))).length>0&&g(t).unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),c+=n.length),at[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),Nt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-c,s.length>0&&g(t).unusedInput.push(s),t._a[Yt]<=12&&!0===g(t).bigHour&&t._a[Yt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Yt]=Vn(t._locale,t._a[Yt],t._meridiem),wn(t),yn(t)}else zn(t);else Tn(t)}function Vn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Hn(t){var e,n,i,o,a;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)a=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Yn(e),b(e)&&(a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,(null==i||a<i)&&(i=a,n=e));p(t,n||e)}function Wn(t){if(!t._d){var e=K(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wn(t)}}function Un(t){var e=new w(yn(jn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function jn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?x({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(yn(e)):(d(e)?t._d=e:a(n)?Hn(t):n?Yn(t):Gn(t),b(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):a(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):r(e)?Wn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,o){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(r(t)&&s(t)||a(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=i,Un(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=C("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var qn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:x()}),Zn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:x()});function Kn(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function Qn(){return Kn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){for(var e in t)if(-1===Xt.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ei.length;++i)if(t[ei[i]]){if(n)return!1;parseFloat(t[ei[i]])!==E(t[ei[i]])&&(n=!0)}return!0}function ii(){return this._isValid}function oi(){return Mi(NaN)}function ai(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=ni(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ri(t){return t instanceof ai}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){rt(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+et(~~(t/60),2)+e+et(~~t%60,2)})}li("Z",":"),li("ZZ",""),Ot("Z",Et),Ot("ZZ",Et),Lt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=di(Et,t)});var ci=/([\+\-]|\d\d)/gi;function di(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ci)||["-",0,0],o=60*i[1]+E(i[2]);return 0===o?0:"+"===i[0]?o:-o}function hi(t,e){var n,o;return e._isUTC?(n=e.clone(),o=(k(t)||d(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):Xn(t).local()}function ui(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function pi(t,e,n){var o,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=di(Et,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(o=ui(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==t&&(!e||this._changeInProgress?Ai(this,Mi(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function mi(t){return this.utcOffset(0,t)}function gi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=di(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function yi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=jn(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&M(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function _i(){return!!this.isValid()&&!this._isUTC}function wi(){return!!this.isValid()&&this._isUTC}function ki(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mi(t,e){var n,i,o,a=t,r=null;return ri(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(r=Si.exec(t))?(n="-"===r[1]?-1:1,a={y:0,d:E(r[Bt])*n,h:E(r[Yt])*n,m:E(r[Vt])*n,s:E(r[Ht])*n,ms:E(si(1e3*r[Wt]))*n}):(r=Ei.exec(t))?(n="-"===r[1]?-1:1,a={y:Di(r[2],n),M:Di(r[3],n),w:Di(r[4],n),d:Di(r[5],n),h:Di(r[6],n),m:Di(r[7],n),s:Di(r[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Oi(Xn(a.from),Xn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),i=new ai(a),ri(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Di(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ci(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Oi(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Ci(t,e):((n=Ci(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ti(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Ai(this,Mi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var a=e._milliseconds,r=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),r&&Qt(t,"Date",Jt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),o&&i.updateOffset(t,r||s))}Mi.fn=ai.prototype,Mi.invalid=oi;var Pi=Ti(1,"add"),Ri=Ti(-1,"subtract");function Li(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),a=i.calendarFormat(this,o)||"sameElse",r=e&&(P(e[a])?e[a].call(this,n):e[a]);return this.format(r||this.localeData().calendar(a,this,Xn(n)))}function Ni(){return new w(this)}function Fi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function zi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Bi(t,e,n,i){var o=k(t)?t:Xn(t),a=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Yi(t,e){var n,i=k(t)?t:Xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Vi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Wi(t,e,n){var i,o,a;if(!this.isValid())return NaN;if(!(i=hi(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":a=Ui(this,i)/12;break;case"month":a=Ui(this,i);break;case"quarter":a=Ui(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:S(a)}function Ui(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function ji(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]';return this.format(n+i+o+a)}function Xi(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function qi(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zi(t){return this.from(Xn(),t)}function Ki(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ji(t){return this.to(Xn(),t)}function Qi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eo(){return this._locale}var no=1e3,io=60*no,oo=60*io,ao=3506328*oo;function ro(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ao:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ao:Date.UTC(t,e,n)}function co(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ro(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ro(e,io);break;case"second":e=this._d.valueOf(),e-=ro(e,no)}return this._d.setTime(e),i.updateOffset(this,!0),this}function ho(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=oo-ro(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ro(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ro(e,no)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-6e4*(this._offset||0)}function po(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function mo(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function go(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bo(){return this.isValid()?this.toISOString():null}function xo(){return b(this)}function yo(){return p({},g(this))}function vo(){return g(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){rt(0,[t,t.length],0,e)}function ko(t){return Do.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return Do.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Mo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Do(t,e,n,i,o){var a;return null==t?ke(this,i,o).year:(e>(a=Se(t,i,o))&&(e=a),Co.call(this,t,e,n,i,o))}function Co(t,e,n,i,o){var a=we(t,e,n,i,o),r=ve(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Oo(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wo("gggg","weekYear"),wo("ggggg","weekYear"),wo("GGGG","isoWeekYear"),wo("GGGGG","isoWeekYear"),q("weekYear","gg"),q("isoWeekYear","GG"),Q("weekYear",1),Q("isoWeekYear",1),Ot("G",kt),Ot("g",kt),Ot("GG",gt,ut),Ot("gg",gt,ut),Ot("GGGG",vt,ft),Ot("gggg",vt,ft),Ot("GGGGG",_t,mt),Ot("ggggg",_t,mt),It(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),It(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),rt("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Ot("Q",ht),Lt("Q",function(t,e){e[zt]=3*(E(t)-1)}),rt("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Ot("D",gt),Ot("DD",gt,ut),Ot("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],Bt),Lt("Do",function(t,e){e[Bt]=E(t.match(gt)[0])});var To=Kt("Date",!0);function Ao(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}rt("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Ot("DDD",yt),Ot("DDDD",pt),Lt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),rt("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Ot("m",gt),Ot("mm",gt,ut),Lt(["m","mm"],Vt);var Po=Kt("Minutes",!1);rt("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Ot("s",gt),Ot("ss",gt,ut),Lt(["s","ss"],Ht);var Ro,Lo=Kt("Seconds",!1);for(rt("S",0,0,function(){return~~(this.millisecond()/100)}),rt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rt(0,["SSS",3],0,"millisecond"),rt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),rt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),rt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),rt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),rt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),rt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Ot("S",yt,ht),Ot("SS",yt,ut),Ot("SSS",yt,pt),Ro="SSSS";Ro.length<=9;Ro+="S")Ot(Ro,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Ro="S";Ro.length<=9;Ro+="S")Lt(Ro,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Bo=w.prototype;function Yo(t){return Xn(1e3*t)}function Vo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Pi,Bo.calendar=Ii,Bo.clone=Ni,Bo.diff=Wi,Bo.endOf=ho,Bo.format=Xi,Bo.from=qi,Bo.fromNow=Zi,Bo.to=Ki,Bo.toNow=Ji,Bo.get=te,Bo.invalidAt=vo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=Yi,Bo.isSameOrAfter=Vi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=yo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Ri,Bo.toArray=mo,Bo.toObject=go,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=ji,Bo.unix=po,Bo.valueOf=uo,Bo.creationData=_o,Bo.year=qt,Bo.isLeapYear=Zt,Bo.weekYear=ko,Bo.isoWeekYear=So,Bo.quarter=Bo.quarters=Oo,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=Oe,Bo.isoWeek=Bo.isoWeeks=Te,Bo.weeksInYear=Mo,Bo.isoWeeksInYear=Eo,Bo.date=To,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ue,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Po,Bo.second=Bo.seconds=Lo,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=mi,Bo.local=gi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=yi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=C("dates accessor is deprecated. Use date instead.",To),Bo.months=C("months accessor is deprecated. Use month instead",ue),Bo.years=C("years accessor is deprecated. Use year instead",qt),Bo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vi);var Wo=I.prototype;function Uo(t,e,n,i){var o=bn(),a=f().set(i,e);return o[n](a,t)}function jo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Uo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Uo(t,i,n,"month");return o}function Go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var o,a=bn(),r=t?a._week.dow:0;if(null!=n)return Uo(e,(n+r)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Uo(e,(o+r)%7,i,"day");return s}function $o(t,e){return jo(t,e,"months")}function Xo(t,e){return jo(t,e,"monthsShort")}function qo(t,e,n){return Go(t,e,n,"weekdays")}function Zo(t,e,n){return Go(t,e,n,"weekdaysShort")}function Ko(t,e,n){return Go(t,e,n,"weekdaysMin")}Wo.calendar=F,Wo.longDateFormat=B,Wo.invalidDate=V,Wo.ordinal=U,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=R,Wo.months=re,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=me,Wo.week=Ee,Wo.firstDayOfYear=Ce,Wo.firstDayOfWeek=De,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ve,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=an,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",bn);var Jo=Math.abs;function Qo(){var t=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),t.milliseconds=Jo(t.milliseconds),t.seconds=Jo(t.seconds),t.minutes=Jo(t.minutes),t.hours=Jo(t.hours),t.months=Jo(t.months),t.years=Jo(t.years),this}function ta(t,e,n,i){var o=Mi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function ea(t,e){return ta(this,t,e,1)}function na(t,e){return ta(this,t,e,-1)}function ia(t){return t<0?Math.floor(t):Math.ceil(t)}function oa(){var t,e,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*ia(ra(s)+r),r=0,s=0),l.milliseconds=a%1e3,t=S(a/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,r+=S(n/24),s+=o=S(aa(r)),r-=ia(ra(o)),i=S(s/12),s%=12,l.days=r,l.months=s,l.years=i,this}function aa(t){return 4800*t/146097}function ra(t){return 146097*t/4800}function sa(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+aa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ra(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function ca(t){return function(){return this.as(t)}}var da=ca("ms"),ha=ca("s"),ua=ca("m"),pa=ca("h"),fa=ca("d"),ma=ca("w"),ga=ca("M"),ba=ca("Q"),xa=ca("y");function ya(){return Mi(this)}function va(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _a(t){return function(){return this.isValid()?this._data[t]:NaN}}var wa=_a("milliseconds"),ka=_a("seconds"),Sa=_a("minutes"),Ea=_a("hours"),Ma=_a("days"),Da=_a("months"),Ca=_a("years");function Oa(){return S(this.days()/7)}var Ta=Math.round,Aa={ss:44,s:45,m:45,h:22,d:26,M:11};function Pa(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Ra(t,e,n){var i=Mi(t).abs(),o=Ta(i.as("s")),a=Ta(i.as("m")),r=Ta(i.as("h")),s=Ta(i.as("d")),l=Ta(i.as("M")),c=Ta(i.as("y")),d=o<=Aa.ss&&["s",o]||o<Aa.s&&["ss",o]||a<=1&&["m"]||a<Aa.m&&["mm",a]||r<=1&&["h"]||r<Aa.h&&["hh",r]||s<=1&&["d"]||s<Aa.d&&["dd",s]||l<=1&&["M"]||l<Aa.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Pa.apply(null,d)}function La(t){return void 0===t?Ta:"function"==typeof t&&(Ta=t,!0)}function Ia(t,e){return void 0!==Aa[t]&&(void 0===e?Aa[t]:(Aa[t]=e,"s"===t&&(Aa.ss=e-1),!0))}function Na(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Ra(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fa=Math.abs;function za(t){return(t>0)-(t<0)||+t}function Ba(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fa(this._milliseconds)/1e3,i=Fa(this._days),o=Fa(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var a=S(o/12),r=o%=12,s=i,l=e,c=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var u=h<0?"-":"",p=za(this._months)!==za(h)?"-":"",f=za(this._days)!==za(h)?"-":"",m=za(this._milliseconds)!==za(h)?"-":"";return u+"P"+(a?p+a+"Y":"")+(r?p+r+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Ya=ai.prototype;return Ya.isValid=ii,Ya.abs=Qo,Ya.add=ea,Ya.subtract=na,Ya.as=sa,Ya.asMilliseconds=da,Ya.asSeconds=ha,Ya.asMinutes=ua,Ya.asHours=pa,Ya.asDays=fa,Ya.asWeeks=ma,Ya.asMonths=ga,Ya.asQuarters=ba,Ya.asYears=xa,Ya.valueOf=la,Ya._bubble=oa,Ya.clone=ya,Ya.get=va,Ya.milliseconds=wa,Ya.seconds=ka,Ya.minutes=Sa,Ya.hours=Ea,Ya.days=Ma,Ya.weeks=Oa,Ya.months=Da,Ya.years=Ca,Ya.humanize=Na,Ya.toISOString=Ba,Ya.toString=Ba,Ya.toJSON=Ba,Ya.locale=Qi,Ya.localeData=eo,Ya.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ba),Ya.lang=to,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Ot("x",kt),Ot("X",Mt),Lt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Lt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=Bo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=Yo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Mi,i.isMoment=k,i.weekdays=qo,i.parseZone=Vo,i.localeData=bn,i.isDuration=ri,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=mn,i.updateLocale=gn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=La,i.relativeTimeThreshold=Ia,i.calendarFormat=Li,i.prototype=Bo,i.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"},i}()),jf.exports;var t}var $f,Xf,qf={};var Zf=function(){if(Xf)return Vf;Xf=1;var t,e=(Bf||(Bf=1,(t=Hf).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),Hf.exports).default;Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.default=void 0;var n=e(Gf()),i=function(){if($f)return qf;$f=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.call=r,qf.default=void 0,qf.note=o,qf.noteOnce=l,qf.preMessage=void 0,qf.resetWarned=a,qf.warning=i,qf.warningOnce=s;var t={},e=[],n=qf.preMessage=function(t){e.push(t)};function i(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","warning")},n);i&&console.error("Warning: ".concat(i))}}function o(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","note")},n);i&&console.warn("Note: ".concat(i))}}function a(){t={}}function r(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){r(i,t,e)}function l(t,e){r(o,t,e)}return s.preMessage=n,s.resetWarned=a,s.noteOnce=l,qf.default=s,qf}(),o={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},setMillisecond:function(t,e){return t.clone().millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,o){for(var a=[],r=0;r<o.length;r+=1){var s=o[r],l=e;if(s.includes("wo")||s.includes("Wo")){var c=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),d=l.match(/[-\d]+/g);c&&d?(s=c.join(""),l=d.join("")):a.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<a.length;u+=1){var p=(0,n.default)(e,a[u],t,!1);if(p.isValid())return(0,i.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};return Vf.default=o,Vf}(),Kf=re(Zf),Jf=kt.generatePicker(Kf);function Qf(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,i=t.size,o=void 0===i?"large":i,a=Ht(t,["format","size"]),r=ji(),s=so[o],l=s.height,c=s.borderRadius,d=s.padding,h="\n -webkit-font-smoothing: antialiased;\n height: ".concat(l," !important;\n\n &.ant-picker {\n border-radius: ").concat(c," !important;\n border-color: ").concat(r.color.base.line," !important;\n padding: ").concat(d," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(r.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(r.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(r.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(r.color.component.placeholderInput," !important;\n }\n "),u="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(r.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(r.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n }\n ");return tt.createElement(Jf.RangePicker,Wt({className:"".concat(on(h)),format:n,popupClassName:on(u)},a))}var tm,em,nm=qn("div")(tm||(tm=Vt(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},hi,function(t){return"lg"===t.only?"none":"block"}),im=function(t){var e=t.className,n=Ht(t,["className"]),i="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(bi,"\n ").concat(Di,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(bi,"\n ").concat(Mi,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(bi,"\n ").concat(Di,"\n color: #777777;\n }\n ");return tt.createElement(St,Wt({},n,{className:nn(on(i),e)}))};im.Step=function(t){var e=Ht(t,[]),n=on(em||(em=Vt(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return tt.createElement(St.Step,Wt({className:nn(n)},e))};var om,rm,sm,lm,cm,dm,hm=function(t){var e=t.current,n=t.steps,i=t.desktopNote,o=lt(null),a=ji(),r=a.brand,s=a.success,l=a.neutral;ct(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=qn.div(om||(om=Vt(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),l.border,l.background),d=qn.div(rm||(rm=Vt(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(r.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),h=qn.div(sm||(sm=Vt(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),l.emphasis),u=qn.div(lm||(lm=Vt(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),p=qn(Io)(cm||(cm=Vt(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return tt.createElement(tt.Fragment,null,tt.createElement(nm,{only:"sm"},tt.createElement("div",{style:{padding:"30px",width:"266px"}},tt.createElement(im,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return tt.createElement(im.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),i)),tt.createElement(nm,{only:"lg",ref:o},tt.createElement(c,null,tt.createElement(u,null,n.map(function(t,i){return tt.createElement("span",{key:"mobile-".concat(t,"-").concat(i)},tt.createElement(p,{inactive:e<i,current:e===i},tt.createElement(d,{index:i,current:e}),t),i!==n.length-1&&tt.createElement(h,null))})))))},um=on(dm||(dm=Vt(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),io,Ve.DEFAULT),pm=function(t){var e=t.className,n=t.emptyText,i=Ht(t,["className","emptyText"]);return tt.createElement(Et,Wt({className:nn(um,e),locale:{emptyText:n}},i))},fm=function(t){var e=t.children,n=Ht(t,["children"]),i=ji().brand,o="\n font-family: ".concat(io,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(i.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(i.primary.default,"; \n }\n ");return tt.createElement(mt,Wt({className:"".concat(on(o))},n),e)};fm.TabPane=mt.TabPane;var mm=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,i=t.shouldRepeat,o=t.onTimesUp,a=t.children,r=st(!1),s=r[0],l=r[1],c=st(e),d=c[0],h=c[1],u=st(void 0),p=u[0],f=u[1],m=st(!0),g=m[0],b=m[1],x=Date.now()+1e3*d;return ct(function(){g&&(f(setInterval(function(){var t=(new Date).getTime(),e=x-t,i=Math.ceil(e/1e3);i>=0&&h(i),n&&i<=n&&l(!0)},1e3)),b(!1))},[g]),ct(function(){d<=0&&void 0!==p&&(clearInterval(p),f(void 0),l(!1),o&&o(),i&&(h(e),b(!0)))},[p,d]),a(s,d)};function gm(t){var e=t.disabled,n=void 0!==e&&e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.error,h=void 0!==d&&d,u=t.helperText,p=t.showInfoIcon,f=t.onInfoClick,m=Ht(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),g=ji(),b=so[c],x=b.height,y=b.borderRadius,v=b.padding,_=h?g.color.status.critical:g.color.base.line,w="\n -webkit-font-smoothing: antialiased;\n height: ".concat(x," !important;\n width: 100% !important;\n\n ").concat(n?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(y," !important;\n border-color: ").concat(_," !important;\n padding: ").concat(v," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(g.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ").concat(g.color.component.placeholderInput," !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(g.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(g.color.base.line," !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view {\n &.ant-picker-cell-today .ant-picker-cell-inner {\n &:before {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(g.color.base.primary2," !important;\n }\n }\n "),k="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ".concat(g.color.base.primary2," !important;\n }\n "),S=tt.createElement(Yu,{icon:"date_range",size:"m",color:g.color.base.onNeutral});return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:p,onInfoClick:f}),tt.createElement(kt,Wt({className:"".concat(on(w)),popupClassName:on(k),disabled:n,suffixIcon:S,format:"DD-MM-YYYY"},m)),tt.createElement(Ip,{text:u,error:h}))}var bm,xm,ym,vm,_m,wm,km,Sm,Em,Mm,Dm,Cm,Om,Tm,Am,Pm,Rm,Lm,Im,Nm={Group:function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]),o="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(Li.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(Vn.BLACK," !important;\n font-family: ").concat(io," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(Li.brand.primary.illustration," !important;\n border-color: ").concat(Li.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n ");return tt.createElement(Mt.Group,Wt({className:"".concat(on(o)," ").concat(n)},i))}},Fm=function(t){var e=t.title,n=void 0===e?"No results found":e,i=t.subtitle,o=t.info,a=t.svgUniqueId,r=void 0===a?"randomString":a;return tt.createElement(zm,null,tt.createElement(Dt,{image:tt.createElement(It,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&tt.createElement(Bm,null,n),i&&tt.createElement(Ym,null,i),o&&tt.createElement(Vm,null,o))},zm=qn.div(bm||(bm=Vt(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),Bm=qn(No)(xm||(xm=Vt(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),Ym=qn(Io)(ym||(ym=Vt(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),Ue.S500),Vm=qn(Io)(vm||(vm=Vt(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),Ve.DEFAULT),Hm=function(t){var e=t.typographyType,n=void 0===e?"body":e,i=t.size,o=void 0===i?"md":i,a=t.textContent,r=t.children,s=t.href,l=t.target,c=t.rel,d=t.isUnderlined,h=void 0===d||d,u=t.icon,p=t.iconPlacement,f=void 0===p?"left":p,m=t.onClick,g=Ht(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=qn.a(_m||(_m=Vt(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),u?"flex":"inline-flex",Li.color.base.link,h?"underline":"none",Li.color.base.link,h?"underline":"none",Li.color.base.link),x=u&&"left"===f,y=u&&"right"===f,v=a||r;return tt.createElement(b,Wt({href:s,target:l,rel:c,onClick:m},g),x&&u,"body"===n&&tt.createElement(dn.Body,{size:o,color:Li.color.base.link},v),"label"===n&&tt.createElement(dn.Label,{size:o,color:Li.color.base.link},v),y&&u)},Wm=function(t){var e=t.title,n=t.children,i=ji(),o=i.spacing,a=i.neutral,r=qn.div(wm||(wm=Vt(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),o.sm,o.md,a.background);return tt.createElement(r,null,tt.createElement(No,{style:{marginBottom:o.sm}},e),n)},Um=function(t){var e=t.title,n=t.children,i=Array.isArray(n)&&n.length>1,o=qn.div(km||(km=Vt(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),Li.color.surface.subduePositive),a=qn.div(Sm||(Sm=Vt(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),Li.color.status.positive,e?"5px":"0px");return tt.createElement(o,null,tt.createElement(a,null,tt.createElement(dn.Label,{size:"md"},e),i?tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},tt.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return tt.createElement("li",{key:e},t)}))):tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},jm=function(t){var e=t.withIcon,n=void 0!==e&&e,i=t.children,o=t.type,a=void 0===o?"primary":o,r=Ht(t,["withIcon","children","type"]),s=ji(),l=s.brand,c=s.spacing,d="\n color: ".concat(Li.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),h="\n color: ".concat(Li.color.status.positive,";\n background: ").concat(Li.color.surface.subduePositive,";\n "),u="\n color: ".concat(Li.color.status.warning,";\n background: ").concat(Li.color.surface.subdueWarning,";\n "),p="\n color: ".concat(Li.color.status.critical,";\n background: ").concat(Li.color.surface.subdueCritical,";\n "),f="\n color: ".concat(Li.color.base.onNeutral,"};\n background: ").concat(Li.color.surface.SubdueInfo,";\n "),m=qn.div(Em||(Em=Vt(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),c.sm,function(){switch(a){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}}()),g=on(Mm||(Mm=Vt(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return tt.createElement(m,Wt({},r),n&&("primary"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:nn(g)}):"success"===a?tt.createElement(Ft,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.positive,className:nn(g)}):"warning"===a?tt.createElement(zt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.warning,className:nn(g)}):"error"===a?tt.createElement(Bt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.critical,className:nn(g)}):"notification"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.info,className:nn(g)}):tt.createElement(tt.Fragment,null)),tt.createElement(dn.Body,{size:"md"},i))},Gm={Title:qn(Lo)(Dm||(Dm=Vt(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:qn(Io)(Cm||(Cm=Vt(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:qn.div(Om||(Om=Vt(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),hi),Left:qn.div(Tm||(Tm=Vt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),hi),Right:qn.div(Am||(Am=Vt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),hi)};var $m,Xm,qm,Zm,Km,Jm,Qm,tg,eg,ng,ig,og,rg,sg,lg=re(function(){if(Im)return Lm;Im=1;var t=Rm?Pm:(Rm=1,Pm=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return Lm=function(n,i){var o,a,r,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(r=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=e[i.format]||e.default;window.clipboardData.setData(a,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}}()),cg=qn.div($m||($m=Vt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),dg=qn.div(Xm||(Xm=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),hg=qn.div(qm||(qm=Vt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),ug=qn.div(Zm||(Zm=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),pg=qn.div(Km||(Km=Vt(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),Li.color.surface.disabledSurface,Li.color.base.line),fg=qn.div(Jm||(Jm=Vt(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),mg=qn.div(Qm||(Qm=Vt(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),Li.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),gg=qn(pt)(tg||(tg=Vt(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),Li.color.base.line,Li.color.surface.neutral,bi,Li.brand.primary.default),bg=function(t){var e=t.value,n=t.allowCopy,i=void 0===n||n,o=t.valueToCopy,a=void 0===o?e:o,r=t.isBankAddress,s=void 0!==r&&r,l=t.showCopyIcon,c=void 0===l||l,d=t.icon,h=t.iconSize,u=t.labelText,p=t.labelTooltip,f=t.helperText,m=t.helperTextType,g=t.onButtonClick;return tt.createElement(cg,null,tt.createElement(dg,null,u&&tt.createElement(dn.Body,{size:"md",color:Li.color.base.onNeutral},u),p&&tt.createElement(hg,null,p)),tt.createElement(pg,null,tt.createElement(fg,null,d&&tt.createElement(ug,{iconSize:h},d),tt.createElement(dn.Body,{size:"lg"},tt.createElement(mg,{isBankAddress:s},e))),i&&tt.createElement(gg,{onClick:function(){void 0!==g&&g(),lg(a)}},c?tt.createElement(Yt,null):tt.createElement(dn.Label,{size:"md",color:Li.brand.primary.default},"Copy"))),f&&tt.createElement(dn.Body,{size:"sm",color:"error"===m?Li.color.status.critical:Li.color.base.onNeutralSecondary},f))},xg=function(t){var e=t.title,n=t.subtitle,i=t.content,o=t.fallbackContent,a=t.backgroundColor,r=ji(),s=r.neutral,l=r.text,c=qn.div(eg||(eg=Vt(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),fi,s.bluish),d=qn.div(ng||(ng=Vt(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),fi,hi,function(t){return t.backgroundColor||s.background}),h=qn.div(ig||(ig=Vt(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),fi,l.default,xi),u=qn.div(og||(og=Vt(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),l.default,_i);return tt.createElement(d,{backgroundColor:a},tt.createElement(c,null,e),tt.createElement(h,null,n),tt.createElement(u,null,i),o)},yg=function(t){var e=t.size,n=Ht(t,["size"]),i=ji().brand,o=on(rg||(rg=Vt(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return tt.createElement(Ct,Wt({className:nn(o),size:e},n))},vg=function(t){var e=t.label,n=t.amount,i=t.type,o=void 0===i?"default":i,a=t.height,r=void 0===a?91:a,s=t.width,l=void 0===s?230:s,c=t.isInverted,d=void 0!==c&&c,h=t.icon,u=qn(Ao)(sg||(sg=Vt(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof l?"".concat(l,"px"):l,r,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",d&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return tt.createElement(u,{type:o},h&&h,tt.createElement("div",null,tt.createElement(Io,{style:{marginBottom:d?"0":"5px"}},e),tt.createElement(Po,{style:{marginBottom:d?"5px":"0"}},n)))},_g=function(t){var e=t.className,n=Ht(t,["className"]);return tt.createElement(Ot,Wt({},n,{className:nn(on("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),e)}))};function wg(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,a=t.step,r=t.tooltipProps,s=t.backProps,l=a.title,c=a.content,d=a.data;return tt.createElement(Pg,{role:r.role},tt.createElement(Rg,null,tt.createElement(Lg,null,tt.createElement(dn.Label,{size:"md"},l),tt.createElement(Ig,{role:o.role,onClick:o.onClick},tt.createElement(Yu,{icon:"close",size:"m"}))),tt.createElement(dn.Body,{size:"md"},c)),tt.createElement(Ng,null,tt.createElement(Fg,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==d?void 0:d.skipZeroIndex)?tt.createElement(tt.Fragment,null):tt.createElement(zg,{key:n,isActive:n===e})})),tt.createElement(Yg,null,s&&tt.createElement(Bg,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),tt.createElement(Hm,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}_g.Item=Ot.Item;var kg,Sg,Eg,Mg,Dg,Cg,Og,Tg,Ag,Pg=qn.div(kg||(kg=Vt(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),Li.color.surface.secondaryNeutral),Rg=qn.div(Sg||(Sg=Vt(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),Li.color.base.onNeutral),Lg=qn.div(Eg||(Eg=Vt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Ig=qn(Hm)(Mg||(Mg=Vt(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),Ng=qn.div(Dg||(Dg=Vt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),Fg=qn.div(Cg||(Cg=Vt(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),zg=qn.span(Og||(Og=Vt(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(Li.color.base.primary3):"".concat(Li.color.surface.disabledOnSurface)}),Bg=qn(Hm)(Tg||(Tg=Vt(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Li.color.surface.disabledOnSurface):"".concat(Li.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),Yg=qn.div(Ag||(Ag=Vt(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function Vg(t){var e=t||{},n=e.arrowColor,i=void 0===n?Li.color.surface.secondaryNeutral:n,o=e.arrowLength,a=void 0===o?8:o,r=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:a,spread:void 0===r?16:r,color:i}}}}}var Hg,Wg,Ug,jg,Gg=tt.createContext({setModal:function(){return null},resetModal:function(){return null}}),$g=document.body,Xg=function(t){var e=t.modal,n=st(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ct(function(){return $g.appendChild(n),function(){$g.removeChild(n)}},[n]);var i=tt.createElement(Cn,{styles:Mn(Hg||(Hg=Vt(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Ut.createPortal(tt.createElement(Jg,{open:!!e},!!e&&i,e),n)},qg=function(t){var e=t.children,n=st(),i=n[0],o=n[1],a=dt(function(){o(void 0)},[o]);return tt.createElement(Gg.Provider,{value:{resetModal:a,setModal:o}},e,tt.createElement(Xg,{modal:i}))},Zg=function(){var t=tt.useContext(Gg);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},Kg=Tn(Wg||(Wg=Vt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Jg=qn.div(jg||(jg=Vt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Mn(Ug||(Ug=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Kg)});export{Ho as Accordion,no as ActionButton,Vo as ActionCard,ci as Alert,jt as AntdConfigProvider,jn as BACKGROUND_COLORS,Fn as BLUE_COLORS,qo as BadgeIcon,jm as Banner,eo as Button,Ao as Card,mu as Carousel,fu as Chart,Nm as Checkbox,wg as Coachmark,Wm as ContentBreakdown,bg as CopyBox,hi as DESKTOP_BREAKPOINT,gm as DatePicker,Of as DeprecatedModal,Yo as Divider,Eu as Dropdown,Sp as DynamicSelect,di as EXTRA_LARGE_DESKTOP_BREAKPOINT,Fm as EmptyData,xg as ErrorPage,oo as FALLBACK_FONT,Vi as FONT_SIZE,Yi as FONT_WEIGHT,Rp as Form,zn as GREEN_COLORS,Po as H1,Ro as H2,Lo as H3,zo as H4,nm as Hidden,Wn as ICON_COLORS,Bp as Input,df as InputWithButton,ui as LAPTOP_BREAKPOINT,ro as LINE_HEIGHT,Hm as Link,Hn as MAIN_COLORS,io as MAIN_FONT,Yu as MaterialSymbols,vf as Modal,qg as ModalProvider,Vn as NEUTRAL_COLORS,Um as Note,Io as P1,No as P1Bold,zf as Pagination,Bn as RED_COLORS,Yf as Radio,Qf as RangePicker,Gm as Section,wp as Select,Fo as SmallP,yg as Spin,hm as Steps,vg as SummaryCard,pi as TABLET_BREAKPOINT,Un as TEXT_COLORS,pm as Table,fm as Tabs,$u as Tag,Ui as ThemeProvider,_g as Timeline,mm as Timer,Mu as Tooltip,dn as Typography,Yn as YELLOW_COLORS,Vg as getCoachmarkJoyrideConfig,Li as straitsXTheme,Zg as useModal,ji as useTheme,Ri as xfersTheme};
|
|
21
|
+
*/var xl=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ja.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,r=o.length-1,s=!1;for(;r>=0;--r)a=o[r],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),s=!0):(o[r]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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((t,e)=>Math.max(t,e._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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const yl="transparent",vl={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Ur(t||yl),o=i.valid&&Ur(e||yl);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class _l{constructor(t,e,n,i){const o=e[n];i=_s([t.to,i,o,t.from]);const a=_s([t.from,o,i]);this._active=!0,this._fn=t.fn||vl[t.type||typeof a],this._easing=lr[t.easing]||lr.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=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=_s([t.to,e,i,t.from]),this._from=_s([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,r=this._to;let s;if(this._active=o!==r&&(a||e<n),!this._active)return this._target[i]=r,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,r,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}Zr.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 wl=Object.keys(Zr.animation);Zr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Zr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Zr.describe("animations",{_fallback:"animation"}),Zr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class kl{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ta(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!ta(i))return;const o={};for(const t of wl)o[t]=i[t];(Qo(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let s;for(s=a.length-1;s>=0;--s){const l=a[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,r);continue}d.cancel()}h&&h.duration?(o[l]=d=new _l(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(xl.add(this._chart,n),!0):void 0}}function Sl(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function El(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Ml(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let r,s,l,c;if(null!==e){for(r=0,s=o.length;r<s;++r){if(l=+o[r],l===n){if(i.all)continue;break}c=t.values[l],ea(c)&&(a||0===e||Aa(e)===Aa(c))&&(e+=c)}return e}}function Dl(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Cl(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Ol(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Tl(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:r,index:s}=i,l=a.axis,c=r.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,r,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Cl(o,d,a),u[s]=h,u._top=Ol(u,r,!0,i.type),u._bottom=Ol(u,r,!1,i.type)}}function Al(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Pl(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Rl=t=>"reset"===t||"none"===t,Ll=(t,e)=>e?t:Object.assign({},t);class Il{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=Dl(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Pl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=ia(n.xAxisID,Al(t,"x")),a=e.yAxisID=ia(n.yAxisID,Al(t,"y")),r=e.rAxisID=ia(n.rAxisID,Al(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,a,r),c=e.vAxisID=i(s,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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&&Za(this._data,this),t._stacked&&Pl(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(ta(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){Za(n,this);const t=this._cachedMeta;Pl(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),qa.forEach(t=>{const e="_onData"+xa(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Dl(e.vScale,e),e.stack!==n.stack&&(i=!0,Pl(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Tl(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,r=o.axis;let s,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Qo(i[t])?this.parseArrayData(n,i,t,e):ta(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[r]||h&&l[r]<h[r];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&Tl(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,r=o.axis,s=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[r]:c||o.parse(l[p],p),[s]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,r=new Array(i);let s,l,c,d;for(s=0,l=i;s<l;++s)c=s+n,d=e[c],r[s]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(ga(u,r),h),y:a.parse(ga(u,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return Ml({keys:El(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const r=i&&n._stacks[e.axis];i&&r&&(i.values=r,a=Ml(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,r=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:El(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(r);let h,u;function p(){u=i[h];const e=u[r.axis];return!ea(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,s),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],ea(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return ta(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(ia(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Sl(t,n),o=Sl(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],r=this._drawStart||0,s=this._drawCount||i.length-r,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,r,s),c=r;c<r+s;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return ws(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return ws(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,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",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,r=o[a],s=this.enableOptionSharing&&ya(n);if(r)return Ll(r,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Zr.elements[t]),p=l.resolveNamedOptions(h,u,()=>this.getContext(n,i),d);return p.$shared&&(p.$shared=s,o[a]=Object.freeze(Ll(p,s))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(a,this.getContext(t,n,e))}const l=new kl(i,s&&s.animations);return s&&s._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Rl(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Rl(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Rl(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"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,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let r;const s=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(s(o),r=t;r<a;++r)o[r]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Pl(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nl(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Ka(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,a,r,s=e._length;const l=()=>{32767!==a&&-32768!==a&&(ya(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(r=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return s}function Fl(t,e,n,i){return Qo(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),r=Math.min(o,a),s=Math.max(o,a);let l=r,c=s;Math.abs(r)>Math.abs(s)&&(l=s,c=r),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:r,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function zl(t,e,n,i){const o=t.iScale,a=t.vScale,r=o.getLabels(),s=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=s||o.parse(r[c],c),l.push(Fl(u,h,a,c));return l}function Bl(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Yl(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:s,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Vl(d,r,s,l)]=!0,o=c)),a[Vl(o,r,s,l)]=!0,t.borderSkipped=a}function Vl(t,e,n,i){var o,a,r;return i?(r=n,t=Hl(t=(o=t)===(a=e)?r:o===r?a:o,n,e)):t=Hl(t,e,n),t}function Hl(t,e,n){return"start"===t?e:"end"===t?n:t}function Wl(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Il.defaults={},Il.prototype.datasetElementType=null,Il.prototype.dataElementType=null;class Ul extends Il{parsePrimitiveData(t,e,n,i){return zl(t,e,n,i)}parseArrayData(t,e,n,i){return zl(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:r="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?r:s,c="x"===a.axis?r:s,d=[];let h,u,p,f;for(h=n,u=n+i;h<u;++h)f=e[h],p={},p[o.axis]=o.parse(ga(f,l),h),d.push(Fl(ga(f,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._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:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,r=Bl(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:r}}=this,s=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||Jo(e[r.axis])?{base:s,head:s}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),f=(e._stacks||{})[r.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||Bl(e._custom)||a===f._top||a===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const g=m.options||t[u].options;Yl(m,g,f,a),Wl(m,g,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],r=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(Jo(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!r(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const r=t.barThickness;return{min:r||Nl(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,r=this.getParsed(t),s=r._custom,l=Bl(s);let c,d,h=r[e.axis],u=0,p=n?this.applyStack(e,r,n):h;p!==h&&(u=p-h,p=h),l&&(h=s.barStart,p=s.barEnd-s.barStart,0!==h&&Aa(h)!==Aa(s.barEnd)&&(u=0),u+=h);const f=Jo(i)||l?u:i;let m=e.getPixelForValue(f);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Aa(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);m=Math.max(Math.min(m,r),i),c=m+d}if(m===e.getPixelForValue(a)){const t=Aa(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=ia(i.maxBarThickness,1/0);let r,s;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let r=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===r&&(r=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-r);const c=a-(a-Math.min(r,s))/2*l;return{chunk:Math.abs(s-r)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,r;return Jo(o)?(a=e.min*n.categoryPercentage,r=n.barPercentage):(a=o*i,r=1),{chunk:a/i,ratio:r,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);r=l.start+l.chunk*c+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else r=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(a,e.min*e.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ul.id="bar",Ul.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ul.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class jl extends Il{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=ia(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),r=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+a+", "+r+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=r.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),f=u[d]=o?r.getBasePixel():r.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(f),l&&(u.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=ia(n&&n._custom,o),i}}jl.id="bubble",jl.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},jl.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Gl extends Il{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,r=t=>+n[t];if(ta(n[t])){const{key:t="value"}=this._parsing;r=e=>+ga(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return Na(this.options.rotation-90)}_getCircumference(){return Na(this.options.circumference)}_getRotationExtents(){let t=ka,e=-ka;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,r=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min((l=this.options.cutout,c=r,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(t,e,n){let i=1,o=1,a=0,r=0;if(e<ka){const s=t,l=s+e,c=Math.cos(s),d=Math.sin(s),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>Wa(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Wa(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),g=p(Da,d,u),b=f(wa,c,h),x=f(wa+Da,d,u);i=(m-b)/2,o=(g-x)/2,a=-(m+b)/2,r=-(g+x)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:r}}(u,h,s),b=(n.width-a)/p,x=(n.height-a)/f,y=Math.max(Math.min(b,x)/2,0),v=oa(this.options.radius,y),_=(v-Math.max(v*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*v,this.offsetY=g*v,i.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/ka)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.chartArea,s=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=o&&s.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:h};f&&(a.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),g+=e,this.updateElement(n,m,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ka*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,r,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,r=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=r.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ia(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Gl.id="doughnut",Gl.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"},Gl.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Gl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return Qo(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class $l extends Il{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:s}=nr(e,i,a);this._drawStart=r,this._drawCount=s,ir(e)&&(r=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,r,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=r.axis,{spanGaps:p,segment:f}=this.options,m=Ra(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),x=g?e:{},y=Jo(n[u]),v=x[h]=a.getPixelForValue(n[h],p),_=x[u]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[u],p);x.skip=isNaN(v)||isNaN(_)||y,x.stop=p>0&&Math.abs(n[h]-b[h])>m,f&&(x.parsed=n,x.raw=l.data[p]),d&&(x.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),g||this.updateElement(e,p,x,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}$l.id="line",$l.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},$l.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Xl extends Il{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=sl(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Ns.bind(this)(t,e,n,i)}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((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,r=a.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*wa;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,f=u+this._computeAngle(h,i,p),m=a.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=f,o&&(r.animateScale&&(m=0),r.animateRotate&&(n=f=d));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Na(this.resolveDataElementOptions(t,e).angle||n):0}}Xl.id="polarArea",Xl.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Xl.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ql extends Gl{}ql.id="pie",ql.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Zl extends Il{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Ns.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let r=e;r<e+n;r++){const e=t[r],n=this.resolveDataElementOptions(r,e.active?"active":i),s=o.getPointPositionForValue(r,this.getParsed(r).r),l=a?o.xCenter:s.x,c=a?o.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,r,d,i)}}}Zl.id="radar",Zl.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Zl.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Kl{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:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ra(this.x)&&Ra(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}Kl.defaults={},Kl.defaultRoutes=void 0;const Jl={values:t=>Qo(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const r=Ta(Math.abs(a)),s=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),sl(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Ta(t)));return 1===i||2===i||5===i?Jl.numeric.call(this,t,e,n):""}};var Ql={formatters:Jl};function tc(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,r=o[0],s=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,r=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===r&&(e.push(t[o]),a++,r=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((s-r)/(a-1)):null;for(ec(e,l,c,Jo(i)?0:r-i,r),t=0,n=a-1;t<n;t++)ec(e,l,c,o[t],o[t+1]);return ec(e,l,c,s,Jo(i)?e.length:s+i),l}return ec(e,l,c),l}function ec(t,e,n,i,o){const a=ia(i,0),r=Math.min(ia(o,t.length),t.length);let s,l,c,d=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}Zr.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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Ql.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Zr.route("scale.ticks","color","","color"),Zr.route("scale.grid","color","","borderColor"),Zr.route("scale.grid","borderColor","","borderColor"),Zr.route("scale.title","color","","color"),Zr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Zr.describe("scales",{_fallback:"scale"}),Zr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const nc=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ic(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function oc(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,r=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-s||c>r+s)))return c}function rc(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const n=vs(t.font,e),i=ys(t.padding);return(Qo(t.text)?t.text.length:1)*n.lineHeight+i.height}function lc(t,e,n){let i=tr(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class cc extends Kl{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:n,_suggestedMax:i}=this;return t=na(t,Number.POSITIVE_INFINITY),e=na(e,Number.NEGATIVE_INFINITY),n=na(n,Number.POSITIVE_INFINITY),i=na(i,Number.NEGATIVE_INFINITY),{min:na(t,n),max:na(e,i),minDefined:ea(t),maxDefined:ea(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const r=this.getMatchingVisibleMetas();for(let s=0,l=r.length;s<l;++s)e=r[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:na(n,na(i,n)),max:na(i,na(n,i))}}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(){ra(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=oa(e,(o-i)/2),r=(t,e)=>n&&0===t?0:t+e;return{min:r(i,-Math.abs(a)),max:r(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=r<this.ticks.length;this._convertTicksToLabels(s?ic(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=tc(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ra(this.options.afterUpdate,[this])}beforeSetDimensions(){ra(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(){ra(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ra(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ra(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=ra(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){ra(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ra(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,r,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=Ua(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),r=this.maxHeight-rc(t.grid)-e.padding-sc(t.title,this.chart.options.font),s=Math.sqrt(d*d+h*h),l=Fa(Math.min(Math.asin(Ua((c.highest.height+6)/a,-1,1)),Math.asin(Ua(r/s,-1,1))-Math.asin(Ua(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){ra(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ra(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=sc(i,e.options.font);if(r?(t.width=this.maxWidth,t.height=rc(o)+a):(t.height=this.maxHeight,t.width=rc(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),s=2*n.padding,l=Na(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(r){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),r?(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,n,i){const{ticks:{align:o,padding:a},position:r}=this.options,s=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;s?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+a}}_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(){ra(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Jo(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ic(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let r,s,l,c,d,h,u,p,f,m,g,b=0,x=0;for(r=0;r<e;++r){if(c=t[r].label,d=this._resolveTickFontOptions(r),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,f=m=0,Jo(c)||Qo(c)){if(Qo(c))for(s=0,l=c.length;s<l;++s)g=c[s],Jo(g)||Qo(g)||(f=Kr(n,u.data,u.gc,f,g),m+=p)}else f=Kr(n,u.data,u.gc,f,c),m=p;o.push(f),a.push(m),b=Math.max(f,b),x=Math.max(m,x)}!function(t,e){sa(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const y=o.indexOf(b),v=a.indexOf(x),_=t=>({width:o[t]||0,height:a[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(v),widths:o,heights:a}}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 Ua(this._alignToPixels?Qr(this.chart,e,0):e,-32768,32767)}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 n=e[t];return n.$context||(n.$context=function(t,e,n){return ws(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ws(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Na(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,r=o.offset,s=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=rc(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,f=function(t){return Qr(n,t,u)};let m,g,b,x,y,v,_,w,k,S,E,M;if("top"===a)m=f(this.bottom),v=this.bottom-c,w=m-p,S=f(t.top)+p,M=t.bottom;else if("bottom"===a)m=f(this.top),S=t.top,M=f(t.bottom)-p,v=m+p,w=this.top+c;else if("left"===a)m=f(this.right),y=this.right-c,_=m-p,k=f(t.left)+p,E=t.right;else if("right"===a)m=f(this.left),k=t.left,E=f(t.right)-p,y=m+p,_=this.left+c;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}S=t.top,M=t.bottom,v=m+p,w=v+c}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if(ta(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-p,_=y-c,k=t.left,E=t.right}const D=ia(i.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/D));for(g=0;g<l;g+=C){const t=o.setContext(this.getContext(g)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=oc(this,g,r),void 0!==b&&(x=Qr(n,b,e),s?y=_=k=E=x:v=w=S=M=x,d.push({tx1:y,ty1:v,tx2:_,ty2:w,x1:k,y1:S,x2:E,y2:M,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),r=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=o,h=rc(n.grid),u=h+c,p=d?-c:u,f=-Na(this.labelRotation),m=[];let g,b,x,y,v,_,w,k,S,E,M,D,C="middle";if("top"===i)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,v=t.x}else if("x"===e){if("center"===i)_=(t.top+t.bottom)/2+u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)v=(t.left+t.right)/2-u;else if(ta(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?C="top":"end"===s&&(C="bottom"));const O=this._getLabelSizes();for(g=0,b=r.length;g<b;++g){x=r[g],y=x.label;const t=o.setContext(this.getContext(g));k=this.getPixelForTick(g)+o.labelOffset,S=this._resolveTickFontOptions(g),E=S.lineHeight,M=Qo(y)?y.length:1;const e=M/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(a?(v=k,"inner"===w&&(u=g===b-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),D="top"===i?"near"===l||0!==f?-M*E+E/2:"center"===l?-O.highest.height/2-e*E+E:-O.highest.height+E/2:"near"===l||0!==f?E/2:"center"===l?O.highest.height/2-e*E:O.highest.height-M*E,d&&(D*=-1)):(_=k,D=(1-M)*E/2),t.showLabelBackdrop){const e=ys(t.backdropPadding),n=O.heights[g],i=O.widths[g];let o=_+D-e.top,a=v-e.left;switch(C){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:f,label:y,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:D,textAlign:u,textBaseline:C,translation:[v,_],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Na(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,r=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l+=r)):(l=this.right-a,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=r/2):(s="left",l-=r)):(l=this.left+a,"near"===n?s="left":"center"===n?(s="center",l+=r/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const r=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=Qr(t,this.left,o)-o/2,l=Qr(t,this.right,a)+a/2,c=d=r):(c=Qr(t,this.top,o)-o/2,d=Qr(t,this.bottom,a)+a/2,s=l=r),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&os(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),cs(e,a,0,t.textOffset,n,t)}n&&rs(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=vs(n.font),a=ys(n.padding),r=n.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||ta(e)?(s+=a.bottom,Qo(n.text)&&(s+=o.lineHeight*(n.text.length-1))):s+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:r,right:s,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,f=0;const m=r-o,g=s-a;if(t.isHorizontal()){if(u=er(i,a,s),ta(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:nc(t,n,e);h=s-a}else{if(ta(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-g+e}else u="center"===n?(c.left+c.right)/2-g+e:nc(t,n,e);p=er(i,r,o),f="left"===n?-Da:Da}return{titleX:u,titleY:p,maxWidth:h,rotation:f}}(this,s,e,r);cs(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:lc(r,e,i),textBaseline:"middle",translation:[l,c]})}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,n=ia(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===cc.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return vs(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class dc{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=ua(Object.create(null),[n?Zr.get(n):{},Zr.get(e),t.defaults]);Zr.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),r=e[n].split("."),s=r.pop(),l=r.join(".");Zr.route(a,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&Zr.describe(e,t.descriptors)}(t,a,n),this.override&&Zr.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Zr[i]&&(delete Zr[i][n],this.override&&delete Gr[n])}}var hc=new class{constructor(){this.controllers=new dc(Il,"datasets",!0),this.elements=new dc(Kl,"elements"),this.plugins=new dc(Object,"plugins"),this.scales=new dc(cc,"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,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):sa(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=xa(t);ra(n["before"+i],[],n),e[t](n),ra(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class uc extends Il{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=nr(e,n,i);if(this._drawStart=o,this._drawCount=a,ir(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:r},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=hc.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:r,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=r.axis,{spanGaps:f,segment:m}=this.options,g=Ra(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let x=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=b?e:{},y=Jo(n[p]),v=f[u]=a.getPixelForValue(n[u],c),_=f[p]=o||y?r.getBasePixel():r.getPixelForValue(s?this.applyStack(r,n,s):n[p],c);f.skip=isNaN(v)||isNaN(_)||y,f.stop=c>0&&Math.abs(n[u]-x[u])>g,m&&(f.parsed=n,f.raw=l.data[c]),h&&(f.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,f,i),x=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function pc(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}uc.id="scatter",uc.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},uc.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class fc{constructor(t){this.options=t||{}}init(t){}formats(){return pc()}parse(t,e){return pc()}format(t,e){return pc()}add(t,e,n){return pc()}diff(t,e,n){return pc()}startOf(t,e,n){return pc()}endOf(t,e){return pc()}}fc.override=function(t){Object.assign(fc.prototype,t)};var mc={_date:fc};function gc(t,e,n,i){const{controller:o,data:a,_sorted:r}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&r&&a.length){const t=s._reversePixels?Xa:$a;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),r=t(a,e,n+o);return{lo:i.lo,hi:r.hi}}}}return{lo:0,hi:a.length-1}}function xc(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),r=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:s}=a[t],{lo:l,hi:c}=gc(a[t],e,r,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function yc(t,e,n,i,o){const a=[];if(!o&&!t.isPointInArea(e))return a;return xc(t,n,e,function(n,r,s){(o||is(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:r,index:s})},!0),a}function vc(t,e,n,i,o,a){let r=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return xc(t,n,e,function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!(!!a||t.isPointInArea(u))&&!h)return;const p=s(e,u);p<l?(r=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&r.push({element:n,datasetIndex:c,index:d})}),r}function _c(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?vc(t,e,n,i,o,a):function(t,e,n,i){let o=[];return xc(t,n,e,function(t,n,a){const{startAngle:r,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Ba(t,{x:e.x,y:e.y});Wa(l,r,s)&&o.push({element:t,datasetIndex:n,index:a})}),o}(t,e,n,o):[]}function wc(t,e,n,i,o){const a=[],r="x"===n?"inXRange":"inYRange";let s=!1;return xc(t,n,e,(t,i,l)=>{t[r](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:a}var kc={evaluateInteractionItems:xc,modes:{index(t,e,n,i){const o=Zs(e,t),a=n.axis||"x",r=n.includeInvisible||!1,s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;let s=n.intersect?yc(t,o,a,i,r):_c(t,o,a,!1,i,r);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>yc(t,Zs(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Zs(e,t),a=n.axis||"xy",r=n.includeInvisible||!1;return _c(t,o,a,n.intersect,i,r)},x:(t,e,n,i)=>wc(t,Zs(e,t),"x",n.intersect,i),y:(t,e,n,i)=>wc(t,Zs(e,t),"y",n.intersect,i)}};const Sc=["left","top","right","bottom"];function Ec(t,e){return t.filter(t=>t.pos===e)}function Mc(t,e){return t.filter(t=>-1===Sc.indexOf(t.pos)&&t.box.axis===e)}function Dc(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Cc(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!Sc.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,r,s;for(a=0,r=t.length;a<r;++a){s=t[a];const{fullSize:r}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:r&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:r&&e.availableHeight)}return n}function Oc(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Tc(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ac(t,e,n,i){const{pos:o,box:a}=n,r=t.maxPadding;if(!ta(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Tc(r,a.getPadding());const s=Math.max(0,e.outerWidth-Oc(r,t,"left","right")),l=Math.max(0,e.outerHeight-Oc(r,t,"top","bottom")),c=s!==t.w,d=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Pc(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Rc(t,e,n,i){const o=[];let a,r,s,l,c,d;for(a=0,r=t.length,c=0;a<r;++a){s=t[a],l=s.box,l.update(s.width||e.w,s.height||e.h,Pc(s.horizontal,e));const{same:r,other:h}=Ac(e,n,s,i);c|=r&&o.length,d=d||h,l.fullSize||o.push(s)}return c&&Rc(o,e,n,i)||d}function Lc(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ic(t,e,n,i){const o=n.padding;let{x:a,y:r}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,a=l.size||t.height;ya(l.start)&&(r=l.start),t.fullSize?Lc(t,o.left,r,n.outerWidth-o.right-o.left,a):Lc(t,e.left+l.placed,r,i,a),l.start=r,l.placed+=i,r=t.bottom}else{const i=e.h*c,r=l.size||t.width;ya(l.start)&&(a=l.start),t.fullSize?Lc(t,a,o.top,r,n.outerHeight-o.bottom-o.top):Lc(t,a,e.top+l.placed,r,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=r}Zr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Nc={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=ys(t.options.layout.padding),a=Math.max(e-o.width,0),r=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,a,r,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:r,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:r&&a+r,stackWeight:s});return e}(t),n=Dc(e.filter(t=>t.box.fullSize),!0),i=Dc(Ec(e,"left"),!0),o=Dc(Ec(e,"right")),a=Dc(Ec(e,"top"),!0),r=Dc(Ec(e,"bottom")),s=Mc(e,"x"),l=Mc(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(r).concat(s),chartArea:Ec(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(r).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;sa(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),u=Object.assign({},o);Tc(u,ys(i));const p=Object.assign({maxPadding:u,w:a,h:r,x:o.left,y:o.top},o),f=Cc(l.concat(c),h);Rc(s.fullSize,p,h,f),Rc(l,p,h,f),Rc(c,p,h,f)&&Rc(l,p,h,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ic(s.leftAndTop,p,h,f),p.x+=p.w,p.y+=p.h,Ic(s.rightAndBottom,p,h,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},sa(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Fc{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class zc extends Fc{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bc="$chartjs",Yc={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vc=t=>null===t||""===t;const Hc=!!tl&&{passive:!0};function Wc(t,e,n){t.canvas.removeEventListener(e,n,Hc)}function Uc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function jc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.addedNodes,i),e=e&&!Uc(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Gc(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||Uc(n.removedNodes,i),e=e&&!Uc(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const $c=new Map;let Xc=0;function qc(){const t=window.devicePixelRatio;t!==Xc&&(Xc=t,$c.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Zc(t,e,n){const i=t.canvas,o=i&&js(i);if(!o)return;const a=Qa((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),r=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)});return r.observe(o),function(t,e){$c.size||window.addEventListener("resize",qc),$c.set(t,e)}(t,a),r}function Kc(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){$c.delete(t),$c.size||window.removeEventListener("resize",qc)}(t)}function Jc(t,e,n){const i=t.canvas,o=Qa(e=>{null!==t.ctx&&n(function(t,e){const n=Yc[t.type]||t.type,{x:i,y:o}=Zs(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Hc)}(i,e,o),o}class Qc extends Fc{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Bc]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vc(o)){const e=el(t,"width");void 0!==e&&(t.width=e)}if(Vc(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=el(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Bc])return!1;const n=e[Bc].initial;["height","width"].forEach(t=>{const i=n[t];Jo(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[Bc],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:jc,detach:Gc,resize:Zc}[e]||Jc;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Kc,detach:Kc,resize:Kc}[e]||Wc)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return Js(t,e,n,i)}isAttached(t){const e=js(t);return!(!e||!e.isConnected)}}class td{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===ra(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){Jo(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 n=t&&t.config,i=ia(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(hc.plugins.items);for(let t=0;t<i.length;t++)n.push(hc.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],r=t.getContext();for(const s of e){const e=s.id,l=ed(i[e],o);null!==l&&a.push({plugin:s,options:nd(t.config,{plugin:s,local:n[e]},l,r)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function ed(t,e){return e||!1!==t?!0===t?{}:t:null}function nd(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(i,a);return n&&e.defaults&&r.push(e.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function id(t,e){const n=Zr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function od(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function rd(t){const e=t.options||(t.options={});e.plugins=ia(e.plugins,{}),e.scales=function(t,e){const n=Gr[t.type]||{scales:{}},i=e.scales||{},o=id(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!ta(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=od(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(s,o),c=n.scales||{};a[s]=a[s]||t,r[t]=pa(Object.create(null),[{axis:s},e,c[s],c[l]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||id(o,e),l=(Gr[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||a[e]||e;r[o]=r[o]||Object.create(null),pa(r[o],[{axis:e},i[o],l[t]])})}),Object.keys(r).forEach(t=>{const e=r[t];pa(e,[Zr.scales[e.type],Zr.scale])}),r}(t,e)}function sd(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ld=new Map,cd=new Set;function dd(t,e){let n=ld.get(t);return n||(n=e(),ld.set(t,n),cd.add(n)),n}const hd=(t,e,n)=>{const i=ga(e,n);void 0!==i&&t.add(i)};class ud{constructor(t){this._config=function(t){return(t=t||{}).data=sd(t.data),rd(t),t}(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=sd(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(),rd(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return dd(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return dd(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return dd(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return dd(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),r=a.get(e);if(r)return r;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>hd(s,t,e))),e.forEach(t=>hd(s,i,t)),e.forEach(t=>hd(s,Gr[o]||{},t)),e.forEach(t=>hd(s,Zr,t)),e.forEach(t=>hd(s,$r,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),cd.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Gr[e]||{},Zr.datasets[e]||{},{type:e},Zr,$r]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=pd(this._resolverCache,t,i);let s=a;if(function(t,e){const{isScriptable:n,isIndexable:i}=Es(t);for(const o of e){const e=n(o),a=i(o),r=(a||e)&&t[o];if(e&&(va(r)||fd(r))||a&&Qo(r))return!0}return!1}(a,e)){o.$shared=!1;s=Ss(a,n=va(n)?n():n,this.createResolver(t,n,r))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=pd(this._resolverCache,t,n);return ta(e)?Ss(o,e,void 0,i):o}}function pd(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);if(!a){a={resolver:ks(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,a)}return a}const fd=t=>ta(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||va(t[n]),!1);const md=["top","bottom","left","right","chartArea"];function gd(t,e){return"top"===t||"bottom"===t||-1===md.indexOf(t)&&"x"===e}function xd(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function yd(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ra(n&&n.onComplete,[t],e)}function vd(t){const e=t.chart,n=e.options.animation;ra(n&&n.onProgress,[t],e)}function _d(t){return Us()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wd={},kd=t=>{const e=_d(t);return Object.values(wd).filter(t=>t.canvas===e).pop()};function Sd(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class Ed{constructor(t,e){const n=this.config=new ud(e),i=_d(t),o=kd(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Us()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?zc:Qc}(i)),this.platform.updateConfig(n);const r=this.platform.acquireContext(i,a.aspectRatio),s=r&&r.canvas,l=s&&s.height,c=s&&s.width;this.id=Ko(),this.ctx=r,this.canvas=s,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new td,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],wd[this.id]=this,r&&s?(xl.listen(this,"complete",yd),xl.listen(this,"progress",vd),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return Jo(t)?e&&o?o:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ts(this.canvas,this.ctx),this}stop(){return xl.stop(this),this}resize(t,e){xl.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),r=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Qs(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),ra(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){sa(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=od(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}}))),sa(o,e=>{const o=e.options,a=o.id,r=od(a,o),s=ia(o.type,e.dtype);void 0!==o.position&&gd(o.position,r)===gd(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;if(a in n&&n[a].type===s)l=n[a];else{l=new(hc.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),sa(i,(t,e)=>{t||delete n[e]}),sa(n,t=>{Nc.configure(this,t,t.options),Nc.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(xd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||id(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=hc.getController(a),{datasetElementType:i,dataElementType:r}=Zr.datasets[a];Object.assign(e.prototype,{dataElementType:hc.getElement(r),datasetElementType:i&&hc.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){sa(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||sa(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(xd("z","_idx"));const{_active:r,_lastEvent:s}=this;s?this._eventHandler(s,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){sa(this.scales,t=>{Nc.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);_a(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){Sd(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!_a(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Nc.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],sa(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,va(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xl.has(this)?this.attached&&!xl.running(this)&&xl.start(this):(this.draw(),yd({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))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,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))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,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&os(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&rs(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return is(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=kc.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=ws(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);ya(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i: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(),xl.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(),ts(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete wd[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};sa(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const r=()=>{i("attach",r),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){sa(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},sa(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,r,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),r=0,s=t.length;r<s;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!la(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),a=o(e,t),r=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),r.length&&i.mode&&this.updateHoverStyle(r,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,r=this._getActiveElements(t,i,n,a),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,ra(o.onHover,[t,r,this],this),s&&ra(o.onClick,[t,r,this],this));const c=!la(r,i);return(c||e)&&(this._active=r,this._updateHoverStyles(r,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const Md=()=>sa(Ed.instances,t=>t._plugins.invalidate()),Dd=!0;function Cd(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:r,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(a,r,s,i-c,n+c),l>o?(c=o/l,t.arc(a,r,l,n+c,i-c,!0)):t.arc(a,r,o,n+Da,i-Da),t.closePath(),t.clip()}function Od(t,e,n,i){const o=gs(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const a=(n-e)/2,r=Math.min(a,i*e/2),s=t=>{const e=(n-Math.min(a,t))*i/2;return Ua(t,0,Math.min(a,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:Ua(o.innerStart,0,r),innerEnd:Ua(o.innerEnd,0,r)}}function Td(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ad(t,e,n,i,o,a){const{x:r,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const f=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const m=(f-Math.max(.001,f*h-n/wa)/h)/2,g=l+m+p,b=o-m-p,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:_}=Od(e,u,h,b-g),w=h-x,k=h-y,S=g+x/w,E=b-y/k,M=u+v,D=u+_,C=g+v/M,O=b-_/D;if(t.beginPath(),a){if(t.arc(r,s,h,S,E),y>0){const e=Td(k,E,r,s);t.arc(e.x,e.y,y,E,b+Da)}const e=Td(D,b,r,s);if(t.lineTo(e.x,e.y),_>0){const e=Td(D,O,r,s);t.arc(e.x,e.y,_,b+Da,O+Math.PI)}if(t.arc(r,s,u,b-_/u,g+v/u,!0),v>0){const e=Td(M,C,r,s);t.arc(e.x,e.y,v,C+Math.PI,g-Da)}const n=Td(w,g,r,s);if(t.lineTo(n.x,n.y),x>0){const e=Td(w,S,r,s);t.arc(e.x,e.y,x,g-Da,S)}}else{t.moveTo(r,s);const e=Math.cos(S)*h+r,n=Math.sin(S)*h+s;t.lineTo(e,n);const i=Math.cos(E)*h+r,o=Math.sin(E)*h+s;t.lineTo(i,o)}t.closePath()}function Pd(t,e,n,i,o,a){const{options:r}=e,{borderWidth:s,borderJoinStyle:l}=r,c="inner"===r.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:r,fullCircles:s}=e,l=Math.max(e.outerRadius-r,0),c=e.innerRadius+r;let d;for(n&&Cd(t,e,a+ka),t.beginPath(),t.arc(i,o,c,a+ka,a,!0),d=0;d<s;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+ka),d=0;d<s;++d)t.stroke()}(t,e,c),c&&Cd(t,e,o),Ad(t,e,n,i,o,a),t.stroke())}Object.defineProperties(Ed,{defaults:{enumerable:Dd,value:Zr},instances:{enumerable:Dd,value:wd},overrides:{enumerable:Dd,value:Gr},registry:{enumerable:Dd,value:hc},version:{enumerable:Dd,value:"3.9.1"},getChart:{enumerable:Dd,value:kd},register:{enumerable:Dd,value:(...t)=>{hc.add(...t),Md()}},unregister:{enumerable:Dd,value:(...t)=>{hc.remove(...t),Md()}}});class Rd extends Kl{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Ba(i,{x:t,y:e}),{startAngle:r,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=ia(d,s-r)>=ka||Wa(o,r,s),p=ja(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,d=(a+r+l+s)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>ka?Math.floor(n/ka):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(i){r=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=wa&&(r=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:a,startAngle:r,circumference:s}=e;let l=e.endAngle;if(a){Ad(t,e,n,i,r+ka,o);for(let e=0;e<a;++e)t.fill();isNaN(s)||(l=r+s%ka,s%ka===0&&(l+=ka))}return Ad(t,e,n,i,l,o),t.fill(),l}(t,this,r,o,a);Pd(t,this,r,o,s,a),t.restore()}}function Ld(t,e,n=e){t.lineCap=ia(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ia(n.borderDash,e.borderDash)),t.lineDashOffset=ia(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ia(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ia(n.borderWidth,e.borderWidth),t.strokeStyle=ia(n.borderColor,e.borderColor)}function Id(t,e,n){t.lineTo(n.x,n.y)}function Nd(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:r,end:s}=e,l=Math.max(o,r),c=Math.min(a,s),d=o<r&&a<r||o>s&&a>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Fd(t,e,n,i){const{points:o,options:a}=e,{count:r,start:s,loop:l,ilen:c}=Nd(o,n,i),d=function(t){return t.stepped?ss:t.tension||"monotone"===t.cubicInterpolationMode?ls:Id}(a);let h,u,p,{move:f=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(s+(m?c-h:h))%r],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):d(t,p,u,m,a.stepped),p=u);return l&&(u=o[(s+(m?c:0))%r],d(t,p,u,m,a.stepped)),!!l}function zd(t,e,n,i){const o=e.points,{count:a,start:r,ilen:s}=Nd(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,f,m,g=0,b=0;const x=t=>(r+(c?s-t:t))%a,y=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=o[x(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>f&&(f=n),g=(b*g+e)/++b):(y(),t.lineTo(e,n),u=i,b=0,p=f=n),m=n}y()}function Bd(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?zd:Fd}Rd.id="arc",Rd.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Rd.defaultRoutes={backgroundColor:"backgroundColor"};const Yd="function"==typeof Path2D;function Vd(t,e,n,i){Yd&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Ld(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,r=Bd(e);for(const s of o)Ld(t,a,s.style),t.beginPath(),r(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Hd extends Kl{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Ws(this._points,n,t,i,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=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:r,end:s}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return ml(t,!0===i?[{start:r,end:s,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let r,s=e,l=t[e];for(r=e+1;r<=n;++r){const n=t[r%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(r-1)%o,loop:i}),e=s=n.stop?r:null):(s=r,l.skip&&(e=r)),l=n}return null!==s&&a.push({start:e%o,end:s%o,loop:i}),a}(n,r,s<r?s+o:s,!!t._fullLoop&&0===r&&s===o-1),n,e)}(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,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=fl(this,{property:e,start:i,end:i});if(!a.length)return;const r=[],s=function(t){return t.stepped?il:t.tension||"monotone"===t.cubicInterpolationMode?ol:nl}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){r.push(h);continue}const p=s(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,n){return Bd(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Bd(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const r of i)a&=o(t,this,r,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Vd(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wd(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Hd.id="line",Hd.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Hd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Hd.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Ud extends Kl{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,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Wd(this,t,"x",e)}inYRange(t,e){return Wd(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!is(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,es(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function jd(t,e){const{x:n,y:i,base:o,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let s,l,c,d,h;return t.horizontal?(h=r/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,s=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:s,top:c,right:l,bottom:d}}function Gd(t,e,n,i){return t?0:Ua(e,n,i)}function $d(t){const e=jd(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=bs(i);return{t:Gd(o.top,a.top,0,n),r:Gd(o.right,a.right,0,e),b:Gd(o.bottom,a.bottom,0,n),l:Gd(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=xs(o),r=Math.min(e,n),s=t.borderSkipped,l=i||ta(o);return{topLeft:Gd(!l||s.top||s.left,a.topLeft,0,r),topRight:Gd(!l||s.top||s.right,a.topRight,0,r),bottomLeft:Gd(!l||s.bottom||s.left,a.bottomLeft,0,r),bottomRight:Gd(!l||s.bottom||s.right,a.bottomRight,0,r)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function Xd(t,e,n,i){const o=null===e,a=null===n,r=t&&!(o&&a)&&jd(t,i);return r&&(o||ja(e,r.left,r.right))&&(a||ja(n,r.top,r.bottom))}function qd(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zd(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,r=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+r,radius:t.radius}}Ud.id="point",Ud.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Ud.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Kd extends Kl{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:n,backgroundColor:i}}=this,{inner:o,outer:a}=$d(this),r=(s=a.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?hs:qd;var s;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),r(t,Zd(a,e,o)),t.clip(),r(t,Zd(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),r(t,Zd(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Xd(this,t,e,n)}inXRange(t,e){return Xd(this,t,null,e)}inYRange(t,e){return Xd(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Jd(t,e,n,i){if(i)return;let o=e[t],a=n[t];return"angle"===t&&(o=Ha(o),a=Ha(a)),{property:t,start:o,end:a}}function Qd(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function th(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function eh(t,e){let n=[],i=!1;return Qo(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Qd(t,e,o);const r=o[t],s=o[e];null!==i?(a.push({x:r.x,y:i}),a.push({x:s.x,y:i})):null!==n&&(a.push({x:n,y:r.y}),a.push({x:n,y:s.y}))}),a}(t,e),n.length?new Hd({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function nh(t){return t&&!1!==t.fill}function ih(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ea(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function oh(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=ia(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(ta(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return ea(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function rh(t,e,n){const i=[];for(let o=0;o<n.length;o++){const a=n[o],{first:r,last:s,point:l}=sh(a,e,"x");if(!(!l||r&&s))if(r)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function sh(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],a=t.segments,r=t.points;let s=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],i=r[e.start][n],c=r[e.end][n];if(ja(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}Kd.id="bar",Kd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Kd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class lh{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:a}=this;return e=e||{start:0,end:ka},t.arc(i,o,a,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function ch(t){const{chart:e,fill:n,line:i}=t;if(ea(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],a=i.segments,r=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(eh({x:null,y:e.bottom},i));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)rh(o,r[t],s)}return new Hd({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,a=i.reverse?e.max:e.min,r=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:ta(t)?t.value:e.getBaseValue(),i}(n,e,a),s=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,a);return new lh({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<o;++t)s.push(e.getPointPositionForValue(t,r));return s}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:ta(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(ea(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof lh?o:eh(o,i)}function dh(t,e,n){const i=ch(e),{line:o,scale:a,axis:r}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:h=c}=l||{};i&&o.points.length&&(os(t,n),function(t,e){const{line:n,target:i,above:o,below:a,area:r,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&a!==o&&(hh(t,i,r.top),uh(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),hh(t,i,r.bottom));uh(t,{line:n,target:i,color:a,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:d,below:h,area:n,scale:a,axis:r}),rs(t))}function hh(t,e,n){const{segments:i,points:o}=e;let a=!0,r=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],d=o[Qd(i,l,o)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,s,{move:r}),r?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function uh(t,e){const{line:n,target:i,property:o,color:a,scale:r}=e,s=function(t,e,n){const i=t.segments,o=t.points,a=e.points,r=[];for(const t of i){let{start:i,end:s}=t;s=Qd(i,s,o);const l=Jd(n,o[i],o[s],t.loop);if(!e.segments){r.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=fl(e,l);for(const e of c){const i=Jd(n,a[e.start],a[e.end],e.loop),s=pl(t,o,i);for(const t of s)r.push({source:t,target:e,start:{[n]:th(l,i,"start",Math.max)},end:{[n]:th(l,i,"end",Math.min)}})}}return r}(n,i,o);for(const{source:e,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=a}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,ph(t,r,h&&Jd(o,c,d)),t.beginPath();const u=!!n.pathSegment(t,e);let p;if(h){u?t.closePath():fh(t,i,d,o);const e=!!i.pathSegment(t,l,{move:u,reverse:!0});p=u&&e,p||fh(t,i,c,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function ph(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:a,start:r,end:s}=n||{};"x"===a&&(t.beginPath(),t.rect(r,i,s-r,o-i),t.clip())}function fh(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var mh={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let a,r,s,l;for(r=0;r<i;++r)a=t.getDatasetMeta(r),s=a.dataset,l=null,s&&s.options&&s instanceof Hd&&(l={visible:t.isDatasetVisible(r),index:r,fill:oh(s,r,i),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:s}),a.$filler=l,o.push(l);for(r=0;r<i;++r)l=o[r],l&&!1!==l.fill&&(l.fill=ih(o,r,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(a,n.axis),i&&n.fill&&dh(t.ctx,n,a))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;nh(n)&&dh(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;nh(i)&&"beforeDatasetDraw"===n.drawTime&&dh(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const gh=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class bh extends Kl{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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=ra(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=vs(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:s}=gh(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,r,s)+10):(c=this.maxHeight,l=this._fitCols(a,o,r,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+r;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+f+2*r>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),s[p]={left:0,top:u,row:h,width:f,height:i},l[l.length-1]+=f+r}),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=r,h=0,u=0,p=0,f=0;return this.legendItems.forEach((t,a)=>{const m=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*r>c&&(d+=h+r,l.push({width:h,height:u}),p+=h+r,f++,h=u=0),s[a]={left:p,top:u,col:f,width:m,height:i},h=Math.max(h,m),u+=i+r}),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=ll(o,this.left,this.width);if(this.isHorizontal()){let o=0,r=er(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,r=er(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=a.leftForLtr(a.x(r),s.width),r+=s.width+i}else{let o=0,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,r=er(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=r,s.left+=this.left+i,s.left=a.leftForLtr(a.x(s.left),s.width),r+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;os(t,this),this._draw(),rs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,r=Zr.color,s=ll(t.rtl,this.left,this.width),l=vs(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:f,boxHeight:m,itemHeight:g}=gh(a,h),b=this.isHorizontal(),x=this._computeTitleHeight();p=b?{x:er(o,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:er(o,this.top+x+d,this.bottom-e[0].height),line:0},cl(this.ctx,t.textDirection);const y=g+d;this.legendItems.forEach((v,_)=>{i.strokeStyle=v.fontColor||c,i.fillStyle=v.fontColor||c;const w=i.measureText(v.text).width,k=s.textAlign(v.textAlign||(v.textAlign=a.textAlign)),S=f+u+w;let E=p.x,M=p.y;s.setWidth(this.width),b?_>0&&E+S+d>this.right&&(M=p.y+=y,p.line++,E=p.x=er(o,this.left+d,this.right-n[p.line])):_>0&&M+y>this.bottom&&(E=p.x=E+e[p.line].width+d,p.line++,M=p.y=er(o,this.top+x+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(f)||f<=0||isNaN(m)||m<0)return;i.save();const o=ia(n.lineWidth,1);if(i.fillStyle=ia(n.fillStyle,r),i.lineCap=ia(n.lineCap,"butt"),i.lineDashOffset=ia(n.lineDashOffset,0),i.lineJoin=ia(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=ia(n.strokeStyle,r),i.setLineDash(ia(n.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,f/2);ns(i,r,l,e+u,a.pointStyleWidth&&f)}else{const a=e+Math.max((h-m)/2,0),r=s.leftForLtr(t,f),l=xs(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?hs(i,{x:r,y:a,w:f,h:m,radius:l}):i.rect(r,a,f,m),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(E),M,v),E=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,E+f+u,b?E+S:this.right,t.rtl),function(t,e,n){cs(i,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(E),M,v),b?p.x+=S+d:p.y+=y}),dl(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=vs(e.font),i=ys(e.padding);if(!e.display)return;const o=ll(t.rtl,this.left,this.width),a=this.ctx,r=e.position,s=n.size/2,l=i.top+s;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=er(t.align,d,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+er(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=er(r,d,d+h);a.textAlign=o.textAlign(tr(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,cs(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=vs(t.font),n=ys(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(ja(t,this.left,this.right)&&ja(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],ja(t,i.left,i.left+i.width)&&ja(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(i,n);i&&!o&&ra(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&ra(e.onHover,[t,n,this],this)}else n&&ra(e.onClick,[t,n,this],this)}}var xh={id:"legend",_element:bh,start(t,e,n){const i=t.legend=new bh({ctx:t.ctx,options:n,chart:t});Nc.configure(t,i,n),Nc.addBox(t,i)},stop(t){Nc.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Nc.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const r=t.controller.getStyle(n?0:void 0),s=ys(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:r.borderColor,pointStyle:i||r.pointStyle,rotation:r.rotation,textAlign:o||r.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const yh={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=Ya(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function vh(t,e){return e&&(Qo(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function _h(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function wh(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:r,value:s}=a.getLabelAndValue(o);return{chart:t,label:r,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function kh(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:r,boxHeight:s}=e,l=vs(e.bodyFont),c=vs(e.titleFont),d=vs(e.footerFont),h=a.length,u=o.length,p=i.length,f=ys(e.padding);let m=f.height,g=0,b=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b){m+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing}u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let x=0;const y=function(t){g=Math.max(g,n.measureText(t).width+x)};return n.save(),n.font=c.string,sa(t.title,y),n.font=l.string,sa(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,sa(i,t=>{sa(t.before,y),sa(t.lines,y),sa(t.after,y)}),x=0,n.font=d.string,sa(t.footer,y),n.restore(),g+=f.width,{width:g,height:m}}function Sh(t,e,n,i){const{x:o,width:a}=n,{width:r,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=a/2?c="left":o>=r-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,r=n.caretSize+n.caretPadding;return"left"===t&&o+a+r>e.width||"right"===t&&o-a-r<0||void 0}(c,t,e,n)&&(c="center"),c}function Eh(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Sh(t,e,n,i),yAlign:i}}function Mh(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:r}=t,{xAlign:s,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(r);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(d,u)+o:"right"===s&&(f+=Math.max(h,p)+o),{x:Ua(f,0,i.width-e.width),y:Ua(m,0,i.height-e.height)}}function Dh(t,e,n){const i=ys(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ch(t){return vh([],_h(t))}function Oh(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Th extends Kl{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,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new kl(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,ws(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}getBeforeBody(t,e){return Ch(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return sa(t,t=>{const e={before:[],lines:[],after:[]},o=Oh(n,t);vh(e.before,_h(o.beforeLabel.call(this,t))),vh(e.lines,o.label.call(this,t)),vh(e.after,_h(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return Ch(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let r=[];return r=vh(r,_h(i)),r=vh(r,_h(o)),r=vh(r,_h(a)),r}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let r,s,l=[];for(r=0,s=e.length;r<s;++r)l.push(wh(this.chart,e[r]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),sa(l,e=>{const n=Oh(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=yh[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=kh(this,n),r=Object.assign({},t,e),s=Eh(this.chart,n,r),l=Mh(n,r,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:r}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=xs(r),{x:h,y:u}=t,{width:p,height:f}=e;let m,g,b,x,y,v;return"center"===o?(y=u+f/2,"left"===i?(m=h,g=m-a,x=y+a,v=y-a):(m=h+p,g=m+a,x=y-a,v=y+a),b=m):(g="left"===i?h+Math.max(s,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(x=u,y=x-a,m=g-a,b=g+a):(x=u+f,y=x+a,m=g+a,b=g-a),v=x),{x1:m,x2:g,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,r,s;if(o){const l=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=vs(n.titleFont),r=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,s+1===o&&(t.y+=n.titleMarginBottom-r)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],r=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=o,d=vs(o.bodyFont),h=Dh(this,"left",o),u=i.x(h),p=s<d.lineHeight?(d.lineHeight-s)/2:0,f=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=f+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,es(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,es(t,e,n,c)}else{t.lineWidth=ta(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),r=xs(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,hs(t,{x:e,y:f,w:l,h:s,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),hs(t,{x:n,y:f+1,w:l-2,h:s-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=a.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=vs(n.bodyFont);let h=d.lineHeight,u=0;const p=ll(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},m=p.textAlign(a);let g,b,x,y,v,_,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Dh(this,m,n),e.fillStyle=n.bodyColor,sa(this.beforeBody,f),u=r&&"right"!==m?"center"===a?l/2+c:l+2+c:0,y=0,_=i.length;y<_;++y){for(g=i[y],b=this.labelTextColors[y],e.fillStyle=b,sa(g.before,f),x=g.lines,r&&x.length&&(this._drawColorBox(e,t,y,p,n),h=Math.max(d.lineHeight,s)),v=0,w=x.length;v<w;++v)f(x[v]),h=d.lineHeight;sa(g.after,f)}u=0,h=d.lineHeight,sa(this.afterBody,f),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,r;if(o){const s=ll(n.rtl,this.x,this.width);for(t.x=Dh(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",a=vs(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],s.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:r,y:s}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=xs(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(r+d,s),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+l-h,s),e.quadraticCurveTo(r+l,s,r+l,s+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(r+l,s+c-p),e.quadraticCurveTo(r+l,s+c,r+l-p,s+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(r+u,s+c),e.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(r,s+d),e.quadraticCurveTo(r,s,r+d,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=yh[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=kh(this,t),r=Object.assign({},n,this._size),s=Eh(e,t,r),l=Mh(t,r,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=ys(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),cl(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),dl(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!la(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),r=this._positionChanged(a,t),s=e||!la(a,o)||r;return s&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=yh[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}Th.positioners=yh;var Ah={id:"tooltip",_element:Th,positioners:yh,afterInit(t,e,n){n&&(t.tooltip=new Th({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:Zo,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:Zo,beforeBody:Zo,beforeLabel:Zo,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Jo(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.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(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Zo,afterBody:Zo,beforeFooter:Zo,footer:Zo,afterFooter:Zo}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Ph(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class Rh extends cc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Jo(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Ua(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Ph(n,t,ia(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}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"number"!=typeof t&&(t=this.parse(t)),null===t?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}}function Lh(t,e){const n=[],{bounds:i,step:o,min:a,max:r,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:f,max:m}=e,g=!Jo(a),b=!Jo(r),x=!Jo(l),y=(m-f)/(d+1);let v,_,w,k,S=Pa((m-f)/p/u)*u;if(S<1e-14&&!g&&!b)return[{value:f},{value:m}];k=Math.ceil(m/S)-Math.floor(f/S),k>p&&(S=Pa(k*S/p/u)*u),Jo(s)||(v=Math.pow(10,s),S=Math.ceil(S*v)/v),"ticks"===i?(_=Math.floor(f/S)*S,w=Math.ceil(m/S)*S):(_=f,w=m),g&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,_=a,w=r):x?(_=g?a:_,w=b?r:w,k=l-1,S=(w-_)/k):(k=(w-_)/S,k=La(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const E=Math.max(za(S),za(_));v=Math.pow(10,Jo(s)?E:s),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let M=0;for(g&&(h&&_!==a?(n.push({value:a}),_<a&&M++,La(Math.round((_+M*S)*v)/v,a,Ih(a,y,t))&&M++):_<a&&M++);M<k;++M)n.push({value:Math.round((_+M*S)*v)/v});return b&&h&&w!==r?n.length&&La(n[n.length-1].value,r,Ih(r,y,t))?n[n.length-1].value=r:n.push({value:r}):b&&w!==r||n.push({value:w}),n}function Ih(t,e,{horizontal:n,minRotation:i}){const o=Na(i),a=(n?Math.sin(o):Math.cos(o))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Rh.id="category",Rh.defaults={ticks:{callback:Rh.prototype.getLabelForValue}};class Nh extends cc{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 Jo(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,r=t=>o=n?o:t;if(t){const t=Aa(i),e=Aa(o);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),r(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Lh({maxTicks:n,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:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Ia(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return sl(t,this.chart.options.locale,this.options.ticks.format)}}class Fh extends Nh{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?t:0,this.max=ea(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Na(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function zh(t){return 1===t/Math.pow(10,Math.floor(Ta(t)))}Fh.id="linear",Fh.defaults={ticks:{callback:Ql.formatters.numeric}};class Bh extends cc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Nh.prototype.parse.apply(this,[t,e]);if(0!==n)return ea(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ea(t)?Math.max(0,t):null,this.max=ea(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,r=(t,e)=>Math.pow(10,Math.floor(Ta(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(r(n,-1)),a(r(i,1)))),n<=0&&o(r(i,-1)),i<=0&&a(r(n,1)),this._zero&&this.min!==this._suggestedMin&&n===r(this.min,0)&&o(r(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Ta(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=na(t.min,Math.pow(10,Math.floor(Ta(e.min)))),r=Math.floor(Ta(a)),s=Math.floor(a/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:a,major:zh(a)}),++s,10===s&&(s=1,++r,l=r>=0?1:l),a=Math.round(s*Math.pow(10,r)*l)/l}while(r<n||r===n&&s<i);const c=na(t.max,a);return o.push({value:c,major:zh(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ia(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":sl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ta(t),this._valueRange=Ta(this.max)-Ta(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ta(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Yh(t){const e=t.ticks;if(e.display&&t.display){const t=ys(e.backdropPadding);return ia(e.font&&e.font.size,Zr.font.size)+t.height}return 0}function Vh(t,e,n){return n=Qo(n)?n:[n],{w:Jr(t,e.string,n),h:n.length*e.lineHeight}}function Hh(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Wh(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,s=r.centerPointLabels?wa/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));o[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),d=vs(a.font),h=Vh(t.ctx,d,t._pointLabels[l]);i[l]=h;const u=Ha(t.getIndexAngle(l)+s),p=Math.round(Fa(u));Uh(n,e,u,Hh(p,c.x,h.w,0,180),Hh(p,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,r=Yh(a)/2,s=t.drawingArea,l=a.pointLabels.centerPointLabels?wa/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,s+r+n[a],l),c=Math.round(Fa(Ha(o.angle+Da))),d=e[a],h=$h(o.y,d.h,c),u=jh(c),p=Gh(o.x,d.w,u);i.push({x:o.x,y:h,textAlign:u,left:p,top:h,right:p+d.w,bottom:h+d.h})}return i}(t,i,o)}function Uh(t,e,n,i,o){const a=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/r,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function jh(t){return 0===t||180===t?"center":t<180?"left":"right"}function Gh(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function $h(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Xh(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,ka);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}Bh.id="logarithmic",Bh.defaults={ticks:{callback:Ql.formatters.logarithmic,major:{enabled:!0}}};class qh extends Nh{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=ys(Yh(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ea(t)&&!isNaN(t)?t:0,this.max=ea(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yh(this.options))}generateTickLabels(t){Nh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=ra(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Wh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Ha(t*(ka/(this._pointLabels.length||1))+Na(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Jo(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(Jo(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 n=e[t];return function(t,e,n){return ws(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Da+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Xh(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,r,s;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=vs(e.font),{x:r,y:s,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!Jo(p)){const t=xs(e.borderRadius),i=ys(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,r=h-c+i.width,s=u-d+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),hs(n,{x:o,y:a,w:r,h:s,radius:t}),n.fill()):n.fillRect(o,a,r,s)}cs(n,t._pointLabels[o],r,s+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,a=e.circular,{color:r,lineWidth:s}=e;!a&&!i||!r||!s||n<0||(o.save(),o.strokeStyle=r,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),Xh(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),r,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),s=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(s.x,s.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,r)=>{if(0===r&&!e.reverse)return;const s=n.setContext(this.getContext(r)),l=vs(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[r].value),s.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=ys(s.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}cs(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}qh.id="radialLinear",qh.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ql.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},qh.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},qh.descriptors={angleLines:{_fallback:"grid"}};const Zh={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}},Kh=Object.keys(Zh);function Jh(t,e){return t-e}function Qh(t,e){if(Jo(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof i&&(r=i(r)),ea(r)||(r="string"==typeof i?n.parse(r,i):n.parse(r)),null===r?null:(o&&(r="week"!==o||!Ra(a)&&!0!==a?n.startOf(r,o):n.startOf(r,"isoWeek",a)),+r)}function tu(t,e,n,i){const o=Kh.length;for(let a=Kh.indexOf(t);a<o-1;++a){const t=Zh[Kh[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Kh[a]}return Kh[o-1]}function eu(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=Ga(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function nu(t,e,n){const i=[],o={},a=e.length;let r,s;for(r=0;r<a;++r)s=e[r],o[s]=r,i.push({value:s,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),r=e[e.length-1].value;let s,l;for(s=a;s<=r;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class iu extends cc{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 n=t.time||(t.time={}),i=this._adapter=new mc._date(t.adapters.date);i.init(e),pa(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Qh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();function s(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),r||isNaN(t.max)||(o=Math.max(o,t.max))}a&&r||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=ea(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=ea(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?tu(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=Kh.length-1;a>=Kh.indexOf(n);a--){const n=Kh[a];if(Zh[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Kh[n?Kh.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Kh.indexOf(t)+1,n=Kh.length;e<n;++e)if(Zh[Kh[e]].common)return Kh[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),nu(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=Ua(i,0,a),o=Ua(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||tu(o.minUnit,e,n,this._getLabelCapacity(e)),r=ia(o.stepSize,1),s="week"===a&&o.isoWeekday,l=Ra(s)||!0===s,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",s)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*r)throw new Error(e+" and "+n+" are too far apart with stepSize of "+r+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,r,a),h++)eu(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||eu(c,d,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,r=this._unit,s=this._majorUnit,l=r&&a[r],c=s&&a[s],d=n[e],h=s&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?ra(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Na(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),r=this._resolveTickFontOptions(0).size;return{w:n*o+r*a,h:n*a+r*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,nu(this,[t],this._majorUnit),i),a=this._getLabelSize(o),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Qh(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ka(t.sort(Jh))}}function ou(t,e,n){let i,o,a,r,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=$a(t,"pos",e)),({pos:i,time:a}=t[s]),({pos:o,time:r}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=$a(t,"time",e)),({time:i,pos:a}=t[s]),({time:o,pos:r}=t[l]));const c=o-i;return c?a+(r-a)*(e-i)/c:a}iu.id="time",iu.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ru extends iu{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=ou(e,this.min),this._tableRange=ou(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,r,s,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,r=i.length;a<r;++a)c=i[a+1],s=i[a-1],l=i[a],Math.round((c+s)/2)!==l&&o.push({time:l,pos:a/(r-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(ou(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return ou(this._table,n*this._tableRange+this._minPos,!0)}}ru.id="timeseries",ru.defaults=iu.defaults;const su="label";function lu(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function cu(t,e){t.labels=e}function du(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:su;const i=[];t.datasets=e.map(e=>{const o=t.datasets.find(t=>t[n]===e[n]);return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}})}function hu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su;const n={labels:[],datasets:[]};return cu(n,t.labels),du(n,t.datasets,e),n}function uu(t,e){let{height:n=150,width:i=300,redraw:o=!1,datasetIdKey:a,type:r,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=t;const p=lt(null),f=lt(),m=()=>{p.current&&(f.current=new Ed(p.current,{type:r,data:hu(s,a),options:l&&{...l},plugins:c}),lu(e,f.current))},g=()=>{lu(e,null),f.current&&(f.current.destroy(),f.current=null)};return ct(()=>{var t,e;!o&&f.current&&l&&(t=f.current,e=l,Object.assign(t.options,e))},[o,l]),ct(()=>{!o&&f.current&&cu(f.current.config.data,s.labels)},[o,s.labels]),ct(()=>{!o&&f.current&&s.datasets&&du(f.current.config.data,s.datasets,a)},[o,s.datasets]),ct(()=>{f.current&&(o?(g(),setTimeout(m)):f.current.update(h))},[o,l,s.labels,s.datasets,h]),ct(()=>{f.current&&(g(),setTimeout(m))},[r]),ct(()=>(m(),()=>g()),[]),tt.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:i},u),d)}const pu=nt(uu);Ed.register(Rh,Fh,Ud,Hd,$l,Ah,xh,mh);var fu=function(t){var e=t.xValues,n=t.yValues,i=t.dataPrefix,o=t.dataPostfix,a=t.straitsXStyle,r=t.height,s=void 0===r?40:r,l=lt(null),c=st({datasets:[]}),d=c[0],h=c[1],u={labels:e,datasets:[{data:n}]},p=i||"",f=o||"";ct(function(){var t=l.current;if(t){var e=t.ctx,n=e.createLinearGradient(0,0,0,280);n.addColorStop(.3,"rgba(47, 141, 238, 0.08)"),n.addColorStop(.6,"rgba(47, 141, 238, 0.0002)"),n.addColorStop(1,"rgba(47, 141, 238, 0");var i=e.createLinearGradient(0,0,0,280);i.addColorStop(0,"rgba(0, 211, 126, 0.2)"),i.addColorStop(.1,"rgba(0, 211, 126, 0.1)"),i.addColorStop(1,"rgba(0, 211, 126, 0)");var o=Wt(Wt({},u),{datasets:u.datasets.map(function(t){return Wt(Wt({},t),{backgroundColor:a?i:n,fill:!0,borderColor:a?"#00D37E":"#2E8DEE",pointRadius:0})})});h(o)}},[a,e,n]);var m={maintainAspectRatio:!1,plugins:{legend:{display:!1,labels:{font:{family:"'Inter', 'Arial', sans-serif"}}},tooltip:{intersect:!1,padding:15,displayColors:!1,borderColor:"rgba(0, 211, 126, 1)",borderWidth:a?1:0,backgroundColor:a?"#ffffff":"#000000",titleColor:a?"#1B2736":"#fff",bodyColor:a?"#1B2736":"#fff",titleAlign:"center",bodyAlign:"center",titleFont:{size:14},bodyFont:{size:14},callbacks:{title:function(t){return a?"".concat(p).concat(t[0].parsed.y).concat(f):t[0].label},label:function(t){return a?t.label:"".concat(p).concat(t.parsed.y).concat(f)}}}},scales:{x:{ticks:{color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",font:{weight:"500",size:13}},grid:{display:!1}},y:{ticks:{beginAtZero:!0,padding:18,maxTicksLimit:3,color:a?"#1B2736":"rgba(0, 0, 0, 0.4)",callback:function(t){return"".concat(p).concat(t).concat(f)}},grid:{display:!1,drawBorder:!1}}}};return tt.createElement("div",{style:{position:"relative",height:"".concat(s,"vh"),width:"99%"}},tt.createElement(pu,{id:"chart",ref:l,type:"line",data:d,options:m}))};function mu(t){var e=t.children,n=t.activeKey,i=t.width,o=void 0===i?250:i,a=Ht(t,["children","activeKey","width"]),r=ji().brand,s=e.map(function(t,e){return tt.createElement(mt.TabPane,{key:e,forceRender:!0},t)}),l=e.map(function(t,e){return tt.createElement(Su,{key:e,isActive:e===n,activeColor:r.primary.default})});return tt.createElement(_u,null,tt.createElement(wu,Wt({renderTabBar:function(){return tt.createElement("div",null)},width:o,activeKey:n.toString(),animated:!0},a),s),tt.createElement(ku,null,l))}var gu,bu,xu,yu,vu,_u=qn.div(gu||(gu=Vt(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))),wu=qn(mt)(bu||(bu=Vt(["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"],["\n width: ",";\n\n & .ant-tabs-content-animated {\n transition: margin 1s ease-out;\n }\n"])),function(t){return"".concat(t.width,"px")}),ku=qn.span(xu||(xu=Vt(["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"],["\n display: flex;\n gap: 0.25rem;\n margin-top: 10px;\n"]))),Su=qn.span(yu||(yu=Vt(["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"],["\n height: 10px;\n width: 10px;\n background-color: ",";\n border-radius: 50%;\n display: inline-block;\n"])),function(t){return t.isActive?t.activeColor:"#d3d7de"});function Eu(t){var e=t.menu,n=t.children,i=t.type,o=void 0===i?"default":i,a=t.placement,r=void 0===a?"bottomLeft":a,s=t.className,l=void 0===s?"":s,c=t.trigger,d=void 0===c?["click"]:c,h=t.disabled,u=void 0!==h&&h,p=Ht(t,["menu","children","type","placement","className","trigger","disabled"]),f=ji(),m=f.brand,g=f.spacing,b="\n background-color: ".concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n\n &:focus {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:active {\n background-color: ").concat(m.action.default,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n\n &:hover {\n background-color: ").concat(m.action.hover,";\n color: ").concat(m.primary.contrast,";\n border: 1px solid ").concat(m.primary.contrast,";\n }\n "),x="\n cursor: auto;\n pointer-events: none;\n opacity: ".concat(m.action.disabledOpacity,";\n "),y=qn(gt.Button)(vu||(vu=Vt(["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "],["\n &.ant-btn-group > .ant-btn:first-child:not(:last-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n height: unset;\n box-shadow: none;\n line-height: 0.75;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n\n &.ant-btn-group > .ant-btn:last-child:not(:first-child) {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 44px;\n min-width: 45px;\n line-height: 0.75;\n box-shadow: none;\n ",";\n ",";\n ",";\n ","\n padding: ",";\n }\n "])),bi,ki,b,!0===u&&x,g.md,bi,ki,b,!0===u&&x,g.sm);if("split"===o)return tt.createElement(y,Wt({className:l,menu:e,placement:r,trigger:d},p),n);var v=lt(null);return ct(function(){var t=function(t){t.cancelable&&t.preventDefault()},e=v.current;return e&&e.addEventListener("touchmove",t,{passive:!0}),function(){e&&e.removeEventListener("touchmove",t)}},[]),tt.createElement(gt,Wt({menu:e,placement:r,trigger:d},p),tt.createElement("div",{ref:v},n))}function Mu(t){var e=t.children,n=t.placement,i=void 0===n?"bottomRight":n,o=t.overlayClassName,a=void 0===o?Ru:o,r=t.arrowPointAtCenter,s=void 0===r||r,l=t.trigger,c=void 0===l?"hover":l,d=t.color,h=t.title,u=t.content,p=t.mouseEnterDelay,f=void 0===p?0:p,m=t.mouseLeaveDelay,g=void 0===m?0:m,b=t.isNew,x=void 0!==b&&b,y=t.actionTitle,v=t.dismissTitle,_=t.maxWidth,w=t.onAction,k=t.onDismiss,S=_?{maxWidth:_}:void 0;return tt.createElement(bt,{overlayClassName:a,arrowPointAtCenter:s,trigger:c,color:d,placement:i,overlayStyle:S,title:tt.createElement(Lu,null,h&&tt.createElement(No,{style:{fontSize:Vi.P1,marginBottom:"16px",color:Li.text.white}},h,!0===x&&tt.createElement(Nu,null,"New")),u,(y||v)&&tt.createElement(Iu,null,tt.createElement(zu,{onClick:function(t){t.preventDefault(),k&&k()}},v),tt.createElement(Fu,{onClick:function(t){t.preventDefault(),w&&w()}},y))),mouseEnterDelay:f,mouseLeaveDelay:g},e)}var Du,Cu,Ou,Tu,Au,Pu,Ru=on(Du||(Du=Vt(["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"],["\n max-width: 200px;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n color: ",";\n box-shadow: none;\n\n .ant-tooltip-inner {\n padding: 12px;\n border-radius: 8px;\n box-shadow: none;\n background-color: ",";\n }\n\n "," {\n max-width: 250px;\n }\n\n .ant-tooltip-arrow {\n width: 16px;\n height: 16px;\n\n .ant-tooltip-arrow-content {\n background-color: ",";\n box-shadow: none;\n width: 16px;\n height: 16px;\n }\n }\n"])),fi,Vi.P1,Yi.REGULAR,Li.text.white,Li.brand.primary.contrast,hi,Li.brand.primary.contrast),Lu=qn.div(Cu||(Cu=Vt(["\n line-height: 22px;\n"],["\n line-height: 22px;\n"]))),Iu=qn.div(Ou||(Ou=Vt(["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"],["\n margin: 24px 0 0 0;\n display: flex;\n justify-content: flex-end;\n\n a {\n margin: 0 0 0 20px;\n }\n"]))),Nu=qn.span(Tu||(Tu=Vt(["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"],["\n display: inline-block;\n margin: 0 0 0 8px;\n padding: 2px 6px;\n background-color: ",";\n color: ",";\n font-size: ",";\n font-weight: ",";\n border-radius: 4px;\n"])),zn.G400,Li.text.white,Vi.SMALL,Yi.BOLD),Fu=qn.a(Au||(Au=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.brand.action.default,Li.brand.action.hover),zu=qn.a(Pu||(Pu=Vt(["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"],["\n font-weight: ",";\n color: ",";\n &:hover {\n color: ",";\n }\n"])),Yi.BOLD,Li.text.white,Li.text.white);Ii('@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");.material-symbols-rounded{word-wrap:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga";direction:ltr;display:inline-block;font-family:Material Symbols Rounded;font-size:24px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1;text-rendering:optimizeLegibility;text-transform:none;white-space:nowrap}');var Bu={xs:16,s:20,m:24,l:32,xl:40,xxl:48},Yu=function(t){var e=t.icon,n=t.size,i=void 0===n?"m":n,o=t.fill,a=void 0===o?0:o,r=t.color,s=void 0===r?Vn.BLACK:r,l=t.className,c=void 0===l?"":l,d=t.style,h="string"==typeof i?Bu[i]:i,u=Wt({fontVariationSettings:"'FILL' ".concat(a,", 'wght' 400"),fontSize:h,color:s},d);return tt.createElement("span",{className:"material-symbols-rounded ".concat(c),style:u,translate:"no"},e)},Vu={positive:"check",critical:"cancel",warning:"timer",info:"info",neutral:"timer"},Hu={sm:"xs",lg:"s"},Wu={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},critical:{base:Li.color.surface.subdueCritical,text:Li.color.status.critical,icon:Li.color.status.critical,border:Li.color.status.critical},warning:{base:Li.color.surface.subdueWarning,text:Li.color.status.warning,icon:Li.color.status.warning,border:Li.color.status.warning},info:{base:Li.color.surface.SubdueInfo,text:Li.color.status.info,icon:Li.color.status.info,border:Li.color.status.info},neutral:{base:Vn.G100,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}},Uu={positive:{base:Li.color.status.positive,text:Li.color.base.onContainer,icon:"",border:Li.color.status.positive},neutral:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:"",border:Li.color.base.line}},ju={positive:{base:Li.color.surface.subduePositive,text:Li.color.status.positive,icon:Li.color.status.positive,border:Li.color.status.positive},disabled:{base:Li.color.surface.disabledSurface,text:Li.color.surface.disabledOnSurface,icon:Li.color.surface.disabledOnSurface,border:Li.color.base.line},neutral:{base:Li.color.surface.neutral,text:Li.color.base.onNeutralSecondary,icon:Li.color.base.onNeutralSecondary,border:Li.color.base.line}};function Gu(t,e,n){switch(e){case"outlined":default:return Wu[t][n];case"filled":return Uu[t][n];case"removable":return ju[t][n]}}function $u(t){var e=t.type,n=t.children,i=t.showIcon,o=void 0!==i&&i,a=t.size,r=void 0===a?"sm":a,s=t.variant,l=void 0===s?"outlined":s,c=t.onClick;return tt.createElement(np,{type:e,size:r,variant:l,onClick:"removable"!==l?c:void 0},o&&"disabled"!==e&&tt.createElement(Yu,{icon:Vu[e],size:Hu[r],color:Gu(e,l,"icon")}),tt.createElement(dn.Body,{size:r,color:Gu(e,l,"text")},n),"removable"===l&&tt.createElement(ep,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},onClick:function(t){t.preventDefault(),t.stopPropagation(),null==c||c()},type:"tertiary",icon:tt.createElement(Yu,{icon:"close",size:Hu[r],color:Gu(e,l,"icon")})}))}var Xu,qu,Zu,Ku,Ju,Qu,tp,ep=qn(eo)(Xu||(Xu=Vt(["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"],["\n && {\n padding: 0 !important;\n width: auto !important;\n height: auto !important;\n }\n\n &&:hover {\n background: transparent !important;\n }\n\n &&:focus {\n background: transparent !important;\n }\n\n &&:active {\n background: transparent !important;\n }\n"]))),np=qn.div(qu||(qu=Vt(["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"],["\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n height: fit-content;\n text-transform: capitalize;\n\n ",";\n"])),function(t){return function(t){var e=t.type,n=t.variant,i=void 0===n?"outlined":n,o=t.size,a=void 0===o?"sm":o,r=t.onClick;return"\n border-radius: ".concat("removable"===i?"999px":"4px",";\n min-height: ").concat("sm"===a?"24px":"32px",";\n background-color: ").concat(e&&i?Gu(e,i,"base"):"transparent",";\n border: 1px solid ").concat(e&&i?Gu(e,i,"border"):"transparent",";\n padding-inline: ").concat("removable"===i?"12px":"8px",";\n cursor: ").concat(r?"pointer":"default",";\n\n")}(t)}),ip=qn.div(Zu||(Zu=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n span {\n display: inline-flex;\n cursor: pointer;\n }\n"]))),op=qn.div(Ku||(Ku=Vt(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),rp=qn.div(Ju||(Ju=Vt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-width: 100px;\n width: 100%;\n"]))),sp="\n .ant-select-selection-placeholder {\n display: flex;\n align-items: center;\n \n span {\n color: ".concat(Li.color.component.placeholderInput," !important;\n }\n }\n"),lp="\n .ant-select-selection-item {\n display: flex !important;\n align-items: center !important;\n color: ".concat(Li.color.base.onNeutral," !important;\n }\n\n &.ant-select-open .ant-select-selection-item {\n color: ").concat(Li.color.base.onNeutral," !important;\n }\n"),cp="\n .ant-select-arrow {\n display: flex !important;\n align-items: center !important;\n gap: 8px !important;\n width: auto !important;\n align-self: center !important;\n \n span {\n color: ".concat(Li.color.base.onNeutral," !important;\n }\n }\n"),dp=qn(xt)(Qu||(Qu=Vt(["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"],["\n .ant-form-item-has-error & {\n background-color: "," !important;\n }\n ","\n ","\n ","\n ","\n ","\n ","\n"])),Li.color.surface.neutral,function(t){return function(t){var e="multiple"===t.$mode?"sm"===t.$size?"6px":"8px":"12px";return"\n .ant-select-selector {\n border-radius: ".concat("sm"===t.$size?"8px":"12px"," !important;\n position: relative !important;\n display: flex;\n align-items: ").concat("multiple"===t.$mode?"flex-start":"center"," !important;\n padding: ").concat(e," 16px !important;\n\n min-height: ").concat("sm"===t.$size?"36px":"48px"," !important;\n ").concat("multiple"!==t.$mode?"height: ".concat("sm"===t.$size?"36px":"48px"," !important;"):"height: auto !important;","\n\n background: ").concat(t.disabled?Li.color.surface.disabledSurface:Li.color.surface.neutral," !important;\n\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.color.base.line," !important;\n }\n")}(t)},function(t){return function(t){return"\n &:hover .ant-select-selector,\n &.ant-select-focused .ant-select-selector {\n ".concat(!t.disabled&&"\n box-shadow: 0 0 0 1px ".concat(Li.color.base.onNeutral,"20 !important;\n border: 1px solid ").concat(t.error?Li.color.status.critical:Li.color.base.primary2," !important;\n "),"\n }\n")}(t)},sp,function(t){return function(t){return"\n .ant-select-selection-overflow {\n gap: 8px;\n ".concat("multiple"===t.$mode?"flex-wrap: wrap !important;":"","\n ").concat("multiple"===t.$mode?"align-content: center !important;":"","\n }\n")}(t)},lp,cp),hp="\n .rc-virtual-list-holder-inner {\n gap: 0;\n }\n .rc-virtual-list-holder {\n overflow-y: auto !important;\n }\n .ant-select-item {\n color: ".concat(Li.color.base.onNeutral," !important;\n padding: 12px !important;\n margin-bottom: 4px !important;\n }\n .ant-select-item:last-child {\n margin-bottom: 0 !important;\n }\n"),up="\n .ant-select-item-option-selected {\n background: #d7efe2 !important;\n position: relative !important;\n \n .anticon {\n display: none !important;\n }\n \n &::after {\n content: 'check' !important;\n font-family: 'Material Symbols Rounded' !important;\n color: ".concat(Li.color.status.positive," !important;\n position: absolute !important;\n right: 12px !important;\n top: 50% !important;\n transform: translateY(-50%) !important;\n font-size: 16px !important;\n }\n }\n"),pp="\n .ant-select-item:hover {\n background: ".concat(Li.color.interactive.hoverSurface," !important;\n }\n \n .ant-select-item:active {\n background: ").concat(Li.color.interactive.pressedSurface," !important;\n }\n"),fp="\n .ant-select-item-option-disabled,\n .ant-select-item-option-disabled:hover {\n background: ".concat(Li.color.surface.disabledSurface," !important;\n span { \n color: ").concat(Li.color.surface.disabledOnSurface," !important;\n }\n }\n"),mp=qn.div(tp||(tp=Vt(["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"],["\n ","\n ","\n ","\n ","\n padding-bottom: 8px;\n"])),hp,up,pp,fp),gp={padding:0,paddingBottom:"4px",borderRadius:"12px"},bp={sm:"md",lg:"lg"},xp={sm:"md",lg:"lg"},yp=function(t){return tt.createElement(tt.Fragment,null,t&&tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t),tt.createElement(Yu,{icon:"keyboard_arrow_down"}))},vp=function(t,e){return e?tt.createElement(dn.Body,{size:bp[t]},e):null},_p=function(t,e,n){return"multiple"===t?function(t){var i=t.label,o=t.onClose;return tt.createElement($u,{type:e?"disabled":"positive",variant:"removable",size:n,onClick:e?void 0:o},i)}:void 0},wp=function(t){var e=t.children,n=t.disabled,i=void 0!==n&&n,o=t.size,a=void 0===o?"sm":o,r=t.mode,s=t.label,l=t.labelTooltip,c=t.selectRef,d=t.placeholder,h=t.error,u=void 0!==h&&h,p=t.secondaryText,f=t.helperText,m=t.options,g=Ht(t,["children","disabled","size","mode","label","labelTooltip","selectRef","placeholder","error","secondaryText","helperText","options"]),b=lt(null),x=c||b;return tt.createElement(rp,null,s&&function(t,e){return t?tt.createElement(ip,null,tt.createElement(dn.Body,{size:"md"},t),e?tt.createElement(Mu,{placement:"top",title:"I'm Tooltip Component",content:e},tt.createElement("span",null,tt.createElement(Yu,{icon:"info",size:"xs"}))):null):null}(s,l),tt.createElement(dp,Wt({disabled:i,mode:r,ref:x,$size:a,$mode:r,getPopupContainer:function(){return document.body}},g,{error:u,dropdownRender:function(t){return tt.createElement(mp,{$size:a},tt.createElement(dn.Body,{size:"sm"===a?"md":"lg"},t))},dropdownStyle:gp,suffixIcon:yp(p),placeholder:vp(a,d),showArrow:!0,tagRender:_p(r,i,a),maxTagCount:999}),m?function(t,e){return t.map(function(t){var n=t.value,i=t.label,o=t.icon,a=t.disabled;return tt.createElement(xt.Option,{key:n,value:n,disabled:a},tt.createElement(op,null,o&&tt.createElement(o,{style:{width:"16px",height:"16px"}}),tt.createElement(dn.Body,{size:xp[e]},i)))})}(m,a):e),function(t){return t?tt.createElement(dn.Body,{color:Li.color.base.onNeutralSecondary,size:"sm"},t):null}(f))};wp.Option=xt.Option;var kp=function(t,e){var n=e.iconSrc,i=void 0===n?null:n,o=e.extraText,a=void 0===o?"":o,r=e.extraAction,s=void 0===r?function(){}:r,l=e.isAddItemBarVisible,c=void 0===l||l,d=e.topContent,h=e.bottomContent,u=e.actionContent;return tt.createElement(Op,null,d,t,u||function(t){var e=t.iconSrc,n=void 0===e?null:e,i=t.extraText,o=void 0===i?"":i,a=t.extraAction,r=void 0===a?function(){}:a,s=t.isAddItemBarVisible;return void 0===s||s?tt.createElement(Ap,{onMouseDown:function(){r()}},n?tt.createElement(Tp,{src:n}):tt.createElement(Rt,null),o):null}({iconSrc:i,extraText:a,extraAction:s,isAddItemBarVisible:c}),h)},Sp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=t.disabled,a=void 0!==o&&o,r=t.mode,s=t.label,l=t.iconSrc,c=void 0===l?"":l,d=t.extraText,h=void 0===d?"":d,u=t.extraAction,p=void 0===u?function(){}:u,f=t.isAddItemBarVisible,m=void 0===f||f,g=t.topContent,b=void 0===g?null:g,x=t.bottomContent,y=void 0===x?null:x,v=t.actionContent,_=void 0===v?null:v,w=Ht(t,["className","children","disabled","mode","label","iconSrc","extraText","extraAction","isAddItemBarVisible","topContent","bottomContent","actionContent"]);return tt.createElement(wp,Wt({className:n,disabled:a,mode:r,label:s,dropdownRender:function(t){return kp(t,{iconSrc:c,extraText:h,extraAction:p,isAddItemBarVisible:m,topContent:b,bottomContent:y,actionContent:_})}},w),i)};Sp.Option=wp.Option;var Ep,Mp,Dp,Cp,Op=qn.div(Ep||(Ep=Vt(["\n padding-top: 15px;\n"],["\n padding-top: 15px;\n"]))),Tp=qn.img(Mp||(Mp=Vt(["\n margin-right: 5px;\n"],["\n margin-right: 5px;\n"]))),Ap=qn(Io)(Dp||(Dp=Vt(["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"],["\n font-weight: 500;\n color: #2f8dee;\n display: flex;\n align-items: center;\n margin-left: 15px;\n cursor: pointer;\n margin-top: 10px;\n margin-bottom: 15px;\n &:hover {\n text-decoration: underline;\n }\n"]))),Pp=on(Cp||(Cp=Vt(["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"],["\n & .ant-form-item {\n margin-bottom: 0 !important;\n }\n\n & .ant-form-item-has-error {\n font-family: "," !important;\n font-size: "," !important;\n line-height: 17px !important;\n\n & .ant-form-item-explain {\n color: "," !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n }\n\n & .ant-input,\n .ant-picker-input,\n .ant-select-selector {\n color: "," !important;\n\n &::placeholder,\n input::placeholder,\n .ant-select-selection-placeholder {\n color: "," !important;\n font-weight: 400 !important;\n }\n }\n\n & .ant-input,\n .ant-picker,\n .ant-select,\n .ant-select-selector {\n border-top-right-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-color: "," !important;\n background-color: "," !important;\n\n &:hover {\n border-color: "," !important;\n background-color: "," !important;\n }\n\n &:focus {\n border-color: "," !important;\n -webkit-box-shadow: 0 0 0 3px "," !important;\n box-shadow: 0 0 0 3px "," !important;\n background-color: "," !important;\n }\n }\n\n & .ant-input-group-addon .ant-select,\n & .ant-input-group-addon .ant-select-selector {\n background-color: transparent !important;\n border-color: transparent !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n color: "," !important;\n background-color: "," !important;\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n border-color: "," !important;\n border-right: 0 !important;\n }\n }\n"])),io,Vi.P1,Bn.R400,Bn.R400,Bn.R400,Bn.R300,Bn.R100,Bn.R300,Bn.R100,Bn.R300,Bn.R200,Bn.R200,Bn.R100,Bn.R400,Bn.R100,Bn.R300),Rp=function(t){var e=t.className,n=void 0===e?"":e,i=t.children,o=Ht(t,["className","children"]);return tt.createElement(yt,Wt({className:nn(Pp,n)},o),i)};function Lp(t,e,n,i){void 0===e&&(e="large");var o=so[e],a=o.height,r=o.borderRadius,s=o.padding,l=n?t.color.status.critical:t.color.base.line;return"\n -webkit-font-smoothing: antialiased;\n\n /* Shared font/sizing for all .ant-input elements */\n & .ant-input, &.ant-input, &.ant-input-password {\n padding: ".concat(s,";\n font-family: ").concat(io,";\n font-size: ").concat(Vi.P1,";\n color: ").concat(t.color.base.onNeutral,";\n line-height: 17px;\n height: ").concat(a,";\n box-sizing: border-box;\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n font-weight: 400;\n }\n }\n\n /* Case 1: Standalone input — class directly on .ant-input */\n &.ant-input, &.ant-input-password {\n border-radius: ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 2: Input with addon — class on .ant-input-group-wrapper */\n /* addonBefore: input is after addon — flat left, rounded right */\n & .ant-input-group > .ant-input:last-child {\n border-radius: 0 ").concat(r," ").concat(r," 0 !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n /* addonAfter: input is before addon — rounded left, flat right */\n & .ant-input-group > .ant-input:first-child {\n border-radius: ").concat(r," 0 0 ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2,";\n box-shadow: none;\n color: ").concat(t.color.base.onNeutral,";\n }\n }\n\n /* Case 3: Input with prefix (e.g. Search without addon) — class on .ant-input-affix-wrapper */\n &.ant-input-affix-wrapper {\n border-radius: ").concat(r," !important;\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n }\n }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n\n /* Case 4: addon + prefix — class on .ant-input-group-wrapper */\n & .ant-input-group > .ant-input-affix-wrapper:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-color: ").concat(l,";\n height: ").concat(a,";\n padding: ").concat(s,";\n &:hover:not(:disabled):not(.ant-input-affix-wrapper-disabled) { border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important; }\n &.ant-input-affix-wrapper-focused {\n border-color: ").concat(n?t.color.status.critical:t.color.base.primary2," !important;\n box-shadow: none;\n }\n & .ant-input {\n height: auto;\n padding: 0;\n border: none;\n border-radius: 0 !important;\n box-shadow: none;\n &:hover, &:focus { border: none; box-shadow: none; }\n }\n }\n /* addonBefore + prefix — rounded right */\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-radius: 0 ").concat(r," ").concat(r," 0 !important;\n padding-left: 8px;\n }\n /* prefix + addonAfter — rounded left */\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-radius: ").concat(r," 0 0 ").concat(r," !important;\n }\n\n /* Disabled states */\n &.ant-input-disabled, & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n }\n &.ant-input-affix-wrapper-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n &:hover { border-color: ").concat(t.color.base.line," !important; }\n & .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n }\n }\n\n /* Addon containers */\n &.ant-input-group-wrapper-status-error .ant-input-group-addon,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:last-child,\n &.ant-input-group-wrapper-status-error .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n &.ant-input-group-wrapper-status-error .ant-input-group-addon .ant-select {\n background-color: ").concat(t.color.surface.neutral," !important;\n }\n\n & .ant-input-group-addon:not(:last-child) {\n font-family: ").concat(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-left-radius: ").concat(r," !important;\n border-bottom-left-radius: ").concat(r," !important;\n border-color: ").concat(t.color.base.line,";\n border-right: 0;\n padding-left: 12px;\n padding-right: 8px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 12px;\n padding-right: 8px;\n }\n + .ant-input-disabled {\n background-color: ").concat(t.color.surface.disabledSurface,";\n border-color: ").concat(t.color.base.line,";\n color: ").concat(t.color.base.onNeutral,";\n -webkit-text-fill-color: ").concat(t.color.base.onNeutral,";\n &::placeholder {\n color: ").concat(t.color.component.placeholderInput,";\n -webkit-text-fill-color: ").concat(t.color.component.placeholderInput,";\n }\n &:hover { border-color: ").concat(t.color.base.line,"; }\n }\n }\n & .ant-input-group-addon:last-child {\n font-family: ").concat(io,";\n color: ").concat(t.color.base.onNeutral,";\n background-color: ").concat(t.color.surface.neutral,";\n border-top-right-radius: ").concat(r," !important;\n border-bottom-right-radius: ").concat(r," !important;\n border-color: ").concat(t.color.base.line,";\n border-left: 0;\n padding-left: 16px;\n padding-right: 16px;\n &:has(.ant-select) {\n padding: 4px;\n .ant-select-focused .ant-select-selector {\n border-color: transparent !important;\n box-shadow: none !important;\n }\n .ant-select-selector {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n height: 100%;\n }\n }\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.neutral,";\n padding-left: 8px;\n padding-right: 12px;\n }\n &:hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n }\n &:focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-left: 1px solid ").concat(t.color.base.primary2,";\n }\n }\n & .ant-input-group-addon:not(:last-child):hover {\n background-color: ").concat(t.color.interactive.hoverSurface,";\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n }\n & .ant-input-group-addon:not(:last-child):focus-within {\n background-color: ").concat(t.color.surface.neutral,";\n border-color: ").concat(t.color.base.primary2," !important;\n border-right: 1px solid ").concat(t.color.base.primary2,";\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:hover) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input:first-child,\n & .ant-input-group:has(.ant-input-group-addon:last-child:focus-within) > .ant-input-affix-wrapper:first-child {\n border-right: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):hover) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input:last-child,\n & .ant-input-group:has(.ant-input-group-addon:not(:last-child):focus-within) > .ant-input-affix-wrapper:last-child {\n border-left: 0 !important;\n }\n ").concat(i?"\n & .ant-input-group-addon:last-child {\n background-color: ".concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-left: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:first-child,\n & .ant-input-group > .ant-input-affix-wrapper:first-child {\n border-right: 0;\n }\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n color: ").concat(t.color.base.onNeutral,";\n pointer-events: none;\n cursor: not-allowed;\n border-color: ").concat(t.color.base.line,";\n border-right: 1px solid ").concat(t.color.base.line,";\n &:has([data-addon-custom]) {\n background-color: ").concat(t.color.surface.disabledSurface,";\n }\n }\n & .ant-input-group > .ant-input:last-child,\n & .ant-input-group > .ant-input-affix-wrapper:last-child {\n border-left: 0;\n }\n "):"","\n ")}function Ip(t){var e=t.text,n=t.error,i=ji();if(!e)return null;var o=n?i.color.status.critical:i.color.component.helperInput;return tt.createElement(dn.Body,{size:"sm",style:{color:o,marginTop:4}},e)}function Np(t){var e=t.label,n=t.required,i=t.optional,o=t.showInfoIcon,a=t.infoText,r=t.onInfoClick,s=ji();return e?tt.createElement(zp,null,tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutral}},e,n&&tt.createElement("span",{style:{color:s.error.text,marginLeft:2}},"*")),i&&tt.createElement(dn.Body,{size:"sm",style:{color:s.color.base.onNeutralSecondary}},"Optional"),o&&a&&tt.createElement(Mu,{content:a,placement:"top"},tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))),o&&!a&&tt.createElement("span",{role:"button",tabIndex:0,"aria-label":"More information",onClick:r,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==r||r())},style:{display:"inline-flex",cursor:"pointer"}},tt.createElement(Lt,{style:{width:16,height:16}}))):null}Rp.Item=function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]);return tt.createElement(yt.Item,Wt({className:nn(Pp,n)},i))},Rp.useForm=yt.useForm;var Fp,zp=qn.div(Fp||(Fp=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 4px;\n"]))),Bp=function(t){var e=t.addonBefore,n=t.addonAfter,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.disabledAddon,l=void 0!==s&&s,c=t.className,d=void 0===c?"":c,h=t.label,u=t.required,p=t.optional,f=void 0!==p&&p,m=t.size,g=void 0===m?"large":m,b=t.helperText,x=t.error,y=t.showInfoIcon,v=t.infoText,_=t.onInfoClick,w=Ht(t,["addonBefore","addonAfter","placeholder","disabled","disabledAddon","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),k=Lp(ji(),g,x,l);return tt.createElement("div",null,tt.createElement(Np,{label:h,required:u,optional:f,showInfoIcon:y,infoText:v,onInfoClick:_}),tt.createElement(vt,Wt({className:"".concat(on(k)," ").concat(d),addonBefore:e,addonAfter:n,placeholder:o,disabled:r},w)),tt.createElement(Ip,{text:b,error:x}))};Bp.Password=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.disabled,r=void 0!==a&&a,s=t.className,l=void 0===s?"":s,c=t.label,d=t.required,h=t.optional,u=void 0!==h&&h,p=t.size,f=void 0===p?"large":p,m=t.helperText,g=t.error,b=t.showInfoIcon,x=t.infoText,y=t.onInfoClick,v=Ht(t,["addonBefore","placeholder","disabled","className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),_=Lp(ji(),f,g);return tt.createElement("div",null,tt.createElement(Np,{label:c,required:d,optional:u,showInfoIcon:b,infoText:x,onInfoClick:y}),tt.createElement(vt.Password,Wt({className:"".concat(on(_)," ").concat(l),addonBefore:n,placeholder:o,disabled:r,visibilityToggle:!0},v)),tt.createElement(Ip,{text:m,error:g}))},Bp.Search=function(t){var e=t.addonBefore,n=void 0===e?"":e,i=t.placeholder,o=void 0===i?"":i,a=t.className,r=void 0===a?"":a,s=t.onChange,l=t.onSearch,c=t.size,d=void 0===c?"large":c,h=t.helperText,u=t.error,p=Ht(t,["addonBefore","placeholder","className","onChange","onSearch","size","helperText","error"]),f=ji(),m="".concat(Lp(f,d,u),"\n & .ant-input-group-addon:not(:last-child) {\n background-color: ").concat(f.color.surface.neutral,";\n padding: ").concat("string"==typeof n?"0 15px":"0",";\n }\n &.ant-input-affix-wrapper .ant-input-prefix {\n margin-right: 8px;\n display: flex;\n align-items: center;\n }\n ");return tt.createElement("div",null,tt.createElement(vt,Wt({placeholder:o,addonBefore:n,onChange:s,onKeyDown:l,className:"".concat(on(m)," ").concat(r),prefix:tt.createElement("span",{onClick:l,style:{display:"flex",cursor:l?"pointer":"default"}},tt.createElement(Yu,{icon:"search",size:"small"===d?"xs":"m",color:f.color.base.onNeutral}))},p)),tt.createElement(Ip,{text:h,error:u}))},Bp.TextArea=function(t){var e=t.className,n=void 0===e?"":e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.helperText,h=t.error,u=t.showInfoIcon,p=t.infoText,f=t.onInfoClick,m=Ht(t,["className","label","required","optional","size","helperText","error","showInfoIcon","infoText","onInfoClick"]),g=ji(),b=h?g.color.status.critical:g.color.base.line,x=so[c],y=x.borderRadius,v=x.padding,_="".concat(Lp(g,c,h),"\n &.ant-input {\n min-height: 72px;\n height: auto;\n resize: none;\n border-radius: ").concat(y," !important;\n border-color: ").concat(b,";\n padding: ").concat(v,";\n &:hover:not(:disabled):not(.ant-input-disabled) { border-color: ").concat(h?g.color.status.critical:g.color.base.primary2," !important; }\n &:focus {\n border-color: ").concat(g.color.base.primary2,";\n box-shadow: none;\n }\n &:disabled {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n background-color: ").concat(g.color.surface.disabledSurface,";\n border-color: ").concat(g.color.base.line,";\n &::placeholder {\n color: ").concat(g.color.surface.disabledOnSurface," !important;\n -webkit-text-fill-color: ").concat(g.color.surface.disabledOnSurface," !important;\n }\n &:hover { border-color: ").concat(g.color.base.line," !important; }\n }\n }\n ");return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:u,infoText:p,onInfoClick:f}),tt.createElement(vt.TextArea,Wt({className:"".concat(on(_)," ").concat(n)},m)),tt.createElement(Ip,{text:d,error:h}))},Bp.Group=vt.Group;var Yp,Vp,Hp,Wp,Up,jp,Gp,$p,Xp,qp,Zp,Kp,Jp,Qp,tf,ef,nf,of,rf,sf,lf,cf,df,hf,uf,pf,ff,mf,gf,xf,yf,vf,_f,wf=function(t){var e=t.buttonText,n=t.onButtonClick,i=t.prefix,o=t.placeholder,a=t.value,r=t.defaultValue,s=t.onChange,l=t.disabled,c=void 0!==l&&l,d=t.disabledInput,h=void 0!==d&&d,u=t.disabledPrefix,p=void 0!==u&&u,f=t.staticPrefix,m=void 0!==f&&f,g=t.error,b=void 0!==g&&g,x=t.className,y=ji(),v=c||h,_=c||p,w=b?y.color.status.critical:y.color.base.line,k=y.color.base.line;return tt.createElement(Df,{className:x},i&&tt.createElement(Cf,{borderColor:k,bgColor:_?y.color.surface.disabledSurface:m?y.color.surface.secondaryNeutral:y.color.surface.neutral,hoverBgColor:_?y.color.surface.disabledSurface:y.color.interactive.hoverSurface,textColor:_?y.color.surface.disabledOnSurface:y.color.base.onNeutral,isDisabled:_},i),tt.createElement(Of,{type:"text",placeholder:o,value:a,defaultValue:r,onChange:s,disabled:v,borderColor:w,focusBorderColor:y.color.base.primary2,textColor:y.color.base.onNeutral,placeholderColor:y.color.component.placeholderInput,disabledBgColor:y.color.surface.disabledSurface,disabledTextColor:y.color.surface.disabledOnSurface,hasPrefix:!!i,isDisabled:v}),tt.createElement(Tf,{type:"button",onClick:n,disabled:c||b,bgColor:y.color.base.primary,disabledBgColor:y.color.surface.disabledSurface,textColor:y.color.base.onNeutral,disabledTextColor:y.color.surface.disabledOnSurface,isDisabled:c||b},e))},kf=so.large,Sf=kf.height,Ef=kf.borderRadius,Mf=kf.padding,Df=qn.div(Yp||(Yp=Vt(["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"],["\n display: flex;\n height: ",";\n width: 100%;\n position: relative;\n"])),Sf),Cf=qn.div(Vp||(Vp=Vt(["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 16px;\n border: 1px solid ",";\n border-right: none;\n border-radius: "," 0 0 ",";\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n overflow: visible;\n\n & > * {\n pointer-events: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n"])),function(t){return t.borderColor},Ef,Ef,function(t){return t.bgColor},function(t){return t.textColor},io,Vi.P1,function(t){return t.isDisabled?"not-allowed":"default"},function(t){return t.isDisabled?"none":"auto"},function(t){return t.isDisabled?t.bgColor:t.hoverBgColor}),Of=qn.input(Hp||(Hp=Vt(["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"],["\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-family: ",";\n font-size: ",";\n color: ",";\n background-color: ",";\n outline: none;\n box-sizing: border-box;\n cursor: ",";\n\n &::placeholder {\n color: ",";\n font-weight: 400;\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:hover {\n border-color: ",";\n }\n"])),Mf,function(t){return t.borderColor},function(t){return t.hasPrefix?"0":"".concat(Ef," 0 0 ").concat(Ef)},io,Vi.P1,function(t){return t.isDisabled?t.disabledTextColor:t.textColor},function(t){return t.isDisabled?t.disabledBgColor:"transparent"},function(t){return t.isDisabled?"not-allowed":"text"},function(t){return t.placeholderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor},function(t){return t.isDisabled?t.borderColor:t.focusBorderColor}),Tf=qn.button(Wp||(Wp=Vt(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 24px;\n border: none;\n border-radius: 0 "," "," 0;\n background-color: ",";\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: 700;\n white-space: nowrap;\n cursor: ",";\n box-sizing: border-box;\n\n &:hover {\n opacity: ",";\n }\n"])),Ef,Ef,function(t){return t.isDisabled?t.disabledBgColor:t.bgColor},function(t){return t.isDisabled?t.disabledTextColor:t.textColor},io,Vi.P1,function(t){return t.isDisabled?"not-allowed":"pointer"},function(t){return t.isDisabled?1:.9}),Af={small:"400px",medium:"600px"},Pf=qn.div(Up||(Up=Vt(["\n width: calc(100vw - 32px);\n max-width: ",";\n background: white;\n box-shadow:\n 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"],["\n width: calc(100vw - 32px);\n max-width: ",";\n background: white;\n box-shadow:\n 0px 20px 24px -4px rgba(10, 13, 18, 0.08),\n 0px 8px 8px -4px rgba(10, 13, 18, 0.03);\n border-radius: 12px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n"])),function(t){return Af[t.modalSize]}),Rf=qn.div(jp||(jp=Vt(["\n padding: 16px ",";\n"],["\n padding: 16px ",";\n"])),Ti),Lf=qn.div(Gp||(Gp=Vt(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding-top: 4px;\n padding-bottom: 16px;\n border-bottom: 1px solid #d8d8d8;\n"]))),If=qn.h2($p||($p=Vt(["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"],["\n flex: 1 0 0;\n min-width: 0;\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1;\n color: #002b2a;\n"])),mi),Nf=qn.div(Xp||(Xp=Vt(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"],["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 16px ",";\n height: 56px;\n box-sizing: border-box;\n"])),Ti),Ff=qn.div(qp||(qp=Vt(["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"],["\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0 ",";\n"])),Ti),zf=qn.div(Zp||(Zp=Vt(["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n width: 160px;\n height: 160px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),Bf=qn.h2(Kp||(Kp=Vt(["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"],["\n margin: 16px 0 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n text-align: center;\n width: 100%;\n"])),mi),Yf=qn.div(Jp||(Jp=Vt(["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"],["\n padding: 40px "," 0;\n overflow: hidden;\n\n img {\n width: 100%;\n display: block;\n border-radius: 8px;\n }\n"])),Ti),Vf=qn.div(Qp||(Qp=Vt(["\n padding: 16px ",";\n text-align: center;\n"],["\n padding: 16px ",";\n text-align: center;\n"])),Ti),Hf=qn.h2(tf||(tf=Vt(["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"],["\n margin: 0;\n font-family: ",";\n font-weight: 700;\n font-size: 20px;\n line-height: 1.3;\n color: #002b2a;\n"])),mi),Wf=qn.div(ef||(ef=Vt(["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"],["\n padding: 0 "," 16px;\n font-family: ",";\n font-size: 14px;\n line-height: 1.4;\n color: #002b2a;\n"])),Ti,fi),Uf=qn.div(nf||(nf=Vt(["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"],["\n background: #f6f7f9;\n display: flex;\n gap: 16px;\n padding: ",";\n\n > * {\n flex: 1 0 0;\n }\n"])),Ti),jf=qn.div(of||(of=Vt(["\n cursor: pointer;\n flex-shrink: 0;\n"],["\n cursor: pointer;\n flex-shrink: 0;\n"]))),Gf=function(t){var e=t.onClose,n=t.variant,i=void 0===n?"default":n,o=t.size,a=void 0===o?"small":o,r=t.title,s=t.children,l=t.footer,c=t.disabledCloseIcon,d=t.className,h=t.illustration,u=t.headerImage,p=ji().neutral,f="newFeature"===i?"medium":a,m=!c&&tt.createElement(jf,{onClick:function(){return e()}},tt.createElement(At,{color:p.text,width:18}));return tt.createElement(Pf,{modalSize:f,className:d},function(){switch(i){case"illustration":return tt.createElement(tt.Fragment,null,tt.createElement(Nf,null,m),tt.createElement(Ff,null,h&&tt.createElement(zf,null,h),r&&tt.createElement(Bf,null,r)));case"newFeature":return tt.createElement(tt.Fragment,null,u&&tt.createElement(Yf,null,u),r&&tt.createElement(Vf,null,tt.createElement(Hf,null,r)));default:return(r||!c)&&tt.createElement(Rf,null,tt.createElement(Lf,null,tt.createElement(If,null,r||""),m))}}(),tt.createElement(Wf,null,s),l&&tt.createElement(Uf,null,l))},$f=function(t){var e=t.label,n=t.value,i=t.variant,o=void 0===i?"small":i;return tt.createElement(Zf,null,tt.createElement(Kf,{variant:o},e),tt.createElement(Jf,{variant:o},n))},Xf=function(t){var e=t.items,n=t.className;return tt.createElement(qf,{className:n},e.map(function(t,e){return tt.createElement($f,Wt({key:e},t))}))},qf=qn.div(rf||(rf=Vt(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]))),Zf=qn.div(sf||(sf=Vt(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Kf=qn.span(lf||(lf=Vt(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: ",";\n"])),function(t){return"large"===t.variant?mi:fi},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"},function(t){return"large"===t.variant?"#002b2a":"#505454"}),Jf=qn.span(cf||(cf=Vt(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: 1;\n color: #002b2a;\n"])),function(t){return"large"===t.variant?mi:fi},function(t){return"large"===t.variant?700:400},function(t){return"large"===t.variant?"20px":"14px"}),Qf=document.body,tm=function(t){var e=ji().neutral,n=st(document.createElement("div"))[0];return ct(function(){return Qf.appendChild(n),function(){Qf.removeChild(n)}},[n]),Ut.createPortal(tt.createElement(nm,{open:t.open},t.open&&tt.createElement(Cn,{styles:Mn(df||(df=Vt(["\n body {\n overflow: hidden;\n position: fixed;\n }\n "],["\n body {\n overflow: hidden;\n position: fixed;\n }\n "])))}),tt.createElement("div",{className:"".concat(on(hf||(hf=Vt(["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "],["\n width: calc(100% - 32px);\n max-width: 400px;\n background: white;\n box-shadow: 0px 4px 10px rgba(170, 170, 170, 0.25);\n border-radius: 5px;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 1.7vh;\n position: absolute;\n top: 6.8vh;\n left: 50%;\n transform: translateX(-50%);\n "])))," ").concat(t.modalClassName)},tt.createElement(im,{hasIcon:Boolean(t.icon)},tt.createElement(sm,null,tt.createElement(lm,null,t.icon,tt.createElement(Ro,null,t.title)),!t.disabledCloseIcon&&tt.createElement(cm,{onClick:function(){return t.onClose()}},tt.createElement(At,{color:e.text,width:18}))),tt.createElement(Yo,null)),tt.createElement(om,null,t.children),tt.createElement(rm,null,t.footer))),n)},em=Tn(uf||(uf=Vt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),nm=qn.div(ff||(ff=Vt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(0, 0, 0, 0.2);\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.2);\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n\n ",";\n"])),function(t){return t.open&&Mn(pf||(pf=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),em)}),im=qn.div(mf||(mf=Vt(["\n ","\n padding-left: ",";\n padding-right: ",";\n"],["\n ","\n padding-left: ",";\n padding-right: ",";\n"])),function(t){return t.hasIcon?"\n height: 86px;\n ":"\n height: 73px;\n "},Ai,Ai),om=qn.div(gf||(gf=Vt(["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"],["\n border-bottom: 1px solid #e8e8e8;\n padding-top: ",";\n padding-left: ",";\n padding-right: ",";\n padding-bottom: ",";\n"])),Ti,Ai,Ai,Ai),rm=qn.div(xf||(xf=Vt(["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"],["\npadding-top: \n background: #f6f7f9;\n display: flex;\n justify-content: flex-end;\n padding-right: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),Ai,Ci,Ci),sm=qn.div(yf||(yf=Vt(["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),lm=qn.div(vf||(vf=Vt(["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"],["\n display: flex;\n align-items: center;\n user-select: none;\n & :not(:last-child) {\n margin-right: 10px;\n }\n"]))),cm=qn.div(_f||(_f=Vt(["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"],["\n cursor: pointer;\n padding-left: 5px;\n padding-right: 5px;\n margin-right: -5px;\n"])));function dm(t){var e=t.current,n=t.pageSize,i=t.total,o=t.onChange,a=t.showSizeChanger,r=t.onShowSizeChange,s=t.pageSizeOptions,l="\n -webkit-font-smoothing: antialiased;\n\n & > .ant-pagination-prev {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-prev .ant-pagination-item-link {\n border-radius: 5px;\n border: 1px solid ".concat(Vn.G200,";\n }\n\n & > .ant-pagination-item {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n font-family: ").concat(io,";\n border-radius: 5px;\n border: 1px solid ").concat(Vn.G200,";\n margin-right: 5px;\n transition: 0.3s all;\n }\n\n & > .ant-pagination-item-active {\n border-color: ").concat(Hn.PRIMARY_BLUE,";\n }\n\n & > .ant-pagination-next {\n height: 36px;\n line-height: 36px;\n min-width: 36px;\n margin-right: 5px;\n }\n\n & > .ant-pagination-next .ant-pagination-item-link {\n border-radius: 5px;\n }\n ");return tt.createElement(_t,{className:"".concat(on(l)),current:e,pageSize:n,total:i,onChange:o,showSizeChanger:a,onShowSizeChange:r,pageSizeOptions:s})}var hm,um={Group:function(t){return tt.createElement(wt.Group,Wt({size:"large",onChange:t.onChange},t))},Button:function(t){var e=t.children,n=t.disabled,i=Ht(t,["children","disabled"]),o=ji().brand,a="\n &.ant-radio-button-wrapper {\n ".concat(n?"":"color: ".concat(Vn.BLACK," !important;"),"\n -webkit-font-smoothing: antialiased !important;\n display: block !important;\n width: 100% !important;\n font-family: ").concat(io," !important;\n font-weight: 400 !important;\n border-radius: 5px !important;\n border: 1px solid ").concat(Vn.G200," !important;\n user-select: none !important;\n }\n\n .ant-radio-group-large &.ant-radio-button-wrapper {\n height: 44px !important;\n }\n\n &.ant-radio-button-wrapper:first-child, &.ant-radio-button-wrapper:last-child {\n border-radius: 5px !important;\n }\n\n &.ant-radio-button-wrapper:first-child:last-child {\n border-radius: 5px !important;\n }\n\n .ant-radio-group &.ant-radio-button-wrapper {\n font-size: 14px !important;\n }\n\n &.ant-radio-button-wrapper:not(:first-child)::before {\n display: none !important;\n }\n\n &.ant-radio-button-wrapper:hover {\n ").concat(n?"":"\n border-color: ".concat(o.primary.default," !important;\n color: ").concat(Vn.BLACK," !important;\n "),"\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover,\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child {\n border: 2px solid ").concat(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n\n circle {\n transition: all 0.3s !important;\n }\n\n circle.center {\n fill: ").concat(We.S500," !important;\n }\n\n circle.border {\n stroke: ").concat(o.primary.default," !important;\n }\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active {\n border-color: ").concat(o.primary.default," !important;\n color: ").concat(o.primary.default," !important;\n }\n\n &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled).ant-radio-button-wrapper:first-child{\n border-right-color: ").concat(Vn.BLACK," !important;\n }\n ");return tt.createElement(wt.Button,Wt({className:on(a),disabled:n},i),tt.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center"}},tt.createElement("div",{style:{width:"20px",height:"20px",lineHeight:"20px",marginRight:"11px"}},tt.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("circle",{className:"border",cx:"10",cy:"10",r:"9.5",stroke:"#E8E8E8"}),tt.createElement("circle",{className:"center",cx:"10",cy:"10",r:"7",fill:"rgba(0, 0, 0, 0)"}))),e))}},pm={},fm={exports:{}};function mm(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gm,bm={exports:{}};function xm(){return gm||(gm=1,(t=bm).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function o(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function b(t){if(null==t._isValid){var e=g(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function x(t){var e=f(NaN);return null!=t?p(g(e),t):g(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var y=i.momentProperties=[];function v(t,e){var n,i,o;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=g(e)),l(e._locale)||(t._locale=e._locale),y.length>0)for(n=0;n<y.length;n++)l(o=e[i=y[n]])||(t[i]=o);return t}var _=!1;function w(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=S(e)),n}function M(t,e,n){var i,o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&E(t[i])!==E(e[i]))&&r++;return r+a}function D(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var o,a=[],r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(var s in o+="\n["+r+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[r];a.push(o)}D(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,T={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),T[t]||(D(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function R(t){var e,n;for(n in t)P(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function L(t,e){var n,i=p({},t);for(n in e)u(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&r(t[n])&&(i[n]=p({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return P(i)?i.call(e,n):i}var z={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"};function B(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}var Y="Invalid date";function V(){return this._invalidDate}var H="%d",W=/\d{1,2}/;function U(t){return this._ordinal.replace("%d",t)}var j={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function G(t,e,n,i){var o=this._relativeTime[n];return P(o)?o(t,e,n,i):o.replace(/%d/i,t)}function $(t,e){var n=this._relativeTime[t>0?"future":"past"];return P(n)?n(e):n.replace(/%s/i,e)}var X={};function q(t,e){var n=t.toLowerCase();X[n]=X[n+"s"]=X[e]=t}function Z(t){return"string"==typeof t?X[t]||X[t.toLowerCase()]:void 0}function K(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var J={};function Q(t,e){J[t]=e}function tt(t){var e=[];for(var n in t)e.push({unit:n,priority:J[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function et(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var nt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,it=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},at={};function rt(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(at[t]=o),e&&(at[e[0]]=function(){return et(o.apply(this,arguments),e[1],e[2])}),n&&(at[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function st(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function lt(t){var e,n,i=t.match(nt);for(e=0,n=i.length;e<n;e++)at[i[e]]?i[e]=at[i[e]]:i[e]=st(i[e]);return function(e){var o,a="";for(o=0;o<n;o++)a+=P(i[o])?i[o].call(e,t):i[o];return a}}function ct(t,e){return t.isValid()?(e=dt(e,t.localeData()),ot[e]=ot[e]||lt(e),ot[e](t)):t.localeData().invalidDate()}function dt(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(it.lastIndex=0;n>=0&&it.test(t);)t=t.replace(it,i),it.lastIndex=0,n-=1;return t}var ht=/\d/,ut=/\d\d/,pt=/\d{3}/,ft=/\d{4}/,mt=/[+-]?\d{6}/,gt=/\d\d?/,bt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,yt=/\d{1,3}/,vt=/\d{1,4}/,_t=/[+-]?\d{1,6}/,wt=/\d+/,kt=/[+-]?\d+/,St=/Z|[+-]\d\d:?\d\d/gi,Et=/Z|[+-]\d\d(?::?\d\d)?/gi,Mt=/[+-]?\d+(\.\d{1,3})?/,Dt=/[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,Ct={};function Ot(t,e,n){Ct[t]=P(e)?e:function(t,i){return t&&n?n:e}}function Tt(t,e){return u(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Rt={};function Lt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)Rt[t[n]]=i}function It(t,e){Lt(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Nt(t,e,n){null!=e&&u(Rt,t)&&Rt[t](e,n._a,n,t)}var Ft=0,zt=1,Bt=2,Yt=3,Vt=4,Ht=5,Wt=6,Ut=7,jt=8;function Gt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}rt("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),rt(0,["YY",2],0,function(){return this.year()%100}),rt(0,["YYYY",4],0,"year"),rt(0,["YYYYY",5],0,"year"),rt(0,["YYYYYY",6,!0],0,"year"),q("year","y"),Q("year",1),Ot("Y",kt),Ot("YY",gt,ut),Ot("YYYY",vt,ft),Ot("YYYYY",_t,mt),Ot("YYYYYY",_t,mt),Lt(["YYYYY","YYYYYY"],Ft),Lt("YYYY",function(t,e){e[Ft]=2===t.length?i.parseTwoDigitYear(t):E(t)}),Lt("YY",function(t,e){e[Ft]=i.parseTwoDigitYear(t)}),Lt("Y",function(t,e){e[Ft]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return E(t)+(E(t)>68?1900:2e3)};var Xt,qt=Kt("FullYear",!0);function Zt(){return $t(this.year())}function Kt(t,e){return function(n){return null!=n?(Qt(this,t,n),i.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Qt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$t(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),ie(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function te(t){return P(this[t=Z(t)])?this[t]():this}function ee(t,e){if("object"==typeof t)for(var n=tt(t=K(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(P(this[t=Z(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?$t(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},rt("M",["MM",2],"Mo",function(){return this.month()+1}),rt("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),rt("MMMM",0,0,function(t){return this.localeData().months(this,t)}),q("month","M"),Q("month",8),Ot("M",gt),Ot("MM",gt,ut),Ot("MMM",function(t,e){return e.monthsShortRegex(t)}),Ot("MMMM",function(t,e){return e.monthsRegex(t)}),Lt(["M","MM"],function(t,e){e[zt]=E(t)-1}),Lt(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[zt]=o:g(n).invalidMonth=t});var oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function re(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}var se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function le(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:"MMM"===e?-1!==(o=Xt.call(this._shortMonthsParse,r))||-1!==(o=Xt.call(this._longMonthsParse,r))?o:null:-1!==(o=Xt.call(this._longMonthsParse,r))||-1!==(o=Xt.call(this._shortMonthsParse,r))?o:null}function de(t,e,n){var i,o,a;if(this._monthsParseExact)return ce.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function he(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),ie(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ue(t){return null!=t?(he(this,t),i.updateOffset(this,!0),this):Jt(this,"Month")}function pe(){return ie(this.year(),this.month())}var fe=Dt;function me(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=fe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}var ge=Dt;function be(t){return this._monthsParseExact?(u(this,"_monthsRegex")||xe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ge),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function xe(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),a.sort(t),e=0;e<12;e++)i[e]=Pt(i[e]),o[e]=Pt(o[e]);for(e=0;e<24;e++)a[e]=Pt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function ye(t,e,n,i,o,a,r){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,o,a,r),s}function ve(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _e(t,e,n){var i=7+e-n;return-(7+ve(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,o){var a,r,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,o);return s<=0?r=Gt(a=t-1)+s:s>Gt(t)?(a=t+1,r=s-Gt(t)):(a=t,r=s),{year:a,dayOfYear:r}}function ke(t,e,n){var i,o,a=_e(t.year(),e,n),r=Math.floor((t.dayOfYear()-a-1)/7)+1;return r<1?i=r+Se(o=t.year()-1,e,n):r>Se(t.year(),e,n)?(i=r-Se(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{week:i,year:o}}function Se(t,e,n){var i=_e(t,e,n),o=_e(t+1,e,n);return(Gt(t)-i+o)/7}function Ee(t){return ke(t,this._week.dow,this._week.doy).week}rt("w",["ww",2],"wo","week"),rt("W",["WW",2],"Wo","isoWeek"),q("week","w"),q("isoWeek","W"),Q("week",5),Q("isoWeek",5),Ot("w",gt),Ot("ww",gt,ut),Ot("W",gt),Ot("WW",gt,ut),It(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=E(t)});var Me={dow:0,doy:6};function De(){return this._week.dow}function Ce(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Te(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(t,e){return t.slice(e,7).concat(t.slice(0,e))}rt("d",0,"do","day"),rt("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),rt("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),rt("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),rt("e",0,0,"weekday"),rt("E",0,0,"isoWeekday"),q("day","d"),q("weekday","e"),q("isoWeekday","E"),Q("day",11),Q("weekday",11),Q("isoWeekday",11),Ot("d",gt),Ot("e",gt),Ot("E",gt),Ot("dd",function(t,e){return e.weekdaysMinRegex(t)}),Ot("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Ot("dddd",function(t,e){return e.weekdaysRegex(t)}),It(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:g(n).invalidWeekday=t}),It(["d","e","E"],function(t,e,n,i){e[i]=E(t)});var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ie(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(n,this._week.dow):t?n[t.day()]:n}var Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Fe(t){return!0===t?Re(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}var ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Be(t){return!0===t?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ye(t,e,n){var i,o,a,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"dddd"===e?-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:"ddd"===e?-1!==(o=Xt.call(this._shortWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._minWeekdaysParse,r))?o:null:-1!==(o=Xt.call(this._minWeekdaysParse,r))||-1!==(o=Xt.call(this._weekdaysParse,r))||-1!==(o=Xt.call(this._shortWeekdaysParse,r))?o:null}function Ve(t,e,n){var i,o,a;if(this._weekdaysParseExact)return Ye.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function He(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function We(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ue(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}var je=Dt;function Ge(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=je),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}var $e=Dt;function Xe(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var qe=Dt;function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,o,a,r=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);for(r.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=Pt(s[e]),l[e]=Pt(l[e]),c[e]=Pt(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){rt(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}rt("H",["HH",2],0,"hour"),rt("h",["hh",2],0,Je),rt("k",["kk",2],0,Qe),rt("hmm",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)}),rt("hmmss",0,0,function(){return""+Je.apply(this)+et(this.minutes(),2)+et(this.seconds(),2)}),rt("Hmm",0,0,function(){return""+this.hours()+et(this.minutes(),2)}),rt("Hmmss",0,0,function(){return""+this.hours()+et(this.minutes(),2)+et(this.seconds(),2)}),tn("a",!0),tn("A",!1),q("hour","h"),Q("hour",13),Ot("a",en),Ot("A",en),Ot("H",gt),Ot("h",gt),Ot("k",gt),Ot("HH",gt,ut),Ot("hh",gt,ut),Ot("kk",gt,ut),Ot("hmm",bt),Ot("hmmss",xt),Ot("Hmm",bt),Ot("Hmmss",xt),Lt(["H","HH"],Yt),Lt(["k","kk"],function(t,e,n){var i=E(t);e[Yt]=24===i?0:i}),Lt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Lt(["h","hh"],function(t,e,n){e[Yt]=E(t),g(n).bigHour=!0}),Lt("hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i)),g(n).bigHour=!0}),Lt("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o)),g(n).bigHour=!0}),Lt("Hmm",function(t,e,n){var i=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i))}),Lt("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[Yt]=E(t.substr(0,i)),e[Vt]=E(t.substr(i,2)),e[Ht]=E(t.substr(o))});var on=/[ap]\.?m?\.?/i;function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var rn,sn=Kt("Hours",!0),ln={calendar:N,longDateFormat:z,invalidDate:Y,ordinal:H,dayOfMonthOrdinalParse:W,relativeTime:j,months:ae,monthsShort:se,week:Me,weekdays:Le,weekdaysMin:ze,weekdaysShort:Ne,meridiemParse:on},cn={},dn={};function hn(t){return t?t.toLowerCase().replace("_","-"):t}function un(t){for(var e,n,i,o,a=0;a<t.length;){for(e=(o=hn(t[a]).split("-")).length,n=(n=hn(t[a+1]))?n.split("-"):null;e>0;){if(i=pn(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&M(o,n,!0)>=e-1)break;e--}a++}return rn}function pn(e){var n=null;if(!cn[e]&&t&&t.exports)try{n=rn._abbr,mm("./locale/"+e),fn(n)}catch(t){}return cn[e]}function fn(t,e){var n;return t&&((n=l(e)?bn(t):mn(t,e))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),rn._abbr}function mn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=cn[t])A("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."),i=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])i=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return cn[t]=new I(L(i,e)),dn[t]&&dn[t].forEach(function(t){mn(t.name,t.config)}),fn(t),cn[t]}return delete cn[t],null}function gn(t,e){if(null!=e){var n,i,o=ln;null!=(i=pn(t))&&(o=i._config),(n=new I(e=L(o,e))).parentLocale=cn[t],cn[t]=n,fn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?cn[t]=cn[t].parentLocale:null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return rn;if(!a(t)){if(e=pn(t))return e;t=[t]}return un(t)}function xn(){return O(cn)}function yn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[Bt]<1||n[Bt]>ie(n[Ft],n[zt])?Bt:n[Yt]<0||n[Yt]>24||24===n[Yt]&&(0!==n[Vt]||0!==n[Ht]||0!==n[Wt])?Yt:n[Vt]<0||n[Vt]>59?Vt:n[Ht]<0||n[Ht]>59?Ht:n[Wt]<0||n[Wt]>999?Wt:-1,g(t)._overflowDayOfYear&&(e<Ft||e>Bt)&&(e=Bt),g(t)._overflowWeeks&&-1===e&&(e=Ut),g(t)._overflowWeekday&&-1===e&&(e=jt),g(t).overflow=e),t}function vn(t,e,n){return null!=t?t:null!=e?e:n}function _n(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function wn(t){var e,n,i,o,a,r=[];if(!t._d){for(i=_n(t),t._w&&null==t._a[Bt]&&null==t._a[zt]&&kn(t),null!=t._dayOfYear&&(a=vn(t._a[Ft],i[Ft]),(t._dayOfYear>Gt(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=ve(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[Bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yt]&&0===t._a[Vt]&&0===t._a[Ht]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Yt]=0),t._d=(t._useUTC?ve:ye).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function kn(t){var e,n,i,o,a,r,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,r=4,n=vn(e.GG,t._a[Ft],ke(Xn(),1,4).year),i=vn(e.W,1),((o=vn(e.E,1))<1||o>7)&&(l=!0);else{a=t._locale._week.dow,r=t._locale._week.doy;var c=ke(Xn(),a,r);n=vn(e.gg,t._a[Ft],c.year),i=vn(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a}i<1||i>Se(n,a,r)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=we(n,i,o,a,r),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}var Sn=/^\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)?)?$/,En=/^\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)?)?$/,Mn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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}/]],Cn=[["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/]],On=/^\/?Date\((\-?\d+)/i;function Tn(t){var e,n,i,o,a,r,s=t._i,l=Sn.exec(s)||En.exec(s);if(l){for(g(t).iso=!0,e=0,n=Dn.length;e<n;e++)if(Dn[e][1].exec(l[1])){o=Dn[e][0],i=!1!==Dn[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Cn.length;e<n;e++)if(Cn[e][1].exec(l[3])){a=(l[2]||" ")+Cn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!i&&null!=a)return void(t._isValid=!1);if(l[4]){if(!Mn.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(a||"")+(r||""),Yn(t)}else t._isValid=!1}var An=/^(?:(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}))$/;function Pn(t,e,n,i,o,a){var r=[Rn(t),se.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return a&&r.push(parseInt(a,10)),r}function Rn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ln(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function In(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}var Nn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fn(t,e,n){if(t)return Nn[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function zn(t){var e=An.exec(Ln(t._i));if(e){var n=Pn(e[4],e[3],e[2],e[5],e[6],e[7]);if(!In(e[1],n,t))return;t._a=n,t._tzm=Fn(e[8],e[9],e[10]),t._d=ve.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=On.exec(t._i);null===e?(Tn(t),!1===t._isValid&&(delete t._isValid,zn(t),!1===t._isValid&&(delete t._isValid,i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Yn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],g(t).empty=!0;var e,n,o,a,r,s=""+t._i,l=s.length,c=0;for(o=dt(t._f,t._locale).match(nt)||[],e=0;e<o.length;e++)a=o[e],(n=(s.match(Tt(a,t))||[])[0])&&((r=s.substr(0,s.indexOf(n))).length>0&&g(t).unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),c+=n.length),at[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),Nt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-c,s.length>0&&g(t).unusedInput.push(s),t._a[Yt]<=12&&!0===g(t).bigHour&&t._a[Yt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Yt]=Vn(t._locale,t._a[Yt],t._meridiem),wn(t),yn(t)}else zn(t);else Tn(t)}function Vn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Hn(t){var e,n,i,o,a;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)a=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Yn(e),b(e)&&(a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,(null==i||a<i)&&(i=a,n=e));p(t,n||e)}function Wn(t){if(!t._d){var e=K(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),wn(t)}}function Un(t){var e=new w(yn(jn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function jn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?x({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(yn(e)):(d(e)?t._d=e:a(n)?Hn(t):n?Yn(t):Gn(t),b(t)||(t._d=null),t))}function Gn(t){var e=t._i;l(e)?t._d=new Date(i.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):a(e)?(t._a=h(e.slice(0),function(t){return parseInt(t,10)}),wn(t)):r(e)?Wn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,o){var l={};return!0!==n&&!1!==n||(i=n,n=void 0),(r(t)&&s(t)||a(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=t,l._f=e,l._strict=i,Un(l)}function Xn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=C("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var qn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:x()}),Zn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:x()});function Kn(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Xn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jn(){return Kn("isBefore",[].slice.call(arguments,0))}function Qn(){return Kn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ei=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){for(var e in t)if(-1===Xt.call(ei,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<ei.length;++i)if(t[ei[i]]){if(n)return!1;parseFloat(t[ei[i]])!==E(t[ei[i]])&&(n=!0)}return!0}function ii(){return this._isValid}function oi(){return Mi(NaN)}function ai(t){var e=K(t),n=e.year||0,i=e.quarter||0,o=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=ni(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function ri(t){return t instanceof ai}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function li(t,e){rt(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+et(~~(t/60),2)+e+et(~~t%60,2)})}li("Z",":"),li("ZZ",""),Ot("Z",Et),Ot("ZZ",Et),Lt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=di(Et,t)});var ci=/([\+\-]|\d\d)/gi;function di(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ci)||["-",0,0],o=60*i[1]+E(i[2]);return 0===o?0:"+"===i[0]?o:-o}function hi(t,e){var n,o;return e._isUTC?(n=e.clone(),o=(k(t)||d(t)?t.valueOf():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),i.updateOffset(n,!1),n):Xn(t).local()}function ui(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function pi(t,e,n){var o,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=di(Et,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(o=ui(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),a!==t&&(!e||this._changeInProgress?Ai(this,Mi(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:ui(this)}function fi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function mi(t){return this.utcOffset(0,t)}function gi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=di(St,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Xn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function yi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=jn(t))._a){var e=t._isUTC?f(t._a):Xn(t._a);this._isDSTShifted=this.isValid()&&M(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function _i(){return!!this.isValid()&&!this._isUTC}function wi(){return!!this.isValid()&&this._isUTC}function ki(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Si=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ei=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mi(t,e){var n,i,o,a=t,r=null;return ri(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(r=Si.exec(t))?(n="-"===r[1]?-1:1,a={y:0,d:E(r[Bt])*n,h:E(r[Yt])*n,m:E(r[Vt])*n,s:E(r[Ht])*n,ms:E(si(1e3*r[Wt]))*n}):(r=Ei.exec(t))?(n="-"===r[1]?-1:1,a={y:Di(r[2],n),M:Di(r[3],n),w:Di(r[4],n),d:Di(r[5],n),h:Di(r[6],n),m:Di(r[7],n),s:Di(r[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Oi(Xn(a.from),Xn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),i=new ai(a),ri(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Di(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ci(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Oi(t,e){var n;return t.isValid()&&e.isValid()?(e=hi(e,t),t.isBefore(e)?n=Ci(t,e):((n=Ci(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ti(t,e){return function(n,i){var o;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Ai(this,Mi(n="string"==typeof n?+n:n,i),t),this}}function Ai(t,e,n,o){var a=e._milliseconds,r=si(e._days),s=si(e._months);t.isValid()&&(o=null==o||o,s&&he(t,Jt(t,"Month")+s*n),r&&Qt(t,"Date",Jt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),o&&i.updateOffset(t,r||s))}Mi.fn=ai.prototype,Mi.invalid=oi;var Pi=Ti(1,"add"),Ri=Ti(-1,"subtract");function Li(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ii(t,e){var n=t||Xn(),o=hi(n,this).startOf("day"),a=i.calendarFormat(this,o)||"sameElse",r=e&&(P(e[a])?e[a].call(this,n):e[a]);return this.format(r||this.localeData().calendar(a,this,Xn(n)))}function Ni(){return new w(this)}function Fi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function zi(t,e){var n=k(t)?t:Xn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Bi(t,e,n,i){var o=k(t)?t:Xn(t),a=k(e)?e:Xn(e);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Yi(t,e){var n,i=k(t)?t:Xn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Vi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Hi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Wi(t,e,n){var i,o,a;if(!this.isValid())return NaN;if(!(i=hi(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":a=Ui(this,i)/12;break;case"month":a=Ui(this,i);break;case"quarter":a=Ui(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:S(a)}function Ui(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function ji(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?ct(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ct(n,"Z")):ct(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=e+'[")]';return this.format(n+i+o+a)}function Xi(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=ct(this,t);return this.localeData().postformat(e)}function qi(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Zi(t){return this.from(Xn(),t)}function Ki(t,e){return this.isValid()&&(k(t)&&t.isValid()||Xn(t).isValid())?Mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ji(t){return this.to(Xn(),t)}function Qi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var to=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eo(){return this._locale}var no=1e3,io=60*no,oo=60*io,ao=3506328*oo;function ro(t,e){return(t%e+e)%e}function so(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ao:new Date(t,e,n).valueOf()}function lo(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ao:Date.UTC(t,e,n)}function co(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ro(e+(this._isUTC?0:this.utcOffset()*io),oo);break;case"minute":e=this._d.valueOf(),e-=ro(e,io);break;case"second":e=this._d.valueOf(),e-=ro(e,no)}return this._d.setTime(e),i.updateOffset(this,!0),this}function ho(t){var e;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?lo:so;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=oo-ro(e+(this._isUTC?0:this.utcOffset()*io),oo)-1;break;case"minute":e=this._d.valueOf(),e+=io-ro(e,io)-1;break;case"second":e=this._d.valueOf(),e+=no-ro(e,no)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function uo(){return this._d.valueOf()-6e4*(this._offset||0)}function po(){return Math.floor(this.valueOf()/1e3)}function fo(){return new Date(this.valueOf())}function mo(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function go(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bo(){return this.isValid()?this.toISOString():null}function xo(){return b(this)}function yo(){return p({},g(this))}function vo(){return g(this).overflow}function _o(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function wo(t,e){rt(0,[t,t.length],0,e)}function ko(t){return Do.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function So(t){return Do.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Eo(){return Se(this.year(),1,4)}function Mo(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Do(t,e,n,i,o){var a;return null==t?ke(this,i,o).year:(e>(a=Se(t,i,o))&&(e=a),Co.call(this,t,e,n,i,o))}function Co(t,e,n,i,o){var a=we(t,e,n,i,o),r=ve(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Oo(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}rt(0,["gg",2],0,function(){return this.weekYear()%100}),rt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wo("gggg","weekYear"),wo("ggggg","weekYear"),wo("GGGG","isoWeekYear"),wo("GGGGG","isoWeekYear"),q("weekYear","gg"),q("isoWeekYear","GG"),Q("weekYear",1),Q("isoWeekYear",1),Ot("G",kt),Ot("g",kt),Ot("GG",gt,ut),Ot("gg",gt,ut),Ot("GGGG",vt,ft),Ot("gggg",vt,ft),Ot("GGGGG",_t,mt),Ot("ggggg",_t,mt),It(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=E(t)}),It(["gg","GG"],function(t,e,n,o){e[o]=i.parseTwoDigitYear(t)}),rt("Q",0,"Qo","quarter"),q("quarter","Q"),Q("quarter",7),Ot("Q",ht),Lt("Q",function(t,e){e[zt]=3*(E(t)-1)}),rt("D",["DD",2],"Do","date"),q("date","D"),Q("date",9),Ot("D",gt),Ot("DD",gt,ut),Ot("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Lt(["D","DD"],Bt),Lt("Do",function(t,e){e[Bt]=E(t.match(gt)[0])});var To=Kt("Date",!0);function Ao(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}rt("DDD",["DDDD",3],"DDDo","dayOfYear"),q("dayOfYear","DDD"),Q("dayOfYear",4),Ot("DDD",yt),Ot("DDDD",pt),Lt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=E(t)}),rt("m",["mm",2],0,"minute"),q("minute","m"),Q("minute",14),Ot("m",gt),Ot("mm",gt,ut),Lt(["m","mm"],Vt);var Po=Kt("Minutes",!1);rt("s",["ss",2],0,"second"),q("second","s"),Q("second",15),Ot("s",gt),Ot("ss",gt,ut),Lt(["s","ss"],Ht);var Ro,Lo=Kt("Seconds",!1);for(rt("S",0,0,function(){return~~(this.millisecond()/100)}),rt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rt(0,["SSS",3],0,"millisecond"),rt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),rt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),rt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),rt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),rt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),rt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),q("millisecond","ms"),Q("millisecond",16),Ot("S",yt,ht),Ot("SS",yt,ut),Ot("SSS",yt,pt),Ro="SSSS";Ro.length<=9;Ro+="S")Ot(Ro,wt);function Io(t,e){e[Wt]=E(1e3*("0."+t))}for(Ro="S";Ro.length<=9;Ro+="S")Lt(Ro,Io);var No=Kt("Milliseconds",!1);function Fo(){return this._isUTC?"UTC":""}function zo(){return this._isUTC?"Coordinated Universal Time":""}rt("z",0,0,"zoneAbbr"),rt("zz",0,0,"zoneName");var Bo=w.prototype;function Yo(t){return Xn(1e3*t)}function Vo(){return Xn.apply(null,arguments).parseZone()}function Ho(t){return t}Bo.add=Pi,Bo.calendar=Ii,Bo.clone=Ni,Bo.diff=Wi,Bo.endOf=ho,Bo.format=Xi,Bo.from=qi,Bo.fromNow=Zi,Bo.to=Ki,Bo.toNow=Ji,Bo.get=te,Bo.invalidAt=vo,Bo.isAfter=Fi,Bo.isBefore=zi,Bo.isBetween=Bi,Bo.isSame=Yi,Bo.isSameOrAfter=Vi,Bo.isSameOrBefore=Hi,Bo.isValid=xo,Bo.lang=to,Bo.locale=Qi,Bo.localeData=eo,Bo.max=Zn,Bo.min=qn,Bo.parsingFlags=yo,Bo.set=ee,Bo.startOf=co,Bo.subtract=Ri,Bo.toArray=mo,Bo.toObject=go,Bo.toDate=fo,Bo.toISOString=Gi,Bo.inspect=$i,Bo.toJSON=bo,Bo.toString=ji,Bo.unix=po,Bo.valueOf=uo,Bo.creationData=_o,Bo.year=qt,Bo.isLeapYear=Zt,Bo.weekYear=ko,Bo.isoWeekYear=So,Bo.quarter=Bo.quarters=Oo,Bo.month=ue,Bo.daysInMonth=pe,Bo.week=Bo.weeks=Oe,Bo.isoWeek=Bo.isoWeeks=Te,Bo.weeksInYear=Mo,Bo.isoWeeksInYear=Eo,Bo.date=To,Bo.day=Bo.days=He,Bo.weekday=We,Bo.isoWeekday=Ue,Bo.dayOfYear=Ao,Bo.hour=Bo.hours=sn,Bo.minute=Bo.minutes=Po,Bo.second=Bo.seconds=Lo,Bo.millisecond=Bo.milliseconds=No,Bo.utcOffset=pi,Bo.utc=mi,Bo.local=gi,Bo.parseZone=bi,Bo.hasAlignedHourOffset=xi,Bo.isDST=yi,Bo.isLocal=_i,Bo.isUtcOffset=wi,Bo.isUtc=ki,Bo.isUTC=ki,Bo.zoneAbbr=Fo,Bo.zoneName=zo,Bo.dates=C("dates accessor is deprecated. Use date instead.",To),Bo.months=C("months accessor is deprecated. Use month instead",ue),Bo.years=C("years accessor is deprecated. Use year instead",qt),Bo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fi),Bo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vi);var Wo=I.prototype;function Uo(t,e,n,i){var o=bn(),a=f().set(i,e);return o[n](a,t)}function jo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Uo(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Uo(t,i,n,"month");return o}function Go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var o,a=bn(),r=t?a._week.dow:0;if(null!=n)return Uo(e,(n+r)%7,i,"day");var s=[];for(o=0;o<7;o++)s[o]=Uo(e,(o+r)%7,i,"day");return s}function $o(t,e){return jo(t,e,"months")}function Xo(t,e){return jo(t,e,"monthsShort")}function qo(t,e,n){return Go(t,e,n,"weekdays")}function Zo(t,e,n){return Go(t,e,n,"weekdaysShort")}function Ko(t,e,n){return Go(t,e,n,"weekdaysMin")}Wo.calendar=F,Wo.longDateFormat=B,Wo.invalidDate=V,Wo.ordinal=U,Wo.preparse=Ho,Wo.postformat=Ho,Wo.relativeTime=G,Wo.pastFuture=$,Wo.set=R,Wo.months=re,Wo.monthsShort=le,Wo.monthsParse=de,Wo.monthsRegex=be,Wo.monthsShortRegex=me,Wo.week=Ee,Wo.firstDayOfYear=Ce,Wo.firstDayOfWeek=De,Wo.weekdays=Ie,Wo.weekdaysMin=Be,Wo.weekdaysShort=Fe,Wo.weekdaysParse=Ve,Wo.weekdaysRegex=Ge,Wo.weekdaysShortRegex=Xe,Wo.weekdaysMinRegex=Ze,Wo.isPM=nn,Wo.meridiem=an,fn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",bn);var Jo=Math.abs;function Qo(){var t=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),t.milliseconds=Jo(t.milliseconds),t.seconds=Jo(t.seconds),t.minutes=Jo(t.minutes),t.hours=Jo(t.hours),t.months=Jo(t.months),t.years=Jo(t.years),this}function ta(t,e,n,i){var o=Mi(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function ea(t,e){return ta(this,t,e,1)}function na(t,e){return ta(this,t,e,-1)}function ia(t){return t<0?Math.floor(t):Math.ceil(t)}function oa(){var t,e,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*ia(ra(s)+r),r=0,s=0),l.milliseconds=a%1e3,t=S(a/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,r+=S(n/24),s+=o=S(aa(r)),r-=ia(ra(o)),i=S(s/12),s%=12,l.days=r,l.months=s,l.years=i,this}function aa(t){return 4800*t/146097}function ra(t){return 146097*t/4800}function sa(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+aa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ra(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function la(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function ca(t){return function(){return this.as(t)}}var da=ca("ms"),ha=ca("s"),ua=ca("m"),pa=ca("h"),fa=ca("d"),ma=ca("w"),ga=ca("M"),ba=ca("Q"),xa=ca("y");function ya(){return Mi(this)}function va(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN}function _a(t){return function(){return this.isValid()?this._data[t]:NaN}}var wa=_a("milliseconds"),ka=_a("seconds"),Sa=_a("minutes"),Ea=_a("hours"),Ma=_a("days"),Da=_a("months"),Ca=_a("years");function Oa(){return S(this.days()/7)}var Ta=Math.round,Aa={ss:44,s:45,m:45,h:22,d:26,M:11};function Pa(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Ra(t,e,n){var i=Mi(t).abs(),o=Ta(i.as("s")),a=Ta(i.as("m")),r=Ta(i.as("h")),s=Ta(i.as("d")),l=Ta(i.as("M")),c=Ta(i.as("y")),d=o<=Aa.ss&&["s",o]||o<Aa.s&&["ss",o]||a<=1&&["m"]||a<Aa.m&&["mm",a]||r<=1&&["h"]||r<Aa.h&&["hh",r]||s<=1&&["d"]||s<Aa.d&&["dd",s]||l<=1&&["M"]||l<Aa.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=e,d[3]=+t>0,d[4]=n,Pa.apply(null,d)}function La(t){return void 0===t?Ta:"function"==typeof t&&(Ta=t,!0)}function Ia(t,e){return void 0!==Aa[t]&&(void 0===e?Aa[t]:(Aa[t]=e,"s"===t&&(Aa.ss=e-1),!0))}function Na(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Ra(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}var Fa=Math.abs;function za(t){return(t>0)-(t<0)||+t}function Ba(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Fa(this._milliseconds)/1e3,i=Fa(this._days),o=Fa(this._months);t=S(n/60),e=S(t/60),n%=60,t%=60;var a=S(o/12),r=o%=12,s=i,l=e,c=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var u=h<0?"-":"",p=za(this._months)!==za(h)?"-":"",f=za(this._days)!==za(h)?"-":"",m=za(this._milliseconds)!==za(h)?"-":"";return u+"P"+(a?p+a+"Y":"")+(r?p+r+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Ya=ai.prototype;return Ya.isValid=ii,Ya.abs=Qo,Ya.add=ea,Ya.subtract=na,Ya.as=sa,Ya.asMilliseconds=da,Ya.asSeconds=ha,Ya.asMinutes=ua,Ya.asHours=pa,Ya.asDays=fa,Ya.asWeeks=ma,Ya.asMonths=ga,Ya.asQuarters=ba,Ya.asYears=xa,Ya.valueOf=la,Ya._bubble=oa,Ya.clone=ya,Ya.get=va,Ya.milliseconds=wa,Ya.seconds=ka,Ya.minutes=Sa,Ya.hours=Ea,Ya.days=Ma,Ya.weeks=Oa,Ya.months=Da,Ya.years=Ca,Ya.humanize=Na,Ya.toISOString=Ba,Ya.toString=Ba,Ya.toJSON=Ba,Ya.locale=Qi,Ya.localeData=eo,Ya.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ba),Ya.lang=to,rt("X",0,0,"unix"),rt("x",0,0,"valueOf"),Ot("x",kt),Ot("X",Mt),Lt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Lt("x",function(t,e,n){n._d=new Date(E(t))}),i.version="2.24.0",o(Xn),i.fn=Bo,i.min=Jn,i.max=Qn,i.now=ti,i.utc=f,i.unix=Yo,i.months=$o,i.isDate=d,i.locale=fn,i.invalid=x,i.duration=Mi,i.isMoment=k,i.weekdays=qo,i.parseZone=Vo,i.localeData=bn,i.isDuration=ri,i.monthsShort=Xo,i.weekdaysMin=Ko,i.defineLocale=mn,i.updateLocale=gn,i.locales=xn,i.weekdaysShort=Zo,i.normalizeUnits=Z,i.relativeTimeRounding=La,i.relativeTimeThreshold=Ia,i.calendarFormat=Li,i.prototype=Bo,i.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"},i}()),bm.exports;var t}var ym,vm,_m={};var wm=function(){if(vm)return pm;vm=1;var t,e=(hm||(hm=1,(t=fm).exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports),fm.exports).default;Object.defineProperty(pm,"__esModule",{value:!0}),pm.default=void 0;var n=e(xm()),i=function(){if(ym)return _m;ym=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.call=r,_m.default=void 0,_m.note=o,_m.noteOnce=l,_m.preMessage=void 0,_m.resetWarned=a,_m.warning=i,_m.warningOnce=s;var t={},e=[],n=_m.preMessage=function(t){e.push(t)};function i(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","warning")},n);i&&console.error("Warning: ".concat(i))}}function o(t,n){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var i=e.reduce(function(t,e){return e(null!=t?t:"","note")},n);i&&console.warn("Note: ".concat(i))}}function a(){t={}}function r(e,n,i){n||t[i]||(e(!1,i),t[i]=!0)}function s(t,e){r(i,t,e)}function l(t,e){r(o,t,e)}return s.preMessage=n,s.resetWarned=a,s.noteOnce=l,_m.default=s,_m}(),o={getNow:function(){return(0,n.default)()},getFixedDate:function(t){return(0,n.default)(t,"YYYY-MM-DD")},getEndDate:function(t){return t.clone().endOf("month")},getWeekDay:function(t){var e=t.clone().locale("en_US");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.clone().add(e,"year")},addMonth:function(t,e){return t.clone().add(e,"month")},addDate:function(t,e){return t.clone().add(e,"day")},setYear:function(t,e){return t.clone().year(e)},setMonth:function(t,e){return t.clone().month(e)},setDate:function(t,e){return t.clone().date(e)},setHour:function(t,e){return t.clone().hour(e)},setMinute:function(t,e){return t.clone().minute(e)},setSecond:function(t,e){return t.clone().second(e)},setMillisecond:function(t,e){return t.clone().millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return(0,n.default)().locale(t).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.clone().locale(t).weekday(0)},getWeek:function(t,e){return e.clone().locale(t).week()},getShortWeekDays:function(t){return(0,n.default)().locale(t).localeData().weekdaysMin()},getShortMonths:function(t){return(0,n.default)().locale(t).localeData().monthsShort()},format:function(t,e,n){return e.clone().locale(t).format(n)},parse:function(t,e,o){for(var a=[],r=0;r<o.length;r+=1){var s=o[r],l=e;if(s.includes("wo")||s.includes("Wo")){var c=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),d=l.match(/[-\d]+/g);c&&d?(s=c.join(""),l=d.join("")):a.push(s.replace(/o/g,""))}var h=(0,n.default)(l,s,t,!0);if(h.isValid())return h}for(var u=0;u<a.length;u+=1){var p=(0,n.default)(e,a[u],t,!1);if(p.isValid())return(0,i.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};return pm.default=o,pm}(),km=re(wm),Sm=kt.generatePicker(km);function Em(t){var e=t.format,n=void 0===e?"DD-MM-YYYY":e,i=t.size,o=void 0===i?"large":i,a=Ht(t,["format","size"]),r=ji(),s=so[o],l=s.height,c=s.borderRadius,d=s.padding,h="\n -webkit-font-smoothing: antialiased;\n height: ".concat(l," !important;\n\n &.ant-picker {\n border-radius: ").concat(c," !important;\n border-color: ").concat(r.color.base.line," !important;\n padding: ").concat(d," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(r.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(r.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n\n .ant-picker-active-bar {\n background: ").concat(r.color.base.primary2," !important;\n }\n }\n\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n color: ").concat(r.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n color: ").concat(r.color.component.placeholderInput," !important;\n }\n "),u="\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-end > .ant-picker-cell-inner {\n background-color: ".concat(r.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view.ant-picker-cell-range-start > .ant-picker-cell-inner {\n background-color: ").concat(r.color.base.primary2," !important;\n }\n\n .ant-picker-cell.ant-picker-cell-in-view {\n &.ant-picker-cell-in-range::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-end::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n\n &.ant-picker-cell-range-start::before {\n background-color: ").concat(r.color.interactive.selected," !important;\n }\n }\n ");return tt.createElement(Sm.RangePicker,Wt({className:"".concat(on(h)),format:n,popupClassName:on(u)},a))}var Mm,Dm,Cm=qn("div")(Mm||(Mm=Vt(["\n display: ",";\n "," {\n display: ",";\n }\n"],["\n display: ",";\n "," {\n display: ",";\n }\n"])),function(t){return"lg"===t.only?"block":"none"},hi,function(t){return"lg"===t.only?"none":"block"}),Om=function(t){var e=t.className,n=Ht(t,["className"]),i="\n & .ant-steps-item-title {\n padding-right: 0;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ".concat(bi,"\n ").concat(Di,"\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(bi,"\n ").concat(Mi,"\n }\n \n & .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot {\n background: #43CC32;\n }\n \n &.ant-steps-dot .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-dot .ant-steps-item-content {\n width: unset;\n max-width: 100%;\n }\n \n &.ant-steps-dot .ant-steps-item-process .ant-steps-item-icon {\n width: 13px;\n height: 13px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-icon {\n margin-top: 6px;\n }\n \n &.ant-steps-dot .ant-steps-item-tail::after {\n margin-left: 15px;\n }\n \n & .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n top: 0;\n }\n \n &.ant-steps-vertical .ant-steps-item-icon {\n margin-right: 10px;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item-process .ant-steps-icon-dot {\n left: 0;\n }\n \n & .ant-steps-item-icon > .ant-steps-icon {\n top: 0;\n }\n \n &.ant-steps-vertical.ant-steps-dot .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {\n top: 4px;\n left: -9px;\n }\n \n & .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {\n background: #CACACA;\n }\n \n & .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {\n ").concat(bi,"\n ").concat(Di,"\n color: #777777;\n }\n ");return tt.createElement(St,Wt({},n,{className:nn(on(i),e)}))};Om.Step=function(t){var e=Ht(t,[]),n=on(Dm||(Dm=Vt(["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "],["\n & .ant-steps-item-title {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "])));return tt.createElement(St.Step,Wt({className:nn(n)},e))};var Tm,Am,Pm,Rm,Lm,Im,Nm=function(t){var e=t.current,n=t.steps,i=t.desktopNote,o=lt(null),a=ji(),r=a.brand,s=a.success,l=a.neutral;ct(function(){var t=o.current;null!==t&&(t.scrollLeft=120*e)},[e]);var c=qn.div(Tm||(Tm=Vt(["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "],["\n height: 58px;\n padding-left: 16px;\n border-bottom: 1px solid ",";\n max-width: 100vw;\n display: flex;\n align-items: center;\n overflow: auto;\n background: ",";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])),l.border,l.background),d=qn.div(Am||(Am=Vt(["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "],["\n width: 9px;\n height: 9px;\n border-radius: 50%;\n margin-right: 10px;\n background: ",";\n display: inline-block;\n\n ",";\n "])),l.emphasis,function(t){return t.current===t.index?"\n background: ".concat(r.primary.default,";\n "):t.current>t.index?"\n background: ".concat(s.emphasis,";\n "):""}),h=qn.div(Pm||(Pm=Vt(["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "],["\n width: 20px;\n margin-left: 10px;\n margin-right: 10px;\n height: 1px;\n background: ",";\n display: inline-block;\n margin-bottom: 4px;\n "])),l.emphasis),u=qn.div(Rm||(Rm=Vt(["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "],["\n padding-right: 16px;\n width: 1px;\n white-space: nowrap;\n "]))),p=qn(Io)(Lm||(Lm=Vt(["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "],["\n color: #1b2736;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n\n "," &:last-child {\n padding-right: 16px;\n }\n\n ",";\n "])),function(t){return t.inactive&&"\n color: #777777;\n "},function(t){return t.current&&"\n font-weight: bold;\n "});return tt.createElement(tt.Fragment,null,tt.createElement(Cm,{only:"sm"},tt.createElement("div",{style:{padding:"30px",width:"266px"}},tt.createElement(Om,{progressDot:!0,current:e,direction:"vertical",style:{marginBottom:"34px"}},n.map(function(t,e){return tt.createElement(Om.Step,{key:"desktop-".concat(t,"-").concat(e),title:t})})),i)),tt.createElement(Cm,{only:"lg",ref:o},tt.createElement(c,null,tt.createElement(u,null,n.map(function(t,i){return tt.createElement("span",{key:"mobile-".concat(t,"-").concat(i)},tt.createElement(p,{inactive:e<i,current:e===i},tt.createElement(d,{index:i,current:e}),t),i!==n.length-1&&tt.createElement(h,null))})))))},Fm=on(Im||(Im=Vt(["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"],["\n -webkit-font-smoothing: antialiased;\n font-family: ",";\n color: ",";\n"])),io,Ve.DEFAULT),zm=function(t){var e=t.className,n=t.emptyText,i=Ht(t,["className","emptyText"]);return tt.createElement(Et,Wt({className:nn(Fm,e),locale:{emptyText:n}},i))},Bm=function(t){var e=t.children,n=Ht(t,["children"]),i=ji().brand,o="\n font-family: ".concat(io,";\n font-size: 16px;\n font-weight: 400;\n\n &.ant-tabs {\n width: 100%;\n }\n\n .ant-tabs-ink-bar {\n z-index: 0;\n }\n\n .ant-tabs-nav .ant-tabs-tab {\n margin-right: 20px;\n padding-top: 8px;\n padding-bottom: 8px;\n }\n\n .ant-tabs-nav .ant-tabs-tab:hover,\n .ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-btn {\n color: ").concat(i.primary.default,";\n }\n\n .ant-tabs-nav .ant-tabs-tab-active {\n font-weight: 700;\n font-size: 16px;\n font-family: ").concat("Red Hat Display",";\n }\n \n .ant-tabs-ink-bar {\n background-color: ").concat(i.primary.default,"; \n }\n ");return tt.createElement(mt,Wt({className:"".concat(on(o))},n),e)};Bm.TabPane=mt.TabPane;var Ym=function(t){var e=t.initialSeconds,n=t.blinkActivationSeconds,i=t.shouldRepeat,o=t.onTimesUp,a=t.children,r=st(!1),s=r[0],l=r[1],c=st(e),d=c[0],h=c[1],u=st(void 0),p=u[0],f=u[1],m=st(!0),g=m[0],b=m[1],x=Date.now()+1e3*d;return ct(function(){g&&(f(setInterval(function(){var t=(new Date).getTime(),e=x-t,i=Math.ceil(e/1e3);i>=0&&h(i),n&&i<=n&&l(!0)},1e3)),b(!1))},[g]),ct(function(){d<=0&&void 0!==p&&(clearInterval(p),f(void 0),l(!1),o&&o(),i&&(h(e),b(!0)))},[p,d]),a(s,d)};function Vm(t){var e=t.disabled,n=void 0!==e&&e,i=t.label,o=t.required,a=void 0!==o&&o,r=t.optional,s=void 0!==r&&r,l=t.size,c=void 0===l?"large":l,d=t.error,h=void 0!==d&&d,u=t.helperText,p=t.showInfoIcon,f=t.onInfoClick,m=Ht(t,["disabled","label","required","optional","size","error","helperText","showInfoIcon","onInfoClick"]),g=ji(),b=so[c],x=b.height,y=b.borderRadius,v=b.padding,_=h?g.color.status.critical:g.color.base.line,w="\n -webkit-font-smoothing: antialiased;\n height: ".concat(x," !important;\n width: 100% !important;\n\n ").concat(n?"\n pointer-events: none !important;\n ":"","\n\n &.ant-picker {\n border-radius: ").concat(y," !important;\n border-color: ").concat(_," !important;\n padding: ").concat(v," !important;\n transition: 0.3s all ease !important;\n\n &:hover {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n\n &.ant-picker-focused {\n border-color: ").concat(g.color.base.primary2," !important;\n box-shadow: none !important;\n -webkit-box-shadow: none !important;\n }\n }\n\n &.ant-picker > .ant-picker-input {\n font-family: ").concat(io," !important;\n font-style: normal !important;\n font-weight: normal !important;\n font-size: 14px !important;\n line-height: 22px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input {\n font-size: 14px !important;\n color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-input > input::placeholder {\n font-size: 14px !important;\n color: ").concat(g.color.component.placeholderInput," !important;\n }\n\n &.ant-picker.ant-picker-disabled {\n background: ").concat(g.color.surface.disabledSurface," !important;\n border: 1px solid ").concat(g.color.base.line," !important;\n }\n\n & .ant-picker-input > input[disabled] {\n color: ").concat(g.color.base.onNeutral," !important;\n -webkit-text-fill-color: ").concat(g.color.base.onNeutral," !important;\n }\n\n & .ant-picker-cell-in-view {\n &.ant-picker-cell-today .ant-picker-cell-inner {\n &:before {\n border-color: ").concat(g.color.base.primary2," !important;\n }\n }\n\n &ant-picker-cell-range-end .ant-picker-cell-inner,\n &ant-picker-cell-range-start .ant-picker-cell-inner,\n &ant-picker-cell-selected .ant-picker-cell-inner {\n background: ").concat(g.color.base.primary2," !important;\n }\n }\n "),k="\n .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {\n background-color: ".concat(g.color.base.primary2," !important;\n }\n "),S=tt.createElement(Yu,{icon:"date_range",size:"m",color:g.color.base.onNeutral});return tt.createElement("div",null,tt.createElement(Np,{label:i,required:a,optional:s,showInfoIcon:p,onInfoClick:f}),tt.createElement(kt,Wt({className:"".concat(on(w)),popupClassName:on(k),disabled:n,suffixIcon:S,format:"DD-MM-YYYY"},m)),tt.createElement(Ip,{text:u,error:h}))}var Hm,Wm,Um,jm,Gm,$m,Xm,qm,Zm,Km,Jm,Qm,tg,eg,ng,ig,og,rg,sg,lg={Group:function(t){var e=t.className,n=void 0===e?"":e,i=Ht(t,["className"]),o="\n &.ant-checkbox-group {\n width: 100% !important;\n }\n\n & .ant-checkbox-group-item {\n display: flex !important;\n align-items: flex-start !important;\n\n border: 1px solid ".concat(Li.brand.line.base," !important;\n border-radius: 5px !important;\n\n &:hover {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n &:focus-within {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px !important;\n width: 100% !important;\n }\n }\n\n & .ant-checkbox-wrapper-checked {\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n\n & .ant-checkbox-wrapper {\n padding-left: 16px !important;\n padding-top: 11px !important;\n padding-bottom: 11px !important;\n line-height: 1.6 !important;\n color: ").concat(Vn.BLACK," !important;\n font-family: ").concat(io," !important;\n }\n\n & .ant-checkbox {\n margin-top: 4px !important;\n }\n\n & .ant-checkbox + span {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n\n & .ant-checkbox-checked .ant-checkbox-inner {\n background-color: ").concat(Li.brand.primary.illustration," !important;\n border-color: ").concat(Li.brand.primary.default," !important;\n }\n\n & .ant-checkbox-inner {\n border-radius: 5px !important;\n border: 1px solid ").concat(Li.brand.primary.default," !important;\n }\n ");return tt.createElement(Mt.Group,Wt({className:"".concat(on(o)," ").concat(n)},i))}},cg=function(t){var e=t.title,n=void 0===e?"No results found":e,i=t.subtitle,o=t.info,a=t.svgUniqueId,r=void 0===a?"randomString":a;return tt.createElement(dg,null,tt.createElement(Dt,{image:tt.createElement(It,{id:r,height:80,width:130}),imageStyle:{marginBottom:10,display:"block",margin:"auto"},description:!1}),n&&tt.createElement(hg,null,n),i&&tt.createElement(ug,null,i),o&&tt.createElement(pg,null,o))},dg=qn.div(Hm||(Hm=Vt(["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"],["\n width: 100%;\n padding-top: 4px;\n display: block;\n align-items: center;\n flex-direction: column;\n"]))),hg=qn(No)(Wm||(Wm=Vt(["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"],["\n text-align: center;\n margin-top: 10px;\n margin-bottom: 5px;\n"]))),ug=qn(Io)(Um||(Um=Vt(["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 5px;\n margin-bottom: 20px;\n align-items: center;\n"])),Ue.S500),pg=qn(Io)(jm||(jm=Vt(["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"],["\n text-align: center;\n color: ",";\n margin-top: 20px;\n margin-bottom: 20px;\n align-items: center;\n"])),Ve.DEFAULT),fg=function(t){var e=t.typographyType,n=void 0===e?"body":e,i=t.size,o=void 0===i?"md":i,a=t.textContent,r=t.children,s=t.href,l=t.target,c=t.rel,d=t.isUnderlined,h=void 0===d||d,u=t.icon,p=t.iconPlacement,f=void 0===p?"left":p,m=t.onClick,g=Ht(t,["typographyType","size","textContent","children","href","target","rel","isUnderlined","icon","iconPlacement","onClick"]),b=qn.a(Gm||(Gm=Vt(["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "],["\n display: ",";\n align-items: center;\n gap: 4px;\n .material-symbols-rounded {\n color: "," !important;\n }\n text-decoration: ","\n ",";\n\n :hover {\n text-decoration: ","\n ",";\n }\n\n user-select: none;\n "])),u?"flex":"inline-flex",Li.color.base.link,h?"underline":"none",Li.color.base.link,h?"underline":"none",Li.color.base.link),x=u&&"left"===f,y=u&&"right"===f,v=a||r;return tt.createElement(b,Wt({href:s,target:l,rel:c,onClick:m},g),x&&u,"body"===n&&tt.createElement(dn.Body,{size:o,color:Li.color.base.link},v),"label"===n&&tt.createElement(dn.Label,{size:o,color:Li.color.base.link},v),y&&u)},mg=function(t){var e=t.title,n=t.children,i=ji(),o=i.spacing,a=i.neutral,r=qn.div($m||($m=Vt(["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "],["\n margin-top: ",";\n padding: ",";\n background: ",";\n\n & > ul {\n margin: 0;\n padding: 0;\n list-style-position: inside;\n }\n "])),o.sm,o.md,a.background);return tt.createElement(r,null,tt.createElement(No,{style:{marginBottom:o.sm}},e),n)},gg=function(t){var e=t.title,n=t.children,i=Array.isArray(n)&&n.length>1,o=qn.div(Xm||(Xm=Vt(["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "],["\n width: 100%;\n background: ",";\n padding: 4px;\n border-radius: 8px;\n "])),Li.color.surface.subduePositive),a=qn.div(qm||(qm=Vt(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "],["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ",";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ",";\n "])),Li.color.status.positive,e?"5px":"0px");return tt.createElement(o,null,tt.createElement(a,null,tt.createElement(dn.Label,{size:"md"},e),i?tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},tt.createElement("ol",{style:{margin:0,paddingLeft:"20px"}},n.map(function(t,e){return tt.createElement("li",{key:e},t)}))):tt.createElement(dn.Body,{size:"md",style:{scrollbarWidth:"none"}},n)))},bg=function(t){var e=t.withIcon,n=void 0!==e&&e,i=t.children,o=t.type,a=void 0===o?"primary":o,r=Ht(t,["withIcon","children","type"]),s=ji(),l=s.brand,c=s.spacing,d="\n color: ".concat(Li.color.base.primary,";\n background: ").concat(l.primary.background,";\n "),h="\n color: ".concat(Li.color.status.positive,";\n background: ").concat(Li.color.surface.subduePositive,";\n "),u="\n color: ".concat(Li.color.status.warning,";\n background: ").concat(Li.color.surface.subdueWarning,";\n "),p="\n color: ".concat(Li.color.status.critical,";\n background: ").concat(Li.color.surface.subdueCritical,";\n "),f="\n color: ".concat(Li.color.base.onNeutral,"};\n background: ").concat(Li.color.surface.SubdueInfo,";\n "),m=qn.div(Zm||(Zm=Vt(["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "],["\n padding: ",";\n border-radius: 5px;\n display: flex;\n vertical-align: middle;\n "," ol {\n padding-left: 20px;\n margin: 0;\n\n > li {\n margin-bottom: 5px;\n }\n }\n "])),c.sm,function(){switch(a){case"primary":default:return d;case"success":return h;case"warning":return u;case"error":return p;case"notification":return f}}()),g=on(Km||(Km=Vt(["\n display: block;\n margin: 1px 6px auto 0;\n "],["\n display: block;\n margin: 1px 6px auto 0;\n "])));return tt.createElement(m,Wt({},r),n&&("primary"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:l.primary.emphasis,className:nn(g)}):"success"===a?tt.createElement(Ft,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.positive,className:nn(g)}):"warning"===a?tt.createElement(zt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.warning,className:nn(g)}):"error"===a?tt.createElement(Bt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.critical,className:nn(g)}):"notification"===a?tt.createElement(Nt,{style:{minHeight:"18px",minWidth:"18px"},color:Li.color.status.info,className:nn(g)}):tt.createElement(tt.Fragment,null)),tt.createElement(dn.Body,{size:"md"},i))},xg={Title:qn(Lo)(Jm||(Jm=Vt(["\n color: #1b2736;\n margin-bottom: 5px;\n "],["\n color: #1b2736;\n margin-bottom: 5px;\n "]))),Subtitle:qn(Io)(Qm||(Qm=Vt(["\n color: #777777;\n margin-bottom: 5px;\n "],["\n color: #777777;\n margin-bottom: 5px;\n "]))),Row:qn.div(tg||(tg=Vt(["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "],["\n display: block;\n "," {\n display: flex;\n flex-wrap: wrap;\n }\n "])),hi),Left:qn.div(eg||(eg=Vt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-right: 20px;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),hi),Right:qn.div(ng||(ng=Vt(["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "],["\n flex-basis: 0px;\n flex-grow: 1;\n flex-shrink: 0;\n margin-bottom: 20px;\n min-width: unset;\n\n "," {\n min-width: 290px;\n }\n "])),hi)};var yg,vg,_g,wg,kg,Sg,Eg,Mg,Dg,Cg,Og,Tg,Ag,Pg,Rg=re(function(){if(sg)return rg;sg=1;var t=og?ig:(og=1,ig=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],i=0;i<t.rangeCount;i++)n.push(t.getRangeAt(i));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach(function(e){t.addRange(e)}),e&&e.focus()}}),e={"text/plain":"Text","text/html":"Url",default:"Text"};return rg=function(n,i){var o,a,r,s,l,c,d=!1;i||(i={}),o=i.debug||!1;try{if(r=t(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=n,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(t){if(t.stopPropagation(),i.format)if(t.preventDefault(),void 0===t.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=e[i.format]||e.default;window.clipboardData.setData(a,n)}else t.clipboardData.clearData(),t.clipboardData.setData(i.format,n);i.onCopy&&(t.preventDefault(),i.onCopy(t.clipboardData))}),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(t){o&&console.error("unable to copy using execCommand: ",t),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",n),i.onCopy&&i.onCopy(window.clipboardData),d=!0}catch(t){o&&console.error("unable to copy using clipboardData: ",t),o&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in i?i.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,n)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}}()),Lg=qn.div(yg||(yg=Vt(["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n gap: 4px;\n"]))),Ig=qn.div(vg||(vg=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Ng=qn.div(_g||(_g=Vt(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Fg=qn.div(wg||(wg=Vt(["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 4px;\n > svg {\n width: ","!important;\n height: 24px;\n }\n"])),function(t){return"wide"===t.iconSize?"48px":"24px"}),zg=qn.div(kg||(kg=Vt(["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"],["\n display: flex;\n background: ",";\n border-radius: 12px;\n border: 1px solid ",";\n min-height: 48px;\n"])),Li.color.surface.disabledSurface,Li.color.base.line),Bg=qn.div(Sg||(Sg=Vt(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 12px 16px;\n flex: 1 1 0px;\n"]))),Yg=qn.div(Eg||(Eg=Vt(["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"],["\n color: ",";\n line-height: '24px';\n max-height: ",";\n word-break: ",";\n"])),Li.color.base.onNeutral,function(t){return t.isBankAddress?"auto":"48px"},function(t){return t.isBankAddress?"break-word":"break-all"}),Vg=qn(pt)(Mg||(Mg=Vt(["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"],["\n &.ant-btn {\n text-shadow: none;\n -webkit-font-smoothing: antialiased;\n box-shadow: none;\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n border-left: 1px solid "," !important;\n border-right: 0px;\n border-block: 0px;\n background: ",";\n padding: 12px;\n min-width: unset;\n min-height: unset;\n height: auto;\n & > svg {\n vertical-align: middle;\n font-size: 16px;\n margin: 0px;\n }\n ",";\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: ",";\n }\n }\n"])),Li.color.base.line,Li.color.surface.neutral,bi,Li.brand.primary.default),Hg=function(t){var e=t.value,n=t.allowCopy,i=void 0===n||n,o=t.valueToCopy,a=void 0===o?e:o,r=t.isBankAddress,s=void 0!==r&&r,l=t.showCopyIcon,c=void 0===l||l,d=t.icon,h=t.iconSize,u=t.labelText,p=t.labelTooltip,f=t.helperText,m=t.helperTextType,g=t.onButtonClick;return tt.createElement(Lg,null,tt.createElement(Ig,null,u&&tt.createElement(dn.Body,{size:"md",color:Li.color.base.onNeutral},u),p&&tt.createElement(Ng,null,p)),tt.createElement(zg,null,tt.createElement(Bg,null,d&&tt.createElement(Fg,{iconSize:h},d),tt.createElement(dn.Body,{size:"lg"},tt.createElement(Yg,{isBankAddress:s},e))),i&&tt.createElement(Vg,{onClick:function(){void 0!==g&&g(),Rg(a)}},c?tt.createElement(Yt,null):tt.createElement(dn.Label,{size:"md",color:Li.brand.primary.default},"Copy"))),f&&tt.createElement(dn.Body,{size:"sm",color:"error"===m?Li.color.status.critical:Li.color.base.onNeutralSecondary},f))},Wg=function(t){var e=t.title,n=t.subtitle,i=t.content,o=t.fallbackContent,a=t.backgroundColor,r=ji(),s=r.neutral,l=r.text,c=qn.div(Dg||(Dg=Vt(["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "],["\n font-family: ",";\n font-weight: 800;\n color: ",";\n font-size: 100px;\n margin-bottom: 20px;\n "])),fi,s.bluish),d=qn.div(Cg||(Cg=Vt(["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "],["\n font-family: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 60px;\n "," {\n background-color: ",";\n }\n "])),fi,hi,function(t){return t.backgroundColor||s.background}),h=qn.div(Og||(Og=Vt(["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "],["\n font-family: ",";\n font-style: normal;\n text-align: center;\n color: ",";\n margin-bottom: 5px;\n word-break: break-word;\n ",";\n "])),fi,l.default,xi),u=qn.div(Tg||(Tg=Vt(["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "],["\n text-align: center;\n color: ",";\n flex: none;\n order: 0;\n align-self: center;\n margin-bottom: 20px;\n ",";\n "])),l.default,_i);return tt.createElement(d,{backgroundColor:a},tt.createElement(c,null,e),tt.createElement(h,null,n),tt.createElement(u,null,i),o)},Ug=function(t){var e=t.size,n=Ht(t,["size"]),i=ji().brand,o=on(Ag||(Ag=Vt(["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "],["\n & .ant-spin-dot-item {\n background-color: ",";\n }\n "])),i.primary.default);return tt.createElement(Ct,Wt({className:nn(o),size:e},n))},jg=function(t){var e=t.label,n=t.amount,i=t.type,o=void 0===i?"default":i,a=t.height,r=void 0===a?91:a,s=t.width,l=void 0===s?230:s,c=t.isInverted,d=void 0!==c&&c,h=t.icon,u=qn(Ao)(Pg||(Pg=Vt(["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "],["\n width: ",";\n min-height: ","px;\n padding: 3px !important;\n border-radius: 5px !important;\n\n "," ",";\n "])),"number"==typeof l?"".concat(l,"px"):l,r,h&&"\n & > .ant-card-body {\n display: flex !important;\n flex-direction: row !important;\n align-items: center !important;\n }\n ",d&&"\n & > .ant-card-body > div {\n display: flex !important;\n flex-direction: column-reverse !important;\n }\n ");return tt.createElement(u,{type:o},h&&h,tt.createElement("div",null,tt.createElement(Io,{style:{marginBottom:d?"0":"5px"}},e),tt.createElement(Po,{style:{marginBottom:d?"5px":"0"}},n)))},Gg=function(t){var e=t.className,n=Ht(t,["className"]);return tt.createElement(Ot,Wt({},n,{className:nn(on("\n // for reverse === true\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline.ant-timeline-reverse\n > .ant-timeline-item\n > .ant-timeline-item-content {\n margin-left: 45px;\n }\n\n // for reverse === false\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-head-custom {\n top: 40px;\n margin-right: 50px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-tail {\n top: 40px;\n }\n\n &.ant-timeline > .ant-timeline-item > .ant-timeline-item-content {\n margin-left: 45px;\n }\n "),e)}))};function $g(t){var e=t.index,n=t.primaryProps,i=t.size,o=t.skipProps,a=t.step,r=t.tooltipProps,s=t.backProps,l=a.title,c=a.content,d=a.data;return tt.createElement(ib,{role:r.role},tt.createElement(ob,null,tt.createElement(rb,null,tt.createElement(dn.Label,{size:"md"},l),tt.createElement(sb,{role:o.role,onClick:o.onClick},tt.createElement(Yu,{icon:"close",size:"m"}))),tt.createElement(dn.Body,{size:"md"},c)),tt.createElement(lb,null,tt.createElement(cb,null,Array.from({length:i},function(t,n){return 0===e&&!0===(null==d?void 0:d.skipZeroIndex)?tt.createElement(tt.Fragment,null):tt.createElement(db,{key:n,isActive:n===e})})),tt.createElement(ub,null,s&&tt.createElement(hb,{typographyType:"label",size:"md",role:null==s?void 0:s.role,isDisabled:0===e,onClick:s.onClick,isUnderlined:!1},"Back"),tt.createElement(fg,{typographyType:"label",size:"md",role:n.role,onClick:n.onClick,isUnderlined:!1},"Next"))))}Gg.Item=Ot.Item;var Xg,qg,Zg,Kg,Jg,Qg,tb,eb,nb,ib=qn.div(Xg||(Xg=Vt(["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"],["\n background-color: ",";\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 12px;\n min-width: 200px;\n max-width: 260px;\n"])),Li.color.surface.secondaryNeutral),ob=qn.div(qg||(qg=Vt(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: ",";\n"])),Li.color.base.onNeutral),rb=qn.div(Zg||(Zg=Vt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),sb=qn(fg)(Kg||(Kg=Vt(["\n text-decoration: none !important;\n"],["\n text-decoration: none !important;\n"]))),lb=qn.div(Jg||(Jg=Vt(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))),cb=qn.div(Qg||(Qg=Vt(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 4px;\n"]))),db=qn.span(tb||(tb=Vt(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"],["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n"])),function(t){return t.isActive?"".concat(Li.color.base.primary3):"".concat(Li.color.surface.disabledOnSurface)}),hb=qn(fg)(eb||(eb=Vt(["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"],["\n h5 {\n color: ",";\n }\n pointer-events: ",";\n"])),function(t){return t.isDisabled?"".concat(Li.color.surface.disabledOnSurface):"".concat(Li.color.base.link)},function(t){return t.isDisabled?"none":"auto"}),ub=qn.div(nb||(nb=Vt(["\n display: flex;\n gap: 8px;\n"],["\n display: flex;\n gap: 8px;\n"])));function pb(t){var e=t||{},n=e.arrowColor,i=void 0===n?Li.color.surface.secondaryNeutral:n,o=e.arrowLength,a=void 0===o?8:o,r=e.arrowSpread;return{floaterProps:{styles:{arrow:{length:a,spread:void 0===r?16:r,color:i}}}}}var fb,mb,gb,xb,yb=tt.createContext({setModal:function(){return null},resetModal:function(){return null}}),vb=document.body,_b=function(t){var e=t.modal,n=st(document.createElement("div"))[0];n.setAttribute("id","modal-root"),ct(function(){return vb.appendChild(n),function(){vb.removeChild(n)}},[n]);var i=tt.createElement(Cn,{styles:Mn(fb||(fb=Vt(["\n body {\n overflow: hidden;\n }\n "],["\n body {\n overflow: hidden;\n }\n "])))});return Ut.createPortal(tt.createElement(Eb,{open:!!e},!!e&&i,e),n)},wb=function(t){var e=t.children,n=st(),i=n[0],o=n[1],a=dt(function(){o(void 0)},[o]);return tt.createElement(yb.Provider,{value:{resetModal:a,setModal:o}},e,tt.createElement(_b,{modal:i}))},kb=function(){var t=tt.useContext(yb);if(void 0===t)throw new Error("useModal must be used within a UserProvider");return t},Sb=Tn(mb||(mb=Vt(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"],["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),Eb=qn.div(xb||(xb=Vt(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.7);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"],["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.7);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ",";\n"])),function(t){return t.open&&Mn(gb||(gb=Vt(["\n display: block;\n animation: "," 0.3s ease;\n "],["\n display: block;\n animation: "," 0.3s ease;\n "])),Sb)});export{Ho as Accordion,no as ActionButton,Vo as ActionCard,ci as Alert,jt as AntdConfigProvider,jn as BACKGROUND_COLORS,Fn as BLUE_COLORS,qo as BadgeIcon,bg as Banner,eo as Button,Ao as Card,mu as Carousel,fu as Chart,lg as Checkbox,$g as Coachmark,mg as ContentBreakdown,Hg as CopyBox,hi as DESKTOP_BREAKPOINT,Vm as DatePicker,tm as DeprecatedModal,Xf as DialogItems,Yo as Divider,Eu as Dropdown,Sp as DynamicSelect,di as EXTRA_LARGE_DESKTOP_BREAKPOINT,cg as EmptyData,Wg as ErrorPage,oo as FALLBACK_FONT,Vi as FONT_SIZE,Yi as FONT_WEIGHT,Rp as Form,zn as GREEN_COLORS,Po as H1,Ro as H2,Lo as H3,zo as H4,Cm as Hidden,Wn as ICON_COLORS,Bp as Input,wf as InputWithButton,ui as LAPTOP_BREAKPOINT,ro as LINE_HEIGHT,fg as Link,Hn as MAIN_COLORS,io as MAIN_FONT,Yu as MaterialSymbols,Gf as Modal,wb as ModalProvider,Vn as NEUTRAL_COLORS,gg as Note,Io as P1,No as P1Bold,dm as Pagination,Bn as RED_COLORS,um as Radio,Em as RangePicker,xg as Section,wp as Select,Fo as SmallP,Ug as Spin,Nm as Steps,jg as SummaryCard,pi as TABLET_BREAKPOINT,Un as TEXT_COLORS,zm as Table,Bm as Tabs,$u as Tag,Ui as ThemeProvider,Gg as Timeline,Ym as Timer,Mu as Tooltip,dn as Typography,Yn as YELLOW_COLORS,pb as getCoachmarkJoyrideConfig,Li as straitsXTheme,kb as useModal,ji as useTheme,Ri as xfersTheme};
|
|
22
22
|
//# sourceMappingURL=index.js.map
|