@ghfs/cli 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/cli.mjs +468 -45
- package/dist/{factory-UMSInaa_.mjs → factory-p7K86ig1.mjs} +145 -2
- package/dist/index.d.mts +66 -0
- package/dist/index.mjs +1 -1
- package/dist/ui/200.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/_nuxt/B0TbUr4-.js +1 -0
- package/dist/ui/_nuxt/B22m6lGO.js +1 -0
- package/dist/ui/_nuxt/B285sO4n.js +1 -0
- package/dist/ui/_nuxt/BKeWYFwB.js +1 -0
- package/dist/ui/_nuxt/C3qHPz2x.js +11 -0
- package/dist/ui/_nuxt/{C8o6ovMK.js → COKSWHV2.js} +1 -1
- package/dist/ui/_nuxt/CZG_sboh.js +1 -0
- package/dist/ui/_nuxt/CxFuatvT.js +64 -0
- package/dist/ui/_nuxt/D6OOFWTr.js +1 -0
- package/dist/ui/_nuxt/{BqmRGtwl.js → D8shZTBd.js} +1 -1
- package/dist/ui/_nuxt/{1bK2R2pL.js → DNX9zRCQ.js} +1 -1
- package/dist/ui/_nuxt/DXu5T2B5.js +15 -0
- package/dist/ui/_nuxt/{BKH9P1wN.js → EicHfoe9.js} +1 -1
- package/dist/ui/_nuxt/MnK0Tdwj.js +8 -0
- package/dist/ui/_nuxt/Project.ua0Af7kd.css +1 -0
- package/dist/ui/_nuxt/TcANp6PW.js +1 -0
- package/dist/ui/_nuxt/{DK734mxh.js → _TxKSTp6.js} +1 -1
- package/dist/ui/_nuxt/brA7auAl.js +1 -0
- package/dist/ui/_nuxt/builds/latest.json +1 -1
- package/dist/ui/_nuxt/builds/meta/d40c8be2-bdb7-4195-9ef3-a2f26238eb3f.json +1 -0
- package/dist/ui/_nuxt/cards.BNaTRoqd.css +1 -0
- package/dist/ui/_nuxt/entry.oX7K7W6S.css +1 -0
- package/dist/ui/_nuxt/error-404.CYxKGMun.css +1 -0
- package/dist/ui/_nuxt/error-500.DhFBNa35.css +1 -0
- package/dist/ui/_nuxt/f8zICjba.js +1 -0
- package/dist/ui/_nuxt/{index.C3E0NnSu.css → index.CQ-q3McJ.css} +1 -1
- package/dist/ui/cards/index.html +1 -1
- package/dist/ui/hub/index.html +1 -1
- package/dist/ui/hub/recent/index.html +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/ui/recent/index.html +1 -1
- package/dist/ui/todo/index.html +1 -1
- package/package.json +6 -6
- package/dist/ui/_nuxt/BNh5okZH.js +0 -4
- package/dist/ui/_nuxt/BNzF7F9w.js +0 -1
- package/dist/ui/_nuxt/BWLewmBT.js +0 -15
- package/dist/ui/_nuxt/BbwaKnwL.js +0 -1
- package/dist/ui/_nuxt/CBU7sHLx.js +0 -1
- package/dist/ui/_nuxt/CQja-oog.js +0 -1
- package/dist/ui/_nuxt/D4R7-XZQ.js +0 -1
- package/dist/ui/_nuxt/D4yIuA0F.js +0 -64
- package/dist/ui/_nuxt/DHH7xZXJ.js +0 -11
- package/dist/ui/_nuxt/DVC3GhaL.js +0 -1
- package/dist/ui/_nuxt/DWBdeKmR.js +0 -1
- package/dist/ui/_nuxt/Da-Y9lY6.js +0 -1
- package/dist/ui/_nuxt/DeX2bcSG.js +0 -1
- package/dist/ui/_nuxt/Project.BMA756E4.css +0 -1
- package/dist/ui/_nuxt/builds/meta/f935488c-a544-4bf6-9a65-b421d02508c1.json +0 -1
- package/dist/ui/_nuxt/cards.DYf8w2uL.css +0 -1
- package/dist/ui/_nuxt/entry.COcGUqGv.css +0 -1
- package/dist/ui/_nuxt/error-404.CiGdHkfa.css +0 -1
- package/dist/ui/_nuxt/error-500.DrZuPeVU.css +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CBU7sHLx.js","./DHH7xZXJ.js","./entry.COcGUqGv.css","./1bK2R2pL.js","./DeX2bcSG.js","./D4yIuA0F.js","./BqmRGtwl.js","./D4R7-XZQ.js","./DVC3GhaL.js","./BNh5okZH.js","./Project.BMA756E4.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Io}from"./DeX2bcSG.js";import{$ as Ye,h as A,a0 as Wo,r as Y,Z as Do,j as R,o as x,c as L,a as y,t as Z,F as re,q as me,z as Se,d as lt,g as Ne,B as ke,x as kt,a1 as Bo,l as he,C as se,i as K,a2 as Tt,a3 as $t,s as ye,b as Ae,w as we,a4 as fo,_ as ho,a5 as po,e as at,p as Vo,M as Lo,a6 as Uo,f as Eo,D as Po,X as To,n as vt,N as Ho,R as Kt,L as Yo,a7 as jo,P as Go,a8 as Xo}from"./DHH7xZXJ.js";import{_ as $o,a as qo}from"./D4yIuA0F.js";import{_ as Ko}from"./D4R7-XZQ.js";var Zo={dataset:"#COMP# dataset prop is either missing, undefined or empty.",datasetAttribute:"#COMP# dataset is missing the '#ATTR#' attribute.",datasetAttributeEmpty:"#COMP# dataset '#ATTR#' attribute cannot be empty.",datasetSerieAttribute:"#COMP# dataset #KEY# item at index #INDX# is missing the '#ATTR#' attribute.",notBuildable:"#COMP# : Chart could not be built. Dataset is not formatted correctly",attributeWrongValue:"#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value)."};function wt({defaultConfig:e,userConfig:t}){let a={...e};return Object.keys(a).forEach(n=>{if(Object.hasOwn(t,n)){let r=t[n];r===null?a[n]=null:["boolean","function"].includes(typeof r)?a[n]=r:["string","number"].includes(typeof r)?Mo(r)&&(a[n]=r):Array.isArray(a[n])?Qo({userConfig:t,key:n})&&(a[n]=r):Jo({userConfig:t,key:n})&&(a[n]=wt({defaultConfig:a[n],userConfig:r}))}}),Object.keys(t).forEach(n=>{if(!Object.hasOwn(a,n)){let r=t[n];a[n]=r&&typeof r=="object"&&!Array.isArray(r)?{...r}:r}}),a}function Qo({userConfig:e,key:t}){return Object.hasOwn(e,t)&&Array.isArray(e[t])&&e[t].length>=0}function Jo({userConfig:e,key:t}){return Object.hasOwn(e,t)&&!Array.isArray(e[t])&&typeof e[t]=="object"}function Mo(e){return![null,void 0,NaN,1/0,-1/0].includes(e)}function go(e,t=0){return Mo(e)?e:t}function ue(e,t=0){return isNaN(e)?t:e}var mo="00.03.05.08.0A.0D.0F.12.14.17.1A.1C.1F.21.24.26.29.2B.2E.30.33.36.38.3B.3D.40.42.45.47.4A.4D.4F.52.54.57.59.5C.5E.61.63.66.69.6B.6E.70.73.75.78.7A.7D.80.82.85.87.8A.8C.8F.91.94.96.99.9C.9E.A1.A3.A6.A8.AB.AD.B0.B3.B5.B8.BA.BD.BF.C2.C4.C7.C9.CC.CF.D1.D4.D6.D9.DB.DE.E0.E3.E6.E8.EB.ED.F0.F2.F5.F7.FA.FC.FF".split(".");function Ro(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,a=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=/^rgba?\(\s*([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*(?:,|\/)\s*([+\-]?\d*\.?\d+%?))?\s*\)$/i,r=/^hsla?\(\s*([+\-]?\d*\.?\d+(?:deg)?)(?:\s*,\s*|\s+)([\d.]+)%(?:\s*,\s*|\s+)([\d.]+)%(?:\s*(?:,|\/)\s*([\d.]+%?))?\s*\)$/i,g=/^oklch\(\s*([\d.]+)%?\s*[, ]\s*([\d.]+)%?\s*[, ]\s*([\d.]+)(?:deg)?\s*(?:\/\s*([\d.]+%?)\s*)?\)$/i,s=/^lch\(/i;if(e==null||typeof e=="number"&&isNaN(e))return null;if(e=Ye?.(e)?A(e):e,e=cl(e),Array.isArray(e)){let[u,c,h,p=1]=e;e=`rgba(${u},${c},${h},${p})`}else if(typeof e=="object")if(Number.isFinite(e.r)&&Number.isFinite(e.g)&&Number.isFinite(e.b)){let u=Number.isFinite(e.a)?e.a:1;e=`rgba(${e.r},${e.g},${e.b},${u})`}else return null;else if(typeof e=="number"){let u=e>>>0,c=u.toString(16).padStart(u<=16777215?6:8,"0");return`#${c.length===6?c+"ff":c}`}else if(typeof e!="string")return null;if(e=e.trim(),s.test(e))return console.warn("[convertColorToHex] lch() colors are not supported. Use oklch() instead."),null;if(e.toLowerCase()==="transparent")return"#FFFFFF00";e=e.replace(a,(u,c,h,p,v)=>`#${c}${c}${h}${h}${p}${p}${v?v+v:""}`);let f;if(f=e.match(t)){let[,u,c,h,p]=f,v=p?parseInt(p,16)/255:1;return`#${u}${c}${h}${fe(Math.round(Ce(v)*255))}`}if(f=e.match(n)){let[,u,c,h,p]=f,v=Mt(u),d=Mt(c),l=Mt(h),w=p?Nt(p):1;return v===null||d===null||l===null||w===null?null:`#${fe(v)}${fe(d)}${fe(l)}${fe(Math.round(Ce(w)*255))}`}if(f=e.match(r)){let[,u,c,h,p]=f,v=parseFloat(u),d=Number(c),l=Number(h),w=p?Nt(p):1;if(!Number.isFinite(v)||!Number.isFinite(d)||!Number.isFinite(l)||w===null)return null;let[o,P,k]=rl(v,d,l);return`#${fe(o)}${fe(P)}${fe(k)}${fe(Math.round(Ce(w)*255))}`}if(f=e.match(g)){let[,u,c,h,p]=f,v=ol(u);if(v===null)return null;let d=ll(c);if(d===null)return null;let l=al(h);if(l===null)return null;let w=Nt(p);if(w===null)return null;let[o,P,k]=el(v,d,l);return`#${fe(o)}${fe(P)}${fe(k)}${fe(Math.round(Ce(w)*255))}`}return null}function Mt(e){if(typeof e!="string")return null;if(e.endsWith("%")){let a=parseFloat(e);return Number.isFinite(a)?Math.round(Ce(a/100)*255):null}let t=parseFloat(e);return Number.isFinite(t)?t<0?0:t>255?255:Math.round(t):null}function Ce(e){return Number.isFinite(e)?e<0?0:e>1?1:e:0}function Rt(e){return!Number.isFinite(e)||e<0?0:e>255?255:Math.round(e)}function zt(e){return e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055}function el(e,t,a){let n=(a%360+360)%360*(Math.PI/180);return tl(e,t*Math.cos(n),t*Math.sin(n))}function tl(e,t,a){let n=e+.3963377774*t+.2158037573*a,r=e-.1055613458*t-.0638541728*a,g=e-.0894841775*t-1.291485548*a,s=n*n*n,f=r*r*r,u=g*g*g,c=4.0767416621*s-3.3077115913*f+.2309699292*u,h=-1.2684380046*s+2.6097574011*f-.3413193965*u,p=-.0041960863*s-.7034186147*f+1.707614701*u;c=Ce(c),h=Ce(h),p=Ce(p);let v=zt(c)*255,d=zt(h)*255,l=zt(p)*255;return[Rt(v),Rt(d),Rt(l)]}function Nt(e){if(e===void 0)return 1;if(typeof e=="string"&&e.endsWith("%")){let a=parseFloat(e);return Number.isFinite(a)?Ce(a/100):null}let t=parseFloat(e);return Number.isFinite(t)?Ce(t):null}function ol(e){let t=Number(e);return Number.isFinite(t)?(t>1&&(t/=100),Ce(t)):null}function ll(e){let t=Number(e);return Number.isFinite(t)?(t>1&&(t/=100),t<0?0:t):null}function al(e){let t=Number(e);return Number.isFinite(t)?t:null}function fe(e){let t=Number(e).toString(16);return t.length===1?"0"+t:t}function rl(e,t,a,n=1){e/=360,t/=100,a/=100;let r,g,s;if(t===0)r=g=s=a;else{let f=(h,p,v)=>(v<0&&(v+=1),v>1&&--v,v<.16666666666666666?h+(p-h)*6*v:v<.5?p:v<.6666666666666666?h+(p-h)*(.6666666666666666-v)*6:h),u=a<.5?a*(1+t):a+t-a*t,c=2*a-u;r=f(c,u,e+1/3),g=f(c,u,e),s=f(c,u,e-1/3)}return[Math.round(r*255),Math.round(g*255),Math.round(s*255),n]}function pt(e,t){let a=e.length===9?e.substring(0,7):e,n=e.length===9?e.substring(7,9):null,r=c=>({r:parseInt(c.substring(1,3),16),g:parseInt(c.substring(3,5),16),b:parseInt(c.substring(5,7),16)}),g=({r:c,g:h,b:p})=>{c/=255,h/=255,p/=255;let v=Math.max(c,h,p),d=Math.min(c,h,p),l,w,o=(v+d)/2;if(v===d)l=w=0;else{let P=v-d;switch(w=o>.5?P/(2-v-d):P/(v+d),v){case c:l=(h-p)/P+(h<p?6:0);break;case h:l=(p-c)/P+2;break;case p:l=(c-h)/P+4;break}l/=6}return{h:l,s:w,l:o}},s=({h:c,s:h,l:p})=>{let v,d,l;if(h===0)v=d=l=p;else{let w=(k,i,C)=>(C<0&&(C+=1),C>1&&--C,C<.16666666666666666?k+(i-k)*6*C:C<.5?i:C<.6666666666666666?k+(i-k)*(.6666666666666666-C)*6:k),o=p<.5?p*(1+h):p+h-p*h,P=2*p-o;v=w(P,o,c+1/3),d=w(P,o,c),l=w(P,o,c-1/3)}return{r:Math.round(v*255),g:Math.round(d*255),b:Math.round(l*255)}},f=g(r(a||"#000000"));f.h+=t,f.h=(f.h+1)%1;let u=s(f);return`#${(u.r<<16|u.g<<8|u.b).toString(16).padStart(6,"0")}`+(n||"")}function gt(e){return typeof e=="object"&&!!e&&Object.prototype.toString.call(e)==="[object Object]"&&(e.constructor===Object||e.constructor==null)}function Ot(e){return!!e&&(e.__v_isRef||e.__v_isReactive||e.__v_isReadonly||e.effect||e.dep||e.deps||e.subs)}function bo(e){return e===""?"#000000":e==="transparent"?"#FFFFFF00":Ro(e)??e}function yt(e,t=new WeakSet){let a=Wo(e);if(!gt(a)||t.has(a))return a;t.add(a);for(let n in a){let r=Ye(a[n])?A(a[n]):a[n];if(n==="color"||n==="backgroundColor"){typeof r=="string"&&(a[n]=bo(r));continue}if(n==="stroke"){typeof r=="string"?a[n]=bo(r):gt(r)&&!Ot(r)&&yt(r,t);continue}if(Array.isArray(r)){for(let g of r)gt(g)&&!Ot(g)&&yt(g,t);continue}gt(r)&&!Ot(r)&&yt(r,t)}return a}function nl(e){let t=e?.length??0;if(t<2)return{x1:0,y1:0,x2:0,y2:0,slope:0,trend:0};let a=0,n=0,r=0,g=0;for(let{x:_,y:z}of e)a+=_,n+=z,r+=_*z,g+=_*_;let s=t*g-a*a||1,f=(t*r-a*n)/s,u=(n-f*a)/t,c=e[0].x,h=e[t-1].x,p=f*c+u,v=f*h+u,d=0,l=0,w=0,o=0;for(let _=0;_<t;_+=1)d+=_,l+=e[_].value,w+=_*e[_].value,o+=_*_;let P=t*o-d*d||1,k=(t*w-d*l)/P,i=(l-k*d)/t,C=i,S=k*(t-1)+i,m=Math.max(Math.abs(C),Math.abs(l/t),Math.abs(S),1e-9);return{x1:c,y1:p,x2:h,y2:v,slope:f,trend:(S-C)/m}}function sl(e){let t=Math.floor(e.length/2),a=[...e].sort((n,r)=>n-r);return e.length%2==0?(a[t-1]+a[t])/2:a[t]}function il(e){let t=[];for(let a=0;a<e.length;a+=1)t.push(`${ue(e[a].x)},${ue(e[a].y)} `);return t.join(" ").trim()}function vo(e){if(e.length<2)return"0,0";let t=e.length-1,a=[`${ue(e[0].x)},${ue(e[0].y)}`],n=[],r=[],g=[],s=[];for(let f=0;f<t;f+=1)n[f]=e[f+1].x-e[f].x,r[f]=e[f+1].y-e[f].y,g[f]=r[f]/n[f];s[0]=g[0],s[t]=g[t-1];for(let f=1;f<t;f+=1)g[f-1]*g[f]<=0?s[f]=0:s[f]=2*g[f-1]*g[f]/(g[f-1]+g[f]);for(let f=0;f<t;f+=1){let u=e[f].x,c=e[f].y,h=e[f+1].x,p=e[f+1].y,v=s[f],d=s[f+1],l=u+(h-u)/3,w=c+v*(h-u)/3,o=h-(h-u)/3,P=p-d*(h-u)/3;a.push(`C ${ue(l)},${ue(w)} ${ue(o)},${ue(P)} ${ue(h)},${ue(p)}`)}return a.join(" ")}function ul(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function It({p:e="",v:t,s:a="",r:n=0,space:r=!1,isAnimating:g=!1,regex:s=/[^%]/g,replacement:f="-",locale:u=null}){let c=u?Number(Number(t).toFixed(n)).toLocaleString(u):Number(Number(t).toFixed(n)).toLocaleString(),h=c===1/0?"∞":c===-1/0?"-∞":c,p=`${e??""}${r?" ":""}${[void 0,null].includes(t)?"-":h}${r?" ":""}${a??""}`;return g?p.replace(s,f):p}function yo(e){return Array.isArray(e)?e.length===0:e?Object.keys(e).length===0:!0}function ko({componentName:e,type:t,property:a="",index:n="",key:r="",warn:g=!0,debug:s=!0}){if(!s)return;let f=`
|
|
3
|
-
> ${Zo[t].replace("#COMP#",e).replace("#ATTR#",a).replace("#INDX#",n).replace("#KEY#",r)}
|
|
4
|
-
`;if(g)console.warn(f);else throw Error(f)}function dl({datasetObject:e,requiredAttributes:t}){let a=[];return t.forEach(n=>{Object.hasOwn(e,n)||a.push(n)}),a}var wo={ALICEBLUE:"#F0F8FF",ANTIQUEWHITE:"#FAEBD7",AQUA:"#00FFFF",AQUAMARINE:"#7FFFD4",AZURE:"#F0FFFF",BEIGE:"#F5F5DC",BISQUE:"#FFE4C4",BLACK:"#000000",BLANCHEDALMOND:"#FFEBCD",BLUE:"#0000FF",BLUEVIOLET:"#8A2BE2",BROWN:"#A52A2A",BURLYWOOD:"#DEB887",CADETBLUE:"#5F9EA0",CHARTREUSE:"#7FFF00",CHOCOLATE:"#D2691E",CORAL:"#FF7F50",CORNFLOWERBLUE:"#6495ED",CORNSILK:"#FFF8DC",CRIMSON:"#DC143C",CYAN:"#00FFFF",DARKBLUE:"#00008B",DARKCYAN:"#008B8B",DARKGOLDENROD:"#B8860B",DARKGREY:"#A9A9A9",DARKGREEN:"#006400",DARKKHAKI:"#BDB76B",DARKMAGENTA:"#8B008B",DARKOLIVEGREEN:"#556B2F",DARKORANGE:"#FF8C00",DARKORCHID:"#9932CC",DARKRED:"#8B0000",DARKSALMON:"#E9967A",DARKSEAGREEN:"#8FBC8F",DARKSLATEBLUE:"#483D8B",DARKSLATEGREY:"#2F4F4F",DARKTURQUOISE:"#00CED1",DARKVIOLET:"#9400D3",DEEPPINK:"#FF1493",DEEPSKYBLUE:"#00BFFF",DIMGRAY:"#696969",DODGERBLUE:"#1E90FF",FIREBRICK:"#B22222",FLORALWHITE:"#FFFAF0",FORESTGREEN:"#228B22",FUCHSIA:"#FF00FF",GAINSBORO:"#DCDCDC",GHOSTWHITE:"#F8F8FF",GOLD:"#FFD700",GOLDENROD:"#DAA520",GREY:"#808080",GREEN:"#008000",GREENYELLOW:"#ADFF2F",HONEYDEW:"#F0FFF0",HOTPINK:"#FF69B4",INDIANRED:"#CD5C5C",INDIGO:"#4B0082",IVORY:"#FFFFF0",KHAKI:"#F0E68C",LAVENDER:"#E6E6FA",LAVENDERBLUSH:"#FFF0F5",LAWNGREEN:"#7CFC00",LEMONCHIFFON:"#FFFACD",LIGHTBLUE:"#ADD8E6",LIGHTCORAL:"#F08080",LIGHTCYAN:"#E0FFFF",LIGHTGOLDENRODYELLOW:"#FAFAD2",LIGHTGREY:"#D3D3D3",LIGHTGREEN:"#90EE90",LIGHTPINK:"#FFB6C1",LIGHTSALMON:"#FFA07A",LIGHTSEAGREEN:"#20B2AA",LIGHTSKYBLUE:"#87CEFA",LIGHTSLATEGREY:"#778899",LIGHTSTEELBLUE:"#B0C4DE",LIGHTYELLOW:"#FFFFE0",LIME:"#00FF00",LIMEGREEN:"#32CD32",LINEN:"#FAF0E6",MAGENTA:"#FF00FF",MAROON:"#800000",MEDIUMAQUAMARINE:"#66CDAA",MEDIUMBLUE:"#0000CD",MEDIUMORCHID:"#BA55D3",MEDIUMPURPLE:"#9370D8",MEDIUMSEAGREEN:"#3CB371",MEDIUMSLATEBLUE:"#7B68EE",MEDIUMSPRINGGREEN:"#00FA9A",MEDIUMTURQUOISE:"#48D1CC",MEDIUMVIOLETRED:"#C71585",MIDNIGHTBLUE:"#191970",MINTCREAM:"#F5FFFA",MISTYROSE:"#FFE4E1",MOCCASIN:"#FFE4B5",NAVAJOWHITE:"#FFDEAD",NAVY:"#000080",OLDLACE:"#FDF5E6",OLIVE:"#808000",OLIVEDRAB:"#6B8E23",ORANGE:"#FFA500",ORANGERED:"#FF4500",ORCHID:"#DA70D6",PALEGOLDENROD:"#EEE8AA",PALEGREEN:"#98FB98",PALETURQUOISE:"#AFEEEE",PALEVIOLETRED:"#D87093",PAPAYAWHIP:"#FFEFD5",PEACHPUFF:"#FFDAB9",PERU:"#CD853F",PINK:"#FFC0CB",PLUM:"#DDA0DD",POWDERBLUE:"#B0E0E6",PURPLE:"#800080",RED:"#FF0000",ROSYBROWN:"#BC8F8F",ROYALBLUE:"#4169E1",SADDLEBROWN:"#8B4513",SALMON:"#FA8072",SANDYBROWN:"#F4A460",SEAGREEN:"#2E8B57",SEASHELL:"#FFF5EE",SIENNA:"#A0522D",SILVER:"#C0C0C0",SKYBLUE:"#87CEEB",SLATEBLUE:"#6A5ACD",SLATEGREY:"#708090",SNOW:"#FFFAFA",SPRINGGREEN:"#00FF7F",STEELBLUE:"#4682B4",TAN:"#D2B48C",TEAL:"#008080",THISTLE:"#D8BFD8",TOMATO:"#FF6347",TURQUOISE:"#40E0D0",VIOLET:"#EE82EE",WHEAT:"#F5DEB3",WHITE:"#FFFFFF",WHITESMOKE:"#F5F5F5",YELLOW:"#FFFF00",YELLOWGREEN:"#9ACD32",REBECCAPURPLE:"#663399"};function cl(e){let t=Ye?.(e)?A(e):e;if(typeof t!="string")return t;let a=t.trim();if(a===""||a[0]==="#")return a;if(a.toLowerCase()==="transparent")return"#FFFFFF00";let n=a.toUpperCase(),r=n.replace(/GRAY/g,"GREY");return wo[n]||wo[r]||a}var fl="http://www.w3.org/2000/svg";function hl(e,{value:t,config:a}){let n=!1,r=t;if(typeof e=="function")try{r=e({value:t,config:a}),["number","string"].includes(typeof r)?n=!0:Array.isArray(r)?(r=r.map(String).join(`
|
|
5
|
-
`),n=!0):r=t}catch(g){console.warn("Formatter could not be applied:",g),n=!1}return{isValid:n,value:r}}function Wt(e,t,a,n){let{isValid:r,value:g}=hl(e,{value:t,config:n});return r?g:a}function mt(e,t=100){return e.length===9?e.substring(0,7)+mo[t]:e+mo[t]}function Bt({data:e,threshold:t,key:a="value"}){if(t>=e.length||t<3)return e;let n=[],r=(e.length-2)/(t-2),g=0;n.push(e[g]);for(let s=0;s<t-2;s+=1){let f=Math.floor((s+1)*r)+1,u=Math.min(Math.floor((s+2)*r)+1,e.length),c=e.slice(f,u),h=c.reduce((d,l)=>d+l[a],0)/c.length,p=-1,v=g;for(let d=f;d<u;d+=1){let l=Math.abs((e[g][a]-h)*(d-g));l>p&&(p=l,v=d)}n.push(e[v]),g=v}return n.push(e[e.length-1]),n}function xn({svgElement:e,x:t,y:a,offsetY:n=0,element:r}){if(!e||!r)return{top:0,left:0};let g=e.createSVGPoint();g.x=t,g.y=a;let s=g.matrixTransform(e.getScreenCTM()),f=e.getBoundingClientRect(),u=r.getBoundingClientRect(),c=0,h=0;return c=s.x-u.width/2<f.left?0:s.x+u.width>f.right?-u.width:-u.width/2,h=s.y-n-u.height<f.top?n:-u.height-n,{top:s.y+h,left:s.x+c}}function zo(e){let t=Number(e);return Number.isFinite(t)?Math.trunc(t):null}function Ct(e){return`${ue(e.x)},${ue(e.y)}`}function pl(e,t=[]){let a=Array.isArray(e)?e:[],n=a.length,r=new Set,g=n-1;for(let p of Array.isArray(t)?t:[]){let v=zo(p);v!==null&&(v>0&&r.add(v-1),v<g&&r.add(v))}let s=[],f=[],u=!1,c=!1,h=()=>{f.length>=2&&s.push({path:f.map((p,v)=>v===0?p:`L${p}`).join(" "),dashed:u}),f=[],c=!1};for(let p=0;p<n;p+=1){let v=a[p];if(!Xt(v)){h();continue}let d=Ct(v);if(!c){f=[d],c=!0;continue}let l=a[p-1];if(!Xt(l)){h(),f=[d],c=!0;continue}let w=r.has(p-1);if(f.length===1){u=w,f.push(d);continue}if(w!==u){let o=Ct(l);h(),u=w,f=[o,d],c=!0}else f.push(d)}return h(),s}function Xt(e){return e!=null&&e.value!=null&&Number.isFinite(e.x)&&Number.isFinite(e.y)}function gl(e,t){let a=e-1,n=new Set,r=Array.isArray(t)?t:[];for(let g of r){let s=zo(g);s!==null&&(s>0&&n.add(s-1),s<a&&n.add(s))}return n}function ml(e){let t=[],a=[];for(let n=0;n<e.length;n+=1){let r=e[n];Xt(r)?a.push(n):(a.length>1&&t.push(a),a=[])}return a.length>1&&t.push(a),t}function bl(e,t){let a=t.map(c=>e[c]),n=a.length-1,r=[],g=[],s=[],f=[];for(let c=0;c<n;c+=1)r[c]=a[c+1].x-a[c].x,g[c]=a[c+1].y-a[c].y,s[c]=g[c]/r[c];f[0]=s[0],f[n]=s[n-1];for(let c=1;c<n;c+=1)s[c-1]*s[c]<=0?f[c]=0:f[c]=2*s[c-1]*s[c]/(s[c-1]+s[c]);let u=Array(n);for(let c=0;c<n;c+=1){let h=a[c].x,p=a[c].y,v=a[c+1].x,d=a[c+1].y,l=f[c],w=f[c+1],o=h+(v-h)/3,P=p+l*(v-h)/3,k=v-(v-h)/3,i=d-w*(v-h)/3;u[c]=`C${ue(o)},${ue(P)} ${ue(k)},${ue(i)} ${ue(v)},${ue(d)}`}return{startCoord:Ct(a[0]),commands:u}}function vl(e){let t=[];if(!e.length)return t;let a=0,n=e[0];for(let r=1;r<e.length;r+=1)e[r]!==n&&(t.push({startEdge:a,endEdge:r-1,dashed:n}),a=r,n=e[r]);return t.push({startEdge:a,endEdge:e.length-1,dashed:n}),t}function yl(e,t=[]){let a=Array.isArray(e)?e:[];if(a.length<2)return[];let n=gl(a.length,t),r=ml(a);if(!r.length)return[];let g=[];for(let s of r){let{startCoord:f,commands:u}=bl(a,s),c=Array(u.length);for(let p=0;p<u.length;p+=1){let v=s[p];c[p]=n.has(v)}let h=vl(c);for(let p of h){let v=p.startEdge,d=`${v===0?f:Ct(a[s[v]])} ${u.slice(p.startEdge,p.endEdge+1).join(" ")}`.trim();g.push({path:d,dashed:p.dashed})}}return g}function kl(e){let t=[];for(let a=0;a<e;a+=1)t.push(a===0?0:a===1?1:t[a-1]+t[a-2]);return t}function wl(e,t){return t<=1?"0%":`${e*100/(t-1)}%`}var Zt=(e,t)=>{let a=e.__vccOpts||e;for(let[n,r]of t)a[n]=r;return a};function Cl(e={}){let t="#2D353C",a="#A1A1A1",n="#e1e5e8",r="#CCCCCC",g="#4A4A4A",s="#FFFFFF",f="#fafafa",u="#1f77b4",c="#d62728",h="#2ca02c",p="#42d392",v="#FFD055",d=e.colorBackground??s,l=e.colorTextPrimary??t,w=e.colorTextSecondary??a,o=e.colorGrid??n,P=e.colorBorder??n,k={translations:{keyboardNavigation:"Use the left and right arrow keys to move between data points.",tableAvailable:"A data table for this chart is available below.",tableCaption:"Chart data table"}},i={_6:6,_10:10,_12:12,_14:14,_16:16,_18:18,_20:20,_24:24,_32:32,_48:48},C=i._6,S={LINE:"line",SQUARE:"square",ROUND:"round",CIRCLE:"circle",CURVED:"curved",BAR:"bar",STAR:"star"},m={LEFT:"left",CENTER:"center",BOTTOM:"bottom",TOP:"top"},_={DESC:"desc"},z={threshold:1095},B={showValueFirst:!0,usePercentageParens:!0,useValueParens:!1},E={text:"",color:l,fontSize:i._20,bold:!0,textAlign:m.CENTER,paddingLeft:0,paddingRight:0,subtitle:{color:w,text:"",fontSize:i._16,bold:!1}},V={show:!0,bold:!1,backgroundColor:d,color:l,fontSize:i._14,selectAllToggle:{show:!1,backgroundColor:P,color:l}},I={show:!0,color:l,backgroundColor:d,fontSize:i._14,customFormat:null,borderRadius:4,borderColor:P,borderWidth:1,backgroundOpacity:100,position:m.CENTER,offsetX:0,offsetY:24,smooth:!0,backdropFilter:!0,smoothForce:.18,smoothSnapThreshold:.25,teleportTo:"body"},G={enable:!1,locale:"en",useUTC:!1,januaryAsYear:!1,options:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},$=({tooltip:ze=!1,pdf:Jt=!1,csv:eo=!1,img:to=!1,table:oo=!1,labels:lo=!1,fullscreen:ao=!1,sort:ro=!1,stack:no=!1,animation:so=!1,annotator:io=!1,svg:uo=!1,zoom:co=!1,altCopy:Oo=!1})=>{let ce={open:"Open options",close:"Close options",tooltip:"Toggle tooltip",pdf:"Download PDF",csv:"Download CSV",img:"Download PNG",table:"Toggle table",labels:"Toggle labels",fullscreen:"Toggle fullscreen",sort:"Toggle sort",stack:"Toggle stack mode",animation:"Toggle animation",annotator:"Toggle annotator",svg:"Download SVG",zoom:"Toggle zoom lock",altCopy:"Copy alt text"};return ze||delete ce.tooltip,Jt||delete ce.pdf,eo||delete ce.csv,to||delete ce.img,oo||delete ce.table,lo||delete ce.labels,ao||delete ce.fullscreen,ro||delete ce.sort,no||delete ce.stack,so||delete ce.animation,io||delete ce.annotator,uo||delete ce.svg,co||delete ce.zoom,{show:!0,showOnChartHover:!1,keepStateOnChartLeave:!0,position:"right",buttons:{tooltip:ze,pdf:Jt,csv:eo,img:to,table:oo,labels:lo,fullscreen:ao,sort:ro,stack:no,animation:so,annotator:io,svg:uo,zoom:co,altCopy:Oo},callbacks:{animation:null,annotator:null,csv:null,fullscreen:null,img:null,labels:null,pdf:null,sort:null,stack:null,table:null,tooltip:null,svg:null,zoom:null,altCopy:null},buttonTitles:ce,print:{scale:2,orientation:"auto",overflowTolerance:.2},useCursorPointer:!1}},W=ze=>({top:ze[0],right:ze[1],bottom:ze[2],left:ze[3]}),M={backgroundColor:d,color:l,outline:"none"},T={backgroundColor:d,color:l,outline:"none"},O={show:!1,responsiveBreakpoint:400},ne={show:!0,color:r,highlightColor:g,fontSize:i._14,useResetSlot:!1,startIndex:null,endIndex:null,enableRangeHandles:!0,enableSelectionDrag:!0,focusOnDrag:!1,focusRangeRatio:.2,maxWidth:null,keepState:!1},te={show:!1,selectedColor:u,selectedColorOpacity:.2,indicatorColor:t,verticalHandles:!1,compact:!0,frameColor:a,additionalHeight:0,handleIconColor:null,handleBorderWidth:1,handleBorderColor:null,handleFill:null,handleWidth:20,handleType:"grab"},oe={...te,smooth:!1,lineColor:t,selectionRadius:2,merged:!1},J={skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:"",responsive:!1,a11y:k,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,table:{...O,useDialog:!1,columnNames:{period:"Period",total:"Total"},th:M,td:{...T,roundingValue:0}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:500,width:800,padding:W([12,12,12,12]),title:E,legend:{...V,position:"bottom"},zoom:{...ne,minimap:te,preview:{enable:!0,fill:"#CCCCCC50",stroke:"#6A6A6A",strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},highlighter:{color:l,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1},tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:"Total",useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:o,linesColor:o,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:"",fontSize:i._14,color:l,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:G,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:i._14,color:l,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:12}},y:{position:"left",showAxis:!0,showVerticalLines:!1,linesColor:o,linesThickness:1,linesStrokeDasharray:0,axisColor:o,axisThickness:2,axisName:{show:!0,text:"",fontSize:i._14,color:l,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:l,fontSize:i._14,bold:!1,rounding:0}}},lines:{useArea:!0,smooth:!1,areaOpacity:.5,distributed:!1,showDistributedPercentage:!0,strokeWidth:1,gradient:{show:!0,intensity:40},path:{useSerieColor:!0,stroke:s},dot:{hideAboveMaxSerieLength:62,useSerieColor:!0,fill:s,stroke:s,strokeWidth:.5,radius:4},totalValues:{show:!0,offsetY:0,fontSize:i._16,bold:!0,color:l},dataLabels:{hideAboveMaxSerieLength:62,offsetY:0,show:!0,hideEmptyValues:!0,hideUnderValue:null,hideEmptyPercentages:!0,hideUnderPercentage:null,color:l,fontSize:i._14,bold:!1,rounding:0,prefix:"",suffix:"",formatter:null}}}}},le={skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:"",responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,orientation:"vertical",table:{...O,useDialog:!1,columnNames:{period:"Period",total:"Total"},th:M,td:{...T,roundingValue:0}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:500,width:800,padding:W([12,12,12,12]),title:E,legend:{...V,position:"bottom"},zoom:{...ne,minimap:te,preview:{enable:!0,fill:"#CCCCCC50",stroke:"#6A6A6A",strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:"Total",useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"},highlighter:{color:l,opacity:5},bars:{gapRatio:.5,distributed:!1,showDistributedPercentage:!0,borderRadius:0,strokeWidth:1,gradient:{show:!0,intensity:20},totalValues:{show:!0,offsetY:0,offsetX:0,fontSize:i._16,bold:!1,color:l},dataLabels:{show:!0,hideEmptyValues:!1,hideUnderValue:null,hideEmptyPercentages:!1,hideUnderPercentage:null,adaptColorToBackground:!0,color:l,fontSize:i._14,bold:!1,rounding:0,prefix:"",suffix:"",formatter:null}},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:o,linesColor:o,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:"",fontSize:i._14,color:l,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:G,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:i._14,color:l,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:12}},y:{position:"left",showAxis:!0,showVerticalLines:!1,linesColor:o,linesThickness:1,linesStrokeDasharray:0,axisColor:o,axisThickness:2,axisName:{show:!0,text:"",fontSize:i._14,color:l,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:l,fontSize:i._14,bold:!1,rounding:0}}}}}},H={skeletonConfig:null,skeletonDataset:null,debug:!1,theme:"",responsive:!1,loading:!1,a11y:k,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,customPalette:[],useCssAnimation:!1,downsample:z,chart:{fontFamily:"inherit",backgroundColor:d,color:l,height:600,width:1e3,annotations:[{show:!1,yAxis:{yTop:null,yBottom:null,label:{text:"",textAnchor:"start",position:"start",offsetX:0,offsetY:0,padding:W([12,12,12,12]),border:{stroke:s,strokeWidth:1,rx:0,ry:0},fontSize:14,color:l,backgroundColor:o},line:{stroke:t,strokeWidth:1,strokeDasharray:0},area:{fill:o,opacity:30}}}],zoom:{...ne,minimap:oe,preview:{enable:!0,fill:"#CCCCCC50",stroke:"#6A6A6A",strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},padding:W([12,12,6,6]),highlighter:{color:l,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1},highlightArea:{show:!1,from:0,to:0,color:t,opacity:20,caption:{text:"",fontSize:i._10,color:l,bold:!1,offsetY:0,width:"auto",padding:3,textAlign:m.CENTER}},timeTag:{show:!1,backgroundColor:o,color:l,fontSize:i._12,circleMarker:{radius:3,color:l},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},grid:{stroke:o,showVerticalLines:!1,showHorizontalLines:!1,position:"middle",frame:{show:!1,stroke:o,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:0},labels:{show:!0,color:l,fontSize:i._16,axis:{yLabel:"",yLabelOffsetX:0,xLabel:"",xLabelOffsetY:0,fontSize:i._14},zeroLine:{show:!0},xAxis:{showBaseline:!1,showCrosshairs:!0,crosshairsAlwaysAtZero:!1,crosshairSize:6},yAxis:{position:"left",showBaseline:!0,showCrosshairs:!0,crosshairSize:6,commonScaleSteps:10,useIndividualScale:!1,useNiceScale:!1,stacked:!1,gap:12,labelWidth:64,formatter:null,scaleMin:null,scaleMax:null,groupColor:null,scaleLabelOffsetX:0,scaleValueOffsetX:0,rounding:1,serieNameFormatter:null},xAxisLabels:{color:l,show:!0,values:[],datetimeFormatter:G,fontSize:i._14,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:12,yOffset:24,rotation:0,autoRotate:{enable:!0,angle:-30}}}},comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},labels:{fontSize:i._10,prefix:"",suffix:""},legend:{color:l,show:!0,fontSize:i._14,position:"bottom",selectAllToggle:{show:!1,backgroundColor:P,color:l}},title:{...E,show:!0},tooltip:{...I,showTimeLabel:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0,svg:!0})},bar:{showTransition:!0,transitionDurationMs:300,borderRadius:2,useGradient:!0,periodGap:.1,innerGap:0,border:{useSerieColor:!1,strokeWidth:0,stroke:s},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,textAnchor:null,alwaysOnTop:!1,rounding:0,color:l,formatter:null},serieName:{show:!1,offsetY:-6,useAbbreviation:!0,abbreviationSize:3,useSerieColor:!0,color:l,bold:!1}},line:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,strokeWidth:3,cutNullValues:!1,interLine:{pairs:[],colors:[],fillOpacity:.25},dot:{hideAboveMaxSerieLength:62,useSerieColor:!0,fill:s,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:l,formatter:null,textAnchor:null,alwaysOnTop:!1},area:{useGradient:!0,opacity:30},tag:{followValue:!0,formatter:null,fontSize:i._14}},plot:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,dot:{useSerieColor:!0,fill:s,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:l,formatter:null,textAnchor:null,alwaysOnTop:!1},tag:{followValue:!0,formatter:null,fontSize:i._14}},table:{useDialog:!1,responsiveBreakpoint:400,rounding:0,sparkline:!0,showSum:!0,columnNames:{period:"Period",total:"Total"},th:M,td:T,useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"},showTable:!1},j={skeletonConfig:null,skeletonDataset:null,debug:!1,type:"classic",loading:!1,pie:!1,autoSize:!0,responsive:!1,theme:"",customPalette:[],useCssAnimation:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},useBlurOnHover:!0,userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:"Total",average:"Average"},table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0,roundingPercentage:0},columnNames:{series:"Series",value:"Value",percentage:"Percentage"}},style:{fontFamily:"inherit",chart:{useGradient:!0,gradientIntensity:40,backgroundColor:d,color:l,padding:W([0,0,0,0]),width:512,height:360,layout:{curvedMarkers:!1,labels:{dataLabels:{...B,show:!0,useLabelSlots:!1,hideUnderValue:3,smallArcClusterThreshold:8,smallArcClusterFontSize:i._12,oneLine:!1,prefix:"",suffix:""},value:{rounding:0,show:!0,formatter:null},percentage:{show:!0,color:l,bold:!0,fontSize:i._18,minFontSize:C,rounding:0,formatter:null},name:{show:!0,color:l,bold:!1,fontSize:i._14,minFontSize:C},hollow:{show:!0,total:{show:!0,bold:!1,fontSize:i._18,color:l,text:"Total",offsetY:0,value:{color:l,fontSize:i._18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0,formatter:null}},average:{show:!0,bold:!1,fontSize:i._18,color:w,text:"Average",offsetY:0,value:{color:l,fontSize:i._18,bold:!0,suffix:"",prefix:"",offsetY:0,rounding:0,formatter:null}}}},donut:{radiusRatio:.3,strokeWidth:64,borderWidth:1,useShadow:!1,shadowColor:t,emptyFill:o,selectedColor:"#0000001A",borderColorAuto:!0,borderColor:P}},comments:{show:!0,showInTooltip:!0,width:100,offsetY:0,offsetX:0},legend:{...V,...B,roundingValue:0,roundingPercentage:0,showPercentage:!0,showValue:!0,position:"bottom"},tooltip:{...I,...B,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},title:E}}},ae={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:500,width:800,padding:W([0,0,0,0]),layout:{sorted:!0,rects:{stroke:o,strokeWidth:1,borderRadius:0,colorRatio:.3,gradient:{show:!0,intensity:30},group:{stroke:o,strokeWidth:1,useSeriesBackgroundColor:!1,backgroundLighterRatio:.4,label:{adaptColorToBackground:!1,color:l}},selected:{stroke:o,strokeWidth:1,unselectedOpacity:.6}},labels:{showDefaultLabels:!0,fontSize:i._24,minFontSize:i._10,hideUnderProportion:.03,prefix:"Value: ",suffix:"",rounding:0,formatter:null,name:{show:!0,bold:!0},value:{show:!0,bold:!1}}},legend:{...V,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"},title:E,tooltip:{...I,roundingValue:1}}},table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},ie={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useBlurOnHover:!0,useCustomCells:!1,useAnimation:!0,style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,layout:{labels:{dataLabels:{...B,prefix:"",suffix:"",formatter:null},captions:{show:!1,showSerieName:!1,serieNameAbbreviation:!0,serieNameMaxAbbreviationSize:3,fontSize:i._12,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,offsetX:0,offsetY:0}},grid:{size:10,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:t,strokeWidth:1,useGradient:!0,gradientIntensity:40}},title:E,tooltip:{...I,...B,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{...V,...B,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},ge={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,layout:{plots:{show:!0,radius:2},outerPolygon:{stroke:r,strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,stroke:o,strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:i._12,color:l}}},title:E,tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,animation:{show:!0,animationFrames:60}},legend:{...V,roundingPercentage:0,position:"bottom"}}},table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0,roundingPercentage:0}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{target:"Target",value:"Value",datapoint:"Datapoint"}},je={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,zoomAnimationFrames:20,zoomEnabled:!0,downsample:z,style:{fontFamily:"inherit",chart:{height:512,width:512,backgroundColor:d,color:l,layout:{labels:{quadrantLabels:{show:!0,tl:{text:"",color:l,fontSize:i._16,bold:!0},tr:{text:"",color:l,fontSize:i._16,bold:!0},br:{text:"",color:l,fontSize:i._16,bold:!0},bl:{text:"",color:l,fontSize:i._16,bold:!0}},plotLabels:{showAsTag:!1,show:!0,fontSize:i._10,color:l,offsetY:8,rounding:0,x:{formatter:null},y:{formatter:null}},axisLabels:{show:!0,fontSize:i._14,color:{positive:l,negative:l}}},grid:{stroke:o,strokeWidth:1.5,showArrows:!0,graduations:{stroke:o,strokeWidth:.5,show:!0,steps:5,fill:!0,color:o,roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:"",show:!0},yAxis:{min:-100,max:100,auto:!0,name:"",show:!0}},plots:{radius:6,outline:!0,outlineColor:s,outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:E,tooltip:{...I,roundingValue:0,showShape:!0},legend:{...V,position:"bottom"}}},table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{category:"Category",item:"Item",side:"Side"}},Ge={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:"",customPalette:[],style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,animation:{use:!0,speed:1,acceleration:1},layout:{radiusRatio:1,track:{size:1,useGradient:!0,gradientIntensity:20},markers:{show:!0,color:l,bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0,formatter:null,prefix:"",suffix:""},segmentSeparators:{show:!1,offsetOut:0,offsetIn:0,stroke:t,strokeWidth:2},segmentNames:{show:!0,curved:!0,offsetRatio:1.1,fontSize:i._16,minFontSize:C,useSerieColor:!0,color:l,bold:!1},indicatorArc:{show:!1,radius:123,fill:o},pointer:{show:!0,type:"pointy",size:1,stroke:s,strokeWidth:12,useRatingColor:!0,color:r,circle:{radius:10,stroke:t,strokeWidth:2,color:s}}},legend:{show:!0,fontSize:i._48,prefix:"",suffix:"",roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:l,formatter:null},title:E}},userOptions:$({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{base:"Base"}},Oe={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:"",layout:"classic",style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,animation:{use:!0,speed:.5,acceleration:1},layout:{wheel:{radiusRatio:1,tiltAngle3d:50,ticks:{type:"classic",rounded:!0,inactiveColor:o,activeColor:u,sizeRatio:.9,quantity:100,strokeWidth:5,stroke:"transparent",spacingRatio3d:1,shadeColorRatio3d:.15,depth3d:0,gradient:{show:!0,shiftHueIntensity:100}}},innerCircle:{show:!0,stroke:o,strokeWidth:1,radiusRatio:1},percentage:{show:!0,fontSize:i._48,rounding:1,bold:!0,formatter:null,offsetX:0,offsetY:0,stroke:"transparent",strokeWidth:0}},title:E}},userOptions:$({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},Xe={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:"",style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,width:312,height:56,animation:{use:!0,speed:.5,acceleration:1},layout:{display:"horizontal",crescendo:!1,curved:!1,curveAngleX:10,curveAngleY:10,activeColor:u,inactiveColor:o,ticks:{gradient:{show:!0,shiftHueIntensity:100}}},percentage:{show:!0,useGradientColor:!0,color:u,fontSize:i._16,bold:!0,rounding:1,verticalPosition:m.BOTTOM,horizontalPosition:m.LEFT,formatter:null},title:E}},userOptions:$({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},rt={debug:!1,loading:!1,theme:"",customPalette:[],a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,layout:{grandTotal:{show:!0,fontSize:i._20,bold:!0,prefix:"",suffix:"",roundingValue:0,color:l,text:"Grand total",offsetY:0,formatter:null},roots:{stroke:s,strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:s,labels:{show:!0,fontSize:i._16,adaptColorToBackground:!0,color:s,bold:!0,roundingValue:0,prefix:"",suffix:"",formatter:null,name:{color:l,fontSize:i._16,bold:!0}}},verticalSeparator:{stroke:s,strokeWidth:5},links:{opacity:10},branches:{stroke:s,strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:s,widthRatio:1.5,labels:{show:!0,fontSize:i._14,color:l,bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:i._14,roundingValue:0,roundingPercentage:0,prefix:"",suffix:"",formatter:null}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:l,fontSize:i._12,bold:!0,prefix:"",suffix:"",formatter:null},core:{total:{color:l,fontSize:i._24,bold:!1},value:{color:l,fontSize:i._24,bold:!0,prefix:"",suffix:""}}}}},legend:{fontSize:i._16,color:l,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},title:{...E,offsetY:0,subtitle:{...E.subtitle,offsetY:0}}}}},table:{...O,useDialog:!1,th:{...M,translations:{rootName:"root name",rootValue:"root value",rootToTotal:"%/total",branchName:"branch name",branchValue:"branch value",branchToRoot:"%/root",branchToTotal:"%/total",nutName:"nut name",nutValue:"nut value",nutToBranch:"%/branch",nutToRoot:"%/root",nutToTotal:"%/total"}},td:{...T,roundingValue:0,roundingPercentage:0}},userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:"Total",proportionToTree:"of grand total",of:"of"}},Te={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,useStartAnimation:!0,useBlurOnHover:!0,style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,useGradient:!0,gradientIntensity:20,layout:{maxThickness:64,gutter:{color:o,width:.62},track:{width:.62},labels:{...B,show:!0,fontSize:i._14,minFontSize:C,color:l,roundingValue:0,roundingPercentage:0,bold:!0,offsetX:0,offsetY:0,value:{show:!0,formatter:null},percentage:{show:!0}}},title:E,legend:{...V,...B,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"},tooltip:{...I,...B,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0,roundingPercentage:0},translations:{value:"Value",percentage:"Percentage",serie:"Serie"}}},Ie={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,autoSize:!0,responsive:!1,theme:"",customPalette:[],useCssAnimation:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,width:512,height:316,layout:{bars:{rowColor:null,rowRadius:4,sort:_.DESC,useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:12,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:s,dataLabels:{color:l,bold:!0,fontSize:i._14,value:{show:!0,roundingValue:0,prefix:"",suffix:"",formatter:null},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:l,bold:!1,fontSize:i._14,offsetX:0},parentLabels:{show:!0,color:l,bold:!1,fontSize:i._14,offsetX:0,paddingBottom:0}},highlighter:{color:t,opacity:5},separators:{show:!1,color:o,strokeWidth:1,fullWidth:!0}},title:E,legend:{...V,position:m.TOP,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""},tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,sort:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0,roundingPercentage:0,prefix:"",suffix:""}},translations:{parentName:"Serie",childName:"Child",value:"value",percentageToTotal:"%/total",percentageToSerie:"%/serie"}},nt=Ie,st={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",style:{fontFamily:"inherit",backgroundColor:d,color:l,layout:{height:300,width:1e3,padding:W([0,0,0,0]),crosshairs:{show:!1,stroke:t,strokeWidth:1,strokeDasharray:0},cells:{rowTotal:{value:{show:!1},color:{show:!1}},columnTotal:{value:{show:!1,rotation:0,autoRotate:{enable:!0,angle:-30},offsetX:0,offsetY:0},color:{show:!1}},value:{show:!1,fontSize:i._18,bold:!1,roundingValue:0,color:l,formatter:null},colors:{hot:c,cold:u,underlayer:s},spacing:2,selected:{border:4,color:t}},dataLabels:{prefix:"",suffix:"",xAxis:{show:!0,values:[],datetimeFormatter:G,showOnlyAtModulo:null,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:i._10,color:l,bold:!1,offsetX:0,offsetY:0},yAxis:{show:!0,values:[],datetimeFormatter:G,fontSize:i._10,color:l,bold:!1,offsetX:0,offsetY:0}}},title:E,legend:{...V,fontSize:i._12,roundingValue:0,width:24},tooltip:{...I,roundingValue:0}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,colNames:{xAxis:"X"},th:M,td:{...T,roundingValue:0}}},it={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,downsample:z,usePerformanceMode:!1,style:{fontFamily:"inherit",backgroundColor:d,color:l,layout:{height:316,width:512,padding:W([0,0,0,0]),axis:{show:!0,stroke:o,strokeWidth:1,xMin:null,xMax:null,yMin:null,yMax:null},marginalBars:{show:!1,size:40,tranches:20,opacity:.6,fill:t,strokeWidth:1,offset:20,borderRadius:2,useGradient:!0,showLines:!1,linesStrokeWidth:1,highlighter:{show:!0,opacity:.1,color:t,stroke:t,strokeWidth:.5,strokeDasharray:2,highlightBothAxes:!1}},plots:{radius:2,hoverRadiusRatio:2,stroke:s,strokeWidth:.3,opacity:.6,opacityNotSelected:.6,name:{show:!1,fontSize:12,offsetY:0,color:t},significance:{show:!0,useDistanceOpacity:!1,deviationThreshold:10,opacity:.3},deviation:{translation:"deviation",roundingValue:1},giftWrap:{show:!1,strokeWidth:1,strokeDasharray:0,fillOpacity:.2},selectors:{show:!0,stroke:t,strokeWidth:.7,strokeDasharray:0,labels:{fontSize:i._12,color:l,rounding:2,bold:!1,showName:!0,prefix:"",suffix:"",x:{formatter:null},y:{formatter:null}},markers:{radius:1.5,stroke:s,strokeWidth:.5,fill:t}}},correlation:{show:!0,strokeDasharray:2,strokeWidth:1,label:{show:!0,fontSize:i._12,color:l,bold:!0,roundingValue:2,useSerieColor:!0}},dataLabels:{reverseAxisLabels:!1,xAxis:{name:"",show:!0,fontSize:i._10,color:l,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:t,fontSize:12,offsetY:0},verticalLines:{show:!1,stroke:n,strokeWidth:1}}},yAxis:{name:"",show:!0,fontSize:i._10,color:l,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:t,fontSize:12,offsetX:0},horizontalLines:{show:!1,stroke:n,strokeWidth:1}}}}},title:E,legend:{...V,roundingValue:0,position:"bottom"},tooltip:{...I,roundingValue:2,showShape:!0,prefix:"",suffix:""}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:2,roundingAverage:1},translations:{correlationCoefficient:"Correlation Coef.",nbrPlots:"Nbr plots",average:"Average",series:"Series"}}},q={skeletonDataset:null,skeletonConfig:null,type:"candlestick",debug:!1,loading:!1,responsive:!1,responsiveProportionalSizing:!0,a11y:k,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",useCssAnimation:!1,style:{fontFamily:"inherit",backgroundColor:d,color:l,height:316,width:512,layout:{padding:W([0,0,0,0]),selector:{color:o,opacity:10},grid:{show:!0,stroke:o,strokeWidth:.5,verticalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:o},horizontalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:o},xAxis:{ticks:{show:!0},dataLabels:{show:!0,fontSize:i._10,color:l,offsetY:0,bold:!1,rotation:0,autoRotate:{enable:!0,angle:-30},datetimeFormatter:G,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:12}},yAxis:{position:"left",scale:{min:null,max:null},dataLabels:{show:!0,fontSize:i._12,color:l,roundingValue:0,offsetX:0,bold:!1,steps:10,prefix:"",suffix:""}}},wick:{stroke:t,strokeWidth:.5,extremity:{shape:S.LINE,size:"auto",color:t}},candle:{borderRadius:1,stroke:t,strokeWidth:.5,colors:{bearish:c,bullish:h},gradient:{show:!0,underlayer:s},widthRatio:.5}},zoom:{...ne,minimap:te,preview:{enable:!0,fill:"#CCCCCC50",stroke:"#6A6A6A",strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},title:E,tooltip:{...I,roundingValue:0,prefix:"",suffix:"",showChart:!0,useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"}},translations:{period:"Period",open:"Open",high:"High",low:"Low",last:"Close",volume:"Volume"},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,th:M,useDialog:!1,td:{...T,roundingValue:2,prefix:"",suffix:""}}},We={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:"",responsive:!1,type:S.LINE,downsample:z,a11y:k,translations:{period:"period",value:"value"},gradientPath:{show:!1,segments:256,colors:{high:"#34eb96",low:"#eb4034"}},temperatureColors:{show:!1,colors:["#34eb96","#eb4034"]},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chartWidth:290,animation:{show:!0,animationFrames:360},padding:W([12,12,3,0]),fontFamily:"inherit",backgroundColor:d,scaleMin:null,scaleMax:null,line:{color:u,strokeWidth:3,smooth:!1,dashIndices:[],dashArray:4,pulse:{show:!1,loop:!0,color:s,durationMs:4e3,easing:"ease-in-out",radius:2,cubicBezier:[.45,.45,.55,.55],trail:{show:!1,length:6,opacity:.75}}},bar:{borderRadius:3,color:u},zeroLine:{color:t,strokeWidth:1},plot:{show:!0,radius:4,stroke:s,strokeWidth:1},verticalIndicator:{show:!0,strokeWidth:1.5,color:u,strokeDasharray:3},dataLabel:{show:!0,position:m.LEFT,offsetX:0,offsetY:0,fontSize:i._20,bold:!0,color:l,roundingValue:0,valueType:"latest",prefix:"",suffix:"",formatter:null,datetimeFormatter:G},title:{show:!0,textAlign:m.LEFT,color:l,fontSize:i._16,bold:!0,text:""},tooltip:{show:!1,fontSize:i._14,color:l,backgroundColor:d,offsetY:0,borderWidth:0,borderColor:P,borderRadius:2,backgroundOpacity:100},area:{show:!0,useGradient:!0,opacity:30,color:u}}},ee={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],style:{fontFamily:"inherit",backgroundColor:d,animation:{show:!0,animationFrames:60},layout:{independant:!0,percentage:!0,target:0,showTargetValue:!1,targetValueText:""},gutter:{backgroundColor:o,opacity:100},bar:{gradient:{show:!0,intensity:40,underlayerColor:s}},labels:{fontSize:i._16,name:{position:"top-left",width:"100%",color:l,bold:!1},value:{show:!0,bold:!0}},title:{text:"",color:l,fontSize:i._16,bold:!0,textAlign:m.LEFT,margin:"0 0 6px 0",subtitle:{color:w,text:"",fontSize:i._12,bold:!1}},gap:4}},qe={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,useCursorPointer:!1,a11y:{...k,translations:{...k.translations,series:"Series",percentage:"Percentage",value:"Value"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],style:{fontFamily:"inherit",backgroundColor:d,animation:{show:!0,animationFrames:60},bar:{gradient:{show:!0,intensity:40,underlayerColor:s}},legend:{show:!0,textAlign:m.LEFT,fontSize:i._12,margin:"6px 0 0 0",name:{color:l,bold:!1},value:{show:!0,bold:!1,color:l,prefix:"",suffix:"",rounding:0,formatter:null},percentage:{show:!0,bold:!0,color:l,rounding:1},selectAllToggle:{show:!1,backgroundColor:P,color:l}},title:{...E,textAlign:m.LEFT,margin:"0 0 6px 0"},tooltip:{...I}}},xt={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,series:"Series",time:"Time",value:"Value",label:"Label"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",style:{fontFamily:"inherit",backgroundColor:d,animation:{show:!0,speedMs:500},layout:{height:96,width:640,padding:W([24,0,36,0])},bars:{shape:S.SQUARE,strokeWidth:0,colors:{positive:u,negative:c,gradient:{show:!0}},borderRadius:24,gap:12},labels:{value:{show:!0,fontSize:i._14,minFontSize:C,color:l,bold:!0,rounding:1,prefix:"",suffix:"",offsetY:0,formatter:null},valueLabel:{show:!0,fontSize:i._14,minFontSize:C,color:l,bold:!1,rounding:0},timeLabel:{show:!0,fontSize:i._12,minFontSize:C,color:l,bold:!1}},selector:{stroke:u,fill:"#2D353C10",strokeWidth:2,strokeDasharray:0,borderRadius:2},title:{text:"",color:l,fontSize:i._16,bold:!0,textAlign:m.LEFT,subtitle:{color:w,text:"",fontSize:i._12,bold:!1},margin:"0 0 6px 0"}}},$e={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:"",style:{fontFamily:"inherit",background:s,height:84,basePosition:72,animation:{show:!0,speedMs:150},title:{show:!0,fontSize:i._12,position:m.TOP,textAlign:m.CENTER,bold:!1,color:l},dataLabel:{fontSize:i._20,autoColor:!0,color:l,offsetY:0,bold:!0,rounding:0,prefix:"",suffix:"",formatter:null},colors:{min:c,max:h,showGradient:!0},track:{autoColor:!0,color:u,strokeLinecap:S.ROUND},gutter:{color:o,strokeLinecap:S.ROUND}}},ut={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:"",downsample:z,style:{fontFamily:"inherit",backgroundColor:d,height:80,width:300,animation:{show:!0,animationFrames:20},line:{stroke:t,strokeWidth:2,strokeLinecap:S.ROUND,strokeLinejoin:S.ROUND,smooth:!0,useColorTrend:!0},area:{show:!0,useGradient:!0,opacity:20},dataLabel:{show:!0,useColorTrend:!0,color:l,fontSize:i._14,bold:!1,prefix:"",suffix:"",rounding:0,formatter:null},trendLabel:{trendType:"global",useColorTrend:!0,color:l,fontSize:i._14,bold:!0,rounding:0},arrow:{colors:{positive:h,neutral:a,negative:c}},padding:W([12,12,12,82])}},Le={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,a11y:k,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsive:!1,theme:"",axisLabelsFontSize:i._12,backgroundColor:d,barGap:12,barAnimated:!0,barStrokeWidth:1,blurOnHover:!0,chartIsBarUnderDatasetLength:6,color:l,customPalette:[],dataLabelFontSize:i._14,dataLabelRoundingPercentage:1,dataLabelRoundingValue:0,donutHideLabelUnderPercentage:3,donutCurvedMarkers:!0,donutLabelMarkerStrokeWidth:1,donutRadiusRatio:.4,donutShowTotal:!0,donutStrokeWidth:2,donutStroke:d,donutThicknessRatio:.18,donutTotalLabelFontSize:i._24,donutTotalLabelOffsetY:0,donutTotalLabelText:"Total",donutUseShadow:!1,donutShadowColor:t,fontFamily:"inherit",formatter:null,height:338,legendFontSize:i._12,legendIcon:"circleFill",legendIconSize:i._12,legendPosition:"bottom",showLegendSelectAllToggle:!1,legendSelectAllToggleBackgroundColor:P,legendSelectAllToggleColor:l,lineAnimated:!0,lineSmooth:!0,lineStrokeWidth:2,paletteStartIndex:0,showDataLabels:!0,showLegend:!0,showTooltip:!0,showUserOptions:!0,userOptionsPosition:"right",showUserOptionsOnChartHover:!1,keepUserOptionsStateOnChartLeave:!0,useCursorPointer:!1,userOptionsButtons:{tooltip:!0,pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0,altCopy:!1},userOptionsButtonTitles:{open:"Open options",close:"Close options",tooltip:"Toggle tooltip",pdf:"Download PDF",img:"Download PNG",fullscreen:"Toggle fullscreen",annotator:"Toggle annotator",svg:"Download SVG",altCopy:"Copy alt text"},userOptionsPrint:{overflowTolerance:.2,orientation:"auto",scale:2},userOptionsCallbacks:{tooltip:null,pdf:null,img:null,fullscreen:null,annotator:null,svg:null,altCopy:null},title:"",titleBold:!0,titleFontSize:i._16,titleTextAlign:"center",tooltipTeleportTo:"body",tooltipCustomFormat:null,tooltipBackgroundOpacity:100,tooltipBorderRadius:4,tooltipBorderColor:n,tooltipBorderWidth:1,tooltipFontSize:i._14,tooltipPosition:m.CENTER,tooltipOffsetX:0,tooltipOffsetY:24,tooltipSmooth:!0,tooltipSmoothForce:.18,tooltipSmoothSnapThreshold:.25,tooltipBackdropFilter:!0,useCustomLegend:!1,valuePrefix:"",valueSuffix:"",width:512,xAxisLabel:"",xyAxisStroke:o,xyAxisStrokeWidth:1,xyGridStroke:o,xyGridStrokeWidth:.5,xyHighlighterColor:t,xyHighlighterOpacity:.05,xyLabelsXFontSize:i._10,xyLabelsYFontSize:i._12,xyPaddingBottom:12,xyPaddingLeft:12,xyPaddingRight:12,xyPaddingTop:12,xyPeriodLabelsRotation:0,xyPeriodLabelsAutoRotate:{enable:!0,angle:-30},xyPeriods:[],datetimeFormatter:G,xyPeriodsShowOnlyAtModulo:!1,xyPeriodsModulo:12,xyScaleSegments:15,xyShowAxis:!0,xyShowGrid:!0,xyShowScale:!0,yAxisLabel:"",zoomXy:!0,zoomColor:r,zoomHighlightColor:g,zoomFontSize:i._14,zoomUseResetSlot:!1,zoomMinimap:oe,zoomStartIndex:null,zoomEndIndex:null,zoomEnableRangeHandles:!0,zoomEnableSelectionDrag:!0,zoomFocusOnDrag:!1,zoomFocusRangeRatio:.2,zoomMaxWidth:null},Ke={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",style:{fontFamily:"inherit",backgroundColor:d,color:l,height:500,width:500,layout:{padding:W([12,12,36,12]),grid:{show:!0,stroke:o,strokeWidth:1},dataLabels:{sideTitles:{show:!0,fontSize:i._18,color:l,useSideColor:!0,bold:!1,offsetY:0},xAxis:{show:!0,fontSize:i._12,color:l,bold:!1,scale:1e3,translation:"in thousands",formatter:null,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxis:{show:!0,display:"age",fontSize:i._12,color:l,bold:!1,showEvery:5,formatter:null}},centerSlit:{width:20},bars:{gap:2,borderRadius:2,left:{color:c},right:{color:u},gradient:{show:!0,underlayer:s,intensity:60,shiftHue:.05}}},highlighter:{color:t,opacity:5},title:E,tooltip:{...I,roundingValue:0}},translations:{age:"age",male:"male",female:"female",total:"total",year:"year"},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:T}},Ee={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:"",customPalette:[],style:{fontFamily:"inherit",backgroundColor:d,color:l,size:400,limit:50,animation:{show:!0,speedMs:300},labels:{color:l,fontSize:i._14,minFontSize:C},weightLabels:{size:8,show:!0,formatter:null,prefix:"",suffix:"",rounding:0},links:{curved:!1,maxWidth:3},circle:{radiusProportion:.2,stroke:r,strokeWidth:1,offsetY:0},plot:{radius:3,useSerieColor:!0,color:t},title:E},userOptions:$({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},Me={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:"",customPalette:[],style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:360,width:256,thermometer:{width:48},padding:{top:12,bottom:12},graduations:{show:!0,sides:"both",height:2,stroke:o,strokeWidth:1,showIntermediate:!0,gradient:{show:!0,intensity:20}},animation:{use:!0,speedMs:1e3},label:{show:!0,fontSize:i._20,minFontSize:C,rounding:1,bold:!0,color:l,prefix:"",suffix:"",formatter:null}},title:E},userOptions:$({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},dt={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,size:360,layout:{labels:{dataLabels:{...B,prefix:"",suffix:"",formatter:null,show:!1,offsetX:0,fontSize:10,color:l,bold:!1,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,markers:{stroke:"#8A8A8A",strokeWidth:1,radius:3,position:"right"}}},rings:{strokeWidth:2,stroke:o,gradient:{show:!0,intensity:40,underlayerColor:s},useShadow:!0}},legend:{...V,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"},title:E,tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,labels:!0}),table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},U={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:"",a11y:k,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,zoom:ne,donuts:{hover:{hideLabelsUnderValue:5}},dialog:{show:!0,backgroundColor:d,color:l,header:{backgroundColor:d,color:l},donutChart:{...j,responsive:!0,userOptions:{...j.userOptions,buttons:{...j.userOptions.buttons,pdf:!1}},style:{...j.style,chart:{...j.style.chart,layout:{...j.style.chart.layout,donut:{...j.style.chart.layout.donut,strokeWidth:64},labels:{...j.style.chart.layout.labels,percentage:{...j.style.chart.layout.labels.percentage,fontSize:16},name:{...j.style.chart.layout.labels.name,fontSize:12},hollow:{...j.style.chart.layout.labels.hollow,average:{...j.style.chart.layout.labels.hollow.average,show:!1}}}}}}}},layout:{height:316,width:512,padding:W([5,10,5,10]),grid:{show:!0,stroke:o,strokeWidth:.7,showVerticalLines:!0,axis:{yLabel:"",yLabelOffsetX:0,xLabel:"",xLabelOffsetY:0,fontSize:i._14,color:l},yAxis:{position:"left",scaleMin:null,scaleMax:null,autoScale:!1,dataLabels:{show:!0,fontSize:i._10,color:l,roundingValue:0,offsetX:0,bold:!1,steps:10}},xAxis:{dataLabels:{show:!0,values:[],datetimeFormatter:G,fontSize:i._10,showOnlyFirstAndLast:!1,color:l,rotation:0,autoRotate:{enable:!0,angle:-30},offsetY:0}}},line:{show:!0,stroke:r,strokeWidth:4},highlighter:{color:t,opacity:5},dataLabels:{show:!0,fontSize:i._10,color:l,bold:!1,rounding:0,prefix:"",suffix:"",offsetY:0,formatter:null}},title:E,legend:{...V,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"}}},userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,columnNames:{period:"Period",total:"Total"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},ct={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,layout:{grid:{show:!0,stroke:o,strokeWidth:.5},outerPolygon:{stroke:o,strokeWidth:1},dataPolygon:{color:u,opacity:60,gradient:{show:!0,intensity:1},stroke:u,strokeWidth:0},smileys:{strokeWidth:1,colors:{1:"#e20001",2:"#ff9f03",3:"#ffd004",4:"#9ac900",5:"#059f00"}},dataLabel:{color:l,roundingValue:0,roundingPercentage:0,bold:!0,prefix:"",suffix:"",formatter:null}},title:E,legend:{...V,roundingValue:0,roundingPercentage:0,position:"bottom"}}},userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},At={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,nodes:{stroke:s,strokeHovered:t},links:{stroke:r,strokeWidth:2,useChildColor:!1},title:E,tooltip:I,zoom:{show:!0,speed:1}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),table:{...O,useDialog:!1,th:M,td:T,translations:{nodeName:"Node name",details:"Details",ancestor:"Parent node"}}},X={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:"",customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,useGradient:!0,gradientIntensity:40,padding:W([0,0,0,0]),width:512,height:512,layout:{labels:{dataLabels:{...B,show:!0,prefix:"",suffix:"",hideUnderValue:3,fontSize:i._14,offsetX:4,offsetY:12,useSerieColor:!1,color:l,showValue:!0,showPercentage:!0,boldValue:!1,boldPercentage:!0,roundingValue:0,roundingPercentage:0,showDonutName:!0,boldDonutName:!0,curvedDonutName:!0,donutNameAbbreviation:!1,donutNameMaxAbbreviationSize:3,donutNameOffsetY:0,formatter:null}},donut:{strokeWidth:200,borderWidth:2,spacingRatio:.5,useShadow:!1,shadowColor:t,emptyFill:o,selectedColor:"#0000001A",borderColorAuto:!0,borderColor:P}},legend:{...V,...B,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"},title:E,tooltip:{...I,...B,showAllItemsAtIndex:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},_e={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,layout:{arcs:{strokeWidth:24,borderWidth:12,offsetX:0,offsetY:0,hoverEffect:{show:!0,multiplicator:1.1},gradient:{show:!0,intensity:30,color:s}},labels:{dataLabels:{...B,prefix:"",suffix:"",formatter:null}}},legend:{...V,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:"bottom"},title:E,tooltip:{...I,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},Ze={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:"",customPalette:[],useCssAnimation:!0,userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:600,width:600,padding:W([12,12,12,12]),grid:{show:!0,stroke:r,strokeWidth:1,scaleSteps:10,horizontalGrid:{show:!0,stroke:r,strokeWidth:.5,strokeDasharray:4},verticalGrid:{show:!0,stroke:r,strokeWidth:.5,strokeDasharray:4}},plots:{opacity:.5,radius:20,stroke:s,strokeWidth:1,shape:S.CIRCLE,gradient:{show:!0,intensity:40}},labels:{prefix:"",suffix:"",formatter:null,bestPlotLabel:{show:!0,showValue:!0,fontSize:i._14,color:l,rounding:0,offsetY:0},axis:{xLabel:"",xLabelOffsetY:0,yLabel:"",yLabelOffsetX:0,fontSize:i._14,color:l},xAxisLabels:{show:!0,color:l,fontSize:i._14,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxisLabels:{show:!0,color:l,fontSize:i._14,rounding:0,offsetX:0}},title:E,tooltip:{...I,roundingValue:0}}},table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value"},th:M,td:{...T,roundingValue:0}}},_t={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",useAnimation:!1,animationSpeed:2,userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,width:600,rowHeight:48,padding:W([12,24,12,12]),plots:{startColor:c,endColor:u,evaluationColors:{enable:!1,positive:"#2ca02c",negative:"#d62728",neutral:"#c7c7c7"},radius:6,stroke:s,strokeWidth:1,link:{strokeWidth:2,type:S.CURVED},gradient:{show:!0,intensity:40}},grid:{strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:r,strokeWidth:.5,strokeDasharray:0},verticalGrid:{show:!0,stroke:r,strokeWidth:.5,strokeDasharray:0}},comparisonLines:{show:!0,strokeWidth:1,strokeDasharray:4,showRect:!0,rectColor:t,rectOpacity:5,showLabel:!0,labelColor:t,labelFontSize:i._12},highlighter:{color:t,opacity:5},labels:{prefix:"",suffix:"",formatter:null,axis:{yLabel:"",yLabelOffsetX:0,xLabel:"",xLabelOffsetY:0,fontSize:i._14,color:l},yAxisLabels:{show:!0,fontSize:i._14,color:l,offsetX:0,bold:!0,showProgression:!0,rounding:1,formatter:null},xAxisLabels:{show:!0,fontSize:i._14,color:l,offsetY:0,bold:!1,rounding:0,rotation:0,autoRotate:{enable:!0,angle:-30}},startLabels:{show:!0,fontSize:i._10,color:l,offsetY:0,rounding:0,useStartColor:!0,useEvaluationColor:!0},endLabels:{show:!0,fontSize:i._10,color:l,offsetY:0,rounding:0,useEndColor:!0,useEvaluationColor:!0}},legend:{...V,labelStart:"start",labelEnd:"end",labelPositive:"positive",labelNegative:"negative",labelNeutral:"neutral",position:"bottom"},title:E}},table:{...O,useDialog:!1,columnNames:{series:"Series",start:"Start value",end:"End value",progression:"Progression"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},xe={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,style:{fontFamily:"inherit",shape:S.BAR,chart:{animation:{use:!0,speed:1,acceleration:1},backgroundColor:d,color:l,bar:{color:u,stroke:u,strokeWidth:.7,shadeColor:t},box:{stroke:r,strokeWidth:.7,strokeDasharray:2,dimensions:{width:128,height:256,top:27,bottom:9,left:24,right:24,perspective:18}},title:E,legend:{showDefault:!0,fontSize:i._10,color:l,bold:!1,roundingValue:0,roundingPercentage:0,prefix:"",suffix:"",hideUnderPercentage:3},dataLabel:{show:!0,bold:!0,color:u,fontSize:i._12,rounding:1,formatter:null}}},userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...O,useDialog:!1,columnNames:{series:"Series",value:"Value",percentage:"Percentage"},th:M,td:{...T,roundingValue:0,roundingPercentage:0}}},ft={theme:"",customPalette:[],responsiveBreakpoint:500,showAverage:!0,showMedian:!0,showTotal:!0,roundingAverage:0,roundingMedian:0,roundingValues:0,roundingTotal:0,prefix:"",suffix:"",formatter:null,showSparklines:!0,fontFamily:"inherit",colNames:[],sortedDataColumnIndices:[],sortedSeriesName:!1,sortedSum:!1,sortedAverage:!1,sortedMedian:!1,resetSortOnClickOutside:!1,sparkline:{useGradient:!0,showArea:!0,strokeWidth:3,type:S.LINE,smooth:!0,dimensions:{width:150,heightRatio:1},animation:{show:!0,animationFrames:360}},translations:{serie:"Serie",total:"Total",average:"Average",median:"Median",chart:"Evolution"},title:{text:"",color:l,fontSize:i._20,bold:!0,textAlign:"center",backgroundColor:d,subtitle:{color:w,text:"",fontSize:i._16,bold:!1}},thead:{backgroundColor:d,color:l,fontSize:i._14,outline:"none",textAlign:m.LEFT,bold:!1},tbody:{showColorMarker:!0,backgroundColor:d,color:l,fontSize:i._14,outline:"none",textAlign:m.LEFT,bold:!1,selectedColor:{useSerieColor:!0,fallback:o}},userOptions:$({pdf:!0,csv:!0,img:!0,fullscreen:!0})},de={theme:"",style:{fontFamily:"inherit",backgroundColor:d,color:l,shapeSize:i._14,heatmapColors:{useIndividualScale:!1,min:s,max:u}},table:{responsiveBreakpoint:400,borderWidth:1,showSum:!1,showAverage:!1,showMedian:!1,head:{backgroundColor:d,color:l,values:[]}},userOptions:$({pdf:!0,csv:!0,img:!0,fullscreen:!0})},St={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,animationDelayMs:20,strictPixelPadding:!0,userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:512,width:512,zoom:{show:!0},controls:{position:"bottom",show:!0,backgroundColor:o,buttonColor:o,color:l,fontSize:14,border:`1px solid ${P}`,padding:"0.5rem",borderRadius:"0.25rem"},words:{maxFontSize:100,minFontSize:i._10,bold:!1,proximity:10,packingWeight:1,color:l,usePalette:!0,hoverOpacity:.5,selectedStroke:"transparent"},title:E,tooltip:{...I,roundingValue:0}}},table:{...O,useDialog:!1,columnNames:{series:"Word",value:"Value"},th:M,td:{...T,roundingValue:0,prefix:"",suffix:""}}},Be={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:"",customPalette:[],a11y:k,downsample:{threshold:1e4},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0}),style:{fontFamily:"Arial",chart:{backgroundColor:d,color:l,aspectRatio:"12 / 9",stacked:!1,stackGap:20,scale:{ticks:10,min:null,max:null},zoom:{...ne,minimap:oe,preview:{enable:!1,fill:"#CCCCCC50",stroke:"#6A6A6A",strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss",customFormat:null},selector:{show:!0,color:t,dashed:!0,showHorizontalSelector:!1},tooltip:{...I,showTimeLabel:!0,useDefaultTimeFormat:!0,timeFormat:"yyyy-MM-dd HH:mm:ss"},legend:{...V,position:"bottom"},title:E,grid:{y:{showAxis:!0,axisColor:t,axisThickness:2,axisName:"",axisLabels:{show:!0,fontSizeRatio:1,color:l,offsetX:0,rounding:1,prefix:"",suffix:"",bold:!1},verticalLines:{show:!0,color:r,hideUnderXLength:20,position:"middle"}},x:{showAxis:!0,axisColor:t,axisThickness:2,axisName:"",horizontalLines:{show:!0,color:r,alternate:!0,opacity:20},timeLabels:{show:!0,showMarker:!0,fontSizeRatio:.8,values:[],datetimeFormatter:G,rotation:0,offsetY:30,color:l,modulo:12,bold:!1}},zeroLine:{show:!0,color:t,dashed:!0}},line:{cutNullValues:!0,plots:{show:!0,radiusRatio:1}},bar:{gradient:{show:!0}},area:{opacity:60},dataLabels:{show:!0,fontSizeRatio:1,useSerieColor:!0,color:l,offsetY:-12,formatter:null,bold:!0},paddingProportions:{top:.1,right:.05,bottom:.1,left:.1}}},table:{...O,useDialog:!1,rounding:1,columnNames:{period:"Period",total:"Total"},th:M,td:T}},Qe={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],userOptions:$({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,tooltip:!0,svg:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:"inherit",chart:{backgroundColor:d,width:1e3,height:600,color:l,padding:W([12,12,12,12]),title:E,tooltip:{...I,showPercentage:!0,roundingPercentage:0,translations:{from:"From:",to:"To:",percentOfTotal:"Percent of total:"}},legend:{...V,position:"bottom"},nodes:{gap:10,width:40,labels:{show:!0,showValue:!0,fontSize:i._14,abbreviation:{use:!0,length:3},prefix:"",suffix:"",rounding:0,formatter:null},stroke:s,strokeWidth:1,borderRadius:0},links:{opacity:.8,stroke:s,strokeWidth:1,smooth:!0}}},table:{...O,useDialog:!1,columnNames:{source:"Source",target:"Target",value:"Value"},th:M,td:T}},Je={skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:"",useCssAnimation:!1,customPalette:[],userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:600,width:1e3,padding:W([0,0,0,0]),comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},lines:{smooth:!0,strokeWidth:2,opacity:.8},plots:{show:!0,radius:6,opacity:.8},yAxis:{scaleTicks:10,stroke:t,strokeWidth:1,labels:{showAxisNames:!0,axisNames:[],axisNamesRotation:0,axisNamesAutoRotate:{enable:!0,angle:-30},axisNamesColor:l,axisNamesFontSize:i._16,axisNamesBold:!0,roundings:[],prefixes:[],suffixes:[],formatters:[],ticks:{show:!0,fontSize:i._14,color:l,bold:!1,offsetX:0,offsetY:0},datapoints:{show:!0,fontSize:i._14,useSerieColor:!0,color:l,offsetX:0,offsetY:0,bold:!0}}},title:E,legend:{...V,position:"bottom"},tooltip:I}},table:{...O,useDialog:!1,columnNames:{series:"Series",item:"Item"},th:M,td:T}},Ft={type:"stopwatch",responsive:!1,responsiveProportionalSizing:!0,useCursorPointer:!1,style:{fontFamily:"inherit",backgroundColor:d,height:300,width:300,title:E},stopwatch:{showHours:!1,showHundredth:!0,cycleSeconds:5,track:{radiusRatio:1,stroke:o,fill:s,strokeWidth:2},tracker:{radiusRatio:1,stroke:s,strokeWidth:1,fill:t,gradient:{show:!0,color:s},aura:{show:!0,radiusRatio:1,fill:t,stroke:s,strokeWidth:0}},cycleTrack:{show:!0,stroke:t,strokeWidth:3},label:{fontSize:i._24,color:l,bold:!1},legend:{backgroundColor:d,buttons:{start:!0,pause:!0,reset:!0,restart:!0,lap:!0,iconColor:t},buttonTitles:{start:"Start",pause:"Pause",resume:"Resume",reset:"Reset",restart:"Restart",lap:"Lap"}}}},Dt={bubbleEffect:!0,bubbleEffectColor:s,bubbleEffectOpacity:.1,centerCircleColor:s,centerCircleDasharray:0,centerCircleOpacity:0,centerCircleRadius:50,centerCircleStroke:r,centerCircleStrokeWidth:.5,coordinatesColor:r,coordinatesFontSize:i._10,coordinatesOffset:0,crosshairDasharray:0,crosshairStroke:r,crosshairStrokeWidth:.5,intersectCirclesFill:r,intersectCirclesRadius:2,isLoading:!1,parentId:"",showCenterCircle:!0,showCoordinates:!0,showCrosshair:!0,showIntersectCircles:!0,useWaveOnClick:!0},ht={open:!1,maxHeight:2e3,useCursorPointer:!1,head:{useArrowSlot:!1,backgroundColor:d,color:l,iconColor:u,iconSize:20,icon:"arrowRight",padding:"12px 6px"},body:{backgroundColor:d,color:l}},be={debug:!1,animationFrames:60,animationValueStart:0,backgroundColor:d,fontFamily:"inherit",layoutClass:"",layoutCss:"",prefix:"",suffix:"",title:"",titleBold:!0,titleColor:l,titleClass:"",titleCss:"",titleFontSize:i._16,useAnimation:!0,valueBold:!0,valueColor:u,valueClass:"",valueCss:"",valueFontSize:i._32,valueRounding:0,formatter:null,analogDigits:{show:!1,height:40,color:l,skeletonColor:o}},Ve={type:"onion",onion:{gutterColor:r,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},line:{gutterColor:r,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},bar:{gutterColor:r,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p}},Lt={readonly:!1,useCursorPointer:!1,style:{fontFamily:"inherit",itemSize:32,backgroundColor:d,colors:{activeReadonly:["#e20001","#ff9f03","#ffd004","#61c900","#059f00"],active:["#e20001","#ff9f03","#ffd004","#61c900","#059f00"],inactive:[o,o,o,o,o]},icons:{filled:!1,useGradient:!0},title:{...E,textAlign:m.CENTER,offsetY:6,subtitle:{...E.subtitle,offsetY:12}},rating:{show:!0,fontSize:i._24,bold:!0,roundingValue:1,position:m.BOTTOM,offsetX:0,offsetY:0,formatter:null},tooltip:{show:!0,fontSize:i._14,offsetY:0,color:l,bold:!0,backgroundColor:d,borderColor:P,borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",roundingValue:0,formatter:null}}},Et={type:S.STAR,readonly:!1,from:1,to:5,useCursorPointer:!1,style:{fontFamily:"inherit",animated:!0,itemSize:32,backgroundColor:d,star:{activeColor:v,borderColor:v,borderWidth:3,apexes:5,inactiveColor:o,useGradient:!0},image:{src:"",inactiveOpacity:.3,alt:"rating image"},title:{textAlign:m.CENTER,fontSize:i._20,color:l,bold:!0,text:"",offsetY:6,subtitle:{fontSize:i._14,color:r,bold:!1,text:"",offsetY:12}},rating:{show:!0,fontSize:i._24,bold:!0,roundingValue:1,position:m.BOTTOM,offsetY:0,offsetX:0,formatter:null},tooltip:{show:!0,fontSize:i._14,offsetY:0,color:l,bold:!0,backgroundColor:d,borderColor:P,borderRadius:4,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)",roundingValue:0,formatter:null}}},Pt={alwaysVisible:!1,useCursorPointer:!1,style:{backgroundColor:d,color:l,fontFamily:"inherit",showPrint:!1,showSave:!0,showImage:!0,showTooltips:!0,buttons:{borderRadius:6,controls:{backgroundColor:d,color:l,border:"1px solid #262626",selected:{backgroundColor:t,color:f,border:`1px solid ${P}`}},shapes:{backgroundColor:d,color:l,border:"1px solid #262626",selected:{backgroundColor:l,color:d,border:`1px solid ${P}`}}},tooltips:{backgroundColor:f,color:l,border:`1px solid ${P}`,borderRadius:6,boxShadow:"0 6px 12px -6px rgba(0,0,0,0.2)"}},translations:{colorAlpha:"Color alpha",dashedLines:"Dashed lines",filled:"Filled",fontSize:"Font size",thickness:"Thickness",title:"Annotations",tooltipGroup:"Select & group",tooltipDelete:"Delete",tooltipMove:"Move",tooltipResize:"Resize",tooltipBringToFront:"Bring to front",tooltipBringToBack:"Bring to back",tooltipDuplicate:"Duplicate",tooltipUndo:"Undo last shape",tooltipRedo:"Redo last shape",tooltipPdf:"Save pdf",tooltipSave:"Save annotations",tooltipShapeCircle:"Draw circle",tooltipShapeRect:"Draw rect",tooltipShapeArrow:"Draw arrow",tooltipShapeFreehand:"Freehand line",tooltipShapeText:"Text mode",tooltipShapeTextLeft:"Align left",tooltipShapeTextCenter:"Align center",tooltipShapeTextRight:"Align right",tooltipShapeTextBullet:"Bullet points",tooltipShapeTextBold:"Bold",tooltipShapeTextItalic:"Italic",tooltipShapeTextUnderline:"Underlined",tooltipShapeColor:"Color",tooltipImage:"Download PNG"}},et={locked:!1,style:{board:{backgroundColor:d,color:l,aspectRatio:"1/1.4141",border:"none"},item:{backgroundColor:d,borderColor:P},resizeHandles:{backgroundColor:l}},userOptions:{show:!0,useCursorPointer:!1,showOnChartHover:!1,keepStateOnChartLeave:!0,position:"right",buttons:{pdf:!0,img:!0,annotator:!0,altCopy:!1},callbacks:{pdf:null,img:null,annotator:null,altCopy:null},buttonTitles:{pdf:"Download PDF",img:"Download PNG",annotator:"Toggle annotator",altCopy:"Copy alt text"},print:{scale:2,filename:""}}},b={type:S.LINE,style:{backgroundColor:d,color:l,maxHeight:500,animated:!0,chord:{color:o},ridgeline:{color:o},circlePack:{color:o},historyPlot:{color:o},bullet:{color:o},flow:{color:o},parallelCoordinatePlot:{color:o},treemap:{color:o},dumbbell:{color:o},stripPlot:{color:o},galaxy:{color:o},bar3d:{color:o},sparkHistogram:{color:o},sparkStackbar:{color:o},sparkbar:{color:o},thermometer:{color:o},relationCircle:{color:o},molecule:{color:o},tiremarks:{color:o},chestnut:{color:o},sparkline:{color:o,strokeWidth:.7},donutEvolution:{axis:{show:!0,color:o,strokeWidth:.5},donuts:{strokeWidth:.5,color:o}},line:{axis:{show:!0,color:o,strokeWidth:.5},path:{color:o,strokeWidth:1,showPlots:!0}},bar:{axis:{show:!0,color:o,strokeWidth:.5},borderRadius:.5,color:o,barWidth:9},donut:{color:o,strokeWidth:64},onion:{color:o},gauge:{color:o},quadrant:{grid:{color:o,strokeWidth:.5},plots:{radius:1.5,color:o}},radar:{grid:{color:o,strokeWidth:.5},shapes:{color:o}},waffle:{color:o},table:{th:{color:o},td:{color:o,strokeWidth:.5}},rating:{useSmiley:!1,color:o,filled:!0,strokeWidth:1,maxWidth:200},verticalBar:{axis:{show:!0,color:o,strokeWidth:.5},borderRadius:.5,color:o},heatmap:{cellsX:26,cellsY:7,color:o},candlesticks:{axis:{show:!0,color:o,strokeWidth:.5},candle:{color:o,strokeWidth:1}},pyramid:{color:o},wheel:{color:o},rings:{color:o}}},F={fontFamily:"inherit",maxHeight:500,rowsPerPage:25,useCursorPointer:!1,style:{title:{...E,backgroundColor:d},th:{backgroundColor:o,color:l,outline:`1px solid ${s}`,selected:{backgroundColor:u,color:s},buttons:{filter:{inactive:{backgroundColor:o,color:l},active:{backgroundColor:u,color:s}},cancel:{inactive:{backgroundColor:o,color:t},active:{backgroundColor:"#F17171",color:s}}}},rows:{outline:`1px solid ${d}`,even:{backgroundColor:"#f3f5f7",color:l,selectedCell:{backgroundColor:"#1f77b45b",color:l},selectedNeighbors:{backgroundColor:"#63dd821e",color:l}},odd:{backgroundColor:d,color:l,selectedCell:{backgroundColor:"#1f77b45b",color:l},selectedNeighbors:{backgroundColor:"#63dd821e",color:l}}},inputs:{backgroundColor:d,color:l,border:`1px solid ${P}`,accentColor:u},dropdowns:{backgroundColor:o,color:l,icons:{selected:{color:h,unicode:"✔"},unselected:{color:c,unicode:"✖"}}},infoBar:{backgroundColor:o,color:l},pagination:{buttons:{backgroundColor:o,color:l,opacityDisabled:.5},navigationIndicator:{backgroundColor:u}},exportMenu:{show:!0,backgroundColor:o,color:l,buttons:{backgroundColor:f,color:l},filename:""},closeButtons:{backgroundColor:"transparent",color:l,borderRadius:"50%"},chart:{modal:{backgroundColor:o,color:l,buttons:{selected:{backgroundColor:u,color:s},unselected:{backgroundColor:d,color:l}}},layout:{backgroundColor:d,axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:u,stroke:s},line:{smooth:!0,useArea:!1,stroke:u,strokeWidth:4,plot:{fill:u,stroke:s,strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:l},progression:{stroke:t,strokeWidth:2,strokeDasharray:4,arrowSize:7},timeLabels:{showOnlyAtModulo:!0,modulo:12},datetimeFormatter:{...G,enable:!0},zoom:{show:!0}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"CSV all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"CSV page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Sum",to:"To",total:"Total",totalRows:"Total rows",filename:"File name",xAxisLabels:"X axis labels"},useChart:!0},D={height:"100%",width:null,backgroundColor:d,digits:{color:l,skeletonColor:o,thickness:1}},N={responsiveBreakpoint:400,userOptions:$({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,animation:!0}),animation:{type:"scroll",use:!0,speedMs:1e3,pauseOnHover:!0},style:{backgroundColor:d,color:l,fontFamily:"inherit"},border:{size:0,color:t},caption:{text:"",padding:W([12,12,12,12]),style:{backgroundColor:d,color:l,fontSize:`${i._16}px`,fontWeight:"bold",textAlign:"left"}},scrollbar:{showOnlyOnHover:!1,hide:!1},thead:{style:{verticalAlign:"middle"},tr:{height:32,border:{size:0,color:t},style:{backgroundColor:d,color:l,boxShadow:`0px 6px 12px -6px ${t}50`},th:{border:{size:0,color:t},padding:W([0,12,0,0]),style:{borderSpacing:0,border:"none",textAlign:"right",fontVariantNumeric:"tabular-nums"}}}},tbody:{backgroundColor:d,tr:{visible:5,height:32,border:{size:0,color:t},style:{backgroundColor:d,color:l},td:{alternateColor:!0,alternateOpacity:.5,border:{size:0,color:t},padding:W([0,12,0,0]),style:{fontVariantNumeric:"tabular-nums",textAlign:"right",backgroundColor:o}}}}},Q={a11y:{translations:{label:"Progress"}},skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,type:"battery",size:64,stroke:r,color:u,useGradient:!0,gradientColor:"#9db5ed",showPercentage:!0,textColor:t,fontFamily:"inherit",formatter:null},tt={debug:!1,loading:!1,responsive:!1,theme:"",userOptions:$({tooltip:!1,pdf:!0,csv:!1,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:96,width:600,padding:W([24,24,24,12]),animation:{show:!0,animationFrames:60},segments:{baseColor:"#9A9A9A",dataLabels:{show:!0,color:l,fontSize:i._10,formatter:null,bold:!1,prefix:"",suffix:"",rounding:0,offsetY:0},ticks:{show:!0,divisions:10,stroke:"#8A8A8A"}},target:{show:!0,onTop:!0,color:l,rounded:!0,heightRatio:.8,stroke:s,strokeWidth:1,width:6},valueBar:{color:"#3A3A3A",heightRatio:.33,stroke:s,strokeWidth:1,label:{show:!0,color:l,fontSize:i._14,bold:!0,offsetY:0}},title:{...E,textAlign:m.LEFT,paddingLeft:12},legend:{...V,roundingValue:0,position:"bottom"}}}},ve={theme:"",responsive:!1,responsiveProportionalSizing:!0,useCssAnimation:!0,table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0,roundingPercentage:0},columnNames:{series:"Step",value:"Value",percentage:"Percentage"}},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,width:600,height:500,title:E,padding:W([12,128,24,24]),barCircleSpacingRatio:.05,circles:{stroke:s,strokeWidth:1,dataLabels:{formatter:null,fontSize:i._16,offsetY:0,adaptColorToBackground:!0,color:l,rounding:1,bold:!0}},circleLinks:{show:!0,color:o,widthRatio:1},area:{show:!0,color:o},bars:{stroke:s,defaultColor:u,strokeWidth:1,gapRatio:.2,borderRadius:3,dataLabels:{name:{fontSize:i._16,color:l,bold:!0,offsetX:0,offsetY:0},value:{formatter:null,fontSize:i._16,rounding:0,bold:!1,color:l,prefix:"",suffix:"",offsetX:0,offsetY:0}}}}}},Re={skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:"",customPalette:[],useCssAnimation:!1,userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0},columnNames:{series:"Series",datapoint:"Datapoint",x:"x",y:"y"}},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:500,width:600,padding:W([12,12,12,12]),grid:{xAxis:{show:!0,stroke:o,strokeWidth:1},horizontalLines:{show:!0,stroke:o,strokeWidth:.6},yAxis:{show:!0,stroke:o,strokeWidth:1},verticalLines:{show:!0,stroke:o,strokeWidth:.6}},axes:{x:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:i._16,color:l,bold:!1,rounding:1,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},formatter:null,prefix:"",suffix:""},name:{text:"",fontSize:i._16,offsetX:0,offsetY:0,bold:!1,color:l}},y:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:i._16,color:l,bold:!1,rounding:1,offsetX:0,formatter:null,prefix:"",suffix:""},name:{text:"",fontSize:i._16,offsetX:0,offsetY:0,bold:!1,color:l}}},plots:{radius:16,stroke:s,strokeWidth:1,gradient:{show:!0,intensity:40},indexLabels:{show:!0,startAtZero:!1,adaptColorToBackground:!0,color:l,fontSize:i._16,bold:!1,offsetY:0,offsetX:0},labels:{show:!0,fontSize:i._10,color:l,bold:!1,offsetY:0,offsetX:0}},paths:{show:!0,strokeWidth:1.6,useSerieColor:!0,stroke:t},legend:{...V,position:"bottom"},title:E,tooltip:I}}},ot={debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0,zoom:!0}),table:{...O,useDialog:!1,th:M,td:T,columnNames:{datapoint:"Datapoint",parent:"Parent",depth:"Depth",value:"Value"}},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,title:E,width:512,height:316,circles:{stroke:s,strokeWidth:1,selectedShadowColor:t,gradient:{show:!0,intensity:40},labels:{parents:{show:!1},children:{show:!0},name:{fontSizeRatio:1,show:!0,bold:!1,offsetY:0,color:"auto"},value:{fontSizeRatio:1,show:!0,color:"auto",rounding:0,prefix:"",suffix:"",formatter:null,bold:!1,offsetY:0}}},parentTooltips:{show:!0,fontSizeRatio:1,borderRadiusRatio:1,color:t,filter:"drop-shadow(0 2px 4px #2D353C30)",backgroundColor:s,strokeWidth:1,useSerieColor:!0,stroke:t,link:{strokeWidth:1,strokeDasharray:0,opacity:.6,useSerieColor:!1,stroke:t}},tooltip:I,zoom:{show:!0,speed:1}}}};return{vue_ui_xy:H,vue_ui_donut:j,vue_ui_treemap:ae,vue_ui_waffle:ie,vue_ui_radar:ge,vue_ui_quadrant:je,vue_ui_gauge:Ge,vue_ui_wheel:Oe,vue_ui_tiremarks:Xe,vue_ui_chestnut:rt,vue_ui_onion:Te,vue_ui_vertical_bar:Ie,vue_ui_horizontal_bar:nt,vue_ui_heatmap:st,vue_ui_scatter:it,vue_ui_candlestick:q,vue_ui_sparkline:We,vue_ui_sparkbar:ee,vue_ui_sparkstackbar:qe,vue_ui_sparkhistogram:xt,vue_ui_sparkgauge:$e,vue_ui_spark_trend:ut,vue_ui_quick_chart:Le,vue_ui_age_pyramid:Ke,vue_ui_relation_circle:Ee,vue_ui_thermometer:Me,vue_ui_rings:dt,vue_ui_donut_evolution:U,vue_ui_mood_radar:ct,vue_ui_molecule:At,vue_ui_nested_donuts:X,vue_ui_galaxy:_e,vue_ui_strip_plot:Ze,vue_ui_dumbbell:_t,vue_ui_3d_bar:xe,vue_ui_table_sparkline:ft,vue_ui_table_heatmap:de,vue_ui_word_cloud:St,vue_ui_xy_canvas:Be,vue_ui_flow:Qe,vue_ui_parallel_coordinate_plot:Je,vue_ui_timer:Ft,vue_ui_carousel_table:N,vue_ui_gizmo:Q,vue_ui_stackbar:le,vue_ui_bullet:tt,vue_ui_funnel:ve,vue_ui_history_plot:Re,vue_ui_world:{skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:$({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),customPalette:[],projection:"globe",style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,padding:W([12,12,12,12]),dataLabels:{prefix:"",suffix:"",rounding:0,formatter:null},dimensions:{height:null,width:null},globe:{center:{x:0,y:0},waterColor:u},territory:{stroke:"#666666",emptyColor:"#E0E0E0",strokeWidth:.5,strokeWidthSelected:2,colors:{min:"#E0E0E0",max:null},showTaiwanAsPartOfChina:!1},tooltip:{...I,showMinimap:!0},title:E,legend:{...V,position:"bottom"}}},table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0},columnNames:{series:"Country",value:"Value",category:"Category"}}},vue_ui_ridgeline:{skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],useCssAnimation:!1,userOptions:$({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:{...T,roundingValue:0},columnNames:{series:"Series"}},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,padding:W([12,0,0,12]),title:E,legend:V,dialog:{show:!0,backgroundColor:d,color:l,header:{backgroundColor:o,color:l},xyChart:{...H,responsive:!0,line:{...H.line,showTransition:!1,labels:{...H.line.labels,show:!0}},chart:{...H.chart,tooltip:{...H.chart.tooltip,showPercentage:!1},userOptions:{...H.chart.userOptions,buttons:{...H.chart.userOptions.buttons,pdf:!1,fullscreen:!1}},zoom:{...H.chart.zoom,minimap:{...H.chart.zoom.minimap,show:!0}}}}},areas:{height:60,rowHeight:30,strokeWidth:1,stroke:{useSerieColor:!1,color:s},smooth:!0,opacity:.9,useCommonColor:!1,useGradient:!0,maxPoint:{show:!0,adaptStrokeToBackground:!0,stroke:t,strokeWidth:1,strokeDasharray:4}},selector:{show:!0,stroke:r,strokeWidth:1,strokeDasharray:2,labels:{fontSize:12,formatter:null,rounding:0,color:l},dot:{radius:4,useDatapointColor:!0,fill:r,stroke:s,strokeWidth:.5}},zeroLine:{show:!0,strokeWidth:1,strokeDasharray:0,useSerieColor:!1,stroke:r},xAxis:{labels:{prefix:"",suffix:"",rotation:0,autoRotate:{enable:!0,angle:-30},values:[],datetimeFormatter:G,color:l,fontSize:14,bold:!1,showOnlyAtModulo:!1,modulo:12,showOnlyFirstAndLast:!1,offsetY:0}},yAxis:{labels:{fontSize:16,bold:!1,color:l,offsetX:0}}}}},vue_ui_chord:{debug:!1,loading:!1,responsive:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:"",customPalette:[],enableRotation:!0,initialRotation:0,useCssAnimation:!1,userOptions:$({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...O,useDialog:!1,th:M,td:T},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,legend:{...V,position:"bottom"},title:E,arcs:{innerRadiusRatio:1,outerRadiusRatio:1,padAngle:5,stroke:s,strokeWidth:1,labels:{show:!0,fontSize:14,bold:!1,curved:!1,adaptColorToBackground:!0,color:l,offset:0,showPercentage:!0,roundingPercentage:0}},ribbons:{stroke:s,strokeWidth:1,underlayerOpacity:1,labels:{show:!0,formatter:null,prefix:"",suffix:"",rounding:0,fontSize:14,bold:!1,useSerieColor:!1,color:l,offset:0,minSeparationDeg:3,connector:{stroke:t,strokeWidth:1},marker:{show:!0,radius:3,stroke:s,strokeWidth:1}}}}}},vue_ui_stackline:J,vue_ui_dag:{skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:"",a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},userOptions:$({tooltip:!1,pdf:!0,csv:!1,img:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,width:null,height:null,backgroundPattern:{show:!1,spacingRatio:3,dotRadiusRatio:5,dotColor:o,opacity:1},layout:{rankDirection:"TB",rankSeparation:60,nodeSeparation:50,edgeSeparation:30,nodeWidth:100,nodeHeight:40,curvedEdges:!0,padding:48,arrowShape:"vee",arrowSize:8,align:void 0},nodes:{stroke:r,strokeWidth:1,borderRadius:3,backgroundColor:d,labels:{color:l,fontSize:i._12,bold:!1},tooltip:{showOnClick:!1,backgroundColor:o,color:l,maxWidth:"300px"},selected:{stroke:null,strokeWidth:null,backgroundColor:null,labelColor:null,downstreamEdges:{stroke:null,animated:null},upstreamEdges:{stroke:null,animated:null}}},edges:{stroke:r,strokeWidth:1,animations:{dasharray:"2 6",animationDurationMs:1e3}},midpoints:{show:!1,radius:4,stroke:r,fill:s,strokeWidth:1,tooltip:{maxWidth:"300px",backgroundColor:o,color:l},selectedEdge:{stroke:null,animated:null}},controls:{position:"bottom",show:!0,backgroundColor:o,buttonColor:o,color:l,fontSize:14,border:`1px solid ${P}`,padding:"0.5rem",borderRadius:"0.25rem"},zoom:{active:!0},title:E}}},vue_ui_geo:{skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,responsive:!1,projection:"equirectangular",theme:"",a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},userOptions:$({tooltip:!0,pdf:!0,csv:!1,img:!0,svg:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,zoom:!0}),map:{geoJson:null,center:[0,0],fitPadding:0},events:{datapointEnter:null,datapointLeave:null,datapointClick:null,territoryEnter:null,territoryLeave:null,territoryClick:null},style:{fontFamily:"inherit",chart:{dimensions:{width:null,height:null},backgroundColor:d,color:l,territory:{fill:"#F2F3F5",stroke:"#D0D4D8",strokeWidth:1,hover:{enabledWhenEmpty:!1,fill:o,stroke:r,strokeWidth:1.5}},points:{radius:1,stroke:s,strokeWidth:1,fill:g,hoverRadiusRatio:1.2,labels:{show:!0,fontSizeRatio:1,color:l,offsetY:0}},controls:{position:"bottom",show:!0,backgroundColor:o,buttonColor:o,color:l,fontSize:14,border:`1px solid ${P}`,padding:"0.5rem",borderRadius:"0.25rem"},title:E,tooltip:I,zoom:{active:!0}}}},vue_ui_bump:{skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:"",customPalette:[],useCssAnimation:!1,a11y:{...k,translations:{...k.translations,keyboardNavigation:"Use the left and right, or up and down arrow keys to move between datapoints"}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:$({tooltip:!1,pdf:!0,csv:!0,img:!0,svg:!0,table:!0,labels:!1,fullscreen:!0,sort:!1,stack:!1,animation:!1,annotator:!0,zoom:!1}),table:{...O,useDialog:!1,columnNames:{series:"Series",period:"Period",values:"Values",ranking:"Ranking"},th:M,td:{...T,roundingValue:0}},style:{fontFamily:"inherit",chart:{backgroundColor:d,color:l,height:500,width:800,layout:{timeLabels:{show:!0,values:[],datetimeFormatter:G,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:i._14,color:l,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:12},lines:{smooth:!0,strokeWidth:4,coatingColor:s},plots:{stroke:s,strokeWidth:1,radius:12,labels:{color:"auto",show:!0,bold:!0,displayedValue:"value",fontSize:i._12,prefix:"",suffix:"",rounding:0,formatter:null}},nameLabels:{fontSize:i._14,color:l,useSerieColor:!1,bold:!1,offsetX:0,leftLabels:{show:!0},rightLabels:{show:!0}}},padding:W([12,12,12,12]),title:E}}},vue_ui_cursor:Dt,vue_ui_accordion:ht,vue_ui_kpi:be,vue_ui_mini_loader:Ve,vue_ui_smiley:Lt,vue_ui_rating:Et,vue_ui_annotator:Pt,vue_ui_dashboard:et,vue_ui_skeleton:b,vue_ui_table:F,vue_ui_digits:D,vue_ui_circle_pack:ot}}function Vt({defaultConfig:e,userConfig:t}){return Object.keys(t||{}).length?yt(wt({defaultConfig:e,userConfig:t})):e}function xl(e){return String(e||"").toLowerCase()}function Al(e){let t=(a,n,r)=>{let g=new Intl.DateTimeFormat(e,{[n]:r});return Array.from({length:a},(s,f)=>{let u=n==="month"?new Date(2025,f,1):new Date(2025,0,5+f);return g.format(u)})};return{months:t(12,"month","long"),shortMonths:t(12,"month","short"),days:t(7,"weekday","long"),shortDays:t(7,"weekday","short")}}var Ut=new Map;async function Co(e){let t=xl(e)||"en";return Ut.has(t)||Ut.set(t,Al(t)),{key:t,data:Ut.get(t)}}function _l({useUTC:e=!1,min:t=void 0,max:a=void 0,locale:n={months:[],shortMonths:[],days:[],shortDays:[]},januaryAsYear:r=!1}){let g=[2,4,6,9,11],s=[0,31,59,90,120,151,181,212,243,273,304,334];function f(C){return C%12}function u(C){return typeof C=="number"?!0:!isNaN(p(C))}function c(C){let S=Date.parse(C);if(isNaN(S))return C;if(!e)return S;let m=String(C).replace(/([+-]\d{2}:\d{2}|Z)$/,"");return Date.parse(m+"Z")}function h(C){return new Date(C)}function p(C){return c(isNaN(Date.parse(C))?Date.parse(C.replace(/-/g,"/").replace(/[a-z]+/gi," ")):C)}function v(C){return Date.parse(C.replace(/-/g,"/").replace(/[a-z]+/gi," "))}function d(C,S){let m=e,_=RegExp(`\\\\(${"yyyy.yy.y.MMMM.MMM.MM.M.dddd.ddd.dd.d.HH.H.hh.h.mm.m.ss.s.fff.ff.f.TT.T.tt.t.K".split(".").join("|")})`,"g"),z=[];S=S.replace(_,(ae,ie)=>(z.push(ie),`{{${z.length-1}}}`));let B=["\0",...n.months],E=["",...n.shortMonths],V=["",...n.days],I=["",...n.shortDays];function G(ae,ie=2){let ge=String(ae);for(;ge.length<ie;)ge="0"+ge;return ge}let $=m?C.getUTCFullYear():C.getFullYear();S=S.replace(/(^|[^\\])yyyy+/g,`$1${$}`).replace(/(^|[^\\])yy/g,`$1${String($).substr(2,2)}`).replace(/(^|[^\\])y/g,`$1${$}`);let W=(m?C.getUTCMonth():C.getMonth())+1;r&&W===1&&(B[1]=String($),E[1]=String($)),S=S.replace(/(^|[^\\])MMMM+/g,`$1${B[0]}`).replace(/(^|[^\\])MMM/g,`$1${E[0]}`).replace(/(^|[^\\])MM/g,`$1${G(W)}`).replace(/(^|[^\\])M/g,`$1${W}`);let M=m?C.getUTCDate():C.getDate();S=S.replace(/(^|[^\\])dddd+/g,`$1${V[0]}`).replace(/(^|[^\\])ddd/g,`$1${I[0]}`).replace(/(^|[^\\])dd/g,`$1${G(M)}`).replace(/(^|[^\\])d/g,`$1${M}`);let T=m?C.getUTCHours():C.getHours();S=S.replace(/(^|[^\\])HH+/g,`$1${G(T)}`).replace(/(^|[^\\])H/g,`$1${T}`);let O=T>12?T-12:T===0?12:T;S=S.replace(/(^|[^\\])hh+/g,`$1${G(O)}`).replace(/(^|[^\\])h/g,`$1${O}`);let ne=m?C.getUTCMinutes():C.getMinutes();S=S.replace(/(^|[^\\])mm+/g,`$1${G(ne)}`).replace(/(^|[^\\])m/g,`$1${ne}`);let te=m?C.getUTCSeconds():C.getSeconds();S=S.replace(/(^|[^\\])ss+/g,`$1${G(te)}`).replace(/(^|[^\\])s/g,`$1${te}`);let oe=m?C.getUTCMilliseconds():C.getMilliseconds();S=S.replace(/(^|[^\\])fff+/g,`$1${G(oe,3)}`),oe=Math.round(oe/10),S=S.replace(/(^|[^\\])ff/g,`$1${G(oe)}`),oe=Math.round(oe/10),S=S.replace(/(^|[^\\])f/g,`$1${oe}`);let J=T<12?"AM":"PM";S=S.replace(/(^|[^\\])TT+/g,`$1${J}`).replace(/(^|[^\\])T/g,`$1${J.charAt(0)}`).replace(/(^|[^\\])tt+/g,`$1${J.toLowerCase()}`).replace(/(^|[^\\])t/g,`$1${J.toLowerCase().charAt(0)}`);let le=-C.getTimezoneOffset(),H=m||!le?"Z":le>0?"+":"-";if(!m){le=Math.abs(le);let ae=Math.floor(le/60),ie=le%60;H+=G(ae)+":"+G(ie)}S=S.replace(/(^|[^\\])K/g,`$1${H}`);let j=(m?C.getUTCDay():C.getDay())+1;return S=S.replace(new RegExp(V[0],"g"),V[j]).replace(new RegExp(I[0],"g"),I[j]).replace(new RegExp(B[0],"g"),B[W]).replace(new RegExp(E[0],"g"),E[W]),S=S.replace(/{{(\d+)}}/g,(ae,ie)=>z[+ie]),S}function l(C,S){t!==void 0&&(C=t),a!==void 0&&(S=a);let m=h(C),_=h(S),z=d(m,"yyyy MM dd HH mm ss fff").split(" "),B=d(_,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(z[6],10),maxMillisecond:parseInt(B[6],10),minSecond:parseInt(z[5],10),maxSecond:parseInt(B[5],10),minMinute:parseInt(z[4],10),maxMinute:parseInt(B[4],10),minHour:parseInt(z[3],10),maxHour:parseInt(B[3],10),minDate:parseInt(z[2],10),maxDate:parseInt(B[2],10),minMonth:parseInt(z[1],10)-1,maxMonth:parseInt(B[1],10)-1,minYear:parseInt(z[0],10),maxYear:parseInt(B[0],10)}}function w(C){return C%4==0&&C%100!=0||C%400==0}function o(C,S,m){return i(C,S)-m}function P(C){return w(C)?366:365}function k(C,S,m){let _=s[S]+m;return S>1&&w(C)&&(_+=1),_}function i(C,S){return C=f(C),g.includes(C)?C===2?w(S)?29:28:30:31}return{isValidDate:u,getTimeStamp:c,getDate:h,parseDate:p,parseDateWithTimezone:v,formatDate:d,getTimeUnitsfromTimestamp:l,isLeapYear:w,calculateLastDaysOfMonth:o,determineDaysOfYear:P,determineRemainingDaysOfYear:k,determineDaysOfMonths:i}}var Sl=1440*60;async function Fl({values:e,maxDatapoints:t,formatter:a,start:n,end:r}){let g=[];if(!a.enable||e.length===0){for(let S=n;S<r;S+=1)g.push({text:String(e[S]??S),absoluteIndex:S});return g}let s=e.map(S=>{let m=new Date(S).getTime();return isNaN(m)?S:m}).slice(n,r);if(s.length===0)return[];let f=s[0],u=s[s.length-1],c;try{({data:c}=await Co(a.locale))}catch{({data:c}=await Co("en"))}let h=_l({useUTC:a.useUTC,min:f,max:u,locale:c,januaryAsYear:a.januaryAsYear}),p=(u-f)/(1e3*Sl),v=p*24,d=v*60,l=d*60,w;switch(!0){case p/365>5:w="years";break;case p>800:w="half_year";break;case p>180:w="months";break;case p>90:w="months_fortnight";break;case p>60:w="months_days";break;case p>30:w="week_days";break;case p>2:w="days";break;case v>2.4:w="hours";break;case d>15:w="minutes_fives";break;case d>5:w="minutes";break;case d>1:w="seconds_tens";break;case l>20:w="seconds_fives";break;default:w="seconds";break}let o;o=w==="years"?"year":["half_year","months","months_fortnight","months_days","week_days"].includes(w)?"month":w==="days"?"day":w==="hours"?"hour":["minutes_fives","minutes"].includes(w)?"minute":"second";let P=a.options[o]??a.options.hour,k=a.options.year,i=a.options.month,C=a.options.day;return s.forEach((S,m)=>{let _=new Date(S),z;switch(o){case"year":z=h.formatDate(_,k);break;case"month":{let B=a.useUTC?_.getUTCMonth():_.getMonth();z=a.januaryAsYear&&B===0?h.formatDate(_,k):h.formatDate(_,i);break}case"day":z=h.formatDate(_,C);break;default:{let B=a.useUTC?_.getUTCHours():_.getHours(),E=a.useUTC?_.getUTCMinutes():_.getMinutes();z=B===0&&E===0?h.formatDate(_,C):h.formatDate(_,P)}}g.push({text:z,absoluteIndex:n+m})}),g}function Dl({config:e,dataset:t,skeletonDataset:a,skeletonConfig:n,FINAL_CONFIG:r,prepareConfig:g,callback:s=null,dsIsNumber:f=!1,allowEmptyDataset:u=!1}){let c=Y(!1),h=R(()=>{let v=A(e)?.loading??!1,d=A(t),l=u?!1:f?[null,void 0].includes(d):d==null||Array.isArray(d)&&d.length===0||Object.keys(d).length===0;return c.value||v||l}),p=Y(A(t));return Do(()=>{p.value=h.value?a:A(t),r.value=h.value?n:g(),s&&s()}),{loading:h,FINAL_DATASET:p,manualLoading:c,skeletonDataset:a,skeletonConfig:n}}var Ll={},El={class:"vue-data-ui-scanner"};function Pl(e,t){return x(),L("div",El)}var Tl=Zt(Ll,[["render",Pl],["__scopeId","data-v-8c8b2e12"]]);function $l(){let e=R(()=>a=>!a||!a.theme?!1:["default","dark","celebration","celebrationNight","hack","zen","concrete","minimal","minimalDark"].includes(a.theme));function t(a){a?.debug&&console.warn(`Vue Data UI - "${a?.theme}" is not a valid theme.
|
|
6
|
-
|
|
7
|
-
Available themes:
|
|
8
|
-
|
|
9
|
-
- default (or "")
|
|
10
|
-
- dark
|
|
11
|
-
- celebration
|
|
12
|
-
- celebrationNight
|
|
13
|
-
- hack
|
|
14
|
-
- zen
|
|
15
|
-
- concrete`)}return{isThemeValid:e,warnInvalidTheme:t}}function Ml(e,t=20){let a;return function(...n){let r=this;a||(e.apply(r,n),a=!0,setTimeout(()=>a=!1,t))}}function Rl({chart:e,title:t=null,slicer:a=null,legend:n=null,source:r=null,noTitle:g=null,padding:s=null}){let f=0,u=0,c=0,h=0,p=0,v=0,d=0,l=0,w=0;if(e){let{height:o,width:P}=e.parentNode.getBoundingClientRect();c=t?t.getBoundingClientRect().height:0,h=a?a.getBoundingClientRect().height:0,p=n?n.getBoundingClientRect().height:0,v=r?r.getBoundingClientRect().height:0,d=g?g.getBoundingClientRect().height:0,s?(l=s.top+s.bottom,w=s.right+s.left):(l=0,w=0),f=o-c-h-p-v-d-l,u=P-w}return{width:u,height:f,heightTitle:c,heightNoTitle:d,heightSource:v,heightNoTitle:d,heightLegend:p}}var zl=["id"],Nl={scope:"row"},Ol=Zt({__name:"A11yDataTable",props:{uid:{String,required:!0},head:{Array,default:()=>[]},body:{Array,default:()=>[]},caption:{String,default:"Data table"},notice:{String,default:"A data table is available below."}},setup(e){return(t,a)=>(x(),L("div",{id:`chart-data-table-${e.uid}`,class:"sr-only","data-dom-to-png-ignore":""},[y("p",null,Z(e.notice),1),y("table",null,[y("caption",null,Z(e.caption),1),y("thead",null,[y("tr",null,[(x(!0),L(re,null,me(e.head,(n,r)=>(x(),L("th",{role:"cell",key:`a11y-head-${r}-${e.uid}`,scope:"col"},[Se(t.$slots,"th",{th:n},()=>[lt(Z(n),1)],!0)]))),128))])]),y("tbody",null,[(x(!0),L(re,null,me(e.body,(n,r)=>(x(),L("tr",{key:`a11y-body-${r}-${e.uid}`},[y("th",Nl,Z(n[0]),1),(x(!0),L(re,null,me(n.slice(1),(g,s)=>(x(),L("td",{key:`a11y-cell-${r}-${s}-${e.uid}`},[Se(t.$slots,"td",{td:g},()=>[lt(Z(g),1)],!0)]))),128))]))),128))])])],8,zl))}},[["__scopeId","data-v-1090a7c5"]]);function Il({config:e}){let t=Y(null),a=e?.text||"Chart visualization",n=e?.subtitle?.text||"";return Ne(()=>{ke(()=>{t.value&&(t.value.setAttribute("aria-label",`${a}${n?`. ${n}`:""}`),t.value.setAttribute("role","img"),t.value.setAttribute("aria-live","polite"))})}),{svgRef:t}}function Wl(){let e=Y(!1);return Ne(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{e.value=t.matches};a(),t.addEventListener("change",a),kt(()=>{t.removeEventListener("change",a)})}),e}var Bl={style:{line:{color:"#2A2929"},area:{color:"#65698E"},bar:{color:"#2A2929"}}},Vl={style:{backgroundColor:"#1A1A1A",zeroLine:{color:"#5A5A5A"},line:{color:"#65698E"},area:{color:"#8D99AE"},bar:{color:"#65698E"},plot:{stroke:"#1A1A1A"},verticalIndicator:{color:"#8A8A8A"},dataLabel:{color:"#CCCCCC"},title:{color:"#CCCCCC"},tooltip:{backgroundColor:"#1A1A1A",backgroundOpacity:70,color:"#CCCCCC",borderColor:"#3A3A3A"}}},Ul={style:{backgroundColor:"#1A1A1A",zeroLine:{color:"#5A5A5A"},plot:{stroke:"#1A1A1A"},verticalIndicator:{color:"#8A8A8A"},dataLabel:{color:"#CCCCCC"},title:{color:"#CCCCCC"},tooltip:{color:"#CCCCCC",backgroundColor:"#1A1A1A",borderColor:"#5A5A5A",backgroundOpacity:70}}},Hl={style:{backgroundColor:"#FFF8E1",line:{color:"#D32F2F"},bar:{color:"#D32F2F",borderRadius:0},zeroLine:{color:"#5D4037"},plot:{stroke:"#FFF8E1"},verticalIndicator:{color:"#FF9800"},dataLabel:{color:"#424242"},title:{color:"#424242"},area:{color:"#E64A19"},tooltip:{backgroundColor:"#FFECB3",backgroundOpacity:30,color:"#424242",borderColor:"#FF8A65"}}},Yl={style:{backgroundColor:"#1E1E1E",line:{color:"#D32F2F"},bar:{color:"#D32F2F",borderRadius:0},zeroLine:{color:"#5D4037"},plot:{stroke:"#1E1E1E"},verticalIndicator:{color:"#B71C1C"},dataLabel:{color:"#BDBDBD"},title:{color:"#BDBDBD"},area:{color:"#E64A19"},tooltip:{backgroundColor:"#1E1E1E",backgroundOpacity:30,color:"#FFF8E1",borderColor:"#FF8A65"}}},jl={style:{backgroundColor:"#1A1A1A",line:{color:"#66CC66"},bar:{color:"#66CC66",borderRadius:0},zeroLine:{color:"#5F6A5F"},plot:{stroke:"#1A1A1A"},verticalIndicator:{color:"#66CC66"},dataLabel:{color:"#AACCAA"},title:{color:"#66CC66"},area:{color:"#66CC66"},tooltip:{backgroundColor:"#2A2F2A",color:"#AACCAA",borderColor:"#66CC66"}}},Gl={style:{backgroundColor:"#fbfafa",line:{color:"#B9B99D",smooth:!0},bar:{color:"#B9B99D",borderRadius:3},zeroLine:{strokeWidth:0},plot:{stroke:"#fbfafa"},verticalIndicator:{color:"#B9B99D"},dataLabel:{color:"#A0AC94"},title:{color:"#8A9892"},area:{color:"#B9B99D"},tooltip:{backgroundColor:"#fbfafa",color:"#8A9892"}}},Xl={style:{backgroundColor:"#f6f6fb",line:{color:"#4A6A75"},bar:{color:"#4A6A75",borderRadius:0},zeroLine:{color:"#9FA9BE"},plot:{stroke:"#f6f6fb"},verticalIndicator:{color:"#4A6A75"},dataLabel:{color:"#61747E"},title:{color:"#50606C"},area:{color:"#4A6A75"},tooltip:{backgroundColor:"#f6f6fb",color:"#50606C"}}},ql={default:{},minimal:Bl,minimalDark:Vl,dark:Ul,celebration:Hl,celebrationNight:Yl,hack:jl,zen:Gl,concrete:Xl},Kl={key:0,style:{"pointer-events":"none"}},Zl=["r","fill","filter"],Ql=["begin","dur","repeatCount","fill","calcMode","keySplines","keyTimes","keyPoints"],Jl=["href"],ea=["dur","repeatCount","fill","values"],ta=["r","fill"],oa=["begin","dur","repeatCount","calcMode","keySplines","keyTimes","keyPoints"],la=["href"],aa=["dur","repeatCount"],ra={__name:"SparklinePulse",props:{uid:{type:String,required:!0},svgRef:{type:Object,default:null},pulsePathId:{type:String,required:!0},pulsePathLength:{type:Number,required:!0},pulseDur:{type:String,required:!0},pulseBegin:{type:String,required:!0},pulseRepeatCount:{type:String,required:!0},pulseFillMode:{type:String,default:void 0},pulseKeyPoints:{type:String,required:!0},pulseMotion:{type:Object,required:!0},pulse:{type:Object,required:!0},pulseTrail:{type:Object,required:!0},pulseTrailLength:{type:Number,required:!0},prefersReducedMotion:{type:Boolean,required:!0},loading:{type:Boolean,required:!0},isBar:{type:Boolean,required:!0}},setup(e){let t=e,a=R(()=>Math.min(t.pulseTrailLength,45)),n=R(()=>!!t.pulse?.show&&!t.isBar&&!t.prefersReducedMotion&&!t.loading&&Number(t.pulsePathLength)>0);function r(){let u=t.svgRef?.value;u&&(typeof u.pauseAnimations=="function"&&u.pauseAnimations(),typeof u.setCurrentTime=="function"&&u.setCurrentTime(0),typeof u.unpauseAnimations=="function"&&u.unpauseAnimations())}function g(u,c){if(typeof u!="string")return u;let h=u.trim().match(/^([\d.]+)\s*(ms|s)$/);if(!h)return u;let p=Number(h[1]),v=h[2];return Number.isNaN(p)?u:`${p+c}${v}`}function s(u){return(a.value-u)/a.value*t.pulse.radius}function f(u){let c=t.pulse.trail.opacity,h=(a.value-u)/a.value,p=u===0?1:h*c;return`0;${p};${p};0`}return he(()=>t.loading,async u=>{if(u){r();return}await ke(),r()}),he(()=>t.pulsePathId,async()=>{await ke(),r()}),kt(()=>{r()}),(u,c)=>n.value?(x(),L("g",Kl,[(x(!0),L(re,null,me(a.value,(h,p)=>(x(),L(re,null,[p%3==0?(x(),L("circle",{key:`sparkline_dot_${p}_${e.pulsePathId}`,r:s(p),fill:e.pulse.color,filter:`url(#sparkline_pulse_glow_${e.uid})`,opacity:"0"},[y("animateMotion",{begin:g(e.pulseBegin,p*10),dur:e.pulseDur,repeatCount:e.pulseRepeatCount,fill:e.pulseFillMode,calcMode:e.pulseMotion.calcMode,keySplines:e.pulseMotion.keySplines||void 0,keyTimes:e.pulseMotion.keyTimes||void 0,keyPoints:e.pulseKeyPoints,rotate:"auto"},[y("mpath",{href:`#${e.pulsePathId}`},null,8,Jl)],8,Ql),y("animate",{attributeName:"opacity",dur:e.pulseDur,repeatCount:e.pulseRepeatCount,fill:e.pulseFillMode,values:f(p),keyTimes:"0;0.1;0.9;1"},null,8,ea)],8,Zl)):K("",!0)],64))),256)),(x(),L("circle",{key:`sparkline_halo_${e.pulsePathId}`,r:Math.max(e.pulse.radius*1.3),fill:e.pulse.color,opacity:"0"},[y("animateMotion",{begin:e.pulseBegin,dur:e.pulseDur,repeatCount:e.pulseRepeatCount,calcMode:e.pulseMotion.calcMode,keySplines:e.pulseMotion.keySplines||void 0,keyTimes:e.pulseMotion.keyTimes||void 0,keyPoints:e.pulseKeyPoints,rotate:"auto"},[y("mpath",{href:`#${e.pulsePathId}`},null,8,la)],8,oa),y("animate",{attributeName:"opacity",values:"0;0.35;0.35;0",keyTimes:"0;0.15;0.85;1",dur:e.pulseDur,repeatCount:e.pulseRepeatCount},null,8,aa)],8,ta))])):K("",!0)}},bt={canvas:null,ctx:null};function na(){if(typeof document>"u")throw Error("color-utils: document is not available (browser-only).");if(!bt.canvas){let e=document.createElement("canvas");e.width=1,e.height=1;let t=e.getContext("2d",{willReadFrequently:!0});if(!t)throw Error("color-utils: unable to get 2D canvas context.");bt.canvas=e,bt.ctx=t}return bt.ctx}function sa(e){return e<0?0:e>255?255:Math.round(e)}function Qt(e){return e<0?0:e>1?1:e}function ia(e,t=null){if(typeof e!="string"||e.trim().length===0)throw Error("colorToRgba: inputColor must be a non-empty string.");let a=e.trim();if(a.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};let n=ua(a,t),r=na();r.clearRect(0,0,1,1),r.fillStyle="#000";let g=r.fillStyle;if(r.fillStyle=n,r.fillStyle===g&&!da(n))throw Error(`colorToRgba: unsupported or invalid color "${e}".`);r.fillRect(0,0,1,1);let s=r.getImageData(0,0,1,1).data;return{red:s[0],green:s[1],blue:s[2],alpha:s[3]/255}}function xo(e,t=null){if(!Array.isArray(e)||e.length===0)throw Error("colorsToRgba: colors must be a non-empty array.");let a=Array(e.length);for(let n=0;n<e.length;n+=1)a[n]=ia(e[n],t);return a}function ua(e,t=null){return e!=="currentColor"||typeof window>"u"||!t?e:window.getComputedStyle(t).color||e}function da(e){let t=e.trim().toLowerCase();return t==="black"||t==="#000"||t==="#000000"||t==="rgb(0, 0, 0)"||t==="rgba(0, 0, 0, 1)"||t==="rgba(0, 0, 0, 0)"}function Ue(e){let t=Qt(e/255);return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Ht(e){let t=Qt(e),a;return a=t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,sa(a*255)}function Ao(e,t,a,n){let r=Qt(a);if(n==="linearRGB"){let g=Ue(e.red),s=Ue(e.green),f=Ue(e.blue),u=Ue(t.red),c=Ue(t.green),h=Ue(t.blue),p=g+(u-g)*r,v=s+(c-s)*r,d=f+(h-f)*r;return{red:Ht(p),green:Ht(v),blue:Ht(d),alpha:e.alpha+(t.alpha-e.alpha)*r}}return{red:e.red+(t.red-e.red)*r,green:e.green+(t.green-e.green)*r,blue:e.blue+(t.blue-e.blue)*r,alpha:e.alpha+(t.alpha-e.alpha)*r}}function pe(e,t,a){let n=e;return n<t&&(n=t),n>a&&(n=a),n}function Fe(e,t){let a=10**t;return Math.round(e*a)/a}function Pe(e){return Number.isFinite(e)?e.toString():"0"}function Yt(e){let t=pe(e,0,255).toString(16);return t.length===1?"0"+t:t}function ca(e){if(typeof e!="string")return;let t=Number.parseFloat(e);return Number.isFinite(t)?t:void 0}function fa(e,t,a,n=!0){let r=a-t;if(r===0)return 0;let g=(e-t)/r;return n?pe(g,0,1):g}var _o="http://www.w3.org/2000/svg";function ha(e){if(typeof document>"u")throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");let t=document.createElementNS(_o,"svg");t.setAttribute("width","0"),t.setAttribute("height","0"),t.setAttribute("viewBox","0 0 0 0"),t.style.position="absolute",t.style.left="-10000px",t.style.top="-10000px",t.style.visibility="hidden",t.style.pointerEvents="none";let a=document.createElementNS(_o,"path");return e==="M "&&(e="M 0,0"),a.setAttribute("d",e),t.appendChild(a),document.body.appendChild(t),{svgElement:t,pathElement:a}}function jt(e){if(e)try{e.svgElement?.remove?.()}catch{}}function pa(e,t,a){if(typeof a=="number"&&a>0)return a;let n=t*.75;n<.5&&(n=.5),n>8&&(n=8);let r=e/2;return n>r&&r>0&&(n=r),n<=0&&(n=1),n}function ga(e,t,a){if(typeof t=="number"&&t>=1)return Math.floor(t);let n=Math.ceil(e/(typeof a=="number"&&a>0?a:2));return n<1?1:n}function ma(e,t,a,n,r,g){let s=a-t,f=Math.ceil(s/n)+1;f<2&&(f=2),f>g&&(f=g);let u=f>1?s/(f-1):0,c=e.getPointAtLength(t),h=`M ${Pe(Fe(c.x,r))} ${Pe(Fe(c.y,r))}`;for(let p=1;p<f;p+=1){let v=t+p*u,d=e.getPointAtLength(v);h+=` L ${Pe(Fe(d.x,r))} ${Pe(Fe(d.y,r))}`}return h}function ba(e,t,a,n,r,g){let s=a-t,f=Math.ceil(s/n)+1;f<2&&(f=2),f>g&&(f=g);let u=f>1?s/(f-1):0,c=e.getPointAtLength(t),h=c.x,p=c.x,v=c.y,d=c.y,l=`M ${Pe(Fe(c.x,r))} ${Pe(Fe(c.y,r))}`;for(let w=1;w<f;w+=1){let o=t+w*u,P=e.getPointAtLength(o);P.x<h&&(h=P.x),P.x>p&&(p=P.x),P.y<v&&(v=P.y),P.y>d&&(d=P.y),l+=` L ${Pe(Fe(P.x,r))} ${Pe(Fe(P.y,r))}`}return{pathData:l,bounds:{minX:h,maxX:p,minY:v,maxY:d}}}function va(e){if(e.length===1)return[{position:0,rgba:e[0]}];let t=Array(e.length),a=e.length-1;for(let n=0;n<e.length;n+=1)t[n]={position:n/a,rgba:e[n]};return t}function ya(e,t,a,n){let r=pe(t,0,1),g=n;for(g<0&&(g=0),g>e.length-2&&(g=e.length-2);g>0&&r<e[g].position;)--g;for(;g<e.length-2&&r>e[g+1].position;)g+=1;let s=e[g],f=e[g+1],u=f.position-s.position,c=u>0?(r-s.position)/u:0;return qt(ka(s.rgba,f.rgba,c,a))}function ka(e,t,a,n){let r=pe(a,0,1);if(n==="linearRGB"){let g=He(e.red),s=He(e.green),f=He(e.blue),u=He(t.red),c=He(t.green),h=He(t.blue),p=g+(u-g)*r,v=s+(c-s)*r,d=f+(h-f)*r;return{red:Gt(p),green:Gt(v),blue:Gt(d),alpha:e.alpha+(t.alpha-e.alpha)*r}}return{red:e.red+(t.red-e.red)*r,green:e.green+(t.green-e.green)*r,blue:e.blue+(t.blue-e.blue)*r,alpha:e.alpha+(t.alpha-e.alpha)*r}}function He(e){let t=pe(e/255,0,1);return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Gt(e){let t=pe(e,0,1),a;return a=t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,pe(Math.round(a*255),0,255)}function qt(e){let t=pe(e.alpha,0,1),a=pe(Math.round(e.red),0,255),n=pe(Math.round(e.green),0,255),r=pe(Math.round(e.blue),0,255);return t>=1?`#${Yt(a)}${Yt(n)}${Yt(r)}`:`rgba(${a}, ${n}, ${r}, ${Fe(t,4).toString()})`}function wa(e){let t=`fill="${De(e.fill??"none")}"`,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let r=a[n];if(r==="stroke"||r==="d")continue;let g=e[r];t+=` ${r}="${De(g)}"`}return t}function So(e,t,a){return`<path d="${De(e)}" stroke="${De(t)}" ${a} />`}function Ca(e){let t=[],a=e.segmentAttributeMap.fill??"none";t.push(`fill="${De(a)}"`),t.push(`stroke="${De(e.stroke)}"`);for(let n of Object.keys(e.segmentAttributeMap)){if(n==="stroke"||n==="d")continue;let r=e.segmentAttributeMap[n];t.push(`${n}="${De(r)}"`)}return`<path d="${De(e.pathData)}" ${t.join(" ")} />`}function Fo(e,t){let a=[];for(let n of Object.keys(t))a.push(`${n}="${De(t[n])}"`);return`<g data-svg-path-gradient="true"${a.length?" "+a.join(" "):""}>${e.join("")}</g>`}function De(e){return String(e).replaceAll("&","&").replaceAll('"',""").replaceAll("<","<").replaceAll(">",">")}function xa(e,t=null,a={}){return new Promise((n,r)=>{let g=null;try{if(!e||typeof e!="string")throw Error("SvgPathGradientAsync: pathData must be a non-empty string.");let s=a.temperatureMode??null;if(s===null&&(!Array.isArray(t)||t.length===0))throw Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");if((a.returnMode??"string")!=="string")throw Error('SvgPathGradientAsync: only returnMode="string" is supported for the async version.');let f=typeof a.decimalPlaces=="number"?a.decimalPlaces:3,u=typeof a.flattenTolerance=="number"&&a.flattenTolerance>0?a.flattenTolerance:.25,c=a.attrs?{...a.attrs}:{},h=a.groupAttrs?{...a.groupAttrs}:{},p=ca(c["stroke-width"]),v=typeof a.strokeWidth=="number"&&a.strokeWidth>0?a.strokeWidth:typeof p=="number"&&p>0?p:1;g=ha(e);let d=g.pathElement,l=d.getTotalLength(),w=s===null?xo(t,a.colorReferenceElement):[];if(s===null&&(!(l>0)||w.length===1)){let T=Fo([Ca({pathData:e,stroke:qt(w[0]),segmentAttributeMap:c})],h);jt(g),n(T);return}let o=a.colorSpace??"linearRGB";if(s!==null){let T=a.temperatureColors;if(!Array.isArray(T)||T.length!==2)throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.")}let P=s===null?null:xo(a.temperatureColors,a.colorReferenceElement),k=s===null?(()=>{let T=va(w),O=Array(T.length);for(let ne=0;ne<T.length;ne+=1)O[ne]={position:T[ne].position,rgba:T[ne].rgba};return O})():[],i=pa(l,v,a.maxSegmentLength),C=ga(l,a.segments,i),S=l/C,m=typeof a.overlap=="number"&&a.overlap>=0?a.overlap:v*.5,_=S*.45;m>_&&(m=_);let z=typeof a.samplePointLimitPerSegment=="number"&&a.samplePointLimitPerSegment>10?a.samplePointLimitPerSegment:250,B=wa(c),E=[],V=s===null?null:[],I=s===null?null:[],G=0,$=s===null?k.length-2:0,W=0,M=()=>{let T=performance.now(),O=typeof a.frameBudgetMs=="number"?a.frameBudgetMs:8;for(;W<C&&performance.now()-T<O;){let te=W*S,oe=(W+1)*S,J=te,le=oe;if(W!==0&&(J=te-m),W!==C-1&&(le=oe+m),J=pe(J,0,l),le=pe(le,0,l),le>J)if(s!==null){let H=ba(d,J,le,u,f,z);V.push(H.pathData),I.push(H.bounds)}else{let H=(J+le)*.5/l;for(;G<$&&H>k[G+1].position;)G+=1;let j=ya(k,H,o,G),ae=ma(d,J,le,u,f,z);E.push(So(ae,j,B))}W+=1}if(W<C){requestAnimationFrame(M);return}if(s!==null){let te=1/0,oe=-1/0;for(let H=0;H<I.length;H+=1){let j=I[H],ae=s==="vertical"?j.minY:j.minX,ie=s==="vertical"?j.maxY:j.maxX;ae<te&&(te=ae),ie>oe&&(oe=ie)}let J=P[0],le=P[1];E.length=0;for(let H=0;H<I.length;H+=1){let j=I[H],ae=fa(((s==="vertical"?j.minY:j.minX)+(s==="vertical"?j.maxY:j.maxX))*.5,te,oe,!0),ie=qt(s==="vertical"?Ao(J,le,ae,o):Ao(le,J,ae,o)),ge=V[H];E.push(So(ge,ie,B))}}let ne=Fo(E,h);jt(g),n(ne)};requestAnimationFrame(M)}catch(s){jt(g),r(s)}})}var Aa=["innerHTML"],_a={__name:"SparklineGradientPath",props:{svgPathData:{type:String,required:!0},enabled:{type:Boolean,required:!0},strokeWidth:{type:Number,required:!0},highColor:{type:String,required:!0},lowColor:{type:String,required:!0},segments:{type:Number,required:!0}},setup(e){let t=e,a=Y(""),n=0;return he(()=>[t.enabled,t.svgPathData,t.strokeWidth,t.highColor,t.lowColor,t.segments],async([r])=>{let g=++n;if(!r){a.value="";return}let s=await xa(t.svgPathData,null,{segments:t.segments,temperatureMode:"vertical",temperatureColors:[t.highColor,t.lowColor],attrs:{"stroke-width":t.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},groupAttrs:{class:"vue-ui-sparkline-gradient"}});g===n&&(a.value=s)},{immediate:!0}),(r,g)=>(x(),L("g",{innerHTML:a.value},null,8,Aa))}},Sa=["id"],Fa=["id"],Da={style:{position:"relative"}},La=["xmlns","viewBox","aria-describedby"],Ea=["width","height"],Pa=["id"],Ta=["stop-color"],$a=["stop-color"],Ma=["id"],Ra=["stop-color"],za=["stop-color"],Na=["id"],Oa=["stop-color"],Ia=["stop-color"],Wa=["id"],Ba=["id"],Va=["stop-color","offset"],Ua={key:1},Ha=["d","fill"],Ya=["d","fill"],ja=["id","d","stroke-width"],Ga=["d","stroke","stroke-width","stroke-dasharray"],Xa=["d","stroke","stroke-width"],qa=["id","d","stroke-width"],Ka=["d","stroke","stroke-width","stroke-dasharray"],Za=["d","stroke","stroke-width"],Qa=["x","y","width","height","fill","rx"],Ja=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],er=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],tr=["cx","cy","r","fill","stroke","stroke-width"],or=["x","y","font-size","font-weight","fill"],lr=["x","y","height","width","onMouseenter","onMouseleave","onClick"],ar={key:0,style:{position:"absolute",top:"100%",left:"0",width:"100%"},"data-dom-to-png-ignore":"","aria-hidden":"true"},rr=Zt({__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0},heightRatio:{type:Number,default:1},forcedPadding:{type:Number,default:30}},emits:["hoverIndex","selectDatapoint"],setup(e,{emit:t}){let a=fo(()=>ho(()=>import("./CBU7sHLx.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(b=>b.t)),n=fo(()=>ho(()=>import("./1bK2R2pL.js"),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10]),import.meta.url)),{vue_ui_sparkline:r}=Cl(),{isThemeValid:g,warnInvalidTheme:s}=$l(),f=Wl(),u=e,c=R(()=>Array.isArray(u.dataset)&&u.dataset.length>0),h=Y(ul()),p=Y(null),v=Y(null),d=Y(null),l=Y(null),w=Y(null),o=Y(_());function P(b){return u.config?.skeletonDataset&&Array.isArray(u.config.skeletonDataset)?u.config.skeletonDataset.map(F=>({period:"-",value:F})):kl(b).map(F=>({period:"-",value:F}))}let k=R(()=>wt({defaultConfig:{gradientPath:{show:!1},temperatureColors:{show:!1},style:{backgroundColor:"#99999930",scaleMin:0,scaleMax:null,animation:{show:!1},line:{color:"#AAAAAA",pulse:{show:!1},dashIndices:[]},bar:{color:"#AAAAAA"},area:{color:"#CACACA"},zeroLine:{color:"#6A6A6A"},dataLabel:{show:!1},tooltip:{show:!1}}},userConfig:o.value.skeletonConfig??{}})),{loading:i,FINAL_DATASET:C,manualLoading:S}=Dl({...Bo(u),FINAL_CONFIG:o,prepareConfig:_,callback:()=>{Promise.resolve().then(async()=>{await ke(),Xe()})},skeletonDataset:P(12),skeletonConfig:wt({defaultConfig:o.value,userConfig:k.value})}),{svgRef:m}=Il({config:o.value.style.title});function _(){let b=Vt({userConfig:u.config,defaultConfig:r}),F={},D=b.theme;if(D)if(!g.value(b))s(b),F=b;else{let N=Vt({userConfig:ql[D]||u.config,defaultConfig:b});F={...Vt({userConfig:u.config,defaultConfig:N})}}else F=b;return F}let z=R(()=>o.value?.style?.line.pulse||{}),B=R(()=>`${Math.max(200,Number(z.value.durationMs)||4e3)/1e3}s`),E=Y(0),V=R(()=>z.value?.begin||"0ms"),I=Y("0;1"),G=R(()=>z.value?.loop===!1?"1":"indefinite"),$=R(()=>z.value?.loop===!1?"freeze":void 0),W=R(()=>z.value.trail.show&&ne.value.lengthPx||1),M=R(()=>!!z.value?.show&&!de.value&&!f.value&&!i.value&&(U.value?.length||0)>1);function T(){if(!M.value){E.value=0;return}let b=m.value;if(!b)return;let F=`#${Te.value}`,D=b.querySelector?.(F);if(D&&typeof D.getTotalLength=="function"){let N=D.getTotalLength();Number.isFinite(N)&&N>0&&(E.value=N);return}requestAnimationFrame(()=>{let N=b.querySelector?.(F);if(N&&typeof N.getTotalLength=="function"){let Q=N.getTotalLength();Number.isFinite(Q)&&Q>0&&(E.value=Q)}})}let O=R(()=>{let b=z.value?.easing||"ease-in-out",F={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]};return b==="linear"?{calcMode:"linear",keySplines:null,keyTimes:"0;1"}:b==="steps"?{calcMode:"discrete",keySplines:null,keyTimes:"0;1"}:{calcMode:"spline",keySplines:(b==="cubic-bezier"?Array.isArray(z.value?.cubicBezier)&&z.value.cubicBezier.length===4?z.value.cubicBezier:[.4,0,.2,1]:F[b]||F["ease-in-out"]).join(" "),keyTimes:"0;1"}}),ne=R(()=>{let b=z.value?.trail||{},F=o.value.style.line.strokeWidth||1;return{show:b.show!==!1,lengthPx:b.length,width:Math.max(1,Number(b.strokeWidth)||F*2.2),opacity:Math.min(1,Math.max(0,Number(b.opacity)??.6)),fadeIn:.5,fadeOut:.2}}),te=R(()=>Bt({data:C.value,threshold:o.value.downsample.threshold})),oe=R(()=>{if(!o.value.temperatureColors.show)return!1;let b=C.value.map(({value:F})=>F).filter(F=>Number.isFinite(F));return new Set(b).size<=1});he(()=>u.config,b=>{i.value||(o.value=_()),it(),q.value.chartWidth=o.value.style.chartWidth},{deep:!0}),he(()=>u.dataset,b=>{Array.isArray(b)&&b.length>0&&(S.value=!1),J.value=Bt({data:C.value.map(F=>({...F,value:[void 0].includes(F.value)?null:F.value})),threshold:o.value.downsample.threshold})},{deep:!0});let J=Y(le());function le(){return Bt({data:C.value.map(b=>o.value.style.animation.show&&C.value.length>1?{...b,value:null}:{...b,value:[void 0].includes(b.value)?null:b.value}),threshold:o.value.downsample.threshold})}let H=po(null),j=po(null),ae=Y(!1),ie=Y(0),ge=Y([]),je=Y(""),Ge=R(()=>{let b=(te.value||[]).map(N=>`${N.period}::${Number.isFinite(N.value)?N.value:0}`).join("|"),F=o.value?.style?.animation||{},D=!!o.value?.gradientPath?.show&&!o.value.temperatureColors.show;return`${b}#${!!F.show}#${F.animationFrames||0}#${D}`});function Oe(){ie.value&&=(cancelAnimationFrame(ie.value),0),ge.value.forEach(b=>clearTimeout(b)),ge.value=[],ae.value=!1}function Xe(){let b=o.value?.style?.animation||{},F=te.value||[],D=Ge.value,N=!!o.value.gradientPath.show&&!o.value.temperatureColors.show;if(D&&D===je.value&&(ae.value||J.value.length===F.length))return;if(Oe(),N||!b.show||i.value||F.length<=1){J.value=F,je.value=D;return}ae.value=!0,je.value=D,J.value=[];let Q=Math.max(1,Number(b.animationFrames)||1),tt=Math.max(1,Math.floor(Q/F.length)),ve=0,Re=()=>{if(D!==Ge.value){Oe();return}if(ve<F.length){J.value.push(F[ve]);let ot=setTimeout(()=>{ie.value=requestAnimationFrame(Re)},tt);ge.value.push(ot),ve+=1}else J.value=F,Oe()};ie.value=requestAnimationFrame(Re)}he(Ge,()=>{Xe()}),Ne(()=>{it(),Xe()}),kt(()=>{Oe()});let rt=Y(0);he(()=>i.value,async b=>{b||(await ke(),rt.value+=1)}),he(()=>ae.value,async b=>{b||i.value||(await ke(),rt.value+=1)});let Te=R(()=>`sparkline_line_path_${h.value}`),Ie=Y(!0);async function nt(){Ie.value=!1,await ke(),Ie.value=!0,await ke(),T()}let st=R(()=>!!o.value.debug);function it(){if(yo(u.dataset)?(ko({componentName:"VueUiSparkline",type:"dataset",debug:st.value}),S.value=!0):u.dataset.forEach((b,F)=>{dl({datasetObject:b,requiredAttributes:["period","value"]}).forEach(D=>{ko({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:D,index:F,debug:st.value})})}),yo(u.dataset)||(S.value=o.value.loading),o.value.responsive){let b=Ml(()=>{let{width:F,height:D}=Rl({chart:p.value,title:o.value.style.title.show&&u.showInfo?v.value:null,source:d.value});requestAnimationFrame(()=>{q.value.width=F,q.value.height=D,q.value.chartWidth=o.value.style.chartWidth/500*F,q.value.padding=u.forcedPadding/500*F})});H.value&&(j.value&&H.value.unobserve(j.value),H.value.disconnect()),H.value=new ResizeObserver(b),j.value=p.value.parentNode,H.value.observe(j.value)}}kt(()=>{H.value&&(j.value&&H.value.unobserve(j.value),H.value.disconnect())});let q=Y({height:80*u.heightRatio,width:500,chartWidth:o.value.style.chartWidth,padding:u.forcedPadding}),We=t,ee=R(()=>{let{top:b,right:F,bottom:D,left:N}=o.value.style.padding;return{top:b,left:N,right:q.value.width-F,bottom:q.value.height-D,start:u.showInfo&&o.value.style.dataLabel.show&&o.value.style.dataLabel.position==="left"?q.value.width-q.value.chartWidth+N:q.value.padding+N,width:u.showInfo&&o.value.style.dataLabel.show?q.value.chartWidth-N-F:q.value.width-q.value.padding-N-F,height:q.value.height-b-D}}),qe=R(()=>[null,void 0].includes(o.value.style.scaleMin)?Math.min(...J.value.map(b=>isNaN(b.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(b.value)?0:b.value||0)):o.value.style.scaleMin),xt=R(()=>[null,void 0].includes(o.value.style.scaleMax)?Math.max(...J.value.map(b=>isNaN(b.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(b.value)?0:b.value||0)):o.value.style.scaleMax),$e=R(()=>{let b=qe.value>=0?0:qe.value;return Math.abs(b)}),ut=R(()=>xt.value+$e.value),Le=R(()=>ee.value.bottom-ee.value.height*Ke($e.value));function Ke(b){return isNaN(b/ut.value)?0:b/ut.value}let Ee=R(()=>te.value.length-1||1),Me=Y([]),dt=0;Do(()=>{let b=++dt;(async()=>{let F=await Fl({values:te.value.map(D=>D.period),maxDatapoints:te.value.length,formatter:o.value.style.dataLabel.datetimeFormatter,start:0,end:te.value.length});b===dt&&(Me.value=F)})()});let U=R(()=>J.value.map((b,F)=>{let D=isNaN(b.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(b.value)?0:b.value||0,N=ee.value.width/Ee.value;return{value:b.value,absoluteValue:D,period:Me.value&&Me.value[F]&&Me.value[F].text?Me.value[F].text:b.period,plotValue:D+$e.value,toMax:Ke(D+$e.value),x:ee.value.start+F*N,y:ee.value.bottom-ee.value.height*Ke(D+$e.value),id:`plot_${h.value}_${F}`,color:de.value?o.value.style.bar.color:o.value.style.area.useGradient?pt(o.value.style.line.color,.05*(1-F/Ee.value)):o.value.style.line.color,width:N}})),ct=R(()=>u.selectedIndex!==void 0&&u.selectedIndex!==null&&u.selectedIndex>=0&&u.selectedIndex<U.value.length?u.selectedIndex:w.value!==void 0&&w.value!==null&&w.value>=0&&w.value<U.value.length?w.value:null),At=R(()=>{let b={x:U.value[0].x||0,y:(q.value.height||0)-6},F={x:U.value[U.value.length-1].x||0,y:(q.value.height||0)-6},D=[];return U.value.forEach(N=>{D.push(`${N.x||0},${N.y||0} `)}),[b.x,b.y,...D,F.x,F.y].toString()}),X=Y(void 0),_e=Y(void 0);function Ze(b,F){o.value.events.datapointEnter&&o.value.events.datapointEnter({datapoint:b,seriesIndex:F}),w.value=F,l.value=F,X.value=b,_e.value||=b,We("hoverIndex",{index:F})}function _t(b,F){o.value.events.datapointLeave&&o.value.events.datapointLeave({datapoint:b,seriesIndex:F}),_e.value=X.value,X.value=void 0,w.value=null,l.value=null,We("hoverIndex",{index:void 0})}let xe=R(()=>{if(c.value){let b=U.value.map(D=>D.absoluteValue),F=b.reduce((D,N)=>D+N,0);return{latest:U.value[U.value.length-1]?U.value[U.value.length-1].absoluteValue:0,sum:F,average:F/U.value.length,median:sl(b),trend:nl(U.value.map(({x:D,y:N,absoluteValue:Q})=>({x:D,y:N,value:Q}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),ft=R(()=>c.value?o.value.style.dataLabel.valueType==="latest"?xe.value.latest:o.value.style.dataLabel.valueType==="sum"?xe.value.sum:o.value.style.dataLabel.valueType==="average"?xe.value.average:0:0),de=R(()=>o.value.type&&o.value.type==="bar");function St(b,F){o.value.events.datapointClick&&o.value.events.datapointClick({datapoint:b,seriesIndex:F}),We("selectDatapoint",{datapoint:b,index:F})}let Be=R(()=>Array.isArray(o.value.style.line.dashIndices)&&o.value.style.line.dashIndices.length>0),Qe=R(()=>de.value?"":vo(U.value)),Je=R(()=>de.value?"":il(U.value)),Ft=R(()=>de.value||!Be.value?[]:yl(U.value,o.value.style.line.dashIndices)),Dt=R(()=>de.value||!Be.value?[]:pl(U.value,o.value.style.line.dashIndices)),ht=R(()=>de.value||!o.value.gradientPath.show||o.value.temperatureColors.show?"":`M ${(o.value.style.line.smooth?Qe.value:Je.value)||"0,0"}`),be=R(()=>!o.value.temperatureColors.show||oe.value||!o.value.temperatureColors.colors.length?null:o.value.temperatureColors.colors.map(b=>Ro(b)));he(()=>[M.value,Te.value,U.value.length,q.value.width,q.value.height,o.value?.style?.line?.smooth],async()=>{await ke(),T()},{immediate:!0}),Ne(async()=>{await ke(),T()}),he(()=>i.value,async b=>{b||await nt()}),he(()=>ae.value,async b=>{b||i.value||await nt()}),he(()=>u.selectedIndex,b=>{if(b==null){w.value=null,l.value=null,X.value=void 0;return}if(b<0||b>=U.value.length)return;let F=U.value[b];F&&(w.value=b,l.value=b,X.value=F)});let Ve=Y(!1);function Lt(){let b=ct.value;if(b!==null&&b>=0&&b<U.value.length){let F=U.value[b];if(F){l.value=b,X.value=F,w.value=b,Ve.value=!0;return}}l.value=null,!X.value&&U.value.length&&Ze(U.value.at(-1),U.value.length-1),Ve.value=!0}function Et(){_e.value=X.value,(u.selectedIndex===void 0||u.selectedIndex===null)&&(l.value=null,X.value=void 0,w.value=null,We("hoverIndex",{index:void 0})),Ve.value=!1}function Pt(b){if(!m.value||document.activeElement!==m.value)return;_e.value=X.value;let F=b.key==="ArrowLeft",D=b.key==="ArrowRight";if(!F&&!D)return;let N=U.value.length;if(!N)return;b.preventDefault(),b.stopPropagation();let Q=l.value,tt=Q!==null&&Q>=0&&Q<N,ve=X.value?U.value.findIndex(ot=>ot.id===X.value.id):-1;tt?D?(Q+=1,Q>=N&&(Q=0)):F&&(--Q,Q<0&&(Q=N-1)):ve!==null&&ve>=0&&ve<N?(Q=D?ve+1:ve-1,Q>=N&&(Q=0),Q<0&&(Q=N-1)):Q=D?0:N-1;let Re=U.value[Q];Re&&(l.value=Q,Ze(Re,Q))}let et=R(()=>({headers:[o.value.translations.period,o.value.translations.value],rows:U.value.map(b=>[b.period,b.absoluteValue])}));return(b,F)=>(x(),L("div",{ref_key:"sparklineChart",ref:p,class:"vue-data-ui-component vue-ui-sparkline",id:h.value,style:ye(`width:100%;font-family:${o.value.style.fontFamily};`)},[y("p",{id:`chart-instructions-${h.value}`,class:"sr-only"},Z(o.value.a11y.translations.keyboardNavigation),9,Fa),et.value?.rows?.length?(x(),se(Ol,{key:0,uid:h.value,head:et.value.headers,body:et.value.rows,notice:o.value.a11y.translations.tableAvailable,caption:o.value.a11y.translations.tableCaption},null,8,["uid","head","body","notice","caption"])):K("",!0),Se(b.$slots,"before",Tt($t({selected:X.value,latest:xe.value.latest,sum:xe.value.sum,average:xe.value.average,median:xe.value.median,trend:xe.value.trend})),void 0,!0),o.value.style.title.show&&e.showInfo?(x(),L("div",{key:1,ref_key:"chartTitle",ref:v,class:"vue-ui-sparkline-title",style:ye(`display:flex;align-items:center;width:100%;color:${o.value.style.title.color};background:${o.value.style.backgroundColor};justify-content:${o.value.style.title.textAlign==="left"?"flex-start":o.value.style.title.textAlign==="right"?"flex-end":"center"};height:${o.value.style.title.fontSize*2}px;font-size:${o.value.style.title.fontSize}px;font-weight:${o.value.style.title.bold?"bold":"normal"};`)},[y("span",{style:ye(`padding:${o.value.style.title.textAlign==="left"?"0 0 0 12px":o.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},Z(X.value?X.value.period:o.value.style.title.text),5)],4)):K("",!0),y("div",Da,[(x(),L("svg",{ref_key:"svgRef",ref:m,xmlns:A(fl),viewBox:`0 0 ${q.value.width} ${q.value.height}`,style:ye(`background:${o.value.style.backgroundColor};overflow:visible;direction:ltr`),tabindex:"0","aria-describedby":`chart-instructions-${h.value}`,onMouseleave:F[0]||=D=>_e.value=void 0,onFocus:Lt,onBlur:Et,onKeydown:Pt},[Ae(A(a)),b.$slots["chart-background"]?(x(),L("foreignObject",{key:0,x:0,y:0,width:q.value.width<=0?10:q.value.width,height:q.value.height<=0?10:q.value.height,style:{pointerEvents:"none"}},[Se(b.$slots,"chart-background",{},void 0,!0)],8,Ea)):K("",!0),y("defs",null,[y("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${h.value}`},[y("stop",{offset:"0%","stop-color":A(mt)(A(pt)(o.value.style.area.color,.05),o.value.style.area.opacity)},null,8,Ta),y("stop",{offset:"100%","stop-color":A(mt)(o.value.style.area.color,o.value.style.area.opacity)},null,8,$a)],8,Pa),y("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${h.value}`},[y("stop",{offset:"0%","stop-color":o.value.style.bar.color},null,8,Ra),y("stop",{offset:"100%","stop-color":A(pt)(o.value.style.bar.color,.05)},null,8,za)],8,Ma),y("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${h.value}`},[y("stop",{offset:"0%","stop-color":A(pt)(o.value.style.bar.color,.05)},null,8,Oa),y("stop",{offset:"100%","stop-color":o.value.style.bar.color},null,8,Ia)],8,Na),y("filter",{id:`sparkline_pulse_glow_${h.value}`,filterUnits:"userSpaceOnUse",x:"-50",y:"-50",width:"100",height:"100"},[...F[1]||=[y("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"},null,-1),y("feMerge",null,[y("feMergeNode",{in:"blur"}),y("feMergeNode",{in:"SourceGraphic"})],-1)]],8,Wa),o.value.temperatureColors.show&&be.value&&!oe.value?(x(),L("linearGradient",{key:0,id:`temperature_grad_sparkline_${h.value}`,gradientTransform:"rotate(90)"},[(x(!0),L(re,null,me(be.value,(D,N)=>(x(),L("stop",{key:`temperature_grad_stop_${N}_${h.value}`,"stop-color":D,offset:A(wl)(N,be.value.length)},null,8,Va))),128))],8,Ba)):K("",!0)]),o.value.style.area.show&&!de.value&&U.value[0]&&U.value.length>1?(x(),L("g",Ua,[o.value.style.line.smooth?(x(),L("path",{key:0,class:"vue-ui-sparkline-area",d:`M ${U.value[0].x},${ee.value.bottom} ${A(vo)(U.value)} L ${U.value.at(-1).x},${ee.value.bottom} Z`,fill:o.value.style.area.useGradient?`url(#sparkline_gradient_${h.value})`:A(mt)(o.value.style.area.color,o.value.style.area.opacity),"stroke-linecap":"round","stroke-linejoin":"round",style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Ha)):(x(),L("path",{key:1,class:"vue-ui-sparkline-area",d:`M${At.value}Z`,fill:o.value.style.area.useGradient?`url(#sparkline_gradient_${h.value})`:A(mt)(o.value.style.area.color,o.value.style.area.opacity),"stroke-linecap":"round","stroke-linejoin":"round",style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Ya))])):K("",!0),o.value.style.line.smooth&&!de.value?(x(),L(re,{key:2},[y("path",{id:Te.value,d:`M ${Qe.value||"0,0"}`,fill:"none",stroke:"transparent","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ja),Be.value?(x(!0),L(re,{key:0},me(Ft.value,D=>(x(),L("path",{key:D.path,class:"vue-ui-sparkline-path",d:`M ${D.path}`,stroke:be.value?`url(#temperature_grad_sparkline_${h.value})`:o.value.style.line.color,fill:"none","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":D.dashed?o.value.style.line.dashArray:0,style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Ga))),128)):(x(),L("path",{key:1,class:"vue-ui-sparkline-path",d:`M ${Qe.value||"0,0"}`,stroke:be.value?`url(#temperature_grad_sparkline_${h.value})`:o.value.style.line.color,fill:"none","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Xa))],64)):K("",!0),!o.value.style.line.smooth&&!de.value?(x(),L(re,{key:3},[y("path",{id:Te.value,d:`M ${Je.value||"0,0"}`,fill:"none",stroke:"transparent","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,qa),Be.value?(x(!0),L(re,{key:0},me(Dt.value,D=>(x(),L("path",{key:D.path,class:"vue-ui-sparkline-path",d:`M ${D.path}`,stroke:be.value?`url(#temperature_grad_sparkline_${h.value})`:o.value.style.line.color,fill:"none","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":D.dashed?o.value.style.line.dashArray*2:0,style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Ka))),128)):(x(),L("path",{key:1,class:"vue-ui-sparkline-path",d:`M ${Je.value||"0,0"}`,stroke:be.value?`url(#temperature_grad_sparkline_${h.value})`:o.value.style.line.color,fill:"none","stroke-width":o.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",style:ye({transition:A(i)?void 0:"all 0.2s"})},null,12,Za))],64)):K("",!0),ht.value&&!be.value?(x(),se(_a,{key:4,svgPathData:ht.value,enabled:o.value.gradientPath.show&&!de.value&&!be.value,strokeWidth:o.value.style.line.strokeWidth,highColor:o.value.gradientPath.colors.high,lowColor:o.value.gradientPath.colors.low,segments:o.value.gradientPath.segments},null,8,["svgPathData","enabled","strokeWidth","highColor","lowColor","segments"])):K("",!0),Ie.value&&M.value?(x(),se(ra,{key:5,uid:h.value,svgRef:A(m),pulsePathId:Te.value,pulsePathLength:E.value,pulseDur:B.value,pulseBegin:V.value,pulseRepeatCount:G.value,pulseFillMode:$.value,pulseKeyPoints:I.value,pulseMotion:O.value,pulse:z.value,pulseTrail:ne.value,pulseTrailLength:W.value,prefersReducedMotion:A(f),loading:A(i),isBar:de.value},null,8,["uid","svgRef","pulsePathId","pulsePathLength","pulseDur","pulseBegin","pulseRepeatCount","pulseFillMode","pulseKeyPoints","pulseMotion","pulse","pulseTrail","pulseTrailLength","prefersReducedMotion","loading","isBar"])):K("",!0),(x(!0),L(re,null,me(U.value,(D,N)=>(x(),L("g",null,[de.value?(x(),L("rect",{key:0,x:D.x-D.width/2,y:isNaN(D.absoluteValue>0?D.y:Le.value)?0:D.absoluteValue>0?D.y:Le.value,width:D.width,height:isNaN(Math.abs(D.y-Le.value))?0:Math.abs(D.y-Le.value),fill:D.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${h.value})`:`url(#sparkline_bar_gradient_neg_${h.value})`,rx:o.value.style.bar.borderRadius},null,8,Qa)):K("",!0),o.value.style.verticalIndicator.show&&(X.value&&D.id===X.value.id||ct.value===N)?(x(),L("line",{key:1,x1:D.x,x2:D.x,y1:ee.value.top-6,y2:ee.value.bottom,stroke:o.value.style.verticalIndicator.color||D.color,"stroke-width":o.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":o.value.style.verticalIndicator.strokeDasharray||0},null,8,Ja)):K("",!0)]))),256)),qe.value<0?(x(),L("line",{key:6,x1:ee.value.start,x2:ee.value.start+ee.value.width,y1:A(go)(Le.value,ee.value.bottom),y2:A(go)(Le.value,ee.value.bottom),stroke:o.value.style.zeroLine.color,"stroke-dasharray":o.value.style.zeroLine.strokeWidth*2,"stroke-width":o.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,er)):K("",!0),o.value.style.plot.show?(x(!0),L(re,{key:7},me(U.value,(D,N)=>(x(),L("g",null,[X.value&&D.id===X.value.id||e.selectedIndex===N||A(C).length===1?(x(),L("circle",{key:0,cx:D.x,cy:D.y,r:o.value.style.plot.radius,fill:D.color,stroke:o.value.style.plot.stroke,"stroke-width":o.value.style.plot.strokeWidth},null,8,tr)):K("",!0)]))),256)):K("",!0),e.showInfo&&o.value.style.dataLabel.show?(x(),L("text",{key:8,x:o.value.style.dataLabel.position==="left"?12+o.value.style.dataLabel.offsetX:ee.value.width+12+o.value.style.dataLabel.offsetX,y:q.value.height/2+o.value.style.dataLabel.fontSize/2.5+o.value.style.dataLabel.offsetY,"font-size":o.value.style.dataLabel.fontSize,"font-weight":o.value.style.dataLabel.bold?"bold":"normal",fill:o.value.style.dataLabel.color},Z(X.value?A(Wt)(o.value.style.dataLabel.formatter,X.value.absoluteValue,A(It)({p:o.value.style.dataLabel.prefix,v:X.value.absoluteValue,s:o.value.style.dataLabel.suffix,r:o.value.style.dataLabel.roundingValue}),{datapoint:X.value}):A(Wt)(o.value.style.dataLabel.formatter,ft.value,A(It)({p:o.value.style.dataLabel.prefix,v:ft.value,s:o.value.style.dataLabel.suffix,r:o.value.style.dataLabel.roundingValue}))),9,or)):K("",!0),(x(!0),L(re,null,me(U.value,(D,N)=>(x(),L("rect",{x:D.x-(ee.value.width/(Ee.value+1)>q.value.padding?q.value.padding:ee.value.width/(Ee.value+1))/2,y:ee.value.top-6,height:ee.value.height+6,width:ee.value.width/(Ee.value+1)>q.value.padding?q.value.padding:ee.value.width/(Ee.value+1),fill:"transparent",onMouseenter:()=>Ze(D,N),onMouseleave:()=>_t(D,N),onClick:()=>St(D,N)},null,40,lr))),256)),Se(b.$slots,"svg",{svg:q.value},void 0,!0)],44,La)),b.$slots.hint?(x(),L("div",ar,[Se(b.$slots,"hint",Tt($t({hint:o.value.a11y.translations.keyboardNavigation,isVisible:Ve.value})),void 0,!0)])):K("",!0)]),X.value&&o.value.style.tooltip.show?(x(),se(A(n),{key:2,x:X.value.x,y:X.value.y,prevX:_e.value.x,prevY:_e.value.y,offsetY:o.value.style.plot.radius*3+o.value.style.tooltip.offsetY,svgRef:A(m),background:o.value.style.tooltip.backgroundColor,color:o.value.style.tooltip.color,fontSize:o.value.style.tooltip.fontSize,borderWidth:o.value.style.tooltip.borderWidth,borderColor:o.value.style.tooltip.borderColor,borderRadius:o.value.style.tooltip.borderRadius,backgroundOpacity:o.value.style.tooltip.backgroundOpacity},{default:we(()=>[Se(b.$slots,"tooltip",Tt($t({...X.value})),()=>[lt(Z(X.value.period)+": "+Z(A(Wt)(o.value.style.dataLabel.formatter,X.value.absoluteValue,A(It)({p:o.value.style.dataLabel.prefix,v:X.value.absoluteValue,s:o.value.style.dataLabel.suffix,r:o.value.style.dataLabel.roundingValue}),{datapoint:X.value})),1)],!0)]),_:3},8,["x","y","prevX","prevY","offsetY","svgRef","background","color","fontSize","borderWidth","borderColor","borderRadius","backgroundOpacity"])):K("",!0),b.$slots.source?(x(),L("div",{key:3,ref_key:"source",ref:d,dir:"auto"},[Se(b.$slots,"source",{},void 0,!0)],512)):K("",!0),Se(b.$slots,"skeleton",{},()=>[A(i)?(x(),se(Tl,{key:0})):K("",!0)],!0)],12,Sa))}},[["__scopeId","data-v-274de18b"]]);const nr={class:"absolute inset-0 overflow-hidden pointer-none","data-testid":"activity-sparkline"},sr=10,ir=at({__name:"ActivitySparkline",props:{points:{},color:{default:"#0969da"}},setup(e){const t=e,a=Y(!1);Ne(async()=>{await ke(),a.value=!0});const n=R(()=>t.points.map((f,u)=>({period:String(u),value:f}))),r=R(()=>Math.max(sr,...t.points)),g=R(()=>-r.value*.05),s=R(()=>({responsive:!0,type:"line",style:{fontFamily:"inherit",backgroundColor:"transparent",padding:{top:4,right:0,bottom:5,left:0},scaleMin:g.value,scaleMax:r.value,animation:{show:!1},line:{color:t.color,strokeWidth:1.25,smooth:!0},area:{show:!1},plot:{show:!1,radius:0,stroke:"transparent",strokeWidth:0},zeroLine:{color:"transparent",strokeWidth:0},verticalIndicator:{show:!1,color:"transparent",strokeWidth:0,strokeDasharray:0},dataLabel:{show:!1},title:{show:!1,text:""},tooltip:{show:!1}}}));return(f,u)=>(x(),L("div",nr,[a.value?(x(),se(A(rr),{key:0,dataset:n.value,config:s.value,"forced-padding":0},null,8,["dataset","config"])):K("",!0)]))}}),No=Object.assign(ir,{__name:"DisplayActivitySparkline"}),ur={type:"button",class:"panel-card text-left flex flex-col p-4 transition hover:border-active hover:shadow-md focus-visible:ring-2 focus-visible:ring-primary-500/40 outline-none relative overflow-hidden min-h-[120px]"},dr={key:0,class:"absolute top-0 left-0 right-0 h-0.5 overflow-hidden pointer-events-none z-2"},cr={key:1,class:"h-full bg-primary-500/60 animate-pulse",style:{width:"100%"}},fr={class:"absolute inset-0 op-25 dark:op-20 pointer-events-none color-active",style:{"mask-image":"linear-gradient(to bottom, transparent 0%, black 55%, black 88%, transparent 100%)","-webkit-mask-image":"linear-gradient(to bottom, transparent 0%, black 55%, black 88%, transparent 100%)"}},hr={class:"relative z-1 flex items-center gap-2 min-w-0"},pr=["title"],gr={key:0,class:"i-octicon-sync-16 animate-spin color-active text-sm",title:"Syncing…"},mr={key:1,class:"i-octicon-key-16 color-yellow-600 dark:color-yellow-400",title:"No GitHub token; sync disabled"},br={class:"relative z-1 mt-3 flex items-center gap-3 text-xs"},vr=["title"],yr={class:"font-mono tabular-nums color-base"},kr=["title"],wr=["title"],Cr={class:"font-mono tabular-nums color-base"},xr=["title"],Ar={class:"relative z-1 mt-2 flex flex-col gap-1 text-xs"},_r={class:"flex items-center gap-1.5 color-muted"},Sr={key:1,class:"color-faint"},Fr={class:"flex items-center gap-1.5 color-muted"},Dr={class:"color-active"},Lr={key:0,class:"font-mono tabular-nums color-active"},Er={key:2,class:"color-faint"},Pr=at({__name:"ProjectCard",props:{project:{}},setup(e){const t=e,a=Vo(t.project.id),n=Uo(()=>t.project.id),r=R(()=>a.syncing.value),g=R(()=>a.progress.value),s=R(()=>{const u=g.value?.percent;return typeof u!="number"?null:Math.round(Math.max(0,Math.min(1,u))*100)}),f=R(()=>n.data.value?.buckets??[]);return(u,c)=>{const h=No,p=Lo,v=$o;return x(),L("button",ur,[A(r)?(x(),L("div",dr,[A(s)!=null?(x(),L("div",{key:0,class:"h-full bg-primary-500 transition-all duration-300",style:ye({width:`${A(s)}%`})},null,4)):(x(),L("div",cr))])):K("",!0),y("div",fr,[Ae(h,{points:A(f)},null,8,["points"])]),y("div",hr,[Ae(p,{project:e.project,size:20,"fallback-class":"color-active"},null,8,["project"]),y("span",{class:"font-mono text-sm font-medium truncate",title:e.project.repo},Z(e.project.repo),9,pr),c[0]||(c[0]=y("div",{class:"flex-1"},null,-1)),A(r)?(x(),L("span",gr)):e.project.hasToken?K("",!0):(x(),L("span",mr))]),y("div",br,[y("span",{class:"flex items-center gap-1 color-muted",title:`${e.project.openIssues} open issue${e.project.openIssues===1?"":"s"}`},[c[1]||(c[1]=y("span",{class:"i-octicon-issue-opened-16"},null,-1)),y("span",yr,Z(e.project.openIssues),1),e.project.newIssuesToday>0?(x(),L("span",{key:0,class:"text-xs font-medium tabular-nums color-green-600 dark:color-green-400",title:`${e.project.newIssuesToday} opened today`,"data-testid":"hub-project-card-new-issues"},"+"+Z(e.project.newIssuesToday),9,kr)):K("",!0)],8,vr),y("span",{class:"flex items-center gap-1 color-muted",title:`${e.project.openPulls} open pull request${e.project.openPulls===1?"":"s"}`},[c[2]||(c[2]=y("span",{class:"i-octicon-git-pull-request-16"},null,-1)),y("span",Cr,Z(e.project.openPulls),1),e.project.newPullsToday>0?(x(),L("span",{key:0,class:"text-xs font-medium tabular-nums color-green-600 dark:color-green-400",title:`${e.project.newPullsToday} opened today`,"data-testid":"hub-project-card-new-pulls"},"+"+Z(e.project.newPullsToday),9,xr)):K("",!0)],8,wr)]),y("div",Ar,[y("div",_r,[c[3]||(c[3]=y("span",{class:"w-13 shrink-0"},"updated",-1)),e.project.lastActivityAt?(x(),se(v,{key:0,time:e.project.lastActivityAt,colorize:"freshness"},null,8,["time"])):(x(),L("span",Sr,"—"))]),y("div",Fr,[c[4]||(c[4]=y("span",{class:"w-13 shrink-0"},"synced",-1)),A(r)?(x(),L(re,{key:0},[y("span",Dr,[A(g)?.stage?(x(),L(re,{key:0},[lt(Z(A(g).stage),1)],64)):(x(),L(re,{key:1},[lt("now…")],64))]),A(s)!=null?(x(),L("span",Lr,Z(A(s))+"%",1)):K("",!0)],64)):e.project.lastSyncedAt?(x(),se(v,{key:1,time:e.project.lastSyncedAt,colorize:"staleness"},null,8,["time"])):(x(),L("span",Er,"never"))])])])}}}),Tr=Object.assign(Pr,{__name:"HubProjectCard"}),$r={class:"text-xs color-muted"},Mr={class:"px-5 py-2 border-b border-base"},Rr={key:2,class:"flex flex-col"},zr=["data-testid","data-path"],Nr={class:"flex-1 min-w-0"},Or=["title"],Ir=["disabled","aria-label","data-testid","onClick"],Wr=at({__name:"ProjectPicker",emits:["close"],setup(e,{emit:t}){const a=t,n=Eo(),r=Kt(),g=Y(!0),s=Y([]),f=Y(!1),u=Y(null),c=Y(""),h=Y(null);async function p(){if(r.hubRoots.value.length===0){s.value=[],u.value=null;return}f.value=!0,u.value=null;try{s.value=await n.$call("ghfs:hub-scan")}catch(w){u.value=w.message}finally{f.value=!1}}async function v(w){if(h.value)return;const o=!w.enabled;h.value=w.path;try{if(o)await n.$call("ghfs:hub-enable",w.path),w.enabled=!0;else{const P=r.projects.value.find(k=>k.path===w.path);P&&(await n.$call("ghfs:hub-disable",P.id),w.enabled=!1)}}catch(P){u.value=P.message}finally{h.value=null}}Ne(()=>{p()}),he(g,w=>{w||a("close")});const d=R(()=>{const w=c.value.trim().toLowerCase();return w?s.value.filter(o=>o.name.toLowerCase().includes(w)||o.path.toLowerCase().includes(w)):s.value}),l=R(()=>s.value.filter(w=>w.enabled).length);return(w,o)=>{const P=Ho,k=qo,i=To,C=Lo,S=Po;return x(),se(S,{open:A(g),"onUpdate:open":o[1]||(o[1]=m=>Ye(g)?g.value=m:null),icon:"i-ph-sliders-duotone",width:"w-[min(92vw,42rem)]","max-height":"max-h-[80vh]","data-testid":"hub-project-picker"},{header:we(()=>[o[2]||(o[2]=y("span",{class:"i-ph-sliders-duotone color-active shrink-0"},null,-1)),o[3]||(o[3]=y("span",{class:"font-medium text-sm"},"Manage hub projects",-1)),y("span",$r,Z(A(l))+" / "+Z(A(s).length)+" enabled",1)]),actions:we(()=>[Ae(P,{icon:"i-octicon-sync-16",size:"sm",tooltip:"Re-scan hub roots","aria-label":"Re-scan",disabled:A(f),spinning:A(f),onClick:p},null,8,["disabled","spinning"])]),footer:we(()=>[...o[10]||(o[10]=[y("span",{class:"text-xs color-muted flex-1"}," Changes save automatically. ",-1)])]),default:we(()=>[y("div",Mr,[Ae(k,{modelValue:A(c),"onUpdate:modelValue":o[0]||(o[0]=m=>Ye(c)?c.value=m:null),placeholder:"Filter by name or path…"},null,8,["modelValue"])]),A(f)?(x(),se(i,{key:0,size:"sm"},{default:we(()=>[...o[4]||(o[4]=[y("span",{class:"i-octicon-sync-16 animate-spin text-xl color-active mb-2"},null,-1),y("p",{class:"text-sm color-muted"},"Scanning for git repositories…",-1)])]),_:1})):A(u)?(x(),se(i,{key:1,icon:"i-ph-warning-duotone",color:"yellow",title:A(u)},null,8,["title"])):A(d).length?(x(),L("ul",Rr,[(x(!0),L(re,null,me(A(d),m=>(x(),L("li",{key:m.path,class:"flex items-center gap-3 px-5 py-2.5 border-b border-base last:border-b-0 hover:bg-active transition","data-testid":m.enabled?"hub-picker-enabled":"hub-picker-disabled","data-path":m.path},[Ae(C,{project:{id:m.path,repo:m.repo},"icon-data-url":m.iconDataUrl,size:32,class:vt(m.enabled?"ring-1 ring-primary-500/30":"")},null,8,["project","icon-data-url","class"]),y("div",Nr,[y("div",{class:vt(["text-sm font-medium font-mono truncate",m.enabled?"":"color-muted"])},Z(m.repo),3),y("div",{class:"text-[11px] color-faint font-mono truncate",title:m.path},Z(m.path),9,Or)]),y("button",{type:"button",class:vt(["btn-toggle-pill shrink-0",m.enabled?"btn-toggle-pill-on":"btn-toggle-pill-off"]),disabled:A(h)===m.path,"aria-label":m.enabled?`Remove ${m.name}`:`Add ${m.name}`,"data-testid":m.enabled?"hub-picker-toggle-remove":"hub-picker-toggle-add",onClick:_=>v(m)},[A(h)===m.path?(x(),L(re,{key:0},[o[5]||(o[5]=y("span",{class:"i-octicon-sync-16 animate-spin"},null,-1)),y("span",null,Z(m.enabled?"Removing…":"Adding…"),1)],64)):m.enabled?(x(),L(re,{key:1},[o[6]||(o[6]=y("span",{class:"i-ph-check-bold"},null,-1)),o[7]||(o[7]=y("span",null,"Enabled",-1))],64)):(x(),L(re,{key:2},[o[8]||(o[8]=y("span",{class:"i-ph-plus-bold"},null,-1)),o[9]||(o[9]=y("span",null,"Add",-1))],64))],10,Ir)],8,zr))),128))])):A(r).hubRoots.value.length===0?(x(),se(i,{key:3,icon:"i-ph-folder-duotone",title:"No hub roots configured.",message:"Add a hub root in Settings to scan for projects."})):(x(),se(i,{key:4,icon:"i-ph-magnifying-glass-duotone",title:A(c)?`No projects match “${A(c)}”.`:"No git repositories found in the configured hub roots."},null,8,["title"]))]),_:1},8,["open"])}}}),Br=Object.assign(Wr,{__name:"HubProjectPicker"}),Vr={class:"h-full flex flex-col","data-testid":"hub-home"},Ur={class:"flex-1 overflow-y-auto"},Hr={class:"max-w-6xl mx-auto px-5 py-6 flex flex-col gap-6"},Yr={class:"panel-card relative overflow-hidden px-5 py-4 flex flex-wrap items-center gap-x-6 gap-y-2","data-testid":"hub-summary"},jr={class:"absolute inset-0 op-25 dark:op-20 pointer-events-none color-active",style:{"mask-image":"linear-gradient(to bottom, transparent 0%, black 55%, black 88%, transparent 100%)","-webkit-mask-image":"linear-gradient(to bottom, transparent 0%, black 55%, black 88%, transparent 100%)"},"data-testid":"hub-summary-chart"},Gr={class:"relative z-1 flex flex-col leading-tight"},Xr={class:"text-2xl font-semibold tabular-nums"},qr={class:"relative z-1 flex flex-col leading-tight"},Kr={class:"flex items-baseline gap-1.5"},Zr={class:"text-2xl font-semibold tabular-nums"},Qr=["title"],Jr={class:"relative z-1 flex flex-col leading-tight"},en={class:"flex items-baseline gap-1.5"},tn={class:"text-2xl font-semibold tabular-nums"},on=["title"],ln={class:"relative z-1 flex flex-col leading-tight text-right"},an={class:"flex flex-col gap-3"},rn={class:"flex items-baseline gap-2"},nn={class:"color-muted text-xs"},sn=["disabled","onClick"],un=["disabled","onClick"],dn={key:1,class:"grid gap-3",style:{"grid-template-columns":"repeat(auto-fill, minmax(280px, 1fr))"}},cn={class:"px-5 py-4 flex flex-col gap-3 text-sm"},fn={class:"rounded border border-base bg-base/40 px-2.5 py-2 font-mono text-xs break-all","data-testid":"hub-add-cwd-modal-path"},hn=["disabled"],pn=["disabled"],gn=at({__name:"Home",setup(e){const t=Eo(),a=Kt(),n=Go(),r=R(()=>a.projects.value),g=R({get:()=>n.pickerOpen.value,set:m=>n.pickerOpen.value=m}),s=Y(0),f=Y(!1),u=Y(!1);let c=!1;const h=Xo(),p=R(()=>{let m=0,_=0,z=0,B=0,E=0,V=0;for(const I of r.value)m+=I.openIssues,_+=I.openPulls,z+=I.newIssuesToday??0,B+=I.newPullsToday??0,I.hasToken&&(E+=1),I.lastSyncedAt&&(V+=1);return{issues:m,pulls:_,newIssuesToday:z,newPullsToday:B,tokens:E,synced:V}}),v=R(()=>h.data.value?.buckets??[]),d=R(()=>{let m;for(const _ of r.value){const z=_.lastActivityAt??_.lastSyncedAt;z&&(!m||z>m)&&(m=z)}return m});Ne(async()=>{try{const m=await t.$call("ghfs:hub-info");a.setHubInfo(m),!m.launchCwdInRoots&&!c&&(f.value=!0)}catch{}try{const m=await t.$call("ghfs:list-projects");a.setProjects(m)}catch{}});async function l(){const m=a.launchCwd.value;if(!(!m||u.value)){u.value=!0;try{const _=await t.$call("ghfs:hub-add-root",m);a.setHubInfo(_),c=!0,f.value=!1}catch{}finally{u.value=!1}}}function w(){c=!0,f.value=!1}function o(m){jo(`/${m}`)}const P=Y([]);function k(m,_){if(!m)return;const z=m.$el??m;z instanceof HTMLButtonElement&&(P.value[_]=z)}function i(m){const _=r.value.length;if(_===0)return;const z=(m%_+_)%_;s.value=z,P.value[z]?.focus()}function C(m){i(s.value+m)}function S(m,_){if(m.key==="j"||m.key==="ArrowDown")m.preventDefault(),C(1);else if(m.key==="k"||m.key==="ArrowUp")m.preventDefault(),C(-1);else if(m.key==="ArrowRight")m.preventDefault(),C(1);else if(m.key==="ArrowLeft")m.preventDefault(),C(-1);else if(m.key==="g")m.preventDefault(),i(0);else if(m.key==="G")m.preventDefault(),i(r.value.length-1);else return;s.value=_}return(m,_)=>{const z=Io,B=No,E=$o,V=Yo,I=To,G=Tr,$=Br,W=Po;return x(),L("div",Vr,[Ae(z,{mode:"hub"}),y("main",Ur,[y("div",Hr,[y("section",Yr,[y("div",jr,[Ae(B,{points:A(v)},null,8,["points"])]),y("div",Gr,[_[2]||(_[2]=y("span",{class:"text-[11px] uppercase tracking-wide color-muted font-medium"},"Projects",-1)),y("span",Xr,Z(A(r).length),1)]),_[6]||(_[6]=y("span",{class:"relative z-1 h-8 border-l border-base mx-1"},null,-1)),y("div",qr,[_[3]||(_[3]=y("span",{class:"text-[11px] uppercase tracking-wide color-muted font-medium flex items-center gap-1"},[y("span",{class:"i-octicon-issue-opened-16"}),y("span",null,"Open issues")],-1)),y("span",Kr,[y("span",Zr,Z(A(p).issues),1),A(p).newIssuesToday>0?(x(),L("span",{key:0,class:"text-xs font-medium tabular-nums color-green-600 dark:color-green-400",title:`${A(p).newIssuesToday} opened today`,"data-testid":"hub-summary-new-issues"},"+"+Z(A(p).newIssuesToday),9,Qr)):K("",!0)])]),y("div",Jr,[_[4]||(_[4]=y("span",{class:"text-[11px] uppercase tracking-wide color-muted font-medium flex items-center gap-1"},[y("span",{class:"i-octicon-git-pull-request-16"}),y("span",null,"Open pull requests")],-1)),y("span",en,[y("span",tn,Z(A(p).pulls),1),A(p).newPullsToday>0?(x(),L("span",{key:0,class:"text-xs font-medium tabular-nums color-green-600 dark:color-green-400",title:`${A(p).newPullsToday} opened today`,"data-testid":"hub-summary-new-pulls"},"+"+Z(A(p).newPullsToday),9,on)):K("",!0)])]),_[7]||(_[7]=y("div",{class:"relative z-1 flex-1"},null,-1)),y("div",ln,[_[5]||(_[5]=y("span",{class:"text-[11px] uppercase tracking-wide color-muted font-medium"},"Last activity",-1)),Ae(E,{time:A(d)},null,8,["time"])])]),y("section",an,[y("div",rn,[_[8]||(_[8]=y("h2",{class:"text-sm font-semibold"},"Projects",-1)),y("span",nn,Z(A(r).length)+" enabled · sorted by recent activity",1),_[9]||(_[9]=y("div",{class:"flex-1"},null,-1)),A(r).length>0?(x(),se(V,{key:0,command:"hub.manage"},{default:we(({execute:M,disabled:T})=>[y("button",{class:"text-xs color-muted hover:color-active transition","data-testid":"hub-manage-projects",disabled:T,onClick:M}," + add or remove ",8,sn)]),_:1})):K("",!0)]),A(r).length===0?(x(),se(I,{key:0,icon:"i-octicon-repo-16",title:"No projects enabled yet",message:"Click Manage projects to scan this directory and choose which repositories appear in the hub."},{hint:we(()=>[Ae(V,{command:"hub.manage"},{default:we(({execute:M,disabled:T})=>[y("button",{class:"btn-primary text-xs flex items-center gap-1.5 mt-1","data-testid":"hub-empty-cta",disabled:T,onClick:M},[..._[10]||(_[10]=[y("span",{class:"i-ph-sliders-duotone"},null,-1),y("span",null,"Manage projects",-1)])],8,un)]),_:1})]),_:1})):(x(),L("div",dn,[(x(!0),L(re,null,me(A(r),(M,T)=>(x(),se(G,{key:M.id,ref_for:!0,ref:O=>k(O,T),project:M,"data-testid":"hub-project-card","data-project-id":M.id,"data-project-repo":M.repo,onClick:O=>o(M.repo),onKeydown:O=>S(O,T),onFocus:O=>s.value=T},null,8,["project","data-project-id","data-project-repo","onClick","onKeydown","onFocus"]))),128))]))])])]),A(g)?(x(),se($,{key:0,onClose:_[0]||(_[0]=M=>g.value=!1)})):K("",!0),A(f)?(x(),se(W,{key:1,open:A(f),"onUpdate:open":_[1]||(_[1]=M=>Ye(f)?f.value=M:null),icon:"i-ph-folder-plus-duotone",title:"Add this directory to hub roots?",width:"w-[min(92vw,32rem)]","data-testid":"hub-add-cwd-modal","close-on-backdrop":!1,"close-on-escape":!1,"hide-close":""},{footer:we(()=>[y("button",{type:"button",class:"btn-action-sm","data-testid":"hub-add-cwd-modal-skip",disabled:A(u),onClick:w}," Skip ",8,hn),y("button",{type:"button",class:"btn-primary text-sm flex items-center gap-1.5","data-testid":"hub-add-cwd-modal-add",disabled:A(u),onClick:l},[y("span",{class:vt(A(u)?"i-octicon-sync-16 animate-spin":"i-ph-plus-bold")},null,2),_[12]||(_[12]=y("span",null,"Add",-1))],8,pn)]),default:we(()=>[y("div",cn,[_[11]||(_[11]=y("p",{class:"color-muted"}," Add the directory the CLI was launched from to your hub roots? Projects under it will be scannable and you can enable them from Manage projects. ",-1)),y("div",fn,Z(A(a).launchCwd.value),1)])]),_:1},8,["open"])):K("",!0)])}}}),mn=Object.assign(gn,{__name:"HubHome"}),bn={key:2,class:"flex flex-col items-center justify-center h-full color-muted"},vn=at({__name:"index",setup(e){const t=Kt(),a=R(()=>t.capabilities.value?.mode==="hub"),n=R(()=>t.projects.value[0]?.id??"");return(r,g)=>{const s=mn,f=Ko;return A(a)?(x(),se(s,{key:0})):A(n)?(x(),se(f,{key:1,"project-id":A(n),"initial-number":null},null,8,["project-id"])):(x(),L("div",bn,[...g[0]||(g[0]=[y("p",{class:"text-sm"},"No project configured.",-1)])]))}}}),An=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"}));export{mt as Z,Zt as e,An as i,xn as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as j}from"./D4R7-XZQ.js";import{e as k,Y as v,G as w,o as a,c as u,h as n,a as m,C as h,j as r,R as A}from"./DHH7xZXJ.js";import"./DeX2bcSG.js";import"./D4yIuA0F.js";import"./BqmRGtwl.js";import"./DVC3GhaL.js";import"./BNh5okZH.js";const B={class:"h-full flex flex-col"},P={key:0,class:"flex flex-col items-center justify-center flex-1 color-muted"},$=k({__name:"[[number]]",setup(C){const e=v(),p=w(),i=A(),l=r(()=>String(Array.isArray(e.params.owner)?e.params.owner[0]:e.params.owner??"")),_=r(()=>String(Array.isArray(e.params.repo)?e.params.repo[0]:e.params.repo??"")),d=r(()=>{const o=e.params.number,t=Array.isArray(o)?o[0]:o,s=Number.parseInt(t??"",10);return Number.isFinite(s)?s:null}),f=r(()=>`${l.value}/${_.value}`.toLowerCase()),c=r(()=>i.projects.value.find(o=>o.repo.toLowerCase()===f.value)),b=r(()=>c.value?.id??""),x=r(()=>!!c.value);function y(){p.push("/")}return(o,t)=>{const s=j;return a(),u("div",B,[n(x)?(a(),h(s,{key:1,"project-id":n(b),"initial-number":n(d)},null,8,["project-id","initial-number"])):(a(),u("div",P,[t[0]||(t[0]=m("p",{class:"text-sm mb-3"},"Project not found.",-1)),m("button",{class:"btn-primary text-xs",onClick:y},"Back to hub")]))])}}});export{$ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as n,c as s,t as u,h as l}from"./DHH7xZXJ.js";var t=Object.defineProperty,i=(a,o)=>{let e={};for(var r in a)t(e,r,{get:a[r],enumerable:!0});return t(e,Symbol.toStringTag,{value:"Module"}),e},c="3.19.9",f=i({default:()=>m}),d={"aria-hidden":"true"},m={__name:"PackageVersion",setup(a){return(o,e)=>(n(),s("desc",d,"Composed with Vue Data UI "+u(l(c)),1))}};export{m as n,f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as A,f as ge,g as G,o as a,c as i,a as t,d as E,t as f,h as e,i as z,n as w,r as M,j as m,_ as be,k as K,l as ne,F as ie,b as y,m as re,p as oe,w as O,q as _e,s as de,T as he,v as Z,x as xe,y as ye,z as ke,A as Ce,B as we,C as B,D as je,E as se,G as $e,H as Ie,I as ze,J as De,K as Se,L as Pe,M as Oe,N as Ee,O as Me,P as Re,Q as ae,R as Be,S as le,U as qe,V as Ne}from"./DHH7xZXJ.js";import{_ as Te,p as Ue,a as Fe}from"./BNh5okZH.js";import{_ as W}from"./DlAUqK2U.js";import"./D4yIuA0F.js";const Ae={class:"h-full flex flex-col items-center justify-center gap-6 px-6"},Le={class:"text-center flex flex-col items-center gap-3"},He={class:"color-muted"},Ve={key:0},Xe={key:1},Qe={key:0,class:"text-sm text-red-500 dark:text-red-400"},Ze={key:1,class:"text-sm color-active flex items-center gap-2"},Ge={class:"flex items-center gap-3"},Ke=["disabled"],We={key:0},Ye={key:1},Je=A({__name:"Done",props:{pileSize:{},processedOps:{},hasMoreItems:{type:Boolean}},emits:["another","done"],setup(l,{emit:b}){const n=l,_=b,h=ge(),d=M(!1),r=M(null),C=M(!1),x=m(()=>n.processedOps.length);async function j(){const s=(await be(()=>import("./C2jkTI5u.js"),[],import.meta.url)).default,v=(D=0)=>{setTimeout(()=>{s({particleCount:120,spread:70,startVelocity:38,origin:{x:.5,y:.55},scalar:.9,ticks:220})},D)};v(0),v(280),v(560)}G(()=>{j()});async function $(){if(d.value||x.value===0)return;d.value=!0,r.value=null;const k=new Map;for(const s of n.processedOps){const v=k.get(s.projectId)??[];v.push(s.opId),k.set(s.projectId,v)}try{for(const[s,v]of k)await h.$call("ghfs:execute-queue",s,{entryIds:v,continueOnError:!0});C.value=!0}catch(s){r.value=s.message}finally{d.value=!1}}return(k,s)=>(a(),i("div",Ae,[t("div",Le,[s[2]||(s[2]=t("span",{class:"i-ph-trophy-duotone text-6xl color-active"},null,-1)),s[3]||(s[3]=t("h2",{class:"text-2xl font-medium"},"All done!",-1)),t("p",He,[E(" You finished a pile of "+f(l.pileSize)+" card"+f(l.pileSize===1?"":"s")+". ",1),e(x)>0?(a(),i("span",Ve,f(e(x))+" change"+f(e(x)===1?"":"s")+" queued. ",1)):(a(),i("span",Xe," No changes queued. "))])]),e(r)?(a(),i("div",Qe,f(e(r)),1)):z("",!0),e(C)?(a(),i("div",Ze,[...s[4]||(s[4]=[t("span",{class:"i-octicon-check-circle-16"},null,-1),E(" Queue executed. ",-1)])])):z("",!0),t("div",Ge,[e(x)>0&&!e(C)?(a(),i("button",{key:0,type:"button",class:"btn-primary text-sm",disabled:e(d),"data-testid":"card-done-execute",onClick:$},[t("span",{class:w(e(d)?"i-octicon-sync-16 animate-spin":"i-ph-play-duotone")},null,2),e(d)?(a(),i("span",We,"Executing…")):(a(),i("span",Ye,"Execute now ("+f(e(x))+")",1))],8,Ke)):z("",!0),l.hasMoreItems?(a(),i("button",{key:1,type:"button",class:"btn-action text-sm","data-testid":"card-done-another",onClick:s[0]||(s[0]=v=>_("another"))},[...s[5]||(s[5]=[t("span",{class:"i-ph-shuffle-duotone"},null,-1),E(" Another pile ",-1)])])):z("",!0),t("button",{type:"button",class:"btn-action text-sm","data-testid":"card-done-finish",onClick:s[1]||(s[1]=v=>_("done"))},[...s[6]||(s[6]=[t("span",{class:"i-ph-house-duotone"},null,-1),E(" Done ",-1)])])])]))}}),et=Object.assign(Je,{__name:"CardsDone"}),tt={class:"card-face"},ot={key:0,class:"h-full overflow-hidden rounded-2xl border border-base bg-base"},nt={key:1,class:"h-full flex flex-col items-center justify-center rounded-2xl border border-base bg-base color-muted gap-3"},st={class:"text-sm"},at={key:1,class:"h-full rounded-2xl border border-base bg-base px-6 py-4 flex flex-col gap-2","aria-hidden":"true"},lt={class:"flex items-center gap-2 text-xs color-muted"},ct={class:"font-mono"},it={class:"font-medium text-base color-base line-clamp-2"},rt=A({__name:"Face",props:{card:{},depth:{},isFront:{type:Boolean,default:!1}},setup(l){const b=l,{ensureLoaded:n}=re(),_=K(),h=m(()=>oe(b.card.projectId)),d=m(()=>!!h.value.payload.value),r=m(()=>!_.source.value.project);return G(()=>{n(b.card.projectId)}),ne(()=>b.card.projectId,C=>{n(C)}),(C,x)=>{const j=Te;return a(),i("div",tt,[l.isFront?(a(),i(ie,{key:0},[e(d)?(a(),i("div",ot,[y(j,{"project-id":l.card.projectId,number:l.card.number,"show-repo":e(r),compact:""},null,8,["project-id","number","show-repo"])])):(a(),i("div",nt,[x[0]||(x[0]=t("span",{class:"i-octicon-sync-16 animate-spin text-2xl color-active"},null,-1)),t("p",st,"Loading "+f(l.card.repo)+"#"+f(l.card.number)+"…",1)]))],64)):(a(),i("div",at,[t("div",lt,[t("span",{class:w(l.card.kind==="pull"?"i-octicon-git-pull-request-16":"i-octicon-issue-opened-16")},null,2),t("span",ct,f(l.card.repo)+" · #"+f(l.card.number),1)]),t("p",it,f(l.card.title),1)]))])}}}),dt=Object.assign(W(rt,[["__scopeId","data-v-eed8e1c9"]]),{__name:"CardsFace"}),ut={class:"card-stack relative","data-testid":"card-stack"},pt=A({__name:"Stack",props:{pile:{},index:{}},setup(l){const b=l,n=m(()=>{const _=[];for(let h=0;h<4;h+=1){const d=b.pile[b.index+h];if(!d)break;_.push({card:d,depth:h,key:`${d.projectId}#${d.number}`})}return _});return(_,h)=>{const d=dt;return a(),i("div",ut,[y(he,{name:"card-flip"},{default:O(()=>[(a(!0),i(ie,null,_e(e(n),r=>(a(),i("div",{key:r.key,class:w(["card",r.depth===0?"card-active":`card-peek-${r.depth}`]),style:de({zIndex:4-r.depth})},[y(d,{card:r.card,depth:r.depth,"is-front":r.depth===0},null,8,["card","depth","is-front"])],6))),128))]),_:1})])}}}),mt=Object.assign(W(pt,[["__scopeId","data-v-0a62d575"]]),{__name:"CardsStack"}),vt=260,ce=160,ft=A({__name:"Actions",props:{busy:{type:Boolean,default:!1}},setup(l){const b=K(),n=Z("cards.todo"),_=Z("cards.ignore"),h=Z("cards.skip"),d=Z("cards.comment"),r=m(()=>b.currentIsTodo.value),C=m(()=>b.currentIsIgnored.value),x=m(()=>!!b.currentPendingComment.value);function j(p){return p==="top"?n:p==="left"?_:p==="right"?h:d}function $(p){const g=j(p);g.active.value&&g.command.value?.run()}const k=M(null),s=M({w:0,h:0});let v=null;function D(){const p=k.value;p&&(s.value={w:p.clientWidth,h:p.clientHeight})}G(()=>{D(),typeof ResizeObserver<"u"&&k.value&&(v=new ResizeObserver(D),v.observe(k.value))}),xe(()=>{v?.disconnect()});const c=M(null);function Y(p){const g=k.value?.getBoundingClientRect();if(!g)return;if(p.target?.closest("[data-cards-passthrough]")){c.value=null;return}const{w:q,h:N}=s.value;if(q===0||N===0)return;const T=p.clientX-g.left,U=p.clientY-g.top,ee=Math.min(U,N-U),X=Math.min(T,q-T);if(ee<ce&&X<ce){c.value=null;return}const Q=[{zone:"top",dist:U},{zone:"bottom",dist:N-U},{zone:"left",dist:T},{zone:"right",dist:q-T}];Q.sort((u,o)=>u.dist-o.dist);const F=Q[0];if(!F||F.dist>vt){c.value=null;return}if(!j(F.zone).active.value){c.value=null;return}c.value=F.zone}function L(){c.value=null}const H=m(()=>{const p=c.value;if(!p)return"rotateX(0deg)";switch(p){case"top":return"rotateX(-3.5deg)";case"bottom":return"rotateX(3.5deg)";case"left":return"translateX(-18px) rotateZ(-2.5deg)";case"right":return"translateX(18px) rotateZ(2.5deg)"}return"rotateX(0deg)"}),J=m(()=>c.value!=="left"?"grayscale(0) opacity(1)":"grayscale(0.75) opacity(0.6)");function V(p){if(p.target?.closest("[data-cards-passthrough]"))return;const S=c.value;S&&$(S)}return(p,g)=>{const S=ye;return a(),i("div",{ref_key:"arena",ref:k,class:"cards-arena",onMousemove:Y,onMouseleave:L,onClick:V},[t("div",{class:w(["edge-overlay edge-overlay-top edge-zone-todo",{"edge-overlay-active":e(c)==="top"}])},null,2),t("div",{class:w(["edge-overlay edge-overlay-left edge-zone-ignore",{"edge-overlay-active":e(c)==="left"}])},null,2),t("div",{class:w(["edge-overlay edge-overlay-right edge-zone-skip",{"edge-overlay-active":e(c)==="right"}])},null,2),t("div",{class:w(["edge-overlay edge-overlay-bottom edge-zone-comment",{"edge-overlay-active":e(c)==="bottom"}])},null,2),t("div",{class:w(["edge-label edge-label-top edge-zone-todo",[{"edge-label-active":e(c)==="top"},!e(n).active.value&&"edge-label-disabled"]]),"data-testid":"card-edge-todo"},[t("span",{class:w(e(r)?"i-ph-bookmark-simple-fill":"i-ph-bookmark-simple-duotone")},null,2),t("span",null,f(e(r)?"Marked as todo":"Mark as todo"),1),y(S,{command:"cards.todo"})],2),t("div",{class:w(["edge-label edge-label-left edge-zone-ignore",[{"edge-label-active":e(c)==="left"},!e(_).active.value&&"edge-label-disabled"]]),"data-testid":"card-edge-ignore"},[t("span",{class:w(e(C)?"i-ph-eye-slash-fill":"i-ph-eye-slash-duotone")},null,2),t("span",null,f(e(C)?"Marked as ignore":"Mark as ignore"),1),y(S,{command:"cards.ignore"})],2),t("div",{class:w(["edge-label edge-label-right edge-zone-skip",[{"edge-label-active":e(c)==="right"},!e(h).active.value&&"edge-label-disabled"]]),"data-testid":"card-edge-skip"},[g[0]||(g[0]=t("span",{class:"i-ph-skip-forward-duotone"},null,-1)),g[1]||(g[1]=t("span",null,"Skip",-1)),y(S,{command:"cards.skip"})],2),t("div",{class:w(["edge-label edge-label-bottom edge-zone-comment",[{"edge-label-active":e(c)==="bottom"},!e(d).active.value&&"edge-label-disabled"]]),"data-testid":"card-edge-comment"},[t("span",{class:w(e(x)?"i-octicon-pencil-16":"i-octicon-comment-16")},null,2),t("span",null,f(e(x)?"Edit comment":"Comment"),1),y(S,{command:"cards.comment"})],2),t("div",{class:"card-stack-wrapper",style:de({transform:e(H),filter:e(J),opacity:l.busy?.85:1}),"data-cards-passthrough":""},[ke(p.$slots,"default",{},void 0,!0)],4)],544)}}}),gt=Object.assign(W(ft,[["__scopeId","data-v-40c4522f"]]),{__name:"CardsActions"}),bt={class:"px-5 py-4 flex flex-col gap-2"},_t=A({__name:"CommentDialog",props:se({projectId:{},itemNumber:{},kind:{}},{open:{type:Boolean,required:!0},openModifiers:{}}),emits:se(["submitted"],["update:open"]),setup(l,{emit:b}){const n=Ce(l,"open"),_=l,h=b;Ue({projectId:_.projectId});const d=K(),r=M(null),C=m(()=>!!d.currentPendingComment.value);ne(n,async j=>{if(!j)return;await we();const $=d.currentPendingComment.value;$&&r.value?.startEditing?r.value.startEditing($):r.value?.focus()});function x(j){n.value=!1,h("submitted",j)}return(j,$)=>{const k=Fe,s=je;return a(),B(s,{open:n.value,"onUpdate:open":$[0]||($[0]=v=>n.value=v),title:`${e(C)?"Edit pending comment":"Comment"} on ${l.kind==="pull"?"pull request":"issue"} #${l.itemNumber}`,icon:"i-octicon-comment-16",width:"w-[min(92vw,40rem)]"},{default:O(()=>[t("div",bt,[y(k,{ref_key:"composerRef",ref:r,number:l.itemNumber,kind:l.kind,onSubmitted:x},null,8,["number","kind"]),$[1]||($[1]=t("p",{class:"text-xs color-faint"},[t("span",{class:"kbd"},"Esc"),E(" to cancel. ")],-1))])]),_:1},8,["open","title"])}}}),ht=Object.assign(_t,{__name:"CardsCommentDialog"}),xt={class:"cards-page h-screen w-full flex flex-col bg-secondary"},yt={class:"flex items-center gap-3 px-5 py-3 border-b border-base bg-base"},kt=["onClick"],Ct={class:"flex items-center gap-2 text-sm","data-testid":"cards-source-title"},wt={class:"font-medium"},jt={key:1,class:"color-muted"},$t={key:0,class:"flex items-center gap-2 text-sm color-muted"},It={class:"font-mono tabular-nums"},zt=["disabled","onClick"],Dt=["disabled","onClick"],St={key:0,class:"absolute -top-1 -right-1 badge-color-green !px-1 !py-0 font-mono tabular-nums text-[10px] leading-none min-w-4 h-4 justify-center"},Pt={class:"flex-1 relative overflow-hidden"},Ot={key:0,class:"h-full flex flex-col items-center justify-center gap-3 color-muted"},Et={key:3,class:"h-full flex flex-col items-center justify-center gap-3 color-muted"},Mt=A({__name:"cards",setup(l){const b=$e(),n=K(),_=Me(),h=Be(),d=Re(),r=oe(),C=Ie(),{upCount:x}=ze(),{totalCount:j}=De(),{currentUser:$}=Se(),{ensureLoaded:k}=re(),s=m(()=>h.capabilities.value?.mode==="hub"),v=m(()=>s.value?j.value:x.value),D=n.currentCard,c=n.total,Y=m(()=>Math.min(n.index.value+1,c.value)),L=n.advancing,H=m(()=>c.value>0&&n.done.value),J=m(()=>c.value>0),V=n.source,p=m(()=>V.value.label),g=m(()=>V.value.project??null),S=m(()=>$.value?.login??null),q=m(()=>{switch(n.options.value.kind){case"issue":return"Issues";case"pull":return"Pull requests";default:return""}}),N=M(!0);G(async()=>{await n.hydrate(),N.value=!1});async function T(){const u=le();u.items.value.length===0&&await u.load();const o=ae().filteredItems.value;n.openStartDialog(o,{label:"Recent"})}ne(()=>_.labelEditorOpen.value,async(u,o)=>{o&&!u&&n.labelsPendingFor.value&&(n.labelsPendingFor.value=null,await n.advance())});function U(){n.reset(),b.push("/")}async function ee(u){const o=n.currentCard.value;o&&u&&n.recordOp(o.projectId,u),await n.advance()}async function X(){const u=n.source.value;if(!u.project&&u.label==="Recent"){const o=le();return o.items.value.length===0&&await o.load(),ae().filteredItems.value}if(!u.project&&u.label==="Todo"){const o=Ne();return o.items.value.length===0&&await o.load(),o.listItems.value}if(u.project){await k(u.project.id);const o=oe(u.project.id).payload.value;return o?Object.values(o.syncState.items).filter(P=>P.data.item.state==="open"&&!_.isIgnored(P.data.item.number)).map(P=>qe(P,u.project.id,o.repo.repo)):[]}return[]}async function Q(){const u=await X();n.anotherPile(u,S.value)}async function F(){const u=await X();n.restartPile(u,S.value)}return(u,o)=>{const P=Pe,ue=Oe,te=Ee,pe=et,me=mt,ve=gt,fe=ht;return a(),i("div",xt,[t("header",yt,[y(P,{command:"cards.exit"},{default:O(({execute:I})=>[t("button",{type:"button",class:"btn-action-sm",title:"Exit card pile","data-testid":"cards-exit",onClick:I},[...o[1]||(o[1]=[t("span",{class:"i-ph-arrow-left-duotone"},null,-1),E(" Exit ",-1)])],8,kt)]),_:1}),o[6]||(o[6]=t("div",{class:"h-6 border-l border-base mx-1 flex-none"},null,-1)),t("div",Ct,[o[2]||(o[2]=t("span",{class:"i-ph-cards-three-duotone color-active"},null,-1)),e(g)?(a(),B(ue,{key:0,project:e(g),size:18},null,8,["project"])):z("",!0),t("span",wt,f(e(g)?e(g).repo:e(p)),1),e(q)?(a(),i("span",jt,"· "+f(e(q)),1)):z("",!0)]),o[7]||(o[7]=t("div",{class:"flex-1"},null,-1)),!e(H)&&e(D)?(a(),i("div",$t,[t("span",It,f(e(Y))+" / "+f(e(c)),1)])):z("",!0),e(H)?z("",!0):(a(),B(P,{key:1,command:"cards.previous"},{default:O(({execute:I,disabled:R})=>[t("button",{type:"button",class:"btn-action-sm",title:"Previous card","data-testid":"cards-previous",disabled:R,onClick:I},[...o[3]||(o[3]=[t("span",{class:"i-ph-skip-back-duotone"},null,-1),E(" Previous ",-1)])],8,zt)]),_:1})),e(c)>0?(a(),i("button",{key:2,type:"button",class:"btn-action-sm",title:"Re-generate the pile with the same options","data-testid":"cards-restart",onClick:F},[...o[4]||(o[4]=[t("span",{class:"i-ph-arrow-clockwise-duotone"},null,-1),E(" Restart pile ",-1)])])):z("",!0),e(c)>0?(a(),B(P,{key:3,command:"cards.dismiss"},{default:O(({execute:I,disabled:R})=>[t("button",{type:"button",class:"btn-action-sm",title:"Discard this pile","data-testid":"cards-dismiss",disabled:R,onClick:I},[...o[5]||(o[5]=[t("span",{class:"i-ph-trash-duotone"},null,-1),E(" Discard pile ",-1)])],8,Dt)]),_:1})):z("",!0),o[8]||(o[8]=t("div",{class:"h-6 border-l border-base mx-1 flex-none"},null,-1)),y(P,{command:"action.queue",placement:"badge"},{default:O(({execute:I,disabled:R})=>[y(te,{icon:e(s)?"i-ph-list-checks-duotone":"i-octicon-list-unordered-16",tooltip:"Queue",active:e(s)?e(d).queueDrawerOpen.value:e(r).queueOpen.value,"data-testid":"cards-queue-toggle",disabled:R,onClick:I},{badge:O(()=>[e(v)>0?(a(),i("span",St,f(e(v)),1)):z("",!0)]),_:1},8,["icon","active","disabled","onClick"])]),_:1}),y(P,{command:"settings.open",placement:"badge"},{default:O(({execute:I,disabled:R})=>[y(te,{icon:"i-ph-gear-six-duotone",tooltip:"Settings","data-testid":"cards-settings",disabled:R,onClick:I},null,8,["disabled","onClick"])]),_:1}),y(P,{command:"action.theme",placement:"badge"},{default:O(({execute:I})=>[y(te,{icon:e(C)?"i-ph-sun-duotone":"i-ph-moon-duotone",tooltip:e(C)?"Light mode":"Dark mode",onClick:I},null,8,["icon","tooltip","onClick"])]),_:1})]),t("main",Pt,[e(N)?(a(),i("div",Ot,[...o[9]||(o[9]=[t("span",{class:"i-octicon-sync-16 animate-spin text-2xl color-active"},null,-1),t("p",{class:"text-sm"},"Loading pile…",-1)])])):e(H)&&!e(L)?(a(),B(pe,{key:1,"pile-size":e(c),"processed-ops":e(n).processedOps.value,"has-more-items":e(J),onAnother:Q,onDone:U},null,8,["pile-size","processed-ops","has-more-items"])):e(D)||e(L)?(a(),B(ve,{key:2,busy:e(L)},{default:O(()=>[y(me,{pile:e(n).pile.value,index:e(n).index.value},null,8,["pile","index"])]),_:1},8,["busy"])):(a(),i("div",Et,[o[11]||(o[11]=t("span",{class:"i-ph-cards-duotone text-4xl"},null,-1)),o[12]||(o[12]=t("p",null,"No card pile loaded.",-1)),t("button",{type:"button",class:"btn-action text-sm","data-testid":"cards-empty-create",onClick:T},[...o[10]||(o[10]=[t("span",{class:"i-ph-cards-three-duotone"},null,-1),E(" Create a new pile ",-1)])])]))]),e(D)?(a(),B(fe,{key:0,open:e(n).commentDialogOpen.value,"onUpdate:open":o[0]||(o[0]=I=>e(n).commentDialogOpen.value=I),"project-id":e(D).projectId,"item-number":e(D).number,kind:e(D).kind,onSubmitted:ee},null,8,["open","project-id","item-number","kind"])):z("",!0)])}}}),Tt=W(Mt,[["__scopeId","data-v-83481dd3"]]);export{Tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as C}from"./DeX2bcSG.js";import{Y as w,G as A,l as f,a9 as h,p as g,R as I,e as R,aa as U,o as F,c as V,b as _,w as v,L as W,N as E,h as t,W as G,m as H,j as m}from"./DHH7xZXJ.js";import{_ as K}from"./DVC3GhaL.js";function L(u,n){const p=w(),o=A(),s=I();function b(a){return g(a).selectItem}function d(a){if(s.capabilities.value?.mode!=="hub")return"/";const c=s.projects.value.find(l=>l.id===a);return c?`/${c.repo}`:"/"}f(()=>h(n),a=>{const r=h(u);if(!r)return;b(r)(a??null)},{immediate:!0}),f(()=>g(h(u)).selectedNumber.value,a=>{const r=h(u);if(!r)return;const c=d(r),l=a==null?c:`${c}/${a}`;p.path!==l&&o.replace(l).catch(()=>{})})}const M={class:"h-full flex flex-col"},O=R({__name:"SingleProject",props:{projectId:{},initialNumber:{}},setup(u){const n=u,p=G();p.value=n.projectId;const o=g(n.projectId);L(()=>n.projectId,()=>n.initialNumber??null);const{filteredItems:s,counts:b}=U(),d=H(),a=I(),r=m(()=>!!o.payload.value),c=m(()=>a.projects.value.find(e=>e.id===n.projectId)??null),l=m(()=>o.filters.search.trim().length>0),y=m(()=>{const e=s.value.length;return e===0?"No items to triage":`Start a card pile — triage ${Math.min(e,10)} ${e===1?"item":"items"}`}),k=m(()=>{const e=o.selectedNumber.value;return e==null?null:s.value.find(i=>i.number===e)?.key??null});f(()=>n.projectId,e=>{p.value=e,d.loadInitial(e)},{immediate:!0}),f(s,e=>{o.selectedNumber.value!=null&&(e.some(i=>i.number===o.selectedNumber.value)||o.selectItem(null))},{flush:"post"});function x(e){o.selectItem(e.number)}return(e,i)=>{const P=C,S=E,N=W,$=K;return F(),V("div",M,[_(P,{mode:"project"}),_($,{items:t(s),"selected-key":t(k),"search-highlight":t(o).filters.search,loading:t(d).loading.value,"load-error":t(d).error.value,"has-payload":t(r),"header-variant":"project",project:t(c),projects:t(a).projects.value,search:t(o).filters.search,kind:t(o).filters.kind,counts:t(b),searching:t(l),"search-placeholder":"Search title, body, author, labels…",onSelect:x,"onUpdate:search":i[0]||(i[0]=j=>t(o).filters.search=j)},{"header-actions":v(()=>[_(N,{command:"cards.start",placement:"badge"},{default:v(({execute:j,disabled:B})=>[_(S,{icon:"i-ph-cards-three-duotone",tooltip:t(y),"aria-label":"Start a card pile","data-testid":"list-header-cards-mode",disabled:B||t(s).length===0,onClick:j},null,8,["tooltip","disabled","onClick"])]),_:1})]),_:1},8,["items","selected-key","search-highlight","loading","load-error","has-payload","project","projects","search","kind","counts","searching"])])}}}),z=Object.assign(O,{__name:"PanelSingleProject"});export{z as _};
|