mp-lens
Version:
微信小程序分析工具 (Unused Code, Dependencies, Visualization)
11 lines • 1.58 MB
JavaScript
var $z=Object.defineProperty;var Vz=(t,e,r)=>e in t?$z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var at=(t,e,r)=>Vz(t,typeof e!="symbol"?e+"":e,r);function Wz(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const xb=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return WZ},get Ellipse(){return XZ},get Image(){return qZ},get Line(){return HZ},get Marker(){return KZ},get Path(){return B_},get Polygon(){return nQ},get Polyline(){return iQ},get Rect(){return sQ},get Text(){return uQ}},Symbol.toStringTag,{value:"Module"})),wb=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Li},get Circle(){return hQ},get Dom(){return dQ},get Ellipse(){return vQ},get Image(){return pQ},get Line(){return gQ},get Marker(){return mQ},get Path(){return yQ},get Polygon(){return bQ},get Polyline(){return _Q},get Rect(){return wQ},get Text(){return CQ}},Symbol.toStringTag,{value:"Module"}));var qp,Dr,UI,Ys,fE,$I,VI,WI,Eb,Ry,Fy,Ec={},XI=[],Xz=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Hp=Array.isArray;function ro(t,e){for(var r in e)t[r]=e[r];return t}function Sb(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function qz(t,e,r){var n,i,a,o={};for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?qp.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return yv(t,o,n,i,null)}function yv(t,e,r,n,i){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++UI,__i:-1,__u:0};return i==null&&Dr.vnode!=null&&Dr.vnode(a),a}function Yp(t){return t.children}function bv(t,e){this.props=t,this.context=e}function Sl(t,e){if(e==null)return t.__?Sl(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Sl(t):null}function qI(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return qI(t)}}function cE(t){(!t.__d&&(t.__d=!0)&&Ys.push(t)&&!Zv.__r++||fE!=Dr.debounceRendering)&&((fE=Dr.debounceRendering)||$I)(Zv)}function Zv(){for(var t,e,r,n,i,a,o,s=1;Ys.length;)Ys.length>s&&Ys.sort(VI),t=Ys.shift(),s=Ys.length,t.__d&&(r=void 0,i=(n=(e=t).__v).__e,a=[],o=[],e.__P&&((r=ro({},n)).__v=n.__v+1,Dr.vnode&&Dr.vnode(r),Mb(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,a,i??Sl(n),!!(32&n.__u),o),r.__v=n.__v,r.__.__k[r.__i]=r,KI(a,r,o),r.__e!=i&&qI(r)));Zv.__r=0}function HI(t,e,r,n,i,a,o,s,u,l,f){var c,h,d,v,p,g,m=n&&n.__k||XI,y=e.length;for(u=Hz(r,e,m,u,y),c=0;c<y;c++)(d=r.__k[c])!=null&&(h=d.__i==-1?Ec:m[d.__i]||Ec,d.__i=c,g=Mb(t,d,h,i,a,o,s,u,l,f),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Cb(h.ref,null,d),f.push(d.ref,d.__c||v,d)),p==null&&v!=null&&(p=v),4&d.__u||h.__k===d.__k?u=YI(d,u,t):typeof d.type=="function"&&g!==void 0?u=g:v&&(u=v.nextSibling),d.__u&=-7);return r.__e=p,u}function Hz(t,e,r,n,i){var a,o,s,u,l,f=r.length,c=f,h=0;for(t.__k=new Array(i),a=0;a<i;a++)(o=e[a])!=null&&typeof o!="boolean"&&typeof o!="function"?(u=a+h,(o=t.__k[a]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?yv(null,o,null,null,null):Hp(o)?yv(Yp,{children:o},null,null,null):o.constructor==null&&o.__b>0?yv(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=t,o.__b=t.__b+1,s=null,(l=o.__i=Yz(o,r,u,c))!=-1&&(c--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>f?h--:i<f&&h++),typeof o.type!="function"&&(o.__u|=4)):l!=u&&(l==u-1?h--:l==u+1?h++:(l>u?h--:h++,o.__u|=4))):t.__k[a]=null;if(c)for(a=0;a<f;a++)(s=r[a])!=null&&(2&s.__u)==0&&(s.__e==n&&(n=Sl(s)),QI(s,s));return n}function YI(t,e,r){var n,i;if(typeof t.type=="function"){for(n=t.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=t,e=YI(n[i],e,r));return e}t.__e!=e&&(e&&t.type&&!r.contains(e)&&(e=Sl(t)),r.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Yz(t,e,r,n){var i,a,o=t.key,s=t.type,u=e[r];if(u===null&&t.key==null||u&&o==u.key&&s==u.type&&(2&u.__u)==0)return r;if(n>(u!=null&&(2&u.__u)==0?1:0))for(i=r-1,a=r+1;i>=0||a<e.length;){if(i>=0){if((u=e[i])&&(2&u.__u)==0&&o==u.key&&s==u.type)return i;i--}if(a<e.length){if((u=e[a])&&(2&u.__u)==0&&o==u.key&&s==u.type)return a;a++}}return-1}function hE(t,e,r){e[0]=="-"?t.setProperty(e,r??""):t[e]=r==null?"":typeof r!="number"||Xz.test(e)?r:r+"px"}function Vh(t,e,r,n,i){var a,o;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||hE(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||hE(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")a=e!=(e=e.replace(WI,"$1")),o=e.toLowerCase(),e=o in t||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=r,r?n?r.u=n.u:(r.u=Eb,t.addEventListener(e,a?Fy:Ry,a)):t.removeEventListener(e,a?Fy:Ry,a);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function dE(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Eb++;else if(e.t<r.u)return;return r(Dr.event?Dr.event(e):e)}}}function Mb(t,e,r,n,i,a,o,s,u,l){var f,c,h,d,v,p,g,m,y,_,b,x,w,E,S,M,C,A=e.type;if(e.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),a=[s=e.__e=r.__e]),(f=Dr.__b)&&f(e);e:if(typeof A=="function")try{if(m=e.props,y="prototype"in A&&A.prototype.render,_=(f=A.contextType)&&n[f.__c],b=f?_?_.props.value:f.__:n,r.__c?g=(c=e.__c=r.__c).__=c.__E:(y?e.__c=c=new A(m,b):(e.__c=c=new bv(m,b),c.constructor=A,c.render=Zz),_&&_.sub(c),c.props=m,c.state||(c.state={}),c.context=b,c.__n=n,h=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ro({},c.__s)),ro(c.__s,A.getDerivedStateFromProps(m,c.__s))),d=c.props,v=c.state,c.__v=e,h)y&&A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&m!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,b),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,b)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(c.props=m,c.state=c.__s,c.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(k){k&&(k.__=e)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,b),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,v,p)})}if(c.context=b,c.props=m,c.__P=t,c.__e=!1,w=Dr.__r,E=0,y){for(c.state=c.__s,c.__d=!1,w&&w(e),f=c.render(c.props,c.state,c.context),S=0;S<c._sb.length;S++)c.__h.push(c._sb[S]);c._sb=[]}else do c.__d=!1,w&&w(e),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++E<25);c.state=c.__s,c.getChildContext!=null&&(n=ro(ro({},n),c.getChildContext())),y&&!h&&c.getSnapshotBeforeUpdate!=null&&(p=c.getSnapshotBeforeUpdate(d,v)),M=f,f!=null&&f.type===Yp&&f.key==null&&(M=ZI(f.props.children)),s=HI(t,Hp(M)?M:[M],e,r,n,i,a,o,s,u,l),c.base=e.__e,e.__u&=-161,c.__h.length&&o.push(c),g&&(c.__E=c.__=null)}catch(k){if(e.__v=null,u||a!=null)if(k.then){for(e.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,e.__e=s}else for(C=a.length;C--;)Sb(a[C]);else e.__e=r.__e,e.__k=r.__k;Dr.__e(k,e,r)}else a==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):s=e.__e=Kz(r.__e,e,r,n,i,a,o,u,l);return(f=Dr.diffed)&&f(e),128&e.__u?void 0:s}function KI(t,e,r){for(var n=0;n<r.length;n++)Cb(r[n],r[++n],r[++n]);Dr.__c&&Dr.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(a){a.call(i)})}catch(a){Dr.__e(a,i.__v)}})}function ZI(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Hp(t)?t.map(ZI):ro({},t)}function Kz(t,e,r,n,i,a,o,s,u){var l,f,c,h,d,v,p,g=r.props,m=e.props,y=e.type;if(y=="svg"?i="http://www.w3.org/2000/svg":y=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),a!=null){for(l=0;l<a.length;l++)if((d=a[l])&&"setAttribute"in d==!!y&&(y?d.localName==y:d.nodeType==3)){t=d,a[l]=null;break}}if(t==null){if(y==null)return document.createTextNode(m);t=document.createElementNS(i,y,m.is&&m),s&&(Dr.__m&&Dr.__m(e,a),s=!1),a=null}if(y==null)g===m||s&&t.data==m||(t.data=m);else{if(a=a&&qp.call(t.childNodes),g=r.props||Ec,!s&&a!=null)for(g={},l=0;l<t.attributes.length;l++)g[(d=t.attributes[l]).name]=d.value;for(l in g)if(d=g[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=d;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Vh(t,l,null,d,i)}}for(l in m)d=m[l],l=="children"?h=d:l=="dangerouslySetInnerHTML"?f=d:l=="value"?v=d:l=="checked"?p=d:s&&typeof d!="function"||g[l]===d||Vh(t,l,d,g[l],i);if(f)s||c&&(f.__html==c.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(c&&(t.innerHTML=""),HI(e.type=="template"?t.content:t,Hp(h)?h:[h],e,r,n,y=="foreignObject"?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&Sl(r,0),s,u),a!=null)for(l=a.length;l--;)Sb(a[l]);s||(l="value",y=="progress"&&v==null?t.removeAttribute("value"):v!=null&&(v!==t[l]||y=="progress"&&!v||y=="option"&&v!=g[l])&&Vh(t,l,v,g[l],i),l="checked",p!=null&&p!=t[l]&&Vh(t,l,p,g[l],i))}return t}function Cb(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Dr.__e(i,r)}}function QI(t,e,r){var n,i;if(Dr.unmount&&Dr.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Cb(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Dr.__e(a,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&QI(n[i],e,r||typeof t.type!="function");r||Sb(t.__e),t.__c=t.__=t.__e=void 0}function Zz(t,e,r){return this.constructor(t,r)}function vE(t,e,r){var n,i,a,o;e==document&&(e=document.documentElement),Dr.__&&Dr.__(t,e),i=(n=!1)?null:e.__k,a=[],o=[],Mb(e,t=e.__k=qz(Yp,null,[t]),i||Ec,Ec,e.namespaceURI,i?null:e.firstChild?qp.call(e.childNodes):null,a,i?i.__e:e.firstChild,n,o),KI(a,t,o)}qp=XI.slice,Dr={__e:function(t,e,r,n){for(var i,a,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},UI=0,bv.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ro({},this.state),typeof t=="function"&&(t=t(ro({},r),this.props)),t&&ro(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),cE(this))},bv.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),cE(this))},bv.prototype.render=Yp,Ys=[],$I=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,VI=function(t,e){return t.__v.__b-e.__v.__b},Zv.__r=0,WI=/(PointerCapture)$|Capture$/i,Eb=0,Ry=dE(!1),Fy=dE(!0);var Qz=0;function Ee(t,e,r,n,i,a){e||(e={});var o,s,u=e;if("ref"in u)for(s in u={},e)s=="ref"?o=e[s]:u[s]=e[s];var l={type:t,props:u,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Qz,__i:-1,__u:0,__source:i,__self:a};if(typeof t=="function"&&(o=t.defaultProps))for(s in o)u[s]===void 0&&(u[s]=o[s]);return Dr.vnode&&Dr.vnode(l),l}/*!
* @kurkle/color v0.3.4
* https://github.com/kurkle/color#readme
* (c) 2024 Jukka Kurkela
* Released under the MIT License
*/function Qc(t){return t+.5|0}const Bo=(t,e,r)=>Math.max(Math.min(t,r),e);function Yf(t){return Bo(Qc(t*2.55),0,255)}function Wo(t){return Bo(Qc(t*255),0,255)}function Ja(t){return Bo(Qc(t/2.55)/100,0,1)}function pE(t){return Bo(Qc(t*100),0,100)}const Ei={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},By=[..."0123456789ABCDEF"],Jz=t=>By[t&15],e4=t=>By[(t&240)>>4]+By[t&15],Wh=t=>(t&240)>>4===(t&15),t4=t=>Wh(t.r)&&Wh(t.g)&&Wh(t.b)&&Wh(t.a);function r4(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&Ei[t[1]]*17,g:255&Ei[t[2]]*17,b:255&Ei[t[3]]*17,a:e===5?Ei[t[4]]*17:255}:(e===7||e===9)&&(r={r:Ei[t[1]]<<4|Ei[t[2]],g:Ei[t[3]]<<4|Ei[t[4]],b:Ei[t[5]]<<4|Ei[t[6]],a:e===9?Ei[t[7]]<<4|Ei[t[8]]:255})),r}const n4=(t,e)=>t<255?e(t):"";function i4(t){var e=t4(t)?Jz:e4;return t?"#"+e(t.r)+e(t.g)+e(t.b)+n4(t.a,e):void 0}const a4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function JI(t,e,r){const n=e*Math.min(r,1-r),i=(a,o=(a+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function o4(t,e,r){const n=(i,a=(i+t/60)%6)=>r-r*e*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function s4(t,e,r){const n=JI(t,1,.5);let i;for(e+r>1&&(i=1/(e+r),e*=i,r*=i),i=0;i<3;i++)n[i]*=1-e-r,n[i]+=e;return n}function u4(t,e,r,n,i){return t===i?(e-r)/n+(e<r?6:0):e===i?(r-t)/n+2:(t-e)/n+4}function Ab(t){const r=t.r/255,n=t.g/255,i=t.b/255,a=Math.max(r,n,i),o=Math.min(r,n,i),s=(a+o)/2;let u,l,f;return a!==o&&(f=a-o,l=s>.5?f/(2-a-o):f/(a+o),u=u4(r,n,i,f,a),u=u*60+.5),[u|0,l||0,s]}function Tb(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Wo)}function kb(t,e,r){return Tb(JI,t,e,r)}function l4(t,e,r){return Tb(s4,t,e,r)}function f4(t,e,r){return Tb(o4,t,e,r)}function eL(t){return(t%360+360)%360}function c4(t){const e=a4.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?Yf(+e[5]):Wo(+e[5]));const i=eL(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?n=l4(i,a,o):e[1]==="hsv"?n=f4(i,a,o):n=kb(i,a,o),{r:n[0],g:n[1],b:n[2],a:r}}function h4(t,e){var r=Ab(t);r[0]=eL(r[0]+e),r=kb(r),t.r=r[0],t.g=r[1],t.b=r[2]}function d4(t){if(!t)return;const e=Ab(t),r=e[0],n=pE(e[1]),i=pE(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${Ja(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const gE={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"},mE={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 v4(){const t={},e=Object.keys(mE),r=Object.keys(gE);let n,i,a,o,s;for(n=0;n<e.length;n++){for(o=s=e[n],i=0;i<r.length;i++)a=r[i],s=s.replace(a,gE[a]);a=parseInt(mE[o],16),t[s]=[a>>16&255,a>>8&255,a&255]}return t}let Xh;function p4(t){Xh||(Xh=v4(),Xh.transparent=[0,0,0,0]);const e=Xh[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const g4=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function m4(t){const e=g4.exec(t);let r=255,n,i,a;if(e){if(e[7]!==n){const o=+e[7];r=e[8]?Yf(o):Bo(o*255,0,255)}return n=+e[1],i=+e[3],a=+e[5],n=255&(e[2]?Yf(n):Bo(n,0,255)),i=255&(e[4]?Yf(i):Bo(i,0,255)),a=255&(e[6]?Yf(a):Bo(a,0,255)),{r:n,g:i,b:a,a:r}}}function y4(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ja(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const D0=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,$u=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function b4(t,e,r){const n=$u(Ja(t.r)),i=$u(Ja(t.g)),a=$u(Ja(t.b));return{r:Wo(D0(n+r*($u(Ja(e.r))-n))),g:Wo(D0(i+r*($u(Ja(e.g))-i))),b:Wo(D0(a+r*($u(Ja(e.b))-a))),a:t.a+r*(e.a-t.a)}}function qh(t,e,r){if(t){let n=Ab(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=kb(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function tL(t,e){return t&&Object.assign(e||{},t)}function yE(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Wo(t[3]))):(e=tL(t,{r:0,g:0,b:0,a:1}),e.a=Wo(e.a)),e}function _4(t){return t.charAt(0)==="r"?m4(t):c4(t)}let rL=class zy{constructor(e){if(e instanceof zy)return e;const r=typeof e;let n;r==="object"?n=yE(e):r==="string"&&(n=r4(e)||p4(e)||_4(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=tL(this._rgb);return e&&(e.a=Ja(e.a)),e}set rgb(e){this._rgb=yE(e)}rgbString(){return this._valid?y4(this._rgb):void 0}hexString(){return this._valid?i4(this._rgb):void 0}hslString(){return this._valid?d4(this._rgb):void 0}mix(e,r){if(e){const n=this.rgb,i=e.rgb;let a;const o=r===a?.5:r,s=2*o-1,u=n.a-i.a,l=((s*u===-1?s:(s+u)/(1+s*u))+1)/2;a=1-l,n.r=255&l*n.r+a*i.r+.5,n.g=255&l*n.g+a*i.g+.5,n.b=255&l*n.b+a*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(e,r){return e&&(this._rgb=b4(this._rgb,e._rgb,r)),this}clone(){return new zy(this.rgb)}alpha(e){return this._rgb.a=Wo(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=Qc(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=r,this}opaquer(e){const r=this._rgb;return r.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return qh(this._rgb,2,e),this}darken(e){return qh(this._rgb,2,-e),this}saturate(e){return qh(this._rgb,1,e),this}desaturate(e){return qh(this._rgb,1,-e),this}rotate(e){return h4(this._rgb,e),this}};/*!
* Chart.js v4.4.9
* https://www.chartjs.org
* (c) 2025 Chart.js Contributors
* Released under the MIT License
*/function za(){}const x4=(()=>{let t=0;return()=>t++})();function yr(t){return t==null}function Xr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function _r(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function nn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function di(t,e){return nn(t)?t:e}function er(t,e){return typeof t>"u"?e:t}const w4=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,nL=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Fr(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function Ir(t,e,r,n){let i,a,o;if(Xr(t))for(a=t.length,i=0;i<a;i++)e.call(r,t[i],i);else if(_r(t))for(o=Object.keys(t),a=o.length,i=0;i<a;i++)e.call(r,t[o[i]],o[i])}function Qv(t,e){let r,n,i,a;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(i=t[r],a=e[r],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Jv(t){if(Xr(t))return t.map(Jv);if(_r(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let i=0;for(;i<n;++i)e[r[i]]=Jv(t[r[i]]);return e}return t}function iL(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function E4(t,e,r,n){if(!iL(t))return;const i=e[t],a=r[t];_r(i)&&_r(a)?Sc(i,a,n):e[t]=Jv(a)}function Sc(t,e,r){const n=Xr(e)?e:[e],i=n.length;if(!_r(t))return t;r=r||{};const a=r.merger||E4;let o;for(let s=0;s<i;++s){if(o=n[s],!_r(o))continue;const u=Object.keys(o);for(let l=0,f=u.length;l<f;++l)a(u[l],t,o,r)}return t}function fc(t,e){return Sc(t,e,{merger:S4})}function S4(t,e,r){if(!iL(t))return;const n=e[t],i=r[t];_r(n)&&_r(i)?fc(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Jv(i))}const bE={"":t=>t,x:t=>t.x,y:t=>t.y};function M4(t){const e=t.split("."),r=[];let n="";for(const i of e)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function C4(t){const e=M4(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function Ho(t,e){return(bE[e]||(bE[e]=C4(e)))(t)}function Ib(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Mc=t=>typeof t<"u",Yo=t=>typeof t=="function",_E=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function A4(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ur=Math.PI,Gr=2*Ur,T4=Gr+Ur,ep=Number.POSITIVE_INFINITY,k4=Ur/180,dn=Ur/2,ys=Ur/4,xE=Ur*2/3,zo=Math.log10,Ca=Math.sign;function cc(t,e,r){return Math.abs(t-e)<r}function wE(t){const e=Math.round(t);t=cc(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(zo(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function I4(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(r|0)&&e.push(r),e.sort((i,a)=>i-a).pop(),e}function L4(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Ml(t){return!L4(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function O4(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}function aL(t,e,r){let n,i,a;for(n=0,i=t.length;n<i;n++)a=t[n][r],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Qi(t){return t*(Ur/180)}function Lb(t){return t*(180/Ur)}function EE(t){if(!nn(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function oL(t,e){const r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*Ur&&(a+=Gr),{angle:a,distance:i}}function Gy(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function N4(t,e){return(t-e+T4)%Gr-Ur}function gi(t){return(t%Gr+Gr)%Gr}function Cc(t,e,r,n){const i=gi(t),a=gi(e),o=gi(r),s=gi(a-i),u=gi(o-i),l=gi(i-a),f=gi(i-o);return i===a||i===o||n&&a===o||s>u&&l<f}function Rn(t,e,r){return Math.max(e,Math.min(r,t))}function D4(t){return Rn(t,-32768,32767)}function no(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ob(t,e,r){r=r||(o=>t[o]<e);let n=t.length-1,i=0,a;for(;n-i>1;)a=i+n>>1,r(a)?i=a:n=a;return{lo:i,hi:n}}const io=(t,e,r,n)=>Ob(t,r,n?i=>{const a=t[i][e];return a<r||a===r&&t[i+1][e]===r}:i=>t[i][e]<r),P4=(t,e,r)=>Ob(t,r,n=>t[n][e]>=r);function R4(t,e,r){let n=0,i=t.length;for(;n<i&&t[n]<e;)n++;for(;i>n&&t[i-1]>r;)i--;return n>0||i<t.length?t.slice(n,i):t}const sL=["push","pop","shift","splice","unshift"];function F4(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),sL.forEach(r=>{const n="_onData"+Ib(r),i=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return t._chartjs.listeners.forEach(s=>{typeof s[n]=="function"&&s[n](...a)}),o}})})}function SE(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(e);i!==-1&&n.splice(i,1),!(n.length>0)&&(sL.forEach(a=>{delete t[a]}),delete t._chartjs)}function uL(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const lL=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function fL(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,lL.call(window,()=>{n=!1,t.apply(e,r)}))}}function B4(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const Nb=t=>t==="start"?"left":t==="end"?"right":"center",zn=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,z4=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e;function cL(t,e,r){const n=e.length;let i=0,a=n;if(t._sorted){const{iScale:o,vScale:s,_parsed:u}=t,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,f=o.axis,{min:c,max:h,minDefined:d,maxDefined:v}=o.getUserBounds();if(d){if(i=Math.min(io(u,f,c).lo,r?n:io(e,f,o.getPixelForValue(c)).lo),l){const p=u.slice(0,i+1).reverse().findIndex(g=>!yr(g[s.axis]));i-=Math.max(0,p)}i=Rn(i,0,n-1)}if(v){let p=Math.max(io(u,o.axis,h,!0).hi+1,r?0:io(e,f,o.getPixelForValue(h),!0).hi+1);if(l){const g=u.slice(p-1).findIndex(m=>!yr(m[s.axis]));p+=Math.max(0,g)}a=Rn(p,i,n)-i}else a=n-i}return{start:i,count:a}}function hL(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,i={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=i,!0;const a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),a}const Hh=t=>t===0||t===1,ME=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Gr/r)),CE=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Gr/r)+1,hc={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*dn)+1,easeOutSine:t=>Math.sin(t*dn),easeInOutSine:t=>-.5*(Math.cos(Ur*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=>Hh(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=>Hh(t)?t:ME(t,.075,.3),easeOutElastic:t=>Hh(t)?t:CE(t,.075,.3),easeInOutElastic(t){return Hh(t)?t:t<.5?.5*ME(t*2,.1125,.45):.5+.5*CE(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 e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-hc.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?hc.easeInBounce(t*2)*.5:hc.easeOutBounce(t*2-1)*.5+.5};function Db(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function AE(t){return Db(t)?t:new rL(t)}function P0(t){return Db(t)?t:new rL(t).saturate(.5).darken(.1).hexString()}const G4=["x","y","borderWidth","radius","tension"],j4=["color","borderColor","backgroundColor"];function U4(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:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:j4},numbers:{type:"number",properties:G4}}),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:e=>e|0}}}})}function $4(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const TE=new Map;function V4(t,e){e=e||{};const r=t+JSON.stringify(e);let n=TE.get(r);return n||(n=new Intl.NumberFormat(t,e),TE.set(r,n)),n}function Jc(t,e,r){return V4(e,r).format(t)}const dL={values(t){return Xr(t)?t:""+t},numeric(t,e,r){if(t===0)return"0";const n=this.chart.options.locale;let i,a=t;if(r.length>1){const l=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(l<1e-4||l>1e15)&&(i="scientific"),a=W4(t,r)}const o=zo(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(u,this.options.ticks.format),Jc(t,n,u)},logarithmic(t,e,r){if(t===0)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(zo(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?dL.numeric.call(this,t,e,r):""}};function W4(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t)),r}var Kp={formatters:dL};function X4(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:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.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:Kp.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:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ou=Object.create(null),jy=Object.create(null);function dc(t,e){if(!e)return t;const r=e.split(".");for(let n=0,i=r.length;n<i;++n){const a=r[n];t=t[a]||(t[a]=Object.create(null))}return t}function R0(t,e,r){return typeof e=="string"?Sc(dc(t,e),r):Sc(dc(t,""),e)}class q4{constructor(e,r){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=n=>n.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=(n,i)=>P0(i.backgroundColor),this.hoverBorderColor=(n,i)=>P0(i.borderColor),this.hoverColor=(n,i)=>P0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return R0(this,e,r)}get(e){return dc(this,e)}describe(e,r){return R0(jy,e,r)}override(e,r){return R0(ou,e,r)}route(e,r,n,i){const a=dc(this,e),o=dc(this,n),s="_"+r;Object.defineProperties(a,{[s]:{value:a[r],writable:!0},[r]:{enumerable:!0,get(){const u=this[s],l=o[i];return _r(u)?Object.assign({},l,u):er(u,l)},set(u){this[s]=u}}})}apply(e){e.forEach(r=>r(this))}}var qr=new q4({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[U4,$4,X4]);function H4(t){return!t||yr(t.size)||yr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function tp(t,e,r,n,i){let a=e[i];return a||(a=e[i]=t.measureText(i).width,r.push(i)),a>n&&(n=a),n}function Y4(t,e,r,n){n=n||{};let i=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(i=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let o=0;const s=r.length;let u,l,f,c,h;for(u=0;u<s;u++)if(c=r[u],c!=null&&!Xr(c))o=tp(t,i,a,o,c);else if(Xr(c))for(l=0,f=c.length;l<f;l++)h=c[l],h!=null&&!Xr(h)&&(o=tp(t,i,a,o,h));t.restore();const d=a.length/2;if(d>r.length){for(u=0;u<d;u++)delete i[a[u]];a.splice(0,d)}return o}function bs(t,e,r){const n=t.currentDevicePixelRatio,i=r!==0?Math.max(r/2,.5):0;return Math.round((e-i)*n)/n+i}function kE(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Uy(t,e,r,n){vL(t,e,r,n,null)}function vL(t,e,r,n,i){let a,o,s,u,l,f,c,h;const d=e.pointStyle,v=e.rotation,p=e.radius;let g=(v||0)*k4;if(d&&typeof d=="object"&&(a=d.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),d){default:i?t.ellipse(r,n,i/2,p,0,0,Gr):t.arc(r,n,p,0,Gr),t.closePath();break;case"triangle":f=i?i/2:p,t.moveTo(r+Math.sin(g)*f,n-Math.cos(g)*p),g+=xE,t.lineTo(r+Math.sin(g)*f,n-Math.cos(g)*p),g+=xE,t.lineTo(r+Math.sin(g)*f,n-Math.cos(g)*p),t.closePath();break;case"rectRounded":l=p*.516,u=p-l,o=Math.cos(g+ys)*u,c=Math.cos(g+ys)*(i?i/2-l:u),s=Math.sin(g+ys)*u,h=Math.sin(g+ys)*(i?i/2-l:u),t.arc(r-c,n-s,l,g-Ur,g-dn),t.arc(r+h,n-o,l,g-dn,g),t.arc(r+c,n+s,l,g,g+dn),t.arc(r-h,n+o,l,g+dn,g+Ur),t.closePath();break;case"rect":if(!v){u=Math.SQRT1_2*p,f=i?i/2:u,t.rect(r-f,n-u,2*f,2*u);break}g+=ys;case"rectRot":c=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,h=Math.sin(g)*(i?i/2:p),t.moveTo(r-c,n-s),t.lineTo(r+h,n-o),t.lineTo(r+c,n+s),t.lineTo(r-h,n+o),t.closePath();break;case"crossRot":g+=ys;case"cross":c=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,h=Math.sin(g)*(i?i/2:p),t.moveTo(r-c,n-s),t.lineTo(r+c,n+s),t.moveTo(r+h,n-o),t.lineTo(r-h,n+o);break;case"star":c=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,h=Math.sin(g)*(i?i/2:p),t.moveTo(r-c,n-s),t.lineTo(r+c,n+s),t.moveTo(r+h,n-o),t.lineTo(r-h,n+o),g+=ys,c=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,h=Math.sin(g)*(i?i/2:p),t.moveTo(r-c,n-s),t.lineTo(r+c,n+s),t.moveTo(r+h,n-o),t.lineTo(r-h,n+o);break;case"line":o=i?i/2:Math.cos(g)*p,s=Math.sin(g)*p,t.moveTo(r-o,n-s),t.lineTo(r+o,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(g)*(i?i/2:p),n+Math.sin(g)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function ao(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Zp(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Qp(t){t.restore()}function K4(t,e,r,n,i){if(!e)return t.lineTo(r.x,r.y);if(i==="middle"){const a=(e.x+r.x)/2;t.lineTo(a,e.y),t.lineTo(a,r.y)}else i==="after"!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function Z4(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function Q4(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),yr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function J4(t,e,r,n,i){if(i.strikethrough||i.underline){const a=t.measureText(n),o=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,u=r-a.actualBoundingBoxAscent,l=r+a.actualBoundingBoxDescent,f=i.strikethrough?(u+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,f),t.lineTo(s,f),t.stroke()}}function eG(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function su(t,e,r,n,i,a={}){const o=Xr(e)?e:[e],s=a.strokeWidth>0&&a.strokeColor!=="";let u,l;for(t.save(),t.font=i.string,Q4(t,a),u=0;u<o.length;++u)l=o[u],a.backdrop&&eG(t,a.backdrop),s&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),yr(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(l,r,n,a.maxWidth)),t.fillText(l,r,n,a.maxWidth),J4(t,r,n,l,a),n+=Number(i.lineHeight);t.restore()}function Ac(t,e){const{x:r,y:n,w:i,h:a,radius:o}=e;t.arc(r+o.topLeft,n+o.topLeft,o.topLeft,1.5*Ur,Ur,!0),t.lineTo(r,n+a-o.bottomLeft),t.arc(r+o.bottomLeft,n+a-o.bottomLeft,o.bottomLeft,Ur,dn,!0),t.lineTo(r+i-o.bottomRight,n+a),t.arc(r+i-o.bottomRight,n+a-o.bottomRight,o.bottomRight,dn,0,!0),t.lineTo(r+i,n+o.topRight),t.arc(r+i-o.topRight,n+o.topRight,o.topRight,0,-dn,!0),t.lineTo(r+o.topLeft,n)}const tG=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,rG=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nG(t,e){const r=(""+t).match(tG);if(!r||r[1]==="normal")return e*1.2;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t}const iG=t=>+t||0;function Pb(t,e){const r={},n=_r(e),i=n?Object.keys(e):e,a=_r(t)?n?o=>er(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of i)r[o]=iG(a(o));return r}function pL(t){return Pb(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ru(t){return Pb(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Wn(t){const e=pL(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function wn(t,e){t=t||{},e=e||qr.font;let r=er(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=er(t.style,e.style);n&&!(""+n).match(rG)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:er(t.family,e.family),lineHeight:nG(er(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:er(t.weight,e.weight),string:""};return i.string=H4(i),i}function Kf(t,e,r,n){let i,a,o;for(i=0,a=t.length;i<a;++i)if(o=t[i],o!==void 0&&o!==void 0)return o}function aG(t,e,r){const{min:n,max:i}=t,a=nL(e,(i-n)/2),o=(s,u)=>r&&s===0?0:s+u;return{min:o(n,-Math.abs(a)),max:o(i,a)}}function Qo(t,e){return Object.assign(Object.create(t),e)}function Rb(t,e=[""],r,n,i=()=>t[0]){const a=r||t;typeof n>"u"&&(n=bL("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:n,_getTarget:i,override:s=>Rb([s,...t],e,a,n)};return new Proxy(o,{deleteProperty(s,u){return delete s[u],delete s._keys,delete t[0][u],!0},get(s,u){return mL(s,u,()=>dG(u,e,t,s))},getOwnPropertyDescriptor(s,u){return Reflect.getOwnPropertyDescriptor(s._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,u){return LE(s).includes(u)},ownKeys(s){return LE(s)},set(s,u,l){const f=s._storage||(s._storage=i());return s[u]=f[u]=l,delete s._keys,!0}})}function Cl(t,e,r,n){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:gL(t,n),setContext:a=>Cl(t,a,r,n),override:a=>Cl(t.override(a),e,r,n)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,s){return mL(a,o,()=>sG(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,s){return t[o]=s,delete a[o],!0}})}function gL(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:r,indexable:n,isScriptable:Yo(r)?r:()=>r,isIndexable:Yo(n)?n:()=>n}}const oG=(t,e)=>t?t+Ib(e):e,Fb=(t,e)=>_r(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function mL(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function sG(t,e,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:o}=t;let s=n[e];return Yo(s)&&o.isScriptable(e)&&(s=uG(e,s,t,r)),Xr(s)&&s.length&&(s=lG(e,s,t,o.isIndexable)),Fb(e,s)&&(s=Cl(s,i,a&&a[e],o)),s}function uG(t,e,r,n){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let u=e(a,o||n);return s.delete(t),Fb(t,u)&&(u=Bb(i._scopes,i,t,u)),u}function lG(t,e,r,n){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=r;if(typeof a.index<"u"&&n(t))return e[a.index%e.length];if(_r(e[0])){const u=e,l=i._scopes.filter(f=>f!==u);e=[];for(const f of u){const c=Bb(l,i,t,f);e.push(Cl(c,a,o&&o[t],s))}}return e}function yL(t,e,r){return Yo(t)?t(e,r):t}const fG=(t,e)=>t===!0?e:typeof t=="string"?Ho(e,t):void 0;function cG(t,e,r,n,i){for(const a of e){const o=fG(r,a);if(o){t.add(o);const s=yL(o._fallback,r,i);if(typeof s<"u"&&s!==r&&s!==n)return s}else if(o===!1&&typeof n<"u"&&r!==n)return null}return!1}function Bb(t,e,r,n){const i=e._rootScopes,a=yL(e._fallback,r,n),o=[...t,...i],s=new Set;s.add(n);let u=IE(s,o,r,a||r,n);return u===null||typeof a<"u"&&a!==r&&(u=IE(s,o,a,u,n),u===null)?!1:Rb(Array.from(s),[""],i,a,()=>hG(e,r,n))}function IE(t,e,r,n,i){for(;r;)r=cG(t,e,r,n,i);return r}function hG(t,e,r){const n=t._getTarget();e in n||(n[e]={});const i=n[e];return Xr(i)&&_r(r)?r:i||{}}function dG(t,e,r,n){let i;for(const a of e)if(i=bL(oG(a,t),r),typeof i<"u")return Fb(t,i)?Bb(r,n,t,i):i}function bL(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function LE(t){let e=t._keys;return e||(e=t._keys=vG(t._scopes)),e}function vG(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))e.add(n);return Array.from(e)}function _L(t,e,r,n){const{iScale:i}=t,{key:a="r"}=this._parsing,o=new Array(n);let s,u,l,f;for(s=0,u=n;s<u;++s)l=s+r,f=e[l],o[s]={r:i.parse(Ho(f,a),l)};return o}const pG=Number.EPSILON||1e-14,Al=(t,e)=>e<t.length&&!t[e].skip&&t[e],xL=t=>t==="x"?"y":"x";function gG(t,e,r,n){const i=t.skip?e:t,a=e,o=r.skip?e:r,s=Gy(a,i),u=Gy(o,a);let l=s/(s+u),f=u/(s+u);l=isNaN(l)?0:l,f=isNaN(f)?0:f;const c=n*l,h=n*f;return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function mG(t,e,r){const n=t.length;let i,a,o,s,u,l=Al(t,0);for(let f=0;f<n-1;++f)if(u=l,l=Al(t,f+1),!(!u||!l)){if(cc(e[f],0,pG)){r[f]=r[f+1]=0;continue}i=r[f]/e[f],a=r[f+1]/e[f],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),r[f]=i*o*e[f],r[f+1]=a*o*e[f])}}function yG(t,e,r="x"){const n=xL(r),i=t.length;let a,o,s,u=Al(t,0);for(let l=0;l<i;++l){if(o=s,s=u,u=Al(t,l+1),!s)continue;const f=s[r],c=s[n];o&&(a=(f-o[r])/3,s[`cp1${r}`]=f-a,s[`cp1${n}`]=c-a*e[l]),u&&(a=(u[r]-f)/3,s[`cp2${r}`]=f+a,s[`cp2${n}`]=c+a*e[l])}}function bG(t,e="x"){const r=xL(e),n=t.length,i=Array(n).fill(0),a=Array(n);let o,s,u,l=Al(t,0);for(o=0;o<n;++o)if(s=u,u=l,l=Al(t,o+1),!!u){if(l){const f=l[e]-u[e];i[o]=f!==0?(l[r]-u[r])/f:0}a[o]=s?l?Ca(i[o-1])!==Ca(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}mG(t,i,a),yG(t,a,e)}function Yh(t,e,r){return Math.max(Math.min(t,r),e)}function _G(t,e){let r,n,i,a,o,s=ao(t[0],e);for(r=0,n=t.length;r<n;++r)o=a,a=s,s=r<n-1&&ao(t[r+1],e),a&&(i=t[r],o&&(i.cp1x=Yh(i.cp1x,e.left,e.right),i.cp1y=Yh(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=Yh(i.cp2x,e.left,e.right),i.cp2y=Yh(i.cp2y,e.top,e.bottom)))}function xG(t,e,r,n,i){let a,o,s,u;if(e.spanGaps&&(t=t.filter(l=>!l.skip)),e.cubicInterpolationMode==="monotone")bG(t,i);else{let l=n?t[t.length-1]:t[0];for(a=0,o=t.length;a<o;++a)s=t[a],u=gG(l,s,t[Math.min(a+1,o-(n?0:1))%o],e.tension),s.cp1x=u.previous.x,s.cp1y=u.previous.y,s.cp2x=u.next.x,s.cp2y=u.next.y,l=s}e.capBezierPoints&&_G(t,r)}function zb(){return typeof window<"u"&&typeof document<"u"}function Gb(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function rp(t,e,r){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[r])):n=t,n}const Jp=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function wG(t,e){return Jp(t).getPropertyValue(e)}const EG=["top","right","bottom","left"];function nu(t,e,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=EG[i];n[a]=parseFloat(t[e+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const SG=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function MG(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:i,offsetY:a}=n;let o=!1,s,u;if(SG(i,a,t.target))s=i,u=a;else{const l=e.getBoundingClientRect();s=n.clientX-l.left,u=n.clientY-l.top,o=!0}return{x:s,y:u,box:o}}function Vs(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,i=Jp(r),a=i.boxSizing==="border-box",o=nu(i,"padding"),s=nu(i,"border","width"),{x:u,y:l,box:f}=MG(t,r),c=o.left+(f&&s.left),h=o.top+(f&&s.top);let{width:d,height:v}=e;return a&&(d-=o.width+s.width,v-=o.height+s.height),{x:Math.round((u-c)/d*r.width/n),y:Math.round((l-h)/v*r.height/n)}}function CG(t,e,r){let n,i;if(e===void 0||r===void 0){const a=t&&Gb(t);if(!a)e=t.clientWidth,r=t.clientHeight;else{const o=a.getBoundingClientRect(),s=Jp(a),u=nu(s,"border","width"),l=nu(s,"padding");e=o.width-l.width-u.width,r=o.height-l.height-u.height,n=rp(s.maxWidth,a,"clientWidth"),i=rp(s.maxHeight,a,"clientHeight")}}return{width:e,height:r,maxWidth:n||ep,maxHeight:i||ep}}const Kh=t=>Math.round(t*10)/10;function AG(t,e,r,n){const i=Jp(t),a=nu(i,"margin"),o=rp(i.maxWidth,t,"clientWidth")||ep,s=rp(i.maxHeight,t,"clientHeight")||ep,u=CG(t,e,r);let{width:l,height:f}=u;if(i.boxSizing==="content-box"){const h=nu(i,"border","width"),d=nu(i,"padding");l-=d.width+h.width,f-=d.height+h.height}return l=Math.max(0,l-a.width),f=Math.max(0,n?l/n:f-a.height),l=Kh(Math.min(l,o,u.maxWidth)),f=Kh(Math.min(f,s,u.maxHeight)),l&&!f&&(f=Kh(l/2)),(e!==void 0||r!==void 0)&&n&&u.height&&f>u.height&&(f=u.height,l=Kh(Math.floor(f*n))),{width:l,height:f}}function OE(t,e,r){const n=e||1,i=Math.floor(t.height*n),a=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(r||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||o.height!==i||o.width!==a?(t.currentDevicePixelRatio=n,o.height=i,o.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const TG=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};zb()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function NE(t,e){const r=wG(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Ws(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function kG(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:n==="middle"?r<.5?t.y:e.y:n==="after"?r<1?t.y:e.y:r>0?e.y:t.y}}function IG(t,e,r,n){const i={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},o=Ws(t,i,r),s=Ws(i,a,r),u=Ws(a,e,r),l=Ws(o,s,r),f=Ws(s,u,r);return Ws(l,f,r)}const LG=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},OG=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function pl(t,e,r){return t?LG(e,r):OG()}function wL(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function EL(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function SL(t){return t==="angle"?{between:Cc,compare:N4,normalize:gi}:{between:no,compare:(e,r)=>e-r,normalize:e=>e}}function DE({start:t,end:e,count:r,loop:n,style:i}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r===0,style:i}}function NG(t,e,r){const{property:n,start:i,end:a}=r,{between:o,normalize:s}=SL(n),u=e.length;let{start:l,end:f,loop:c}=t,h,d;if(c){for(l+=u,f+=u,h=0,d=u;h<d&&o(s(e[l%u][n]),i,a);++h)l--,f--;l%=u,f%=u}return f<l&&(f+=u),{start:l,end:f,loop:c,style:t.style}}function ML(t,e,r){if(!r)return[t];const{property:n,start:i,end:a}=r,o=e.length,{compare:s,between:u,normalize:l}=SL(n),{start:f,end:c,loop:h,style:d}=NG(t,e,r),v=[];let p=!1,g=null,m,y,_;const b=()=>u(i,_,m)&&s(i,_)!==0,x=()=>s(a,m)===0||u(a,_,m),w=()=>p||b(),E=()=>!p||x();for(let S=f,M=f;S<=c;++S)y=e[S%o],!y.skip&&(m=l(y[n]),m!==_&&(p=u(m,i,a),g===null&&w()&&(g=s(m,i)===0?S:M),g!==null&&E()&&(v.push(DE({start:g,end:S,loop:h,count:o,style:d})),g=null),M=S,_=m));return g!==null&&v.push(DE({start:g,end:c,loop:h,count:o,style:d})),v}function CL(t,e){const r=[],n=t.segments;for(let i=0;i<n.length;i++){const a=ML(n[i],t.points,e);a.length&&r.push(...a)}return r}function DG(t,e,r,n){let i=0,a=e-1;if(r&&!n)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,r&&(a+=i);a>i&&t[a%e].skip;)a--;return a%=e,{start:i,end:a}}function PG(t,e,r,n){const i=t.length,a=[];let o=e,s=t[e],u;for(u=e+1;u<=r;++u){const l=t[u%i];l.skip||l.stop?s.skip||(n=!1,a.push({start:e%i,end:(u-1)%i,loop:n}),e=o=l.stop?u:null):(o=u,s.skip&&(e=u)),s=l}return o!==null&&a.push({start:e%i,end:o%i,loop:n}),a}function RG(t,e){const r=t.poin