import{E as aa,G as ra,_ as la,k as ti,l as Js,m as ea,n as Li,o as ia,t as un}from"./chunk-KYCSJIMZ.js";import{c as js,n as ta}from"./chunk-6QAJWUXI.js";import{$a as Zs,A as et,B as qe,C as Jt,Fa as be,Ga as Xs,Ia as le,Ja as gi,La as Gs,Y as Ks,Z as qs,aa as fi,ba as ei,c as cn,ca as Pi,d as Ns,db as bt,fa as co,gb as na,hb as zt,i as dn,j as Us,jb as hn,k as lo,kb as oa,l as Ws,na as Re,nb as sa,rb as po,sb as fn,t as Qs,ua as Ys,va as mi,wa as pn,xa as Le,ya as N,z as hi,za as ot}from"./chunk-PUTTU6SU.js";import{Ab as ao,Ac as nt,Bb as ro,Cb as w,Cc as Hs,Db as T,Eb as z,Fb as te,Gb as ie,Hb as K,Ib as X,Kb as $,Lb as _,Mb as Pe,Na as Ds,Nb as we,Oa as Mt,Pc as ye,Qb as L,Qc as ui,Ra as As,Rb as Oe,Rc as Me,S as kt,Sb as F,T as me,Ta as g,Tb as D,U as de,Ua as _t,Uc as Ue,Vc as De,Wb as it,Xb as Te,Yb as Qe,Z as ne,Zb as Gt,_a as lt,_b as Ps,_c as se,ac as Ls,ad as dt,bb as oo,bc as Vs,cc as zs,dc as ge,eb as Y,ec as Rs,fa as sn,fb as pe,fc as G,ga as A,gc as Ke,gd as Zt,ha as E,hc as ln,hd as pt,ia as gt,ib as Z,jb as Es,jc as $s,jd as ut,ka as j,kb as Ee,kd as Ei,lb as v,ld as ht,mc as Bs,pa as U,qa as Vt,sa as an,sb as S,ta as rn,tb as f,tc as ke,ub as je,vb as ct,wb as tt,xa as Fs,xb as B,yb as Ce,yc as H,zb as so,zc as ze}from"./chunk-GMZELIIA.js";import{a as St,b as Xt}from"./chunk-EQDQRRRY.js";function Ri(t){return t+.5|0}var Rt=(t,n,e)=>Math.max(Math.min(t,e),n);function Vi(t){return Rt(Ri(t*2.55),0,255)}function $t(t){return Rt(Ri(t*255),0,255)}function Ot(t){return Rt(Ri(t/2.55)/100,0,1)}function ca(t){return Rt(Ri(t*100),0,100)}var st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ho=[..."0123456789ABCDEF"],Yl=t=>ho[t&15],Xl=t=>ho[(t&240)>>4]+ho[t&15],mn=t=>(t&240)>>4===(t&15),Gl=t=>mn(t.r)&&mn(t.g)&&mn(t.b)&&mn(t.a);function Zl(t){var n=t.length,e;return t[0]==="#"&&(n===4||n===5?e={r:255&st[t[1]]*17,g:255&st[t[2]]*17,b:255&st[t[3]]*17,a:n===5?st[t[4]]*17:255}:(n===7||n===9)&&(e={r:st[t[1]]<<4|st[t[2]],g:st[t[3]]<<4|st[t[4]],b:st[t[5]]<<4|st[t[6]],a:n===9?st[t[7]]<<4|st[t[8]]:255})),e}var Jl=(t,n)=>t<255?n(t):"";function ec(t){var n=Gl(t)?Yl:Xl;return t?"#"+n(t.r)+n(t.g)+n(t.b)+Jl(t.a,n):void 0}var tc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ha(t,n,e){let i=n*Math.min(e,1-e),o=(s,a=(s+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function ic(t,n,e){let i=(o,s=(o+t/60)%6)=>e-e*n*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function nc(t,n,e){let i=ha(t,1,.5),o;for(n+e>1&&(o=1/(n+e),n*=o,e*=o),o=0;o<3;o++)i[o]*=1-n-e,i[o]+=n;return i}function oc(t,n,e,i,o){return t===o?(n-e)/i+(n<e?6:0):n===o?(e-t)/i+2:(t-n)/i+4}function fo(t){let e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),a=Math.min(e,i,o),r=(s+a)/2,l,c,d;return s!==a&&(d=s-a,c=r>.5?d/(2-s-a):d/(s+a),l=oc(e,i,o,d,s),l=l*60+.5),[l|0,c||0,r]}function mo(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map($t)}function go(t,n,e){return mo(ha,t,n,e)}function sc(t,n,e){return mo(nc,t,n,e)}function ac(t,n,e){return mo(ic,t,n,e)}function fa(t){return(t%360+360)%360}function rc(t){let n=tc.exec(t),e=255,i;if(!n)return;n[5]!==i&&(e=n[6]?Vi(+n[5]):$t(+n[5]));let o=fa(+n[2]),s=+n[3]/100,a=+n[4]/100;return n[1]==="hwb"?i=sc(o,s,a):n[1]==="hsv"?i=ac(o,s,a):i=go(o,s,a),{r:i[0],g:i[1],b:i[2],a:e}}function lc(t,n){var e=fo(t);e[0]=fa(e[0]+n),e=go(e),t.r=e[0],t.g=e[1],t.b=e[2]}function cc(t){if(!t)return;let n=fo(t),e=n[0],i=ca(n[1]),o=ca(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${o}%, ${Ot(t.a)})`:`hsl(${e}, ${i}%, ${o}%)`}var da={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},pa={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function dc(){let t={},n=Object.keys(pa),e=Object.keys(da),i,o,s,a,r;for(i=0;i<n.length;i++){for(a=r=n[i],o=0;o<e.length;o++)s=e[o],r=r.replace(s,da[s]);s=parseInt(pa[a],16),t[r]=[s>>16&255,s>>8&255,s&255]}return t}var gn;function pc(t){gn||(gn=dc(),gn.transparent=[0,0,0,0]);let n=gn[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var uc=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function hc(t){let n=uc.exec(t),e=255,i,o,s;if(n){if(n[7]!==i){let a=+n[7];e=n[8]?Vi(a):Rt(a*255,0,255)}return i=+n[1],o=+n[3],s=+n[5],i=255&(n[2]?Vi(i):Rt(i,0,255)),o=255&(n[4]?Vi(o):Rt(o,0,255)),s=255&(n[6]?Vi(s):Rt(s,0,255)),{r:i,g:o,b:s,a:e}}}function fc(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ot(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}var uo=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,_i=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function mc(t,n,e){let i=_i(Ot(t.r)),o=_i(Ot(t.g)),s=_i(Ot(t.b));return{r:$t(uo(i+e*(_i(Ot(n.r))-i))),g:$t(uo(o+e*(_i(Ot(n.g))-o))),b:$t(uo(s+e*(_i(Ot(n.b))-s))),a:t.a+e*(n.a-t.a)}}function _n(t,n,e){if(t){let i=fo(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,n===0?360:1)),i=go(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function ma(t,n){return t&&Object.assign(n||{},t)}function ua(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=$t(t[3]))):(n=ma(t,{r:0,g:0,b:0,a:1}),n.a=$t(n.a)),n}function gc(t){return t.charAt(0)==="r"?hc(t):rc(t)}var zi=class t{constructor(n){if(n instanceof t)return n;let e=typeof n,i;e==="object"?i=ua(n):e==="string"&&(i=Zl(n)||pc(n)||gc(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=ma(this._rgb);return n&&(n.a=Ot(n.a)),n}set rgb(n){this._rgb=ua(n)}rgbString(){return this._valid?fc(this._rgb):void 0}hexString(){return this._valid?ec(this._rgb):void 0}hslString(){return this._valid?cc(this._rgb):void 0}mix(n,e){if(n){let i=this.rgb,o=n.rgb,s,a=e===s?.5:e,r=2*a-1,l=i.a-o.a,c=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;s=1-c,i.r=255&c*i.r+s*o.r+.5,i.g=255&c*i.g+s*o.g+.5,i.b=255&c*i.b+s*o.b+.5,i.a=a*i.a+(1-a)*o.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=mc(this._rgb,n._rgb,e)),this}clone(){return new t(this.rgb)}alpha(n){return this._rgb.a=$t(n),this}clearer(n){let e=this._rgb;return e.a*=1-n,this}greyscale(){let n=this._rgb,e=Ri(n.r*.3+n.g*.59+n.b*.11);return n.r=n.g=n.b=e,this}opaquer(n){let e=this._rgb;return e.a*=1+n,this}negate(){let n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return _n(this._rgb,2,n),this}darken(n){return _n(this._rgb,2,-n),this}saturate(n){return _n(this._rgb,1,n),this}desaturate(n){return _n(this._rgb,1,-n),this}rotate(n){return lc(this._rgb,n),this}};function xt(){}var Sa=(()=>{let t=0;return()=>t++})();function oe(t){return t===null||typeof t>"u"}function ue(t){if(Array.isArray&&Array.isArray(t))return!0;let n=Object.prototype.toString.call(t);return n.slice(0,7)==="[object"&&n.slice(-6)==="Array]"}function J(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function ve(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Xe(t,n){return ve(t)?t:n}function W(t,n){return typeof t>"u"?n:t}var ka=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/n,vo=(t,n)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*n:+t;function ce(t,n,e){if(t&&typeof t.call=="function")return t.apply(e,n)}function ae(t,n,e,i){let o,s,a;if(ue(t))if(s=t.length,i)for(o=s-1;o>=0;o--)n.call(e,t[o],o);else for(o=0;o<s;o++)n.call(e,t[o],o);else if(J(t))for(a=Object.keys(t),s=a.length,o=0;o<s;o++)n.call(e,t[a[o]],a[o])}function Hi(t,n){let e,i,o,s;if(!t||!n||t.length!==n.length)return!1;for(e=0,i=t.length;e<i;++e)if(o=t[e],s=n[e],o.datasetIndex!==s.datasetIndex||o.index!==s.index)return!1;return!0}function xn(t){if(ue(t))return t.map(xn);if(J(t)){let n=Object.create(null),e=Object.keys(t),i=e.length,o=0;for(;o<i;++o)n[e[o]]=xn(t[e[o]]);return n}return t}function Ma(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function _c(t,n,e,i){if(!Ma(t))return;let o=n[t],s=e[t];J(o)&&J(s)?yi(o,s,i):n[t]=xn(s)}function yi(t,n,e){let i=ue(n)?n:[n],o=i.length;if(!J(t))return t;e=e||{};let s=e.merger||_c,a;for(let r=0;r<o;++r){if(a=i[r],!J(a))continue;let l=Object.keys(a);for(let c=0,d=l.length;c<d;++c)s(l[c],t,a,e)}return t}function xi(t,n){return yi(t,n,{merger:bc})}function bc(t,n,e){if(!Ma(t))return;let i=n[t],o=e[t];J(i)&&J(o)?xi(i,o):Object.prototype.hasOwnProperty.call(n,t)||(n[t]=xn(o))}var ga={"":t=>t,x:t=>t.x,y:t=>t.y};function yc(t){let n=t.split("."),e=[],i="";for(let o of n)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function vc(t){let n=yc(t);return e=>{for(let i of n){if(i==="")break;e=e&&e[i]}return e}}function At(t,n){return(ga[n]||(ga[n]=vc(n)))(t)}function In(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ci=t=>typeof t<"u",Ft=t=>typeof t=="function",xo=(t,n)=>{if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0};function Oa(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}var he=Math.PI,fe=2*he,xc=fe+he,Cn=Number.POSITIVE_INFINITY,Cc=he/180,Ie=he/2,ii=he/4,_a=he*2/3,Dt=Math.log10,ft=Math.sign;function wi(t,n,e){return Math.abs(t-n)<e}function Co(t){let n=Math.round(t);t=wi(t,n,t/1e3)?n:t;let e=Math.pow(10,Math.floor(Dt(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Fa(t){let n=[],e=Math.sqrt(t),i;for(i=1;i<e;i++)t%i===0&&(n.push(i),n.push(t/i));return e===(e|0)&&n.push(e),n.sort((o,s)=>o-s).pop(),n}function si(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Da(t,n){let e=Math.round(t);return e-n<=t&&e+n>=t}function wo(t,n,e){let i,o,s;for(i=0,o=t.length;i<o;i++)s=t[i][e],isNaN(s)||(n.min=Math.min(n.min,s),n.max=Math.max(n.max,s))}function at(t){return t*(he/180)}function Sn(t){return t*(180/he)}function To(t){if(!ve(t))return;let n=1,e=0;for(;Math.round(t*n)/n!==t;)n*=10,e++;return e}function Io(t,n){let e=n.x-t.x,i=n.y-t.y,o=Math.sqrt(e*e+i*i),s=Math.atan2(i,e);return s<-.5*he&&(s+=fe),{angle:s,distance:o}}function wn(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function wc(t,n){return(t-n+xc)%fe-he}function Ye(t){return(t%fe+fe)%fe}function Ti(t,n,e,i){let o=Ye(t),s=Ye(n),a=Ye(e),r=Ye(s-o),l=Ye(a-o),c=Ye(o-s),d=Ye(o-a);return o===s||o===a||i&&s===a||r>l&&c<d}function Ae(t,n,e){return Math.max(n,Math.min(e,t))}function Aa(t){return Ae(t,-32768,32767)}function Ct(t,n,e,i=1e-6){return t>=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function kn(t,n,e){e=e||(a=>t[a]<n);let i=t.length-1,o=0,s;for(;i-o>1;)s=o+i>>1,e(s)?o=s:i=s;return{lo:o,hi:i}}var yt=(t,n,e,i)=>kn(t,e,i?o=>{let s=t[o][n];return s<e||s===e&&t[o+1][n]===e}:o=>t[o][n]<e),Ea=(t,n,e)=>kn(t,e,i=>t[i][n]>=e);function Pa(t,n,e){let i=0,o=t.length;for(;i<o&&t[i]<n;)i++;for(;o>i&&t[o-1]>e;)o--;return i>0||o<t.length?t.slice(i,o):t}var La=["push","pop","shift","splice","unshift"];function Va(t,n){if(t._chartjs){t._chartjs.listeners.push(n);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),La.forEach(e=>{let i="_onData"+In(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){let a=o.apply(this,s);return t._chartjs.listeners.forEach(r=>{typeof r[i]=="function"&&r[i](...s)}),a}})})}function So(t,n){let e=t._chartjs;if(!e)return;let i=e.listeners,o=i.indexOf(n);o!==-1&&i.splice(o,1),!(i.length>0)&&(La.forEach(s=>{delete t[s]}),delete t._chartjs)}function ko(t){let n=new Set(t);return n.size===t.length?t:Array.from(n)}var Mo=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Oo(t,n){let e=[],i=!1;return function(...o){e=o,i||(i=!0,Mo.call(window,()=>{i=!1,t.apply(n,e)}))}}function za(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}var Mn=t=>t==="start"?"left":t==="end"?"right":"center",$e=(t,n,e)=>t==="start"?n:t==="end"?e:(n+e)/2,Ra=(t,n,e,i)=>t===(i?"left":"right")?e:t==="center"?(n+e)/2:n;function Fo(t,n,e){let i=n.length,o=0,s=i;if(t._sorted){let{iScale:a,_parsed:r}=t,l=a.axis,{min:c,max:d,minDefined:p,maxDefined:u}=a.getUserBounds();p&&(o=Ae(Math.min(yt(r,l,c).lo,e?i:yt(n,l,a.getPixelForValue(c)).lo),0,i-1)),u?s=Ae(Math.max(yt(r,a.axis,d,!0).hi+1,e?0:yt(n,l,a.getPixelForValue(d),!0).hi+1),o,i)-o:s=i-o}return{start:o,count:s}}function Do(t){let{xScale:n,yScale:e,_scaleRanges:i}=t,o={xmin:n.min,xmax:n.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=o,!0;let s=i.xmin!==n.min||i.xmax!==n.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,o),s}var bn=t=>t===0||t===1,ba=(t,n,e)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-n)*fe/e)),ya=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*fe/e)+1,bi={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Ie)+1,easeOutSine:t=>Math.sin(t*Ie),easeInOutSine:t=>-.5*(Math.cos(he*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>bn(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>bn(t)?t:ba(t,.075,.3),easeOutElastic:t=>bn(t)?t:ya(t,.075,.3),easeInOutElastic(t){return bn(t)?t:t<.5?.5*ba(t*2,.1125,.45):.5+.5*ya(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let n=1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},easeInBounce:t=>1-bi.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?bi.easeInBounce(t*2)*.5:bi.easeOutBounce(t*2-1)*.5+.5};function Ao(t){if(t&&typeof t=="object"){let n=t.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function Eo(t){return Ao(t)?t:new zi(t)}function _o(t){return Ao(t)?t:new zi(t).saturate(.5).darken(.1).hexString()}var Tc=["x","y","borderWidth","radius","tension"],Ic=["color","borderColor","backgroundColor"];function Sc(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),t.set("animations",{colors:{type:"color",properties:Ic},numbers:{type:"number",properties:Tc}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>n|0}}}})}function kc(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var va=new Map;function Mc(t,n){n=n||{};let e=t+JSON.stringify(n),i=va.get(e);return i||(i=new Intl.NumberFormat(t,n),va.set(e,i)),i}function Ii(t,n,e){return Mc(n,e).format(t)}var $a={values(t){return ue(t)?t:""+t},numeric(t,n,e){if(t===0)return"0";let i=this.chart.options.locale,o,s=t;if(e.length>1){let c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=Oc(t,e)}let a=Dt(Math.abs(s)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),Ii(t,i,l)},logarithmic(t,n,e){if(t===0)return"0";let i=e[n].significand||t/Math.pow(10,Math.floor(Dt(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?$a.numeric.call(this,t,n,e):""}};function Oc(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}var Ni={formatters:$a};function Fc(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ni.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"})}var Ht=Object.create(null),On=Object.create(null);function $i(t,n){if(!n)return t;let e=n.split(".");for(let i=0,o=e.length;i<o;++i){let s=e[i];t=t[s]||(t[s]=Object.create(null))}return t}function bo(t,n,e){return typeof n=="string"?yi($i(t,n),e):yi($i(t,""),n)}var yo=class{constructor(n,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,o)=>_o(o.backgroundColor),this.hoverBorderColor=(i,o)=>_o(o.borderColor),this.hoverColor=(i,o)=>_o(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return bo(this,n,e)}get(n){return $i(this,n)}describe(n,e){return bo(On,n,e)}override(n,e){return bo(Ht,n,e)}route(n,e,i,o){let s=$i(this,n),a=$i(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){let l=this[r],c=a[o];return J(l)?Object.assign({},c,l):W(l,c)},set(l){this[r]=l}}})}apply(n){n.forEach(e=>e(this))}},xe=new yo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Sc,kc,Fc]);function Dc(t){return!t||oe(t.size)||oe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Bi(t,n,e,i,o){let s=n[o];return s||(s=n[o]=t.measureText(o).width,e.push(o)),s>i&&(i=s),i}function Ba(t,n,e,i){i=i||{};let o=i.data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==n&&(o=i.data={},s=i.garbageCollect=[],i.font=n),t.save(),t.font=n;let a=0,r=e.length,l,c,d,p,u;for(l=0;l<r;l++)if(p=e[l],p!=null&&!ue(p))a=Bi(t,o,s,a,p);else if(ue(p))for(c=0,d=p.length;c<d;c++)u=p[c],u!=null&&!ue(u)&&(a=Bi(t,o,s,a,u));t.restore();let h=s.length/2;if(h>e.length){for(l=0;l<h;l++)delete o[s[l]];s.splice(0,h)}return a}function Nt(t,n,e){let i=t.currentDevicePixelRatio,o=e!==0?Math.max(e/2,.5):0;return Math.round((n-o)*i)/i+o}function Po(t,n){n=n||t.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,t.width,t.height),n.restore()}function Fn(t,n,e,i){Lo(t,n,e,i,null)}function Lo(t,n,e,i,o){let s,a,r,l,c,d,p,u,h=n.pointStyle,m=n.rotation,b=n.radius,y=(m||0)*Cc;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(e,i),t.rotate(y),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(b)||b<=0)){switch(t.beginPath(),h){default:o?t.ellipse(e,i,o/2,b,0,0,fe):t.arc(e,i,b,0,fe),t.closePath();break;case"triangle":d=o?o/2:b,t.moveTo(e+Math.sin(y)*d,i-Math.cos(y)*b),y+=_a,t.lineTo(e+Math.sin(y)*d,i-Math.cos(y)*b),y+=_a,t.lineTo(e+Math.sin(y)*d,i-Math.cos(y)*b),t.closePath();break;case"rectRounded":c=b*.516,l=b-c,a=Math.cos(y+ii)*l,p=Math.cos(y+ii)*(o?o/2-c:l),r=Math.sin(y+ii)*l,u=Math.sin(y+ii)*(o?o/2-c:l),t.arc(e-p,i-r,c,y-he,y-Ie),t.arc(e+u,i-a,c,y-Ie,y),t.arc(e+p,i+r,c,y,y+Ie),t.arc(e-u,i+a,c,y+Ie,y+he),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*b,d=o?o/2:l,t.rect(e-d,i-l,2*d,2*l);break}y+=ii;case"rectRot":p=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-p,i-r),t.lineTo(e+u,i-a),t.lineTo(e+p,i+r),t.lineTo(e-u,i+a),t.closePath();break;case"crossRot":y+=ii;case"cross":p=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-p,i-r),t.lineTo(e+p,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a);break;case"star":p=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-p,i-r),t.lineTo(e+p,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a),y+=ii,p=Math.cos(y)*(o?o/2:b),a=Math.cos(y)*b,r=Math.sin(y)*b,u=Math.sin(y)*(o?o/2:b),t.moveTo(e-p,i-r),t.lineTo(e+p,i+r),t.moveTo(e+u,i-a),t.lineTo(e-u,i+a);break;case"line":a=o?o/2:Math.cos(y)*b,r=Math.sin(y)*b,t.moveTo(e-a,i-r),t.lineTo(e+a,i+r);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(y)*(o?o/2:b),i+Math.sin(y)*b);break;case!1:t.closePath();break}t.fill(),n.borderWidth>0&&t.stroke()}}function vt(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.x<n.right+e&&t.y>n.top-e&&t.y<n.bottom+e}function ji(t,n){t.save(),t.beginPath(),t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()}function Ui(t){t.restore()}function Ha(t,n,e,i,o){if(!n)return t.lineTo(e.x,e.y);if(o==="middle"){let s=(n.x+e.x)/2;t.lineTo(s,n.y),t.lineTo(s,e.y)}else o==="after"!=!!i?t.lineTo(n.x,e.y):t.lineTo(e.x,n.y);t.lineTo(e.x,e.y)}function Na(t,n,e,i){if(!n)return t.lineTo(e.x,e.y);t.bezierCurveTo(i?n.cp1x:n.cp2x,i?n.cp1y:n.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function Ac(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),oe(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}function Ec(t,n,e,i,o){if(o.strikethrough||o.underline){let s=t.measureText(i),a=n-s.actualBoundingBoxLeft,r=n+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,d),t.lineTo(r,d),t.stroke()}}function Pc(t,n){let e=t.fillStyle;t.fillStyle=n.color,t.fillRect(n.left,n.top,n.width,n.height),t.fillStyle=e}function jt(t,n,e,i,o,s={}){let a=ue(n)?n:[n],r=s.strokeWidth>0&&s.strokeColor!=="",l,c;for(t.save(),t.font=o.string,Ac(t,s),l=0;l<a.length;++l)c=a[l],s.backdrop&&Pc(t,s.backdrop),r&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),oe(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,e,i,s.maxWidth)),t.fillText(c,e,i,s.maxWidth),Ec(t,e,i,c,s),i+=Number(o.lineHeight);t.restore()}function Si(t,n){let{x:e,y:i,w:o,h:s,radius:a}=n;t.arc(e+a.topLeft,i+a.topLeft,a.topLeft,1.5*he,he,!0),t.lineTo(e,i+s-a.bottomLeft),t.arc(e+a.bottomLeft,i+s-a.bottomLeft,a.bottomLeft,he,Ie,!0),t.lineTo(e+o-a.bottomRight,i+s),t.arc(e+o-a.bottomRight,i+s-a.bottomRight,a.bottomRight,Ie,0,!0),t.lineTo(e+o,i+a.topRight),t.arc(e+o-a.topRight,i+a.topRight,a.topRight,0,-Ie,!0),t.lineTo(e+a.topLeft,i)}var Lc=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Vc=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function zc(t,n){let e=(""+t).match(Lc);if(!e||e[1]==="normal")return n*1.2;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100;break}return n*t}var Rc=t=>+t||0;function Dn(t,n){let e={},i=J(n),o=i?Object.keys(n):n,s=J(t)?i?a=>W(t[a],t[n[a]]):a=>t[a]:()=>t;for(let a of o)e[a]=Rc(s(a));return e}function Vo(t){return Dn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ut(t){return Dn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Be(t){let n=Vo(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Fe(t,n){t=t||{},n=n||xe.font;let e=W(t.size,n.size);typeof e=="string"&&(e=parseInt(e,10));let i=W(t.style,n.style);i&&!(""+i).match(Vc)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let o={family:W(t.family,n.family),lineHeight:zc(W(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:W(t.weight,n.weight),string:""};return o.string=Dc(o),o}function ki(t,n,e,i){let o=!0,s,a,r;for(s=0,a=t.length;s<a;++s)if(r=t[s],r!==void 0&&(n!==void 0&&typeof r=="function"&&(r=r(n),o=!1),e!==void 0&&ue(r)&&(r=r[e%r.length],o=!1),r!==void 0))return i&&!o&&(i.cacheable=!1),r}function ja(t,n,e){let{min:i,max:o}=t,s=vo(n,(o-i)/2),a=(r,l)=>e&&r===0?0:r+l;return{min:a(i,-Math.abs(s)),max:a(o,s)}}function Et(t,n){return Object.assign(Object.create(t),n)}function An(t,n=[""],e,i,o=()=>t[0]){let s=e||t;typeof i>"u"&&(i=Qa("_fallback",t));let a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:r=>An([r,...t],n,s,i)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete t[0][l],!0},get(r,l){return Ua(r,l,()=>Qc(l,n,t,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(r,l){return Ca(r).includes(l)},ownKeys(r){return Ca(r)},set(r,l,c){let d=r._storage||(r._storage=o());return r[l]=d[l]=c,delete r._keys,!0}})}function oi(t,n,e,i){let o={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:zo(t,i),setContext:s=>oi(t,s,e,i),override:s=>oi(t.override(s),n,e,i)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete t[a],!0},get(s,a,r){return Ua(s,a,()=>Bc(s,a,r))},getOwnPropertyDescriptor(s,a){return s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(s,a,r){return t[a]=r,delete s[a],!0}})}function zo(t,n={scriptable:!0,indexable:!0}){let{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:o=n.allKeys}=t;return{allKeys:o,scriptable:e,indexable:i,isScriptable:Ft(e)?e:()=>e,isIndexable:Ft(i)?i:()=>i}}var $c=(t,n)=>t?t+In(n):n,Ro=(t,n)=>J(n)&&t!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Ua(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n))return t[n];let i=e();return t[n]=i,i}function Bc(t,n,e){let{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=t,r=i[n];return Ft(r)&&a.isScriptable(n)&&(r=Hc(n,r,t,e)),ue(r)&&r.length&&(r=Nc(n,r,t,a.isIndexable)),Ro(n,r)&&(r=oi(r,o,s&&s[n],a)),r}function Hc(t,n,e,i){let{_proxy:o,_context:s,_subProxy:a,_stack:r}=e;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=n(s,a||i);return r.delete(t),Ro(t,l)&&(l=$o(o._scopes,o,t,l)),l}function Nc(t,n,e,i){let{_proxy:o,_context:s,_subProxy:a,_descriptors:r}=e;if(typeof s.index<"u"&&i(t))return n[s.index%n.length];if(J(n[0])){let l=n,c=o._scopes.filter(d=>d!==l);n=[];for(let d of l){let p=$o(c,o,t,d);n.push(oi(p,s,a&&a[t],r))}}return n}function Wa(t,n,e){return Ft(t)?t(n,e):t}var jc=(t,n)=>t===!0?n:typeof t=="string"?At(n,t):void 0;function Uc(t,n,e,i,o){for(let s of n){let a=jc(e,s);if(a){t.add(a);let r=Wa(a._fallback,e,o);if(typeof r<"u"&&r!==e&&r!==i)return r}else if(a===!1&&typeof i<"u"&&e!==i)return null}return!1}function $o(t,n,e,i){let o=n._rootScopes,s=Wa(n._fallback,e,i),a=[...t,...o],r=new Set;r.add(i);let l=xa(r,a,e,s||e,i);return l===null||typeof s<"u"&&s!==e&&(l=xa(r,a,s,l,i),l===null)?!1:An(Array.from(r),[""],o,s,()=>Wc(n,e,i))}function xa(t,n,e,i,o){for(;e;)e=Uc(t,n,e,i,o);return e}function Wc(t,n,e){let i=t._getTarget();n in i||(i[n]={});let o=i[n];return ue(o)&&J(e)?e:o||{}}function Qc(t,n,e,i){let o;for(let s of n)if(o=Qa($c(s,t),e),typeof o<"u")return Ro(t,o)?$o(e,i,t,o):o}function Qa(t,n){for(let e of n){if(!e)continue;let i=e[t];if(typeof i<"u")return i}}function Ca(t){let n=t._keys;return n||(n=t._keys=Kc(t._scopes)),n}function Kc(t){let n=new Set;for(let e of t)for(let i of Object.keys(e).filter(o=>!o.startsWith("_")))n.add(i);return Array.from(n)}function Bo(t,n,e,i){let{iScale:o}=t,{key:s="r"}=this._parsing,a=new Array(i),r,l,c,d;for(r=0,l=i;r<l;++r)c=r+e,d=n[c],a[r]={r:o.parse(At(d,s),c)};return a}var qc=Number.EPSILON||1e-14,vi=(t,n)=>n<t.length&&!t[n].skip&&t[n],Ka=t=>t==="x"?"y":"x";function Yc(t,n,e,i){let o=t.skip?n:t,s=n,a=e.skip?n:e,r=wn(s,o),l=wn(a,s),c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;let p=i*c,u=i*d;return{previous:{x:s.x-p*(a.x-o.x),y:s.y-p*(a.y-o.y)},next:{x:s.x+u*(a.x-o.x),y:s.y+u*(a.y-o.y)}}}function Xc(t,n,e){let i=t.length,o,s,a,r,l,c=vi(t,0);for(let d=0;d<i-1;++d)if(l=c,c=vi(t,d+1),!(!l||!c)){if(wi(n[d],0,qc)){e[d]=e[d+1]=0;continue}o=e[d]/n[d],s=e[d+1]/n[d],r=Math.pow(o,2)+Math.pow(s,2),!(r<=9)&&(a=3/Math.sqrt(r),e[d]=o*a*n[d],e[d+1]=s*a*n[d])}}function Gc(t,n,e="x"){let i=Ka(e),o=t.length,s,a,r,l=vi(t,0);for(let c=0;c<o;++c){if(a=r,r=l,l=vi(t,c+1),!r)continue;let d=r[e],p=r[i];a&&(s=(d-a[e])/3,r[`cp1${e}`]=d-s,r[`cp1${i}`]=p-s*n[c]),l&&(s=(l[e]-d)/3,r[`cp2${e}`]=d+s,r[`cp2${i}`]=p+s*n[c])}}function Zc(t,n="x"){let e=Ka(n),i=t.length,o=Array(i).fill(0),s=Array(i),a,r,l,c=vi(t,0);for(a=0;a<i;++a)if(r=l,l=c,c=vi(t,a+1),!!l){if(c){let d=c[n]-l[n];o[a]=d!==0?(c[e]-l[e])/d:0}s[a]=r?c?ft(o[a-1])!==ft(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}Xc(t,o,s),Gc(t,s,n)}function yn(t,n,e){return Math.max(Math.min(t,e),n)}function Jc(t,n){let e,i,o,s,a,r=vt(t[0],n);for(e=0,i=t.length;e<i;++e)a=s,s=r,r=e<i-1&&vt(t[e+1],n),s&&(o=t[e],a&&(o.cp1x=yn(o.cp1x,n.left,n.right),o.cp1y=yn(o.cp1y,n.top,n.bottom)),r&&(o.cp2x=yn(o.cp2x,n.left,n.right),o.cp2y=yn(o.cp2y,n.top,n.bottom)))}function qa(t,n,e,i,o){let s,a,r,l;if(n.spanGaps&&(t=t.filter(c=>!c.skip)),n.cubicInterpolationMode==="monotone")Zc(t,o);else{let c=i?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)r=t[s],l=Yc(c,r,t[Math.min(s+1,a-(i?0:1))%a],n.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,c=r}n.capBezierPoints&&Jc(t,e)}function En(){return typeof window<"u"&&typeof document<"u"}function Pn(t){let n=t.parentNode;return n&&n.toString()==="[object ShadowRoot]"&&(n=n.host),n}function Tn(t,n,e){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*n.parentNode[e])):i=t,i}var Ln=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function ed(t,n){return Ln(t).getPropertyValue(n)}var td=["top","right","bottom","left"];function ni(t,n,e){let i={};e=e?"-"+e:"";for(let o=0;o<4;o++){let s=td[o];i[s]=parseFloat(t[n+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var id=(t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot);function nd(t,n){let e=t.touches,i=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=i,a=!1,r,l;if(id(o,s,t.target))r=o,l=s;else{let c=n.getBoundingClientRect();r=i.clientX-c.left,l=i.clientY-c.top,a=!0}return{x:r,y:l,box:a}}function Wt(t,n){if("native"in t)return t;let{canvas:e,currentDevicePixelRatio:i}=n,o=Ln(e),s=o.boxSizing==="border-box",a=ni(o,"padding"),r=ni(o,"border","width"),{x:l,y:c,box:d}=nd(t,e),p=a.left+(d&&r.left),u=a.top+(d&&r.top),{width:h,height:m}=n;return s&&(h-=a.width+r.width,m-=a.height+r.height),{x:Math.round((l-p)/h*e.width/i),y:Math.round((c-u)/m*e.height/i)}}function od(t,n,e){let i,o;if(n===void 0||e===void 0){let s=Pn(t);if(!s)n=t.clientWidth,e=t.clientHeight;else{let a=s.getBoundingClientRect(),r=Ln(s),l=ni(r,"border","width"),c=ni(r,"padding");n=a.width-c.width-l.width,e=a.height-c.height-l.height,i=Tn(r.maxWidth,s,"clientWidth"),o=Tn(r.maxHeight,s,"clientHeight")}}return{width:n,height:e,maxWidth:i||Cn,maxHeight:o||Cn}}var vn=t=>Math.round(t*10)/10;function Ya(t,n,e,i){let o=Ln(t),s=ni(o,"margin"),a=Tn(o.maxWidth,t,"clientWidth")||Cn,r=Tn(o.maxHeight,t,"clientHeight")||Cn,l=od(t,n,e),{width:c,height:d}=l;if(o.boxSizing==="content-box"){let u=ni(o,"border","width"),h=ni(o,"padding");c-=h.width+u.width,d-=h.height+u.height}return c=Math.max(0,c-s.width),d=Math.max(0,i?c/i:d-s.height),c=vn(Math.min(c,a,l.maxWidth)),d=vn(Math.min(d,r,l.maxHeight)),c&&!d&&(d=vn(c/2)),(n!==void 0||e!==void 0)&&i&&l.height&&d>l.height&&(d=l.height,c=vn(Math.floor(d*i))),{width:c,height:d}}function Ho(t,n,e){let i=n||1,o=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);let a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||a.height!==o||a.width!==s?(t.currentDevicePixelRatio=i,a.height=o,a.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}var Xa=function(){let t=!1;try{let n={get passive(){return t=!0,!1}};En()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t}();function No(t,n){let e=ed(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Bt(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)}}function Ga(t,n,e,i){return{x:t.x+e*(n.x-t.x),y:i==="middle"?e<.5?t.y:n.y:i==="after"?e<1?t.y:n.y:e>0?n.y:t.y}}function Za(t,n,e,i){let o={x:t.cp2x,y:t.cp2y},s={x:n.cp1x,y:n.cp1y},a=Bt(t,o,e),r=Bt(o,s,e),l=Bt(s,n,e),c=Bt(a,r,e),d=Bt(r,l,e);return Bt(c,d,e)}var sd=function(t,n){return{x(e){return t+t+n-e},setWidth(e){n=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},ad=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,n){return t+n},leftForLtr(t,n){return t}}};function ai(t,n,e){return t?sd(n,e):ad()}function jo(t,n){let e,i;(n==="ltr"||n==="rtl")&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function Uo(t,n){n!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Ja(t){return t==="angle"?{between:Ti,compare:wc,normalize:Ye}:{between:Ct,compare:(n,e)=>n-e,normalize:n=>n}}function wa({start:t,end:n,count:e,loop:i,style:o}){return{start:t%e,end:n%e,loop:i&&(n-t+1)%e===0,style:o}}function rd(t,n,e){let{property:i,start:o,end:s}=e,{between:a,normalize:r}=Ja(i),l=n.length,{start:c,end:d,loop:p}=t,u,h;if(p){for(c+=l,d+=l,u=0,h=l;u<h&&a(r(n[c%l][i]),o,s);++u)c--,d--;c%=l,d%=l}return d<c&&(d+=l),{start:c,end:d,loop:p,style:t.style}}function Wo(t,n,e){if(!e)return[t];let{property:i,start:o,end:s}=e,a=n.length,{compare:r,between:l,normalize:c}=Ja(i),{start:d,end:p,loop:u,style:h}=rd(t,n,e),m=[],b=!1,y=null,C,x,k,O=()=>l(o,k,C)&&r(o,k)!==0,I=()=>r(s,C)===0||l(s,k,C),M=()=>b||O(),V=()=>!b||I();for(let P=d,R=d;P<=p;++P)x=n[P%a],!x.skip&&(C=c(x[i]),C!==k&&(b=l(C,o,s),y===null&&M()&&(y=r(C,o)===0?P:R),y!==null&&V()&&(m.push(wa({start:y,end:P,loop:u,count:a,style:h})),y=null),R=P,k=C));return y!==null&&m.push(wa({start:y,end:p,loop:u,count:a,style:h})),m}function Qo(t,n){let e=[],i=t.segments;for(let o=0;o<i.length;o++){let s=Wo(i[o],t.points,n);s.length&&e.push(...s)}return e}function ld(t,n,e,i){let o=0,s=n-1;if(e&&!i)for(;o<n&&!t[o].skip;)o++;for(;o<n&&t[o].skip;)o++;for(o%=n,e&&(s+=o);s>o&&t[s%n].skip;)s--;return s%=n,{start:o,end:s}}function cd(t,n,e,i){let o=t.length,s=[],a=n,r=t[n],l;for(l=n+1;l<=e;++l){let c=t[l%o];c.skip||c.stop?r.skip||(i=!1,s.push({start:n%o,end:(l-1)%o,loop:i}),n=a=c.stop?l:null):(a=l,r.skip&&(n=l)),r=c}return a!==null&&s.push({start:n%o,end:a%o,loop:i}),s}function er(t,n){let e=t.points,i=t.options.spanGaps,o=e.length;if(!o)return[];let s=!!t._loop,{start:a,end:r}=ld(e,o,s,i);if(i===!0)return Ta(t,[{start:a,end:r,loop:s}],e,n);let l=r<a?r+o:r,c=!!t._fullLoop&&a===0&&r===o-1;return Ta(t,cd(e,a,l,c),e,n)}function Ta(t,n,e,i){return!i||!i.setContext||!e?n:dd(t,n,e,i)}function dd(t,n,e,i){let o=t._chart.getContext(),s=Ia(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=e.length,c=[],d=s,p=n[0].start,u=p;function h(m,b,y,C){let x=r?-1:1;if(m!==b){for(m+=l;e[m%l].skip;)m-=x;for(;e[b%l].skip;)b+=x;m%l!==b%l&&(c.push({start:m%l,end:b%l,loop:y,style:C}),d=C,p=b%l)}}for(let m of n){p=r?p:m.start;let b=e[p%l],y;for(u=p+1;u<=m.end;u++){let C=e[u%l];y=Ia(i.setContext(Et(o,{type:"segment",p0:b,p1:C,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),pd(y,d)&&h(p,u-1,m.loop,d),b=C,d=y}p<u-1&&h(p,u-1,m.loop,d)}return c}function Ia(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function pd(t,n){if(!n)return!1;let e=[],i=function(o,s){return Ao(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(t,i)!==JSON.stringify(n,i)}var is=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,e,i,o){let s=e.listeners[o],a=e.duration;s.forEach(r=>r({chart:n,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Mo.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;let s=i.items,a=s.length-1,r=!1,l;for(;a>=0;--a)l=s[a],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),r=!0):(s[a]=s[s.length-1],s.pop());r&&(o.draw(),this._notify(o,i,n,"progress")),s.length||(i.running=!1,this._notify(o,i,n,"complete"),i.initial=!1),e+=s.length}),this._lastDate=n,e===0&&(this._running=!1)}_getAnims(n){let e=this._charts,i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){let e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(n){if(!this._running)return!1;let e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){let e=this._charts.get(n);if(!e||!e.items.length)return;let i=e.items,o=i.length-1;for(;o>=0;--o)i[o].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}},Pt=new is,tr="transparent",ud={boolean(t,n,e){return e>.5?n:t},color(t,n,e){let i=Eo(t||tr),o=i.valid&&Eo(n||tr);return o&&o.valid?o.mix(i,e).hexString():n},number(t,n,e){return t+(n-t)*e}},ns=class{constructor(n,e,i,o){let s=e[i];o=ki([n.to,o,s,n.from]);let a=ki([n.from,s,o]);this._active=!0,this._fn=n.fn||ud[n.type||typeof a],this._easing=bi[n.easing]||bi.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);let o=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,n.duration)),this._total+=s,this._loop=!!n.loop,this._to=ki([n.to,e,o,n.from]),this._from=ki([n.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){let e=n-this._start,i=this._duration,o=this._prop,s=this._from,a=this._loop,r=this._to,l;if(this._active=s!==r&&(a||e<i),!this._active){this._target[o]=r,this._notify(!0);return}if(e<0){this._target[o]=s;return}l=e/i%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,r,l)}wait(){let n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){let e=n?"res":"rej",i=this._promises||[];for(let o=0;o<i.length;o++)i[o][e]()}},Wn=class{constructor(n,e){this._chart=n,this._properties=new Map,this.configure(e)}configure(n){if(!J(n))return;let e=Object.keys(xe.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(o=>{let s=n[o];if(!J(s))return;let a={};for(let r of e)a[r]=s[r];(ue(s.properties)&&s.properties||[o]).forEach(r=>{(r===o||!i.has(r))&&i.set(r,a)})})}_animateOptions(n,e){let i=e.options,o=fd(n,i);if(!o)return[];let s=this._createAnimations(o,i);return i.$shared&&hd(n.options.$animations,i).then(()=>{n.options=i},()=>{}),s}_createAnimations(n,e){let i=this._properties,o=[],s=n.$animations||(n.$animations={}),a=Object.keys(e),r=Date.now(),l;for(l=a.length-1;l>=0;--l){let c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(n,e));continue}let d=e[c],p=s[c],u=i.get(c);if(p)if(u&&p.active()){p.update(u,d,r);continue}else p.cancel();if(!u||!u.duration){n[c]=d;continue}s[c]=p=new ns(u,n,c,d),o.push(p)}return o}update(n,e){if(this._properties.size===0){Object.assign(n,e);return}let i=this._createAnimations(n,e);if(i.length)return Pt.add(this._chart,i),!0}};function hd(t,n){let e=[],i=Object.keys(n);for(let o=0;o<i.length;o++){let s=t[i[o]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}function fd(t,n){if(!n)return;let e=t.options;if(!e){t.options=n;return}return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function ir(t,n){let e=t&&t.options||{},i=e.reverse,o=e.min===void 0?n:0,s=e.max===void 0?n:0;return{start:i?s:o,end:i?o:s}}function md(t,n,e){if(e===!1)return!1;let i=ir(t,e),o=ir(n,e);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function gd(t){let n,e,i,o;return J(t)?(n=t.top,e=t.right,i=t.bottom,o=t.left):n=e=i=o=t,{top:n,right:e,bottom:i,left:o,disabled:t===!1}}function il(t,n){let e=[],i=t._getSortedDatasetMetas(n),o,s;for(o=0,s=i.length;o<s;++o)e.push(i[o].index);return e}function nr(t,n,e,i={}){let o=t.keys,s=i.mode==="single",a,r,l,c;if(n!==null){for(a=0,r=o.length;a<r;++a){if(l=+o[a],l===e){if(i.all)continue;break}c=t.values[l],ve(c)&&(s||n===0||ft(n)===ft(c))&&(n+=c)}return n}}function _d(t){let n=Object.keys(t),e=new Array(n.length),i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i],e[i]={x:s,y:t[s]};return e}function or(t,n){let e=t&&t.options.stacked;return e||e===void 0&&n.stack!==void 0}function bd(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}function yd(t){let{min:n,max:e,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}function vd(t,n,e){let i=t[n]||(t[n]={});return i[e]||(i[e]={})}function sr(t,n,e,i){for(let o of n.getMatchingVisibleMetas(i).reverse()){let s=t[o.index];if(e&&s>0||!e&&s<0)return o.index}return null}function ar(t,n){let{chart:e,_cachedMeta:i}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:a,index:r}=i,l=s.axis,c=a.axis,d=bd(s,a,i),p=n.length,u;for(let h=0;h<p;++h){let m=n[h],{[l]:b,[c]:y}=m,C=m._stacks||(m._stacks={});u=C[c]=vd(o,d,b),u[r]=y,u._top=sr(u,a,!0,i.type),u._bottom=sr(u,a,!1,i.type);let x=u._visualValues||(u._visualValues={});x[r]=y}}function Ko(t,n){let e=t.scales;return Object.keys(e).filter(i=>e[i].axis===n).shift()}function xd(t,n){return Et(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function Cd(t,n,e){return Et(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}function Wi(t,n){let e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(let o of n){let s=o._stacks;if(!s||s[i]===void 0||s[i][e]===void 0)return;delete s[i][e],s[i]._visualValues!==void 0&&s[i]._visualValues[e]!==void 0&&delete s[i]._visualValues[e]}}}var qo=t=>t==="reset"||t==="none",rr=(t,n)=>n?t:Object.assign({},t),wd=(t,n,e)=>t&&!n.hidden&&n._stacked&&{keys:il(e,!0),values:null},Kt=(()=>{class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=or(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Wi(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,i=this._cachedMeta,o=this.getDataset(),s=(u,h,m,b)=>u==="x"?h:u==="r"?b:m,a=i.xAxisID=W(o.xAxisID,Ko(e,"x")),r=i.yAxisID=W(o.yAxisID,Ko(e,"y")),l=i.rAxisID=W(o.rAxisID,Ko(e,"r")),c=i.indexAxis,d=i.iAxisID=s(c,a,r,l),p=i.vAxisID=s(c,r,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(r),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let e=this._cachedMeta;this._data&&So(this._data,this),e._stacked&&Wi(e)}_dataCheck(){let e=this.getDataset(),i=e.data||(e.data=[]),o=this._data;if(J(i))this._data=_d(i);else if(o!==i){if(o){So(o,this);let s=this._cachedMeta;Wi(s),s._parsed=[]}i&&Object.isExtensible(i)&&Va(i,this),this._syncList=[],this._data=i}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let i=this._cachedMeta,o=this.getDataset(),s=!1;this._dataCheck();let a=i._stacked;i._stacked=or(i.vScale,i),i.stack!==o.stack&&(s=!0,Wi(i),i.stack=o.stack),this._resyncElements(e),(s||a!==i._stacked)&&ar(this,i._parsed)}configure(){let e=this.chart.config,i=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){let{_cachedMeta:o,_data:s}=this,{iScale:a,_stacked:r}=o,l=a.axis,c=e===0&&i===s.length?!0:o._sorted,d=e>0&&o._parsed[e-1],p,u,h;if(this._parsing===!1)o._parsed=s,o._sorted=!0,h=s;else{ue(s[e])?h=this.parseArrayData(o,s,e,i):J(s[e])?h=this.parseObjectData(o,s,e,i):h=this.parsePrimitiveData(o,s,e,i);let m=()=>u[l]===null||d&&u[l]<d[l];for(p=0;p<i;++p)o._parsed[p+e]=u=h[p],c&&(m()&&(c=!1),d=u);o._sorted=c}r&&ar(this,h)}parsePrimitiveData(e,i,o,s){let{iScale:a,vScale:r}=e,l=a.axis,c=r.axis,d=a.getLabels(),p=a===r,u=new Array(s),h,m,b;for(h=0,m=s;h<m;++h)b=h+o,u[h]={[l]:p||a.parse(d[b],b),[c]:r.parse(i[b],b)};return u}parseArrayData(e,i,o,s){let{xScale:a,yScale:r}=e,l=new Array(s),c,d,p,u;for(c=0,d=s;c<d;++c)p=c+o,u=i[p],l[c]={x:a.parse(u[0],p),y:r.parse(u[1],p)};return l}parseObjectData(e,i,o,s){let{xScale:a,yScale:r}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(s),p,u,h,m;for(p=0,u=s;p<u;++p)h=p+o,m=i[h],d[p]={x:a.parse(At(m,l),h),y:r.parse(At(m,c),h)};return d}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,i,o){let s=this.chart,a=this._cachedMeta,r=i[e.axis],l={keys:il(s,!0),values:i._stacks[e.axis]._visualValues};return nr(l,r,a.index,{mode:o})}updateRangeFromParsed(e,i,o,s){let a=o[i.axis],r=a===null?NaN:a,l=s&&o._stacks[i.axis];s&&l&&(s.values=l,r=nr(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,r),e.max=Math.max(e.max,r)}getMinMax(e,i){let o=this._cachedMeta,s=o._parsed,a=o._sorted&&e===o.iScale,r=s.length,l=this._getOtherScale(e),c=wd(i,o,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:u}=yd(l),h,m;function b(){m=s[h];let y=m[l.axis];return!ve(m[e.axis])||p>y||u<y}for(h=0;h<r&&!(!b()&&(this.updateRangeFromParsed(d,e,m,c),a));++h);if(a){for(h=r-1;h>=0;--h)if(!b()){this.updateRangeFromParsed(d,e,m,c);break}}return d}getAllParsedValues(e){let i=this._cachedMeta._parsed,o=[],s,a,r;for(s=0,a=i.length;s<a;++s)r=i[s][e.axis],ve(r)&&o.push(r);return o}getMaxOverflow(){return!1}getLabelAndValue(e){let i=this._cachedMeta,o=i.iScale,s=i.vScale,a=this.getParsed(e);return{label:o?""+o.getLabelForValue(a[o.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){let i=this._cachedMeta;this.update(e||"default"),i._clip=gd(W(this.options.clip,md(i.xScale,i.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,i=this.chart,o=this._cachedMeta,s=o.data||[],a=i.chartArea,r=[],l=this._drawStart||0,c=this._drawCount||s.length-l,d=this.options.drawActiveElementsOnTop,p;for(o.dataset&&o.dataset.draw(e,a,l,c),p=l;p<l+c;++p){let u=s[p];u.hidden||(u.active&&d?r.push(u):u.draw(e,a))}for(p=0;p<r.length;++p)r[p].draw(e,a)}getStyle(e,i){let o=i?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,i,o){let s=this.getDataset(),a;if(e>=0&&e<this._cachedMeta.data.length){let r=this._cachedMeta.data[e];a=r.$context||(r.$context=Cd(this.getContext(),e,r)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=xd(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=o,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,i){return this._resolveElementOptions(this.dataElementType.id,i,e)}_resolveElementOptions(e,i="default",o){let s=i==="active",a=this._cachedDataOpts,r=e+"-"+i,l=a[r],c=this.enableOptionSharing&&Ci(o);if(l)return rr(l,c);let d=this.chart.config,p=d.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],h=d.getOptionScopes(this.getDataset(),p),m=Object.keys(xe.elements[e]),b=()=>this.getContext(o,s,i),y=d.resolveNamedOptions(h,m,b,u);return y.$shared&&(y.$shared=c,a[r]=Object.freeze(rr(y,c))),y}_resolveAnimations(e,i,o){let s=this.chart,a=this._cachedDataOpts,r=`animation-${i}`,l=a[r];if(l)return l;let c;if(s.options.animation!==!1){let p=this.chart.config,u=p.datasetAnimationScopeKeys(this._type,i),h=p.getOptionScopes(this.getDataset(),u);c=p.createResolver(h,this.getContext(e,o,i))}let d=new Wn(s,c&&c.animations);return c&&c._cacheable&&(a[r]=Object.freeze(d)),d}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||qo(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){let o=this.resolveDataElementOptions(e,i),s=this._sharedOptions,a=this.getSharedOptions(o),r=this.includeOptions(i,a)||a!==s;return this.updateSharedOptions(a,i,o),{sharedOptions:a,includeOptions:r}}updateElement(e,i,o,s){qo(s)?Object.assign(e,o):this._resolveAnimations(i,s).update(e,o)}updateSharedOptions(e,i,o){e&&!qo(i)&&this._resolveAnimations(void 0,i).update(e,o)}_setStyle(e,i,o,s){e.active=s;let a=this.getStyle(i,s);this._resolveAnimations(i,o,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,i,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){let i=this._data,o=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let s=o.length,a=i.length,r=Math.min(a,s);r&&this.parse(0,r),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,i,o=!0){let s=this._cachedMeta,a=s.data,r=e+i,l,c=d=>{for(d.length+=i,l=d.length-1;l>=r;l--)d[l]=d[l-i]};for(c(a),l=e;l<r;++l)a[l]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(e,i),o&&this.updateElements(a,e,i,"reset")}updateElements(e,i,o,s){}_removeElements(e,i){let o=this._cachedMeta;if(this._parsing){let s=o._parsed.splice(e,i);o._stacked&&Wi(o,s)}o.data.splice(e,i)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[i,o,s]=e;this[i](o,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,i){i&&this._sync(["_removeElements",e,i]);let o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return t})();function Td(t,n){if(!t._cache.$bar){let e=t.getMatchingVisibleMetas(n),i=[];for(let o=0,s=e.length;o<s;o++)i=i.concat(e[o].controller.getAllParsedValues(t));t._cache.$bar=ko(i.sort((o,s)=>o-s))}return t._cache.$bar}function Id(t){let n=t.iScale,e=Td(n,t.type),i=n._length,o,s,a,r,l=()=>{a===32767||a===-32768||(Ci(r)&&(i=Math.min(i,Math.abs(a-r)||i)),r=a)};for(o=0,s=e.length;o<s;++o)a=n.getPixelForValue(e[o]),l();for(r=void 0,o=0,s=n.ticks.length;o<s;++o)a=n.getPixelForTick(o),l();return i}function Sd(t,n,e,i){let o=e.barThickness,s,a;return oe(o)?(s=n.min*e.categoryPercentage,a=e.barPercentage):(s=o*i,a=1),{chunk:s/i,ratio:a,start:n.pixels[t]-s/2}}function kd(t,n,e,i){let o=n.pixels,s=o[t],a=t>0?o[t-1]:null,r=t<o.length-1?o[t+1]:null,l=e.categoryPercentage;a===null&&(a=s-(r===null?n.end-n.start:r-s)),r===null&&(r=s+s-a);let c=s-(s-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/i,ratio:e.barPercentage,start:c}}function Md(t,n,e,i){let o=e.parse(t[0],i),s=e.parse(t[1],i),a=Math.min(o,s),r=Math.max(o,s),l=a,c=r;Math.abs(a)>Math.abs(r)&&(l=r,c=a),n[e.axis]=c,n._custom={barStart:l,barEnd:c,start:o,end:s,min:a,max:r}}function nl(t,n,e,i){return ue(t)?Md(t,n,e,i):n[e.axis]=e.parse(t,i),n}function lr(t,n,e,i){let o=t.iScale,s=t.vScale,a=o.getLabels(),r=o===s,l=[],c,d,p,u;for(c=e,d=e+i;c<d;++c)u=n[c],p={},p[o.axis]=r||o.parse(a[c],c),l.push(nl(u,p,s,c));return l}function Yo(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Od(t,n,e){return t!==0?ft(t):(n.isHorizontal()?1:-1)*(n.min>=e?1:-1)}function Fd(t){let n,e,i,o,s;return t.horizontal?(n=t.base>t.x,e="left",i="right"):(n=t.base<t.y,e="bottom",i="top"),n?(o="end",s="start"):(o="start",s="end"),{start:e,end:i,reverse:n,top:o,bottom:s}}function Dd(t,n,e,i){let o=n.borderSkipped,s={};if(!o){t.borderSkipped=s;return}if(o===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:a,end:r,reverse:l,top:c,bottom:d}=Fd(t);o==="middle"&&e&&(t.enableBorderRadius=!0,(e._top||0)===i?o=c:(e._bottom||0)===i?o=d:(s[cr(d,a,r,l)]=!0,o=c)),s[cr(o,a,r,l)]=!0,t.borderSkipped=s}function cr(t,n,e,i){return i?(t=Ad(t,n,e),t=dr(t,e,n)):t=dr(t,n,e),t}function Ad(t,n,e){return t===n?e:t===e?n:t}function dr(t,n,e){return t==="start"?n:t==="end"?e:t}function Ed(t,{inflateAmount:n},e){t.inflateAmount=n==="auto"?e===1?.33:0:n}var Pd=(()=>{class t extends Kt{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,o,s){return lr(e,i,o,s)}parseArrayData(e,i,o,s){return lr(e,i,o,s)}parseObjectData(e,i,o,s){let{iScale:a,vScale:r}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,p=r.axis==="x"?l:c,u=[],h,m,b,y;for(h=o,m=o+s;h<m;++h)y=i[h],b={},b[a.axis]=a.parse(At(y,d),h),u.push(nl(At(y,p),b,r,h));return u}updateRangeFromParsed(e,i,o,s){super.updateRangeFromParsed(e,i,o,s);let a=o._custom;a&&i===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let i=this._cachedMeta,{iScale:o,vScale:s}=i,a=this.getParsed(e),r=a._custom,l=Yo(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(a[s.axis]);return{label:""+o.getLabelForValue(a[o.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,e)}updateElements(e,i,o,s){let a=s==="reset",{index:r,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),p=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(i,s);for(let m=i;m<i+o;m++){let b=this.getParsed(m),y=a||oe(b[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),C=this._calculateBarIndexPixels(m,p),x=(b._stacks||{})[l.axis],k={horizontal:d,base:y.base,enableBorderRadius:!x||Yo(b._custom)||r===x._top||r===x._bottom,x:d?y.head:C.center,y:d?C.center:y.head,height:d?C.size:Math.abs(y.size),width:d?Math.abs(y.size):C.size};h&&(k.options=u||this.resolveDataElementOptions(m,e[m].active?"active":s));let O=k.options||e[m].options;Dd(k,O,x,r),Ed(k,O,p.ratio),this.updateElement(e[m],m,k,s)}}_getStacks(e,i){let{iScale:o}=this._cachedMeta,s=o.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),a=o.options.stacked,r=[],l=c=>{let d=c.controller.getParsed(i),p=d&&d[c.vScale.axis];if(oe(p)||isNaN(p))return!0};for(let c of s)if(!(i!==void 0&&l(c))&&((a===!1||r.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&r.push(c.stack),c.index===e))break;return r.length||r.push(void 0),r}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,i,o){let s=this._getStacks(e,o),a=i!==void 0?s.indexOf(i):-1;return a===-1?s.length-1:a}_getRuler(){let e=this.options,i=this._cachedMeta,o=i.iScale,s=[],a,r;for(a=0,r=i.data.length;a<r;++a)s.push(o.getPixelForValue(this.getParsed(a)[o.axis],a));let l=e.barThickness;return{min:l||Id(i),pixels:s,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:i,_stacked:o,index:s},options:{base:a,minBarLength:r}}=this,l=a||0,c=this.getParsed(e),d=c._custom,p=Yo(d),u=c[i.axis],h=0,m=o?this.applyStack(i,c,o):u,b,y;m!==u&&(h=m-u,m=u),p&&(u=d.barStart,m=d.barEnd-d.barStart,u!==0&&ft(u)!==ft(d.barEnd)&&(h=0),h+=u);let C=!oe(a)&&!p?a:h,x=i.getPixelForValue(C);if(this.chart.getDataVisibility(e)?b=i.getPixelForValue(h+m):b=x,y=b-x,Math.abs(y)<r){y=Od(y,i,l)*r,u===l&&(x-=y/2);let k=i.getPixelForDecimal(0),O=i.getPixelForDecimal(1),I=Math.min(k,O),M=Math.max(k,O);x=Math.max(Math.min(x,M),I),b=x+y,o&&!p&&(c._stacks[i.axis]._visualValues[s]=i.getValueForPixel(b)-i.getValueForPixel(x))}if(x===i.getPixelForValue(l)){let k=ft(y)*i.getLineWidthForValue(l)/2;x+=k,y-=k}return{size:y,base:x,head:b,center:b+y/2}}_calculateBarIndexPixels(e,i){let o=i.scale,s=this.options,a=s.skipNull,r=W(s.maxBarThickness,1/0),l,c;if(i.grouped){let d=a?this._getStackCount(e):i.stackCount,p=s.barThickness==="flex"?kd(e,i,s,d):Sd(e,i,s,d),u=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);l=p.start+p.chunk*u+p.chunk/2,c=Math.min(r,p.chunk*p.ratio)}else l=o.getPixelForValue(this.getParsed(e)[o.axis],e),c=Math.min(r,i.min*i.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let e=this._cachedMeta,i=e.vScale,o=e.data,s=o.length,a=0;for(;a<s;++a)this.getParsed(a)[i.axis]!==null&&o[a].draw(this._ctx)}}return t})(),Ld=(()=>{class t extends Kt{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,o,s){let a=super.parsePrimitiveData(e,i,o,s);for(let r=0;r<a.length;r++)a[r]._custom=this.resolveDataElementOptions(r+o).radius;return a}parseArrayData(e,i,o,s){let a=super.parseArrayData(e,i,o,s);for(let r=0;r<a.length;r++){let l=i[o+r];a[r]._custom=W(l[2],this.resolveDataElementOptions(r+o).radius)}return a}parseObjectData(e,i,o,s){let a=super.parseObjectData(e,i,o,s);for(let r=0;r<a.length;r++){let l=i[o+r];a[r]._custom=W(l&&l.r&&+l.r,this.resolveDataElementOptions(r+o).radius)}return a}getMaxOverflow(){let e=this._cachedMeta.data,i=0;for(let o=e.length-1;o>=0;--o)i=Math.max(i,e[o].size(this.resolveDataElementOptions(o))/2);return i>0&&i}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,r=this.getParsed(e),l=s.getLabelForValue(r.x),c=a.getLabelForValue(r.y),d=r._custom;return{label:o[e]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(e){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,s),p=r.axis,u=l.axis;for(let h=i;h<i+o;h++){let m=e[h],b=!a&&this.getParsed(h),y={},C=y[p]=a?r.getPixelForDecimal(.5):r.getPixelForValue(b[p]),x=y[u]=a?l.getBasePixel():l.getPixelForValue(b[u]);y.skip=isNaN(C)||isNaN(x),d&&(y.options=c||this.resolveDataElementOptions(h,m.active?"active":s),a&&(y.options.radius=0)),this.updateElement(m,h,y,s)}}resolveDataElementOptions(e,i){let o=this.getParsed(e),s=super.resolveDataElementOptions(e,i);s.$shared&&(s=Object.assign({},s,{$shared:!1}));let a=s.radius;return i!=="active"&&(s.radius=0),s.radius+=W(o&&o._custom,a),s}}return t})();function Vd(t,n,e){let i=1,o=1,s=0,a=0;if(n<fe){let r=t,l=r+n,c=Math.cos(r),d=Math.sin(r),p=Math.cos(l),u=Math.sin(l),h=(k,O,I)=>Ti(k,r,l,!0)?1:Math.max(O,O*e,I,I*e),m=(k,O,I)=>Ti(k,r,l,!0)?-1:Math.min(O,O*e,I,I*e),b=h(0,c,p),y=h(Ie,d,u),C=m(he,c,p),x=m(he+Ie,d,u);i=(b-C)/2,o=(y-x)/2,s=-(b+C)/2,a=-(y+x)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:a}}var ws=(()=>{class t extends Kt{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,r)=>{let c=e.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){let o=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=o;else{let a=c=>+o[c];if(J(o[e])){let{key:c="value"}=this._parsing;a=d=>+At(o[d],c)}let r,l;for(r=e,l=e+i;r<l;++r)s._parsed[r]=a(r)}}_getRotation(){return at(this.options.rotation-90)}_getCircumference(){return at(this.options.circumference)}_getRotationExtents(){let e=fe,i=-fe;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){let s=this.chart.getDatasetMeta(o).controller,a=s._getRotation(),r=s._getCircumference();e=Math.min(e,a),i=Math.max(i,a+r)}return{rotation:e,circumference:i-e}}update(e){let i=this.chart,{chartArea:o}=i,s=this._cachedMeta,a=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(o.width,o.height)-r)/2,0),c=Math.min(ka(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:p,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:m,offsetX:b,offsetY:y}=Vd(u,p,c),C=(o.width-r)/h,x=(o.height-r)/m,k=Math.max(Math.min(C,x)/2,0),O=vo(this.options.radius,k),I=Math.max(O*c,0),M=(O-I)/this._getVisibleDatasetWeightTotal();this.offsetX=b*O,this.offsetY=y*O,s.total=this.calculateTotal(),this.outerRadius=O-M*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-M*d,0),this.updateElements(a,0,a.length,e)}_circumference(e,i){let o=this.options,s=this._cachedMeta,a=this._getCircumference();return i&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/fe)}updateElements(e,i,o,s){let a=s==="reset",r=this.chart,l=r.chartArea,d=r.options.animation,p=(l.left+l.right)/2,u=(l.top+l.bottom)/2,h=a&&d.animateScale,m=h?0:this.innerRadius,b=h?0:this.outerRadius,{sharedOptions:y,includeOptions:C}=this._getSharedOptions(i,s),x=this._getRotation(),k;for(k=0;k<i;++k)x+=this._circumference(k,a);for(k=i;k<i+o;++k){let O=this._circumference(k,a),I=e[k],M={x:p+this.offsetX,y:u+this.offsetY,startAngle:x,endAngle:x+O,circumference:O,outerRadius:b,innerRadius:m};C&&(M.options=y||this.resolveDataElementOptions(k,I.active?"active":s)),x+=O,this.updateElement(I,k,M,s)}}calculateTotal(){let e=this._cachedMeta,i=e.data,o=0,s;for(s=0;s<i.length;s++){let a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(o+=Math.abs(a))}return o}calculateCircumference(e){let i=this._cachedMeta.total;return i>0&&!isNaN(e)?fe*(Math.abs(e)/i):0}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart,s=o.data.labels||[],a=Ii(i._parsed[e],o.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let i=0,o=this.chart,s,a,r,l,c;if(!e){for(s=0,a=o.data.datasets.length;s<a;++s)if(o.isDatasetVisible(s)){r=o.getDatasetMeta(s),e=r.data,l=r.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)c=l.resolveDataElementOptions(s),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(e){let i=0;for(let o=0,s=e.length;o<s;++o){let a=this.resolveDataElementOptions(o);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(e){let i=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(i+=this._getRingWeight(o));return i}_getRingWeight(e){return Math.max(W(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return t})(),zd=(()=>{class t extends Kt{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){let i=this._cachedMeta,{dataset:o,data:s=[],_dataset:a}=i,r=this.chart._animationsDisabled,{start:l,count:c}=Fo(i,s,r);this._drawStart=l,this._drawCount=c,Do(i)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=s;let d=this.resolveDatasetElementOptions(e);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:d},e),this.updateElements(s,l,c,e)}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:p,includeOptions:u}=this._getSharedOptions(i,s),h=r.axis,m=l.axis,{spanGaps:b,segment:y}=this.options,C=si(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||a||s==="none",k=i+o,O=e.length,I=i>0&&this.getParsed(i-1);for(let M=0;M<O;++M){let V=e[M],P=x?V:{};if(M<i||M>=k){P.skip=!0;continue}let R=this.getParsed(M),q=oe(R[m]),Q=P[h]=r.getPixelForValue(R[h],M),ee=P[m]=a||q?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,R,c):R[m],M);P.skip=isNaN(Q)||isNaN(ee)||q,P.stop=M>0&&Math.abs(R[h]-I[h])>C,y&&(P.parsed=R,P.raw=d.data[M]),u&&(P.options=p||this.resolveDataElementOptions(M,V.active?"active":s)),x||this.updateElement(V,M,P,s),I=R}}getMaxOverflow(){let e=this._cachedMeta,i=e.dataset,o=i.options&&i.options.borderWidth||0,s=e.data||[];if(!s.length)return o;let a=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,a,r)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t})(),ol=(()=>{class t extends Kt{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let i=e.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,r)=>{let c=e.getDatasetMeta(0).controller.getStyle(r);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(r),index:r}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let i=this._cachedMeta,o=this.chart,s=o.data.labels||[],a=Ii(i._parsed[e].r,o.options.locale);return{label:s[e]||"",value:a}}parseObjectData(e,i,o,s){return Bo.bind(this)(e,i,o,s)}update(e){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){let e=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((o,s)=>{let a=this.getParsed(s).r;!isNaN(a)&&this.chart.getDataVisibility(s)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){let e=this.chart,i=e.chartArea,o=e.options,s=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(s/2,0),r=Math.max(o.cutoutPercentage?a/100*o.cutoutPercentage:1,0),l=(a-r)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,i,o,s){let a=s==="reset",r=this.chart,c=r.options.animation,d=this._cachedMeta.rScale,p=d.xCenter,u=d.yCenter,h=d.getIndexAngle(0)-.5*he,m=h,b,y=360/this.countVisibleElements();for(b=0;b<i;++b)m+=this._computeAngle(b,s,y);for(b=i;b<i+o;b++){let C=e[b],x=m,k=m+this._computeAngle(b,s,y),O=r.getDataVisibility(b)?d.getDistanceFromCenterForValue(this.getParsed(b).r):0;m=k,a&&(c.animateScale&&(O=0),c.animateRotate&&(x=k=h));let I={x:p,y:u,innerRadius:0,outerRadius:O,startAngle:x,endAngle:k,options:this.resolveDataElementOptions(b,C.active?"active":s)};this.updateElement(C,b,I,s)}}countVisibleElements(){let e=this._cachedMeta,i=0;return e.data.forEach((o,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(e,i,o){return this.chart.getDataVisibility(e)?at(this.resolveDataElementOptions(e,i).angle||o):0}}return t})(),Rd=(()=>{class t extends ws{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return t})(),$d=(()=>{class t extends Kt{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){let i=this._cachedMeta.vScale,o=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(o[i.axis])}}parseObjectData(e,i,o,s){return Bo.bind(this)(e,i,o,s)}update(e){let i=this._cachedMeta,o=i.dataset,s=i.data||[],a=i.iScale.getLabels();if(o.points=s,e!=="resize"){let r=this.resolveDatasetElementOptions(e);this.options.showLine||(r.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===s.length,options:r};this.updateElement(o,void 0,l,e)}this.updateElements(s,0,s.length,e)}updateElements(e,i,o,s){let a=this._cachedMeta.rScale,r=s==="reset";for(let l=i;l<i+o;l++){let c=e[l],d=this.resolveDataElementOptions(l,c.active?"active":s),p=a.getPointPositionForValue(l,this.getParsed(l).r),u=r?a.xCenter:p.x,h=r?a.yCenter:p.y,m={x:u,y:h,angle:p.angle,skip:isNaN(u)||isNaN(h),options:d};this.updateElement(c,l,m,s)}}}return t})(),Bd=(()=>{class t extends Kt{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){let i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,r=this.getParsed(e),l=s.getLabelForValue(r.x),c=a.getLabelForValue(r.y);return{label:o[e]||"",value:"("+l+", "+c+")"}}update(e){let i=this._cachedMeta,{data:o=[]}=i,s=this.chart._animationsDisabled,{start:a,count:r}=Fo(i,o,s);if(this._drawStart=a,this._drawCount=r,Do(i)&&(a=0,r=o.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;let d=this.resolveDatasetElementOptions(e);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:d},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(o,a,r,e)}addElements(){let{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,o,s){let a=s==="reset",{iScale:r,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,p=this.resolveDataElementOptions(i,s),u=this.getSharedOptions(p),h=this.includeOptions(s,u),m=r.axis,b=l.axis,{spanGaps:y,segment:C}=this.options,x=si(y)?y:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||a||s==="none",O=i>0&&this.getParsed(i-1);for(let I=i;I<i+o;++I){let M=e[I],V=this.getParsed(I),P=k?M:{},R=oe(V[b]),q=P[m]=r.getPixelForValue(V[m],I),Q=P[b]=a||R?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,V,c):V[b],I);P.skip=isNaN(q)||isNaN(Q)||R,P.stop=I>0&&Math.abs(V[m]-O[m])>x,C&&(P.parsed=V,P.raw=d.data[I]),h&&(P.options=u||this.resolveDataElementOptions(I,M.active?"active":s)),k||this.updateElement(M,I,P,s),O=V}this.updateSharedOptions(u,s,p)}getMaxOverflow(){let e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!i.length)return s;let a=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,a,r)/2}}return t})(),Hd=Object.freeze({__proto__:null,BarController:Pd,BubbleController:Ld,DoughnutController:ws,LineController:zd,PieController:Rd,PolarAreaController:ol,RadarController:$d,ScatterController:Bd});function ri(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var os=class t{static override(n){Object.assign(t.prototype,n)}options;constructor(n){this.options=n||{}}init(){}formats(){return ri()}parse(){return ri()}format(){return ri()}add(){return ri()}diff(){return ri()}startOf(){return ri()}endOf(){return ri()}},Nd={_date:os};function jd(t,n,e,i){let{controller:o,data:s,_sorted:a}=t,r=o._cachedMeta.iScale;if(r&&n===r.axis&&n!=="r"&&a&&s.length){let l=r._reversePixels?Ea:yt;if(i){if(o._sharedOptions){let c=s[0],d=typeof c.getRange=="function"&&c.getRange(n);if(d){let p=l(s,n,e-d),u=l(s,n,e+d);return{lo:p.lo,hi:u.hi}}}}else return l(s,n,e)}return{lo:0,hi:s.length-1}}function tn(t,n,e,i,o){let s=t.getSortedVisibleDatasetMetas(),a=e[n];for(let r=0,l=s.length;r<l;++r){let{index:c,data:d}=s[r],{lo:p,hi:u}=jd(s[r],n,a,o);for(let h=p;h<=u;++h){let m=d[h];m.skip||i(m,c,h)}}}function Ud(t){let n=t.indexOf("x")!==-1,e=t.indexOf("y")!==-1;return function(i,o){let s=n?Math.abs(i.x-o.x):0,a=e?Math.abs(i.y-o.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}function Xo(t,n,e,i,o){let s=[];return!o&&!t.isPointInArea(n)||tn(t,e,n,function(r,l,c){!o&&!vt(r,t.chartArea,0)||r.inRange(n.x,n.y,i)&&s.push({element:r,datasetIndex:l,index:c})},!0),s}function Wd(t,n,e,i){let o=[];function s(a,r,l){let{startAngle:c,endAngle:d}=a.getProps(["startAngle","endAngle"],i),{angle:p}=Io(a,{x:n.x,y:n.y});Ti(p,c,d)&&o.push({element:a,datasetIndex:r,index:l})}return tn(t,e,n,s),o}function Qd(t,n,e,i,o,s){let a=[],r=Ud(e),l=Number.POSITIVE_INFINITY;function c(d,p,u){let h=d.inRange(n.x,n.y,o);if(i&&!h)return;let m=d.getCenterPoint(o);if(!(!!s||t.isPointInArea(m))&&!h)return;let y=r(n,m);y<l?(a=[{element:d,datasetIndex:p,index:u}],l=y):y===l&&a.push({element:d,datasetIndex:p,index:u})}return tn(t,e,n,c),a}function Go(t,n,e,i,o,s){return!s&&!t.isPointInArea(n)?[]:e==="r"&&!i?Wd(t,n,e,o):Qd(t,n,e,i,o,s)}function pr(t,n,e,i,o){let s=[],a=e==="x"?"inXRange":"inYRange",r=!1;return tn(t,e,n,(l,c,d)=>{l[a](n[e],o)&&(s.push({element:l,datasetIndex:c,index:d}),r=r||l.inRange(n.x,n.y,o))}),i&&!r?[]:s}var Kd={evaluateInteractionItems:tn,modes:{index(t,n,e,i){let o=Wt(n,t),s=e.axis||"x",a=e.includeInvisible||!1,r=e.intersect?Xo(t,o,s,i,a):Go(t,o,s,!1,i,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{let d=r[0].index,p=c.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:d})}),l):[]},dataset(t,n,e,i){let o=Wt(n,t),s=e.axis||"xy",a=e.includeInvisible||!1,r=e.intersect?Xo(t,o,s,i,a):Go(t,o,s,!1,i,a);if(r.length>0){let l=r[0].datasetIndex,c=t.getDatasetMeta(l).data;r=[];for(let d=0;d<c.length;++d)r.push({element:c[d],datasetIndex:l,index:d})}return r},point(t,n,e,i){let o=Wt(n,t),s=e.axis||"xy",a=e.includeInvisible||!1;return Xo(t,o,s,i,a)},nearest(t,n,e,i){let o=Wt(n,t),s=e.axis||"xy",a=e.includeInvisible||!1;return Go(t,o,s,e.intersect,i,a)},x(t,n,e,i){let o=Wt(n,t);return pr(t,o,"x",e.intersect,i)},y(t,n,e,i){let o=Wt(n,t);return pr(t,o,"y",e.intersect,i)}}},sl=["left","top","right","bottom"];function Qi(t,n){return t.filter(e=>e.pos===n)}function ur(t,n){return t.filter(e=>sl.indexOf(e.pos)===-1&&e.box.axis===n)}function Ki(t,n){return t.sort((e,i)=>{let o=n?i:e,s=n?e:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function qd(t){let n=[],e,i,o,s,a,r;for(e=0,i=(t||[]).length;e<i;++e)o=t[e],{position:s,options:{stack:a,stackWeight:r=1}}=o,n.push({index:e,box:o,pos:s,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&s+a,stackWeight:r});return n}function Yd(t){let n={};for(let e of t){let{stack:i,pos:o,stackWeight:s}=e;if(!i||!sl.includes(o))continue;let a=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return n}function Xd(t,n){let e=Yd(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=n,s,a,r;for(s=0,a=t.length;s<a;++s){r=t[s];let{fullSize:l}=r.box,c=e[r.stack],d=c&&r.stackWeight/c.weight;r.horizontal?(r.width=d?d*i:l&&n.availableWidth,r.height=o):(r.width=i,r.height=d?d*o:l&&n.availableHeight)}return e}function Gd(t){let n=qd(t),e=Ki(n.filter(c=>c.box.fullSize),!0),i=Ki(Qi(n,"left"),!0),o=Ki(Qi(n,"right")),s=Ki(Qi(n,"top"),!0),a=Ki(Qi(n,"bottom")),r=ur(n,"x"),l=ur(n,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:o.concat(l).concat(a).concat(r),chartArea:Qi(n,"chartArea"),vertical:i.concat(o).concat(l),horizontal:s.concat(a).concat(r)}}function hr(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function al(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function Zd(t,n,e,i){let{pos:o,box:s}=e,a=t.maxPadding;if(!J(o)){e.size&&(t[o]-=e.size);let p=i[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&al(a,s.getPadding());let r=Math.max(0,n.outerWidth-hr(a,t,"left","right")),l=Math.max(0,n.outerHeight-hr(a,t,"top","bottom")),c=r!==t.w,d=l!==t.h;return t.w=r,t.h=l,e.horizontal?{same:c,other:d}:{same:d,other:c}}function Jd(t){let n=t.maxPadding;function e(i){let o=Math.max(n[i]-t[i],0);return t[i]+=o,o}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}function ep(t,n){let e=n.maxPadding;function i(o){let s={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{s[a]=Math.max(n[a],e[a])}),s}return i(t?["left","right"]:["top","bottom"])}function Xi(t,n,e,i){let o=[],s,a,r,l,c,d;for(s=0,a=t.length,c=0;s<a;++s){r=t[s],l=r.box,l.update(r.width||n.w,r.height||n.h,ep(r.horizontal,n));let{same:p,other:u}=Zd(n,e,r,i);c|=p&&o.length,d=d||u,l.fullSize||o.push(r)}return c&&Xi(o,n,e,i)||d}function Vn(t,n,e,i,o){t.top=e,t.left=n,t.right=n+i,t.bottom=e+o,t.width=i,t.height=o}function fr(t,n,e,i){let o=e.padding,{x:s,y:a}=n;for(let r of t){let l=r.box,c=i[r.stack]||{count:1,placed:0,weight:1},d=r.stackWeight/c.weight||1;if(r.horizontal){let p=n.w*d,u=c.size||l.height;Ci(c.start)&&(a=c.start),l.fullSize?Vn(l,o.left,a,e.outerWidth-o.right-o.left,u):Vn(l,n.left+c.placed,a,p,u),c.start=a,c.placed+=p,a=l.bottom}else{let p=n.h*d,u=c.size||l.width;Ci(c.start)&&(s=c.start),l.fullSize?Vn(l,s,o.top,u,e.outerHeight-o.bottom-o.top):Vn(l,s,n.top+c.placed,u,p),c.start=s,c.placed+=p,s=l.right}}n.x=s,n.y=a}var We={addBox(t,n){t.boxes||(t.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(e){n.draw(e)}}]},t.boxes.push(n)},removeBox(t,n){let e=t.boxes?t.boxes.indexOf(n):-1;e!==-1&&t.boxes.splice(e,1)},configure(t,n,e){n.fullSize=e.fullSize,n.position=e.position,n.weight=e.weight},update(t,n,e,i){if(!t)return;let o=Be(t.options.layout.padding),s=Math.max(n-o.width,0),a=Math.max(e-o.height,0),r=Gd(t.boxes),l=r.vertical,c=r.horizontal;ae(t.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});let d=l.reduce((b,y)=>y.box.options&&y.box.options.display===!1?b:b+1,0)||1,p=Object.freeze({outerWidth:n,outerHeight:e,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/d,hBoxMaxHeight:a/2}),u=Object.assign({},o);al(u,Be(i));let h=Object.assign({maxPadding:u,w:s,h:a,x:o.left,y:o.top},o),m=Xd(l.concat(c),p);Xi(r.fullSize,h,p,m),Xi(l,h,p,m),Xi(c,h,p,m)&&Xi(l,h,p,m),Jd(h),fr(r.leftAndTop,h,p,m),h.x+=h.w,h.y+=h.h,fr(r.rightAndBottom,h,p,m),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ae(r.chartArea,b=>{let y=b.box;Object.assign(y,t.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}},Qn=class{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,o){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,o?Math.floor(e/o):i)}}isAttached(n){return!0}updateConfig(n){}},ss=class extends Qn{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}},jn="$chartjs",tp={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},mr=t=>t===null||t==="";function ip(t,n){let e=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[jn]={initial:{height:i,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",mr(o)){let s=No(t,"width");s!==void 0&&(t.width=s)}if(mr(i))if(t.style.height==="")t.height=t.width/(n||2);else{let s=No(t,"height");s!==void 0&&(t.height=s)}return t}var rl=Xa?{passive:!0}:!1;function np(t,n,e){t&&t.addEventListener(n,e,rl)}function op(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,rl)}function sp(t,n){let e=tp[t.type]||t.type,{x:i,y:o}=Wt(t,n);return{type:e,chart:n,native:t,x:i!==void 0?i:null,y:o!==void 0?o:null}}function Kn(t,n){for(let e of t)if(e===n||e.contains(n))return!0}function ap(t,n,e){let i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(let r of s)a=a||Kn(r.addedNodes,i),a=a&&!Kn(r.removedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function rp(t,n,e){let i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(let r of s)a=a||Kn(r.removedNodes,i),a=a&&!Kn(r.addedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}var Zi=new Map,gr=0;function ll(){let t=window.devicePixelRatio;t!==gr&&(gr=t,Zi.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function lp(t,n){Zi.size||window.addEventListener("resize",ll),Zi.set(t,n)}function cp(t){Zi.delete(t),Zi.size||window.removeEventListener("resize",ll)}function dp(t,n,e){let i=t.canvas,o=i&&Pn(i);if(!o)return;let s=Oo((r,l)=>{let c=o.clientWidth;e(r,l),c<o.clientWidth&&e()},window),a=new ResizeObserver(r=>{let l=r[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||s(c,d)});return a.observe(o),lp(t,s),a}function Zo(t,n,e){e&&e.disconnect(),n==="resize"&&cp(t)}function pp(t,n,e){let i=t.canvas,o=Oo(s=>{t.ctx!==null&&e(sp(s,t))},t);return np(i,n,o),o}var as=class extends Qn{acquireContext(n,e){let i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(ip(n,e),i):null}releaseContext(n){let e=n.canvas;if(!e[jn])return!1;let i=e[jn].initial;["height","width"].forEach(s=>{let a=i[s];oe(a)?e.removeAttribute(s):e.setAttribute(s,a)});let o=i.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[jn],!0}addEventListener(n,e,i){this.removeEventListener(n,e);let o=n.$proxies||(n.$proxies={}),a={attach:ap,detach:rp,resize:dp}[e]||pp;o[e]=a(n,e,i)}removeEventListener(n,e){let i=n.$proxies||(n.$proxies={}),o=i[e];if(!o)return;({attach:Zo,detach:Zo,resize:Zo}[e]||op)(n,e,o),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,o){return Ya(n,e,i,o)}isAttached(n){let e=Pn(n);return!!(e&&e.isConnected)}};function up(t){return!En()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?ss:as}var mt=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){let{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return si(this.x)&&si(this.y)}getProps(n,e){let i=this.$animations;if(!e||!i)return this;let o={};return n.forEach(s=>{o[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),o}};function hp(t,n){let e=t.options.ticks,i=fp(t),o=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?gp(n):[],a=s.length,r=s[0],l=s[a-1],c=[];if(a>o)return _p(n,c,s,a/o),c;let d=mp(s,n,o);if(a>0){let p,u,h=a>1?Math.round((l-r)/(a-1)):null;for(zn(n,c,d,oe(h)?0:r-h,r),p=0,u=a-1;p<u;p++)zn(n,c,d,s[p],s[p+1]);return zn(n,c,d,l,oe(h)?n.length:l+h),c}return zn(n,c,d),c}function fp(t){let n=t.options.offset,e=t._tickSize(),i=t._length/e+(n?0:1),o=t._maxLength/e;return Math.floor(Math.min(i,o))}function mp(t,n,e){let i=bp(t),o=n.length/e;if(!i)return Math.max(o,1);let s=Fa(i);for(let a=0,r=s.length-1;a<r;a++){let l=s[a];if(l>o)return l}return Math.max(o,1)}function gp(t){let n=[],e,i;for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}function _p(t,n,e,i){let o=0,s=e[0],a;for(i=Math.ceil(i),a=0;a<t.length;a++)a===s&&(n.push(t[a]),o++,s=e[o*i])}function zn(t,n,e,i,o){let s=W(i,0),a=Math.min(W(o,t.length),t.length),r=0,l,c,d;for(e=Math.ceil(e),o&&(l=o-i,e=l/Math.floor(l/e)),d=s;d<0;)r++,d=Math.round(s+r*e);for(c=Math.max(s,0);c<a;c++)c===d&&(n.push(t[c]),r++,d=Math.round(s+r*e))}function bp(t){let n=t.length,e,i;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}var yp=t=>t==="left"?"right":t==="right"?"left":t,_r=(t,n,e)=>n==="top"||n==="left"?t[n]+e:t[n]-e,br=(t,n)=>Math.min(n||t,t);function yr(t,n){let e=[],i=t.length/n,o=t.length,s=0;for(;s<o;s+=i)e.push(t[Math.floor(s)]);return e}function vp(t,n,e){let i=t.ticks.length,o=Math.min(n,i-1),s=t._startPixel,a=t._endPixel,r=1e-6,l=t.getPixelForTick(o),c;if(!(e&&(i===1?c=Math.max(l-s,a-l):n===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<n?c:-c,l<s-r||l>a+r)))return l}function xp(t,n){ae(t,e=>{let i=e.gc,o=i.length/2,s;if(o>n){for(s=0;s<o;++s)delete e.data[i[s]];i.splice(0,o)}})}function qi(t){return t.drawTicks?t.tickLength:0}function vr(t,n){if(!t.display)return 0;let e=Fe(t.font,n),i=Be(t.padding);return(ue(t.text)?t.text.length:1)*e.lineHeight+i.height}function Cp(t,n){return Et(t,{scale:n,type:"scale"})}function wp(t,n,e){return Et(t,{tick:e,index:n,type:"tick"})}function Tp(t,n,e){let i=Mn(t);return(e&&n!=="right"||!e&&n==="right")&&(i=yp(i)),i}function Ip(t,n,e,i){let{top:o,left:s,bottom:a,right:r,chart:l}=t,{chartArea:c,scales:d}=l,p=0,u,h,m,b=a-o,y=r-s;if(t.isHorizontal()){if(h=$e(i,s,r),J(e)){let C=Object.keys(e)[0],x=e[C];m=d[C].getPixelForValue(x)+b-n}else e==="center"?m=(c.bottom+c.top)/2+b-n:m=_r(t,e,n);u=r-s}else{if(J(e)){let C=Object.keys(e)[0],x=e[C];h=d[C].getPixelForValue(x)-y+n}else e==="center"?h=(c.left+c.right)/2-y+n:h=_r(t,e,n);m=$e(i,a,o),p=e==="left"?-Ie:Ie}return{titleX:h,titleY:m,maxWidth:u,rotation:p}}var ci=class t extends mt{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.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(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:i,_suggestedMax:o}=this;return n=Xe(n,Number.POSITIVE_INFINITY),e=Xe(e,Number.NEGATIVE_INFINITY),i=Xe(i,Number.POSITIVE_INFINITY),o=Xe(o,Number.NEGATIVE_INFINITY),{min:Xe(n,i),max:Xe(e,o),minDefined:ve(n),maxDefined:ve(e)}}getMinMax(n){let{min:e,max:i,minDefined:o,maxDefined:s}=this.getUserBounds(),a;if(o&&s)return{min:e,max:i};let r=this.getMatchingVisibleMetas();for(let l=0,c=r.length;l<c;++l)a=r[l].controller.getMinMax(this,n),o||(e=Math.min(e,a.min)),s||(i=Math.max(i,a.max));return e=s&&e>i?i:e,i=o&&e>i?e:i,{min:Xe(e,Xe(i,e)),max:Xe(i,Xe(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ce(this.options.beforeUpdate,[this])}update(n,e,i){let{beginAtZero:o,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ja(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=r<this.ticks.length;this._convertTicksToLabels(l?yr(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=hp(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let n=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,n=!n),this._startPixel=e,this._endPixel=i,this._reversePixels=n,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ce(this.options.afterUpdate,[this])}beforeSetDimensions(){ce(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(){ce(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),ce(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ce(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){let e=this.options.ticks,i,o,s;for(i=0,o=n.length;i<o;i++)s=n[i],s.label=ce(e.callback,[s.value,i,n],this)}afterTickToLabelConversion(){ce(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ce(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let n=this.options,e=n.ticks,i=br(this.ticks.length,n.ticks.maxTicksLimit),o=e.minRotation||0,s=e.maxRotation,a=o,r,l,c;if(!this._isVisible()||!e.display||o>=s||i<=1||!this.isHorizontal()){this.labelRotation=o;return}let d=this._getLabelSizes(),p=d.widest.width,u=d.highest.height,h=Ae(this.chart.width-p,0,this.maxWidth);r=n.offset?this.maxWidth/i:h/(i-1),p+6>r&&(r=h/(i-(n.offset?.5:1)),l=this.maxHeight-qi(n.grid)-e.padding-vr(n.title,this.chart.options.font),c=Math.sqrt(p*p+u*u),a=Sn(Math.min(Math.asin(Ae((d.highest.height+6)/r,-1,1)),Math.asin(Ae(l/c,-1,1))-Math.asin(Ae(u/c,-1,1)))),a=Math.max(o,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){ce(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ce(this.options.beforeFit,[this])}fit(){let n={width:0,height:0},{chart:e,options:{ticks:i,title:o,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){let l=vr(o,e.options.font);if(r?(n.width=this.maxWidth,n.height=qi(s)+l):(n.height=this.maxHeight,n.width=qi(s)+l),i.display&&this.ticks.length){let{first:c,last:d,widest:p,highest:u}=this._getLabelSizes(),h=i.padding*2,m=at(this.labelRotation),b=Math.cos(m),y=Math.sin(m);if(r){let C=i.mirror?0:y*p.width+b*u.height;n.height=Math.min(this.maxHeight,n.height+C+h)}else{let C=i.mirror?0:b*p.width+y*u.height;n.width=Math.min(this.maxWidth,n.width+C+h)}this._calculatePadding(c,d,y,b)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,o){let{ticks:{align:s,padding:a},position:r}=this.options,l=this.labelRotation!==0,c=r!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1),u=0,h=0;l?c?(u=o*n.width,h=i*e.height):(u=i*n.height,h=o*e.width):s==="start"?h=e.width:s==="end"?u=n.width:s!=="inner"&&(u=n.width/2,h=e.width/2),this.paddingLeft=Math.max((u-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-p+a)*this.width/(this.width-p),0)}else{let d=e.height/2,p=n.height/2;s==="start"?(d=0,p=n.height):s==="end"&&(d=e.height,p=0),this.paddingTop=d+a,this.paddingBottom=p+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(){ce(this.options.afterFit,[this])}isHorizontal(){let{axis:n,position:e}=this.options;return e==="top"||e==="bottom"||n==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){this.beforeTickToLabelConversion(),this.generateTickLabels(n);let e,i;for(e=0,i=n.length;e<i;e++)oe(n[e].label)&&(n.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=yr(i,e)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,e,i){let{ctx:o,_longestTextCache:s}=this,a=[],r=[],l=Math.floor(e/br(e,i)),c=0,d=0,p,u,h,m,b,y,C,x,k,O,I;for(p=0;p<e;p+=l){if(m=n[p].label,b=this._resolveTickFontOptions(p),o.font=y=b.string,C=s[y]=s[y]||{data:{},gc:[]},x=b.lineHeight,k=O=0,!oe(m)&&!ue(m))k=Bi(o,C.data,C.gc,k,m),O=x;else if(ue(m))for(u=0,h=m.length;u<h;++u)I=m[u],!oe(I)&&!ue(I)&&(k=Bi(o,C.data,C.gc,k,I),O+=x);a.push(k),r.push(O),c=Math.max(k,c),d=Math.max(O,d)}xp(s,e);let M=a.indexOf(c),V=r.indexOf(d),P=R=>({width:a[R]||0,height:r[R]||0});return{first:P(0),last:P(e-1),widest:P(M),highest:P(V),widths:a,heights:r}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){let e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);let e=this._startPixel+n*this._length;return Aa(this._alignToPixels?Nt(this.chart,e,0):e)}getDecimalForPixel(n){let e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){let e=this.ticks||[];if(n>=0&&n<e.length){let i=e[n];return i.$context||(i.$context=wp(this.getContext(),n,i))}return this.$context||(this.$context=Cp(this.chart.getContext(),this))}_tickSize(){let n=this.options.ticks,e=at(this.labelRotation),i=Math.abs(Math.cos(e)),o=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=n.autoSkipPadding||0,r=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*i>r*o?r/i:l/o:l*o<r*i?l/i:r/o}_isVisible(){let n=this.options.display;return n!=="auto"?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){let e=this.axis,i=this.chart,o=this.options,{grid:s,position:a,border:r}=o,l=s.offset,c=this.isHorizontal(),p=this.ticks.length+(l?1:0),u=qi(s),h=[],m=r.setContext(this.getContext()),b=m.display?m.width:0,y=b/2,C=function(_e){return Nt(i,_e,b)},x,k,O,I,M,V,P,R,q,Q,ee,Ve;if(a==="top")x=C(this.bottom),V=this.bottom-u,R=x-y,Q=C(n.top)+y,Ve=n.bottom;else if(a==="bottom")x=C(this.top),Q=n.top,Ve=C(n.bottom)-y,V=x+y,R=this.top+u;else if(a==="left")x=C(this.right),M=this.right-u,P=x-y,q=C(n.left)+y,ee=n.right;else if(a==="right")x=C(this.left),q=n.left,ee=C(n.right)-y,M=x+y,P=this.left+u;else if(e==="x"){if(a==="center")x=C((n.top+n.bottom)/2+.5);else if(J(a)){let _e=Object.keys(a)[0],Se=a[_e];x=C(this.chart.scales[_e].getPixelForValue(Se))}Q=n.top,Ve=n.bottom,V=x+y,R=V+u}else if(e==="y"){if(a==="center")x=C((n.left+n.right)/2);else if(J(a)){let _e=Object.keys(a)[0],Se=a[_e];x=C(this.chart.scales[_e].getPixelForValue(Se))}M=x-y,P=M-u,q=n.left,ee=n.right}let Je=W(o.ticks.maxTicksLimit,p),re=Math.max(1,Math.ceil(p/Je));for(k=0;k<p;k+=re){let _e=this.getContext(k),Se=s.setContext(_e),rt=r.setContext(_e),Ne=Se.lineWidth,di=Se.color,on=rt.dash||[],pi=rt.dashOffset,Di=Se.tickWidth,qt=Se.tickColor,Ai=Se.tickBorderDash||[],Yt=Se.tickBorderDashOffset;O=vp(this,k,l),O!==void 0&&(I=Nt(i,O,Ne),c?M=P=q=ee=I:V=R=Q=Ve=I,h.push({tx1:M,ty1:V,tx2:P,ty2:R,x1:q,y1:Q,x2:ee,y2:Ve,width:Ne,color:di,borderDash:on,borderDashOffset:pi,tickWidth:Di,tickColor:qt,tickBorderDash:Ai,tickBorderDashOffset:Yt}))}return this._ticksLength=p,this._borderValue=x,h}_computeLabelItems(n){let e=this.axis,i=this.options,{position:o,ticks:s}=i,a=this.isHorizontal(),r=this.ticks,{align:l,crossAlign:c,padding:d,mirror:p}=s,u=qi(i.grid),h=u+d,m=p?-d:h,b=-at(this.labelRotation),y=[],C,x,k,O,I,M,V,P,R,q,Q,ee,Ve="middle";if(o==="top")M=this.bottom-m,V=this._getXAxisLabelAlignment();else if(o==="bottom")M=this.top+m,V=this._getXAxisLabelAlignment();else if(o==="left"){let re=this._getYAxisLabelAlignment(u);V=re.textAlign,I=re.x}else if(o==="right"){let re=this._getYAxisLabelAlignment(u);V=re.textAlign,I=re.x}else if(e==="x"){if(o==="center")M=(n.top+n.bottom)/2+h;else if(J(o)){let re=Object.keys(o)[0],_e=o[re];M=this.chart.scales[re].getPixelForValue(_e)+h}V=this._getXAxisLabelAlignment()}else if(e==="y"){if(o==="center")I=(n.left+n.right)/2-h;else if(J(o)){let re=Object.keys(o)[0],_e=o[re];I=this.chart.scales[re].getPixelForValue(_e)}V=this._getYAxisLabelAlignment(u).textAlign}e==="y"&&(l==="start"?Ve="top":l==="end"&&(Ve="bottom"));let Je=this._getLabelSizes();for(C=0,x=r.length;C<x;++C){k=r[C],O=k.label;let re=s.setContext(this.getContext(C));P=this.getPixelForTick(C)+s.labelOffset,R=this._resolveTickFontOptions(C),q=R.lineHeight,Q=ue(O)?O.length:1;let _e=Q/2,Se=re.color,rt=re.textStrokeColor,Ne=re.textStrokeWidth,di=V;a?(I=P,V==="inner"&&(C===x-1?di=this.options.reverse?"left":"right":C===0?di=this.options.reverse?"right":"left":di="center"),o==="top"?c==="near"||b!==0?ee=-Q*q+q/2:c==="center"?ee=-Je.highest.height/2-_e*q+q:ee=-Je.highest.height+q/2:c==="near"||b!==0?ee=q/2:c==="center"?ee=Je.highest.height/2-_e*q:ee=Je.highest.height-Q*q,p&&(ee*=-1),b!==0&&!re.showLabelBackdrop&&(I+=q/2*Math.sin(b))):(M=P,ee=(1-Q)*q/2);let on;if(re.showLabelBackdrop){let pi=Be(re.backdropPadding),Di=Je.heights[C],qt=Je.widths[C],Ai=ee-pi.top,Yt=0-pi.left;switch(Ve){case"middle":Ai-=Di/2;break;case"bottom":Ai-=Di;break}switch(V){case"center":Yt-=qt/2;break;case"right":Yt-=qt;break;case"inner":C===x-1?Yt-=qt:C>0&&(Yt-=qt/2);break}on={left:Yt,top:Ai,width:qt+pi.width,height:Di+pi.height,color:re.backdropColor}}y.push({label:O,font:R,textOffset:ee,options:{rotation:b,color:Se,strokeColor:rt,strokeWidth:Ne,textAlign:di,textBaseline:Ve,translation:[I,M],backdrop:on}})}return y}_getXAxisLabelAlignment(){let{position:n,ticks:e}=this.options;if(-at(this.labelRotation))return n==="top"?"left":"right";let o="center";return e.align==="start"?o="left":e.align==="end"?o="right":e.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(n){let{position:e,ticks:{crossAlign:i,mirror:o,padding:s}}=this.options,a=this._getLabelSizes(),r=n+s,l=a.widest.width,c,d;return e==="left"?o?(d=this.right+s,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-r,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d=this.left)):e==="right"?o?(d=this.left+s,i==="near"?c="right":i==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+r,i==="near"?c="left":i==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let n=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:n.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:n.width}}drawBackground(){let{ctx:n,options:{backgroundColor:e},left:i,top:o,width:s,height:a}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,o,s,a),n.restore())}getLineWidthForValue(n){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let o=this.ticks.findIndex(s=>s.value===n);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(n){let e=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n)),s,a,r=(l,c,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,a=o.length;s<a;++s){let l=o[s];e.drawOnChartArea&&r({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&r({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){let{chart:n,ctx:e,options:{border:i,grid:o}}=this,s=i.setContext(this.getContext()),a=i.display?s.width:0;if(!a)return;let r=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue,c,d,p,u;this.isHorizontal()?(c=Nt(n,this.left,a)-a/2,d=Nt(n,this.right,r)+r/2,p=u=l):(p=Nt(n,this.top,a)-a/2,u=Nt(n,this.bottom,r)+r/2,c=d=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,p),e.lineTo(d,u),e.stroke(),e.restore()}drawLabels(n){if(!this.options.ticks.display)return;let i=this.ctx,o=this._computeLabelArea();o&&ji(i,o);let s=this.getLabelItems(n);for(let a of s){let r=a.options,l=a.font,c=a.label,d=a.textOffset;jt(i,c,0,d,l,r)}o&&Ui(i)}drawTitle(){let{ctx:n,options:{position:e,title:i,reverse:o}}=this;if(!i.display)return;let s=Fe(i.font),a=Be(i.padding),r=i.align,l=s.lineHeight/2;e==="bottom"||e==="center"||J(e)?(l+=a.bottom,ue(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=a.top;let{titleX:c,titleY:d,maxWidth:p,rotation:u}=Ip(this,l,e,r);jt(n,i.text,0,0,s,{color:i.color,maxWidth:p,rotation:u,textAlign:Tp(r,e,o),textBaseline:"middle",translation:[c,d]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){let n=this.options,e=n.ticks&&n.ticks.z||0,i=W(n.grid&&n.grid.z,-1),o=W(n.border&&n.border.z,0);return!this._isVisible()||this.draw!==t.prototype.draw?[{z:e,draw:s=>{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(n){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[],s,a;for(s=0,a=e.length;s<a;++s){let r=e[s];r[i]===this.id&&(!n||r.type===n)&&o.push(r)}return o}_resolveTickFontOptions(n){let e=this.options.ticks.setContext(this.getContext(n));return Fe(e.font)}_maxDigits(){let n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}},Oi=class{constructor(n,e,i){this.type=n,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){let e=Object.getPrototypeOf(n),i;Mp(e)&&(i=this.register(e));let o=this.items,s=n.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+n);return s in o||(o[s]=n,Sp(n,a,i),this.override&&xe.override(n.id,n.overrides)),a}get(n){return this.items[n]}unregister(n){let e=this.items,i=n.id,o=this.scope;i in e&&delete e[i],o&&i in xe[o]&&(delete xe[o][i],this.override&&delete Ht[i])}};function Sp(t,n,e){let i=yi(Object.create(null),[e?xe.get(e):{},xe.get(n),t.defaults]);xe.set(n,i),t.defaultRoutes&&kp(n,t.defaultRoutes),t.descriptors&&xe.describe(n,t.descriptors)}function kp(t,n){Object.keys(n).forEach(e=>{let i=e.split("."),o=i.pop(),s=[t].concat(i).join("."),a=n[e].split("."),r=a.pop(),l=a.join(".");xe.route(s,o,l,r)})}function Mp(t){return"id"in t&&"defaults"in t}var rs=class{constructor(){this.controllers=new Oi(Kt,"datasets",!0),this.elements=new Oi(mt,"elements"),this.plugins=new Oi(Object,"plugins"),this.scales=new Oi(ci,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(o=>{let s=i||this._getRegistryForType(o);i||s.isForType(o)||s===this.plugins&&o.id?this._exec(n,s,o):ae(o,a=>{let r=i||this._getRegistryForType(a);this._exec(n,r,a)})})}_exec(n,e,i){let o=In(n);ce(i["before"+o],[],i),e[n](i),ce(i["after"+o],[],i)}_getRegistryForType(n){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(n))return i}return this.plugins}_get(n,e,i){let o=e.get(n);if(o===void 0)throw new Error('"'+n+'" is not a registered '+i+".");return o}},Tt=new rs,ls=class{constructor(){this._init=[]}notify(n,e,i,o){e==="beforeInit"&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));let s=o?this._descriptors(n).filter(o):this._descriptors(n),a=this._notify(s,n,e,i);return e==="afterDestroy"&&(this._notify(s,n,"stop"),this._notify(this._init,n,"uninstall")),a}_notify(n,e,i,o){o=o||{};for(let s of n){let a=s.plugin,r=a[i],l=[e,o,s.options];if(ce(r,l,a)===!1&&o.cancelable)return!1}return!0}invalidate(){oe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),e}_createDescriptors(n,e){let i=n&&n.config,o=W(i.options&&i.options.plugins,{}),s=Op(i);return o===!1&&!e?[]:Dp(n,s,o,e)}_notifyStateChanges(n){let e=this._oldCache||[],i=this._cache,o=(s,a)=>s.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(o(e,i),n,"stop"),this._notify(o(i,e),n,"start")}};function Op(t){let n={},e=[],i=Object.keys(Tt.plugins.items);for(let s=0;s<i.length;s++)e.push(Tt.getPlugin(i[s]));let o=t.plugins||[];for(let s=0;s<o.length;s++){let a=o[s];e.indexOf(a)===-1&&(e.push(a),n[a.id]=!0)}return{plugins:e,localIds:n}}function Fp(t,n){return!n&&t===!1?null:t===!0?{}:t}function Dp(t,{plugins:n,localIds:e},i,o){let s=[],a=t.getContext();for(let r of n){let l=r.id,c=Fp(i[l],o);c!==null&&s.push({plugin:r,options:Ap(t.config,{plugin:r,local:e[l]},c,a)})}return s}function Ap(t,{plugin:n,local:e},i,o){let s=t.pluginScopeKeys(n),a=t.getOptionScopes(i,s);return e&&n.defaults&&a.push(n.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function cs(t,n){let e=xe.datasets[t]||{};return((n.datasets||{})[t]||{}).indexAxis||n.indexAxis||e.indexAxis||"x"}function Ep(t,n){let e=t;return t==="_index_"?e=n:t==="_value_"&&(e=n==="x"?"y":"x"),e}function Pp(t,n){return t===n?"_index_":"_value_"}function xr(t){if(t==="x"||t==="y"||t==="r")return t}function Lp(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ds(t,...n){if(xr(t))return t;for(let e of n){let i=e.axis||Lp(e.position)||t.length>1&&xr(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Cr(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}function Vp(t,n){if(n.data&&n.data.datasets){let e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return Cr(t,"x",e[0])||Cr(t,"y",e[0])}return{}}function zp(t,n){let e=Ht[t.type]||{scales:{}},i=n.scales||{},o=cs(t.type,n),s=Object.create(null);return Object.keys(i).forEach(a=>{let r=i[a];if(!J(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);let l=ds(a,r,Vp(a,t),xe.scales[r.type]),c=Pp(l,o),d=e.scales||{};s[a]=xi(Object.create(null),[{axis:l},r,d[l],d[c]])}),t.data.datasets.forEach(a=>{let r=a.type||t.type,l=a.indexAxis||cs(r,n),d=(Ht[r]||{}).scales||{};Object.keys(d).forEach(p=>{let u=Ep(p,l),h=a[u+"AxisID"]||u;s[h]=s[h]||Object.create(null),xi(s[h],[{axis:u},i[h],d[p]])})}),Object.keys(s).forEach(a=>{let r=s[a];xi(r,[xe.scales[r.type],xe.scale])}),s}function cl(t){let n=t.options||(t.options={});n.plugins=W(n.plugins,{}),n.scales=zp(t,n)}function dl(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Rp(t){return t=t||{},t.data=dl(t.data),cl(t),t}var wr=new Map,pl=new Set;function Rn(t,n){let e=wr.get(t);return e||(e=n(),wr.set(t,e),pl.add(e)),e}var Yi=(t,n,e)=>{let i=At(n,e);i!==void 0&&t.add(i)},ps=class{constructor(n){this._config=Rp(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=dl(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){let n=this._config;this.clearCache(),cl(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Rn(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Rn(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Rn(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){let e=n.id,i=this.type;return Rn(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){let i=this._scopeCache,o=i.get(n);return(!o||e)&&(o=new Map,i.set(n,o)),o}getOptionScopes(n,e,i){let{options:o,type:s}=this,a=this._cachedScopes(n,i),r=a.get(e);if(r)return r;let l=new Set;e.forEach(d=>{n&&(l.add(n),d.forEach(p=>Yi(l,n,p))),d.forEach(p=>Yi(l,o,p)),d.forEach(p=>Yi(l,Ht[s]||{},p)),d.forEach(p=>Yi(l,xe,p)),d.forEach(p=>Yi(l,On,p))});let c=Array.from(l);return c.length===0&&c.push(Object.create(null)),pl.has(e)&&a.set(e,c),c}chartOptionScopes(){let{options:n,type:e}=this;return[n,Ht[e]||{},xe.datasets[e]||{},{type:e},xe,On]}resolveNamedOptions(n,e,i,o=[""]){let s={$shared:!0},{resolver:a,subPrefixes:r}=Tr(this._resolverCache,n,o),l=a;if(Bp(a,e)){s.$shared=!1,i=Ft(i)?i():i;let c=this.createResolver(n,i,r);l=oi(a,i,c)}for(let c of e)s[c]=l[c];return s}createResolver(n,e,i=[""],o){let{resolver:s}=Tr(this._resolverCache,n,i);return J(e)?oi(s,e,void 0,o):s}};function Tr(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));let o=e.join(),s=i.get(o);return s||(s={resolver:An(n,e),subPrefixes:e.filter(r=>!r.toLowerCase().includes("hover"))},i.set(o,s)),s}var $p=t=>J(t)&&Object.getOwnPropertyNames(t).some(n=>Ft(t[n]));function Bp(t,n){let{isScriptable:e,isIndexable:i}=zo(t);for(let o of n){let s=e(o),a=i(o),r=(a||s)&&t[o];if(s&&(Ft(r)||$p(r))||a&&ue(r))return!0}return!1}var Hp="4.4.2",Np=["top","bottom","left","right","chartArea"];function Ir(t,n){return t==="top"||t==="bottom"||Np.indexOf(t)===-1&&n==="x"}function Sr(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function kr(t){let n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),ce(e&&e.onComplete,[t],n)}function jp(t){let n=t.chart,e=n.options.animation;ce(e&&e.onProgress,[t],n)}function ul(t){return En()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var Un={},Mr=t=>{let n=ul(t);return Object.values(Un).filter(e=>e.canvas===n).pop()};function Up(t,n,e){let i=Object.keys(t);for(let o of i){let s=+o;if(s>=n){let a=t[o];delete t[o],(e>0||s>n)&&(t[s+e]=a)}}}function Wp(t,n,e,i){return!e||t.type==="mouseout"?null:i?n:t}function $n(t,n,e){return t.options.clip?t[e]:n[e]}function Qp(t,n){let{xScale:e,yScale:i}=t;return e&&i?{left:$n(e,n,"left"),right:$n(e,n,"right"),top:$n(i,n,"top"),bottom:$n(i,n,"bottom")}:n}var Gn=(()=>{class t{static defaults=xe;static instances=Un;static overrides=Ht;static registry=Tt;static version=Hp;static getChart=Mr;static register(...e){Tt.add(...e),Or()}static unregister(...e){Tt.remove(...e),Or()}constructor(e,i){let o=this.config=new ps(i),s=ul(e),a=Mr(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let r=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||up(s)),this.platform.updateConfig(o);let l=this.platform.acquireContext(s,r.aspectRatio),c=l&&l.canvas,d=c&&c.height,p=c&&c.width;if(this.id=Sa(),this.ctx=l,this.canvas=c,this.width=p,this.height=d,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ls,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=za(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Un[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Pt.listen(this,"complete",kr),Pt.listen(this,"progress",jp),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:i},width:o,height:s,_aspectRatio:a}=this;return oe(e)?i&&a?a:s?o/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Tt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ho(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Po(this.canvas,this.ctx),this}stop(){return Pt.stop(this),this}resize(e,i){Pt.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){let o=this.options,s=this.canvas,a=o.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,e,i,a),l=o.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Ho(this,l,!0)&&(this.notifyPlugins("resize",{size:r}),ce(o.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};ae(i,(o,s)=>{o.id=s})}buildOrUpdateScales(){let e=this.options,i=e.scales,o=this.scales,s=Object.keys(o).reduce((r,l)=>(r[l]=!1,r),{}),a=[];i&&(a=a.concat(Object.keys(i).map(r=>{let l=i[r],c=ds(r,l),d=c==="r",p=c==="x";return{options:l,dposition:d?"chartArea":p?"bottom":"left",dtype:d?"radialLinear":p?"category":"linear"}}))),ae(a,r=>{let l=r.options,c=l.id,d=ds(c,l),p=W(l.type,r.dtype);(l.position===void 0||Ir(l.position,d)!==Ir(r.dposition))&&(l.position=r.dposition),s[c]=!0;let u=null;if(c in o&&o[c].type===p)u=o[c];else{let h=Tt.getScale(p);u=new h({id:c,type:p,ctx:this.ctx,chart:this}),o[u.id]=u}u.init(l,e)}),ae(s,(r,l)=>{r||delete o[l]}),ae(o,r=>{We.configure(this,r,r.options),We.addBox(this,r)})}_updateMetasets(){let e=this._metasets,i=this.data.datasets.length,o=e.length;if(e.sort((s,a)=>s.index-a.index),o>i){for(let s=i;s<o;++s)this._destroyDatasetMeta(s);e.splice(i,o-i)}this._sortedMetasets=e.slice(0).sort(Sr("order","index"))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:i}}=this;e.length>i.length&&delete this._stacks,e.forEach((o,s)=>{i.filter(a=>a===o._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let e=[],i=this.data.datasets,o,s;for(this._removeUnreferencedMetasets(),o=0,s=i.length;o<s;o++){let a=i[o],r=this.getDatasetMeta(o),l=a.type||this.config.type;if(r.type&&r.type!==l&&(this._destroyDatasetMeta(o),r=this.getDatasetMeta(o)),r.type=l,r.indexAxis=a.indexAxis||cs(l,this.options),r.order=a.order||0,r.index=o,r.label=""+a.label,r.visible=this.isDatasetVisible(o),r.controller)r.controller.updateIndex(o),r.controller.linkScales();else{let c=Tt.getController(l),{datasetElementType:d,dataElementType:p}=xe.datasets[l];Object.assign(c,{dataElementType:Tt.getElement(p),datasetElementType:d&&Tt.getElement(d)}),r.controller=new c(this,o),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){ae(this.data.datasets,(e,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){let i=this.config;i.update();let o=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let d=0,p=this.data.datasets.length;d<p;d++){let{controller:u}=this.getDatasetMeta(d),h=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=o.layout.autoPadding?r:0,this._updateLayout(r),s||ae(a,d=>{d.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Sr("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){ae(this.scales,e=>{We.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options,i=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!xo(i,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(let{method:o,start:s,count:a}of i){let r=o==="_removeElements"?-a:a;Up(e,s,r)}}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let i=this.data.datasets.length,o=a=>new Set(e.filter(r=>r[0]===a).map((r,l)=>l+","+r.splice(1).join(","))),s=o(0);for(let a=1;a<i;a++)if(!xo(s,o(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;We.update(this,this.width,this.height,e);let i=this.chartArea,o=i.width<=0||i.height<=0;this._layers=[],ae(this.boxes,s=>{o&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,o=this.data.datasets.length;i<o;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,o=this.data.datasets.length;i<o;++i)this._updateDataset(i,Ft(e)?e({datasetIndex:i}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,i){let o=this.getDatasetMeta(e),s={meta:o,index:e,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(o.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Pt.has(this)?this.attached&&!Pt.running(this)&&Pt.start(this):(this.draw(),kr({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:o,height:s}=this._resizeBeforeDraw;this._resize(o,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){let i=this._sortedMetasets,o=[],s,a;for(s=0,a=i.length;s<a;++s){let r=i[s];(!e||r.visible)&&o.push(r)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){let i=this.ctx,o=e._clip,s=!o.disabled,a=Qp(e,this.chartArea),r={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&ji(i,{left:o.left===!1?0:a.left-o.left,right:o.right===!1?this.width:a.right+o.right,top:o.top===!1?0:a.top-o.top,bottom:o.bottom===!1?this.height:a.bottom+o.bottom}),e.controller.draw(),s&&Ui(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return vt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,o,s){let a=Kd.modes[i];return typeof a=="function"?a(this,e,o,s):[]}getDatasetMeta(e){let i=this.data.datasets[e],o=this._metasets,s=o.filter(a=>a&&a._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},o.push(s)),s}getContext(){return this.$context||(this.$context=Et(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let i=this.data.datasets[e];if(!i)return!1;let o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!i.hidden}setDatasetVisibility(e,i){let o=this.getDatasetMeta(e);o.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,o){let s=o?"show":"hide",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,s);Ci(i)?(a.data[i].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),r.update(a,{visible:o}),this.update(l=>l.datasetIndex===e?s:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){let i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Pt.remove(this),e=0,i=this.data.datasets.length;e<i;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:e,ctx:i}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Po(e,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Un[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,i=this.platform,o=(a,r)=>{i.addEventListener(this,a,r),e[a]=r},s=(a,r,l)=>{a.offsetX=r,a.offsetY=l,this._eventHandler(a)};ae(this.options.events,a=>o(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,o=(c,d)=>{i.addEventListener(this,c,d),e[c]=d},s=(c,d)=>{e[c]&&(i.removeEventListener(this,c,d),delete e[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},r,l=()=>{s("attach",l),this.attached=!0,this.resize(),o("resize",a),o("detach",r)};r=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),o("attach",l)},i.isAttached(this.canvas)?l():r()}unbindEvents(){ae(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},ae(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,o){let s=o?"set":"remove",a,r,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){r=e[l];let d=r&&this.getDatasetMeta(r.datasetIndex).controller;d&&d[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let i=this._active||[],o=e.map(({datasetIndex:a,index:r})=>{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[r],index:r}});!Hi(o,i)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,i))}notifyPlugins(e,i,o){return this._plugins.notify(this,e,i,o)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,o){let s=this.options.hover,a=(c,d)=>c.filter(p=>!d.some(u=>p.datasetIndex===u.datasetIndex&&p.index===u.index)),r=a(i,e),l=o?e:a(e,i);r.length&&this.updateHoverStyle(r,s.mode,!1),l.length&&s.mode&&this.updateHoverStyle(l,s.mode,!0)}_eventHandler(e,i){let o={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},s=r=>(r.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,s)===!1)return;let a=this._handleEvent(e,i,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,s),(a||o.changed)&&this.render(),this}_handleEvent(e,i,o){let{_active:s=[],options:a}=this,r=i,l=this._getActiveElements(e,s,o,r),c=Oa(e),d=Wp(e,this._lastEvent,o,c);o&&(this._lastEvent=null,ce(a.onHover,[e,l,this],this),c&&ce(a.onClick,[e,l,this],this));let p=!Hi(l,s);return(p||i)&&(this._active=l,this._updateHoverStyles(l,s,i)),this._lastEvent=d,p}_getActiveElements(e,i,o,s){if(e.type==="mouseout")return[];if(!o)return i;let a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}}return t})();function Or(){return ae(Gn.instances,t=>t._plugins.invalidate())}function Kp(t,n,e){let{startAngle:i,pixelMargin:o,x:s,y:a,outerRadius:r,innerRadius:l}=n,c=o/r;t.beginPath(),t.arc(s,a,r,i-c,e+c),l>o?(c=o/l,t.arc(s,a,l,e+c,i-c,!0)):t.arc(s,a,o,e+Ie,i-Ie),t.closePath(),t.clip()}function qp(t){return Dn(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Yp(t,n,e,i){let o=qp(t.options.borderRadius),s=(e-n)/2,a=Math.min(s,i*n/2),r=l=>{let c=(e-Math.min(s,l))*i/2;return Ae(l,0,Math.min(s,c))};return{outerStart:r(o.outerStart),outerEnd:r(o.outerEnd),innerStart:Ae(o.innerStart,0,a),innerEnd:Ae(o.innerEnd,0,a)}}function Mi(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function qn(t,n,e,i,o,s){let{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=n,p=Math.max(n.outerRadius+i+e-c,0),u=d>0?d+i+e+c:0,h=0,m=o-l;if(i){let re=d>0?d-i:0,_e=p>0?p-i:0,Se=(re+_e)/2,rt=Se!==0?m*Se/(Se+i):m;h=(m-rt)/2}let b=Math.max(.001,m*p-e/he)/p,y=(m-b)/2,C=l+y+h,x=o-y-h,{outerStart:k,outerEnd:O,innerStart:I,innerEnd:M}=Yp(n,u,p,x-C),V=p-k,P=p-O,R=C+k/V,q=x-O/P,Q=u+I,ee=u+M,Ve=C+I/Q,Je=x-M/ee;if(t.beginPath(),s){let re=(R+q)/2;if(t.arc(a,r,p,R,re),t.arc(a,r,p,re,q),O>0){let Ne=Mi(P,q,a,r);t.arc(Ne.x,Ne.y,O,q,x+Ie)}let _e=Mi(ee,x,a,r);if(t.lineTo(_e.x,_e.y),M>0){let Ne=Mi(ee,Je,a,r);t.arc(Ne.x,Ne.y,M,x+Ie,Je+Math.PI)}let Se=(x-M/u+(C+I/u))/2;if(t.arc(a,r,u,x-M/u,Se,!0),t.arc(a,r,u,Se,C+I/u,!0),I>0){let Ne=Mi(Q,Ve,a,r);t.arc(Ne.x,Ne.y,I,Ve+Math.PI,C-Ie)}let rt=Mi(V,C,a,r);if(t.lineTo(rt.x,rt.y),k>0){let Ne=Mi(V,R,a,r);t.arc(Ne.x,Ne.y,k,C-Ie,R)}}else{t.moveTo(a,r);let re=Math.cos(R)*p+a,_e=Math.sin(R)*p+r;t.lineTo(re,_e);let Se=Math.cos(q)*p+a,rt=Math.sin(q)*p+r;t.lineTo(Se,rt)}t.closePath()}function Xp(t,n,e,i,o){let{fullCircles:s,startAngle:a,circumference:r}=n,l=n.endAngle;if(s){qn(t,n,e,i,l,o);for(let c=0;c<s;++c)t.fill();isNaN(r)||(l=a+(r%fe||fe))}return qn(t,n,e,i,l,o),t.fill(),l}function Gp(t,n,e,i,o){let{fullCircles:s,startAngle:a,circumference:r,options:l}=n,{borderWidth:c,borderJoinStyle:d,borderDash:p,borderDashOffset:u}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(p||[]),t.lineDashOffset=u,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let m=n.endAngle;if(s){qn(t,n,e,i,m,o);for(let b=0;b<s;++b)t.stroke();isNaN(r)||(m=a+(r%fe||fe))}h&&Kp(t,n,m),s||(qn(t,n,e,i,m,o),t.stroke())}var us=class extends mt{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){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,n&&Object.assign(this,n)}inRange(n,e,i){let o=this.getProps(["x","y"],i),{angle:s,distance:a}=Io(o,{x:n,y:e}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:d,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,m=W(p,l-r)>=fe||Ti(s,r,l),b=Ct(a,c+u,d+u);return m&&b}getCenterPoint(n){let{x:e,y:i,startAngle:o,endAngle:s,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:c}=this.options,d=(o+s)/2,p=(a+r+c+l)/2;return{x:e+Math.cos(d)*p,y:i+Math.sin(d)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:e,circumference:i}=this,o=(e.offset||0)/4,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=i>fe?Math.floor(i/fe):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let r=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(r)*o,Math.sin(r)*o);let l=1-Math.sin(Math.min(he,i||0)),c=o*l;n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,Xp(n,this,c,s,a),Gp(n,this,c,s,a),n.restore()}};function hl(t,n,e=n){t.lineCap=W(e.borderCapStyle,n.borderCapStyle),t.setLineDash(W(e.borderDash,n.borderDash)),t.lineDashOffset=W(e.borderDashOffset,n.borderDashOffset),t.lineJoin=W(e.borderJoinStyle,n.borderJoinStyle),t.lineWidth=W(e.borderWidth,n.borderWidth),t.strokeStyle=W(e.borderColor,n.borderColor)}function Zp(t,n,e){t.lineTo(e.x,e.y)}function Jp(t){return t.stepped?Ha:t.tension||t.cubicInterpolationMode==="monotone"?Na:Zp}function fl(t,n,e={}){let i=t.length,{start:o=0,end:s=i-1}=e,{start:a,end:r}=n,l=Math.max(o,a),c=Math.min(s,r),d=o<a&&s<a||o>r&&s>r;return{count:i,start:l,loop:n.loop,ilen:c<l&&!d?i+c-l:c-l}}function eu(t,n,e,i){let{points:o,options:s}=n,{count:a,start:r,loop:l,ilen:c}=fl(o,e,i),d=Jp(s),{move:p=!0,reverse:u}=i||{},h,m,b;for(h=0;h<=c;++h)m=o[(r+(u?c-h:h))%a],!m.skip&&(p?(t.moveTo(m.x,m.y),p=!1):d(t,b,m,u,s.stepped),b=m);return l&&(m=o[(r+(u?c:0))%a],d(t,b,m,u,s.stepped)),!!l}function tu(t,n,e,i){let o=n.points,{count:s,start:a,ilen:r}=fl(o,e,i),{move:l=!0,reverse:c}=i||{},d=0,p=0,u,h,m,b,y,C,x=O=>(a+(c?r-O:O))%s,k=()=>{b!==y&&(t.lineTo(d,y),t.lineTo(d,b),t.lineTo(d,C))};for(l&&(h=o[x(0)],t.moveTo(h.x,h.y)),u=0;u<=r;++u){if(h=o[x(u)],h.skip)continue;let O=h.x,I=h.y,M=O|0;M===m?(I<b?b=I:I>y&&(y=I),d=(p*d+O)/++p):(k(),t.lineTo(O,I),m=M,p=0,b=y=I),C=I}k()}function hs(t){let n=t.options,e=n.borderDash&&n.borderDash.length;return!t._decimated&&!t._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!e?tu:eu}function iu(t){return t.stepped?Ga:t.tension||t.cubicInterpolationMode==="monotone"?Za:Bt}function nu(t,n,e,i){let o=n._path;o||(o=n._path=new Path2D,n.path(o,e,i)&&o.closePath()),hl(t,n.options),t.stroke(o)}function ou(t,n,e,i){let{segments:o,options:s}=n,a=hs(n);for(let r of o)hl(t,s,r.style),t.beginPath(),a(t,n,r,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}var su=typeof Path2D=="function";function au(t,n,e,i){su&&!n.options.segment?nu(t,n,e,i):ou(t,n,e,i)}var Zn=(()=>{class t extends mt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,i){let o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){let s=o.spanGaps?this._loop:this._fullLoop;qa(this._points,o,e,s,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=er(this,this.options.segment))}first(){let e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){let e=this.segments,i=this.points,o=e.length;return o&&i[e[o-1].end]}interpolate(e,i){let o=this.options,s=e[i],a=this.points,r=Qo(this,{property:i,start:s,end:s});if(!r.length)return;let l=[],c=iu(o),d,p;for(d=0,p=r.length;d<p;++d){let{start:u,end:h}=r[d],m=a[u],b=a[h];if(m===b){l.push(m);continue}let y=Math.abs((s-m[i])/(b[i]-m[i])),C=c(m,b,y,o.stepped);C[i]=e[i],l.push(C)}return l.length===1?l[0]:l}pathSegment(e,i,o){return hs(this)(e,this,i,o)}path(e,i,o){let s=this.segments,a=hs(this),r=this._loop;i=i||0,o=o||this.points.length-i;for(let l of s)r&=a(e,this,l,{start:i,end:i+o-1});return!!r}draw(e,i,o,s){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),au(e,this,o,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return t})();function Fr(t,n,e,i){let o=t.options,{[e]:s}=t.getProps([e],i);return Math.abs(n-s)<o.radius+o.hitRadius}var ru=(()=>{class t extends mt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,o){let s=this.options,{x:a,y:r}=this.getProps(["x","y"],o);return Math.pow(e-a,2)+Math.pow(i-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return Fr(this,e,"x",i)}inYRange(e,i){return Fr(this,e,"y",i)}getCenterPoint(e){let{x:i,y:o}=this.getProps(["x","y"],e);return{x:i,y:o}}size(e){e=e||this.options||{};let i=e.radius||0;i=Math.max(i,i&&e.hoverRadius||0);let o=i&&e.borderWidth||0;return(i+o)*2}draw(e,i){let o=this.options;this.skip||o.radius<.1||!vt(this,i,this.size(o)/2)||(e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.fillStyle=o.backgroundColor,Fn(e,o,this.x,this.y))}getRange(){let e=this.options||{};return e.radius+e.hitRadius}}return t})();function ml(t,n){let{x:e,y:i,base:o,width:s,height:a}=t.getProps(["x","y","base","width","height"],n),r,l,c,d,p;return t.horizontal?(p=a/2,r=Math.min(e,o),l=Math.max(e,o),c=i-p,d=i+p):(p=s/2,r=e-p,l=e+p,c=Math.min(i,o),d=Math.max(i,o)),{left:r,top:c,right:l,bottom:d}}function Qt(t,n,e,i){return t?0:Ae(n,e,i)}function lu(t,n,e){let i=t.options.borderWidth,o=t.borderSkipped,s=Vo(i);return{t:Qt(o.top,s.top,0,e),r:Qt(o.right,s.right,0,n),b:Qt(o.bottom,s.bottom,0,e),l:Qt(o.left,s.left,0,n)}}function cu(t,n,e){let{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,s=Ut(o),a=Math.min(n,e),r=t.borderSkipped,l=i||J(o);return{topLeft:Qt(!l||r.top||r.left,s.topLeft,0,a),topRight:Qt(!l||r.top||r.right,s.topRight,0,a),bottomLeft:Qt(!l||r.bottom||r.left,s.bottomLeft,0,a),bottomRight:Qt(!l||r.bottom||r.right,s.bottomRight,0,a)}}function du(t){let n=ml(t),e=n.right-n.left,i=n.bottom-n.top,o=lu(t,e/2,i/2),s=cu(t,e/2,i/2);return{outer:{x:n.left,y:n.top,w:e,h:i,radius:s},inner:{x:n.left+o.l,y:n.top+o.t,w:e-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}function Jo(t,n,e,i){let o=n===null,s=e===null,r=t&&!(o&&s)&&ml(t,i);return r&&(o||Ct(n,r.left,r.right))&&(s||Ct(e,r.top,r.bottom))}function pu(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function uu(t,n){t.rect(n.x,n.y,n.w,n.h)}function es(t,n,e={}){let i=t.x!==e.x?-n:0,o=t.y!==e.y?-n:0,s=(t.x+t.w!==e.x+e.w?n:0)-i,a=(t.y+t.h!==e.y+e.h?n:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+s,h:t.h+a,radius:t.radius}}var fs=class extends mt{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(n){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,n&&Object.assign(this,n)}draw(n){let{inflateAmount:e,options:{borderColor:i,backgroundColor:o}}=this,{inner:s,outer:a}=du(this),r=pu(a.radius)?Si:uu;n.save(),(a.w!==s.w||a.h!==s.h)&&(n.beginPath(),r(n,es(a,e,s)),n.clip(),r(n,es(s,-e,a)),n.fillStyle=i,n.fill("evenodd")),n.beginPath(),r(n,es(s,e)),n.fillStyle=o,n.fill(),n.restore()}inRange(n,e,i){return Jo(this,n,e,i)}inXRange(n,e){return Jo(this,n,null,e)}inYRange(n,e){return Jo(this,null,n,e)}getCenterPoint(n){let{x:e,y:i,base:o,horizontal:s}=this.getProps(["x","y","base","horizontal"],n);return{x:s?(e+o)/2:e,y:s?i:(i+o)/2}}getRange(n){return n==="x"?this.width/2:this.height/2}},hu=Object.freeze({__proto__:null,ArcElement:us,BarElement:fs,LineElement:Zn,PointElement:ru}),ms=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Dr=ms.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function gl(t){return ms[t%ms.length]}function _l(t){return Dr[t%Dr.length]}function fu(t,n){return t.borderColor=gl(n),t.backgroundColor=_l(n),++n}function mu(t,n){return t.backgroundColor=t.data.map(()=>gl(n++)),n}function gu(t,n){return t.backgroundColor=t.data.map(()=>_l(n++)),n}function _u(t){let n=0;return(e,i)=>{let o=t.getDatasetMeta(i).controller;o instanceof ws?n=mu(e,n):o instanceof ol?n=gu(e,n):o&&(n=fu(e,n))}}function Ar(t){let n;for(n in t)if(t[n].borderColor||t[n].backgroundColor)return!0;return!1}function bu(t){return t&&(t.borderColor||t.backgroundColor)}var yu={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,n,e){if(!e.enabled)return;let{data:{datasets:i},options:o}=t.config,{elements:s}=o;if(!e.forceOverride&&(Ar(i)||bu(o)||s&&Ar(s)))return;let a=_u(t);i.forEach(a)}};function vu(t,n,e,i,o){let s=o.samples||i;if(s>=e)return t.slice(n,n+e);let a=[],r=(e-2)/(s-2),l=0,c=n+e-1,d=n,p,u,h,m,b;for(a[l++]=t[d],p=0;p<s-2;p++){let y=0,C=0,x,k=Math.floor((p+1)*r)+1+n,O=Math.min(Math.floor((p+2)*r)+1,e)+n,I=O-k;for(x=k;x<O;x++)y+=t[x].x,C+=t[x].y;y/=I,C/=I;let M=Math.floor(p*r)+1+n,V=Math.min(Math.floor((p+1)*r)+1,e)+n,{x:P,y:R}=t[d];for(h=m=-1,x=M;x<V;x++)m=.5*Math.abs((P-y)*(t[x].y-R)-(P-t[x].x)*(C-R)),m>h&&(h=m,u=t[x],b=x);a[l++]=u,d=b}return a[l++]=t[c],a}function xu(t,n,e,i){let o=0,s=0,a,r,l,c,d,p,u,h,m,b,y=[],C=n+e-1,x=t[n].x,O=t[C].x-x;for(a=n;a<n+e;++a){r=t[a],l=(r.x-x)/O*i,c=r.y;let I=l|0;if(I===d)c<m?(m=c,p=a):c>b&&(b=c,u=a),o=(s*o+r.x)/++s;else{let M=a-1;if(!oe(p)&&!oe(u)){let V=Math.min(p,u),P=Math.max(p,u);V!==h&&V!==M&&y.push(Xt(St({},t[V]),{x:o})),P!==h&&P!==M&&y.push(Xt(St({},t[P]),{x:o}))}a>0&&M!==h&&y.push(t[M]),y.push(r),d=I,s=0,m=b=c,p=u=h=a}}return y}function bl(t){if(t._decimated){let n=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:n})}}function Er(t){t.data.datasets.forEach(n=>{bl(n)})}function Cu(t,n){let e=n.length,i=0,o,{iScale:s}=t,{min:a,max:r,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=Ae(yt(n,s.axis,a).lo,0,e-1)),c?o=Ae(yt(n,s.axis,r).hi+1,i,e)-i:o=e-i,{start:i,count:o}}var wu={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,n,e)=>{if(!e.enabled){Er(t);return}let i=t.width;t.data.datasets.forEach((o,s)=>{let{_data:a,indexAxis:r}=o,l=t.getDatasetMeta(s),c=a||o.data;if(ki([r,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;let d=t.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||t.options.parsing)return;let{start:p,count:u}=Cu(l,c),h=e.threshold||4*i;if(u<=h){bl(o);return}oe(a)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(e.algorithm){case"lttb":m=vu(c,p,u,i,e);break;case"min-max":m=xu(c,p,u,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=m})},destroy(t){Er(t)}};function Tu(t,n,e){let i=t.segments,o=t.points,s=n.points,a=[];for(let r of i){let{start:l,end:c}=r;c=Ts(l,c,o);let d=gs(e,o[l],o[c],r.loop);if(!n.segments){a.push({source:r,target:d,start:o[l],end:o[c]});continue}let p=Qo(n,d);for(let u of p){let h=gs(e,s[u.start],s[u.end],u.loop),m=Wo(r,o,h);for(let b of m)a.push({source:b,target:u,start:{[e]:Pr(d,h,"start",Math.max)},end:{[e]:Pr(d,h,"end",Math.min)}})}}return a}function gs(t,n,e,i){if(i)return;let o=n[t],s=e[t];return t==="angle"&&(o=Ye(o),s=Ye(s)),{property:t,start:o,end:s}}function Iu(t,n){let{x:e=null,y:i=null}=t||{},o=n.points,s=[];return n.segments.forEach(({start:a,end:r})=>{r=Ts(a,r,o);let l=o[a],c=o[r];i!==null?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):e!==null&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}function Ts(t,n,e){for(;n>t;n--){let i=e[n];if(!isNaN(i.x)&&!isNaN(i.y))break}return n}function Pr(t,n,e,i){return t&&n?i(t[e],n[e]):t?t[e]:n?n[e]:0}function yl(t,n){let e=[],i=!1;return ue(t)?(i=!0,e=t):e=Iu(t,n),e.length?new Zn({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function Lr(t){return t&&t.fill!==!1}function Su(t,n,e){let o=t[n].fill,s=[n],a;if(!e)return o;for(;o!==!1&&s.indexOf(o)===-1;){if(!ve(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;s.push(o),o=a.fill}return!1}function ku(t,n,e){let i=Du(t);if(J(i))return isNaN(i.value)?!1:i;let o=parseFloat(i);return ve(o)&&Math.floor(o)===o?Mu(i[0],n,o,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Mu(t,n,e,i){return(t==="-"||t==="+")&&(e=n+e),e===n||e<0||e>=i?!1:e}function Ou(t,n){let e=null;return t==="start"?e=n.bottom:t==="end"?e=n.top:J(t)?e=n.getPixelForValue(t.value):n.getBasePixel&&(e=n.getBasePixel()),e}function Fu(t,n,e){let i;return t==="start"?i=e:t==="end"?i=n.options.reverse?n.min:n.max:J(t)?i=t.value:i=n.getBaseValue(),i}function Du(t){let n=t.options,e=n.fill,i=W(e&&e.target,e);return i===void 0&&(i=!!n.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function Au(t){let{scale:n,index:e,line:i}=t,o=[],s=i.segments,a=i.points,r=Eu(n,e);r.push(yl({x:null,y:n.bottom},i));for(let l=0;l<s.length;l++){let c=s[l];for(let d=c.start;d<=c.end;d++)Pu(o,a[d],r)}return new Zn({points:o,options:{}})}function Eu(t,n){let e=[],i=t.getMatchingVisibleMetas("line");for(let o=0;o<i.length;o++){let s=i[o];if(s.index===n)break;s.hidden||e.unshift(s.dataset)}return e}function Pu(t,n,e){let i=[];for(let o=0;o<e.length;o++){let s=e[o],{first:a,last:r,point:l}=Lu(s,n,"x");if(!(!l||a&&r)){if(a)i.unshift(l);else if(t.push(l),!r)break}}t.push(...i)}function Lu(t,n,e){let i=t.interpolate(n,e);if(!i)return{};let o=i[e],s=t.segments,a=t.points,r=!1,l=!1;for(let c=0;c<s.length;c++){let d=s[c],p=a[d.start][e],u=a[d.end][e];if(Ct(o,p,u)){r=o===p,l=o===u;break}}return{first:r,last:l,point:i}}var Yn=class{constructor(n){this.x=n.x,this.y=n.y,this.radius=n.radius}pathSegment(n,e,i){let{x:o,y:s,radius:a}=this;return e=e||{start:0,end:fe},n.arc(o,s,a,e.end,e.start,!0),!i.bounds}interpolate(n){let{x:e,y:i,radius:o}=this,s=n.angle;return{x:e+Math.cos(s)*o,y:i+Math.sin(s)*o,angle:s}}};function Vu(t){let{chart:n,fill:e,line:i}=t;if(ve(e))return zu(n,e);if(e==="stack")return Au(t);if(e==="shape")return!0;let o=Ru(t);return o instanceof Yn?o:yl(o,i)}function zu(t,n){let e=t.getDatasetMeta(n);return e&&t.isDatasetVisible(n)?e.dataset:null}function Ru(t){return(t.scale||{}).getPointPositionForValue?Bu(t):$u(t)}function $u(t){let{scale:n={},fill:e}=t,i=Ou(e,n);if(ve(i)){let o=n.isHorizontal();return{x:o?i:null,y:o?null:i}}return null}function Bu(t){let{scale:n,fill:e}=t,i=n.options,o=n.getLabels().length,s=i.reverse?n.max:n.min,a=Fu(e,n,s),r=[];if(i.grid.circular){let l=n.getPointPositionForValue(0,s);return new Yn({x:l.x,y:l.y,radius:n.getDistanceFromCenterForValue(a)})}for(let l=0;l<o;++l)r.push(n.getPointPositionForValue(l,a));return r}function ts(t,n,e){let i=Vu(n),{line:o,scale:s,axis:a}=n,r=o.options,l=r.fill,c=r.backgroundColor,{above:d=c,below:p=c}=l||{};i&&o.points.length&&(ji(t,e),Hu(t,{line:o,target:i,above:d,below:p,area:e,scale:s,axis:a}),Ui(t))}function Hu(t,n){let{line:e,target:i,above:o,below:s,area:a,scale:r}=n,l=e._loop?"angle":n.axis;t.save(),l==="x"&&s!==o&&(Vr(t,i,a.top),zr(t,{line:e,target:i,color:o,scale:r,property:l}),t.restore(),t.save(),Vr(t,i,a.bottom)),zr(t,{line:e,target:i,color:s,scale:r,property:l}),t.restore()}function Vr(t,n,e){let{segments:i,points:o}=n,s=!0,a=!1;t.beginPath();for(let r of i){let{start:l,end:c}=r,d=o[l],p=o[Ts(l,c,o)];s?(t.moveTo(d.x,d.y),s=!1):(t.lineTo(d.x,e),t.lineTo(d.x,d.y)),a=!!n.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(p.x,e)}t.lineTo(n.first().x,e),t.closePath(),t.clip()}function zr(t,n){let{line:e,target:i,property:o,color:s,scale:a}=n,r=Tu(e,i,o);for(let{source:l,target:c,start:d,end:p}of r){let{style:{backgroundColor:u=s}={}}=l,h=i!==!0;t.save(),t.fillStyle=u,Nu(t,a,h&&gs(o,d,p)),t.beginPath();let m=!!e.pathSegment(t,l),b;if(h){m?t.closePath():Rr(t,i,p,o);let y=!!i.pathSegment(t,c,{move:m,reverse:!0});b=m&&y,b||Rr(t,i,d,o)}t.closePath(),t.fill(b?"evenodd":"nonzero"),t.restore()}}function Nu(t,n,e){let{top:i,bottom:o}=n.chart.chartArea,{property:s,start:a,end:r}=e||{};s==="x"&&(t.beginPath(),t.rect(a,i,r-a,o-i),t.clip())}function Rr(t,n,e,i){let o=n.interpolate(e,i);o&&t.lineTo(o.x,o.y)}var ju={id:"filler",afterDatasetsUpdate(t,n,e){let i=(t.data.datasets||[]).length,o=[],s,a,r,l;for(a=0;a<i;++a)s=t.getDatasetMeta(a),r=s.dataset,l=null,r&&r.options&&r instanceof Zn&&(l={visible:t.isDatasetVisible(a),index:a,fill:ku(r,a,i),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:r}),s.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],!(!l||l.fill===!1)&&(l.fill=Su(o,a,e.propagate))},beforeDraw(t,n,e){let i=e.drawTime==="beforeDraw",o=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=o.length-1;a>=0;--a){let r=o[a].$filler;r&&(r.line.updateControlPoints(s,r.axis),i&&r.fill&&ts(t.ctx,r,s))}},beforeDatasetsDraw(t,n,e){if(e.drawTime!=="beforeDatasetsDraw")return;let i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){let s=i[o].$filler;Lr(s)&&ts(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,n,e){let i=n.meta.$filler;!Lr(i)||e.drawTime!=="beforeDatasetDraw"||ts(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},$r=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}},Uu=(t,n)=>t!==null&&n!==null&&t.datasetIndex===n.datasetIndex&&t.index===n.index,Xn=class extends mt{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.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(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let n=this.options.labels||{},e=ce(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,o)=>n.sort(i,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let{options:n,ctx:e}=this;if(!n.display){this.width=this.height=0;return}let i=n.labels,o=Fe(i.font),s=o.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=$r(i,s),c,d;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,s,r,l)+10):(d=this.maxHeight,c=this._fitCols(a,o,r,l)+10),this.width=Math.min(c,n.maxWidth||this.maxWidth),this.height=Math.min(d,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,o){let{ctx:s,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+r,p=n;s.textAlign="left",s.textBaseline="middle";let u=-1,h=-d;return this.legendItems.forEach((m,b)=>{let y=i+e/2+s.measureText(m.text).width;(b===0||c[c.length-1]+y+2*r>a)&&(p+=d,c[c.length-(b>0?0:1)]=0,h+=d,u++),l[b]={left:0,top:h,row:u,width:y,height:o},c[c.length-1]+=y+r}),p}_fitCols(n,e,i,o){let{ctx:s,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-n,p=r,u=0,h=0,m=0,b=0;return this.legendItems.forEach((y,C)=>{let{itemWidth:x,itemHeight:k}=Wu(i,e,s,y,o);C>0&&h+k+2*r>d&&(p+=u+r,c.push({width:u,height:h}),m+=u+r,b++,u=h=0),l[C]={left:m,top:h,col:b,width:x,height:k},u=Math.max(u,x),h+=k+r}),p+=u,c.push({width:u,height:h}),p}adjustHitBoxes(){if(!this.options.display)return;let n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:o},rtl:s}}=this,a=ai(s,this.left,this.width);if(this.isHorizontal()){let r=0,l=$e(i,this.left+o,this.right-this.lineWidths[r]);for(let c of e)r!==c.row&&(r=c.row,l=$e(i,this.left+o,this.right-this.lineWidths[r])),c.top+=this.top+n+o,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+o}else{let r=0,l=$e(i,this.top+n+o,this.bottom-this.columnSizes[r].height);for(let c of e)c.col!==r&&(r=c.col,l=$e(i,this.top+n+o,this.bottom-this.columnSizes[r].height)),c.top=l,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let n=this.ctx;ji(n,this),this._draw(),Ui(n)}}_draw(){let{options:n,columnSizes:e,lineWidths:i,ctx:o}=this,{align:s,labels:a}=n,r=xe.color,l=ai(n.rtl,this.left,this.width),c=Fe(a.font),{padding:d}=a,p=c.size,u=p/2,h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;let{boxWidth:m,boxHeight:b,itemHeight:y}=$r(a,p),C=function(M,V,P){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;o.save();let R=W(P.lineWidth,1);if(o.fillStyle=W(P.fillStyle,r),o.lineCap=W(P.lineCap,"butt"),o.lineDashOffset=W(P.lineDashOffset,0),o.lineJoin=W(P.lineJoin,"miter"),o.lineWidth=R,o.strokeStyle=W(P.strokeStyle,r),o.setLineDash(W(P.lineDash,[])),a.usePointStyle){let q={radius:b*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:R},Q=l.xPlus(M,m/2),ee=V+u;Lo(o,q,Q,ee,a.pointStyleWidth&&m)}else{let q=V+Math.max((p-b)/2,0),Q=l.leftForLtr(M,m),ee=Ut(P.borderRadius);o.beginPath(),Object.values(ee).some(Ve=>Ve!==0)?Si(o,{x:Q,y:q,w:m,h:b,radius:ee}):o.rect(Q,q,m,b),o.fill(),R!==0&&o.stroke()}o.restore()},x=function(M,V,P){jt(o,P.text,M,V+y/2,c,{strikethrough:P.hidden,textAlign:l.textAlign(P.textAlign)})},k=this.isHorizontal(),O=this._computeTitleHeight();k?h={x:$e(s,this.left+d,this.right-i[0]),y:this.top+d+O,line:0}:h={x:this.left+d,y:$e(s,this.top+O+d,this.bottom-e[0].height),line:0},jo(this.ctx,n.textDirection);let I=y+d;this.legendItems.forEach((M,V)=>{o.strokeStyle=M.fontColor,o.fillStyle=M.fontColor;let P=o.measureText(M.text).width,R=l.textAlign(M.textAlign||(M.textAlign=a.textAlign)),q=m+u+P,Q=h.x,ee=h.y;l.setWidth(this.width),k?V>0&&Q+q+d>this.right&&(ee=h.y+=I,h.line++,Q=h.x=$e(s,this.left+d,this.right-i[h.line])):V>0&&ee+I>this.bottom&&(Q=h.x=Q+e[h.line].width+d,h.line++,ee=h.y=$e(s,this.top+O+d,this.bottom-e[h.line].height));let Ve=l.x(Q);if(C(Ve,ee,M),Q=Ra(R,Q+m+u,k?Q+q:this.right,n.rtl),x(l.x(Q),ee,M),k)h.x+=q+d;else if(typeof M.text!="string"){let Je=c.lineHeight;h.y+=vl(M,Je)+d}else h.y+=I}),Uo(this.ctx,n.textDirection)}drawTitle(){let n=this.options,e=n.title,i=Fe(e.font),o=Be(e.padding);if(!e.display)return;let s=ai(n.rtl,this.left,this.width),a=this.ctx,r=e.position,l=i.size/2,c=o.top+l,d,p=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),d=this.top+c,p=$e(n.align,p,this.right-u);else{let m=this.columnSizes.reduce((b,y)=>Math.max(b,y.height),0);d=c+$e(n.align,this.top,this.bottom-m-n.labels.padding-this._computeTitleHeight())}let h=$e(r,p,p+u);a.textAlign=s.textAlign(Mn(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,jt(a,e.text,h,d,i)}_computeTitleHeight(){let n=this.options.title,e=Fe(n.font),i=Be(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,o,s;if(Ct(n,this.left,this.right)&&Ct(e,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(o=s[i],Ct(n,o.left,o.left+o.width)&&Ct(e,o.top,o.top+o.height))return this.legendItems[i]}return null}handleEvent(n){let e=this.options;if(!qu(n.type,e))return;let i=this._getLegendItemAt(n.x,n.y);if(n.type==="mousemove"||n.type==="mouseout"){let o=this._hoveredItem,s=Uu(o,i);o&&!s&&ce(e.onLeave,[n,o,this],this),this._hoveredItem=i,i&&!s&&ce(e.onHover,[n,i,this],this)}else i&&ce(e.onClick,[n,i,this],this)}};function Wu(t,n,e,i,o){let s=Qu(i,t,n,e),a=Ku(o,i,n.lineHeight);return{itemWidth:s,itemHeight:a}}function Qu(t,n,e,i){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((s,a)=>s.length>a.length?s:a)),n+e.size/2+i.measureText(o).width}function Ku(t,n,e){let i=t;return typeof n.text!="string"&&(i=vl(n,e)),i}function vl(t,n){let e=t.text?t.text.length:0;return n*e}function qu(t,n){return!!((t==="mousemove"||t==="mouseout")&&(n.onHover||n.onLeave)||n.onClick&&(t==="click"||t==="mouseup"))}var Yu={id:"legend",_element:Xn,start(t,n,e){let i=t.legend=new Xn({ctx:t.ctx,options:e,chart:t});We.configure(t,i,e),We.addBox(t,i)},stop(t){We.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){let i=t.legend;We.configure(t,i,e),i.options=e},afterUpdate(t){let n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){let i=n.datasetIndex,o=e.chart;o.isDatasetVisible(i)?(o.hide(i),n.hidden=!0):(o.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:o,color:s,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{let c=l.controller.getStyle(e?0:void 0),d=Be(c.borderWidth);return{text:n[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(r||c.borderRadius),datasetIndex:l.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)}}},Ji=class extends mt{constructor(n){super(),this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=n,this.height=this.bottom=e;let o=ue(i.text)?i.text.length:1;this._padding=Be(i.padding);let s=o*Fe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let n=this.options.position;return n==="top"||n==="bottom"}_drawArgs(n){let{top:e,left:i,bottom:o,right:s,options:a}=this,r=a.align,l=0,c,d,p;return this.isHorizontal()?(d=$e(r,i,s),p=e+n,c=s-i):(a.position==="left"?(d=i+n,p=$e(r,o,e),l=he*-.5):(d=s-n,p=$e(r,e,o),l=he*.5),c=o-e),{titleX:d,titleY:p,maxWidth:c,rotation:l}}draw(){let n=this.ctx,e=this.options;if(!e.display)return;let i=Fe(e.font),s=i.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:c}=this._drawArgs(s);jt(n,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:Mn(e.align),textBaseline:"middle",translation:[a,r]})}};function Xu(t,n){let e=new Ji({ctx:t.ctx,options:n,chart:t});We.configure(t,e,n),We.addBox(t,e),t.titleBlock=e}var Gu={id:"title",_element:Ji,start(t,n,e){Xu(t,e)},stop(t){let n=t.titleBlock;We.removeBox(t,n),delete t.titleBlock},beforeUpdate(t,n,e){let i=t.titleBlock;We.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Bn=new WeakMap,Zu={id:"subtitle",start(t,n,e){let i=new Ji({ctx:t.ctx,options:e,chart:t});We.configure(t,i,e),We.addBox(t,i),Bn.set(t,i)},stop(t){We.removeBox(t,Bn.get(t)),Bn.delete(t)},beforeUpdate(t,n,e){let i=Bn.get(t);We.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Gi={average(t){if(!t.length)return!1;let n,e,i=new Set,o=0,s=0;for(n=0,e=t.length;n<e;++n){let r=t[n].element;if(r&&r.hasValue()){let l=r.tooltipPosition();i.add(l.x),o+=l.y,++s}}return{x:[...i].reduce((r,l)=>r+l)/i.size,y:o/s}},nearest(t,n){if(!t.length)return!1;let e=n.x,i=n.y,o=Number.POSITIVE_INFINITY,s,a,r;for(s=0,a=t.length;s<a;++s){let l=t[s].element;if(l&&l.hasValue()){let c=l.getCenterPoint(),d=wn(n,c);d<o&&(o=d,r=l)}}if(r){let l=r.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function wt(t,n){return n&&(ue(n)?Array.prototype.push.apply(t,n):t.push(n)),t}function Lt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
`)>-1?t.split(`
`):t}function Ju(t,n){let{element:e,datasetIndex:i,index:o}=n,s=t.getDatasetMeta(i).controller,{label:a,value:r}=s.getLabelAndValue(o);return{chart:t,label:a,parsed:s.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:r,dataset:s.getDataset(),dataIndex:o,datasetIndex:i,element:e}}function Br(t,n){let e=t.chart.ctx,{body:i,footer:o,title:s}=t,{boxWidth:a,boxHeight:r}=n,l=Fe(n.bodyFont),c=Fe(n.titleFont),d=Fe(n.footerFont),p=s.length,u=o.length,h=i.length,m=Be(n.padding),b=m.height,y=0,C=i.reduce((O,I)=>O+I.before.length+I.lines.length+I.after.length,0);if(C+=t.beforeBody.length+t.afterBody.length,p&&(b+=p*c.lineHeight+(p-1)*n.titleSpacing+n.titleMarginBottom),C){let O=n.displayColors?Math.max(r,l.lineHeight):l.lineHeight;b+=h*O+(C-h)*l.lineHeight+(C-1)*n.bodySpacing}u&&(b+=n.footerMarginTop+u*d.lineHeight+(u-1)*n.footerSpacing);let x=0,k=function(O){y=Math.max(y,e.measureText(O).width+x)};return e.save(),e.font=c.string,ae(t.title,k),e.font=l.string,ae(t.beforeBody.concat(t.afterBody),k),x=n.displayColors?a+2+n.boxPadding:0,ae(i,O=>{ae(O.before,k),ae(O.lines,k),ae(O.after,k)}),x=0,e.font=d.string,ae(t.footer,k),e.restore(),y+=m.width,{width:y,height:b}}function eh(t,n){let{y:e,height:i}=n;return e<i/2?"top":e>t.height-i/2?"bottom":"center"}function th(t,n,e,i){let{x:o,width:s}=i,a=e.caretSize+e.caretPadding;if(t==="left"&&o+s+a>n.width||t==="right"&&o-s-a<0)return!0}function ih(t,n,e,i){let{x:o,width:s}=e,{width:a,chartArea:{left:r,right:l}}=t,c="center";return i==="center"?c=o<=(r+l)/2?"left":"right":o<=s/2?c="left":o>=a-s/2&&(c="right"),th(c,t,n,e)&&(c="center"),c}function Hr(t,n,e){let i=e.yAlign||n.yAlign||eh(t,e);return{xAlign:e.xAlign||n.xAlign||ih(t,n,e,i),yAlign:i}}function nh(t,n){let{x:e,width:i}=t;return n==="right"?e-=i:n==="center"&&(e-=i/2),e}function oh(t,n,e){let{y:i,height:o}=t;return n==="top"?i+=e:n==="bottom"?i-=o+e:i-=o/2,i}function Nr(t,n,e,i){let{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:r,yAlign:l}=e,c=o+s,{topLeft:d,topRight:p,bottomLeft:u,bottomRight:h}=Ut(a),m=nh(n,r),b=oh(n,l,c);return l==="center"?r==="left"?m+=c:r==="right"&&(m-=c):r==="left"?m-=Math.max(d,u)+o:r==="right"&&(m+=Math.max(p,h)+o),{x:Ae(m,0,i.width-n.width),y:Ae(b,0,i.height-n.height)}}function Hn(t,n,e){let i=Be(e.padding);return n==="center"?t.x+t.width/2:n==="right"?t.x+t.width-i.right:t.x+i.left}function jr(t){return wt([],Lt(t))}function sh(t,n,e){return Et(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}function Ur(t,n){let e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}var xl={beforeTitle:xt,title(t){if(t.length>0){let n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return e[n.dataIndex]}return""},afterTitle:xt,beforeBody:xt,beforeLabel:xt,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let n=t.dataset.label||"";n&&(n+=": ");let e=t.formattedValue;return oe(e)||(n+=e),n},labelColor(t){let 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){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:xt,afterBody:xt,beforeFooter:xt,footer:xt,afterFooter:xt};function Ge(t,n,e,i){let o=t[n].call(e,i);return typeof o>"u"?xl[n].call(e,i):o}var Wr=(()=>{class t extends mt{static positioners=Gi;constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let i=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&i.options.animation&&o.animations,a=new Wn(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=sh(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){let{callbacks:o}=i,s=Ge(o,"beforeTitle",this,e),a=Ge(o,"title",this,e),r=Ge(o,"afterTitle",this,e),l=[];return l=wt(l,Lt(s)),l=wt(l,Lt(a)),l=wt(l,Lt(r)),l}getBeforeBody(e,i){return jr(Ge(i.callbacks,"beforeBody",this,e))}getBody(e,i){let{callbacks:o}=i,s=[];return ae(e,a=>{let r={before:[],lines:[],after:[]},l=Ur(o,a);wt(r.before,Lt(Ge(l,"beforeLabel",this,a))),wt(r.lines,Ge(l,"label",this,a)),wt(r.after,Lt(Ge(l,"afterLabel",this,a))),s.push(r)}),s}getAfterBody(e,i){return jr(Ge(i.callbacks,"afterBody",this,e))}getFooter(e,i){let{callbacks:o}=i,s=Ge(o,"beforeFooter",this,e),a=Ge(o,"footer",this,e),r=Ge(o,"afterFooter",this,e),l=[];return l=wt(l,Lt(s)),l=wt(l,Lt(a)),l=wt(l,Lt(r)),l}_createItems(e){let i=this._active,o=this.chart.data,s=[],a=[],r=[],l=[],c,d;for(c=0,d=i.length;c<d;++c)l.push(Ju(this.chart,i[c]));return e.filter&&(l=l.filter((p,u,h)=>e.filter(p,u,h,o))),e.itemSort&&(l=l.sort((p,u)=>e.itemSort(p,u,o))),ae(l,p=>{let u=Ur(e.callbacks,p);s.push(Ge(u,"labelColor",this,p)),a.push(Ge(u,"labelPointStyle",this,p)),r.push(Ge(u,"labelTextColor",this,p))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(e,i){let o=this.options.setContext(this.getContext()),s=this._active,a,r=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{let l=Gi[o.position].call(this,s,this._eventPosition);r=this._createItems(o),this.title=this.getTitle(r,o),this.beforeBody=this.getBeforeBody(r,o),this.body=this.getBody(r,o),this.afterBody=this.getAfterBody(r,o),this.footer=this.getFooter(r,o);let c=this._size=Br(this,o),d=Object.assign({},l,c),p=Hr(this.chart,o,d),u=Nr(o,d,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,a={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,o,s){let a=this.getCaretPosition(e,o,s);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,o){let{xAlign:s,yAlign:a}=this,{caretSize:r,cornerRadius:l}=o,{topLeft:c,topRight:d,bottomLeft:p,bottomRight:u}=Ut(l),{x:h,y:m}=e,{width:b,height:y}=i,C,x,k,O,I,M;return a==="center"?(I=m+y/2,s==="left"?(C=h,x=C-r,O=I+r,M=I-r):(C=h+b,x=C+r,O=I-r,M=I+r),k=C):(s==="left"?x=h+Math.max(c,p)+r:s==="right"?x=h+b-Math.max(d,u)-r:x=this.caretX,a==="top"?(O=m,I=O-r,C=x-r,k=x+r):(O=m+y,I=O+r,C=x+r,k=x-r),M=O),{x1:C,x2:x,x3:k,y1:O,y2:I,y3:M}}drawTitle(e,i,o){let s=this.title,a=s.length,r,l,c;if(a){let d=ai(o.rtl,this.x,this.width);for(e.x=Hn(this,o.titleAlign,o),i.textAlign=d.textAlign(o.titleAlign),i.textBaseline="middle",r=Fe(o.titleFont),l=o.titleSpacing,i.fillStyle=o.titleColor,i.font=r.string,c=0;c<a;++c)i.fillText(s[c],d.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+l,c+1===a&&(e.y+=o.titleMarginBottom-l)}}_drawColorBox(e,i,o,s,a){let r=this.labelColors[o],l=this.labelPointStyles[o],{boxHeight:c,boxWidth:d}=a,p=Fe(a.bodyFont),u=Hn(this,"left",a),h=s.x(u),m=c<p.lineHeight?(p.lineHeight-c)/2:0,b=i.y+m;if(a.usePointStyle){let y={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},C=s.leftForLtr(h,d)+d/2,x=b+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,Fn(e,y,C,x),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,Fn(e,y,C,x)}else{e.lineWidth=J(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;let y=s.leftForLtr(h,d),C=s.leftForLtr(s.xPlus(h,1),d-2),x=Ut(r.borderRadius);Object.values(x).some(k=>k!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Si(e,{x:y,y:b,w:d,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),Si(e,{x:C,y:b+1,w:d-2,h:c-2,radius:x}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(y,b,d,c),e.strokeRect(y,b,d,c),e.fillStyle=r.backgroundColor,e.fillRect(C,b+1,d-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,i,o){let{body:s}=this,{bodySpacing:a,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:p}=o,u=Fe(o.bodyFont),h=u.lineHeight,m=0,b=ai(o.rtl,this.x,this.width),y=function(R){i.fillText(R,b.x(e.x+m),e.y+h/2),e.y+=h+a},C=b.textAlign(r),x,k,O,I,M,V,P;for(i.textAlign=r,i.textBaseline="middle",i.font=u.string,e.x=Hn(this,C,o),i.fillStyle=o.bodyColor,ae(this.beforeBody,y),m=l&&C!=="right"?r==="center"?d/2+p:d+2+p:0,I=0,V=s.length;I<V;++I){for(x=s[I],k=this.labelTextColors[I],i.fillStyle=k,ae(x.before,y),O=x.lines,l&&O.length&&(this._drawColorBox(i,e,I,b,o),h=Math.max(u.lineHeight,c)),M=0,P=O.length;M<P;++M)y(O[M]),h=u.lineHeight;ae(x.after,y)}m=0,h=u.lineHeight,ae(this.afterBody,y),e.y-=a}drawFooter(e,i,o){let s=this.footer,a=s.length,r,l;if(a){let c=ai(o.rtl,this.x,this.width);for(e.x=Hn(this,o.footerAlign,o),e.y+=o.footerMarginTop,i.textAlign=c.textAlign(o.footerAlign),i.textBaseline="middle",r=Fe(o.footerFont),i.fillStyle=o.footerColor,i.font=r.string,l=0;l<a;++l)i.fillText(s[l],c.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+o.footerSpacing}}drawBackground(e,i,o,s){let{xAlign:a,yAlign:r}=this,{x:l,y:c}=e,{width:d,height:p}=o,{topLeft:u,topRight:h,bottomLeft:m,bottomRight:b}=Ut(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(l+u,c),r==="top"&&this.drawCaret(e,i,o,s),i.lineTo(l+d-h,c),i.quadraticCurveTo(l+d,c,l+d,c+h),r==="center"&&a==="right"&&this.drawCaret(e,i,o,s),i.lineTo(l+d,c+p-b),i.quadraticCurveTo(l+d,c+p,l+d-b,c+p),r==="bottom"&&this.drawCaret(e,i,o,s),i.lineTo(l+m,c+p),i.quadraticCurveTo(l,c+p,l,c+p-m),r==="center"&&a==="left"&&this.drawCaret(e,i,o,s),i.lineTo(l,c+u),i.quadraticCurveTo(l,c,l+u,c),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(e){let i=this.chart,o=this.$animations,s=o&&o.x,a=o&&o.y;if(s||a){let r=Gi[e.position].call(this,this._active,this._eventPosition);if(!r)return;let l=this._size=Br(this,e),c=Object.assign({},r,this._size),d=Hr(i,e,c),p=Nr(e,c,d,i);(s._to!==p.x||a._to!==p.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){let i=this.options.setContext(this.getContext()),o=this.opacity;if(!o)return;this._updateAnimationTarget(i);let s={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;let r=Be(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(e.save(),e.globalAlpha=o,this.drawBackground(a,e,s,i),jo(e,i.textDirection),a.y+=r.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),Uo(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){let o=this._active,s=e.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Hi(o,s),r=this._positionChanged(s,i);(a||r)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,o=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,a=this._active||[],r=this._getActiveElements(e,a,i,o),l=this._positionChanged(r,e),c=i||!Hi(r,a)||l;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),c}_getActiveElements(e,i,o,s){let a=this.options;if(e.type==="mouseout")return[];if(!s)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let r=this.chart.getElementsAtEventForMode(e,a.mode,a,o);return a.reverse&&r.reverse(),r}_positionChanged(e,i){let{caretX:o,caretY:s,options:a}=this,r=Gi[a.position].call(this,e,i);return r!==!1&&(o!==r.x||s!==r.y)}}return t})(),ah={id:"tooltip",_element:Wr,positioners:Gi,afterInit(t,n,e){e&&(t.tooltip=new Wr({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){let n=t.tooltip;if(n&&n._willRender()){let e={tooltip:n};if(t.notifyPlugins("beforeTooltipDraw",Xt(St({},e),{cancelable:!0}))===!1)return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){if(t.tooltip){let e=n.replay;t.tooltip.handleEvent(n.event,e,n.inChartArea)&&(n.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,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.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:xl},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},rh=Object.freeze({__proto__:null,Colors:yu,Decimation:wu,Filler:ju,Legend:Yu,SubTitle:Zu,Title:Gu,Tooltip:ah}),lh=(t,n,e,i)=>(typeof n=="string"?(e=t.push(n)-1,i.unshift({index:e,label:n})):isNaN(n)&&(e=null),e);function ch(t,n,e,i){let o=t.indexOf(n);if(o===-1)return lh(t,n,e,i);let s=t.lastIndexOf(n);return o!==s?e:o}var dh=(t,n)=>t===null?null:Ae(Math.round(t),0,n);function Qr(t){let n=this.getLabels();return t>=0&&t<n.length?n[t]:t}var ph=(()=>{class t extends ci{static id="category";static defaults={ticks:{callback:Qr}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let i=this._addedLabels;if(i.length){let o=this.getLabels();for(let{index:s,label:a}of i)o[s]===a&&o.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(oe(e))return null;let o=this.getLabels();return i=isFinite(i)&&o[i]===e?i:ch(o,e,W(i,e),this._addedLabels),dh(i,o.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:o,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),i||(s=this.getLabels().length-1)),this.min=o,this.max=s}buildTicks(){let e=this.min,i=this.max,o=this.options.offset,s=[],a=this.getLabels();a=e===0&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let r=e;r<=i;r++)s.push({value:r});return s}getLabelForValue(e){return Qr.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}return t})();function uh(t,n){let e=[],{bounds:o,step:s,min:a,max:r,precision:l,count:c,maxTicks:d,maxDigits:p,includeBounds:u}=t,h=s||1,m=d-1,{min:b,max:y}=n,C=!oe(a),x=!oe(r),k=!oe(c),O=(y-b)/(p+1),I=Co((y-b)/m/h)*h,M,V,P,R;if(I<1e-14&&!C&&!x)return[{value:b},{value:y}];R=Math.ceil(y/I)-Math.floor(b/I),R>m&&(I=Co(R*I/m/h)*h),oe(l)||(M=Math.pow(10,l),I=Math.ceil(I*M)/M),o==="ticks"?(V=Math.floor(b/I)*I,P=Math.ceil(y/I)*I):(V=b,P=y),C&&x&&s&&Da((r-a)/s,I/1e3)?(R=Math.round(Math.min((r-a)/I,d)),I=(r-a)/R,V=a,P=r):k?(V=C?a:V,P=x?r:P,R=c-1,I=(P-V)/R):(R=(P-V)/I,wi(R,Math.round(R),I/1e3)?R=Math.round(R):R=Math.ceil(R));let q=Math.max(To(I),To(V));M=Math.pow(10,oe(l)?q:l),V=Math.round(V*M)/M,P=Math.round(P*M)/M;let Q=0;for(C&&(u&&V!==a?(e.push({value:a}),V<a&&Q++,wi(Math.round((V+Q*I)*M)/M,a,Kr(a,O,t))&&Q++):V<a&&Q++);Q<R;++Q){let ee=Math.round((V+Q*I)*M)/M;if(x&&ee>r)break;e.push({value:ee})}return x&&u&&P!==r?e.length&&wi(e[e.length-1].value,r,Kr(r,O,t))?e[e.length-1].value=r:e.push({value:r}):(!x||P===r)&&e.push({value:P}),e}function Kr(t,n,{horizontal:e,minRotation:i}){let o=at(i),s=(e?Math.sin(o):Math.cos(o))||.001,a=.75*n*(""+t).length;return Math.min(n/s,a)}var Fi=class extends ci{constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(n,e){return oe(n)||(typeof n=="number"||n instanceof Number)&&!isFinite(+n)?null:+n}handleTickRangeOptions(){let{beginAtZero:n}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:o,max:s}=this,a=l=>o=e?o:l,r=l=>s=i?s:l;if(n){let l=ft(o),c=ft(s);l<0&&c<0?r(0):l>0&&c>0&&a(0)}if(o===s){let l=s===0?1:Math.abs(s*.05);r(s+l),n||a(o-l)}this.min=o,this.max=s}getTickLimit(){let n=this.options.ticks,{maxTicksLimit:e,stepSize:i}=n,o;return i?(o=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let n=this.options,e=n.ticks,i=this.getTickLimit();i=Math.max(2,i);let o={maxTicks:i,bounds:n.bounds,min:n.min,max:n.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},s=this._range||this,a=uh(o,s);return n.bounds==="ticks"&&wo(a,this,"value"),n.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){let n=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&n.length){let o=(i-e)/Math.max(n.length-1,1)/2;e-=o,i+=o}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(n){return Ii(n,this.chart.options.locale,this.options.ticks.format)}},_s=class extends Fi{static id="linear";static defaults={ticks:{callback:Ni.formatters.numeric}};determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=ve(n)?n:0,this.max=ve(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let n=this.isHorizontal(),e=n?this.width:this.height,i=at(this.options.ticks.minRotation),o=(n?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/o))}getPixelForValue(n){return n===null?NaN:this.getPixelForDecimal((n-this._startValue)/this._valueRange)}getValueForPixel(n){return this._startValue+this.getDecimalForPixel(n)*this._valueRange}},en=t=>Math.floor(Dt(t)),li=(t,n)=>Math.pow(10,en(t)+n);function qr(t){return t/Math.pow(10,en(t))===1}function Yr(t,n,e){let i=Math.pow(10,e),o=Math.floor(t/i);return Math.ceil(n/i)-o}function hh(t,n){let e=n-t,i=en(e);for(;Yr(t,n,i)>10;)i++;for(;Yr(t,n,i)<10;)i--;return Math.min(i,en(t))}function fh(t,{min:n,max:e}){n=Xe(t.min,n);let i=[],o=en(n),s=hh(n,e),a=s<0?Math.pow(10,Math.abs(s)):1,r=Math.pow(10,s),l=o>s?Math.pow(10,o):0,c=Math.round((n-l)*a)/a,d=Math.floor((n-l)/r/10)*r*10,p=Math.floor((c-d)/Math.pow(10,s)),u=Xe(t.min,Math.round((l+d+p*Math.pow(10,s))*a)/a);for(;u<e;)i.push({value:u,major:qr(u),significand:p}),p>=10?p=p<15?15:20:p++,p>=20&&(s++,p=2,a=s>=0?1:a),u=Math.round((l+d+p*Math.pow(10,s))*a)/a;let h=Xe(t.max,u);return i.push({value:h,major:qr(h),significand:p}),i}var bs=class extends ci{static id="logarithmic";static defaults={ticks:{callback:Ni.formatters.logarithmic,major:{enabled:!0}}};constructor(n){super(n),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(n,e){let i=Fi.prototype.parse.apply(this,[n,e]);if(i===0){this._zero=!0;return}return ve(i)&&i>0?i:null}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!0);this.min=ve(n)?Math.max(0,n):null,this.max=ve(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ve(this._userMin)&&(this.min=n===li(this.min,0)?li(this.min,-1):li(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:n,maxDefined:e}=this.getUserBounds(),i=this.min,o=this.max,s=r=>i=n?i:r,a=r=>o=e?o:r;i===o&&(i<=0?(s(1),a(10)):(s(li(i,-1)),a(li(o,1)))),i<=0&&s(li(o,-1)),o<=0&&a(li(i,1)),this.min=i,this.max=o}buildTicks(){let n=this.options,e={min:this._userMin,max:this._userMax},i=fh(e,this);return n.bounds==="ticks"&&wo(i,this,"value"),n.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(n){return n===void 0?"0":Ii(n,this.chart.options.locale,this.options.ticks.format)}configure(){let n=this.min;super.configure(),this._startValue=Dt(n),this._valueRange=Dt(this.max)-Dt(n)}getPixelForValue(n){return(n===void 0||n===0)&&(n=this.min),n===null||isNaN(n)?NaN:this.getPixelForDecimal(n===this.min?0:(Dt(n)-this._startValue)/this._valueRange)}getValueForPixel(n){let e=this.getDecimalForPixel(n);return Math.pow(10,this._startValue+e*this._valueRange)}};function ys(t){let n=t.ticks;if(n.display&&t.display){let e=Be(n.backdropPadding);return W(n.font&&n.font.size,xe.font.size)+e.height}return 0}function mh(t,n,e){return e=ue(e)?e:[e],{w:Ba(t,n.string,e),h:e.length*n.lineHeight}}function Xr(t,n,e,i,o){return t===i||t===o?{start:n-e/2,end:n+e/2}:t<i||t>o?{start:n-e,end:n}:{start:n,end:n+e}}function gh(t){let n={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},n),i=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?he/s:0;for(let l=0;l<s;l++){let c=a.setContext(t.getPointLabelContext(l));o[l]=c.padding;let d=t.getPointPosition(l,t.drawingArea+o[l],r),p=Fe(c.font),u=mh(t.ctx,p,t._pointLabels[l]);i[l]=u;let h=Ye(t.getIndexAngle(l)+r),m=Math.round(Sn(h)),b=Xr(m,d.x,u.w,0,180),y=Xr(m,d.y,u.h,90,270);_h(e,n,h,b,y)}t.setCenterPoint(n.l-e.l,e.r-n.r,n.t-e.t,e.b-n.b),t._pointLabelItems=vh(t,i,o)}function _h(t,n,e,i,o){let s=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e)),r=0,l=0;i.start<n.l?(r=(n.l-i.start)/s,t.l=Math.min(t.l,n.l-r)):i.end>n.r&&(r=(i.end-n.r)/s,t.r=Math.max(t.r,n.r+r)),o.start<n.t?(l=(n.t-o.start)/a,t.t=Math.min(t.t,n.t-l)):o.end>n.b&&(l=(o.end-n.b)/a,t.b=Math.max(t.b,n.b+l))}function bh(t,n,e){let i=t.drawingArea,{extra:o,additionalAngle:s,padding:a,size:r}=e,l=t.getPointPosition(n,i+o+a,s),c=Math.round(Sn(Ye(l.angle+Ie))),d=wh(l.y,r.h,c),p=xh(c),u=Ch(l.x,r.w,p);return{visible:!0,x:l.x,y:d,textAlign:p,left:u,top:d,right:u+r.w,bottom:d+r.h}}function yh(t,n){if(!n)return!0;let{left:e,top:i,right:o,bottom:s}=t;return!(vt({x:e,y:i},n)||vt({x:e,y:s},n)||vt({x:o,y:i},n)||vt({x:o,y:s},n))}function vh(t,n,e){let i=[],o=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:r}=s.pointLabels,l={extra:ys(s)/2,additionalAngle:a?he/o:0},c;for(let d=0;d<o;d++){l.padding=e[d],l.size=n[d];let p=bh(t,d,l);i.push(p),r==="auto"&&(p.visible=yh(p,c),p.visible&&(c=p))}return i}function xh(t){return t===0||t===180?"center":t<180?"left":"right"}function Ch(t,n,e){return e==="right"?t-=n:e==="center"&&(t-=n/2),t}function wh(t,n,e){return e===90||e===270?t-=n/2:(e>270||e<90)&&(t-=n),t}function Th(t,n,e){let{left:i,top:o,right:s,bottom:a}=e,{backdropColor:r}=n;if(!oe(r)){let l=Ut(n.borderRadius),c=Be(n.backdropPadding);t.fillStyle=r;let d=i-c.left,p=o-c.top,u=s-i+c.width,h=a-o+c.height;Object.values(l).some(m=>m!==0)?(t.beginPath(),Si(t,{x:d,y:p,w:u,h,radius:l}),t.fill()):t.fillRect(d,p,u,h)}}function Ih(t,n){let{ctx:e,options:{pointLabels:i}}=t;for(let o=n-1;o>=0;o--){let s=t._pointLabelItems[o];if(!s.visible)continue;let a=i.setContext(t.getPointLabelContext(o));Th(e,a,s);let r=Fe(a.font),{x:l,y:c,textAlign:d}=s;jt(e,t._pointLabels[o],l,c+r.lineHeight/2,r,{color:a.color,textAlign:d,textBaseline:"middle"})}}function Cl(t,n,e,i){let{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,n,0,fe);else{let s=t.getPointPosition(0,n);o.moveTo(s.x,s.y);for(let a=1;a<i;a++)s=t.getPointPosition(a,n),o.lineTo(s.x,s.y)}}function Sh(t,n,e,i,o){let s=t.ctx,a=n.circular,{color:r,lineWidth:l}=n;!a&&!i||!r||!l||e<0||(s.save(),s.strokeStyle=r,s.lineWidth=l,s.setLineDash(o.dash),s.lineDashOffset=o.dashOffset,s.beginPath(),Cl(t,e,a,i),s.closePath(),s.stroke(),s.restore())}function kh(t,n,e){return Et(t,{label:e,index:n,type:"pointLabel"})}var vs=class extends Fi{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ni.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(n){super(n),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let n=this._padding=Be(ys(this.options)/2),e=this.width=this.maxWidth-n.width,i=this.height=this.maxHeight-n.height;this.xCenter=Math.floor(this.left+e/2+n.left),this.yCenter=Math.floor(this.top+i/2+n.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:n,max:e}=this.getMinMax(!1);this.min=ve(n)&&!isNaN(n)?n:0,this.max=ve(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ys(this.options))}generateTickLabels(n){Fi.prototype.generateTickLabels.call(this,n),this._pointLabels=this.getLabels().map((e,i)=>{let o=ce(this.options.pointLabels.callback,[e,i],this);return o||o===0?o:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let n=this.options;n.display&&n.pointLabels.display?gh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(n,e,i,o){this.xCenter+=Math.floor((n-e)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(n,e,i,o))}getIndexAngle(n){let e=fe/(this._pointLabels.length||1),i=this.options.startAngle||0;return Ye(n*e+at(i))}getDistanceFromCenterForValue(n){if(oe(n))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-n)*e:(n-this.min)*e}getValueForDistanceFromCenter(n){if(oe(n))return NaN;let e=n/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(n){let e=this._pointLabels||[];if(n>=0&&n<e.length){let i=e[n];return kh(this.getContext(),n,i)}}getPointPosition(n,e,i=0){let o=this.getIndexAngle(n)-Ie+i;return{x:Math.cos(o)*e+this.xCenter,y:Math.sin(o)*e+this.yCenter,angle:o}}getPointPositionForValue(n,e){return this.getPointPosition(n,this.getDistanceFromCenterForValue(e))}getBasePosition(n){return this.getPointPositionForValue(n||0,this.getBaseValue())}getPointLabelPosition(n){let{left:e,top:i,right:o,bottom:s}=this._pointLabelItems[n];return{left:e,top:i,right:o,bottom:s}}drawBackground(){let{backgroundColor:n,grid:{circular:e}}=this.options;if(n){let i=this.ctx;i.save(),i.beginPath(),Cl(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}drawGrid(){let n=this.ctx,e=this.options,{angleLines:i,grid:o,border:s}=e,a=this._pointLabels.length,r,l,c;if(e.pointLabels.display&&Ih(this,a),o.display&&this.ticks.forEach((d,p)=>{if(p!==0||p===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);let u=this.getContext(p),h=o.setContext(u),m=s.setContext(u);Sh(this,h,l,a,m)}}),i.display){for(n.save(),r=a-1;r>=0;r--){let d=i.setContext(this.getPointLabelContext(r)),{color:p,lineWidth:u}=d;!u||!p||(n.lineWidth=u,n.strokeStyle=p,n.setLineDash(d.borderDash),n.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(r,l),n.beginPath(),n.moveTo(this.xCenter,this.yCenter),n.lineTo(c.x,c.y),n.stroke())}n.restore()}}drawBorder(){}drawLabels(){let n=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let o=this.getIndexAngle(0),s,a;n.save(),n.translate(this.xCenter,this.yCenter),n.rotate(o),n.textAlign="center",n.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;let c=i.setContext(this.getContext(l)),d=Fe(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){n.font=d.string,a=n.measureText(r.label).width,n.fillStyle=c.backdropColor;let p=Be(c.backdropPadding);n.fillRect(-a/2-p.left,-s-d.size/2-p.top,a+p.width,d.size+p.height)}jt(n,r.label,0,-s,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),n.restore()}drawTitle(){}},Jn={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}},Ze=Object.keys(Jn);function Gr(t,n){return t-n}function Zr(t,n){if(oe(n))return null;let e=t._adapter,{parser:i,round:o,isoWeekday:s}=t._parseOpts,a=n;return typeof i=="function"&&(a=i(a)),ve(a)||(a=typeof i=="string"?e.parse(a,i):e.parse(a)),a===null?null:(o&&(a=o==="week"&&(si(s)||s===!0)?e.startOf(a,"isoWeek",s):e.startOf(a,o)),+a)}function Jr(t,n,e,i){let o=Ze.length;for(let s=Ze.indexOf(t);s<o-1;++s){let a=Jn[Ze[s]],r=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((e-n)/(r*a.size))<=i)return Ze[s]}return Ze[o-1]}function Mh(t,n,e,i,o){for(let s=Ze.length-1;s>=Ze.indexOf(e);s--){let a=Ze[s];if(Jn[a].common&&t._adapter.diff(o,i,a)>=n-1)return a}return Ze[e?Ze.indexOf(e):0]}function Oh(t){for(let n=Ze.indexOf(t)+1,e=Ze.length;n<e;++n)if(Jn[Ze[n]].common)return Ze[n]}function el(t,n,e){if(!e)t[n]=!0;else if(e.length){let{lo:i,hi:o}=kn(e,n),s=e[i]>=n?e[i]:e[o];t[s]=!0}}function Fh(t,n,e,i){let o=t._adapter,s=+o.startOf(n[0].value,i),a=n[n.length-1].value,r,l;for(r=s;r<=a;r=+o.add(r,1,i))l=e[r],l>=0&&(n[l].major=!0);return n}function tl(t,n,e){let i=[],o={},s=n.length,a,r;for(a=0;a<s;++a)r=n[a],o[r]=a,i.push({value:r,major:!1});return s===0||!e?i:Fh(t,i,o,e)}var xs=(()=>{class t extends ci{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){let o=e.time||(e.time={}),s=this._adapter=new Nd._date(e.adapters.date);s.init(i),xi(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return e===void 0?null:Zr(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,i=this._adapter,o=e.time.unit||"day",{min:s,max:a,minDefined:r,maxDefined:l}=this.getUserBounds();function c(d){!r&&!isNaN(d.min)&&(s=Math.min(s,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!r||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=ve(s)&&!isNaN(s)?s:+i.startOf(Date.now(),o),a=ve(a)&&!isNaN(a)?a:+i.endOf(Date.now(),o)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){let e=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],o=e[e.length-1]),{min:i,max:o}}buildTicks(){let e=this.options,i=e.time,o=e.ticks,s=o.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let a=this.min,r=this.max,l=Pa(s,a,r);return this._unit=i.unit||(o.autoSkip?Jr(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):Mh(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:Oh(this._unit),this.initOffsets(s),e.reverse&&l.reverse(),tl(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let i=0,o=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?i=1-s:i=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?o=a:o=(a-this.getDecimalForValue(e[e.length-2]))/2);let r=e.length<3?.5:.25;i=Ae(i,0,r),o=Ae(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){let e=this._adapter,i=this.min,o=this.max,s=this.options,a=s.time,r=a.unit||Jr(a.minUnit,i,o,this._getLabelCapacity(i)),l=W(s.ticks.stepSize,1),c=r==="week"?a.isoWeekday:!1,d=si(c)||c===!0,p={},u=i,h,m;if(d&&(u=+e.startOf(u,"isoWeek",c)),u=+e.startOf(u,d?"day":r),e.diff(o,i,r)>1e5*l)throw new Error(i+" and "+o+" are too far apart with stepSize of "+l+" "+r);let b=s.ticks.source==="data"&&this.getDataTimestamps();for(h=u,m=0;h<o;h=+e.add(h,l,r),m++)el(p,h,b);return(h===o||s.bounds==="ticks"||m===1)&&el(p,h,b),Object.keys(p).sort(Gr).map(y=>+y)}getLabelForValue(e){let i=this._adapter,o=this.options.time;return o.tooltipFormat?i.format(e,o.tooltipFormat):i.format(e,o.displayFormats.datetime)}format(e,i){let s=this.options.time.displayFormats,a=this._unit,r=i||s[a];return this._adapter.format(e,r)}_tickFormatFunction(e,i,o,s){let a=this.options,r=a.ticks.callback;if(r)return ce(r,[e,i,o],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,p=c&&l[c],u=d&&l[d],h=o[i],m=d&&u&&h&&h.major;return this._adapter.format(e,s||(m?u:p))}generateTickLabels(e){let i,o,s;for(i=0,o=e.length;i<o;++i)s=e[i],s.label=this._tickFormatFunction(s.value,i,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let i=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((i.start+o)*i.factor)}getValueForPixel(e){let i=this._offsets,o=this.getDecimalForPixel(e)/i.factor-i.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){let i=this.options.ticks,o=this.ctx.measureText(e).width,s=at(this.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(s),r=Math.sin(s),l=this._resolveTickFontOptions(0).size;return{w:o*a+l*r,h:o*r+l*a}}_getLabelCapacity(e){let i=this.options.time,o=i.displayFormats,s=o[i.unit]||o.millisecond,a=this._tickFormatFunction(e,0,tl(this,[e],this._majorUnit),s),r=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],i,o;if(e.length)return e;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,o=s.length;i<o;++i)e=e.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],i,o;if(e.length)return e;let s=this.getLabels();for(i=0,o=s.length;i<o;++i)e.push(Zr(this,s[i]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ko(e.sort(Gr))}}return t})();function Nn(t,n,e){let i=0,o=t.length-1,s,a,r,l;e?(n>=t[i].pos&&n<=t[o].pos&&({lo:i,hi:o}=yt(t,"pos",n)),{pos:s,time:r}=t[i],{pos:a,time:l}=t[o]):(n>=t[i].time&&n<=t[o].time&&({lo:i,hi:o}=yt(t,"time",n)),{time:s,pos:r}=t[i],{time:a,pos:l}=t[o]);let c=a-s;return c?r+(l-r)*(n-s)/c:r}var Cs=class extends xs{static id="timeseries";static defaults=xs.defaults;constructor(n){super(n),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let n=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(n);this._minPos=Nn(e,this.min),this._tableRange=Nn(e,this.max)-this._minPos,super.initOffsets(n)}buildLookupTable(n){let{min:e,max:i}=this,o=[],s=[],a,r,l,c,d;for(a=0,r=n.length;a<r;++a)c=n[a],c>=e&&c<=i&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,r=o.length;a<r;++a)d=o[a+1],l=o[a-1],c=o[a],Math.round((d+l)/2)!==c&&s.push({time:c,pos:a/(r-1)});return s}_generate(){let n=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(n)||!i.length)&&i.splice(0,0,n),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((o,s)=>o-s)}_getTimestampsForTable(){let n=this._cache.all||[];if(n.length)return n;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?n=this.normalize(e.concat(i)):n=e.length?e:i,n=this._cache.all=n,n}getDecimalForValue(n){return(Nn(this._table,n)-this._minPos)/this._tableRange}getValueForPixel(n){let e=this._offsets,i=this.getDecimalForPixel(n)/e.factor-e.end;return Nn(this._table,i*this._tableRange+this._minPos,!0)}},Dh=Object.freeze({__proto__:null,CategoryScale:ph,LinearScale:_s,LogarithmicScale:bs,RadialLinearScale:vs,TimeScale:xs,TimeSeriesScale:Cs}),wl=[Hd,hu,rh,Dh];Gn.register(...wl);var Tl=Gn;var Ah=(()=>{class t{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}onDataSelect=new U;isBrowser=!1;initialized;_data;_options={};chart;constructor(e,i,o){this.platformId=e,this.el=i,this.zone=o}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){let i=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),o=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);i&&i[0]&&o&&this.onDataSelect.emit({originalEvent:e,element:i[0],dataset:o})}}initChart(){if(dt(this.platformId)){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new Tl(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(i){return new(i||t)(_t(Fs),_t(rn),_t(Vt))};static \u0275cmp=Y({type:t,selectors:[["p-chart"]],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[2,"responsive","responsive",H],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},features:[Ee],decls:2,vars:8,consts:[[2,"position","relative"],["role","img",3,"click"]],template:function(i,o){i&1&&(w(0,"div",0)(1,"canvas",1),$("click",function(a){return o.onCanvasClick(a)}),T()()),i&2&&(je("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height),g(),S("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height))},dependencies:[se,N],encapsulation:2,changeDetection:0})}return t})(),K1=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Ah,N,N]})}return t})();var Eh=["header"],Ph=["title"],Lh=["subtitle"],Vh=["content"],zh=["footer"],Rh=["*",[["p-header"]],[["p-footer"]]],$h=["*","p-header","p-footer"];function Bh(t,n){t&1&&K(0)}function Hh(t,n){if(t&1&&(w(0,"div",8),we(1,1),v(2,Bh,1,0,"ng-container",6),T()),t&2){let e=_();g(2),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Nh(t,n){if(t&1&&(te(0),Te(1),ie()),t&2){let e=_(2);g(),Qe(e.header)}}function jh(t,n){t&1&&K(0)}function Uh(t,n){if(t&1&&(w(0,"div",9),v(1,Nh,2,1,"ng-container",10)(2,jh,1,0,"ng-container",6),T()),t&2){let e=_();g(),f("ngIf",e.header&&!e._titleTemplate&&!e.titleTemplate),g(),f("ngTemplateOutlet",e.titleTemplate||e._titleTemplate)}}function Wh(t,n){if(t&1&&(te(0),Te(1),ie()),t&2){let e=_(2);g(),Qe(e.subheader)}}function Qh(t,n){t&1&&K(0)}function Kh(t,n){if(t&1&&(w(0,"div",11),v(1,Wh,2,1,"ng-container",10)(2,Qh,1,0,"ng-container",6),T()),t&2){let e=_();g(),f("ngIf",e.subheader&&!e._subtitleTemplate&&!e.subtitleTemplate),g(),f("ngTemplateOutlet",e.subtitleTemplate||e._subtitleTemplate)}}function qh(t,n){t&1&&K(0)}function Yh(t,n){t&1&&K(0)}function Xh(t,n){if(t&1&&(w(0,"div",12),we(1,2),v(2,Yh,1,0,"ng-container",6),T()),t&2){let e=_();g(2),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Gh=({dt:t})=>`
.p-card {
background: ${t("card.background")};
color: ${t("card.color")};
box-shadow: ${t("card.shadow")};
border-radius: ${t("card.border.radius")};
display: flex;
flex-direction: column;
}
.p-card-caption {
display: flex;
flex-direction: column;
gap: ${t("card.caption.gap")};
}
.p-card-body {
padding: ${t("card.body.padding")};
display: flex;
flex-direction: column;
gap: ${t("card.body.gap")};
}
.p-card-title {
font-size: ${t("card.title.font.size")};
font-weight: ${t("card.title.font.weight")};
}
.p-card-subtitle {
color: ${t("card.subtitle.color")};
}
`,Zh={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"},Il=(()=>{class t extends be{name="card";theme=Gh;classes=Zh;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Jh=(()=>{class t extends le{header;subheader;set style(e){Pi(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=lt(null);_componentStyle=ne(Il);getBlockableElement(){return this.el.nativeElement.children[0]}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"title":this._titleTemplate=e.template;break;case"subtitle":this._subtitleTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-card"]],contentQueries:function(i,o,s){if(i&1&&(L(s,mi,5),L(s,pn,5),L(s,Eh,4),L(s,Ph,4),L(s,Lh,4),L(s,Vh,4),L(s,zh,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.headerFacet=a.first),F(a=D())&&(o.footerFacet=a.first),F(a=D())&&(o.headerTemplate=a.first),F(a=D())&&(o.titleTemplate=a.first),F(a=D())&&(o.subtitleTemplate=a.first),F(a=D())&&(o.contentTemplate=a.first),F(a=D())&&(o.footerTemplate=a.first),F(a=D())&&(o.templates=a)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[ge([Il]),Z],ngContentSelectors:$h,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[4,"ngIf"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(i,o){i&1&&(Pe(Rh),w(0,"div",0),v(1,Hh,3,1,"div",1),w(2,"div",2),v(3,Uh,3,2,"div",3)(4,Kh,3,2,"div",4),w(5,"div",5),we(6),v(7,qh,1,0,"ng-container",6),T(),v(8,Xh,3,1,"div",7),T()()),i&2&&(B(o.styleClass),f("ngClass","p-card p-component")("ngStyle",o._style()),S("data-pc-name","card"),g(),f("ngIf",o.headerFacet||o.headerTemplate||o._headerTemplate),g(2),f("ngIf",o.header||o.titleTemplate||o._titleTemplate),g(),f("ngIf",o.subheader||o.subtitleTemplate||o._subtitleTemplate),g(3),f("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),g(),f("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate))},dependencies:[se,ye,Me,De,Ue,N],encapsulation:2,changeDetection:0})}return t})(),cy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Jh,N,N]})}return t})();var ef=["*"];function tf(t,n){if(t&1&&(w(0,"span",3),Te(1),T()),t&2){let e=_();g(),Qe(e.label)}}function nf(t,n){if(t&1&&z(0,"span",5),t&2){let e=_(2);B(e.icon),f("ngClass","p-avatar-icon")}}function of(t,n){if(t&1&&v(0,nf,1,3,"span",4),t&2){let e=_(),i=it(5);f("ngIf",e.icon)("ngIfElse",i)}}function sf(t,n){if(t&1){let e=X();w(0,"img",7),$("error",function(o){A(e);let s=_(2);return E(s.imageError(o))}),T()}if(t&2){let e=_(2);f("src",e.image,Mt),S("aria-label",e.ariaLabel)}}function af(t,n){if(t&1&&v(0,sf,1,2,"img",6),t&2){let e=_();f("ngIf",e.image)}}var rf=({dt:t})=>`
.p-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: ${t("avatar.width")};
height: ${t("avatar.height")};
font-size: ${t("avatar.font.size")};
color: ${t("avatar.color")};
background: ${t("avatar.background")};
border-radius: ${t("avatar.border.radius")};
}
.p-avatar-image {
background: transparent;
}
.p-avatar-circle {
border-radius: 50%;
}
.p-avatar-circle img {
border-radius: 50%;
}
.p-avatar-icon {
font-size: ${t("avatar.icon.size")};
width: ${t("avatar.icon.size")};
height: ${t("avatar.icon.size")};
}
.p-avatar img {
width: 100%;
height: 100%;
}
.p-avatar-lg {
width: ${t("avatar.lg.width")};
height: ${t("avatar.lg.width")};
font-size: ${t("avatar.lg.font.size")};
}
.p-avatar-lg .p-avatar-icon {
font-size: ${t("avatar.lg.icon.size")};
width: ${t("avatar.lg.icon.size")};
height: ${t("avatar.lg.icon.size")};
}
.p-avatar-xl {
width: ${t("avatar.xl.width")};
height: ${t("avatar.xl.width")};
font-size: ${t("avatar.xl.font.size")};
}
.p-avatar-xl .p-avatar-icon {
font-size: ${t("avatar.xl.font.size")};
width: ${t("avatar.xl.icon.size")};
height: ${t("avatar.xl.icon.size")};
}
.p-avatar-group {
display: flex;
align-items: center;
}
.p-avatar-group .p-avatar + .p-avatar {
margin-inline-start: ${t("avatar.group.offset")};
}
.p-avatar-group .p-avatar {
border: 2px solid ${t("avatar.group.border.color")};
}
.p-avatar-group .p-avatar-lg + .p-avatar-lg {
margin-inline-start: ${t("avatar.lg.group.offset")};
}
.p-avatar-group .p-avatar-xl + .p-avatar-xl {
margin-inline-start: ${t("avatar.xl.group.offset")};
}
`,lf={root:({props:t})=>["p-avatar p-component",{"p-avatar-image":t.image!=null,"p-avatar-circle":t.shape==="circle","p-avatar-lg":t.size==="large","p-avatar-xl":t.size==="xlarge"}],label:"p-avatar-label",icon:"p-avatar-icon"},Sl=(()=>{class t extends be{name="avatar";theme=rf;classes=lf;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var cf=(()=>{class t extends le{label;icon;image;size="normal";shape="square";style;styleClass;ariaLabel;ariaLabelledBy;onImageError=new U;_componentStyle=ne(Sl);imageError(e){this.onImageError.emit(e)}get hostClass(){return this.styleClass}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-avatar"]],hostVars:19,hostBindings:function(i,o){i&2&&(S("data-pc-name","avatar")("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),tt(o.style),B(o.hostClass),ct("p-avatar",!0)("p-component",!0)("p-avatar-circle",o.shape==="circle")("p-avatar-lg",o.size==="large")("p-avatar-xl",o.size==="xlarge")("p-avatar-image",o.image!=null))},inputs:{label:"label",icon:"icon",image:"image",size:"size",shape:"shape",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onImageError:"onImageError"},features:[ge([Sl]),Z],ngContentSelectors:ef,decls:6,vars:2,consts:[["iconTemplate",""],["imageTemplate",""],["class","p-avatar-text",4,"ngIf","ngIfElse"],[1,"p-avatar-text"],[3,"class","ngClass",4,"ngIf","ngIfElse"],[3,"ngClass"],[3,"src","error",4,"ngIf"],[3,"error","src"]],template:function(i,o){if(i&1&&(Pe(),we(0),v(1,tf,2,1,"span",2)(2,of,1,2,"ng-template",null,0,ke)(4,af,1,1,"ng-template",null,1,ke)),i&2){let s=it(3);g(),f("ngIf",o.label)("ngIfElse",s)}},dependencies:[se,ye,Me,N],encapsulation:2,changeDetection:0})}return t})(),Ty=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[cf,N,N]})}return t})();var df=({dt:t})=>`
.p-skeleton {
overflow: hidden;
background: ${t("skeleton.background")};
border-radius: ${t("skeleton.border.radius")};
}
.p-skeleton::after {
content: "";
animation: p-skeleton-animation 1.2s infinite;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
transform: translateX(-100%);
z-index: 1;
background: linear-gradient(90deg, rgba(255, 255, 255, 0), ${t("skeleton.animation.background")}, rgba(255, 255, 255, 0));
}
[dir='rtl'] .p-skeleton::after {
animation-name: p-skeleton-animation-rtl;
}
.p-skeleton-circle {
border-radius: 50%;
}
.p-skeleton-animation-none::after {
animation: none;
}
@keyframes p-skeleton-animation {
from {
transform: translateX(-100%);
}
to {
transform: translateX(100%);
}
}
@keyframes p-skeleton-animation-rtl {
from {
transform: translateX(100%);
}
to {
transform: translateX(-100%);
}
}
`,pf={root:{position:"relative"}},uf={root:({props:t})=>["p-skeleton p-component",{"p-skeleton-circle":t.shape==="circle","p-skeleton-animation-none":t.animation==="none"}]},kl=(()=>{class t extends be{name="skeleton";theme=df;classes=uf;inlineStyles=pf;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var hf=(()=>{class t extends le{styleClass;style;shape="rectangle";animation="wave";borderRadius;size;width="100%";height="1rem";_componentStyle=ne(kl);containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":this.shape==="circle","p-skeleton-animation-none":this.animation==="none"}}get containerStyle(){let e=this._componentStyle?.inlineStyles.root,i;return this.size?i=Xt(St(St({},this.style),e),{width:this.size,height:this.size,borderRadius:this.borderRadius}):i=St(Xt(St({},e),{width:this.width,height:this.height,borderRadius:this.borderRadius}),this.style),i}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-skeleton"]],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},features:[ge([kl]),Z],decls:1,vars:7,consts:[[3,"ngClass","ngStyle"]],template:function(i,o){i&1&&z(0,"div",0),i&2&&(B(o.styleClass),f("ngClass",o.containerClass())("ngStyle",o.containerStyle),S("data-pc-name","skeleton")("aria-hidden",!0)("data-pc-section","root"))},dependencies:[se,ye,Ue,N],encapsulation:2,changeDetection:0})}return t})(),zy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[hf,N,N]})}return t})();var ff=["*"],mf=({dt:t})=>`
.p-divider-horizontal {
display: flex;
width: 100%;
position: relative;
align-items: center;
margin: ${t("divider.horizontal.margin")};
padding: ${t("divider.horizontal.padding")};
}
.p-divider-horizontal:before {
position: absolute;
display: block;
inset-block-start: 50%;
inset-inline-start: 0;
width: 100%;
content: "";
border-block-start: 1px solid ${t("divider.border.color")};
}
.p-divider-horizontal .p-divider-content {
padding: ${t("divider.horizontal.content.padding")};
}
.p-divider-vertical {
min-height: 100%;
display: flex;
position: relative;
justify-content: center;
margin: ${t("divider.vertical.margin")};
padding: ${t("divider.vertical.padding")};
}
.p-divider-vertical:before {
position: absolute;
display: block;
inset-block-start: 0;
inset-inline-start: 50%;
height: 100%;
content: "";
border-inline-start: 1px solid ${t("divider.border.color")};
}
.p-divider.p-divider-vertical .p-divider-content {
padding: ${t("divider.vertical.content.padding")};
}
.p-divider-content {
z-index: 1;
background: ${t("divider.content.background")};
color: ${t("divider.content.color")};
}
.p-divider-solid.p-divider-horizontal:before {
border-block-start-style: solid;
}
.p-divider-solid.p-divider-vertical:before {
border-inline-start-style: solid;
}
.p-divider-dashed.p-divider-horizontal:before {
border-block-start-style: dashed;
}
.p-divider-dashed.p-divider-vertical:before {
border-inline-start-style: dashed;
}
.p-divider-dotted.p-divider-horizontal:before {
border-block-start-style: dotted;
}
.p-divider-dotted.p-divider-vertical:before {
border-inline-start-style: dotted;
}
.p-divider-left:dir(rtl),
.p-divider-right:dir(rtl) {
flex-direction: row-reverse;
}
`,gf={root:({props:t})=>({justifyContent:t.layout==="horizontal"?t.align==="center"||t.align===null?"center":t.align==="left"?"flex-start":t.align==="right"?"flex-end":null:null,alignItems:t.layout==="vertical"?t.align==="center"||t.align===null?"center":t.align==="top"?"flex-start":t.align==="bottom"?"flex-end":null:null})},_f={root:({props:t})=>["p-divider p-component","p-divider-"+t.layout,"p-divider-"+t.type,{"p-divider-left":t.layout==="horizontal"&&(!t.align||t.align==="left")},{"p-divider-center":t.layout==="horizontal"&&t.align==="center"},{"p-divider-right":t.layout==="horizontal"&&t.align==="right"},{"p-divider-top":t.layout==="vertical"&&t.align==="top"},{"p-divider-center":t.layout==="vertical"&&(!t.align||t.align==="center")},{"p-divider-bottom":t.layout==="vertical"&&t.align==="bottom"}],content:"p-divider-content"},Ml=(()=>{class t extends be{name="divider";theme=mf;classes=_f;inlineStyles=gf;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var bf=(()=>{class t extends le{style;styleClass;layout="horizontal";type="solid";align;_componentStyle=ne(Ml);get hostClass(){return this.styleClass}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-divider"]],hostVars:33,hostBindings:function(i,o){i&2&&(S("aria-orientation",o.layout)("data-pc-name","divider")("role","separator"),B(o.hostClass),je("justify-content",o.layout==="horizontal"?o.align==="center"||o.align===void 0?"center":o.align==="left"?"flex-start":o.align==="right"?"flex-end":null:null)("align-items",o.layout==="vertical"?o.align==="center"||o.align===void 0?"center":o.align==="top"?"flex-start":o.align==="bottom"?"flex-end":null:null),ct("p-divider",!0)("p-component",!0)("p-divider-horizontal",o.layout==="horizontal")("p-divider-vertical",o.layout==="vertical")("p-divider-solid",o.type==="solid")("p-divider-dashed",o.type==="dashed")("p-divider-dotted",o.type==="dotted")("p-divider-left",o.layout==="horizontal"&&(!o.align||o.align==="left"))("p-divider-center",o.layout==="horizontal"&&o.align==="center"||o.layout==="vertical"&&(!o.align||o.align==="center"))("p-divider-right",o.layout==="horizontal"&&o.align==="right")("p-divider-top",o.layout==="vertical"&&o.align==="top")("p-divider-bottom",o.layout==="vertical"&&o.align==="bottom"))},inputs:{style:"style",styleClass:"styleClass",layout:"layout",type:"type",align:"align"},features:[ge([Ml]),Z],ngContentSelectors:ff,decls:2,vars:0,consts:[[1,"p-divider-content"]],template:function(i,o){i&1&&(Pe(),w(0,"div",0),we(1),T())},dependencies:[se,N],encapsulation:2,changeDetection:0})}return t})(),Zy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[bf]})}return t})();var Ol=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["RefreshIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.77051 5.96336C6.84324 5.99355 6.92127 6.00891 7.00002 6.00854C7.07877 6.00891 7.1568 5.99355 7.22953 5.96336C7.30226 5.93317 7.36823 5.88876 7.42357 5.83273L9.82101 3.43529C9.93325 3.32291 9.99629 3.17058 9.99629 3.01175C9.99629 2.85292 9.93325 2.70058 9.82101 2.5882L7.42357 0.190763C7.3687 0.131876 7.30253 0.0846451 7.22901 0.0518865C7.15549 0.019128 7.07612 0.00151319 6.99564 9.32772e-05C6.91517 -0.00132663 6.83523 0.0134773 6.7606 0.0436218C6.68597 0.0737664 6.61817 0.118634 6.56126 0.175548C6.50435 0.232462 6.45948 0.300257 6.42933 0.374888C6.39919 0.449519 6.38439 0.529456 6.38581 0.609933C6.38722 0.690409 6.40484 0.769775 6.4376 0.843296C6.47036 0.916817 6.51759 0.982986 6.57647 1.03786L7.95103 2.41241H6.99998C5.46337 2.41241 3.98969 3.02283 2.90314 4.10938C1.81659 5.19593 1.20618 6.66961 1.20618 8.20622C1.20618 9.74283 1.81659 11.2165 2.90314 12.3031C3.98969 13.3896 5.46337 14 6.99998 14C8.53595 13.9979 10.0084 13.3868 11.0945 12.3007C12.1806 11.2146 12.7917 9.74218 12.7938 8.20622C12.7938 8.04726 12.7306 7.89481 12.6182 7.78241C12.5058 7.67001 12.3534 7.60686 12.1944 7.60686C12.0355 7.60686 11.883 7.67001 11.7706 7.78241C11.6582 7.89481 11.5951 8.04726 11.5951 8.20622C11.5951 9.11504 11.3256 10.0035 10.8207 10.7591C10.3157 11.5148 9.59809 12.1037 8.75845 12.4515C7.9188 12.7993 6.99489 12.8903 6.10353 12.713C5.21217 12.5357 4.3934 12.0981 3.75077 11.4554C3.10813 10.8128 2.67049 9.99404 2.49319 9.10268C2.31589 8.21132 2.40688 7.2874 2.75468 6.44776C3.10247 5.60811 3.69143 4.89046 4.44709 4.38554C5.20275 3.88063 6.09116 3.61113 6.99998 3.61113H7.95098L6.57647 4.98564C6.46423 5.09802 6.40119 5.25035 6.40119 5.40918C6.40119 5.56801 6.46423 5.72035 6.57647 5.83273C6.63181 5.88876 6.69778 5.93317 6.77051 5.96336Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(gt(),w(0,"svg",0)(1,"g"),z(2,"path",1),T(),w(3,"defs")(4,"clipPath",2),z(5,"rect",3),T()()()),i&2&&(B(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var Fl=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["SearchMinusIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.0208 12.0411C4.83005 12.0411 3.66604 11.688 2.67596 11.0265C1.68589 10.3649 0.914216 9.42464 0.458534 8.32452C0.00285271 7.22441 -0.116374 6.01388 0.11593 4.84601C0.348235 3.67813 0.921637 2.60537 1.76363 1.76338C2.60562 0.921393 3.67838 0.34799 4.84625 0.115686C6.01412 -0.116618 7.22466 0.00260857 8.32477 0.45829C9.42488 0.913972 10.3652 1.68564 11.0267 2.67572C11.6883 3.66579 12.0414 4.8298 12.0414 6.02056C12.0395 7.41563 11.5542 8.76029 10.6783 9.8305L13.8244 12.9765C13.9367 13.089 13.9997 13.2414 13.9997 13.4003C13.9997 13.5592 13.9367 13.7116 13.8244 13.8241C13.769 13.8801 13.703 13.9245 13.6302 13.9548C13.5575 13.985 13.4794 14.0003 13.4006 14C13.3218 14.0003 13.2437 13.985 13.171 13.9548C13.0982 13.9245 13.0322 13.8801 12.9768 13.8241L9.83082 10.678C8.76059 11.5539 7.4159 12.0393 6.0208 12.0411ZM6.0208 1.20731C5.07199 1.20731 4.14449 1.48867 3.35559 2.0158C2.56669 2.54292 1.95181 3.29215 1.58872 4.16874C1.22562 5.04532 1.13062 6.00989 1.31572 6.94046C1.50083 7.87104 1.95772 8.72583 2.62863 9.39674C3.29954 10.0676 4.15433 10.5245 5.0849 10.7096C6.01548 10.8947 6.98005 10.7997 7.85663 10.4367C8.73322 10.0736 9.48244 9.45868 10.0096 8.66978C10.5367 7.88088 10.8181 6.95337 10.8181 6.00457C10.8181 4.73226 10.3126 3.51206 9.41297 2.6124C8.51331 1.71274 7.29311 1.20731 6.0208 1.20731ZM4.00591 6.60422H8.00362C8.16266 6.60422 8.31518 6.54104 8.42764 6.42859C8.5401 6.31613 8.60328 6.1636 8.60328 6.00456C8.60328 5.84553 8.5401 5.693 8.42764 5.58054C8.31518 5.46809 8.16266 5.40491 8.00362 5.40491H4.00591C3.84687 5.40491 3.69434 5.46809 3.58189 5.58054C3.46943 5.693 3.40625 5.84553 3.40625 6.00456C3.40625 6.1636 3.46943 6.31613 3.58189 6.42859C3.69434 6.54104 3.84687 6.60422 4.00591 6.60422Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(gt(),w(0,"svg",0)(1,"g"),z(2,"path",1),T(),w(3,"defs")(4,"clipPath",2),z(5,"rect",3),T()()()),i&2&&(B(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var Dl=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["SearchPlusIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67596 11.0265C3.66604 11.688 4.83005 12.0411 6.0208 12.0411C6.81143 12.0411 7.59432 11.8854 8.32477 11.5828C8.86999 11.357 9.37802 11.0526 9.83311 10.6803L12.9768 13.8241C13.0322 13.8801 13.0982 13.9245 13.171 13.9548C13.2437 13.985 13.3218 14.0003 13.4006 14C13.4794 14.0003 13.5575 13.985 13.6302 13.9548C13.703 13.9245 13.769 13.8801 13.8244 13.8241C13.9367 13.7116 13.9997 13.5592 13.9997 13.4003C13.9997 13.2414 13.9367 13.089 13.8244 12.9765L10.6806 9.8328C11.0529 9.37773 11.3572 8.86972 11.5831 8.32452C11.8856 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0267 2.67572C10.3652 1.68564 9.42488 0.913972 8.32477 0.45829C7.22466 0.00260857 6.01412 -0.116618 4.84625 0.115686C3.67838 0.34799 2.60562 0.921393 1.76363 1.76338C0.921637 2.60537 0.348235 3.67813 0.11593 4.84601C-0.116374 6.01388 0.00285271 7.22441 0.458534 8.32452C0.914216 9.42464 1.68589 10.3649 2.67596 11.0265ZM3.35559 2.0158C4.14449 1.48867 5.07199 1.20731 6.0208 1.20731C7.29311 1.20731 8.51331 1.71274 9.41297 2.6124C10.3126 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5367 7.88088 10.0096 8.66978C9.48244 9.45868 8.73322 10.0736 7.85663 10.4367C6.98005 10.7997 6.01548 10.8947 5.0849 10.7096C4.15433 10.5245 3.29954 10.0676 2.62863 9.39674C1.95772 8.72583 1.50083 7.87104 1.31572 6.94046C1.13062 6.00989 1.22562 5.04532 1.58872 4.16874C1.95181 3.29215 2.56669 2.54292 3.35559 2.0158ZM6.00481 8.60309C5.84641 8.60102 5.69509 8.53718 5.58308 8.42517C5.47107 8.31316 5.40722 8.16183 5.40515 8.00344V6.60422H4.00591C3.84687 6.60422 3.69434 6.54104 3.58189 6.42859C3.46943 6.31613 3.40625 6.1636 3.40625 6.00456C3.40625 5.84553 3.46943 5.693 3.58189 5.58054C3.69434 5.46809 3.84687 5.40491 4.00591 5.40491H5.40515V4.00572C5.40515 3.84668 5.46833 3.69416 5.58079 3.5817C5.69324 3.46924 5.84577 3.40607 6.00481 3.40607C6.16385 3.40607 6.31637 3.46924 6.42883 3.5817C6.54129 3.69416 6.60447 3.84668 6.60447 4.00572V5.40491H8.00362C8.16266 5.40491 8.31518 5.46809 8.42764 5.58054C8.5401 5.693 8.60328 5.84553 8.60328 6.00456C8.60328 6.1636 8.5401 6.31613 8.42764 6.42859C8.31518 6.54104 8.16266 6.60422 8.00362 6.60422H6.60447V8.00344C6.60239 8.16183 6.53855 8.31316 6.42654 8.42517C6.31453 8.53718 6.1632 8.60102 6.00481 8.60309Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(gt(),w(0,"svg",0)(1,"g"),z(2,"path",1),T(),w(3,"defs")(4,"clipPath",2),z(5,"rect",3),T()()()),i&2&&(B(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var Al=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["UndoIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.77042 5.96336C6.84315 5.99355 6.92118 6.00891 6.99993 6.00854C7.07868 6.00891 7.15671 5.99355 7.22944 5.96336C7.30217 5.93317 7.36814 5.88876 7.42348 5.83273C7.53572 5.72035 7.59876 5.56801 7.59876 5.40918C7.59876 5.25035 7.53572 5.09802 7.42348 4.98564L6.04897 3.61113H6.99998C7.9088 3.61113 8.79722 3.88063 9.55288 4.38554C10.3085 4.89046 10.8975 5.60811 11.2453 6.44776C11.5931 7.2874 11.6841 8.21132 11.5068 9.10268C11.3295 9.99404 10.8918 10.8128 10.2492 11.4554C9.60657 12.0981 8.7878 12.5357 7.89644 12.713C7.00508 12.8903 6.08116 12.7993 5.24152 12.4515C4.40188 12.1037 3.68422 11.5148 3.17931 10.7591C2.67439 10.0035 2.4049 9.11504 2.4049 8.20622C2.4049 8.04726 2.34175 7.89481 2.22935 7.78241C2.11695 7.67001 1.9645 7.60686 1.80554 7.60686C1.64658 7.60686 1.49413 7.67001 1.38172 7.78241C1.26932 7.89481 1.20618 8.04726 1.20618 8.20622C1.20829 9.74218 1.81939 11.2146 2.90548 12.3007C3.99157 13.3868 5.46402 13.9979 6.99998 14C8.5366 14 10.0103 13.3896 11.0968 12.3031C12.1834 11.2165 12.7938 9.74283 12.7938 8.20622C12.7938 6.66961 12.1834 5.19593 11.0968 4.10938C10.0103 3.02283 8.5366 2.41241 6.99998 2.41241H6.04892L7.42348 1.03786C7.48236 0.982986 7.5296 0.916817 7.56235 0.843296C7.59511 0.769775 7.61273 0.690409 7.61415 0.609933C7.61557 0.529456 7.60076 0.449519 7.57062 0.374888C7.54047 0.300257 7.49561 0.232462 7.43869 0.175548C7.38178 0.118634 7.31398 0.0737664 7.23935 0.0436218C7.16472 0.0134773 7.08478 -0.00132663 7.00431 9.32772e-05C6.92383 0.00151319 6.84447 0.019128 6.77095 0.0518865C6.69742 0.0846451 6.63126 0.131876 6.57638 0.190763L4.17895 2.5882C4.06671 2.70058 4.00366 2.85292 4.00366 3.01175C4.00366 3.17058 4.06671 3.32291 4.17895 3.43529L6.57638 5.83273C6.63172 5.88876 6.69769 5.93317 6.77042 5.96336Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(gt(),w(0,"svg",0)(1,"g"),z(2,"path",1),T(),w(3,"defs")(4,"clipPath",2),z(5,"rect",3),T()()()),i&2&&(B(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var El=(()=>{class t extends bt{pathId;ngOnInit(){this.pathId="url(#"+Re()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["UploadIcon"]],features:[Z],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(gt(),w(0,"svg",0)(1,"g"),z(2,"path",1),T(),w(3,"defs")(4,"clipPath",2),z(5,"rect",3),T()()()),i&2&&(B(o.getClassNames()),S("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),g(),S("clip-path",o.pathId),g(3),f("id",o.pathId))},encapsulation:2})}return t})();var io=["*"],yf=["toggleicon"],vf=t=>({active:t});function xf(t,n){}function Cf(t,n){t&1&&v(0,xf,0,0,"ng-template")}function wf(t,n){if(t&1&&v(0,Cf,1,0,null,0),t&2){let e=_();f("ngTemplateOutlet",e.toggleicon)("ngTemplateOutletContext",G(2,vf,e.active()))}}function Tf(t,n){if(t&1&&z(0,"span",4),t&2){let e=_(3);B(e.pcAccordion.collapseIcon),f("ngClass",e.pcAccordion.iconClass),S("aria-hidden",!0)}}function If(t,n){if(t&1&&z(0,"ChevronDownIcon",4),t&2){let e=_(3);f("ngClass",e.pcAccordion.iconClass),S("aria-hidden",!0)}}function Sf(t,n){if(t&1&&(te(0),v(1,Tf,1,4,"span",2)(2,If,1,2,"ChevronDownIcon",3),ie()),t&2){let e=_(2);g(),f("ngIf",e.pcAccordion.collapseIcon),g(),f("ngIf",!e.pcAccordion.collapseIcon)}}function kf(t,n){if(t&1&&z(0,"span",4),t&2){let e=_(3);B(e.pcAccordion.expandIcon),f("ngClass",e.pcAccordion.iconClass),S("aria-hidden",!0)}}function Mf(t,n){if(t&1&&z(0,"ChevronUpIcon",4),t&2){let e=_(3);f("ngClass",e.pcAccordion.iconClass),S("aria-hidden",!0)}}function Of(t,n){if(t&1&&(te(0),v(1,kf,1,4,"span",2)(2,Mf,1,2,"ChevronUpIcon",3),ie()),t&2){let e=_(2);g(),f("ngIf",e.pcAccordion.expandIcon),g(),f("ngIf",!e.pcAccordion.expandIcon)}}function Ff(t,n){if(t&1&&v(0,Sf,3,2,"ng-container",1)(1,Of,3,2,"ng-container",1),t&2){let e=_();f("ngIf",e.active()),g(),f("ngIf",!e.active())}}var eo=t=>({transitionParams:t}),Pl=t=>({value:"visible",params:t}),Ll=t=>({value:"hidden",params:t}),Df=["header"],Af=["icon"],Ef=["content"],Pf=["*",[["p-header"]]],Lf=["*","p-header"],Vf=t=>({$implicit:t});function zf(t,n){if(t&1&&Te(0),t&2){let e=_();Gt(" ",e.header," ")}}function Rf(t,n){t&1&&K(0)}function $f(t,n){if(t&1&&v(0,Rf,1,0,"ng-container",4),t&2){let e=_(2);f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Bf(t,n){t&1&&we(0,1)}function Hf(t,n){if(t&1&&v(0,$f,1,1,"ng-container")(1,Bf,1,0),t&2){let e=_();Ce(e.headerTemplate||e._headerTemplate?0:-1),g(),Ce(e.headerFacet?1:-1)}}function Nf(t,n){}function jf(t,n){t&1&&v(0,Nf,0,0,"ng-template")}function Uf(t,n){if(t&1&&v(0,jf,1,0,null,5),t&2){let e=_();f("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",G(2,Vf,e.selected))}}function Wf(t,n){if(t&1&&z(0,"span",8),t&2){let e=_(3);B(e.accordion.collapseIcon),f("ngClass",e.iconClass),S("aria-hidden",!0)}}function Qf(t,n){if(t&1&&z(0,"ChevronDownIcon",8),t&2){let e=_(3);f("ngClass",e.iconClass),S("aria-hidden",!0)}}function Kf(t,n){if(t&1&&(te(0),v(1,Wf,1,4,"span",6)(2,Qf,1,2,"ChevronDownIcon",7),ie()),t&2){let e=_(2);g(),f("ngIf",e.accordion.collapseIcon),g(),f("ngIf",!e.accordion.collapseIcon)}}function qf(t,n){if(t&1&&z(0,"span",8),t&2){let e=_(3);B(e.accordion.expandIcon),f("ngClass",e.iconClass),S("aria-hidden",!0)}}function Yf(t,n){if(t&1&&z(0,"ChevronUpIcon",8),t&2){let e=_(3);f("ngClass",e.iconClass),S("aria-hidden",!0)}}function Xf(t,n){if(t&1&&(te(0),v(1,qf,1,4,"span",6)(2,Yf,1,2,"ChevronUpIcon",7),ie()),t&2){let e=_(2);g(),f("ngIf",e.accordion.expandIcon),g(),f("ngIf",!e.accordion.expandIcon)}}function Gf(t,n){if(t&1&&v(0,Kf,3,2,"ng-container",3)(1,Xf,3,2,"ng-container",3),t&2){let e=_();f("ngIf",e.selected),g(),f("ngIf",!e.selected)}}function Zf(t,n){t&1&&K(0)}function Jf(t,n){if(t&1&&(te(0),v(1,Zf,1,0,"ng-container",4),ie()),t&2){let e=_();g(),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}var em=({dt:t})=>`
.p-accordionpanel {
display: flex;
flex-direction: column;
border-style: solid;
border-width: ${t("accordion.panel.border.width")};
border-color: ${t("accordion.panel.border.color")};
}
.p-accordionheader {
all: unset;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
padding: ${t("accordion.header.padding")};
color: ${t("accordion.header.color")};
background: ${t("accordion.header.background")};
border-style: solid;
border-width: ${t("accordion.header.border.width")};
border-color: ${t("accordion.header.border.color")};
font-weight: ${t("accordion.header.font.weight")};
border-radius: ${t("accordion.header.border.radius")};
transition: background ${t("accordion.transition.duration")}; color ${t("accordion.transition.duration")}color ${t("accordion.transition.duration")}, outline-color ${t("accordion.transition.duration")}, box-shadow ${t("accordion.transition.duration")};
outline-color: transparent;
position: relative;
overflow: hidden;
}
.p-accordionpanel:first-child > .p-accordionheader {
border-width: ${t("accordion.header.first.border.width")};
border-start-start-radius: ${t("accordion.header.first.top.border.radius")};
border-start-end-radius: ${t("accordion.header.first.top.border.radius")};
}
.p-accordionpanel:last-child > .p-accordionheader {
border-end-start-radius: ${t("accordion.header.last.bottom.border.radius")};
border-end-end-radius: ${t("accordion.header.last.bottom.border.radius")};
}
.p-accordionpanel:last-child.p-accordionpanel-active > .p-accordionheader {
border-end-start-radius: ${t("accordion.header.last.active.bottom.border.radius")};
border-end-end-radius:${t("accordion.header.last.active.bottom.border.radius")};
}
.p-accordionheader-toggle-icon {
color: ${t("accordion.header.toggle.icon.color")};
}
.p-accordionpanel:not(.p-disabled) .p-accordionheader:focus-visible {
box-shadow: ${t("accordion.header.focus.ring.shadow")};
outline: ${t("accordion.header.focus.ring.width")} ${t("accordion.header.focus.ring.style")} ${t("accordion.header.focus.ring.color")};
outline-offset: ${t("accordion.header.focus.ring.offset")};
}
.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled) > .p-accordionheader:hover {
background: ${t("accordion.header.hover.background")};
color: ${t("accordion.header.hover.color")}
}
.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled) .p-accordionheader:hover .p-accordionheader-toggle-icon {
color: ${t("accordion.header.toggle.icon.hover.color")};
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader {
background: ${t("accordion.header.active.background")};
color: ${t("accordion.header.active.color")}
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader .p-accordionheader-toggle-icon {
color: ${t("accordion.header.toggle.icon.active.color")};
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader:hover {
background: ${t("accordion.header.active.hover.background")};
color: ${t("accordion.header.active.hover.color")}
}
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader:hover .p-accordionheader-toggle-icon {
color: ${t("accordion.header.toggle.icon.active.hover.color")};
}
.p-accordioncontent-content {
border-style: solid;
border-width: ${t("accordion.content.border.width")};
border-color: ${t("accordion.content.border.color")};
background-color: ${t("accordion.content.background")};
color: ${t("accordion.content.color")};
padding: ${t("accordion.content.padding")}
}
/*For PrimeNG*/
.p-accordion .p-accordioncontent {
overflow: hidden;
}
.p-accordionpanel.p-accordioncontent:not(.ng-animating) {
overflow: inherit;
}
.p-accordionheader-toggle-icon.icon-start {
order: -1;
}
.p-accordionheader:has(.p-accordionheader-toggle-icon.icon-start) {
justify-content: flex-start;
gap: ${t("accordion.header.padding")};
}
`,tm={root:"p-accordion p-component"},to=(()=>{class t extends be{name="accordion";theme=em;classes=tm;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Is=(()=>{class t extends le{pcAccordion=ne(kt(()=>nn));value=oo(void 0);disabled=an(!1,{transform:e=>fn(e)});active=nt(()=>this.pcAccordion.multiple()?this.valueEquals(this.pcAccordion.value(),this.value()):this.pcAccordion.value()===this.value());valueEquals(e,i){return Array.isArray(e)?e.includes(i):e===i}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-accordion-panel"],["p-accordionpanel"]],hostVars:9,hostBindings:function(i,o){i&2&&(S("data-pc-name","accordionpanel")("data-p-disabled",o.disabled())("data-p-active",o.active()),ct("p-accordionpanel",!0)("p-accordionpanel-active",o.active())("p-disabled",o.disabled()))},inputs:{value:[1,"value"],disabled:[1,"disabled"]},outputs:{value:"valueChange"},features:[Z],ngContentSelectors:io,decls:1,vars:0,template:function(i,o){i&1&&(Pe(),we(0))},dependencies:[se],encapsulation:2,changeDetection:0})}return t})(),im=(()=>{class t extends le{pcAccordion=ne(kt(()=>nn));pcAccordionPanel=ne(kt(()=>Is));id=nt(()=>`${this.pcAccordion.id()}_accordionheader_${this.pcAccordionPanel.value()}`);active=nt(()=>this.pcAccordionPanel.active());disabled=nt(()=>this.pcAccordionPanel.disabled());ariaControls=nt(()=>`${this.pcAccordion.id()}_accordioncontent_${this.pcAccordionPanel.value()}`);toggleicon;onClick(e){let i=this.active();this.changeActiveValue();let o=this.active(),s=this.pcAccordionPanel.value();!i&&o?this.pcAccordion.onOpen.emit({originalEvent:e,index:s}):i&&!o&&this.pcAccordion.onClose.emit({originalEvent:e,index:s})}onFocus(){this.pcAccordion.selectOnFocus()&&this.changeActiveValue()}onKeydown(e){switch(e.code){case"ArrowDown":this.arrowDownKey(e);break;case"ArrowUp":this.arrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnterKey(e);break;default:break}}changeActiveValue(){this.pcAccordion.updateValue(this.pcAccordionPanel.value())}findPanel(e){return e?.closest('[data-pc-name="accordionpanel"]')}findHeader(e){return et(e,'[data-pc-name="accordionheader"]')}findNextPanel(e,i=!1){let o=i?e:e.nextElementSibling;return o?Jt(o,"data-p-disabled")?this.findNextPanel(o):this.findHeader(o):null}findPrevPanel(e,i=!1){let o=i?e:e.previousElementSibling;return o?Jt(o,"data-p-disabled")?this.findPrevPanel(o):this.findHeader(o):null}findFirstPanel(){return this.findNextPanel(this.pcAccordion.el.nativeElement.firstElementChild,!0)}findLastPanel(){return this.findPrevPanel(this.pcAccordion.el.nativeElement.lastElementChild,!0)}changeFocusedPanel(e,i){qe(i)}arrowDownKey(e){let i=this.findNextPanel(this.findPanel(e.currentTarget));i?this.changeFocusedPanel(e,i):this.onHomeKey(e),e.preventDefault()}arrowUpKey(e){let i=this.findPrevPanel(this.findPanel(e.currentTarget));i?this.changeFocusedPanel(e,i):this.onEndKey(e),e.preventDefault()}onHomeKey(e){let i=this.findFirstPanel();this.changeFocusedPanel(e,i),e.preventDefault()}onEndKey(e){let i=this.findLastPanel();this.changeFocusedPanel(e,i),e.preventDefault()}onEnterKey(e){this.changeActiveValue(),e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-accordion-header"],["p-accordionheader"]],contentQueries:function(i,o,s){if(i&1&&L(s,yf,5),i&2){let a;F(a=D())&&(o.toggleicon=a.first)}},hostVars:13,hostBindings:function(i,o){i&1&&$("click",function(a){return o.onClick(a)})("focus",function(a){return o.onFocus(a)})("keydown",function(a){return o.onKeydown(a)}),i&2&&(S("id",o.id())("aria-expanded",o.active())("aria-controls",o.ariaControls())("aria-disabled",o.disabled())("role","button")("tabindex",o.disabled()?"-1":"0")("data-p-active",o.active())("data-p-disabled",o.disabled())("data-pc-name","accordionheader"),je("user-select","none"),ct("p-accordionheader",!0))},features:[Es([gi]),Z],ngContentSelectors:io,decls:3,vars:1,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,o){i&1&&(Pe(),we(0),v(1,wf,1,4)(2,Ff,2,2)),i&2&&(g(),Ce(o.toggleicon?1:2))},dependencies:[se,ye,Me,De,ti,Li],encapsulation:2,changeDetection:0})}return t})(),nm=(()=>{class t extends le{pcAccordion=ne(kt(()=>nn));pcAccordionPanel=ne(kt(()=>Is));active=nt(()=>this.pcAccordionPanel.active());ariaLabelledby=nt(()=>`${this.pcAccordion.id()}_accordionheader_${this.pcAccordionPanel.value()}`);id=nt(()=>`${this.pcAccordion.id()}_accordioncontent_${this.pcAccordionPanel.value()}`);static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-accordion-content"],["p-accordioncontent"]],hostVars:7,hostBindings:function(i,o){i&2&&(S("id",o.id())("role","region")("data-pc-name","accordioncontent")("data-p-active",o.active())("aria-labelledby",o.ariaLabelledby()),ct("p-accordioncontent",!0))},features:[Z],ngContentSelectors:io,decls:2,vars:9,consts:[[1,"p-accordioncontent-content"]],template:function(i,o){i&1&&(Pe(),w(0,"div",0),we(1),T()),i&2&&f("@content",o.active()?G(3,Pl,G(1,eo,o.pcAccordion.transitionOptions)):G(7,Ll,G(5,eo,o.pcAccordion.transitionOptions)))},dependencies:[se],encapsulation:2,data:{animation:[Zt("content",[Ei("hidden",ut({height:"0",paddingBottom:"0",visibility:"hidden"})),Ei("visible",ut({height:"*",visibility:"visible"})),ht("visible <=> hidden",[pt("{{transitionParams}}")]),ht("void => *",pt(0))])]},changeDetection:0})}return t})(),Vl=(()=>{class t extends le{get hostClass(){return this.tabStyleClass}get hostStyle(){return this.tabStyle}id=Re("pn_id_");header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.cd.detectChanges())}headerAriaLevel=2;selectedChange=new U;headerFacet;_selected=!1;get iconClass(){return this.iconPos==="end"?"p-accordionheader-toggle-icon icon-end":"p-accordionheader-toggle-icon icon-start"}headerTemplate;iconTemplate;contentTemplate;templates;_headerTemplate;_iconTemplate;_contentTemplate;loaded=!1;accordion=ne(kt(()=>nn));_componentStyle=ne(to);ngOnInit(){super.ngOnInit(),console.log("AccordionTab is deprecated as of v18, please use the new structure instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}toggle(e){if(this.disabled)return!1;let i=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:i});else{if(!this.accordion.multiple())for(var o=0;o<this.accordion.tabs.length;o++)this.accordion.tabs[o].selected&&(this.accordion.tabs[o].selected=!1,this.accordion.tabs[o].selectedChange.emit(!1),this.accordion.tabs[o].cd.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:e,index:i})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.cd.markForCheck(),e?.preventDefault()}findTabIndex(){let e=-1;for(var i=0;i<this.accordion.tabs.length;i++)if(this.accordion.tabs[i]==this){e=i;break}return e}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault();break;default:break}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-accordionTab"],["p-accordion-tab"],["p-accordiontab"]],contentQueries:function(i,o,s){if(i&1&&(L(s,Df,4),L(s,Af,4),L(s,Ef,4),L(s,mi,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.headerTemplate=a.first),F(a=D())&&(o.iconTemplate=a.first),F(a=D())&&(o.contentTemplate=a.first),F(a=D())&&(o.headerFacet=a),F(a=D())&&(o.templates=a)}},hostVars:9,hostBindings:function(i,o){i&2&&(S("data-pc-name","accordiontab"),tt(o.hostStyle),B(o.hostClass),ct("p-accordionpanel",!0)("p-accordionpanel-active",o.selected))},inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:[2,"disabled","disabled",H],cache:[2,"cache","cache",H],transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:[2,"headerAriaLevel","headerAriaLevel",ze]},outputs:{selectedChange:"selectedChange"},features:[ge([to]),Ee,Z],ngContentSelectors:Lf,decls:9,vars:30,consts:[["type","button",1,"p-accordionheader",3,"click","keydown","disabled","ngClass","ngStyle"],["role","region",1,"p-accordioncontent"],[1,"p-accordioncontent-content",3,"ngClass","ngStyle"],[4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,o){i&1&&(Pe(Pf),w(0,"button",0),$("click",function(a){return o.toggle(a)})("keydown",function(a){return o.onKeydown(a)}),v(1,zf,1,1)(2,Hf,2,2)(3,Uf,1,4)(4,Gf,2,2),T(),w(5,"div",1)(6,"div",2),we(7),v(8,Jf,2,1,"ng-container",3),T()()),i&2&&(ct("p-disabled",o.disabled),f("disabled",o.disabled)("ngClass",o.headerStyleClass)("ngStyle",o.headerStyle),S("aria-expanded",o.selected)("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","accordionheader")("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id)),g(),Ce(!o.headerTemplate&&!o._headerTemplate?1:2),g(2),Ce(o.iconTemplate||o._iconTemplate?3:4),g(2),f("@tabContent",o.selected?G(24,Pl,G(22,eo,o.transitionOptions)):G(28,Ll,G(26,eo,o.transitionOptions))),S("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),g(),f("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),g(2),f("ngIf",(o.contentTemplate||o._contentTemplate)&&(o.cache?o.loaded:o.selected)))},dependencies:[se,ye,Me,De,Ue,ti,Li],encapsulation:2,data:{animation:[Zt("tabContent",[Ei("hidden",ut({height:"0",visibility:"hidden"})),Ei("visible",ut({height:"*",visibility:"visible"})),ht("visible <=> hidden",[pt("{{transitionParams}}")]),ht("void => *",pt(0))])]},changeDetection:0})}return t})(),nn=(()=>{class t extends le{get hostClass(){return this.styleClass}get hostStyle(){return this.style}value=oo(void 0);multiple=an(!1,{transform:e=>fn(e)});style;styleClass;expandIcon;collapseIcon;selectOnFocus=an(!1,{transform:e=>fn(e)});set activeIndex(e){if(this._activeIndex=e,this.preventActiveIndexPropagation){this.preventActiveIndexPropagation=!1;return}this.updateSelectionState()}transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";activeIndexChange=new U;set headerAriaLevel(e){typeof e=="number"&&e>0?this._headerAriaLevel=e:this._headerAriaLevel!==2&&(this._headerAriaLevel=2)}onClose=new U;onOpen=new U;id=lt(Re("pn_id_"));tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];_componentStyle=ne(to);get activeIndex(){return this._activeIndex}get headerAriaLevel(){return this._headerAriaLevel}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":e.shiftKey||this.onTabHomeKey(e);break;case"End":e.shiftKey||this.onTabEndKey(e);break}}onTabArrowDownKey(e){let i=this.findNextHeaderAction(e.target.parentElement);i?this.changeFocusedTab(i):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){let i=this.findPrevHeaderAction(e.target.parentElement);i?this.changeFocusedTab(i):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){let i=this.findFirstHeaderAction();this.changeFocusedTab(i),e.preventDefault()}changeFocusedTab(e){e&&(qe(e),this.selectOnFocus()&&this.tabs.forEach((i,o)=>{let s=this.multiple()?this._activeIndex.includes(o):o===this._activeIndex;this.multiple()?(this._activeIndex||(this._activeIndex=[]),i.id==e.id&&(i.selected=!i.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(a=>a!==o):this._activeIndex.push(o))):i.id==e.id?(i.selected=!i.selected,this._activeIndex=o):i.selected=!1,i.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),i.cd.markForCheck()}))}findNextHeaderAction(e,i=!1){let o=i?e:e.nextElementSibling,s=et(o,'[data-pc-section="accordionheader"]');return s?Jt(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement):et(s.parentElement,'[data-pc-section="accordionheader"]'):null}findPrevHeaderAction(e,i=!1){let o=i?e:e.previousElementSibling,s=et(o,'[data-pc-section="accordionheader"]');return s?Jt(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement):et(s.parentElement,'[data-pc-section="accordionheader"]'):null}findFirstHeaderAction(){let e=this.el.nativeElement.firstElementChild;return this.findNextHeaderAction(e,!0)}findLastHeaderAction(){let e=this.el.nativeElement.lastElementChild;return this.findPrevHeaderAction(e,!0)}onTabEndKey(e){let i=this.findLastHeaderAction();this.changeFocusedTab(i),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.cd.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&this._activeIndex!=null)for(let e=0;e<this.tabs.length;e++){let i=this.multiple()?this._activeIndex.includes(e):e===this._activeIndex;i!==this.tabs[e].selected&&(this.tabs[e].selected=i,this.tabs[e].selectedChange.emit(i),this.tabs[e].cd.markForCheck())}}isTabActive(e){return this.multiple()?this._activeIndex&&this._activeIndex.includes(e):this._activeIndex===e}getTabProp(e,i){return e.props?e.props[i]:void 0}updateActiveIndex(){let e=this.multiple()?[]:null;this.tabs.forEach((i,o)=>{if(i.selected)if(this.multiple())e.push(o);else{e=o;return}}),this.preventActiveIndexPropagation=!0,this._activeIndex=e,this.activeIndexChange.emit(e)}updateValue(e){let i=this.value();if(this.multiple()){let o=Array.isArray(i)?[...i]:[],s=o.indexOf(e);s!==-1?o.splice(s,1):o.push(e),this.value.set(o)}else i===e?this.value.set(void 0):this.value.set(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-accordion"]],contentQueries:function(i,o,s){if(i&1&&L(s,Vl,5),i&2){let a;F(a=D())&&(o.tabList=a)}},hostVars:8,hostBindings:function(i,o){i&1&&$("keydown",function(a){return o.onKeydown(a)}),i&2&&(tt(o.hostStyle),B(o.hostClass),ct("p-accordion",!0)("p-component",!0))},inputs:{value:[1,"value"],multiple:[1,"multiple"],style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",selectOnFocus:[1,"selectOnFocus"],transitionOptions:"transitionOptions",activeIndex:"activeIndex",headerAriaLevel:"headerAriaLevel"},outputs:{value:"valueChange",activeIndexChange:"activeIndexChange",onClose:"onClose",onOpen:"onOpen"},features:[ge([to]),Z],ngContentSelectors:io,decls:1,vars:0,template:function(i,o){i&1&&(Pe(),we(0))},dependencies:[se,N],encapsulation:2,changeDetection:0})}return t})(),Vv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[nn,Vl,N,Is,im,nm,N]})}return t})();var om=["indicator"],sm=["rotaterighticon"],am=["rotatelefticon"],rm=["zoomouticon"],lm=["zoominicon"],cm=["closeicon"],dm=["preview"],pm=["image"],um=["mask"],hm=["previewButton"],fm=["closeButton"],mm=t=>({errorCallback:t}),gm=(t,n)=>({height:t,width:n}),_m=t=>({"p-image-action p-image-zoom-out-button":!0,"p-disabled":t}),bm=t=>({"p-image-action p-image-zoom-in-button":!0,"p-disabled":t}),ym=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),vm=t=>({value:"visible",params:t}),xm=(t,n)=>({class:"p-image-original",style:t,previewCallback:n});function Cm(t,n){if(t&1){let e=X();te(0),w(1,"img",9),$("error",function(o){A(e);let s=_();return E(s.imageError(o))}),T(),ie()}if(t&2){let e=_();g(),B(e.imageClass),f("ngStyle",e.imageStyle),S("src",e.src,Mt)("srcset",e.srcSet)("sizes",e.sizes)("alt",e.alt)("width",e.width)("height",e.height)("loading",e.loading)}}function wm(t,n){t&1&&K(0)}function Tm(t,n){t&1&&K(0)}function Im(t,n){if(t&1&&(te(0),v(1,Tm,1,0,"ng-container",12),ie()),t&2){let e=_(2);g(),f("ngTemplateOutlet",e.indicatorTemplate||e._indicatorTemplate)}}function Sm(t,n){t&1&&z(0,"EyeIcon",13),t&2&&f("styleClass","p-image-preview-icon")}function km(t,n){if(t&1){let e=X();w(0,"button",10,0),$("click",function(){A(e);let o=_();return E(o.onImageClick())}),v(2,Im,2,1,"ng-container",11)(3,Sm,1,1,"ng-template",null,1,ke),T()}if(t&2){let e=it(4),i=_();f("ngStyle",Ke(4,gm,i.height+"px",i.width+"px")),S("aria-label",i.zoomImageAriaLabel),g(2),f("ngIf",i.indicatorTemplate||!i._indicatorTemplate)("ngIfElse",e)}}function Mm(t,n){t&1&&z(0,"RefreshIcon")}function Om(t,n){}function Fm(t,n){t&1&&v(0,Om,0,0,"ng-template")}function Dm(t,n){t&1&&z(0,"UndoIcon")}function Am(t,n){}function Em(t,n){t&1&&v(0,Am,0,0,"ng-template")}function Pm(t,n){t&1&&z(0,"SearchMinusIcon")}function Lm(t,n){}function Vm(t,n){t&1&&v(0,Lm,0,0,"ng-template")}function zm(t,n){t&1&&z(0,"SearchPlusIcon")}function Rm(t,n){}function $m(t,n){t&1&&v(0,Rm,0,0,"ng-template")}function Bm(t,n){t&1&&z(0,"TimesIcon")}function Hm(t,n){}function Nm(t,n){t&1&&v(0,Hm,0,0,"ng-template")}function jm(t,n){if(t&1){let e=X();te(0),w(1,"img",20),$("click",function(){A(e);let o=_(3);return E(o.onPreviewImageClick())}),T(),ie()}if(t&2){let e=_(3);g(),f("ngStyle",e.imagePreviewStyle()),S("src",e.previewImageSrc?e.previewImageSrc:e.src,Mt)("srcset",e.previewImageSrcSet)("sizes",e.previewImageSizes)}}function Um(t,n){t&1&&K(0)}function Wm(t,n){if(t&1){let e=X();w(0,"div"),$("@animation.start",function(o){A(e);let s=_(2);return E(s.onAnimationStart(o))})("@animation.done",function(o){A(e);let s=_(2);return E(s.onAnimationEnd(o))}),v(1,jm,2,4,"ng-container",5)(2,Um,1,0,"ng-container",6),T()}if(t&2){let e=_(2);f("@animation",G(7,vm,Ke(4,ym,e.showTransitionOptions,e.hideTransitionOptions))),g(),f("ngIf",!e.previewTemplate&&!e._previewTemplate),g(),f("ngTemplateOutlet",e.previewTemplate||e._previewTemplate)("ngTemplateOutletContext",Ke(9,xm,e.imagePreviewStyle(),e.onPreviewImageClick.bind(e)))}}function Qm(t,n){if(t&1){let e=X();w(0,"div",14,2),$("click",function(){A(e);let o=_();return E(o.onMaskClick())})("keydown",function(o){A(e);let s=_();return E(s.onMaskKeydown(o))}),w(2,"div",15),$("click",function(o){A(e);let s=_();return E(s.handleToolbarClick(o))}),w(3,"button",16),$("click",function(){A(e);let o=_();return E(o.rotateRight())}),v(4,Mm,1,0,"RefreshIcon",5)(5,Fm,1,0,null,12),T(),w(6,"button",17),$("click",function(){A(e);let o=_();return E(o.rotateLeft())}),v(7,Dm,1,0,"UndoIcon",5)(8,Em,1,0,null,12),T(),w(9,"button",18),$("click",function(){A(e);let o=_();return E(o.zoomOut())}),v(10,Pm,1,0,"SearchMinusIcon",5)(11,Vm,1,0,null,12),T(),w(12,"button",18),$("click",function(){A(e);let o=_();return E(o.zoomIn())}),v(13,zm,1,0,"SearchPlusIcon",5)(14,$m,1,0,null,12),T(),w(15,"button",19,3),$("click",function(){A(e);let o=_();return E(o.closePreview())}),v(17,Bm,1,0,"TimesIcon",5)(18,Nm,1,0,null,12),T()(),v(19,Wm,3,12,"div",5),T()}if(t&2){let e=_();S("aria-modal",e.maskVisible),g(3),S("aria-label",e.rightAriaLabel()),g(),f("ngIf",!e.rotateRightIconTemplate&&!e._rotateRightIconTemplate),g(),f("ngTemplateOutlet",e.rotateRightIconTemplate||e._rotateRightIconTemplate),g(),S("aria-label",e.leftAriaLabel()),g(),f("ngIf",!e.rotateLeftIconTemplate&&!e._rotateLeftIconTemplate),g(),f("ngTemplateOutlet",e.rotateLeftIconTemplate||e._rotateLeftIconTemplate),g(),f("ngClass",G(21,_m,e.isZoomOutDisabled))("disabled",e.isZoomOutDisabled),S("aria-label",e.zoomOutAriaLabel()),g(),f("ngIf",!e.zoomOutIconTemplate&&!e._zoomOutIconTemplate),g(),f("ngTemplateOutlet",e.zoomOutIconTemplate||e._zoomOutIconTemplate),g(),f("ngClass",G(23,bm,e.isZoomOutDisabled))("disabled",e.isZoomInDisabled),S("aria-label",e.zoomInAriaLabel()),g(),f("ngIf",!e.zoomInIconTemplate&&!e._zoomInIconTemplate),g(),f("ngTemplateOutlet",e.zoomInIconTemplate||e._zoomInIconTemplate),g(),S("aria-label",e.closeAriaLabel()),g(2),f("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),g(),f("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate),g(),f("ngIf",e.previewVisible)}}var Km=({dt:t})=>`
.p-image-mask {
display: flex;
align-items: center;
justify-content: center;
}
.p-image-preview {
position: relative;
display: inline-flex;
line-height: 0;
}
.p-image-preview-mask {
position: absolute;
inset-inline-start: 0;
inset-block-start: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
border: 0 none;
padding: 0;
cursor: pointer;
background: transparent;
color: ${t("image.preview.mask.color")};
transition: background ${t("image.transition.duration")};
}
.p-image-preview:hover > .p-image-preview-mask {
opacity: 1;
cursor: pointer;
background: ${t("image.preview.mask.background")};
}
.p-image-preview-icon {
font-size: ${t("image.preview.icon.size")};
width: ${t("image.preview.icon.size")};
height: ${t("image.preview.icon.size")};
}
.p-image-toolbar {
position: absolute;
inset-block-start: ${t("image.toolbar.position.top")};
inset-inline-end: ${t("image.toolbar.position.right")};
inset-inline-start: ${t("image.toolbar.position.left")};
inset-block-end: ${t("image.toolbar.position.bottom")};
display: flex;
z-index: 1;
padding: ${t("image.toolbar.padding")};
background: ${t("image.toolbar.background")};
backdrop-filter: blur(${t("image.toolbar.blur")});
border-color: ${t("image.toolbar.border.color")};
border-style: solid;
border-width: ${t("image.toolbar.border.width")};
border-radius: ${t("image.toolbar.border.radius")};
gap: ${t("image.toolbar.gap")};
}
.p-image-action {
display: inline-flex;
justify-content: center;
align-items: center;
color: ${t("image.action.color")};
background: transparent;
width: ${t("image.action.size")};
height: ${t("image.action.size")};
margin: 0;
padding: 0;
border: 0 none;
cursor: pointer;
user-select: none;
border-radius: ${t("image.action.border.radius")};
outline-color: transparent;
transition: background ${t("image.transition.duration")}, color ${t("image.transition.duration")}, outline-color ${t("image.transition.duration")}, box-shadow ${t("image.transition.duration")};
}
.p-image-action:hover {
color: ${t("image.action.hover.color")};
background: ${t("image.action.hover.background")};
}
.p-image-action:focus-visible {
box-shadow: ${t("toolbar.action.focus.ring.shadow")};
outline: ${t("toolbar.action.focus.ring.width")} ${t("toolbar.action.focus.ring.style")} ${t("toolbar.action.focus.ring.color")};
outline-offset: ${t("toolbar.action.focus.ring.offset")};
}
.p-image-action .p-icon {
font-size: ${t("image.action.icon.size")};
width: ${t("image.action.icon.size")};
height: ${t("image.action.icon.size")};
}
.p-image-action.p-disabled {
pointer-events: auto;
}
.p-image-original {
transition: transform 0.15s;
max-width: 100vw;
max-height: 100vh;
}
.p-image-original-enter-active {
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
}
.p-image-original-leave-active {
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.p-image-original-enter-from,
.p-image-original-leave-to {
opacity: 0;
transform: scale(0.7);
}
`,qm={root:({props:t})=>["p-image p-component",{"p-image-preview":t.preview}],previewMask:"p-image-preview-mask",previewIcon:"p-image-preview-icon",mask:"p-image-mask p-overlay-mask p-overlay-mask-enter",toolbar:"p-image-toolbar",rotateRightButton:"p-image-action p-image-rotate-right-button",rotateLeftButton:"p-image-action p-image-rotate-left-button",zoomOutButton:({instance:t})=>["p-image-action p-image-zoom-out-button",{"p-disabled":t.isZoomOutDisabled}],zoomInButton:({instance:t})=>["p-image-action p-image-zoom-in-button",{"p-disabled":t.isZoomInDisabled}],closeButton:"p-image-action p-image-close-button",original:"p-image-original"},zl=(()=>{class t extends be{name="image";theme=Km;classes=qm;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Ym=(()=>{class t extends le{imageClass;imageStyle;styleClass;style;src;srcSet;sizes;previewImageSrc;previewImageSrcSet;previewImageSizes;alt;width;height;loading;appendTo;preview=!1;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";onShow=new U;onHide=new U;onImageError=new U;mask;previewButton;closeButton;indicatorTemplate;rotateRightIconTemplate;rotateLeftIconTemplate;zoomOutIconTemplate;zoomInIconTemplate;closeIconTemplate;previewTemplate;imageTemplate;maskVisible=!1;previewVisible=!1;rotate=0;scale=1;previewClick=!1;container;wrapper;_componentStyle=ne(zl);get isZoomOutDisabled(){return this.scale-this.zoomSettings.step<=this.zoomSettings.min}get isZoomInDisabled(){return this.scale+this.zoomSettings.step>=this.zoomSettings.max}zoomSettings={default:1,step:.1,max:1.5,min:.5};constructor(){super()}templates;_indicatorTemplate;_rotateRightIconTemplate;_rotateLeftIconTemplate;_zoomOutIconTemplate;_zoomInIconTemplate;_closeIconTemplate;_imageTemplate;_previewTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"indicator":this._indicatorTemplate=e.template;break;case"rotaterighticon":this._rotateRightIconTemplate=e.template;break;case"rotatelefticon":this._rotateLeftIconTemplate=e.template;break;case"zoomouticon":this._zoomOutIconTemplate=e.template;break;case"zoominicon":this._zoomInIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"image":this._imageTemplate=e.template;break;case"preview":this._previewTemplate=e.template;break;default:this._indicatorTemplate=e.template;break}})}onImageClick(){this.preview&&(this.maskVisible=!0,this.previewVisible=!0,Us())}onMaskClick(){this.previewClick||this.closePreview(),this.previewClick=!1}onMaskKeydown(e){switch(e.code){case"Escape":this.onMaskClick(),setTimeout(()=>{qe(this.previewButton.nativeElement)},25),e.preventDefault();break;default:break}}onPreviewImageClick(){this.previewClick=!0}rotateRight(){this.rotate+=90,this.previewClick=!0}rotateLeft(){this.rotate-=90,this.previewClick=!0}zoomIn(){this.scale=this.scale+this.zoomSettings.step,this.previewClick=!0}zoomOut(){this.scale=this.scale-this.zoomSettings.step,this.previewClick=!0}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),setTimeout(()=>{qe(this.closeButton.nativeElement)},25);break;case"void":dn(this.wrapper,"p-overlay-mask-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":po.clear(this.wrapper),this.maskVisible=!1,this.container=null,this.wrapper=null,this.cd.markForCheck(),this.onHide.emit({});break;case"visible":this.onShow.emit({});break}}moveOnTop(){po.set("modal",this.wrapper,this.config.zIndex.modal)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.wrapper):Qs(this.appendTo,this.wrapper))}imagePreviewStyle(){return{transform:"rotate("+this.rotate+"deg) scale("+this.scale+")"}}get zoomImageAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomImage:void 0}containerClass(){return{"p-image p-component":!0,"p-image-preview":this.preview}}handleToolbarClick(e){e.stopPropagation()}closePreview(){this.previewVisible=!1,this.rotate=0,this.scale=this.zoomSettings.default,Ws()}imageError(e){this.onImageError.emit(e)}rightAriaLabel(){return this.config.translation.aria?this.config.translation.aria.rotateRight:void 0}leftAriaLabel(){return this.config.translation.aria?this.config.translation.aria.rotateLeft:void 0}zoomInAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomIn:void 0}zoomOutAriaLabel(){return this.config.translation.aria?this.config.translation.aria.zoomOut:void 0}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}onKeydownHandler(e){this.previewVisible&&this.closePreview()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Y({type:t,selectors:[["p-image"]],contentQueries:function(i,o,s){if(i&1&&(L(s,om,4),L(s,sm,4),L(s,am,4),L(s,rm,4),L(s,lm,4),L(s,cm,4),L(s,dm,4),L(s,pm,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.indicatorTemplate=a.first),F(a=D())&&(o.rotateRightIconTemplate=a.first),F(a=D())&&(o.rotateLeftIconTemplate=a.first),F(a=D())&&(o.zoomOutIconTemplate=a.first),F(a=D())&&(o.zoomInIconTemplate=a.first),F(a=D())&&(o.closeIconTemplate=a.first),F(a=D())&&(o.previewTemplate=a.first),F(a=D())&&(o.imageTemplate=a.first),F(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Oe(um,5),Oe(hm,5),Oe(fm,5)),i&2){let s;F(s=D())&&(o.mask=s.first),F(s=D())&&(o.previewButton=s.first),F(s=D())&&(o.closeButton=s.first)}},hostBindings:function(i,o){i&1&&$("keydown.escape",function(a){return o.onKeydownHandler(a)},!1,As)},inputs:{imageClass:"imageClass",imageStyle:"imageStyle",styleClass:"styleClass",style:"style",src:"src",srcSet:"srcSet",sizes:"sizes",previewImageSrc:"previewImageSrc",previewImageSrcSet:"previewImageSrcSet",previewImageSizes:"previewImageSizes",alt:"alt",width:"width",height:"height",loading:"loading",appendTo:"appendTo",preview:[2,"preview","preview",H],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide",onImageError:"onImageError"},features:[ge([zl]),Ee,Z],decls:5,vars:11,consts:[["previewButton",""],["defaultTemplate",""],["mask",""],["closeButton",""],[3,"ngClass","ngStyle"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-image-preview-mask",3,"ngStyle","click",4,"ngIf"],["class","p-image-mask p-overlay-mask p-overlay-mask-enter","role","dialog","pFocusTrap","",3,"click","keydown",4,"ngIf"],[3,"error","ngStyle"],["type","button",1,"p-image-preview-mask",3,"click","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"styleClass"],["role","dialog","pFocusTrap","",1,"p-image-mask","p-overlay-mask","p-overlay-mask-enter",3,"click","keydown"],[1,"p-image-toolbar",3,"click"],["type","button",1,"p-image-action","p-image-rotate-right-button",3,"click"],["type","button",1,"p-image-action","p-image-rotate-left-button",3,"click"],["type","button",3,"click","ngClass","disabled"],["type","button",1,"p-image-action","p-image-close-button",3,"click"],[1,"p-image-original",3,"click","ngStyle"]],template:function(i,o){i&1&&(w(0,"span",4),v(1,Cm,2,10,"ng-container",5)(2,wm,1,0,"ng-container",6)(3,km,5,7,"button",7)(4,Qm,20,25,"div",8),T()),i&2&&(B(o.styleClass),f("ngClass",o.containerClass())("ngStyle",o.style),g(),f("ngIf",!o.imageTemplate&&!o._imageTemplate),g(),f("ngTemplateOutlet",o.imageTemplate||o._imageTemplate)("ngTemplateOutletContext",G(9,mm,o.imageError.bind(o))),g(),f("ngIf",o.preview),g(),f("ngIf",o.maskVisible))},dependencies:[se,ye,Me,De,Ue,Ol,ta,Al,Fl,Dl,zt,la,N],encapsulation:2,data:{animation:[Zt("animation",[ht("void => visible",[ut({transform:"scale(0.7)",opacity:0}),pt("{{showTransitionParams}}")]),ht("visible => void",[pt("{{hideTransitionParams}}",ut({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),sx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Ym,N,N]})}return t})();var Xm=["removeicon"],Gm=["*"];function Zm(t,n){if(t&1){let e=X();w(0,"img",4),$("error",function(o){A(e);let s=_();return E(s.imageError(o))}),T()}if(t&2){let e=_();f("src",e.image,Mt)("alt",e.alt)}}function Jm(t,n){if(t&1&&z(0,"span",6),t&2){let e=_(2);B(e.icon),f("ngClass","p-chip-icon"),S("data-pc-section","icon")}}function eg(t,n){if(t&1&&v(0,Jm,1,4,"span",5),t&2){let e=_();f("ngIf",e.icon)}}function tg(t,n){if(t&1&&(w(0,"div",7),Te(1),T()),t&2){let e=_();S("data-pc-section","label"),g(),Qe(e.label)}}function ig(t,n){if(t&1){let e=X();w(0,"span",11),$("click",function(o){A(e);let s=_(3);return E(s.close(o))})("keydown",function(o){A(e);let s=_(3);return E(s.onKeydown(o))}),T()}if(t&2){let e=_(3);B(e.removeIcon),f("ngClass","p-chip-remove-icon"),S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function ng(t,n){if(t&1){let e=X();w(0,"TimesCircleIcon",12),$("click",function(o){A(e);let s=_(3);return E(s.close(o))})("keydown",function(o){A(e);let s=_(3);return E(s.onKeydown(o))}),T()}if(t&2){let e=_(3);B("p-chip-remove-icon"),S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function og(t,n){if(t&1&&(te(0),v(1,ig,1,5,"span",9)(2,ng,1,4,"TimesCircleIcon",10),ie()),t&2){let e=_(2);g(),f("ngIf",e.removeIcon),g(),f("ngIf",!e.removeIcon)}}function sg(t,n){}function ag(t,n){t&1&&v(0,sg,0,0,"ng-template")}function rg(t,n){if(t&1){let e=X();w(0,"span",13),$("click",function(o){A(e);let s=_(2);return E(s.close(o))})("keydown",function(o){A(e);let s=_(2);return E(s.onKeydown(o))}),v(1,ag,1,0,null,14),T()}if(t&2){let e=_(2);S("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),g(),f("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function lg(t,n){if(t&1&&(te(0),v(1,og,3,2,"ng-container",3)(2,rg,2,3,"span",8),ie()),t&2){let e=_();g(),f("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),g(),f("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var cg=({dt:t})=>`
.p-chip {
display: inline-flex;
align-items: center;
background: ${t("chip.background")};
color: ${t("chip.color")};
border-radius: ${t("chip.border.radius")};
padding: ${t("chip.padding.y")} ${t("chip.padding.x")};
gap: ${t("chip.gap")};
}
.p-chip-icon {
color: ${t("chip.icon.color")};
font-size: ${t("chip.icon.font.size")};
width: ${t("chip.icon.size")};
height: ${t("chip.icon.size")};
}
.p-chip-image {
border-radius: 50%;
width: ${t("chip.image.width")};
height: ${t("chip.image.height")};
margin-left: calc(-1 * ${t("chip.padding.y")});
}
.p-chip:has(.p-chip-remove-icon) {
padding-inline-end: ${t("chip.padding.y")};
}
.p-chip:has(.p-chip-image) {
padding-top: calc(${t("chip.padding.y")} / 2);
padding-bottom: calc(${t("chip.padding.y")} / 2);
}
.p-chip-remove-icon {
cursor: pointer;
font-size: ${t("chip.remove.icon.font.size")};
width: ${t("chip.remove.icon.size")};
height: ${t("chip.remove.icon.size")};
color: ${t("chip.remove.icon.color")};
border-radius: 50%;
transition: outline-color ${t("chip.transition.duration")}, box-shadow ${t("chip.transition.duration")};
outline-color: transparent;
}
.p-chip-remove-icon:focus-visible {
box-shadow: ${t("chip.remove.icon.focus.ring.shadow")};
outline: ${t("chip.remove.icon.focus.ring.width")} ${t("chip.remove.icon.focus.ring.style")} ${t("chip.remove.icon.focus.ring.color")};
outline-offset: ${t("chip.remove.icon.focus.ring.offset")};
}
`,dg={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},Rl=(()=>{class t extends be{name="chip";theme=cg;classes=dg;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Ss=(()=>{class t extends le{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new U;onImageError=new U;visible=!0;get removeAriaLabel(){return this.config.getTranslation(ot.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}_chipProps;_componentStyle=ne(Rl);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"removeicon":this._removeIconTemplate=e.template;break;default:this._removeIconTemplate=e.template;break}})}ngOnChanges(e){if(super.ngOnChanges(e),e.chipProps&&e.chipProps.currentValue){let{currentValue:i}=e.chipProps;i.label!==void 0&&(this.label=i.label),i.icon!==void 0&&(this.icon=i.icon),i.image!==void 0&&(this.image=i.image),i.alt!==void 0&&(this.alt=i.alt),i.style!==void 0&&(this.style=i.style),i.styleClass!==void 0&&(this.styleClass=i.styleClass),i.removable!==void 0&&(this.removable=i.removable),i.removeIcon!==void 0&&(this.removeIcon=i.removeIcon)}}containerClass(){let e="p-chip p-component";return this.styleClass&&(e+=` ${this.styleClass}`),e}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-chip"]],contentQueries:function(i,o,s){if(i&1&&(L(s,Xm,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.removeIconTemplate=a.first),F(a=D())&&(o.templates=a)}},hostVars:9,hostBindings:function(i,o){i&2&&(S("data-pc-name","chip")("aria-label",o.label)("data-pc-section","root"),tt(o.style),B(o.containerClass()),je("display",!o.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",H],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[ge([Rl]),Ee,Z,sn],ngContentSelectors:Gm,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(i,o){if(i&1&&(Pe(),we(0),v(1,Zm,1,2,"img",1)(2,eg,1,1,"ng-template",null,0,ke)(4,tg,2,2,"div",2)(5,lg,3,2,"ng-container",3)),i&2){let s=it(3);g(),f("ngIf",o.image)("ngIfElse",s),g(3),f("ngIf",o.label),g(),f("ngIf",o.removable)}},dependencies:[se,ye,Me,De,un,N],encapsulation:2,changeDetection:0})}return t})(),Cx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Ss,N,N]})}return t})();var pg=["item"],ug=["empty"],hg=["header"],fg=["footer"],mg=["selecteditem"],gg=["group"],_g=["loader"],bg=["removeicon"],yg=["loadingicon"],vg=["clearicon"],xg=["dropdownicon"],Cg=["container"],wg=["focusInput"],Tg=["multiIn"],Ig=["multiContainer"],Sg=["ddBtn"],kg=["items"],Mg=["scroller"],Og=["overlay"],Fg=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Bl=t=>({$implicit:t}),Dg=(t,n)=>({class:"p-autocomplete-chip-icon",removeCallback:t,index:n}),no=t=>({height:t}),Hl=(t,n)=>({$implicit:t,options:n}),Ag=t=>({options:t}),Eg=()=>({}),Pg=(t,n)=>({$implicit:t,index:n});function Lg(t,n){if(t&1){let e=X();w(0,"input",19,3),$("input",function(o){A(e);let s=_();return E(s.onInput(o))})("keydown",function(o){A(e);let s=_();return E(s.onKeyDown(o))})("change",function(o){A(e);let s=_();return E(s.onInputChange(o))})("focus",function(o){A(e);let s=_();return E(s.onInputFocus(o))})("blur",function(o){A(e);let s=_();return E(s.onInputBlur(o))})("paste",function(o){A(e);let s=_();return E(s.onInputPaste(o))})("keyup",function(o){A(e);let s=_();return E(s.onInputKeyUp(o))}),T()}if(t&2){let e,i=_();B(i.inputStyleClass),f("pAutoFocus",i.autofocus)("ngClass","p-autocomplete-input")("ngStyle",i.inputStyle)("type",i.type)("variant",i.variant)("autocomplete",i.autocomplete)("required",i.required)("name",i.name)("pSize",i.size)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled)("fluid",i.hasFluid),S("value",i.inputValue())("id",i.inputId)("placeholder",i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function Vg(t,n){if(t&1){let e=X();w(0,"TimesIcon",22),$("click",function(){A(e);let o=_(2);return E(o.clear())}),T()}t&2&&(f("styleClass","p-autocomplete-clear-icon"),S("aria-hidden",!0))}function zg(t,n){}function Rg(t,n){t&1&&v(0,zg,0,0,"ng-template")}function $g(t,n){if(t&1){let e=X();w(0,"span",23),$("click",function(){A(e);let o=_(2);return E(o.clear())}),v(1,Rg,1,0,null,24),T()}if(t&2){let e=_(2);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Bg(t,n){if(t&1&&(te(0),v(1,Vg,1,2,"TimesIcon",20)(2,$g,2,2,"span",21),ie()),t&2){let e=_();g(),f("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),f("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Hg(t,n){t&1&&K(0)}function Ng(t,n){if(t&1){let e=X();w(0,"span",33),$("click",function(o){A(e);let s=_(3).index,a=_(2);return E(a.readonly?"":a.removeOption(o,s))}),z(1,"TimesCircleIcon",34),T()}t&2&&(g(),f("styleClass","p-autocomplete-chip-icon"),S("aria-hidden",!0))}function jg(t,n){t&1&&(te(0),v(1,Ng,2,2,"ng-template",null,6,ke),ie())}function Ug(t,n){if(t&1){let e=X();w(0,"p-chip",32),$("onRemove",function(o){A(e);let s=_().index,a=_(2);return E(a.readonly?"":a.removeOption(o,s))}),v(1,jg,3,0,"ng-container",15),T()}if(t&2){let e=_().$implicit,i=_(2);f("label",i.getOptionLabel(e))("removable",!0),g(),f("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate)}}function Wg(t,n){}function Qg(t,n){t&1&&v(0,Wg,0,0,"ng-template")}function Kg(t,n){if(t&1&&(w(0,"span"),v(1,Qg,1,0,null,30),T()),t&2){let e=_().index,i=_(2);g(),f("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)("ngTemplateOutletContext",Ke(2,Dg,i.removeOption.bind(i),e))}}function qg(t,n){if(t&1&&(w(0,"li",29,5),v(2,Hg,1,0,"ng-container",30)(3,Ug,2,3,"p-chip",31)(4,Kg,2,5,"span",15),T()),t&2){let e=n.$implicit,i=n.index,o=_(2);f("ngClass",G(10,Fg,o.focusedMultipleOptionIndex()===i)),S("id",o.id+"_multiple_option_"+i)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",i+1)("aria-selected",!0),g(2),f("ngTemplateOutlet",o.selectedItemTemplate||o._selectedItemTemplate)("ngTemplateOutletContext",G(12,Bl,e)),g(),f("ngIf",!o.selectedItemTemplate&&!o._selectedItemTemplate),g(),f("ngIf",o.removeIconTemplate||o._removeIconTemplate)}}function Yg(t,n){if(t&1){let e=X();w(0,"ul",25,4),$("focus",function(o){A(e);let s=_();return E(s.onMultipleContainerFocus(o))})("blur",function(o){A(e);let s=_();return E(s.onMultipleContainerBlur(o))})("keydown",function(o){A(e);let s=_();return E(s.onMultipleContainerKeyDown(o))}),v(2,qg,5,14,"li",26),w(3,"li",27)(4,"input",28,3),$("input",function(o){A(e);let s=_();return E(s.onInput(o))})("keydown",function(o){A(e);let s=_();return E(s.onKeyDown(o))})("change",function(o){A(e);let s=_();return E(s.onInputChange(o))})("focus",function(o){A(e);let s=_();return E(s.onInputFocus(o))})("blur",function(o){A(e);let s=_();return E(s.onInputBlur(o))})("paste",function(o){A(e);let s=_();return E(s.onInputPaste(o))})("keyup",function(o){A(e);let s=_();return E(s.onInputKeyUp(o))}),T()()()}if(t&2){let e,i=_();f("ngClass",i.inputMultipleClass)("tabindex",-1),S("aria-orientation","horizontal")("aria-activedescendant",i.focused?i.focusedMultipleOptionId:void 0),g(2),f("ngForOf",i.modelValue()),g(2),B(i.inputStyleClass),f("pAutoFocus",i.autofocus)("ngClass",i.inputClass)("ngStyle",i.inputStyle)("autocomplete",i.autocomplete)("required",i.required)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled),S("type",i.type)("id",i.inputId)("name",i.name)("placeholder",i.filled?null:i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",(e=i.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function Xg(t,n){t&1&&z(0,"SpinnerIcon",37),t&2&&(f("styleClass","p-autocomplete-loader")("spin",!0),S("aria-hidden",!0))}function Gg(t,n){}function Zg(t,n){t&1&&v(0,Gg,0,0,"ng-template")}function Jg(t,n){if(t&1&&(w(0,"span",38),v(1,Zg,1,0,null,24),T()),t&2){let e=_(2);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function e0(t,n){if(t&1&&(te(0),v(1,Xg,1,3,"SpinnerIcon",35)(2,Jg,2,2,"span",36),ie()),t&2){let e=_();g(),f("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),g(),f("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function t0(t,n){if(t&1&&z(0,"span",41),t&2){let e=_(2);f("ngClass",e.dropdownIcon),S("aria-hidden",!0)}}function i0(t,n){t&1&&z(0,"ChevronDownIcon")}function n0(t,n){}function o0(t,n){t&1&&v(0,n0,0,0,"ng-template")}function s0(t,n){if(t&1&&(te(0),v(1,i0,1,0,"ChevronDownIcon",15)(2,o0,1,0,null,24),ie()),t&2){let e=_(2);g(),f("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),f("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function a0(t,n){if(t&1){let e=X();w(0,"button",39,7),$("click",function(o){A(e);let s=_();return E(s.handleDropdownClick(o))}),v(2,t0,1,2,"span",40)(3,s0,3,2,"ng-container",15),T()}if(t&2){let e=_();f("disabled",e.disabled),S("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),g(2),f("ngIf",e.dropdownIcon),g(),f("ngIf",!e.dropdownIcon)}}function r0(t,n){t&1&&K(0)}function l0(t,n){t&1&&K(0)}function c0(t,n){if(t&1&&v(0,l0,1,0,"ng-container",30),t&2){let e=n.$implicit,i=n.options;_(2);let o=it(6);f("ngTemplateOutlet",o)("ngTemplateOutletContext",Ke(2,Hl,e,i))}}function d0(t,n){t&1&&K(0)}function p0(t,n){if(t&1&&v(0,d0,1,0,"ng-container",30),t&2){let e=n.options,i=_(4);f("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",G(2,Ag,e))}}function u0(t,n){t&1&&(te(0),v(1,p0,1,4,"ng-template",null,10,ke),ie())}function h0(t,n){if(t&1){let e=X();w(0,"p-scroller",46,9),$("onLazyLoad",function(o){A(e);let s=_(2);return E(s.onLazyLoad.emit(o))}),v(2,c0,1,5,"ng-template",null,2,ke)(4,u0,3,0,"ng-container",15),T()}if(t&2){let e=_(2);tt(G(8,no,e.scrollHeight)),f("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),g(4),f("ngIf",e.loaderTemplate||e._loaderTemplate)}}function f0(t,n){t&1&&K(0)}function m0(t,n){if(t&1&&(te(0),v(1,f0,1,0,"ng-container",30),ie()),t&2){_();let e=it(6),i=_();g(),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Ke(3,Hl,i.visibleOptions(),Rs(2,Eg)))}}function g0(t,n){if(t&1&&(w(0,"span"),Te(1),T()),t&2){let e=_(2).$implicit,i=_(3);g(),Qe(i.getOptionGroupLabel(e.optionGroup))}}function _0(t,n){t&1&&K(0)}function b0(t,n){if(t&1&&(te(0),w(1,"li",50),v(2,g0,2,1,"span",15)(3,_0,1,0,"ng-container",30),T(),ie()),t&2){let e=_(),i=e.$implicit,o=e.index,s=_().options,a=_(2);g(),f("ngStyle",G(5,no,s.itemSize+"px")),S("id",a.id+"_"+a.getOptionIndex(o,s)),g(),f("ngIf",!a.groupTemplate),g(),f("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",G(7,Bl,i.optionGroup))}}function y0(t,n){if(t&1&&(w(0,"span"),Te(1),T()),t&2){let e=_(2).$implicit,i=_(3);g(),Qe(i.getOptionLabel(e))}}function v0(t,n){t&1&&K(0)}function x0(t,n){if(t&1){let e=X();te(0),w(1,"li",51),$("click",function(o){A(e);let s=_().$implicit,a=_(3);return E(a.onOptionSelect(o,s))})("mouseenter",function(o){A(e);let s=_().index,a=_().options,r=_(2);return E(r.onOptionMouseEnter(o,r.getOptionIndex(s,a)))}),v(2,y0,2,1,"span",15)(3,v0,1,0,"ng-container",30),T(),ie()}if(t&2){let e=_(),i=e.$implicit,o=e.index,s=_().options,a=_(2);g(),f("ngStyle",G(12,no,s.itemSize+"px"))("ngClass",a.optionClass(i,o,s)),S("id",a.id+"_"+a.getOptionIndex(o,s))("aria-label",a.getOptionLabel(i))("aria-selected",a.isSelected(i))("aria-disabled",a.isOptionDisabled(i))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(o,s))),g(),f("ngIf",!a.itemTemplate&&!a._itemTemplate),g(),f("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",Ke(14,Pg,i,s.getOptions?s.getOptions(o):o))}}function C0(t,n){if(t&1&&v(0,b0,4,9,"ng-container",15)(1,x0,4,17,"ng-container",15),t&2){let e=n.$implicit,i=_(3);f("ngIf",i.isOptionGroup(e)),g(),f("ngIf",!i.isOptionGroup(e))}}function w0(t,n){if(t&1&&(te(0),Te(1),ie()),t&2){let e=_(4);g(),Gt(" ",e.searchResultMessageText," ")}}function T0(t,n){t&1&&K(0,null,12)}function I0(t,n){if(t&1&&(w(0,"li",52),v(1,w0,2,1,"ng-container",53)(2,T0,2,0,"ng-container",24),T()),t&2){let e=_().options,i=_(2);f("ngStyle",G(4,no,e.itemSize+"px")),g(),f("ngIf",!i.emptyTemplate&&!i._emptyTemplate)("ngIfElse",i.empty),g(),f("ngTemplateOutlet",i.emptyTemplate||i._emptyTemplate)}}function S0(t,n){if(t&1&&(w(0,"ul",47,11),v(2,C0,2,2,"ng-template",48)(3,I0,3,6,"li",49),T()),t&2){let e=n.$implicit,i=n.options,o=_(2);tt(i.contentStyle),f("ngClass",i.contentStyleClass),S("id",o.id+"_list")("aria-label",o.listLabel),g(2),f("ngForOf",e),g(),f("ngIf",!e||e&&e.length===0&&o.showEmptyMessage)}}function k0(t,n){t&1&&K(0)}function M0(t,n){if(t&1&&(w(0,"div",42),v(1,r0,1,0,"ng-container",24),w(2,"div",43),v(3,h0,5,10,"p-scroller",44)(4,m0,2,6,"ng-container",15),T(),v(5,S0,4,7,"ng-template",null,8,ke)(7,k0,1,0,"ng-container",24),T(),w(8,"span",45),Te(9),T()),t&2){let e=_();B(e.panelStyleClass),f("ngClass",e.panelClass)("ngStyle",e.panelStyle),g(),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),je("max-height",e.virtualScroll?"auto":e.scrollHeight),g(),f("ngIf",e.virtualScroll),g(),f("ngIf",!e.virtualScroll),g(3),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(2),Gt(" ",e.selectedMessageText," ")}}var O0=({dt:t})=>`
.p-autocomplete {
display: inline-flex;
}
.p-autocomplete-loader {
position: absolute;
top: 50%;
margin-top: -0.5rem;
inset-inline-end: ${t("autocomplete.padding.x")};
}
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {
inset-inline-end: calc(${t("autocomplete.dropdown.width")} + ${t("autocomplete.padding.x")});
}
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {
flex: 1 1 auto;
width: 1%;
}
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {
border-start-end-radius: 0;
border-end-end-radius: 0;
}
.p-autocomplete-dropdown {
cursor: pointer;
display: inline-flex;
user-select: none;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
width: ${t("autocomplete.dropdown.width")};
border-start-end-radius: ${t("autocomplete.dropdown.border.radius")};
border-end-end-radius: ${t("autocomplete.dropdown.border.radius")};
background: ${t("autocomplete.dropdown.background")};
border: 1px solid ${t("autocomplete.dropdown.border.color")};
border-inline-start: 0 none;
color: ${t("autocomplete.dropdown.color")};
transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};
outline-color: transparent;
}
.p-autocomplete-dropdown:not(:disabled):hover {
background: ${t("autocomplete.dropdown.hover.background")};
border-color: ${t("autocomplete.dropdown.hover.border.color")};
color: ${t("autocomplete.dropdown.hover.color")};
}
.p-autocomplete-dropdown:not(:disabled):active {
background: ${t("autocomplete.dropdown.active.background")};
border-color: ${t("autocomplete.dropdown.active.border.color")};
color: ${t("autocomplete.dropdown.active.color")};
}
.p-autocomplete-dropdown:focus-visible {
box-shadow: ${t("autocomplete.dropdown.focus.ring.shadow")};
outline: ${t("autocomplete.dropdown.focus.ring.width")} ${t("autocomplete.dropdown.focus.ring.style")} ${t("autocomplete.dropdown.focus.ring.color")};
outline-offset: ${t("autocomplete.dropdown.focus.ring.offset")};
}
.p-autocomplete .p-autocomplete-overlay {
min-width: 100%;
}
.p-autocomplete-overlay {
background: ${t("autocomplete.overlay.background")};
color: ${t("autocomplete.overlay.color")};
border: 1px solid ${t("autocomplete.overlay.border.color")};
border-radius: ${t("autocomplete.overlay.border.radius")};
box-shadow: ${t("autocomplete.overlay.shadow")};
}
.p-autocomplete-list-container {
overflow: auto;
}
.p-autocomplete-list {
margin: 0;
list-style-type: none;
display: flex;
flex-direction: column;
gap: ${t("autocomplete.list.gap")};
padding: ${t("autocomplete.list.padding")};
}
.p-autocomplete-option {
cursor: pointer;
white-space: nowrap;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
padding: ${t("autocomplete.option.padding")};
border: 0 none;
color: ${t("autocomplete.option.color")};
background: transparent;
transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")};
border-radius: ${t("autocomplete.option.border.radius")};
}
.p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {
background: ${t("autocomplete.option.focus.background")};
color: ${t("autocomplete.option.focus.color")};
}
.p-autocomplete-option-selected {
background: ${t("autocomplete.option.selected.background")};
color: ${t("autocomplete.option.selected.color")};
}
.p-autocomplete-option-selected.p-focus {
background: ${t("autocomplete.option.selected.focus.background")};
color: ${t("autocomplete.option.selected.focus.color")};
}
.p-autocomplete-option-group {
margin: 0;
padding: ${t("autocomplete.option.group.padding")};
color: ${t("autocomplete.option.group.color")};
background: ${t("autocomplete.option.group.background")};
font-weight: ${t("autocomplete.option.group.font.weight")};
}
.p-autocomplete-input-multiple {
margin: 0;
list-style-type: none;
cursor: text;
overflow: hidden;
display: flex;
align-items: center;
flex-wrap: wrap;
padding: calc(${t("autocomplete.padding.y")} / 2) ${t("autocomplete.padding.x")};
gap: calc(${t("autocomplete.padding.y")} / 2);
color: ${t("autocomplete.color")};
background: ${t("autocomplete.background")};
border: 1px solid ${t("autocomplete.border.color")};
border-radius: ${t("autocomplete.border.radius")};
width: 100%;
transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};
outline-color: transparent;
box-shadow: ${t("autocomplete.shadow")};
}
.p-autocomplete:not(.p-disabled):hover .p-autocomplete-input-multiple {
border-color: ${t("autocomplete.hover.border.color")};
}
.p-autocomplete:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
border-color: ${t("autocomplete.focus.border.color")};
box-shadow: ${t("autocomplete.focus.ring.shadow")};
outline: ${t("autocomplete.focus.ring.width")} ${t("autocomplete.focus.ring.style")} ${t("autocomplete.focus.ring.color")};
outline-offset: ${t("autocomplete.focus.ring.offset")};
}
.p-autocomplete.p-invalid .p-autocomplete-input-multiple {
border-color: ${t("autocomplete.invalid.border.color")};
}
.p-variant-filled.p-autocomplete-input-multiple {
background: ${t("autocomplete.filled.background")};
}
.p-autocomplete:not(.p-disabled):hover .p-variant-filled.p-autocomplete-input-multiple {
background: ${t("autocomplete.filled.hover.background")};
}
.p-autocomplete:not(.p-disabled).p-focus .p-variant-filled.p-autocomplete-input-multiple {
background: ${t("autocomplete.filled.focus.background")};
}
.p-autocomplete.p-disabled {
opacity: 1;
}
.p-autocomplete.p-disabled .p-autocomplete-input-multiple {
opacity: 1;
background: ${t("autocomplete.disabled.background")};
color: ${t("autocomplete.disabled.color")};
}
.p-autocomplete-chip.p-chip {
padding-block-start: calc(${t("autocomplete.padding.y")} / 2);
padding-block-end: calc(${t("autocomplete.padding.y")} / 2);
border-radius: ${t("autocomplete.chip.border.radius")};
}
.p-autocomplete-input-multiple:has(.p-autocomplete-chip) {
padding-inline-start: calc(${t("autocomplete.padding.y")} / 2);
padding-inline-end: calc(${t("autocomplete.padding.y")} / 2);
}
.p-autocomplete-chip-item.p-focus .p-autocomplete-chip {
background: ${t("autocomplete.chip.focus.background")};
color: ${t("autocomplete.chip.focus.color")};
}
.p-autocomplete-input-chip {
flex: 1 1 auto;
display: inline-flex;
padding-block-start: calc(${t("autocomplete.padding.y")} / 2);
padding-block-end: calc(${t("autocomplete.padding.y")} / 2);
}
.p-autocomplete-input-chip input {
border: 0 none;
outline: 0 none;
background: transparent;
margin: 0;
padding: 0;
box-shadow: none;
border-radius: 0;
width: 100%;
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: inherit;
}
.p-autocomplete-input-chip input::placeholder {
color: ${t("autocomplete.placeholder.color")};
}
.p-autocomplete-empty-message {
padding: ${t("autocomplete.empty.message.padding")};
}
.p-autocomplete-fluid {
display: flex;
}
.p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {
width: 1%;
}
.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {
width: ${t("autocomplete.dropdown.sm.width")};
}
.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {
font-size: ${t("form.field.sm.font.size")};
width: ${t("form.field.sm.font.size")};
height: ${t("form.field.sm.font.size")};
}
.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {
width: ${t("autocomplete.dropdown.lg.width")};
}
.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {
font-size: ${t("form.field.lg.font.size")};
width: ${t("form.field.lg.font.size")};
height: ${t("form.field.lg.font.size")};
}
.p-autocomplete-clear-icon {
position: absolute;
top: 50%;
margin-top: -0.5rem;
cursor: pointer;
right: ${t("autocomplete.padding.x")};
color: ${t("autocomplete.dropdown.color")};
}
.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
right: calc(${t("autocomplete.padding.x")} + ${t("autocomplete.dropdown.width")});
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-multiple
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
border-color: ${t("autocomplete.invalid.border.color")};
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autoComplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-auto-complete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,
p-autocomplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple {
border-color: ${t("autocomplete.focus.border.color")};
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder {
color: ${t("autocomplete.invalid.placeholder.color")};
}
p-autoComplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-auto-complete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder,
p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder {
color: ${t("autocomplete.invalid.placeholder.color")};
}`,F0={root:{position:"relative"}},D0={root:({instance:t})=>({"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":t.disabled,"p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused&&!t.disabled||t.autofocus||t.overlayVisible,"p-autocomplete-open":t.overlayVisible,"p-autocomplete-clearable":t.showClear&&!t.disabled,"p-autocomplete-fluid":t.hasFluid}),pcInput:"p-autocomplete-input",inputMultiple:({instance:t})=>({"p-autocomplete-input-multiple":!0,"p-variant-filled":(t.variant??(t.config.inputStyle()||t.config.inputVariant()))==="filled"}),chipItem:({instance:t,i:n})=>["p-autocomplete-chip-item",{"p-focus":t.focusedMultipleOptionIndex===n}],pcChip:"p-autocomplete-chip",chipIcon:"p-autocomplete-chip-icon",inputChip:"p-autocomplete-input-chip",loader:"p-autocomplete-loader",dropdown:"p-autocomplete-dropdown",overlay:"p-autocomplete-overlay p-component",list:"p-autocomplete-list",optionGroup:"p-autocomplete-option-group",option:({instance:t,option:n,i:e,getItemOptions:i})=>({"p-autocomplete-option":!0,"p-autocomplete-option-selected":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,i),"p-disabled":t.isOptionDisabled(n)}),emptyMessage:"p-autocomplete-empty-message"},$l=(()=>{class t extends be{name="autocomplete";theme=O0;classes=D0;inlineStyles=F0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var A0={provide:Gs,useExisting:kt(()=>Nl),multi:!0},Nl=(()=>{class t extends le{overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover=!0;typeahead=!0;variant;fluid=!1;completeMethod=new U;onSelect=new U;onUnselect=new U;onFocus=new U;onBlur=new U;onDropdownClick=new U;onClear=new U;onKeyUp=new U;onShow=new U;onHide=new U;onLazyLoad=new U;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;primeng=ne(Xs);value;_suggestions=lt(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;_filled;get filled(){return this._filled}set filled(e){this._filled=e}loading;scrollHandler;listId;searchTimeout;dirty=!1;_itemTemplate;_groupTemplate;_selectedItemTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_loaderTemplate;_removeIconTemplate;_loadingIconTemplate;_clearIconTemplate;_dropdownIconTemplate;modelValue=lt(null);focusedMultipleOptionIndex=lt(-1);focusedOptionIndex=lt(-1);_componentStyle=ne($l);visibleOptions=nt(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=nt(()=>{let e=this.modelValue(),i=this.optionValueSelected?(this.suggestions||[]).find(o=>ei(o,this.optionValue)===e):e;if(fi(e))if(typeof e=="object"||this.optionValueSelected){let o=this.getOptionLabel(i);return o??e}else return e;else return""});get focusedMultipleOptionId(){return this.focusedMultipleOptionIndex()!==-1?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputMultipleClass(){return this._componentStyle.classes.inputMultiple({instance:this})}get panelClass(){return{"p-autocomplete-overlay p-component":!0,"p-input-filled":this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-ripple-disabled":this.config.ripple()===!1}}get inputClass(){return{"p-autocomplete-input":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return fi(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(ot.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return typeof this.modelValue()=="string"&&this.optionValue}chipItemClass(e){return this._componentStyle.classes.chipItem({instance:this,i:e})}optionClass(e,i,o){return{"p-autocomplete-option":!0,"p-autocomplete-option-selected":this.isSelected(e),"p-focus":this.focusedOptionIndex()===this.getOptionIndex(i,o),"p-disabled":this.isOptionDisabled(e)}}constructor(e,i){super(),this.overlayService=e,this.zone=i,Hs(()=>{this.filled=fi(this.modelValue())})}ngOnInit(){super.ngOnInit(),this.id=this.id||Re("pn_id_"),this.cd.detectChanges()}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selecteditem":this._selectedItemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"removetokenicon":this._removeIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}handleSuggestionsChange(){if(this.loading){this._suggestions()?.length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();let e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});let a=this.getOptionGroupChildren(o);return a&&a.forEach(r=>i.push(r)),i},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return co(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?co(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.optionDisabled?ei(e,this.optionDisabled):!1}isSelected(e){return this.multiple?this.unique?this.modelValue()?.find(i=>Pi(i,this.getOptionValue(e),this.equalityKey())):!1:Pi(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,i){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===i.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL.nativeElement}isDropdownClicked(e){return this.dropdownButton?.nativeElement?e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target):!1}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&qe(this.inputEL.nativeElement)}handleDropdownClick(e){let i;this.overlayVisible?this.hide(!0):(qe(this.inputEL.nativeElement),i=this.inputEL.nativeElement.value,this.dropdownMode==="blank"?this.search(e,"","dropdown"):this.dropdownMode==="current"&&this.search(e,i,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:i})}onInput(e){if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);let i=e.target.value;this.maxlength!==null&&(i=i.split("").slice(0,this.maxlength).join("")),!this.multiple&&!this.forceSelection&&this.updateModel(i),i.length===0&&!this.multiple?(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2)):i.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,i,"input")},this.delay)):this.hide()}}onInputChange(e){if(this.forceSelection){let i=!1;if(this.visibleOptions()){let o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));o!==void 0&&(i=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}i||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e);break;default:break}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e);break;case"ShiftLeft":case"ShiftRight":break;default:break}}onArrowDownKey(e){if(!this.overlayVisible)return;let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}}get hasFluid(){let i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}onArrowLeftKey(e){let i=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(qs(i.value)&&this.hasSelectedOption()?(qe(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){let{currentTarget:i}=e,o=i.value.length;i.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){let{currentTarget:i}=e,o=i.value.length;i.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.typeahead||this.multiple&&(this.updateModel([...this.modelValue()||[],e.target.value]),this.inputEL.nativeElement.value=""),this.overlayVisible?(this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(fi(this.modelValue())&&!this.inputEL.nativeElement.value){let i=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:i})}e.stopPropagation()}!this.multiple&&this.showClear&&this.findSelectedOptionIndex()!=-1&&this.clear()}onArrowLeftKeyOnMultiple(e){let i=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(i)}onArrowRightKeyOnMultiple(e){let i=this.focusedMultipleOptionIndex();i++,this.focusedMultipleOptionIndex.set(i),i>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),qe(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){this.focusedMultipleOptionIndex()!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,i,o=!0){let s=this.getOptionValue(i);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(i)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:i}),o&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}search(e,i,o){i!=null&&(o==="input"&&i.trim().length===0||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:i})))}removeOption(e,i){e.stopPropagation();let o=this.modelValue()[i],s=this.modelValue().filter((a,r)=>r!==i);this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),qe(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let o=et(this.itemsViewChild.nativeElement,`li[id="${i}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[i],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),e&&qe(this.inputEL.nativeElement),e&&qe(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){let i=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&qe(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{i()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.modelValue.set(e),this.updateInputValue(),this.cd.markForCheck()}hasSelectedOption(){return fi(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?ei(e,this.field||this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?ei(e,this.optionValue):e&&e.value!=null?e.value:e}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?ei(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?ei(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"&&(this.itemsWrapper=et(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=et(this.itemsWrapper,".p-autocomplete-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(_t(Ys),_t(Vt))};static \u0275cmp=Y({type:t,selectors:[["p-autoComplete"],["p-autocomplete"],["p-auto-complete"]],contentQueries:function(i,o,s){if(i&1&&(L(s,pg,5),L(s,ug,5),L(s,hg,5),L(s,fg,5),L(s,mg,5),L(s,gg,5),L(s,_g,5),L(s,bg,5),L(s,yg,5),L(s,vg,5),L(s,xg,5),L(s,Le,4)),i&2){let a;F(a=D())&&(o.itemTemplate=a.first),F(a=D())&&(o.emptyTemplate=a.first),F(a=D())&&(o.headerTemplate=a.first),F(a=D())&&(o.footerTemplate=a.first),F(a=D())&&(o.selectedItemTemplate=a.first),F(a=D())&&(o.groupTemplate=a.first),F(a=D())&&(o.loaderTemplate=a.first),F(a=D())&&(o.removeIconTemplate=a.first),F(a=D())&&(o.loadingIconTemplate=a.first),F(a=D())&&(o.clearIconTemplate=a.first),F(a=D())&&(o.dropdownIconTemplate=a.first),F(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Oe(Cg,5),Oe(wg,5),Oe(Tg,5),Oe(Ig,5),Oe(Sg,5),Oe(kg,5),Oe(Mg,5),Oe(Og,5)),i&2){let s;F(s=D())&&(o.containerEL=s.first),F(s=D())&&(o.inputEL=s.first),F(s=D())&&(o.multiInputEl=s.first),F(s=D())&&(o.multiContainerEL=s.first),F(s=D())&&(o.dropdownButton=s.first),F(s=D())&&(o.itemsViewChild=s.first),F(s=D())&&(o.scroller=s.first),F(s=D())&&(o.overlayViewChild=s.first)}},inputs:{minLength:[2,"minLength","minLength",ze],delay:[2,"delay","delay",ze],style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[2,"readonly","readonly",H],disabled:[2,"disabled","disabled",H],scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",H],virtualScroll:[2,"virtualScroll","virtualScroll",H],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",ze],virtualScrollOptions:"virtualScrollOptions",maxlength:[2,"maxlength","maxlength",e=>ze(e,null)],name:"name",required:[2,"required","required",H],size:"size",appendTo:"appendTo",autoHighlight:[2,"autoHighlight","autoHighlight",H],forceSelection:[2,"forceSelection","forceSelection",H],type:"type",autoZIndex:[2,"autoZIndex","autoZIndex",H],baseZIndex:[2,"baseZIndex","baseZIndex",ze],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[2,"unique","unique",H],group:[2,"group","group",H],completeOnFocus:[2,"completeOnFocus","completeOnFocus",H],showClear:[2,"showClear","showClear",H],field:"field",dropdown:[2,"dropdown","dropdown",H],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",H],dropdownMode:"dropdownMode",multiple:[2,"multiple","multiple",H],tabindex:[2,"tabindex","tabindex",ze],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",H],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",H],selectOnFocus:[2,"selectOnFocus","selectOnFocus",H],searchLocale:[2,"searchLocale","searchLocale",H],optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",H],typeahead:[2,"typeahead","typeahead",H],variant:"variant",fluid:[2,"fluid","fluid",H]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[ge([A0,$l]),Ee,Z],decls:11,vars:15,consts:[["container",""],["overlay",""],["content",""],["focusInput",""],["multiContainer",""],["token",""],["removeicon",""],["ddBtn",""],["buildInItems",""],["scroller",""],["loader",""],["items",""],["empty",""],[2,"position","relative",3,"click","ngClass","ngStyle"],["pInputText","","aria-autocomplete","list","role","combobox",3,"pAutoFocus","ngClass","ngStyle","class","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"ngClass","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","class","p-autocomplete-dropdown","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],["pInputText","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid"],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-autocomplete-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["role","listbox",3,"focus","blur","keydown","ngClass","tabindex"],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-chip"],["role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","autocomplete","required","tabindex","readonly","disabled"],["role","option",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-autocomplete-chip",3,"label","removable","onRemove",4,"ngIf"],["styleClass","p-autocomplete-chip",3,"onRemove","label","removable"],[1,"p-autocomplete-chip-icon",3,"click"],[3,"styleClass"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pRipple","",1,"p-autocomplete-dropdown",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","ngStyle"],[1,"p-autocomplete-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-autocomplete-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-autocomplete-option-group",3,"ngStyle"],["pRipple","","role","option",3,"click","mouseenter","ngStyle","ngClass"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"]],template:function(i,o){if(i&1){let s=X();w(0,"div",13,0),$("click",function(r){return A(s),E(o.onContainerClick(r))}),v(2,Lg,2,25,"input",14)(3,Bg,3,2,"ng-container",15)(4,Yg,6,26,"ul",16)(5,e0,3,2,"ng-container",15)(6,a0,4,5,"button",17),w(7,"p-overlay",18,1),zs("visibleChange",function(r){return A(s),Vs(o.overlayVisible,r)||(o.overlayVisible=r),E(r)}),$("onAnimationStart",function(r){return A(s),E(o.onOverlayAnimationStart(r))})("onHide",function(){return A(s),E(o.hide())}),v(9,M0,10,11,"ng-template",null,2,ke),T()()}i&2&&(B(o.styleClass),f("ngClass",o.rootClass)("ngStyle",o.style),g(2),f("ngIf",!o.multiple),g(),f("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),g(),f("ngIf",o.multiple),g(),f("ngIf",o.loading),g(),f("ngIf",o.dropdown),g(),Ls("visible",o.overlayVisible),f("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:[se,ye,ui,Me,De,Ue,aa,sa,gi,ra,Zs,un,na,zt,ti,Ss,N],encapsulation:2,changeDetection:0})}return t})(),Xx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Nl,N]})}return t})();var E0=["container"],P0=["icon"],L0=["closeicon"],V0=["*"],z0=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),R0=t=>({value:"visible()",params:t}),$0=t=>({closeCallback:t});function B0(t,n){t&1&&K(0)}function H0(t,n){if(t&1&&v(0,B0,1,0,"ng-container",7),t&2){let e=_(2);f("ngTemplateOutlet",e.iconTemplate||e.iconTemplate)}}function N0(t,n){if(t&1&&z(0,"i",3),t&2){let e=_(2);f("ngClass",e.icon)}}function j0(t,n){if(t&1&&z(0,"span",9),t&2){let e=_(3);f("ngClass",e.cx("text"))("innerHTML",e.text,Ds)}}function U0(t,n){if(t&1&&(w(0,"div"),v(1,j0,1,2,"span",8),T()),t&2){let e=_(2);g(),f("ngIf",!e.escape)}}function W0(t,n){if(t&1&&(w(0,"span",5),Te(1),T()),t&2){let e=_(3);f("ngClass",e.cx("text")),g(),Qe(e.text)}}function Q0(t,n){if(t&1&&v(0,W0,2,2,"span",10),t&2){let e=_(2);f("ngIf",e.escape&&e.text)}}function K0(t,n){t&1&&K(0)}function q0(t,n){if(t&1&&v(0,K0,1,0,"ng-container",11),t&2){let e=_(2);f("ngTemplateOutlet",e.containerTemplate||e.containerTemplate)("ngTemplateOutletContext",G(2,$0,e.close.bind(e)))}}function Y0(t,n){if(t&1&&(w(0,"span",5),we(1),T()),t&2){let e=_(2);f("ngClass",e.cx("text"))}}function X0(t,n){if(t&1&&z(0,"i",13),t&2){let e=_(3);f("ngClass",e.closeIcon)}}function G0(t,n){t&1&&K(0)}function Z0(t,n){if(t&1&&v(0,G0,1,0,"ng-container",7),t&2){let e=_(3);f("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function J0(t,n){t&1&&z(0,"TimesIcon",14)}function e_(t,n){if(t&1){let e=X();w(0,"button",12),$("click",function(o){A(e);let s=_(2);return E(s.close(o))}),v(1,X0,1,1,"i",13)(2,Z0,1,1,"ng-container")(3,J0,1,0,"TimesIcon",14),T()}if(t&2){let e=_(2);S("aria-label",e.closeAriaLabel),g(),Ce(e.closeIcon?1:-1),g(),Ce(e.closeIconTemplate||e._closeIconTemplate?2:-1),g(),Ce(!e.closeIconTemplate&&!e._closeIconTemplate&&!e.closeIcon?3:-1)}}function t_(t,n){if(t&1&&(w(0,"div",1)(1,"div",2),v(2,H0,1,1,"ng-container")(3,N0,1,1,"i",3)(4,U0,2,1,"div",4)(5,Q0,1,1,"ng-template",null,0,ke)(7,q0,1,4,"ng-container")(8,Y0,2,1,"span",5)(9,e_,4,4,"button",6),T()()),t&2){let e=it(6),i=_();f("ngClass",i.containerClass)("@messageAnimation",G(13,R0,Ke(10,z0,i.showTransitionOptions,i.hideTransitionOptions))),S("aria-live","polite")("role","alert"),g(2),Ce(i.iconTemplate||i._iconTemplate?2:-1),g(),Ce(i.icon?3:-1),g(),f("ngIf",!i.escape)("ngIfElse",e),g(3),Ce(i.containerTemplate||i._containerTemplate?7:8),g(2),Ce(i.closable?9:-1)}}var i_=({dt:t})=>`
.p-message {
border-radius: ${t("message.border.radius")};
outline-width: ${t("message.border.width")};
outline-style: solid;
}
.p-message-content {
display: flex;
align-items: center;
padding: ${t("message.content.padding")};
gap: ${t("message.content.gap")};
height: 100%;
}
.p-message-icon {
flex-shrink: 0;
}
.p-message-close-button {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-inline-start: auto;
overflow: hidden;
position: relative;
width: ${t("message.close.button.width")};
height: ${t("message.close.button.height")};
border-radius: ${t("message.close.button.border.radius")};
background: transparent;
transition: background ${t("message.transition.duration")}, color ${t("message.transition.duration")}, outline-color ${t("message.transition.duration")}, box-shadow ${t("message.transition.duration")}, opacity 0.3s;
outline-color: transparent;
color: inherit;
padding: 0;
border: none;
cursor: pointer;
user-select: none;
}
.p-message-close-icon {
font-size: ${t("message.close.icon.size")};
width: ${t("message.close.icon.size")};
height: ${t("message.close.icon.size")};
}
.p-message-close-button:focus-visible {
outline-width: ${t("message.close.button.focus.ring.width")};
outline-style: ${t("message.close.button.focus.ring.style")};
outline-offset: ${t("message.close.button.focus.ring.offset")};
}
.p-message-info {
background: ${t("message.info.background")};
outline-color: ${t("message.info.border.color")};
color: ${t("message.info.color")};
box-shadow: ${t("message.info.shadow")};
}
.p-message-info .p-message-close-button:focus-visible {
outline-color: ${t("message.info.close.button.focus.ring.color")};
box-shadow: ${t("message.info.close.button.focus.ring.shadow")};
}
.p-message-info .p-message-close-button:hover {
background: ${t("message.info.close.button.hover.background")};
}
.p-message-info.p-message-outlined {
color: ${t("message.info.outlined.color")};
outline-color: ${t("message.info.outlined.border.color")};
}
.p-message-info.p-message-simple {
color: ${t("message.info.simple.color")};
}
.p-message-success {
background: ${t("message.success.background")};
outline-color: ${t("message.success.border.color")};
color: ${t("message.success.color")};
box-shadow: ${t("message.success.shadow")};
}
.p-message-success .p-message-close-button:focus-visible {
outline-color: ${t("message.success.close.button.focus.ring.color")};
box-shadow: ${t("message.success.close.button.focus.ring.shadow")};
}
.p-message-success .p-message-close-button:hover {
background: ${t("message.success.close.button.hover.background")};
}
.p-message-success.p-message-outlined {
color: ${t("message.success.outlined.color")};
outline-color: ${t("message.success.outlined.border.color")};
}
.p-message-success.p-message-simple {
color: ${t("message.success.simple.color")};
}
.p-message-warn {
background: ${t("message.warn.background")};
outline-color: ${t("message.warn.border.color")};
color: ${t("message.warn.color")};
box-shadow: ${t("message.warn.shadow")};
}
.p-message-warn .p-message-close-button:focus-visible {
outline-color: ${t("message.warn.close.button.focus.ring.color")};
box-shadow: ${t("message.warn.close.button.focus.ring.shadow")};
}
.p-message-warn .p-message-close-button:hover {
background: ${t("message.warn.close.button.hover.background")};
}
.p-message-warn.p-message-outlined {
color: ${t("message.warn.outlined.color")};
outline-color: ${t("message.warn.outlined.border.color")};
}
.p-message-warn.p-message-simple {
color: ${t("message.warn.simple.color")};
}
.p-message-error {
background: ${t("message.error.background")};
outline-color: ${t("message.error.border.color")};
color: ${t("message.error.color")};
box-shadow: ${t("message.error.shadow")};
}
.p-message-error .p-message-close-button:focus-visible {
outline-color: ${t("message.error.close.button.focus.ring.color")};
box-shadow: ${t("message.error.close.button.focus.ring.shadow")};
}
.p-message-error .p-message-close-button:hover {
background: ${t("message.error.close.button.hover.background")};
}
.p-message-error.p-message-outlined {
color: ${t("message.error.outlined.color")};
outline-color: ${t("message.error.outlined.border.color")};
}
.p-message-error.p-message-simple {
color: ${t("message.error.simple.color")};
}
.p-message-secondary {
background: ${t("message.secondary.background")};
outline-color: ${t("message.secondary.border.color")};
color: ${t("message.secondary.color")};
box-shadow: ${t("message.secondary.shadow")};
}
.p-message-secondary .p-message-close-button:focus-visible {
outline-color: ${t("message.secondary.close.button.focus.ring.color")};
box-shadow: ${t("message.secondary.close.button.focus.ring.shadow")};
}
.p-message-secondary .p-message-close-button:hover {
background: ${t("message.secondary.close.button.hover.background")};
}
.p-message-secondary.p-message-outlined {
color: ${t("message.secondary.outlined.color")};
outline-color: ${t("message.secondary.outlined.border.color")};
}
.p-message-secondary.p-message-simple {
color: ${t("message.secondary.simple.color")};
}
.p-message-contrast {
background: ${t("message.contrast.background")};
outline-color: ${t("message.contrast.border.color")};
color: ${t("message.contrast.color")};
box-shadow: ${t("message.contrast.shadow")};
}
.p-message-contrast .p-message-close-button:focus-visible {
outline-color: ${t("message.contrast.close.button.focus.ring.color")};
box-shadow: ${t("message.contrast.close.button.focus.ring.shadow")};
}
.p-message-contrast .p-message-close-button:hover {
background: ${t("message.contrast.close.button.hover.background")};
}
.p-message-contrast.p-message-outlined {
color: ${t("message.contrast.outlined.color")};
outline-color: ${t("message.contrast.outlined.border.color")};
}
.p-message-contrast.p-message-simple {
color: ${t("message.contrast.simple.color")};
}
.p-message-text {
display: inline-flex;
align-items: center;
font-size: ${t("message.text.font.size")};
font-weight: ${t("message.text.font.weight")};
}
.p-message-icon {
font-size: ${t("message.icon.size")};
width: ${t("message.icon.size")};
height: ${t("message.icon.size")};
}
.p-message-enter-from {
opacity: 0;
}
.p-message-enter-active {
transition: opacity 0.3s;
}
.p-message.p-message-leave-from {
max-height: 1000px;
}
.p-message.p-message-leave-to {
max-height: 0;
opacity: 0;
margin: 0;
}
.p-message-leave-active {
overflow: hidden;
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;
}
.p-message-leave-active .p-message-close-button {
opacity: 0;
}
.p-message-sm .p-message-content {
padding: ${t("message.content.sm.padding")};
}
.p-message-sm .p-message-text {
font-size: ${t("message.text.sm.font.size")};
}
.p-message-sm .p-message-icon {
font-size: ${t("message.icon.sm.size")};
width: ${t("message.icon.sm.size")};
height: ${t("message.icon.sm.size")};
}
.p-message-sm .p-message-close-icon {
font-size: ${t("message.close.icon.sm.size")};
width: ${t("message.close.icon.sm.size")};
height: ${t("message.close.icon.sm.size")};
}
.p-message-lg .p-message-content {
padding: ${t("message.content.lg.padding")};
}
.p-message-lg .p-message-text {
font-size: ${t("message.text.lg.font.size")};
}
.p-message-lg .p-message-icon {
font-size: ${t("message.icon.lg.size")};
width: ${t("message.icon.lg.size")};
height: ${t("message.icon.lg.size")};
}
.p-message-lg .p-message-close-icon {
font-size: ${t("message.close.icon.lg.size")};
width: ${t("message.close.icon.lg.size")};
height: ${t("message.close.icon.lg.size")};
}
.p-message-outlined {
background: transparent;
outline-width: ${t("message.outlined.border.width")};
}
.p-message-simple {
background: transparent;
outline-color: transparent;
box-shadow: none;
}
.p-message-simple .p-message-content {
padding: ${t("message.simple.content.padding")};
}
.p-message-outlined .p-message-close-button:hover,
.p-message-simple .p-message-close-button:hover {
background: transparent;
}`,n_={root:({props:t})=>["p-message p-component p-message-"+t.severity,{"p-message-simple":t.variant==="simple"}],content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"},jl=(()=>{class t extends be{name="message";theme=i_;classes=n_;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var ks=(()=>{class t extends le{severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;onClose=new U;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get containerClass(){let e=this.variant==="outlined"?"p-message-outlined":this.variant==="simple"?"p-message-simple":"",i=this.size==="small"?"p-message-sm":this.size==="large"?"p-message-lg":"";return`p-message-${this.severity} ${e} ${i}`.trim()+(this.styleClass?" "+this.styleClass:"")}visible=lt(!0);_componentStyle=ne(jl);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;ngOnInit(){super.ngOnInit(),this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"container":this._containerTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break}})}close(e){this.visible.set(!1),this.onClose.emit({originalEvent:e})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-message"]],contentQueries:function(i,o,s){if(i&1&&(L(s,E0,4),L(s,P0,4),L(s,L0,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.containerTemplate=a.first),F(a=D())&&(o.iconTemplate=a.first),F(a=D())&&(o.closeIconTemplate=a.first),F(a=D())&&(o.templates=a)}},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",H],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",H],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant"},outputs:{onClose:"onClose"},features:[ge([jl]),Ee,Z],ngContentSelectors:V0,decls:1,vars:1,consts:[["escapeOut",""],[1,"p-message","p-component",3,"ngClass"],[1,"p-message-content"],[1,"p-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["pRipple","","type","button",1,"p-message-close-button"],[4,"ngTemplateOutlet"],[3,"ngClass","innerHTML",4,"ngIf"],[3,"ngClass","innerHTML"],[3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","type","button",1,"p-message-close-button",3,"click"],[1,"p-message-close-icon",3,"ngClass"],["styleClass","p-message-close-icon"]],template:function(i,o){i&1&&(Pe(),v(0,t_,10,15,"div",1)),i&2&&Ce(o.visible()?0:-1)},dependencies:[se,ye,Me,De,zt,gi,N],encapsulation:2,data:{animation:[Zt("messageAnimation",[ht(":enter",[ut({opacity:0,transform:"translateY(-25%)"}),pt("{{showTransitionParams}}")]),ht(":leave",[pt("{{hideTransitionParams}}",ut({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return t})(),mC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[ks,N,N]})}return t})();var o_=["content"],s_=(t,n)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":n}),a_=t=>({$implicit:t});function r_(t,n){if(t&1&&(w(0,"div"),Te(1),T()),t&2){let e=_(2);je("display",e.value!=null&&e.value!==0?"flex":"none"),S("data-pc-section","label"),g(),Ps("",e.value,"",e.unit,"")}}function l_(t,n){t&1&&K(0)}function c_(t,n){if(t&1&&(w(0,"div",3)(1,"div",4),v(2,r_,2,5,"div",5)(3,l_,1,0,"ng-container",6),T()()),t&2){let e=_();B(e.valueStyleClass),je("width",e.value+"%")("background",e.color),f("ngClass","p-progressbar-value p-progressbar-value-animate"),S("data-pc-section","value"),g(2),f("ngIf",e.showValue&&!e.contentTemplate&&!e._contentTemplate),g(),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",G(11,a_,e.value))}}function d_(t,n){if(t&1&&(w(0,"div",7),z(1,"div",8),T()),t&2){let e=_();B(e.valueStyleClass),f("ngClass","p-progressbar-indeterminate-container"),S("data-pc-section","container"),g(),je("background",e.color),S("data-pc-section","value")}}var p_=({dt:t})=>`
.p-progressbar {
position: relative;
overflow: hidden;
height: ${t("progressbar.height")};
background: ${t("progressbar.background")};
border-radius: ${t("progressbar.border.radius")};
}
.p-progressbar-value {
margin: 0;
background: ${t("progressbar.value.background")};
}
.p-progressbar-label {
color: ${t("progressbar.label.color")};
font-size: ${t("progressbar.label.font.size")};
font-weight: ${t("progressbar.label.font.weight")};
}
.p-progressbar-determinate .p-progressbar-value {
height: 100%;
width: 0%;
position: absolute;
display: none;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: width 1s ease-in-out;
}
.p-progressbar-determinate .p-progressbar-label {
display: inline-flex;
}
.p-progressbar-indeterminate .p-progressbar-value::before {
content: "";
position: absolute;
background: inherit;
top: 0;
inset-inline-start: 0;
bottom: 0;
will-change: inset-inline-start, inset-inline-end;
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
.p-progressbar-indeterminate .p-progressbar-value::after {
content: "";
position: absolute;
background: inherit;
top: 0;
inset-inline-start: 0;
bottom: 0;
will-change: inset-inline-start, inset-inline-end;
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation-delay: 1.15s;
}
@-webkit-keyframes p-progressbar-indeterminate-anim {
0% {
inset-inline-start: -35%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
100% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
}
@keyframes p-progressbar-indeterminate-anim {
0% {
inset-inline-start: -35%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
100% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
}
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
0% {
inset-inline-start: -200%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
100% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
}
@keyframes p-progressbar-indeterminate-anim-short {
0% {
inset-inline-start: -200%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
100% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
}
`,u_={root:({instance:t})=>["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}],value:"p-progressbar-value",label:"p-progressbar-label"},Ul=(()=>{class t extends be{name="progressbar";theme=p_;classes=u_;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Ms=(()=>{class t extends le{value;showValue=!0;styleClass;valueStyleClass;style;unit="%";mode="determinate";color;contentTemplate;_componentStyle=ne(Ul);templates;_contentTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-progressBar"],["p-progressbar"],["p-progress-bar"]],contentQueries:function(i,o,s){if(i&1&&(L(s,o_,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.contentTemplate=a.first),F(a=D())&&(o.templates=a)}},inputs:{value:[2,"value","value",ze],showValue:[2,"showValue","showValue",H],styleClass:"styleClass",valueStyleClass:"valueStyleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[ge([Ul]),Ee,Z],decls:3,vars:15,consts:[["role","progressbar",3,"ngStyle","ngClass"],["style","display:flex",3,"ngClass","class","width","background",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[2,"display","flex",3,"ngClass"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(i,o){i&1&&(w(0,"div",0),v(1,c_,4,13,"div",1)(2,d_,2,7,"div",2),T()),i&2&&(B(o.styleClass),f("ngStyle",o.style)("ngClass",Ke(12,s_,o.mode==="determinate",o.mode==="indeterminate")),S("aria-valuemin",0)("aria-valuenow",o.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root")("aria-label",o.value+o.unit),g(),f("ngIf",o.mode==="determinate"),g(),f("ngIf",o.mode==="indeterminate"))},dependencies:[se,ye,Me,De,Ue,N],encapsulation:2,changeDetection:0})}return t})(),FC=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Ms,N,N]})}return t})();var h_=["file"],f_=["header"],Wl=["content"],m_=["toolbar"],g_=["chooseicon"],__=["filelabel"],b_=["uploadicon"],y_=["cancelicon"],v_=["empty"],x_=["advancedfileinput"],C_=["basicfileinput"],w_=(t,n,e,i,o)=>({$implicit:t,uploadedFiles:n,chooseCallback:e,clearCallback:i,uploadCallback:o}),T_=(t,n,e,i,o,s,a,r)=>({$implicit:t,uploadedFiles:n,chooseCallback:e,clearCallback:i,removeUploadedFileCallback:o,removeFileCallback:s,progress:a,messages:r}),I_=t=>({$implicit:t});function S_(t,n){if(t&1&&z(0,"span"),t&2){let e=_(3);B(e.chooseIcon),S("aria-label",!0)("data-pc-section","chooseicon")}}function k_(t,n){t&1&&z(0,"PlusIcon"),t&2&&S("aria-label",!0)("data-pc-section","chooseicon")}function M_(t,n){}function O_(t,n){t&1&&v(0,M_,0,0,"ng-template")}function F_(t,n){if(t&1&&(w(0,"span"),v(1,O_,1,0,null,11),T()),t&2){let e=_(4);S("aria-label",!0)("data-pc-section","chooseicon"),g(),f("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function D_(t,n){if(t&1&&(te(0),v(1,k_,1,2,"PlusIcon",9)(2,F_,2,3,"span",9),ie()),t&2){let e=_(3);g(),f("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),g(),f("ngIf",e.chooseIconTemplate||e._chooseIconTemplate)}}function A_(t,n){if(t&1&&z(0,"span",21),t&2){let e=_(4);f("ngClass",e.uploadIcon),S("aria-hidden",!0)}}function E_(t,n){t&1&&z(0,"UploadIcon")}function P_(t,n){}function L_(t,n){t&1&&v(0,P_,0,0,"ng-template")}function V_(t,n){if(t&1&&(w(0,"span"),v(1,L_,1,0,null,11),T()),t&2){let e=_(5);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.uploadIconTemplate||e._uploadIconTemplate)}}function z_(t,n){if(t&1&&(te(0),v(1,E_,1,0,"UploadIcon",9)(2,V_,2,2,"span",9),ie()),t&2){let e=_(4);g(),f("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),g(),f("ngIf",e.uploadIconTemplate||e._uploadIconTemplate)}}function R_(t,n){if(t&1){let e=X();w(0,"p-button",19),$("onClick",function(){A(e);let o=_(3);return E(o.upload())}),v(1,A_,1,2,"span",20)(2,z_,3,2,"ng-container",9),T()}if(t&2){let e=_(3);f("label",e.uploadButtonLabel)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass","p-fileupload-upload-button "+e.uploadStyleClass)("buttonProps",e.uploadButtonProps),g(),f("ngIf",e.uploadIcon),g(),f("ngIf",!e.uploadIcon)}}function $_(t,n){if(t&1&&z(0,"span",21),t&2){let e=_(4);f("ngClass",e.cancelIcon)}}function B_(t,n){t&1&&z(0,"TimesIcon"),t&2&&S("aria-hidden",!0)}function H_(t,n){}function N_(t,n){t&1&&v(0,H_,0,0,"ng-template")}function j_(t,n){if(t&1&&(w(0,"span"),v(1,N_,1,0,null,11),T()),t&2){let e=_(5);S("aria-hidden",!0),g(),f("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function U_(t,n){if(t&1&&(te(0),v(1,B_,1,1,"TimesIcon",9)(2,j_,2,2,"span",9),ie()),t&2){let e=_(4);g(),f("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),g(),f("ngIf",e.cancelIconTemplate||e._cancelIconTemplate)}}function W_(t,n){if(t&1){let e=X();w(0,"p-button",19),$("onClick",function(){A(e);let o=_(3);return E(o.clear())}),v(1,$_,1,1,"span",20)(2,U_,3,2,"ng-container",9),T()}if(t&2){let e=_(3);f("label",e.cancelButtonLabel)("disabled",!e.hasFiles()||e.uploading)("styleClass","p-fileupload-cancel-button "+e.cancelStyleClass)("buttonProps",e.cancelButtonProps),g(),f("ngIf",e.cancelIcon),g(),f("ngIf",!e.cancelIcon)}}function Q_(t,n){if(t&1){let e=X();te(0),w(1,"p-button",16),$("focus",function(){A(e);let o=_(2);return E(o.onFocus())})("blur",function(){A(e);let o=_(2);return E(o.onBlur())})("onClick",function(){A(e);let o=_(2);return E(o.choose())})("keydown.enter",function(){A(e);let o=_(2);return E(o.choose())}),w(2,"input",7,0),$("change",function(o){A(e);let s=_(2);return E(s.onFileSelect(o))}),T(),v(4,S_,1,4,"span",17)(5,D_,3,2,"ng-container",9),T(),v(6,R_,3,6,"p-button",18)(7,W_,3,6,"p-button",18),ie()}if(t&2){let e=_(2);g(),f("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled||e.isChooseDisabled())("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),S("data-pc-section","choosebutton"),g(),f("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),S("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),g(2),f("ngIf",e.chooseIcon),g(),f("ngIf",!e.chooseIcon),g(),f("ngIf",!e.auto&&e.showUploadButton),g(),f("ngIf",!e.auto&&e.showCancelButton)}}function K_(t,n){t&1&&K(0)}function q_(t,n){t&1&&K(0)}function Y_(t,n){if(t&1&&z(0,"p-progressbar",22),t&2){let e=_(2);f("value",e.progress)("showValue",!1)}}function X_(t,n){if(t&1&&z(0,"p-message",14),t&2){let e=n.$implicit;f("severity",e.severity)("text",e.text)}}function G_(t,n){if(t&1){let e=X();w(0,"img",33),$("error",function(o){A(e);let s=_(5);return E(s.imageError(o))}),T()}if(t&2){let e=_().$implicit,i=_(4);f("src",e.objectURL,Mt)("width",i.previewWidth)}}function Z_(t,n){t&1&&z(0,"TimesIcon")}function J_(t,n){}function eb(t,n){t&1&&v(0,J_,0,0,"ng-template")}function tb(t,n){if(t&1&&v(0,Z_,1,0,"TimesIcon",9)(1,eb,1,0,null,11),t&2){let e=_(5);f("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),g(),f("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function ib(t,n){if(t&1){let e=X();w(0,"div",24),v(1,G_,1,2,"img",27),w(2,"div",28)(3,"div",29),Te(4),T(),w(5,"span",30),Te(6),T()(),w(7,"div",31)(8,"p-button",32),$("onClick",function(o){let s=A(e).index,a=_(4);return E(a.remove(o,s))}),v(9,tb,2,2,"ng-template",null,2,ke),T()()()}if(t&2){let e=n.$implicit,i=_(4);g(),f("ngIf",i.isImage(e)),g(3),Qe(e.name),g(2),Qe(i.formatSize(e.size)),g(2),f("disabled",i.uploading)("styleClass","p-fileupload-file-remove-button "+i.removeStyleClass)}}function nb(t,n){if(t&1&&v(0,ib,11,5,"div",26),t&2){let e=_(3);f("ngForOf",e.files)}}function ob(t,n){}function sb(t,n){if(t&1&&v(0,ob,0,0,"ng-template",25),t&2){let e=_(3);f("ngForOf",e.files)("ngForTemplate",e.fileTemplate||e._fileTemplate)}}function ab(t,n){if(t&1&&(w(0,"div",23),v(1,nb,1,1,"div",24)(2,sb,1,2,null,25),T()),t&2){let e=_(2);g(),Ce(!e.fileTemplate&&!e._fileTemplate?1:-1),g(),Ce(e.fileTemplate||e._fileTemplate?2:-1)}}function rb(t,n){t&1&&K(0)}function lb(t,n){t&1&&K(0)}function cb(t,n){if(t&1&&v(0,lb,1,0,"ng-container",11),t&2){let e=_(2);f("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function db(t,n){if(t&1){let e=X();w(0,"div",6)(1,"input",7,0),$("change",function(o){A(e);let s=_();return E(s.onFileSelect(o))}),T(),w(3,"div",8),v(4,Q_,8,15,"ng-container",9)(5,K_,1,0,"ng-container",10)(6,q_,1,0,"ng-container",11),T(),w(7,"div",12,1),$("dragenter",function(o){A(e);let s=_();return E(s.onDragEnter(o))})("dragleave",function(o){A(e);let s=_();return E(s.onDragLeave(o))})("drop",function(o){A(e);let s=_();return E(s.onDrop(o))}),v(9,Y_,1,2,"p-progressbar",13),ao(10,X_,1,2,"p-message",14,so),v(12,ab,3,2,"div",15)(13,rb,1,0,"ng-container",10)(14,cb,1,1,"ng-container"),T()()}if(t&2){let e=_();B(e.styleClass),f("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),S("data-pc-name","fileupload")("data-pc-section","root"),g(),je("display","none"),f("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),S("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),g(3),f("ngIf",!e.headerTemplate&&!e._headerTemplate),g(),f("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",$s(24,w_,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.upload.bind(e))),g(),f("ngTemplateOutlet",e.toolbarTemplate||e._toolbarTemplate),g(),S("data-pc-section","content"),g(2),f("ngIf",e.hasFiles()),g(),ro(e.msgs),g(2),f("ngIf",e.hasFiles()),g(),f("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Bs(30,T_,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.removeUploadedFile.bind(e),e.remove.bind(e),e.progress,e.msgs)),g(),Ce((e.emptyTemplate||e._emptyTemplate)&&!e.hasFiles()&&!e.hasUploadedFiles()?14:-1)}}function pb(t,n){if(t&1&&z(0,"p-message",14),t&2){let e=n.$implicit;f("severity",e.severity)("text",e.text)}}function ub(t,n){if(t&1&&z(0,"span",37),t&2){let e=_(4);f("ngClass",e.uploadIcon)}}function hb(t,n){t&1&&z(0,"UploadIcon",40),t&2&&f("styleClass","p-button-icon p-button-icon-left")}function fb(t,n){}function mb(t,n){t&1&&v(0,fb,0,0,"ng-template")}function gb(t,n){if(t&1&&(w(0,"span",41),v(1,mb,1,0,null,11),T()),t&2){let e=_(5);g(),f("ngTemplateOutlet",e._uploadIconTemplate||e.uploadIconTemplate)}}function _b(t,n){if(t&1&&(te(0),v(1,hb,1,1,"UploadIcon",38)(2,gb,2,1,"span",39),ie()),t&2){let e=_(4);g(),f("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),g(),f("ngIf",e._uploadIconTemplate||e.uploadIconTemplate)}}function bb(t,n){if(t&1&&v(0,ub,1,1,"span",36)(1,_b,3,2,"ng-container",9),t&2){let e=_(3);f("ngIf",e.uploadIcon),g(),f("ngIf",!e.uploadIcon)}}function yb(t,n){if(t&1&&z(0,"span",43),t&2){let e=_(4);f("ngClass",e.chooseIcon)}}function vb(t,n){t&1&&z(0,"PlusIcon"),t&2&&S("data-pc-section","uploadicon")}function xb(t,n){}function Cb(t,n){t&1&&v(0,xb,0,0,"ng-template")}function wb(t,n){if(t&1&&(te(0),v(1,vb,1,1,"PlusIcon",9)(2,Cb,1,0,null,11),ie()),t&2){let e=_(4);g(),f("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),g(),f("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function Tb(t,n){if(t&1&&v(0,yb,1,1,"span",42)(1,wb,3,2,"ng-container",9),t&2){let e=_(3);f("ngIf",e.chooseIcon),g(),f("ngIf",!e.chooseIcon)}}function Ib(t,n){if(t&1&&v(0,bb,2,2)(1,Tb,2,2),t&2){let e=_(2);Ce(e.hasFiles()&&!e.auto?0:1)}}function Sb(t,n){if(t&1&&(w(0,"span"),Te(1),T()),t&2){let e=_(3);B(e.cx("filelabel")),g(),Gt(" ",e.basicFileChosenLabel()," ")}}function kb(t,n){t&1&&K(0)}function Mb(t,n){if(t&1&&v(0,kb,1,0,"ng-container",10),t&2){let e=_(3);f("ngTemplateOutlet",e.fileLabelTemplate||e._fileLabelTemplate)("ngTemplateOutletContext",G(2,I_,e.files))}}function Ob(t,n){if(t&1&&v(0,Sb,2,3,"span",44)(1,Mb,1,4,"ng-container"),t&2){let e=_(2);Ce(!e.fileLabelTemplate&&!e._fileLabelTemplate?0:1)}}function Fb(t,n){if(t&1){let e=X();w(0,"div",21),ao(1,pb,1,2,"p-message",14,so),w(3,"p-button",34),$("onClick",function(){A(e);let o=_();return E(o.onBasicUploaderClick())})("keydown",function(o){A(e);let s=_();return E(s.onBasicKeydown(o))}),v(4,Ib,2,1,"ng-template",null,2,ke),w(6,"input",35,3),$("change",function(o){A(e);let s=_();return E(s.onFileSelect(o))})("focus",function(){A(e);let o=_();return E(o.onFocus())})("blur",function(){A(e);let o=_();return E(o.onBlur())}),T()(),v(8,Ob,2,1),T()}if(t&2){let e=_();B(e.styleClass),f("ngClass","p-fileupload p-fileupload-basic p-component"),S("data-pc-name","fileupload"),g(),ro(e.msgs),g(2),tt(e.style),f("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled)("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),g(3),f("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled),S("aria-label",e.browseFilesLabel)("data-pc-section","input"),g(2),Ce(e.auto?-1:8)}}var Db=({dt:t})=>`
.p-fileupload input[type="file"] {
display: none;
}
.p-fileupload-advanced {
border: 1px solid ${t("fileupload.border.color")};
border-radius: ${t("fileupload.border.radius")};
background: ${t("fileupload.background")};
color: ${t("fileupload.color")};
}
.p-fileupload-header {
display: flex;
align-items: center;
padding: ${t("fileupload.header.padding")};
background: ${t("fileupload.header.background")};
color: ${t("fileupload.header.color")};
border-style: solid;
border-width: ${t("fileupload.header.border.width")};
border-color: ${t("fileupload.header.border.color")};
border-radius: ${t("fileupload.header.border.radius")};
gap: ${t("fileupload.header.gap")};
}
.p-fileupload-content {
border: 1px solid transparent;
display: flex;
flex-direction: column;
gap: ${t("fileupload.content.gap")};
transition: border-color ${t("fileupload.transition.duration")};
padding: ${t("fileupload.content.padding")};
}
.p-fileupload-content .p-progressbar {
width: 100%;
height: ${t("fileupload.progressbar.height")};
}
.p-fileupload-file-list {
display: flex;
flex-direction: column;
gap: ${t("fileupload.filelist.gap")};
}
.p-fileupload-file {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: ${t("fileupload.file.padding")};
border-bottom: 1px solid ${t("fileupload.file.border.color")};
gap: ${t("fileupload.file.gap")};
}
.p-fileupload-file:last-child {
border-bottom: 0;
}
.p-fileupload-file-info {
display: flex;
flex-direction: column;
gap: ${t("fileupload.file.info.gap")};
}
.p-fileupload-file-thumbnail {
flex-shrink: 0;
}
.p-fileupload-file-actions {
margin-left: auto;
}
.p-fileupload-highlight {
border: 1px dashed ${t("fileupload.content.highlight.border.color")};
}
.p-fileupload-advanced .p-message {
margin-top: 0;
}
.p-fileupload-basic {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: ${t("fileupload.basic.gap")};
}
`,Ab={root:({instance:t})=>`p-fileupload p-fileupload-${t.mode} p-component`,header:"p-fileupload-header",pcChooseButton:"p-fileupload-choose-button",pcUploadButton:"p-fileupload-upload-button",pcCancelButton:"p-fileupload-cancel-button",content:"p-fileupload-content",fileList:"p-fileupload-file-list",file:"p-fileupload-file",fileThumbnail:"p-fileupload-file-thumbnail",fileInfo:"p-fileupload-file-info",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",pcFileBadge:"p-fileupload-file-badge",fileActions:"p-fileupload-file-actions",pcFileRemoveButton:"p-fileupload-file-remove-button"},Ql=(()=>{class t extends be{name="fileupload";theme=Db;classes=Ab;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var Eb=(()=>{class t extends le{name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;chooseButtonProps;uploadButtonProps={severity:"secondary"};cancelButtonProps={severity:"secondary"};onBeforeUpload=new U;onSend=new U;onUpload=new U;onError=new U;onClear=new U;onRemove=new U;onSelect=new U;onProgress=new U;uploadHandler=new U;onImageError=new U;onRemoveUploadedFile=new U;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;fileLabelTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;advancedFileInput;basicFileInput;content;set files(e){this._files=[];for(let i=0;i<e.length;i++){let o=e[i];this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[i]))),this._files.push(e[i]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];sanitizer=ne(js);zone=ne(Vt);http=ne(Ns);_componentStyle=ne(Ql);ngOnInit(){super.ngOnInit(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){super.ngAfterViewInit(),dt(this.platformId)&&this.mode==="advanced"&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}_headerTemplate;_contentTemplate;_toolbarTemplate;_chooseIconTemplate;_uploadIconTemplate;_cancelIconTemplate;_emptyTemplate;_fileTemplate;_fileLabelTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"file":this._fileTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"toolbar":this._toolbarTemplate=e.template;break;case"chooseicon":this._chooseIconTemplate=e.template;break;case"uploadicon":this._uploadIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"filelabel":this._fileLabelTemplate=e.template;break;default:this._fileTemplate=e.template;break}})}basicFileChosenLabel(){return this.auto?this.chooseButtonLabel:this.hasFiles()?this.files&&this.files.length===1?this.files[0].name:this.config.getTranslation("fileChosenMessage")?.replace("{0}",this.files.length):this.config.getTranslation("noFileChosenMessage")||""}getTranslation(e){return this.config.getTranslation(e)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(e){if(e.type!=="drop"&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let o=0;o<i.length;o++){let s=i[o];this.isFileSelected(s)||this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(i[o]))),this.files.push(i[o]))}this.onSelect.emit({originalEvent:e,files:i,currentFiles:this.files}),this.checkFileLimit(i),this.hasFiles()&&this.auto&&(this.mode!=="advanced"||!this.isFileLimitExceeded())&&this.upload(),e.type!=="drop"&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let i of this.files)if(i.name+i.type+i.size===e.name+e.type+e.size)return!0;return!1}isIE11(){if(dt(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(e){if(this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(e)){let i=`${this.invalidFileTypeMessageSummary.replace("{0}",e.name)} ${this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}`;return this.msgs.push({severity:"error",text:i}),!1}if(this.maxFileSize&&e.size>this.maxFileSize){let i=`${this.invalidFileSizeMessageSummary.replace("{0}",e.name)} ${this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}`;return this.msgs.push({severity:"error",text:i}),!1}return!0}isFileTypeValid(e){let i=this.accept?.split(",").map(o=>o.trim());for(let o of i)if(this.isWildcard(o)?this.getTypeClass(e.type)===this.getTypeClass(o):e.type==o||this.getFileExtension(e).toLowerCase()===o.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return e.indexOf("*")!==-1}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}uploader(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i<this.files.length;i++)e.append(this.name,this.files[i],this.files[i].name);this.http.request(this.method,this.url,{body:e,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(i=>{switch(i.type){case cn.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case cn.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case cn.UploadProgress:{i.loaded&&(this.progress=Math.round(i.loaded*100/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress});break}}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.msgs=[],this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit(this.files)}removeUploadedFile(e){let i=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:i,files:this.uploadedFiles})}isFileLimitExceeded(){let i=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=i&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<i}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(e){this.msgs??=[];let i=this.msgs.length>0&&this.fileLimit&&this.fileLimit<e.length;if(this.isFileLimitExceeded()||i){let o=`${this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}`;this.msgs.push({severity:"error",text:o})}else this.msgs=this.msgs.filter(o=>!o.text.includes(this.invalidFileLimitMessageSummary))}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(dn(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||lo(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){lo(this.content?.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&i.length===1)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){let s=this.getTranslation(ot.FILE_SIZE_TYPES);if(e===0)return`0 ${s[0]}`;let a=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,a)).toFixed(3)} ${s[a]}`}upload(){this.hasFiles()&&this.uploader()}onBasicUploaderClick(){this.basicFileInput?.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault();break}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(ot.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(ot.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(ot.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(ot.ARIA)[ot.BROWSE_FILES]}get pendingLabel(){return this.config.getTranslation(ot.PENDING)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275cmp=Y({type:t,selectors:[["p-fileupload"],["p-fileUpload"]],contentQueries:function(i,o,s){if(i&1&&(L(s,h_,4),L(s,f_,4),L(s,Wl,4),L(s,m_,4),L(s,g_,4),L(s,__,4),L(s,b_,4),L(s,y_,4),L(s,v_,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.fileTemplate=a.first),F(a=D())&&(o.headerTemplate=a.first),F(a=D())&&(o.contentTemplate=a.first),F(a=D())&&(o.toolbarTemplate=a.first),F(a=D())&&(o.chooseIconTemplate=a.first),F(a=D())&&(o.fileLabelTemplate=a.first),F(a=D())&&(o.uploadIconTemplate=a.first),F(a=D())&&(o.cancelIconTemplate=a.first),F(a=D())&&(o.emptyTemplate=a.first),F(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Oe(x_,5),Oe(C_,5),Oe(Wl,5)),i&2){let s;F(s=D())&&(o.advancedFileInput=s.first),F(s=D())&&(o.basicFileInput=s.first),F(s=D())&&(o.content=s.first)}},inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",H],accept:"accept",disabled:[2,"disabled","disabled",H],auto:[2,"auto","auto",H],withCredentials:[2,"withCredentials","withCredentials",H],maxFileSize:[2,"maxFileSize","maxFileSize",ze],invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:[2,"previewWidth","previewWidth",ze],chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:[2,"showUploadButton","showUploadButton",H],showCancelButton:[2,"showCancelButton","showCancelButton",H],mode:"mode",headers:"headers",customUpload:[2,"customUpload","customUpload",H],fileLimit:[2,"fileLimit","fileLimit",e=>ze(e,null)],uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",chooseButtonProps:"chooseButtonProps",uploadButtonProps:"uploadButtonProps",cancelButtonProps:"cancelButtonProps",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError",onRemoveUploadedFile:"onRemoveUploadedFile"},features:[ge([Ql]),Ee,Z],decls:2,vars:2,consts:[["advancedfileinput",""],["content",""],["icon",""],["basicfileinput",""],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[3,"ngClass","ngStyle"],["type","file",3,"change","multiple","accept","disabled"],[1,"p-fileupload-header"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],[3,"value","showValue",4,"ngIf"],[3,"severity","text"],["class","p-fileupload-file-list",4,"ngIf"],[3,"focus","blur","onClick","keydown.enter","styleClass","disabled","label","buttonProps"],[3,"class",4,"ngIf"],[3,"label","disabled","styleClass","buttonProps","onClick",4,"ngIf"],[3,"onClick","label","disabled","styleClass","buttonProps"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-file-list"],[1,"p-fileupload-file"],["ngFor","",3,"ngForOf","ngForTemplate"],["class","p-fileupload-file",4,"ngFor","ngForOf"],["class","p-fileupload-file-thumbnail",3,"src","width","error",4,"ngIf"],[1,"p-fileupload-file-info"],[1,"p-fileupload-file-name"],[1,"p-fileupload-file-size"],[1,"p-fileupload-file-actions"],["text","","rounded","","severity","danger",3,"onClick","disabled","styleClass"],[1,"p-fileupload-file-thumbnail",3,"error","src","width"],[3,"onClick","keydown","styleClass","disabled","label","buttonProps"],["type","file",3,"change","focus","blur","accept","multiple","disabled"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],[3,"class"]],template:function(i,o){i&1&&v(0,db,15,39,"div",4)(1,Fb,9,16,"div",5),i&2&&(f("ngIf",o.mode==="advanced"),g(),f("ngIf",o.mode==="basic"))},dependencies:[se,ye,ui,Me,De,Ue,hn,Ms,ks,ia,El,zt,N],encapsulation:2,changeDetection:0})}return t})(),e2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[Eb,N,N]})}return t})();var Pb=["item"],Lb=["header"],Vb=["footer"],zb=["previousicon"],Rb=["nexticon"],$b=["itemsContainer"],Bb=["indicatorContent"],Hb=[[["p-header"]],[["p-footer"]]],Nb=["p-header","p-footer"],jb=(t,n)=>({"p-carousel p-component":!0,"p-carousel-vertical":t,"p-carousel-horizontal":n}),Ub=t=>({height:t}),Wb=t=>({"p-carousel-prev-button":!0,"p-disabled":t}),ql=(t,n,e)=>({"p-carousel-item p-carousel-item-clone":!0,"p-carousel-item-active":t,"p-carousel-item-start":n,"p-carousel-item-end":e}),Os=t=>({$implicit:t}),Qb=(t,n,e)=>({"p-carousel-item":!0,"p-carousel-item-active":t,"p-carousel-item-start":n,"p-carousel-item-end":e}),Kb=t=>({"p-carousel-next-button":!0,"p-disabled":t}),qb=t=>({"p-carousel-indicator":!0,"p-carousel-indicator-active":t});function Yb(t,n){t&1&&K(0)}function Xb(t,n){if(t&1&&(w(0,"div",14),we(1),v(2,Yb,1,0,"ng-container",15),T()),t&2){let e=_();g(2),f("ngTemplateOutlet",e.headerTemplate)}}function Gb(t,n){t&1&&z(0,"ChevronLeftIcon",20),t&2&&f("styleClass","carousel-prev-icon")}function Zb(t,n){t&1&&z(0,"ChevronUpIcon",20),t&2&&f("styleClass","carousel-prev-icon")}function Jb(t,n){if(t&1&&(te(0),v(1,Gb,1,1,"ChevronLeftIcon",19)(2,Zb,1,1,"ChevronUpIcon",19),ie()),t&2){let e=_(3);g(),f("ngIf",!e.isVertical()),g(),f("ngIf",e.isVertical())}}function e1(t,n){}function t1(t,n){t&1&&v(0,e1,0,0,"ng-template")}function i1(t,n){if(t&1&&(w(0,"span",21),v(1,t1,1,0,null,15),T()),t&2){let e=_(3);g(),f("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function n1(t,n){if(t&1&&v(0,Jb,3,2,"ng-container",17)(1,i1,2,1,"span",18),t&2){let e=_(2);f("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate&&!(e.prevButtonProps!=null&&e.prevButtonProps.icon)),g(),f("ngIf",(e.previousIconTemplate||e._previousIconTemplate)&&!(e.prevButtonProps!=null&&e.prevButtonProps.icon))}}function o1(t,n){if(t&1){let e=X();w(0,"p-button",16),$("click",function(o){A(e);let s=_();return E(s.navBackward(o))}),v(1,n1,2,2,"ng-template",null,1,ke),T()}if(t&2){let e=_();f("ngClass",G(5,Wb,e.isBackwardNavDisabled()))("disabled",e.isBackwardNavDisabled())("text",!0)("buttonProps",e.prevButtonProps),S("aria-label",e.ariaPrevButtonLabel())}}function s1(t,n){t&1&&K(0)}function a1(t,n){if(t&1&&(w(0,"div",5),v(1,s1,1,0,"ng-container",22),T()),t&2){let e=n.$implicit,i=n.index,o=_();f("ngClass",ln(6,ql,o.totalShiftedItems*-1===o.value.length,i===0,o.clonedItemsForStarting.length-1===i)),S("aria-hidden",o.totalShiftedItems*-1!==o.value.length)("aria-label",o.ariaSlideNumber(i))("aria-roledescription",o.ariaSlideLabel()),g(),f("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",G(10,Os,e))}}function r1(t,n){t&1&&K(0)}function l1(t,n){if(t&1&&(w(0,"div",5),v(1,r1,1,0,"ng-container",22),T()),t&2){let e=n.$implicit,i=n.index,o=_();f("ngClass",ln(6,Qb,o.firstIndex()<=i&&o.lastIndex()>=i,o.firstIndex()===i,o.lastIndex()===i)),S("aria-hidden",!(o.firstIndex()<=i&&o.lastIndex()>=i))("aria-label",o.ariaSlideNumber(i))("aria-roledescription",o.ariaSlideLabel()),g(),f("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",G(10,Os,e))}}function c1(t,n){t&1&&K(0)}function d1(t,n){if(t&1&&(w(0,"div",5),v(1,c1,1,0,"ng-container",22),T()),t&2){let e=n.$implicit,i=n.index,o=_();f("ngClass",ln(3,ql,o.totalShiftedItems*-1===o.numVisible,i===0,o.clonedItemsForFinishing.length-1===i)),g(),f("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",G(7,Os,e))}}function p1(t,n){t&1&&z(0,"ChevronRightIcon",20),t&2&&f("styleClass","carousel-next-icon")}function u1(t,n){t&1&&z(0,"ChevronDownIcon",20),t&2&&f("styleClass","carousel-next-icon")}function h1(t,n){if(t&1&&(te(0),v(1,p1,1,1,"ChevronRightIcon",19)(2,u1,1,1,"ChevronDownIcon",19),ie()),t&2){let e=_(3);g(),f("ngIf",!e.isVertical()),g(),f("ngIf",e.isVertical())}}function f1(t,n){}function m1(t,n){t&1&&v(0,f1,0,0,"ng-template")}function g1(t,n){if(t&1&&(w(0,"span",25),v(1,m1,1,0,null,15),T()),t&2){let e=_(3);g(),f("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function _1(t,n){if(t&1&&v(0,h1,3,2,"ng-container",17)(1,g1,2,1,"span",24),t&2){let e=_(2);f("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate&&!(e.nextButtonProps!=null&&e.nextButtonProps.icon)),g(),f("ngIf",e.nextIconTemplate||e._nextIconTemplate&&!(e.nextButtonProps!=null&&e.nextButtonProps.icon))}}function b1(t,n){if(t&1){let e=X();w(0,"p-button",23),$("click",function(o){A(e);let s=_();return E(s.navForward(o))}),v(1,_1,2,2,"ng-template",null,1,ke),T()}if(t&2){let e=_();f("ngClass",G(5,Kb,e.isForwardNavDisabled()))("disabled",e.isForwardNavDisabled())("buttonProps",e.nextButtonProps)("text",!0),S("aria-label",e.ariaNextButtonLabel())}}function y1(t,n){if(t&1){let e=X();w(0,"li",5)(1,"button",27),$("click",function(o){let s=A(e).index,a=_(2);return E(a.onDotClick(o,s))}),T()()}if(t&2){let e=n.index,i=_(2);f("ngClass",G(9,qb,i._page===e)),S("data-pc-section","indicator"),g(),B(i.indicatorStyleClass),f("ngClass","p-carousel-indicator-button")("ngStyle",i.indicatorStyle)("tabindex",i._page===e?0:-1),S("aria-label",i.ariaPageLabel(e+1))("aria-current",i._page===e?"page":void 0)}}function v1(t,n){if(t&1){let e=X();w(0,"ul",26,2),$("keydown",function(o){A(e);let s=_();return E(s.onIndicatorKeydown(o))}),v(2,y1,2,11,"li",10),T()}if(t&2){let e=_();B(e.indicatorsContentClass),f("ngClass","p-carousel-indicator-list")("ngStyle",e.indicatorsContentStyle),g(2),f("ngForOf",e.totalDotsArray())}}function x1(t,n){t&1&&K(0)}function C1(t,n){if(t&1&&(w(0,"div",28),we(1,1),v(2,x1,1,0,"ng-container",15),T()),t&2){let e=_();g(2),f("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var w1=({dt:t})=>`
.p-carousel {
display: flex;
flex-direction: column;
}
.p-carousel-content-container {
display: flex;
flex-direction: column;
overflow: auto;
}
.p-carousel-content {
display: flex;
flex-direction: row;
gap: ${t("carousel.content.gap")};
}
.p-carousel-content:dir(rtl) {
flex-direction: row-reverse;
}
.p-carousel-viewport {
overflow: hidden;
width: 100%;
}
.p-carousel-item-list {
display: flex;
flex-direction: row;
}
.p-carousel-item-list:dir(rtl) {
flex-direction: row-reverse;
}
.p-carousel-prev-button,
.p-carousel-next-button {
align-self: center;
flex-shrink: 0;
}
.p-carousel-indicator-list {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
padding: ${t("carousel.indicator.list.padding")};
gap: ${t("carousel.indicator.list.gap")};
margin: 0;
list-style: none;
}
.p-carousel-indicator-button {
display: flex;
align-items: center;
justify-content: center;
background: ${t("carousel.indicator.background")};
width: ${t("carousel.indicator.width")};
height: ${t("carousel.indicator.height")};
border: 0 none;
transition: background ${t("carousel.transition.duration")}, color ${t("carousel.transition.duration")}, outline-color ${t("carousel.transition.duration")}, box-shadow ${t("carousel.transition.duration")};
outline-color: transparent;
border-radius: ${t("carousel.indicator.border.radius")};
padding: 0;
margin: 0;
user-select: none;
cursor: pointer;
}
.p-carousel-indicator-button:focus-visible {
box-shadow: ${t("carousel.indicator.focus.ring.shadow")};
outline: ${t("carousel.indicator.focus.ring.width")} ${t("carousel.indicator.focus.ring.style")} ${t("carousel.indicator.focus.ring.color")};
outline-offset: ${t("carousel.indicator.focus.ring.offset")};
}
.p-carousel-indicator-button:hover {
background: ${t("carousel.indicator.hover.background")};
}
.p-carousel-indicator-active .p-carousel-indicator-button {
background: ${t("carousel.indicator.active.background")};
}
.p-carousel-vertical .p-carousel-content {
flex-direction: column;
}
.p-carousel-vertical .p-carousel-item-list {
flex-direction: column;
height: 100%;
}
.p-items-hidden .p-carousel-item {
visibility: hidden;
}
.p-items-hidden .p-carousel-item.p-carousel-item-active {
visibility: visible;
}
`,T1={root:({instance:t})=>["p-carousel p-component",{"p-carousel-vertical":t.isVertical(),"p-carousel-horizontal":!t.isVertical()}],header:"p-carousel-header",contentContainer:"p-carousel-content-container",content:"p-carousel-content",pcPrevButton:({instance:t})=>["p-carousel-prev-button",{"p-disabled":t.backwardIsDisabled}],viewport:"p-carousel-viewport",itemList:"p-carousel-item-list",itemClone:({index:t,value:n,totalShiftedItems:e,d_numVisible:i})=>["p-carousel-item p-carousel-item-clone",{"p-carousel-item-active":e*-1===n.length+i,"p-carousel-item-start":t===0,"p-carousel-item-end":n.slice(-1*i).length-1===t}],item:({instance:t,index:n})=>["p-carousel-item",{"p-carousel-item-active":t.firstIndex()<=n&&t.lastIndex()>=n,"p-carousel-item-start":t.firstIndex()===n,"p-carousel-item-end":t.lastIndex()===n}],pcNextButton:({instance:t})=>["p-carousel-next-button",{"p-disabled":t.forwardIsDisabled}],indicatorList:"p-carousel-indicator-list",indicator:({instance:t,index:n})=>["p-carousel-indicator",{"p-carousel-indicator-active":t.d_page===n}],indicatorButton:"p-carousel-indicator-button",footer:"p-carousel-footer"},Kl=(()=>{class t extends be{name="carousel";theme=w1;classes=T1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=j(t)))(o||t)}})();static \u0275prov=me({token:t,factory:t.\u0275fac})}return t})();var I1=(()=>{class t extends le{el;zone;get page(){return this._page}set page(e){this.isCreated&&e!==this._page&&(this.autoplayInterval&&this.stopAutoplay(),e>this._page&&e<=this.totalDots()-1?this.step(-1,e):e<this._page&&this.step(1,e)),this._page=e}get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e}get numScroll(){return this._numVisible}set numScroll(e){this._numScroll=e}responsiveOptions;orientation="horizontal";verticalViewPortHeight="300px";contentClass="";indicatorsContentClass="";indicatorsContentStyle;indicatorStyleClass="";indicatorStyle;get value(){return this._value}set value(e){this._value=e}circular=!1;showIndicators=!0;showNavigators=!0;autoplayInterval=0;style;styleClass;prevButtonProps={severity:"secondary",text:!0,rounded:!0};nextButtonProps={severity:"secondary",text:!0,rounded:!0};onPage=new U;itemsContainer;indicatorContent;headerFacet;footerFacet;_numVisible=1;_numScroll=1;_oldNumScroll=0;prevState={numScroll:0,numVisible:0,value:[]};defaultNumScroll=1;defaultNumVisible=1;_page=0;_value;carouselStyle;id;totalShiftedItems;isRemainingItemsAdded=!1;animationTimeout;translateTimeout;remainingItems=0;_items;startPos;documentResizeListener;clonedItemsForStarting;clonedItemsForFinishing;allowAutoplay;interval;isCreated;swipeThreshold=20;itemTemplate;headerTemplate;footerTemplate;previousIconTemplate;nextIconTemplate;_itemTemplate;_headerTemplate;_footerTemplate;_previousIconTemplate;_nextIconTemplate;window;_componentStyle=ne(Kl);constructor(e,i){super(),this.el=e,this.zone=i,this.totalShiftedItems=this.page*this.numScroll*-1,this.window=this.document.defaultView}ngOnChanges(e){dt(this.platformId)&&(e.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(e.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),e.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))),this.cd.markForCheck()}templates;ngAfterContentInit(){this.id=Re("pn_id_"),dt(this.platformId)&&(this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()),this.templates?.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}}),this.cd.detectChanges()}ngAfterContentChecked(){if(dt(this.platformId)){let e=this.isCircular(),i=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(!1),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let o=this._page;this.totalDots()!==0&&o>=this.totalDots()&&(o=this.totalDots()-1,this._page=o,this.onPage.emit({page:this.page})),i=o*this._numScroll*-1,e&&(i-=this._numVisible),o===this.totalDots()-1&&this.remainingItems>0?(i+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,i!==this.totalShiftedItems&&(this.totalShiftedItems=i),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${i*(100/this._numVisible)}%, 0)`:`translate3d(${i*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}e&&(this.page===0?i=-1*this._numVisible:i===0&&(i=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),i!==this.totalShiftedItems&&(this.totalShiftedItems=i))}}createStyle(){this.carouselStyle||(this.carouselStyle=this.renderer.createElement("style"),this.carouselStyle.type="text/css",this.renderer.appendChild(this.document.head,this.carouselStyle),Ks(this.carouselStyle,"nonce",this.config?.csp()?.nonce));let e=`
#${this.id} .p-carousel-item {
flex: 1 0 ${100/this.numVisible}%
}
`;if(this.responsiveOptions){this.responsiveOptions.sort((i,o)=>{let s=i.breakpoint,a=o.breakpoint,r=null;return s==null&&a!=null?r=-1:s!=null&&a==null?r=1:s==null&&a==null?r=0:typeof s=="string"&&typeof a=="string"?r=s.localeCompare(a,void 0,{numeric:!0}):r=s<a?-1:s>a?1:0,-1*r});for(let i=0;i<this.responsiveOptions.length;i++){let o=this.responsiveOptions[i];e+=`
@media screen and (max-width: ${o.breakpoint}) {
#${this.id} .p-carousel-item {
flex: 1 0 ${100/o.numVisible}%
}
}
`}}this.carouselStyle.innerHTML=e}calculatePosition(){if(this.responsiveOptions){let e={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};if(typeof window<"u"){let i=window.innerWidth;for(let o=0;o<this.responsiveOptions.length;o++){let s=this.responsiveOptions[o];parseInt(s.breakpoint,10)>=i&&(e=s)}}if(this._numScroll!==e.numScroll){let i=this._page;i=Math.floor(i*this._numScroll/e.numScroll);let o=e.numScroll*this.page*-1;this.isCircular()&&(o-=e.numVisible),this.totalShiftedItems=o,this._numScroll=e.numScroll,this._page=i,this.onPage.emit({page:this.page})}this._numVisible!==e.numVisible&&(this._numVisible=e.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):this.totalShiftedItems*-1}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?.length?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){let e=this.totalDots();return e<=0?[]:Array(e).fill(0)}isVertical(){return this.orientation==="vertical"}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||this.value.length===0}navForward(e,i){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,i),this.autoplayInterval&&this.stopAutoplay(),e&&e.cancelable&&e.preventDefault()}navBackward(e,i){(this.isCircular()||this._page!==0)&&this.step(1,i),this.autoplayInterval&&this.stopAutoplay(),e&&e.cancelable&&e.preventDefault()}onDotClick(e,i){let o=this._page;this.autoplayInterval&&this.stopAutoplay(),i>o?this.navForward(e,i):i<o&&this.navBackward(e,i)}onIndicatorKeydown(e){switch(e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break}}onRightKey(){let e=[...hi(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,i+1===e.length?e.length-1:i+1)}onLeftKey(){let e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)}onHomeKey(){let e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)}onEndKey(){let e=[...hi(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]r')],i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,e.length-1)}onTabKey(){let e=[...hi(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],i=e.findIndex(a=>Jt(a,"data-p-highlight")===!0),o=et(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]'),s=e.findIndex(a=>a===o.parentElement);e[s].children[0].tabIndex="-1",e[i].children[0].tabIndex="0"}findFocusedIndicatorIndex(){let e=[...hi(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')],i=et(this.indicatorContent.nativeElement,'[data-pc-section="indicator"] > button[tabindex="0"]');return e.findIndex(o=>o===i.parentElement)}changedFocusedIndicator(e,i){let o=[...hi(this.indicatorContent.nativeElement,'[data-pc-section="indicator"]')];o[e].children[0].tabIndex="-1",o[i].children[0].tabIndex="0",o[i].children[0].focus()}step(e,i){let o=this.totalShiftedItems,s=this.isCircular();if(i!=null)o=this._numScroll*i*-1,s&&(o-=this._numVisible),this.isRemainingItemsAdded=!1;else{o+=this._numScroll*e,this.isRemainingItemsAdded&&(o+=this.remainingItems-this._numScroll*e,this.isRemainingItemsAdded=!1);let a=s?o+this._numVisible:o;i=Math.abs(Math.floor(a/this._numScroll))}s&&this.page===this.totalDots()-1&&e===-1?(o=-1*(this.value.length+this._numVisible),i=0):s&&this.page===0&&e===1?(o=0,i=this.totalDots()-1):i===this.totalDots()-1&&this.remainingItems>0&&(o+=this.remainingItems*-1-this._numScroll*e,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${o*(100/this._numVisible)}%, 0)`:`translate3d(${o*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=o,this._page=i,this.onPage.emit({page:this.page}),this.cd.markForCheck()}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval),this.allowAutoplay=!0,this.cd.markForCheck()}stopAutoplay(e=!0){this.interval&&(clearInterval(this.interval),this.interval=void 0,e&&(this.allowAutoplay=!1)),this.cd.markForCheck()}isPlaying(){return!!this.interval}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(this.page===0||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(e){let i=e.changedTouches[0];this.startPos={x:i.pageX,y:i.pageY}}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchEnd(e){let i=e.changedTouches[0];this.isVertical()?this.changePageOnTouch(e,i.pageY-this.startPos.y):this.changePageOnTouch(e,i.pageX-this.startPos.x)}changePageOnTouch(e,i){Math.abs(i)>this.swipeThreshold&&(i<0?this.navForward(e):this.navBackward(e))}ariaPrevButtonLabel(){return this.config.translation.aria?this.config.translation.aria.prevPageLabel:void 0}ariaSlideLabel(){return this.config.translation.aria?this.config.translation.aria.slide:void 0}ariaNextButtonLabel(){return this.config.translation.aria?this.config.translation.aria.nextPageLabel:void 0}ariaSlideNumber(e){return this.config.translation.aria?this.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}bindDocumentListeners(){dt(this.platformId)&&(this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{this.calculatePosition()})))}unbindDocumentListeners(){dt(this.platformId)&&this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}static \u0275fac=function(i){return new(i||t)(_t(rn),_t(Vt))};static \u0275cmp=Y({type:t,selectors:[["p-carousel"]],contentQueries:function(i,o,s){if(i&1&&(L(s,mi,5),L(s,pn,5),L(s,Pb,4),L(s,Lb,4),L(s,Vb,4),L(s,zb,4),L(s,Rb,4),L(s,Le,4)),i&2){let a;F(a=D())&&(o.headerFacet=a.first),F(a=D())&&(o.footerFacet=a.first),F(a=D())&&(o.itemTemplate=a.first),F(a=D())&&(o.headerTemplate=a.first),F(a=D())&&(o.footerTemplate=a.first),F(a=D())&&(o.previousIconTemplate=a.first),F(a=D())&&(o.nextIconTemplate=a.first),F(a=D())&&(o.templates=a)}},viewQuery:function(i,o){if(i&1&&(Oe($b,5),Oe(Bb,5)),i&2){let s;F(s=D())&&(o.itemsContainer=s.first),F(s=D())&&(o.indicatorContent=s.first)}},inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:[2,"circular","circular",H],showIndicators:[2,"showIndicators","showIndicators",H],showNavigators:[2,"showNavigators","showNavigators",H],autoplayInterval:[2,"autoplayInterval","autoplayInterval",ze],style:"style",styleClass:"styleClass",prevButtonProps:"prevButtonProps",nextButtonProps:"nextButtonProps"},outputs:{onPage:"onPage"},features:[ge([Kl]),Ee,Z,sn],ngContentSelectors:Nb,decls:14,vars:23,consts:[["itemsContainer",""],["icon",""],["indicatorContent",""],["role","region",3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-content"],[3,"ngClass","disabled","text","buttonProps","click",4,"ngIf"],[1,"p-carousel-viewport",3,"touchend","touchstart","touchmove","ngStyle"],[1,"p-carousel-item-list",3,"transitionend"],[3,"ngClass",4,"ngFor","ngForOf"],["type","button",3,"ngClass","disabled","buttonProps","text","click",4,"ngIf"],[3,"ngClass","class","ngStyle","keydown",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],[3,"click","ngClass","disabled","text","buttonProps"],[4,"ngIf"],["class","p-carousel-prev-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-carousel-prev-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"click","ngClass","disabled","buttonProps","text"],["class","next",4,"ngIf"],[1,"next"],[3,"keydown","ngClass","ngStyle"],["type","button",3,"click","ngClass","ngStyle","tabindex"],[1,"p-carousel-footer"]],template:function(i,o){if(i&1){let s=X();Pe(Hb),w(0,"div",3),v(1,Xb,3,1,"div",4),w(2,"div",5)(3,"div",6),v(4,o1,3,7,"p-button",7),w(5,"div",8),$("touchend",function(r){return A(s),E(o.onTouchEnd(r))})("touchstart",function(r){return A(s),E(o.onTouchStart(r))})("touchmove",function(r){return A(s),E(o.onTouchMove(r))}),w(6,"div",9,0),$("transitionend",function(){return A(s),E(o.onTransitionEnd())}),v(8,a1,2,12,"div",10)(9,l1,2,12,"div",10)(10,d1,2,9,"div",10),T()(),v(11,b1,3,7,"p-button",11),T(),v(12,v1,3,5,"ul",12),T(),v(13,C1,3,1,"div",13),T()}i&2&&(B(o.styleClass),f("ngClass",Ke(18,jb,o.isVertical(),!o.isVertical()))("ngStyle",o.style),S("id",o.id),g(),f("ngIf",o.headerFacet||o.headerTemplate),g(),B(o.contentClass),f("ngClass","p-carousel-content-container"),g(),S("aria-live",o.allowAutoplay?"polite":"off"),g(),f("ngIf",o.showNavigators),g(),f("ngStyle",G(21,Ub,o.isVertical()?o.verticalViewPortHeight:"auto")),g(3),f("ngForOf",o.clonedItemsForStarting),g(),f("ngForOf",o.value),g(),f("ngForOf",o.clonedItemsForFinishing),g(),f("ngIf",o.showNavigators),g(),f("ngIf",o.showIndicators),g(),f("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate))},dependencies:[se,ye,ui,Me,De,Ue,ea,oa,hn,Js,ti,Li,N],encapsulation:2,changeDetection:0})}return t})(),x2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=pe({type:t});static \u0275inj=de({imports:[I1,N,N]})}return t})();export{Ah as a,K1 as b,Jh as c,cy as d,cf as e,Ty as f,hf as g,zy as h,bf as i,Zy as j,Is as k,im as l,nm as m,Vl as n,nn as o,Vv as p,Ym as q,sx as r,Ss as s,Cx as t,Nl as u,Xx as v,ks as w,mC as x,Ms as y,FC as z,Eb as A,e2 as B,I1 as C,x2 as D};