galaxy-charts 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/galaxy-charts.css +1 -1
- package/dist/galaxy-charts.js +45 -43
- package/dist/galaxy-charts.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/galaxy-charts.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.z-10{z-index:10}.m-
|
|
1
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.size-14{width:3.5rem;height:3.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.h-screen{height:100vh}.w-full{width:100%}.w-screen{width:100vw}.min-w-14{min-width:3.5rem}.max-w-14{max-width:3.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-\[1fr_17rem\]{grid-template-columns:1fr 17rem}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-pre{white-space:pre}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.border{border-width:1px}.border-dotted{border-style:dotted}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
package/dist/galaxy-charts.js
CHANGED
|
@@ -88,7 +88,7 @@ function ru(e, t) {
|
|
|
88
88
|
return `${e}api/datasets/${t}/display`;
|
|
89
89
|
}
|
|
90
90
|
const va = ["auto"], pr = E({});
|
|
91
|
-
function
|
|
91
|
+
function _y() {
|
|
92
92
|
function e(r, o) {
|
|
93
93
|
return r.every((i) => o.every((a) => typeof i[a] == "string" && i[a].trim() !== ""));
|
|
94
94
|
}
|
|
@@ -1046,7 +1046,7 @@ const Uu = "n", lo = `.${Uu}-`, Gu = "__", Ku = "--", Zl = Yl(), Jl = ju({
|
|
|
1046
1046
|
Zl.use(Jl);
|
|
1047
1047
|
const {
|
|
1048
1048
|
c: L,
|
|
1049
|
-
find:
|
|
1049
|
+
find: My
|
|
1050
1050
|
} = Zl, {
|
|
1051
1051
|
cB: y,
|
|
1052
1052
|
cE: R,
|
|
@@ -18516,9 +18516,9 @@ const qx = /* @__PURE__ */ se({
|
|
|
18516
18516
|
function Cr(e) {
|
|
18517
18517
|
return String(e).toLowerCase() === "true";
|
|
18518
18518
|
}
|
|
18519
|
-
const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold
|
|
18519
|
+
const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold mb-1" }, Jx = {
|
|
18520
18520
|
key: 0,
|
|
18521
|
-
class: "text-xs
|
|
18521
|
+
class: "text-xs mb-1"
|
|
18522
18522
|
}, Qx = { key: 5 }, Bl = 0.01, ua = /* @__PURE__ */ se({
|
|
18523
18523
|
__name: "InputForm",
|
|
18524
18524
|
props: {
|
|
@@ -18546,7 +18546,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18546
18546
|
), (l, s) => (ye(), Ae("div", Yx, [
|
|
18547
18547
|
(ye(!0), Ae(xt, null, Hl(l.inputs, (d, f) => (ye(), Ae("div", {
|
|
18548
18548
|
key: f,
|
|
18549
|
-
class: "
|
|
18549
|
+
class: "mb-2"
|
|
18550
18550
|
}, [
|
|
18551
18551
|
Te("div", Zx, pn(d.label || d.name), 1),
|
|
18552
18552
|
d.help ? (ye(), Ae("div", Jx, pn(d.help), 1)) : _t("", !0),
|
|
@@ -18675,7 +18675,6 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18675
18675
|
Pe(pe(Lt), {
|
|
18676
18676
|
size: "tiny",
|
|
18677
18677
|
type: "primary",
|
|
18678
|
-
class: "mb-2",
|
|
18679
18678
|
onClick: i
|
|
18680
18679
|
}, {
|
|
18681
18680
|
default: Ee(() => [
|
|
@@ -18800,13 +18799,16 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18800
18799
|
_: 1
|
|
18801
18800
|
}));
|
|
18802
18801
|
}
|
|
18803
|
-
}), sy = { class: "overflow-auto select-none bg-white z-10" }, dy = {
|
|
18802
|
+
}), sy = { class: "overflow-auto select-none bg-white z-10" }, dy = {
|
|
18803
|
+
key: 0,
|
|
18804
|
+
class: "flex m-2"
|
|
18805
|
+
}, uy = { class: "flex-1 font-thin text-lg mt-1" }, cy = { class: "m-2 p-2 bg-sky-50 text-sky-900 rounded" }, fy = { class: "flex" }, hy = { class: "flex justify-center center-items" }, vy = { class: "m-2" }, py = ["src"], by = {
|
|
18804
18806
|
key: 1,
|
|
18805
18807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18806
18808
|
fill: "none",
|
|
18807
18809
|
viewBox: "0 0 100 100",
|
|
18808
18810
|
class: "size-14"
|
|
18809
|
-
},
|
|
18811
|
+
}, gy = { class: "overflow-hidden break-words p-1" }, my = { class: "font-bold" }, xy = ["innerHTML"], yy = { class: "m-2" }, wy = /* @__PURE__ */ se({
|
|
18810
18812
|
__name: "SidePanel",
|
|
18811
18813
|
props: {
|
|
18812
18814
|
datasetId: {},
|
|
@@ -18855,13 +18857,13 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18855
18857
|
r("update:visualization-title", c);
|
|
18856
18858
|
}
|
|
18857
18859
|
return (c, v) => (ye(), Ae("div", sy, [
|
|
18858
|
-
|
|
18860
|
+
c.datasetUrl ? (ye(), Ae("div", dy, [
|
|
18859
18861
|
Te("div", uy, [
|
|
18860
18862
|
v[2] || (v[2] = Te("span", null, "Charts", -1)),
|
|
18861
18863
|
Pe(ly)
|
|
18862
18864
|
]),
|
|
18863
|
-
|
|
18864
|
-
c.datasetId ? (ye(), nt(pe(Ar), {
|
|
18865
|
+
Te("div", null, [
|
|
18866
|
+
c.datasetId ? _t("", !0) : (ye(), nt(pe(Ar), {
|
|
18865
18867
|
key: 0,
|
|
18866
18868
|
trigger: "hover",
|
|
18867
18869
|
to: !1
|
|
@@ -18871,7 +18873,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18871
18873
|
strong: "",
|
|
18872
18874
|
secondary: "",
|
|
18873
18875
|
circle: "",
|
|
18874
|
-
class: "bg-sky-100
|
|
18876
|
+
class: "bg-sky-100 mr-2",
|
|
18875
18877
|
onClick: l
|
|
18876
18878
|
}, {
|
|
18877
18879
|
icon: Ee(() => [
|
|
@@ -18889,7 +18891,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18889
18891
|
v[3] || (v[3] = Te("span", { class: "text-xs" }, "Save", -1))
|
|
18890
18892
|
]),
|
|
18891
18893
|
_: 1
|
|
18892
|
-
}))
|
|
18894
|
+
})),
|
|
18893
18895
|
Pe(pe(Ar), {
|
|
18894
18896
|
trigger: "hover",
|
|
18895
18897
|
to: !1
|
|
@@ -18899,7 +18901,7 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18899
18901
|
strong: "",
|
|
18900
18902
|
secondary: "",
|
|
18901
18903
|
circle: "",
|
|
18902
|
-
class: "bg-sky-100
|
|
18904
|
+
class: "bg-sky-100",
|
|
18903
18905
|
onClick: v[0] || (v[0] = (g) => r("toggle"))
|
|
18904
18906
|
}, {
|
|
18905
18907
|
icon: Ee(() => [
|
|
@@ -18918,23 +18920,23 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18918
18920
|
]),
|
|
18919
18921
|
_: 1
|
|
18920
18922
|
})
|
|
18921
|
-
])
|
|
18922
|
-
]),
|
|
18923
|
+
])
|
|
18924
|
+
])) : _t("", !0),
|
|
18923
18925
|
Pe(iy, {
|
|
18924
18926
|
message: o.value,
|
|
18925
18927
|
"message-type": i.value,
|
|
18926
18928
|
onTimeout: v[1] || (v[1] = (g) => o.value = ""),
|
|
18927
18929
|
class: "m-2"
|
|
18928
18930
|
}, null, 8, ["message", "message-type"]),
|
|
18929
|
-
Te("div",
|
|
18930
|
-
Te("div",
|
|
18931
|
-
Te("div",
|
|
18932
|
-
Te("div",
|
|
18931
|
+
Te("div", cy, [
|
|
18932
|
+
Te("div", fy, [
|
|
18933
|
+
Te("div", hy, [
|
|
18934
|
+
Te("div", vy, [
|
|
18933
18935
|
n.logoUrl ? (ye(), Ae("img", {
|
|
18934
18936
|
key: 0,
|
|
18935
18937
|
src: n.logoUrl,
|
|
18936
18938
|
class: "min-w-14 max-w-14 object-contain"
|
|
18937
|
-
}, null, 8,
|
|
18939
|
+
}, null, 8, py)) : (ye(), Ae("svg", by, v[5] || (v[5] = [
|
|
18938
18940
|
Te("circle", {
|
|
18939
18941
|
cx: "50",
|
|
18940
18942
|
cy: "50",
|
|
@@ -18949,16 +18951,16 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
18949
18951
|
])))
|
|
18950
18952
|
])
|
|
18951
18953
|
]),
|
|
18952
|
-
Te("div",
|
|
18953
|
-
Te("span",
|
|
18954
|
+
Te("div", gy, [
|
|
18955
|
+
Te("span", my, pn(c.html), 1),
|
|
18954
18956
|
Te("div", {
|
|
18955
18957
|
class: "text-xs",
|
|
18956
18958
|
innerHTML: c.description
|
|
18957
|
-
}, null, 8,
|
|
18959
|
+
}, null, 8, xy)
|
|
18958
18960
|
])
|
|
18959
18961
|
])
|
|
18960
18962
|
]),
|
|
18961
|
-
Te("div",
|
|
18963
|
+
Te("div", yy, [
|
|
18962
18964
|
v[6] || (v[6] = Te("div", { class: "font-bold" }, "Title", -1)),
|
|
18963
18965
|
v[7] || (v[7] = Te("div", { class: "text-xs py-1" }, "Specify a visualization title.", -1)),
|
|
18964
18966
|
Pe(pe(ar), {
|
|
@@ -19025,15 +19027,15 @@ const Yx = { class: "overflow-auto select-none" }, Zx = { class: "font-bold pb-1
|
|
|
19025
19027
|
]));
|
|
19026
19028
|
}
|
|
19027
19029
|
});
|
|
19028
|
-
async function
|
|
19029
|
-
const n = ca(e.settings, t.settings), r = e.specs, o =
|
|
19030
|
+
async function Cy(e, t = {}) {
|
|
19031
|
+
const n = ca(e.settings, t.settings), r = e.specs, o = zy(e.tracks, t.tracks);
|
|
19030
19032
|
return { plugin: e, settings: n, specs: r, tracks: o };
|
|
19031
19033
|
}
|
|
19032
|
-
function
|
|
19034
|
+
function Sy(e, t) {
|
|
19033
19035
|
let n = t ?? e.value;
|
|
19034
19036
|
return e.type === "float" ? n = Number(n) : e.type === "boolean" && (n = Cr(n)), n;
|
|
19035
19037
|
}
|
|
19036
|
-
function
|
|
19038
|
+
function $y(e, t = {}) {
|
|
19037
19039
|
var o, i, a;
|
|
19038
19040
|
const n = t, r = (o = e.test_param) == null ? void 0 : o.name;
|
|
19039
19041
|
if (!r)
|
|
@@ -19048,16 +19050,16 @@ function zy(e, t = {}) {
|
|
|
19048
19050
|
function ca(e, t) {
|
|
19049
19051
|
const n = t || {};
|
|
19050
19052
|
return e == null || e.forEach((r) => {
|
|
19051
|
-
r.type === "conditional" ? n[r.name] =
|
|
19053
|
+
r.type === "conditional" ? n[r.name] = $y(r, n[r.name]) : n[r.name] = Sy(r, n[r.name]);
|
|
19052
19054
|
}), n;
|
|
19053
19055
|
}
|
|
19054
|
-
function
|
|
19056
|
+
function zy(e, t) {
|
|
19055
19057
|
const n = t || [];
|
|
19056
19058
|
return e && (n.length === 0 && n.push({}), n.forEach((r, o) => {
|
|
19057
19059
|
n[o] = ca(e, r);
|
|
19058
19060
|
})), n;
|
|
19059
19061
|
}
|
|
19060
|
-
function
|
|
19062
|
+
function Ty(e, t = "app") {
|
|
19061
19063
|
if (e === void 0) {
|
|
19062
19064
|
const l = document.getElementById(t);
|
|
19063
19065
|
if (!l)
|
|
@@ -19067,13 +19069,13 @@ function Py(e, t = "app") {
|
|
|
19067
19069
|
const n = (e == null ? void 0 : e.root) ?? "/", r = (e == null ? void 0 : e.visualization_config) ?? {}, o = (e == null ? void 0 : e.visualization_id) ?? null, i = (e == null ? void 0 : e.visualization_plugin) ?? {}, a = (e == null ? void 0 : e.visualization_title) ?? "Unnamed Visualization";
|
|
19068
19070
|
return { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a };
|
|
19069
19071
|
}
|
|
19070
|
-
const
|
|
19072
|
+
const Py = {
|
|
19071
19073
|
key: 1,
|
|
19072
19074
|
class: "m-2"
|
|
19073
|
-
},
|
|
19075
|
+
}, ky = {
|
|
19074
19076
|
key: 0,
|
|
19075
19077
|
class: "relative max-w-full h-screen overflow-hidden"
|
|
19076
|
-
},
|
|
19078
|
+
}, Ey = /* @__PURE__ */ se({
|
|
19077
19079
|
__name: "GalaxyCharts",
|
|
19078
19080
|
props: {
|
|
19079
19081
|
container: {},
|
|
@@ -19081,11 +19083,11 @@ const ky = {
|
|
|
19081
19083
|
incoming: {}
|
|
19082
19084
|
},
|
|
19083
19085
|
setup(e) {
|
|
19084
|
-
const t = e, { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a } =
|
|
19086
|
+
const t = e, { root: n, visualizationConfig: r, visualizationId: o, visualizationPlugin: i, visualizationTitle: a } = Ty(
|
|
19085
19087
|
t.incoming,
|
|
19086
19088
|
t.container
|
|
19087
19089
|
), l = E(!0), s = E(""), d = E(""), f = E(""), c = E(!0), v = E(""), g = E(""), h = E([]), x = E({}), w = E({}), b = E([]), k = E([]), V = E(o), $ = E(a), z = Vl();
|
|
19088
|
-
z.setCredentials(t.credentials || "include"), z.setRoot(n || "/"),
|
|
19090
|
+
z.setCredentials(t.credentials || "include"), z.setRoot(n || "/"), Cy(i, r).then(({ plugin: J, settings: ue, specs: le, tracks: he }) => {
|
|
19089
19091
|
s.value = J.description || "", f.value = J.html || "", c.value = !1, v.value = J.logo || "", g.value = J.name || "", h.value = J.settings || [], x.value = ue, w.value = le || {}, b.value = J.tracks || [], k.value = he;
|
|
19090
19092
|
});
|
|
19091
19093
|
const B = j(() => r.dataset_id || ""), p = j(() => r.dataset_url ? (console.debug(`GalaxyCharts: Evaluating dataset url: ${r.dataset_url}.`), r.dataset_url) : B.value ? (console.debug(`GalaxyCharts: Built dataset url from dataset id: ${B.value}.`), ru(n, B.value)) : ""), S = j(() => v.value && `${n}${v.value}`), I = j(() => h.value.length === 0 && b.value.length === 0);
|
|
@@ -19153,7 +19155,7 @@ const ky = {
|
|
|
19153
19155
|
]),
|
|
19154
19156
|
_: 1
|
|
19155
19157
|
})) : _t("", !0),
|
|
19156
|
-
c.value ? (ye(), Ae("div",
|
|
19158
|
+
c.value ? (ye(), Ae("div", Py, [
|
|
19157
19159
|
Te("span", null, [
|
|
19158
19160
|
Pe(pe(iu), { class: "animate-spin size-4 inline mx-1" })
|
|
19159
19161
|
]),
|
|
@@ -19162,7 +19164,7 @@ const ky = {
|
|
|
19162
19164
|
key: 2,
|
|
19163
19165
|
class: tu(["grid h-screen", { "grid-cols-[1fr_17rem]": !l.value && !I.value && p.value }])
|
|
19164
19166
|
}, [
|
|
19165
|
-
p.value ? (ye(), Ae("div",
|
|
19167
|
+
p.value ? (ye(), Ae("div", ky, [
|
|
19166
19168
|
Oi(J.$slots, "default", {
|
|
19167
19169
|
datasetId: B.value,
|
|
19168
19170
|
datasetUrl: p.value,
|
|
@@ -19183,7 +19185,7 @@ const ky = {
|
|
|
19183
19185
|
strong: "",
|
|
19184
19186
|
secondary: "",
|
|
19185
19187
|
circle: "",
|
|
19186
|
-
class: "bg-sky-100 m-
|
|
19188
|
+
class: "bg-sky-100 m-2 absolute right-0",
|
|
19187
19189
|
onClick: D
|
|
19188
19190
|
}, {
|
|
19189
19191
|
icon: Ee(() => [
|
|
@@ -19202,7 +19204,7 @@ const ky = {
|
|
|
19202
19204
|
]),
|
|
19203
19205
|
_: 1
|
|
19204
19206
|
})) : _t("", !0),
|
|
19205
|
-
xn(Pe(
|
|
19207
|
+
xn(Pe(wy, {
|
|
19206
19208
|
"dataset-id": B.value,
|
|
19207
19209
|
"dataset-url": p.value,
|
|
19208
19210
|
description: s.value,
|
|
@@ -19229,6 +19231,6 @@ const ky = {
|
|
|
19229
19231
|
});
|
|
19230
19232
|
export {
|
|
19231
19233
|
sr as GalaxyApi,
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
+
Ey as GalaxyCharts,
|
|
19235
|
+
_y as useColumnsStore
|
|
19234
19236
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(We,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(We=typeof globalThis<"u"?globalThis:We||self,r(We.GalaxyCharts={},We.vue))})(this,function(We,r){"use strict";var Ii=document.createElement("style");Ii.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.z-10{z-index:10}.m-
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(Ii);function Oi(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function Sn(e){throw Error(Oi(e))}const Ai=r.ref("/"),Fi=r.ref("include");function Di(){function e(){return Fi.value}function t(i){Fi.value=i}function n(){return Ai.value}function o(i){Ai.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:o}}async function io(e,t){const n=Di(),o=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(o,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});if(i.ok)return{data:await i.json(),response:i};Sn(i)}catch(i){Sn(i)}}function Qt(){async function e(o){return io(o,{method:"GET"})}async function t(o,i){return io(o,{body:JSON.stringify(i),method:"POST"})}async function n(o,i){return io(o,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function As(e,t){const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString();try{const{data:o}=await Qt().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of o.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(o){Sn(o)}}function Fs(e,t){return`${e}api/datasets/${t}/display`}const Vi=["auto"],Nn=r.ref({});function Ds(){function e(o,i){return o.every(a=>i.every(l=>typeof a[l]=="string"&&a[l].trim()!==""))}function t(o,i){const a=[];for(const l of o)for(const s of i){const d=l[s];d&&![...a,...Vi].includes(d)&&a.push(d)}return a}async function n(o,i,a){if(e(i,a)){Nn.value[o]=Nn.value[o]||{};const l=Object.keys(Nn.value[o]),s=t(i,a).filter(c=>!l.includes(c));if(s.length>0){const c=await As(o,s);if(c)for(const[f,u]of s.entries())Nn.value[o][u]=c[f]}const d=[];return i.forEach(c=>{const f={};a.forEach(u=>{const p=c[u];p&&!Vi.includes(p)&&(f[u]=Nn.value[o][p])}),d.push(f)}),d}else return[]}return{fetchColumns:n}}function Vs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ls(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Li(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Hs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Ns(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Ws(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Hi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function js(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Us(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Gs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let gr=[];const Ni=new WeakMap;function Ks(){gr.forEach(e=>e(...Ni.get(e))),gr=[]}function Wi(e,...t){Ni.set(e,t),!gr.includes(e)&&gr.push(e)===1&&requestAnimationFrame(Ks)}function Wn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $n(e){return e.composedPath()[0]||null}function rt(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function en(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function st(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}const ji={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ui(e,t,n){t/=100,n/=100;const o=t*Math.min(n,1-n)+n;return[e,o?(2-2*n/o)*100:0,o*100]}function mr(e,t,n){t/=100,n/=100;const o=n-n*t/2,i=Math.min(o,1-o);return[e,i?(n-o)/i*100:0,o*100]}function Ft(e,t,n){t/=100,n/=100;let o=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[o(5)*255,o(3)*255,o(1)*255]}function ao(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),i=o-Math.min(e,t,n),a=i&&(o==e?(t-n)/i:o==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),o&&i/o*100,o*100]}function lo(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),i=o-Math.min(e,t,n),a=1-Math.abs(o+o-i-1),l=i&&(o==e?(t-n)/i:o==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(o+o-i)*50]}function so(e,t,n){t/=100,n/=100;let o=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-o*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const vt="^\\s*",xt="\\s*$",Dt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",dt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",tn="([0-9A-Fa-f])",nn="([0-9A-Fa-f]{2})",Xs=new RegExp(`${vt}hsl\\s*\\(${dt},${Dt},${Dt}\\)${xt}`),qs=new RegExp(`${vt}hsv\\s*\\(${dt},${Dt},${Dt}\\)${xt}`),Ys=new RegExp(`${vt}hsla\\s*\\(${dt},${Dt},${Dt},${dt}\\)${xt}`),Zs=new RegExp(`${vt}hsva\\s*\\(${dt},${Dt},${Dt},${dt}\\)${xt}`),Js=new RegExp(`${vt}rgb\\s*\\(${dt},${dt},${dt}\\)${xt}`),Qs=new RegExp(`${vt}rgba\\s*\\(${dt},${dt},${dt},${dt}\\)${xt}`),co=new RegExp(`${vt}#${tn}${tn}${tn}${xt}`),uo=new RegExp(`${vt}#${nn}${nn}${nn}${xt}`),fo=new RegExp(`${vt}#${tn}${tn}${tn}${tn}${xt}`),ho=new RegExp(`${vt}#${nn}${nn}${nn}${nn}${xt}`);function at(e){return parseInt(e,16)}function kn(e){try{let t;if(t=Ys.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Xs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=Zs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=qs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Ze(e){try{let t;if(t=uo.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=Js.exec(e))return[Le(t[1]),Le(t[5]),Le(t[9]),1];if(t=Qs.exec(e))return[Le(t[1]),Le(t[5]),Le(t[9]),Rt(t[13])];if(t=co.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=ho.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=fo.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in ji)return Ze(ji[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function ed(e){return e>1?1:e<0?0:e}function td(e,t,n){return`rgb(${Le(e)}, ${Le(t)}, ${Le(n)})`}function po(e,t,n,o){return`rgba(${Le(e)}, ${Le(t)}, ${Le(n)}, ${ed(o)})`}function bo(e,t,n,o,i){return Le((e*t*(1-o)+n*o)/i)}function ut(e,t){Array.isArray(e)||(e=Ze(e)),Array.isArray(t)||(t=Ze(t));const n=e[3],o=t[3],i=Rt(n+o-n*o);return po(bo(e[0],n,t[0],o,i),bo(e[1],n,t[1],o,i),bo(e[2],n,t[2],o,i),i)}function me(e,t){const[n,o,i,a=1]=Array.isArray(e)?e:Ze(e);return t.alpha?po(n,o,i,t.alpha):po(n,o,i,a)}function vr(e,t){const[n,o,i,a=1]=Array.isArray(e)?e:Ze(e),{lightness:l=1,alpha:s=1}=t;return wt([n*l,o*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function yt(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Le(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function go(e){const[t,n,o]=Array.isArray(e)?e:Ze(e);return td(t,n,o)}function wt(e){const[t,n,o]=e;return 3 in e?`rgba(${Le(t)}, ${Le(n)}, ${Le(o)}, ${Rt(e[3])})`:`rgba(${Le(t)}, ${Le(n)}, ${Le(o)}, 1)`}function mo(e){return`hsv(${yt(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function on(e){const[t,n,o]=e;return 3 in e?`hsva(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, ${Rt(e[3])})`:`hsva(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, 1)`}function vo(e){return`hsl(${yt(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Vt(e){const[t,n,o]=e;return 3 in e?`hsla(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, ${Rt(e[3])})`:`hsla(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, 1)`}function Lt(e){if(typeof e=="string"){let o;if(o=uo.exec(e))return`${o[0]}FF`;if(o=ho.exec(e))return o[0];if(o=co.exec(e))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}FF`;if(o=fo.exec(e))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}${o[4]}${o[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(o=>Le(o).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":Le(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function jn(e){if(typeof e=="string"){let t;if(t=uo.exec(e))return t[0];if(t=ho.exec(e))return t[0].slice(0,7);if(t=co.exec(e)||fo.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>Le(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function nd(e=8){return Math.random().toString(16).slice(2,2+e)}function rd(e,t=[],n){const o={};return t.forEach(i=>{o[i]=e[i]}),Object.assign(o,n)}function od(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(o[a]=e[a])}),Object.assign(o,n)}function zn(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(r.createTextVNode(String(o)));return}if(Array.isArray(o)){zn(o,t,n);return}if(o.type===r.Fragment){if(o.children===null)return;Array.isArray(o.children)&&zn(o.children,t,n)}else{if(o.type===r.Comment&&t)return;n.push(o)}}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function an(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?r.createTextVNode(e):typeof e=="number"?r.createTextVNode(String(e)):null}const Gi=new Set;function Qe(e,t){const n=`[naive/${e}]: ${t}`;Gi.has(n)||(Gi.add(n),console.error(n))}function Un(e,t){console.error(`[naive/${e}]: ${t}`)}function xo(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ki(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Xi(e,t="default",n=void 0){const o=e[t];if(!o)return Un("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=zn(o(n));return i.length===1?i[0]:(Un("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Nx(e){return e}function Gn(e){return e.some(t=>r.isVNode(t)?!(t.type===r.Comment||t.type===r.Fragment&&!Gn(t.children)):!0)?e:null}function Ct(e,t){return e&&Gn(e())||t()}function id(e,t,n){return e&&Gn(e(t))||n(t)}function Ae(e,t){const n=e&&Gn(e());return t(n||null)}function Tn(e){return!(e&&Gn(e()))}function yo(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}const wo=r.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),ad=/^(\d|\.)+$/,qi=/(\d|\.)+/;function xr(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(ad.test(e)){const i=(Number(e)+n)*t;return o?i===0?"0":`${i}px`:`${i}`}else{const i=qi.exec(e);return i?e.replace(qi,String((Number(i[0])+n)*t)):e}return e}function yr(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function ld(e){const{left:t,right:n,top:o,bottom:i}=st(e);return`${o} ${n} ${i} ${t}`}function sd(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yi=/\s*,(?![^(]*\))\s*/g,dd=/\s+/g;function cd(e,t){const n=[];return t.split(Yi).forEach(o=>{let i=sd(o);if(i){if(i===1){e.forEach(l=>{n.push(o.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+o)});return}let a=[o];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function ud(e,t){const n=[];return t.split(Yi).forEach(o=>{e.forEach(i=>{n.push((i&&i+" ")+o)})}),n}function fd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=cd(t,n):t=ud(t,n))}),t.join(", ").replace(dd," ")}function Zi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wr(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function hd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Cr(e){return e?/^\s*@(s|m)/.test(e):!1}const pd=/[A-Z]/g;function Ji(e){return e.replace(pd,t=>"-"+t.toLowerCase())}function bd(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
1
|
+
(function(We,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(We=typeof globalThis<"u"?globalThis:We||self,r(We.GalaxyCharts={},We.vue))})(this,function(We,r){"use strict";var Ii=document.createElement("style");Ii.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\\!hidden{display:none!important}.hidden{display:none}.size-14{width:3.5rem;height:3.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.h-screen{height:100vh}.w-full{width:100%}.w-screen{width:100vw}.min-w-14{min-width:3.5rem}.max-w-14{max-width:3.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-\\[1fr_17rem\\]{grid-template-columns:1fr 17rem}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-pre{white-space:pre}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.border{border-width:1px}.border-dotted{border-style:dotted}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Ii);function Oi(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function Sn(e){throw Error(Oi(e))}const Ai=r.ref("/"),Fi=r.ref("include");function Di(){function e(){return Fi.value}function t(i){Fi.value=i}function n(){return Ai.value}function o(i){Ai.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:o}}async function io(e,t){const n=Di(),o=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(o,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});if(i.ok)return{data:await i.json(),response:i};Sn(i)}catch(i){Sn(i)}}function Qt(){async function e(o){return io(o,{method:"GET"})}async function t(o,i){return io(o,{body:JSON.stringify(i),method:"POST"})}async function n(o,i){return io(o,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function As(e,t){const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString();try{const{data:o}=await Qt().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of o.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(o){Sn(o)}}function Fs(e,t){return`${e}api/datasets/${t}/display`}const Vi=["auto"],Nn=r.ref({});function Ds(){function e(o,i){return o.every(a=>i.every(l=>typeof a[l]=="string"&&a[l].trim()!==""))}function t(o,i){const a=[];for(const l of o)for(const s of i){const d=l[s];d&&![...a,...Vi].includes(d)&&a.push(d)}return a}async function n(o,i,a){if(e(i,a)){Nn.value[o]=Nn.value[o]||{};const l=Object.keys(Nn.value[o]),s=t(i,a).filter(c=>!l.includes(c));if(s.length>0){const c=await As(o,s);if(c)for(const[f,u]of s.entries())Nn.value[o][u]=c[f]}const d=[];return i.forEach(c=>{const f={};a.forEach(u=>{const p=c[u];p&&!Vi.includes(p)&&(f[u]=Nn.value[o][p])}),d.push(f)}),d}else return[]}return{fetchColumns:n}}function Vs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ls(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Li(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Hs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Ns(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Ws(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Hi(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function js(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Us(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Gs(e,t){return r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let gr=[];const Ni=new WeakMap;function Ks(){gr.forEach(e=>e(...Ni.get(e))),gr=[]}function Wi(e,...t){Ni.set(e,t),!gr.includes(e)&&gr.push(e)===1&&requestAnimationFrame(Ks)}function Wn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $n(e){return e.composedPath()[0]||null}function rt(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function en(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function st(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}const ji={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ui(e,t,n){t/=100,n/=100;const o=t*Math.min(n,1-n)+n;return[e,o?(2-2*n/o)*100:0,o*100]}function mr(e,t,n){t/=100,n/=100;const o=n-n*t/2,i=Math.min(o,1-o);return[e,i?(n-o)/i*100:0,o*100]}function Ft(e,t,n){t/=100,n/=100;let o=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[o(5)*255,o(3)*255,o(1)*255]}function ao(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),i=o-Math.min(e,t,n),a=i&&(o==e?(t-n)/i:o==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),o&&i/o*100,o*100]}function lo(e,t,n){e/=255,t/=255,n/=255;let o=Math.max(e,t,n),i=o-Math.min(e,t,n),a=1-Math.abs(o+o-i-1),l=i&&(o==e?(t-n)/i:o==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(o+o-i)*50]}function so(e,t,n){t/=100,n/=100;let o=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-o*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const vt="^\\s*",xt="\\s*$",Dt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",dt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",tn="([0-9A-Fa-f])",nn="([0-9A-Fa-f]{2})",Xs=new RegExp(`${vt}hsl\\s*\\(${dt},${Dt},${Dt}\\)${xt}`),qs=new RegExp(`${vt}hsv\\s*\\(${dt},${Dt},${Dt}\\)${xt}`),Ys=new RegExp(`${vt}hsla\\s*\\(${dt},${Dt},${Dt},${dt}\\)${xt}`),Zs=new RegExp(`${vt}hsva\\s*\\(${dt},${Dt},${Dt},${dt}\\)${xt}`),Js=new RegExp(`${vt}rgb\\s*\\(${dt},${dt},${dt}\\)${xt}`),Qs=new RegExp(`${vt}rgba\\s*\\(${dt},${dt},${dt},${dt}\\)${xt}`),co=new RegExp(`${vt}#${tn}${tn}${tn}${xt}`),uo=new RegExp(`${vt}#${nn}${nn}${nn}${xt}`),fo=new RegExp(`${vt}#${tn}${tn}${tn}${tn}${xt}`),ho=new RegExp(`${vt}#${nn}${nn}${nn}${nn}${xt}`);function at(e){return parseInt(e,16)}function kn(e){try{let t;if(t=Ys.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Xs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=Zs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=qs.exec(e))return[yt(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Ze(e){try{let t;if(t=uo.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=Js.exec(e))return[Le(t[1]),Le(t[5]),Le(t[9]),1];if(t=Qs.exec(e))return[Le(t[1]),Le(t[5]),Le(t[9]),Rt(t[13])];if(t=co.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=ho.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=fo.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in ji)return Ze(ji[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function ed(e){return e>1?1:e<0?0:e}function td(e,t,n){return`rgb(${Le(e)}, ${Le(t)}, ${Le(n)})`}function po(e,t,n,o){return`rgba(${Le(e)}, ${Le(t)}, ${Le(n)}, ${ed(o)})`}function bo(e,t,n,o,i){return Le((e*t*(1-o)+n*o)/i)}function ut(e,t){Array.isArray(e)||(e=Ze(e)),Array.isArray(t)||(t=Ze(t));const n=e[3],o=t[3],i=Rt(n+o-n*o);return po(bo(e[0],n,t[0],o,i),bo(e[1],n,t[1],o,i),bo(e[2],n,t[2],o,i),i)}function me(e,t){const[n,o,i,a=1]=Array.isArray(e)?e:Ze(e);return t.alpha?po(n,o,i,t.alpha):po(n,o,i,a)}function vr(e,t){const[n,o,i,a=1]=Array.isArray(e)?e:Ze(e),{lightness:l=1,alpha:s=1}=t;return wt([n*l,o*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function yt(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Le(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function go(e){const[t,n,o]=Array.isArray(e)?e:Ze(e);return td(t,n,o)}function wt(e){const[t,n,o]=e;return 3 in e?`rgba(${Le(t)}, ${Le(n)}, ${Le(o)}, ${Rt(e[3])})`:`rgba(${Le(t)}, ${Le(n)}, ${Le(o)}, 1)`}function mo(e){return`hsv(${yt(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function on(e){const[t,n,o]=e;return 3 in e?`hsva(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, ${Rt(e[3])})`:`hsva(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, 1)`}function vo(e){return`hsl(${yt(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Vt(e){const[t,n,o]=e;return 3 in e?`hsla(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, ${Rt(e[3])})`:`hsla(${yt(t)}, ${Ge(n)}%, ${Ge(o)}%, 1)`}function Lt(e){if(typeof e=="string"){let o;if(o=uo.exec(e))return`${o[0]}FF`;if(o=ho.exec(e))return o[0];if(o=co.exec(e))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}FF`;if(o=fo.exec(e))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}${o[4]}${o[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(o=>Le(o).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":Le(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function jn(e){if(typeof e=="string"){let t;if(t=uo.exec(e))return t[0];if(t=ho.exec(e))return t[0].slice(0,7);if(t=co.exec(e)||fo.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>Le(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function nd(e=8){return Math.random().toString(16).slice(2,2+e)}function rd(e,t=[],n){const o={};return t.forEach(i=>{o[i]=e[i]}),Object.assign(o,n)}function od(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(o[a]=e[a])}),Object.assign(o,n)}function zn(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(r.createTextVNode(String(o)));return}if(Array.isArray(o)){zn(o,t,n);return}if(o.type===r.Fragment){if(o.children===null)return;Array.isArray(o.children)&&zn(o.children,t,n)}else{if(o.type===r.Comment&&t)return;n.push(o)}}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function an(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?r.createTextVNode(e):typeof e=="number"?r.createTextVNode(String(e)):null}const Gi=new Set;function Qe(e,t){const n=`[naive/${e}]: ${t}`;Gi.has(n)||(Gi.add(n),console.error(n))}function Un(e,t){console.error(`[naive/${e}]: ${t}`)}function xo(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ki(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Xi(e,t="default",n=void 0){const o=e[t];if(!o)return Un("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=zn(o(n));return i.length===1?i[0]:(Un("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Hx(e){return e}function Gn(e){return e.some(t=>r.isVNode(t)?!(t.type===r.Comment||t.type===r.Fragment&&!Gn(t.children)):!0)?e:null}function Ct(e,t){return e&&Gn(e())||t()}function id(e,t,n){return e&&Gn(e(t))||n(t)}function Ae(e,t){const n=e&&Gn(e());return t(n||null)}function Tn(e){return!(e&&Gn(e()))}function yo(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}const wo=r.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),ad=/^(\d|\.)+$/,qi=/(\d|\.)+/;function xr(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(ad.test(e)){const i=(Number(e)+n)*t;return o?i===0?"0":`${i}px`:`${i}`}else{const i=qi.exec(e);return i?e.replace(qi,String((Number(i[0])+n)*t)):e}return e}function yr(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function ld(e){const{left:t,right:n,top:o,bottom:i}=st(e);return`${o} ${n} ${i} ${t}`}function sd(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yi=/\s*,(?![^(]*\))\s*/g,dd=/\s+/g;function cd(e,t){const n=[];return t.split(Yi).forEach(o=>{let i=sd(o);if(i){if(i===1){e.forEach(l=>{n.push(o.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+o)});return}let a=[o];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function ud(e,t){const n=[];return t.split(Yi).forEach(o=>{e.forEach(i=>{n.push((i&&i+" ")+o)})}),n}function fd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=cd(t,n):t=ud(t,n))}),t.join(", ").replace(dd," ")}function Zi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wr(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function hd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Cr(e){return e?/^\s*@(s|m)/.test(e):!1}const pd=/[A-Z]/g;function Ji(e){return e.replace(pd,t=>"-"+t.toLowerCase())}function bd(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
3
3
|
`+Object.entries(e).map(n=>t+` ${Ji(n[0])}: ${n[1]};`).join(`
|
|
4
4
|
`)+`
|
|
5
5
|
`+t+"}":`: ${e};`}function gd(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Qi(e,t,n,o){if(!t)return"";const i=gd(t,n,o);if(!i)return"";if(typeof i=="string")return`${e} {
|
|
@@ -10,7 +10,7 @@ ${i}
|
|
|
10
10
|
`);return}s=Ji(s),d!=null&&l.push(` ${s}${bd(d)}`)}),e&&l.push("}"),l.join(`
|
|
11
11
|
`)}function Co(e,t,n){e&&e.forEach(o=>{if(Array.isArray(o))Co(o,t,n);else if(typeof o=="function"){const i=o(t);Array.isArray(i)?Co(i,t,n):i&&n(i)}else o&&n(o)})}function ea(e,t,n,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Cr(a)?l=a:t.push(a);else if(typeof a=="function"){const c=a({context:o.context,props:i});Cr(c)?l=c:t.push(c)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")Cr(a.$)?l=a.$:t.push(a.$);else if(a.$){const c=a.$({context:o.context,props:i});Cr(c)?l=c:t.push(c)}const s=fd(t),d=Qi(s,e.props,o,i);l?n.push(`${l} {`):d.length&&n.push(d),e.children&&Co(e.children,{context:o.context,props:i},c=>{if(typeof c=="string"){const f=Qi(s,{raw:c},o,i);n.push(f)}else ea(c,t,n,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(o.context)}function md(e,t,n){const o=[];return ea(e,[],o,t,n),o.join(`
|
|
12
12
|
|
|
13
|
-
`)}function So(e){for(var t=0,n,o=0,i=e.length;i>=4;++o,i-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function vd(e,t,n,o){const{els:i}=t;if(n===void 0)i.forEach(Zi),t.els=[];else{const a=wr(n,o);a&&i.includes(a)&&(Zi(a),t.els=i.filter(l=>l!==a))}}function ta(e,t){e.push(t)}function xd(e,t,n,o,i,a,l,s,d){let c;if(n===void 0&&(c=t.render(o),n=So(c)),d){d.adapter(n,c??t.render(o));return}s===void 0&&(s=document.head);const f=wr(n,s);if(f!==null&&!a)return f;const u=f??hd(n);if(c===void 0&&(c=t.render(o)),u.textContent=c,f!==null)return f;if(l){const p=s.querySelector(`meta[name="${l}"]`);if(p)return s.insertBefore(u,p),ta(t.els,u),u}return i?s.insertBefore(u,s.querySelector("style, link")):s.appendChild(u),ta(t.els,u),u}function yd(e){return md(this,this.instance,e)}function wd(e={}){const{id:t,ssr:n,props:o,head:i=!1,force:a=!1,anchorMetaName:l,parent:s}=e;return xd(this.instance,this,t,o,i,a,l,s,n)}function Cd(e={}){const{id:t,parent:n}=e;vd(this.instance,this,t,n)}const Sr=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:yd,mount:wd,unmount:Cd}},Sd=function(e,t,n,o){return Array.isArray(t)?Sr(e,{$:null},null,t):Array.isArray(n)?Sr(e,t,null,n):Array.isArray(o)?Sr(e,t,n,o):Sr(e,t,n,null)};function na(e={}){const t={c:(...n)=>Sd(t,...n),use:(n,...o)=>n.install(t,...o),find:wr,context:{},config:e};return t}function $d(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return wr(e)!==null}function kd(e){let t=".",n="__",o="--",i;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(n=h),h=e.modifierPrefix,h&&(o=h)}const a={install(h){i=h.c;const x=h.context;x.bem={},x.bem.b=null,x.bem.els=null}};function l(h){let x,w;return{before(g){x=g.bem.b,w=g.bem.els,g.bem.els=null},after(g){g.bem.b=x,g.bem.els=w},$({context:g,props:P}){return h=typeof h=="string"?h:h({context:g,props:P}),g.bem.b=h,`${(P==null?void 0:P.bPrefix)||t}${g.bem.b}`}}}function s(h){let x;return{before(w){x=w.bem.els},after(w){w.bem.els=x},$({context:w,props:g}){return h=typeof h=="string"?h:h({context:w,props:g}),w.bem.els=h.split(",").map(P=>P.trim()),w.bem.els.map(P=>`${(g==null?void 0:g.bPrefix)||t}${w.bem.b}${n}${P}`).join(", ")}}}function d(h){return{$({context:x,props:w}){h=typeof h=="string"?h:h({context:x,props:w});const g=h.split(",").map($=>$.trim());function P($){return g.map(k=>`&${(w==null?void 0:w.bPrefix)||t}${x.bem.b}${$!==void 0?`${n}${$}`:""}${o}${k}`).join(", ")}const L=x.bem.els;if(L!==null){if(process.env.NODE_ENV!=="production"&&L.length>=2)throw Error(`[css-render/plugin-bem]: m(${h}) is invalid, using modifier inside multiple elements is not allowed`);return P(L[0])}else return P()}}}function c(h){return{$({context:x,props:w}){h=typeof h=="string"?h:h({context:x,props:w});const g=x.bem.els;if(process.env.NODE_ENV!=="production"&&g!==null&&g.length>=2)throw Error(`[css-render/plugin-bem]: notM(${h}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(w==null?void 0:w.bPrefix)||t}${x.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${o}${h})`}}}return Object.assign(a,{cB:(...h)=>i(l(h[0]),h[1],h[2]),cE:(...h)=>i(s(h[0]),h[1],h[2]),cM:(...h)=>i(d(h[0]),h[1],h[2]),cNotM:(...h)=>i(c(h[0]),h[1],h[2])}),a}const $r=".n-",zd="__",Td="--",ra=na(),oa=kd({blockPrefix:$r,elementPrefix:zd,modifierPrefix:Td});ra.use(oa);const{c:V,find:jx}=ra,{cB:y,cE:R,cM:W,cNotM:je}=oa;function Pd(e){return V(({props:{bPrefix:t}})=>`${t||$r}modal, ${t||$r}drawer`,[e])}function Rd(e){return V(({props:{bPrefix:t}})=>`${t||$r}popover`,[e])}const Ed=(...e)=>V(">",[y(...e)]);function ee(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let $o;function Bd(){return $o===void 0&&($o=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),$o}const kr=typeof document<"u"&&typeof window<"u",Md=new WeakSet;function _d(e){Md.add(e)}function Id(e){const t=r.ref(!!e.value);if(t.value)return r.readonly(t);const n=r.watch(e,o=>{o&&(t.value=!0,n())});return r.readonly(t)}function Xe(e){const t=r.computed(e),n=r.ref(t.value);return r.watch(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}const Od=typeof window<"u";let Pn,Kn;(()=>{var e,t;Pn=Od?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Kn=!1,Pn!==void 0?Pn.then(()=>{Kn=!0}):Kn=!0})();function ia(e){if(Kn)return;let t=!1;r.onMounted(()=>{Kn||Pn==null||Pn.then(()=>{t||e()})}),r.onBeforeUnmount(()=>{t=!0})}function zr(e){return e.composedPath()[0]}const Ad={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Fd(e,t,n){if(e==="mousemoveoutside"){const o=i=>{t.contains(zr(i))||n(i)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const i=l=>{o=!t.contains(zr(l))},a=l=>{o&&(t.contains(zr(l))||n(l))};return{mousedown:i,mouseup:a,touchstart:i,touchend:a}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function aa(e,t,n){const o=Ad[e];let i=o.get(t);i===void 0&&o.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=Fd(e,t,n)),a}function Dd(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const i=aa(e,t,n);return Object.keys(i).forEach(a=>{Pe(a,document,i[a],o)}),!0}return!1}function Vd(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const i=aa(e,t,n);return Object.keys(i).forEach(a=>{$e(a,document,i[a],o)}),!0}return!1}function Ld(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function i(b,S,M){const F=b[S];return b[S]=function(){return M.apply(b,arguments),F.apply(b,arguments)},b}function a(b,S){b[S]=Event.prototype[S]}const l=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var b;return(b=l.get(this))!==null&&b!==void 0?b:null}function c(b,S){s!==void 0&&Object.defineProperty(b,"currentTarget",{configurable:!0,enumerable:!0,get:S??s.get})}const f={bubble:{},capture:{}},u={};function p(){const b=function(S){const{type:M,eventPhase:F,bubbles:I}=S,D=zr(S);if(F===2)return;const j=F===1?"capture":"bubble";let Q=D;const N=[];for(;Q===null&&(Q=window),N.push(Q),Q!==window;)Q=Q.parentNode||null;const Z=f.capture[M],q=f.bubble[M];if(i(S,"stopPropagation",n),i(S,"stopImmediatePropagation",o),c(S,d),j==="capture"){if(Z===void 0)return;for(let Y=N.length-1;Y>=0&&!e.has(S);--Y){const le=N[Y],ie=Z.get(le);if(ie!==void 0){l.set(S,le);for(const ce of ie){if(t.has(S))break;ce(S)}}if(Y===0&&!I&&q!==void 0){const ce=q.get(le);if(ce!==void 0)for(const U of ce){if(t.has(S))break;U(S)}}}}else if(j==="bubble"){if(q===void 0)return;for(let Y=0;Y<N.length&&!e.has(S);++Y){const le=N[Y],ie=q.get(le);if(ie!==void 0){l.set(S,le);for(const ce of ie){if(t.has(S))break;ce(S)}}}}a(S,"stopPropagation"),a(S,"stopImmediatePropagation"),c(S)};return b.displayName="evtdUnifiedHandler",b}function m(){const b=function(S){const{type:M,eventPhase:F}=S;if(F!==2)return;const I=u[M];I!==void 0&&I.forEach(D=>D(S))};return b.displayName="evtdUnifiedWindowEventHandler",b}const h=p(),x=m();function w(b,S){const M=f[b];return M[S]===void 0&&(M[S]=new Map,window.addEventListener(S,h,b==="capture")),M[S]}function g(b){return u[b]===void 0&&(u[b]=new Set,window.addEventListener(b,x)),u[b]}function P(b,S){let M=b.get(S);return M===void 0&&b.set(S,M=new Set),M}function L(b,S,M,F){const I=f[S][M];if(I!==void 0){const D=I.get(b);if(D!==void 0&&D.has(F))return!0}return!1}function $(b,S){const M=u[b];return!!(M!==void 0&&M.has(S))}function k(b,S,M,F){let I;if(typeof F=="object"&&F.once===!0?I=Z=>{_(b,S,I,F),M(Z)}:I=M,Dd(b,S,I,F))return;const j=F===!0||typeof F=="object"&&F.capture===!0?"capture":"bubble",Q=w(j,b),N=P(Q,S);if(N.has(I)||N.add(I),S===window){const Z=g(b);Z.has(I)||Z.add(I)}}function _(b,S,M,F){if(Vd(b,S,M,F))return;const D=F===!0||typeof F=="object"&&F.capture===!0,j=D?"capture":"bubble",Q=w(j,b),N=P(Q,S);if(S===window&&!L(S,D?"bubble":"capture",b,M)&&$(b,M)){const q=u[b];q.delete(M),q.size===0&&(window.removeEventListener(b,x),u[b]=void 0)}N.has(M)&&N.delete(M),N.size===0&&Q.delete(S),Q.size===0&&(window.removeEventListener(b,h,j==="capture"),f[j][b]=void 0)}return{on:k,off:_}}const{on:Pe,off:$e}=Ld();function St(e,t){return r.watch(e,n=>{n!==void 0&&(t.value=n)}),r.computed(()=>e.value===void 0?t.value:e.value)}function Rn(){const e=r.ref(!1);return r.onMounted(()=>{e.value=!0}),r.readonly(e)}function Tr(e,t){return r.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const Hd=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Nd(){return Hd}const ko="n-internal-select-menu",la="n-internal-select-menu-body",sa="n-modal-body",da="n-drawer-body",ca="n-popover-body",ua="__disabled__";function ot(e){const t=r.inject(sa,null),n=r.inject(da,null),o=r.inject(ca,null),i=r.inject(la,null),a=r.ref();if(typeof document<"u"){a.value=document.fullscreenElement;const l=()=>{a.value=document.fullscreenElement};r.onMounted(()=>{Pe("fullscreenchange",document,l)}),r.onBeforeUnmount(()=>{$e("fullscreenchange",document,l)})}return Xe(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?ua:s===!0?a.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:i!=null&&i.value?i.value:s??(a.value||"body")})}ot.tdkey=ua,ot.propTo={type:[String,Object,Boolean],default:void 0};function zo(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return o()}function To(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(r.createTextVNode(String(o)));return}if(Array.isArray(o)){To(o,t,n);return}if(o.type===r.Fragment){if(o.children===null)return;Array.isArray(o.children)&&To(o.children,t,n)}else o.type!==r.Comment&&n.push(o)}}),n}function fa(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const i=To(o());if(i.length===1)return i[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Ht=null;function ha(){if(Ht===null&&(Ht=document.getElementById("v-binder-view-measurer"),Ht===null)){Ht=document.createElement("div"),Ht.id="v-binder-view-measurer";const{style:e}=Ht;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ht)}return Ht.getBoundingClientRect()}function Wd(e,t){const n=ha();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Po(e){const t=e.getBoundingClientRect(),n=ha();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function jd(e){return e.nodeType===9?null:e.parentNode}function pa(e){if(e===null)return null;const t=jd(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:i}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+i+o))return t}return pa(t)}const Pr=r.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;r.provide("VBinder",(t=r.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=r.inject("VBinder",null),o=r.ref(null),i=g=>{o.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let a=[];const l=()=>{let g=o.value;for(;g=pa(g),g!==null;)a.push(g);for(const P of a)Pe("scroll",P,u,!0)},s=()=>{for(const g of a)$e("scroll",g,u,!0);a=[]},d=new Set,c=g=>{d.size===0&&l(),d.has(g)||d.add(g)},f=g=>{d.has(g)&&d.delete(g),d.size===0&&s()},u=()=>{Wi(p)},p=()=>{d.forEach(g=>g())},m=new Set,h=g=>{m.size===0&&Pe("resize",window,w),m.has(g)||m.add(g)},x=g=>{m.has(g)&&m.delete(g),m.size===0&&$e("resize",window,w)},w=()=>{m.forEach(g=>g())};return r.onBeforeUnmount(()=>{$e("resize",window,w),s()}),{targetRef:o,setTargetRef:i,addScrollListener:c,removeScrollListener:f,addResizeListener:h,removeResizeListener:x}},render(){return zo("binder",this.$slots)}}),Rr=r.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=r.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?r.withDirectives(fa("follower",this.$slots),[[t]]):fa("follower",this.$slots)}}),En="@@mmoContext",Ud={mounted(e,{value:t}){e[En]={handler:void 0},typeof t=="function"&&(e[En].handler=t,Pe("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[En];typeof t=="function"?n.handler?n.handler!==t&&($e("mousemoveoutside",e,n.handler),n.handler=t,Pe("mousemoveoutside",e,t)):(e[En].handler=t,Pe("mousemoveoutside",e,t)):n.handler&&($e("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[En];t&&$e("mousemoveoutside",e,t),e[En].handler=void 0}},Bn="@@coContext",Xn={mounted(e,{value:t,modifiers:n}){e[Bn]={handler:void 0},typeof t=="function"&&(e[Bn].handler=t,Pe("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const o=e[Bn];typeof t=="function"?o.handler?o.handler!==t&&($e("clickoutside",e,o.handler,{capture:n.capture}),o.handler=t,Pe("clickoutside",e,t,{capture:n.capture})):(e[Bn].handler=t,Pe("clickoutside",e,t,{capture:n.capture})):o.handler&&($e("clickoutside",e,o.handler,{capture:n.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Bn];n&&$e("clickoutside",e,n,{capture:t.capture}),e[Bn].handler=void 0}};function Gd(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Kd{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:o}=this;if(n!==void 0){t.style.zIndex=`${n}`,o.delete(t);return}const{nextZIndex:i}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${i}`,o.set(t,i),this.nextZIndex=i+1,this.squashState())}unregister(t,n){const{elementZIndex:o}=this;o.has(t)?o.delete(t):n===void 0&&Gd("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,o)=>n[1]-o[1]),this.nextZIndex=2e3,t.forEach(n=>{const o=n[0],i=this.nextZIndex++;`${i}`!==o.style.zIndex&&(o.style.zIndex=`${i}`)})}}const Ro=new Kd,Mn="@@ziContext",ba={mounted(e,t){const{value:n={}}=t,{zIndex:o,enabled:i}=n;e[Mn]={enabled:!!i,initialized:!1},i&&(Ro.ensureZIndex(e,o),e[Mn].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:o,enabled:i}=n,a=e[Mn].enabled;i&&!a&&(Ro.ensureZIndex(e,o),e[Mn].initialized=!0),e[Mn].enabled=!!i},unmounted(e,t){if(!e[Mn].initialized)return;const{value:n={}}=t,{zIndex:o}=n;Ro.unregister(e,o)}},Xd="@css-render/vue3-ssr";function qd(e,t){return`<style cssr-id="${e}">
|
|
13
|
+
`)}function So(e){for(var t=0,n,o=0,i=e.length;i>=4;++o,i-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function vd(e,t,n,o){const{els:i}=t;if(n===void 0)i.forEach(Zi),t.els=[];else{const a=wr(n,o);a&&i.includes(a)&&(Zi(a),t.els=i.filter(l=>l!==a))}}function ta(e,t){e.push(t)}function xd(e,t,n,o,i,a,l,s,d){let c;if(n===void 0&&(c=t.render(o),n=So(c)),d){d.adapter(n,c??t.render(o));return}s===void 0&&(s=document.head);const f=wr(n,s);if(f!==null&&!a)return f;const u=f??hd(n);if(c===void 0&&(c=t.render(o)),u.textContent=c,f!==null)return f;if(l){const p=s.querySelector(`meta[name="${l}"]`);if(p)return s.insertBefore(u,p),ta(t.els,u),u}return i?s.insertBefore(u,s.querySelector("style, link")):s.appendChild(u),ta(t.els,u),u}function yd(e){return md(this,this.instance,e)}function wd(e={}){const{id:t,ssr:n,props:o,head:i=!1,force:a=!1,anchorMetaName:l,parent:s}=e;return xd(this.instance,this,t,o,i,a,l,s,n)}function Cd(e={}){const{id:t,parent:n}=e;vd(this.instance,this,t,n)}const Sr=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:yd,mount:wd,unmount:Cd}},Sd=function(e,t,n,o){return Array.isArray(t)?Sr(e,{$:null},null,t):Array.isArray(n)?Sr(e,t,null,n):Array.isArray(o)?Sr(e,t,n,o):Sr(e,t,n,null)};function na(e={}){const t={c:(...n)=>Sd(t,...n),use:(n,...o)=>n.install(t,...o),find:wr,context:{},config:e};return t}function $d(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return wr(e)!==null}function kd(e){let t=".",n="__",o="--",i;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(n=h),h=e.modifierPrefix,h&&(o=h)}const a={install(h){i=h.c;const x=h.context;x.bem={},x.bem.b=null,x.bem.els=null}};function l(h){let x,w;return{before(g){x=g.bem.b,w=g.bem.els,g.bem.els=null},after(g){g.bem.b=x,g.bem.els=w},$({context:g,props:P}){return h=typeof h=="string"?h:h({context:g,props:P}),g.bem.b=h,`${(P==null?void 0:P.bPrefix)||t}${g.bem.b}`}}}function s(h){let x;return{before(w){x=w.bem.els},after(w){w.bem.els=x},$({context:w,props:g}){return h=typeof h=="string"?h:h({context:w,props:g}),w.bem.els=h.split(",").map(P=>P.trim()),w.bem.els.map(P=>`${(g==null?void 0:g.bPrefix)||t}${w.bem.b}${n}${P}`).join(", ")}}}function d(h){return{$({context:x,props:w}){h=typeof h=="string"?h:h({context:x,props:w});const g=h.split(",").map($=>$.trim());function P($){return g.map(k=>`&${(w==null?void 0:w.bPrefix)||t}${x.bem.b}${$!==void 0?`${n}${$}`:""}${o}${k}`).join(", ")}const L=x.bem.els;if(L!==null){if(process.env.NODE_ENV!=="production"&&L.length>=2)throw Error(`[css-render/plugin-bem]: m(${h}) is invalid, using modifier inside multiple elements is not allowed`);return P(L[0])}else return P()}}}function c(h){return{$({context:x,props:w}){h=typeof h=="string"?h:h({context:x,props:w});const g=x.bem.els;if(process.env.NODE_ENV!=="production"&&g!==null&&g.length>=2)throw Error(`[css-render/plugin-bem]: notM(${h}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(w==null?void 0:w.bPrefix)||t}${x.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${o}${h})`}}}return Object.assign(a,{cB:(...h)=>i(l(h[0]),h[1],h[2]),cE:(...h)=>i(s(h[0]),h[1],h[2]),cM:(...h)=>i(d(h[0]),h[1],h[2]),cNotM:(...h)=>i(c(h[0]),h[1],h[2])}),a}const $r=".n-",zd="__",Td="--",ra=na(),oa=kd({blockPrefix:$r,elementPrefix:zd,modifierPrefix:Td});ra.use(oa);const{c:V,find:Wx}=ra,{cB:y,cE:R,cM:W,cNotM:je}=oa;function Pd(e){return V(({props:{bPrefix:t}})=>`${t||$r}modal, ${t||$r}drawer`,[e])}function Rd(e){return V(({props:{bPrefix:t}})=>`${t||$r}popover`,[e])}const Ed=(...e)=>V(">",[y(...e)]);function ee(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let $o;function Bd(){return $o===void 0&&($o=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),$o}const kr=typeof document<"u"&&typeof window<"u",Md=new WeakSet;function _d(e){Md.add(e)}function Id(e){const t=r.ref(!!e.value);if(t.value)return r.readonly(t);const n=r.watch(e,o=>{o&&(t.value=!0,n())});return r.readonly(t)}function Xe(e){const t=r.computed(e),n=r.ref(t.value);return r.watch(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}const Od=typeof window<"u";let Pn,Kn;(()=>{var e,t;Pn=Od?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Kn=!1,Pn!==void 0?Pn.then(()=>{Kn=!0}):Kn=!0})();function ia(e){if(Kn)return;let t=!1;r.onMounted(()=>{Kn||Pn==null||Pn.then(()=>{t||e()})}),r.onBeforeUnmount(()=>{t=!0})}function zr(e){return e.composedPath()[0]}const Ad={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Fd(e,t,n){if(e==="mousemoveoutside"){const o=i=>{t.contains(zr(i))||n(i)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const i=l=>{o=!t.contains(zr(l))},a=l=>{o&&(t.contains(zr(l))||n(l))};return{mousedown:i,mouseup:a,touchstart:i,touchend:a}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function aa(e,t,n){const o=Ad[e];let i=o.get(t);i===void 0&&o.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=Fd(e,t,n)),a}function Dd(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const i=aa(e,t,n);return Object.keys(i).forEach(a=>{Pe(a,document,i[a],o)}),!0}return!1}function Vd(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const i=aa(e,t,n);return Object.keys(i).forEach(a=>{$e(a,document,i[a],o)}),!0}return!1}function Ld(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function i(b,S,M){const F=b[S];return b[S]=function(){return M.apply(b,arguments),F.apply(b,arguments)},b}function a(b,S){b[S]=Event.prototype[S]}const l=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var b;return(b=l.get(this))!==null&&b!==void 0?b:null}function c(b,S){s!==void 0&&Object.defineProperty(b,"currentTarget",{configurable:!0,enumerable:!0,get:S??s.get})}const f={bubble:{},capture:{}},u={};function p(){const b=function(S){const{type:M,eventPhase:F,bubbles:I}=S,D=zr(S);if(F===2)return;const j=F===1?"capture":"bubble";let Q=D;const N=[];for(;Q===null&&(Q=window),N.push(Q),Q!==window;)Q=Q.parentNode||null;const Z=f.capture[M],q=f.bubble[M];if(i(S,"stopPropagation",n),i(S,"stopImmediatePropagation",o),c(S,d),j==="capture"){if(Z===void 0)return;for(let Y=N.length-1;Y>=0&&!e.has(S);--Y){const le=N[Y],ie=Z.get(le);if(ie!==void 0){l.set(S,le);for(const ce of ie){if(t.has(S))break;ce(S)}}if(Y===0&&!I&&q!==void 0){const ce=q.get(le);if(ce!==void 0)for(const U of ce){if(t.has(S))break;U(S)}}}}else if(j==="bubble"){if(q===void 0)return;for(let Y=0;Y<N.length&&!e.has(S);++Y){const le=N[Y],ie=q.get(le);if(ie!==void 0){l.set(S,le);for(const ce of ie){if(t.has(S))break;ce(S)}}}}a(S,"stopPropagation"),a(S,"stopImmediatePropagation"),c(S)};return b.displayName="evtdUnifiedHandler",b}function m(){const b=function(S){const{type:M,eventPhase:F}=S;if(F!==2)return;const I=u[M];I!==void 0&&I.forEach(D=>D(S))};return b.displayName="evtdUnifiedWindowEventHandler",b}const h=p(),x=m();function w(b,S){const M=f[b];return M[S]===void 0&&(M[S]=new Map,window.addEventListener(S,h,b==="capture")),M[S]}function g(b){return u[b]===void 0&&(u[b]=new Set,window.addEventListener(b,x)),u[b]}function P(b,S){let M=b.get(S);return M===void 0&&b.set(S,M=new Set),M}function L(b,S,M,F){const I=f[S][M];if(I!==void 0){const D=I.get(b);if(D!==void 0&&D.has(F))return!0}return!1}function $(b,S){const M=u[b];return!!(M!==void 0&&M.has(S))}function k(b,S,M,F){let I;if(typeof F=="object"&&F.once===!0?I=Z=>{_(b,S,I,F),M(Z)}:I=M,Dd(b,S,I,F))return;const j=F===!0||typeof F=="object"&&F.capture===!0?"capture":"bubble",Q=w(j,b),N=P(Q,S);if(N.has(I)||N.add(I),S===window){const Z=g(b);Z.has(I)||Z.add(I)}}function _(b,S,M,F){if(Vd(b,S,M,F))return;const D=F===!0||typeof F=="object"&&F.capture===!0,j=D?"capture":"bubble",Q=w(j,b),N=P(Q,S);if(S===window&&!L(S,D?"bubble":"capture",b,M)&&$(b,M)){const q=u[b];q.delete(M),q.size===0&&(window.removeEventListener(b,x),u[b]=void 0)}N.has(M)&&N.delete(M),N.size===0&&Q.delete(S),Q.size===0&&(window.removeEventListener(b,h,j==="capture"),f[j][b]=void 0)}return{on:k,off:_}}const{on:Pe,off:$e}=Ld();function St(e,t){return r.watch(e,n=>{n!==void 0&&(t.value=n)}),r.computed(()=>e.value===void 0?t.value:e.value)}function Rn(){const e=r.ref(!1);return r.onMounted(()=>{e.value=!0}),r.readonly(e)}function Tr(e,t){return r.computed(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const Hd=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Nd(){return Hd}const ko="n-internal-select-menu",la="n-internal-select-menu-body",sa="n-modal-body",da="n-drawer-body",ca="n-popover-body",ua="__disabled__";function ot(e){const t=r.inject(sa,null),n=r.inject(da,null),o=r.inject(ca,null),i=r.inject(la,null),a=r.ref();if(typeof document<"u"){a.value=document.fullscreenElement;const l=()=>{a.value=document.fullscreenElement};r.onMounted(()=>{Pe("fullscreenchange",document,l)}),r.onBeforeUnmount(()=>{$e("fullscreenchange",document,l)})}return Xe(()=>{var l;const{to:s}=e;return s!==void 0?s===!1?ua:s===!0?a.value||"body":s:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:i!=null&&i.value?i.value:s??(a.value||"body")})}ot.tdkey=ua,ot.propTo={type:[String,Object,Boolean],default:void 0};function zo(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return o()}function To(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(r.createTextVNode(String(o)));return}if(Array.isArray(o)){To(o,t,n);return}if(o.type===r.Fragment){if(o.children===null)return;Array.isArray(o.children)&&To(o.children,t,n)}else o.type!==r.Comment&&n.push(o)}}),n}function fa(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const i=To(o());if(i.length===1)return i[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Ht=null;function ha(){if(Ht===null&&(Ht=document.getElementById("v-binder-view-measurer"),Ht===null)){Ht=document.createElement("div"),Ht.id="v-binder-view-measurer";const{style:e}=Ht;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Ht)}return Ht.getBoundingClientRect()}function Wd(e,t){const n=ha();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Po(e){const t=e.getBoundingClientRect(),n=ha();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function jd(e){return e.nodeType===9?null:e.parentNode}function pa(e){if(e===null)return null;const t=jd(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:i}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+i+o))return t}return pa(t)}const Pr=r.defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;r.provide("VBinder",(t=r.getCurrentInstance())===null||t===void 0?void 0:t.proxy);const n=r.inject("VBinder",null),o=r.ref(null),i=g=>{o.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let a=[];const l=()=>{let g=o.value;for(;g=pa(g),g!==null;)a.push(g);for(const P of a)Pe("scroll",P,u,!0)},s=()=>{for(const g of a)$e("scroll",g,u,!0);a=[]},d=new Set,c=g=>{d.size===0&&l(),d.has(g)||d.add(g)},f=g=>{d.has(g)&&d.delete(g),d.size===0&&s()},u=()=>{Wi(p)},p=()=>{d.forEach(g=>g())},m=new Set,h=g=>{m.size===0&&Pe("resize",window,w),m.has(g)||m.add(g)},x=g=>{m.has(g)&&m.delete(g),m.size===0&&$e("resize",window,w)},w=()=>{m.forEach(g=>g())};return r.onBeforeUnmount(()=>{$e("resize",window,w),s()}),{targetRef:o,setTargetRef:i,addScrollListener:c,removeScrollListener:f,addResizeListener:h,removeResizeListener:x}},render(){return zo("binder",this.$slots)}}),Rr=r.defineComponent({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=r.inject("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?r.withDirectives(fa("follower",this.$slots),[[t]]):fa("follower",this.$slots)}}),En="@@mmoContext",Ud={mounted(e,{value:t}){e[En]={handler:void 0},typeof t=="function"&&(e[En].handler=t,Pe("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[En];typeof t=="function"?n.handler?n.handler!==t&&($e("mousemoveoutside",e,n.handler),n.handler=t,Pe("mousemoveoutside",e,t)):(e[En].handler=t,Pe("mousemoveoutside",e,t)):n.handler&&($e("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[En];t&&$e("mousemoveoutside",e,t),e[En].handler=void 0}},Bn="@@coContext",Xn={mounted(e,{value:t,modifiers:n}){e[Bn]={handler:void 0},typeof t=="function"&&(e[Bn].handler=t,Pe("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const o=e[Bn];typeof t=="function"?o.handler?o.handler!==t&&($e("clickoutside",e,o.handler,{capture:n.capture}),o.handler=t,Pe("clickoutside",e,t,{capture:n.capture})):(e[Bn].handler=t,Pe("clickoutside",e,t,{capture:n.capture})):o.handler&&($e("clickoutside",e,o.handler,{capture:n.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Bn];n&&$e("clickoutside",e,n,{capture:t.capture}),e[Bn].handler=void 0}};function Gd(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Kd{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:o}=this;if(n!==void 0){t.style.zIndex=`${n}`,o.delete(t);return}const{nextZIndex:i}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${i}`,o.set(t,i),this.nextZIndex=i+1,this.squashState())}unregister(t,n){const{elementZIndex:o}=this;o.has(t)?o.delete(t):n===void 0&&Gd("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,o)=>n[1]-o[1]),this.nextZIndex=2e3,t.forEach(n=>{const o=n[0],i=this.nextZIndex++;`${i}`!==o.style.zIndex&&(o.style.zIndex=`${i}`)})}}const Ro=new Kd,Mn="@@ziContext",ba={mounted(e,t){const{value:n={}}=t,{zIndex:o,enabled:i}=n;e[Mn]={enabled:!!i,initialized:!1},i&&(Ro.ensureZIndex(e,o),e[Mn].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:o,enabled:i}=n,a=e[Mn].enabled;i&&!a&&(Ro.ensureZIndex(e,o),e[Mn].initialized=!0),e[Mn].enabled=!!i},unmounted(e,t){if(!e[Mn].initialized)return;const{value:n={}}=t,{zIndex:o}=n;Ro.unregister(e,o)}},Xd="@css-render/vue3-ssr";function qd(e,t){return`<style cssr-id="${e}">
|
|
14
14
|
${t}
|
|
15
15
|
</style>`}function Yd(e,t,n){const{styles:o,ids:i}=n;i.has(e)||o!==null&&(i.add(e),o.push(qd(e,t)))}const Zd=typeof document<"u";function Nt(){if(Zd)return;const e=r.inject(Xd,null);if(e!==null)return{adapter:(t,n)=>Yd(t,n,e),context:e}}function ga(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:$t}=na(),Er="vueuc-style";function ma(e){return e&-e}class Jd{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let i=0;i<t+1;++i)o[i]=0;this.ft=o}add(t,n){if(n===0)return;const{l:o,ft:i}=this;for(t+=1;t<=o;)i[t]+=n,t+=ma(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:n,min:o,l:i}=this;if(t>i)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let a=t*o;for(;t>0;)a+=n[t],t-=ma(t);return a}getBound(t){let n=0,o=this.l;for(;o>n;){const i=Math.floor((n+o)/2),a=this.sum(i);if(a>t){o=i;continue}else if(a<t){if(n===i)return this.sum(n+1)<=t?n+1:i;n=i}else return i}return n}}function va(e){return typeof e=="string"?document.querySelector(e):e()}const Qd=r.defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Id(r.toRef(e,"show")),mergedTo:r.computed(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?zo("lazy-teleport",this.$slots):r.h(r.Teleport,{disabled:this.disabled,to:this.mergedTo},zo("lazy-teleport",this.$slots)):null}}),Br={top:"bottom",bottom:"top",left:"right",right:"left"},xa={start:"end",center:"center",end:"start"},Eo={top:"height",bottom:"height",left:"width",right:"width"},ec={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},tc={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},nc={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ya={top:!0,bottom:!1,left:!0,right:!1},wa={top:"end",bottom:"start",left:"end",right:"start"};function rc(e,t,n,o,i,a){if(!i||a)return{placement:e,top:0,left:0};const[l,s]=e.split("-");let d=s??"center",c={top:0,left:0};const f=(m,h,x)=>{let w=0,g=0;const P=n[m]-t[h]-t[m];return P>0&&o&&(x?g=ya[h]?P:-P:w=ya[h]?P:-P),{left:w,top:g}},u=l==="left"||l==="right";if(d!=="center"){const m=nc[e],h=Br[m],x=Eo[m];if(n[x]>t[x]){if(t[m]+t[x]<n[x]){const w=(n[x]-t[x])/2;t[m]<w||t[h]<w?t[m]<t[h]?(d=xa[s],c=f(x,h,u)):c=f(x,m,u):d="center"}}else n[x]<t[x]&&t[h]<0&&t[m]>t[h]&&(d=xa[s])}else{const m=l==="bottom"||l==="top"?"left":"top",h=Br[m],x=Eo[m],w=(n[x]-t[x])/2;(t[m]<w||t[h]<w)&&(t[m]>t[h]?(d=wa[m],c=f(x,m,u)):(d=wa[h],c=f(x,h,u)))}let p=l;return t[l]<n[Eo[l]]&&t[l]<t[Br[l]]&&(p=Br[l]),{placement:d!=="center"?`${p}-${d}`:p,left:c.left,top:c.top}}function oc(e,t){return t?tc[e]:ec[e]}function ic(e,t,n,o,i,a){if(a)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+o)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+o)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:"translateX(-50%)"}}}const ac=$t([$t(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),$t(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[$t("> *",{pointerEvents:"all"})])]),Mr=r.defineComponent({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=r.inject("VBinder"),n=Xe(()=>e.enabled!==void 0?e.enabled:e.show),o=r.ref(null),i=r.ref(null),a=()=>{const{syncTrigger:p}=e;p.includes("scroll")&&t.addScrollListener(d),p.includes("resize")&&t.addResizeListener(d)},l=()=>{t.removeScrollListener(d),t.removeResizeListener(d)};r.onMounted(()=>{n.value&&(d(),a())});const s=Nt();ac.mount({id:"vueuc/binder",head:!0,anchorMetaName:Er,ssr:s}),r.onBeforeUnmount(()=>{l()}),ia(()=>{n.value&&d()});const d=()=>{if(!n.value)return;const p=o.value;if(p===null)return;const m=t.targetRef,{x:h,y:x,overlap:w}=e,g=h!==void 0&&x!==void 0?Wd(h,x):Po(m);p.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),p.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:P,minWidth:L,placement:$,internalShift:k,flip:_}=e;p.setAttribute("v-placement",$),w?p.setAttribute("v-overlap",""):p.removeAttribute("v-overlap");const{style:b}=p;P==="target"?b.width=`${g.width}px`:P!==void 0?b.width=P:b.width="",L==="target"?b.minWidth=`${g.width}px`:L!==void 0?b.minWidth=L:b.minWidth="";const S=Po(p),M=Po(i.value),{left:F,top:I,placement:D}=rc($,g,S,k,_,w),j=oc(D,w),{left:Q,top:N,transform:Z}=ic(D,M,g,I,F,w);p.setAttribute("v-placement",D),p.style.setProperty("--v-offset-left",`${Math.round(F)}px`),p.style.setProperty("--v-offset-top",`${Math.round(I)}px`),p.style.transform=`translateX(${Q}) translateY(${N}) ${Z}`,p.style.setProperty("--v-transform-origin",j),p.style.transformOrigin=j};r.watch(n,p=>{p?(a(),c()):l()});const c=()=>{r.nextTick().then(d).catch(p=>console.error(p))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(p=>{r.watch(r.toRef(e,p),d)}),["teleportDisabled"].forEach(p=>{r.watch(r.toRef(e,p),c)}),r.watch(r.toRef(e,"syncTrigger"),p=>{p.includes("resize")?t.addResizeListener(d):t.removeResizeListener(d),p.includes("scroll")?t.addScrollListener(d):t.removeScrollListener(d)});const f=Rn(),u=Xe(()=>{const{to:p}=e;if(p!==void 0)return p;f.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:i,followerRef:o,mergedTo:u,syncPosition:d}},render(){return r.h(Qd,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=r.h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[r.h("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?r.withDirectives(n,[[ba,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var ln=[],lc=function(){return ln.some(function(e){return e.activeTargets.length>0})},sc=function(){return ln.some(function(e){return e.skippedTargets.length>0})},Ca="ResizeObserver loop completed with undelivered notifications.",dc=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ca}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ca),window.dispatchEvent(e)},qn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qn||(qn={}));var sn=function(e){return Object.freeze(e)},cc=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,sn(this)}return e}(),Sa=function(){function e(t,n,o,i){return this.x=t,this.y=n,this.width=o,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,sn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,i=t.top,a=t.right,l=t.bottom,s=t.left,d=t.width,c=t.height;return{x:n,y:o,top:i,right:a,bottom:l,left:s,width:d,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Bo=function(e){return e instanceof SVGElement&&"getBBox"in e},$a=function(e){if(Bo(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var i=e,a=i.offsetWidth,l=i.offsetHeight;return!(a||l||e.getClientRects().length)},ka=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},uc=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Yn=typeof window<"u"?window:{},_r=new WeakMap,za=/auto|scroll/,fc=/^tb|vertical/,hc=/msie|trident/i.test(Yn.navigator&&Yn.navigator.userAgent),kt=function(e){return parseFloat(e||"0")},_n=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new cc((n?t:e)||0,(n?e:t)||0)},Ta=sn({devicePixelContentBoxSize:_n(),borderBoxSize:_n(),contentBoxSize:_n(),contentRect:new Sa(0,0,0,0)}),Pa=function(e,t){if(t===void 0&&(t=!1),_r.has(e)&&!t)return _r.get(e);if($a(e))return _r.set(e,Ta),Ta;var n=getComputedStyle(e),o=Bo(e)&&e.ownerSVGElement&&e.getBBox(),i=!hc&&n.boxSizing==="border-box",a=fc.test(n.writingMode||""),l=!o&&za.test(n.overflowY||""),s=!o&&za.test(n.overflowX||""),d=o?0:kt(n.paddingTop),c=o?0:kt(n.paddingRight),f=o?0:kt(n.paddingBottom),u=o?0:kt(n.paddingLeft),p=o?0:kt(n.borderTopWidth),m=o?0:kt(n.borderRightWidth),h=o?0:kt(n.borderBottomWidth),x=o?0:kt(n.borderLeftWidth),w=u+c,g=d+f,P=x+m,L=p+h,$=s?e.offsetHeight-L-e.clientHeight:0,k=l?e.offsetWidth-P-e.clientWidth:0,_=i?w+P:0,b=i?g+L:0,S=o?o.width:kt(n.width)-_-k,M=o?o.height:kt(n.height)-b-$,F=S+w+k+P,I=M+g+$+L,D=sn({devicePixelContentBoxSize:_n(Math.round(S*devicePixelRatio),Math.round(M*devicePixelRatio),a),borderBoxSize:_n(F,I,a),contentBoxSize:_n(S,M,a),contentRect:new Sa(u,d,S,M)});return _r.set(e,D),D},Ra=function(e,t,n){var o=Pa(e,n),i=o.borderBoxSize,a=o.contentBoxSize,l=o.devicePixelContentBoxSize;switch(t){case qn.DEVICE_PIXEL_CONTENT_BOX:return l;case qn.BORDER_BOX:return i;default:return a}},pc=function(){function e(t){var n=Pa(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=sn([n.borderBoxSize]),this.contentBoxSize=sn([n.contentBoxSize]),this.devicePixelContentBoxSize=sn([n.devicePixelContentBoxSize])}return e}(),Ea=function(e){if($a(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},bc=function(){var e=1/0,t=[];ln.forEach(function(l){if(l.activeTargets.length!==0){var s=[];l.activeTargets.forEach(function(c){var f=new pc(c.target),u=Ea(c.target);s.push(f),c.lastReportedSize=Ra(c.target,c.observedBox),u<e&&(e=u)}),t.push(function(){l.callback.call(l.observer,s,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var i=o[n];i()}return e},Ba=function(e){ln.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Ea(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},gc=function(){var e=0;for(Ba(e);lc();)e=bc(),Ba(e);return sc()&&dc(),e>0},Mo,Ma=[],mc=function(){return Ma.splice(0).forEach(function(e){return e()})},vc=function(e){if(!Mo){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return mc()}).observe(n,o),Mo=function(){n.textContent="".concat(t?t--:t++)}}Ma.push(e),Mo()},xc=function(e){vc(function(){requestAnimationFrame(e)})},Ir=0,yc=function(){return!!Ir},wc=250,Cc={attributes:!0,characterData:!0,childList:!0,subtree:!0},_a=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ia=function(e){return e===void 0&&(e=0),Date.now()+e},_o=!1,Sc=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=wc),!_o){_o=!0;var o=Ia(t);xc(function(){var i=!1;try{i=gc()}finally{if(_o=!1,t=o-Ia(),!yc())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Cc)};document.body?n():Yn.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),_a.forEach(function(n){return Yn.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),_a.forEach(function(n){return Yn.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Io=new Sc,Oa=function(e){!Ir&&e>0&&Io.start(),Ir+=e,!Ir&&Io.stop()},$c=function(e){return!Bo(e)&&!uc(e)&&getComputedStyle(e).display==="inline"},kc=function(){function e(t,n){this.target=t,this.observedBox=n||qn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ra(this.target,this.observedBox,!0);return $c(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),zc=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Or=new WeakMap,Aa=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ar=function(){function e(){}return e.connect=function(t,n){var o=new zc(t,n);Or.set(t,o)},e.observe=function(t,n,o){var i=Or.get(t),a=i.observationTargets.length===0;Aa(i.observationTargets,n)<0&&(a&&ln.push(i),i.observationTargets.push(new kc(n,o&&o.box)),Oa(1),Io.schedule())},e.unobserve=function(t,n){var o=Or.get(t),i=Aa(o.observationTargets,n),a=o.observationTargets.length===1;i>=0&&(a&&ln.splice(ln.indexOf(o),1),o.observationTargets.splice(i,1),Oa(-1))},e.disconnect=function(t){var n=this,o=Or.get(t);o.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Tc=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ar.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ka(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ar.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ka(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ar.unobserve(this,t)},e.prototype.disconnect=function(){Ar.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Pc{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Tc)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fr=new Pc,Wt=r.defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=r.getCurrentInstance().proxy;function o(i){const{onResize:a}=e;a!==void 0&&a(i)}r.onMounted(()=>{const i=n.$el;if(i===void 0){ga("resize-observer","$el does not exist.");return}if(i.nextElementSibling!==i.nextSibling&&i.nodeType===3&&i.nodeValue!==""){ga("resize-observer","$el can not be observed (it may be a text node).");return}i.nextElementSibling!==null&&(Fr.registerHandler(i.nextElementSibling,o),t=!0)}),r.onBeforeUnmount(()=>{t&&Fr.unregisterHandler(n.$el.nextElementSibling)})},render(){return r.renderSlot(this.$slots,"default")}});let Dr;function Rc(){return typeof document>"u"?!1:(Dr===void 0&&("matchMedia"in window?Dr=window.matchMedia("(pointer:coarse)").matches:Dr=!1),Dr)}let Oo;function Fa(){return typeof document>"u"?1:(Oo===void 0&&(Oo="chrome"in window?window.devicePixelRatio:1),Oo)}const Ec=$t(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[$t("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[$t("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Bc=r.defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Nt();Ec.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Er,ssr:t}),r.onMounted(()=>{const{defaultScrollIndex:I,defaultScrollKey:D}=e;I!=null?h({index:I}):D!=null&&h({key:D})});let n=!1,o=!1;r.onActivated(()=>{if(n=!1,!o){o=!0;return}h({top:u.value,left:f})}),r.onDeactivated(()=>{n=!0,o||(o=!0)});const i=r.computed(()=>{const I=new Map,{keyField:D}=e;return e.items.forEach((j,Q)=>{I.set(j[D],Q)}),I}),a=r.ref(null),l=r.ref(void 0),s=new Map,d=r.computed(()=>{const{items:I,itemSize:D,keyField:j}=e,Q=new Jd(I.length,D);return I.forEach((N,Z)=>{const q=N[j],Y=s.get(q);Y!==void 0&&Q.add(Z,Y)}),Q}),c=r.ref(0);let f=0;const u=r.ref(0),p=Xe(()=>Math.max(d.value.getBound(u.value-rt(e.paddingTop))-1,0)),m=r.computed(()=>{const{value:I}=l;if(I===void 0)return[];const{items:D,itemSize:j}=e,Q=p.value,N=Math.min(Q+Math.ceil(I/j+1),D.length-1),Z=[];for(let q=Q;q<=N;++q)Z.push(D[q]);return Z}),h=(I,D)=>{if(typeof I=="number"){P(I,D,"auto");return}const{left:j,top:Q,index:N,key:Z,position:q,behavior:Y,debounce:le=!0}=I;if(j!==void 0||Q!==void 0)P(j,Q,Y);else if(N!==void 0)g(N,Y,le);else if(Z!==void 0){const ie=i.value.get(Z);ie!==void 0&&g(ie,Y,le)}else q==="bottom"?P(0,Number.MAX_SAFE_INTEGER,Y):q==="top"&&P(0,0,Y)};let x,w=null;function g(I,D,j){const{value:Q}=d,N=Q.sum(I)+rt(e.paddingTop);if(!j)a.value.scrollTo({left:0,top:N,behavior:D});else{x=I,w!==null&&window.clearTimeout(w),w=window.setTimeout(()=>{x=void 0,w=null},16);const{scrollTop:Z,offsetHeight:q}=a.value;if(N>Z){const Y=Q.get(I);N+Y<=Z+q||a.value.scrollTo({left:0,top:N+Y-q,behavior:D})}else a.value.scrollTo({left:0,top:N,behavior:D})}}function P(I,D,j){a.value.scrollTo({left:I,top:D,behavior:j})}function L(I,D){var j,Q,N;if(n||e.ignoreItemResize||F(D.target))return;const{value:Z}=d,q=i.value.get(I),Y=Z.get(q),le=(N=(Q=(j=D.borderBoxSize)===null||j===void 0?void 0:j[0])===null||Q===void 0?void 0:Q.blockSize)!==null&&N!==void 0?N:D.contentRect.height;if(le===Y)return;le-e.itemSize===0?s.delete(I):s.set(I,le-e.itemSize);const ce=le-Y;if(ce===0)return;Z.add(q,ce);const U=a.value;if(U!=null){if(x===void 0){const te=Z.sum(q);U.scrollTop>te&&U.scrollBy(0,ce)}else if(q<x)U.scrollBy(0,ce);else if(q===x){const te=Z.sum(q);le+te>U.scrollTop+U.offsetHeight&&U.scrollBy(0,ce)}M()}c.value++}const $=!Rc();let k=!1;function _(I){var D;(D=e.onScroll)===null||D===void 0||D.call(e,I),(!$||!k)&&M()}function b(I){var D;if((D=e.onWheel)===null||D===void 0||D.call(e,I),$){const j=a.value;if(j!=null){if(I.deltaX===0&&(j.scrollTop===0&&I.deltaY<=0||j.scrollTop+j.offsetHeight>=j.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),j.scrollTop+=I.deltaY/Fa(),j.scrollLeft+=I.deltaX/Fa(),M(),k=!0,Wi(()=>{k=!1})}}}function S(I){if(n||F(I.target)||I.contentRect.height===l.value)return;l.value=I.contentRect.height;const{onResize:D}=e;D!==void 0&&D(I)}function M(){const{value:I}=a;I!=null&&(u.value=I.scrollTop,f=I.scrollLeft)}function F(I){let D=I;for(;D!==null;){if(D.style.display==="none")return!0;D=D.parentElement}return!1}return{listHeight:l,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:r.computed(()=>{const{itemResizable:I}=e,D=en(d.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":D,minHeight:I?D:"",paddingTop:en(e.paddingTop),paddingBottom:en(e.paddingBottom)}]}),visibleItemsStyle:r.computed(()=>(c.value,{transform:`translateY(${en(d.value.sum(p.value))})`})),viewportItems:m,listElRef:a,itemsElRef:r.ref(null),scrollTo:h,handleListResize:S,handleListScroll:_,handleListWheel:b,handleItemResize:L}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return r.h(Wt,{onResize:this.handleListResize},{default:()=>{var i,a;return r.h("div",r.mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?r.h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[r.h(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(l=>{const s=l[t],d=n.get(s),c=this.$slots.default({item:l,index:d})[0];return e?r.h(Wt,{key:s,onResize:f=>this.handleItemResize(s,f)},{default:()=>c}):(c.key=s,c)})})]):(a=(i=this.$slots).empty)===null||a===void 0?void 0:a.call(i)])}})}}),Mc=$t(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[$t("&::-webkit-scrollbar",{width:0,height:0})]),_c=r.defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=r.ref(null);function t(i){!(i.currentTarget.offsetWidth<i.currentTarget.scrollWidth)||i.deltaY===0||(i.currentTarget.scrollLeft+=i.deltaY+i.deltaX,i.preventDefault())}const n=Nt();return Mc.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Er,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...i){var a;(a=e.value)===null||a===void 0||a.scrollTo(...i)}})},render(){return r.h("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}}),Et="v-hidden",Ic=$t("[v-hidden]",{display:"none!important"}),Da=r.defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=r.ref(null),o=r.ref(null);function i(l){const{value:s}=n,{getCounter:d,getTail:c}=e;let f;if(d!==void 0?f=d():f=o.value,!s||!f)return;f.hasAttribute(Et)&&f.removeAttribute(Et);const{children:u}=s;if(l.showAllItemsBeforeCalculate)for(const L of u)L.hasAttribute(Et)&&L.removeAttribute(Et);const p=s.offsetWidth,m=[],h=t.tail?c==null?void 0:c():null;let x=h?h.offsetWidth:0,w=!1;const g=s.children.length-(t.tail?1:0);for(let L=0;L<g-1;++L){if(L<0)continue;const $=u[L];if(w){$.hasAttribute(Et)||$.setAttribute(Et,"");continue}else $.hasAttribute(Et)&&$.removeAttribute(Et);const k=$.offsetWidth;if(x+=k,m[L]=k,x>p){const{updateCounter:_}=e;for(let b=L;b>=0;--b){const S=g-1-b;_!==void 0?_(S):f.textContent=`${S}`;const M=f.offsetWidth;if(x-=m[b],x+M<=p||b===0){w=!0,L=b-1,h&&(L===-1?(h.style.maxWidth=`${p-M}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:F}=e;F&&F(S);break}}}}const{onUpdateOverflow:P}=e;w?P!==void 0&&P(!0):(P!==void 0&&P(!1),f.setAttribute(Et,""))}const a=Nt();return Ic.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Er,ssr:a}),r.onMounted(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:i}},render(){const{$slots:e}=this;return r.nextTick(()=>this.sync({showAllItemsBeforeCalculate:!1})),r.h("div",{class:"v-overflow",ref:"selfRef"},[r.renderSlot(e,"default"),e.counter?e.counter():r.h("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Va(e){return e instanceof HTMLElement}function La(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(Va(n)&&(Na(n)||La(n)))return!0}return!1}function Ha(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(Va(n)&&(Na(n)||Ha(n)))return!0}return!1}function Na(e){if(!Oc(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Oc(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Zn=[];const Ac=r.defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=nd(),n=r.ref(null),o=r.ref(null);let i=!1,a=!1;const l=typeof document>"u"?null:document.activeElement;function s(){return Zn[Zn.length-1]===t}function d(w){var g;w.code==="Escape"&&s()&&((g=e.onEsc)===null||g===void 0||g.call(e,w))}r.onMounted(()=>{r.watch(()=>e.active,w=>{w?(u(),Pe("keydown",document,d)):($e("keydown",document,d),i&&p())},{immediate:!0})}),r.onBeforeUnmount(()=>{$e("keydown",document,d),i&&p()});function c(w){if(!a&&s()){const g=f();if(g===null||g.contains($n(w)))return;m("first")}}function f(){const w=n.value;if(w===null)return null;let g=w;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function u(){var w;if(!e.disabled){if(Zn.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?m("first"):(w=va(g))===null||w===void 0||w.focus({preventScroll:!0})}i=!0,document.addEventListener("focus",c,!0)}}function p(){var w;if(e.disabled||(document.removeEventListener("focus",c,!0),Zn=Zn.filter(P=>P!==t),s()))return;const{finalFocusTo:g}=e;g!==void 0?(w=va(g))===null||w===void 0||w.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(a=!0,l.focus({preventScroll:!0}),a=!1)}function m(w){if(s()&&e.active){const g=n.value,P=o.value;if(g!==null&&P!==null){const L=f();if(L==null||L===P){a=!0,g.focus({preventScroll:!0}),a=!1;return}a=!0;const $=w==="first"?La(L):Ha(L);a=!1,$||(a=!0,g.focus({preventScroll:!0}),a=!1)}}}function h(w){if(a)return;const g=f();g!==null&&(w.relatedTarget!==null&&g.contains(w.relatedTarget)?m("last"):m("first"))}function x(w){a||(w.relatedTarget!==null&&w.relatedTarget===n.value?m("last"):m("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:x}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return r.h(r.Fragment,null,[r.h("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),r.h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Wa(e,t){t&&(r.onMounted(()=>{const{value:n}=e;n&&Fr.registerHandler(n,t)}),r.onBeforeUnmount(()=>{const{value:n}=e;n&&Fr.unregisterHandler(n)}))}function Fc(e){const t={isDeactivated:!1};let n=!1;return r.onActivated(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),r.onDeactivated(()=>{t.isDeactivated=!0,n||(n=!0)}),t}const ja="n-form-item";function dn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const i=r.inject(ja,null);r.provide(ja,null);const a=r.computed(n?()=>n(i):()=>{const{size:d}=e;if(d)return d;if(i){const{mergedSize:c}=i;if(c.value!==void 0)return c.value}return t}),l=r.computed(o?()=>o(i):()=>{const{disabled:d}=e;return d!==void 0?d:i?i.disabled.value:!1}),s=r.computed(()=>{const{status:d}=e;return d||(i==null?void 0:i.mergedValidationStatus.value)});return r.onBeforeUnmount(()=>{i&&i.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var Ua=typeof global=="object"&&global&&global.Object===Object&&global,Dc=typeof self=="object"&&self&&self.Object===Object&&self,bt=Ua||Dc||Function("return this")(),jt=bt.Symbol,Ga=Object.prototype,Vc=Ga.hasOwnProperty,Lc=Ga.toString,Jn=jt?jt.toStringTag:void 0;function Hc(e){var t=Vc.call(e,Jn),n=e[Jn];try{e[Jn]=void 0;var o=!0}catch{}var i=Lc.call(e);return o&&(t?e[Jn]=n:delete e[Jn]),i}var Nc=Object.prototype,Wc=Nc.toString;function jc(e){return Wc.call(e)}var Uc="[object Null]",Gc="[object Undefined]",Ka=jt?jt.toStringTag:void 0;function cn(e){return e==null?e===void 0?Gc:Uc:Ka&&Ka in Object(e)?Hc(e):jc(e)}function Ut(e){return e!=null&&typeof e=="object"}var Kc="[object Symbol]";function Vr(e){return typeof e=="symbol"||Ut(e)&&cn(e)==Kc}function Xa(e,t){for(var n=-1,o=e==null?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}var ft=Array.isArray,qa=jt?jt.prototype:void 0,Ya=qa?qa.toString:void 0;function Za(e){if(typeof e=="string")return e;if(ft(e))return Xa(e,Za)+"";if(Vr(e))return Ya?Ya.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Xc=/\s/;function qc(e){for(var t=e.length;t--&&Xc.test(e.charAt(t)););return t}var Yc=/^\s+/;function Zc(e){return e&&e.slice(0,qc(e)+1).replace(Yc,"")}function ht(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ja=NaN,Jc=/^[-+]0x[0-9a-f]+$/i,Qc=/^0b[01]+$/i,eu=/^0o[0-7]+$/i,tu=parseInt;function Qa(e){if(typeof e=="number")return e;if(Vr(e))return Ja;if(ht(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ht(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zc(e);var n=Qc.test(e);return n||eu.test(e)?tu(e.slice(2),n?2:8):Jc.test(e)?Ja:+e}function Ao(e){return e}var nu="[object AsyncFunction]",ru="[object Function]",ou="[object GeneratorFunction]",iu="[object Proxy]";function Fo(e){if(!ht(e))return!1;var t=cn(e);return t==ru||t==ou||t==nu||t==iu}var Do=bt["__core-js_shared__"],el=function(){var e=/[^.]+$/.exec(Do&&Do.keys&&Do.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function au(e){return!!el&&el in e}var lu=Function.prototype,su=lu.toString;function un(e){if(e!=null){try{return su.call(e)}catch{}try{return e+""}catch{}}return""}var du=/[\\^$.*+?()[\]{}|]/g,cu=/^\[object .+?Constructor\]$/,uu=Function.prototype,fu=Object.prototype,hu=uu.toString,pu=fu.hasOwnProperty,bu=RegExp("^"+hu.call(pu).replace(du,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gu(e){if(!ht(e)||au(e))return!1;var t=Fo(e)?bu:cu;return t.test(un(e))}function mu(e,t){return e==null?void 0:e[t]}function fn(e,t){var n=mu(e,t);return gu(n)?n:void 0}var Vo=fn(bt,"WeakMap"),tl=Object.create,vu=function(){function e(){}return function(t){if(!ht(t))return{};if(tl)return tl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function xu(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yu(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var wu=800,Cu=16,Su=Date.now;function $u(e){var t=0,n=0;return function(){var o=Su(),i=Cu-(o-n);if(n=o,i>0){if(++t>=wu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ku(e){return function(){return e}}var Lr=function(){try{var e=fn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),zu=Lr?function(e,t){return Lr(e,"toString",{configurable:!0,enumerable:!1,value:ku(t),writable:!0})}:Ao,Tu=$u(zu),Pu=9007199254740991,Ru=/^(?:0|[1-9]\d*)$/;function Lo(e,t){var n=typeof e;return t=t??Pu,!!t&&(n=="number"||n!="symbol"&&Ru.test(e))&&e>-1&&e%1==0&&e<t}function Ho(e,t,n){t=="__proto__"&&Lr?Lr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Qn(e,t){return e===t||e!==e&&t!==t}var Eu=Object.prototype,Bu=Eu.hasOwnProperty;function Mu(e,t,n){var o=e[t];(!(Bu.call(e,t)&&Qn(o,n))||n===void 0&&!(t in e))&&Ho(e,t,n)}function _u(e,t,n,o){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],d=void 0;d===void 0&&(d=e[s]),i?Ho(n,s,d):Mu(n,s,d)}return n}var nl=Math.max;function Iu(e,t,n){return t=nl(t===void 0?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=nl(o.length-t,0),l=Array(a);++i<a;)l[i]=o[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=o[i];return s[t]=n(l),xu(e,this,s)}}function Ou(e,t){return Tu(Iu(e,t,Ao),e+"")}var Au=9007199254740991;function No(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Au}function In(e){return e!=null&&No(e.length)&&!Fo(e)}function Fu(e,t,n){if(!ht(n))return!1;var o=typeof t;return(o=="number"?In(n)&&Lo(t,n.length):o=="string"&&t in n)?Qn(n[t],e):!1}function Du(e){return Ou(function(t,n){var o=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,l&&Fu(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++o<i;){var s=n[o];s&&e(t,s,o,a)}return t})}var Vu=Object.prototype;function Wo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Vu;return e===n}function Lu(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Hu="[object Arguments]";function rl(e){return Ut(e)&&cn(e)==Hu}var ol=Object.prototype,Nu=ol.hasOwnProperty,Wu=ol.propertyIsEnumerable,Hr=rl(function(){return arguments}())?rl:function(e){return Ut(e)&&Nu.call(e,"callee")&&!Wu.call(e,"callee")};function ju(){return!1}var il=typeof We=="object"&&We&&!We.nodeType&&We,al=il&&typeof module=="object"&&module&&!module.nodeType&&module,Uu=al&&al.exports===il,ll=Uu?bt.Buffer:void 0,Gu=ll?ll.isBuffer:void 0,Nr=Gu||ju,Ku="[object Arguments]",Xu="[object Array]",qu="[object Boolean]",Yu="[object Date]",Zu="[object Error]",Ju="[object Function]",Qu="[object Map]",ef="[object Number]",tf="[object Object]",nf="[object RegExp]",rf="[object Set]",of="[object String]",af="[object WeakMap]",lf="[object ArrayBuffer]",sf="[object DataView]",df="[object Float32Array]",cf="[object Float64Array]",uf="[object Int8Array]",ff="[object Int16Array]",hf="[object Int32Array]",pf="[object Uint8Array]",bf="[object Uint8ClampedArray]",gf="[object Uint16Array]",mf="[object Uint32Array]",Fe={};Fe[df]=Fe[cf]=Fe[uf]=Fe[ff]=Fe[hf]=Fe[pf]=Fe[bf]=Fe[gf]=Fe[mf]=!0,Fe[Ku]=Fe[Xu]=Fe[lf]=Fe[qu]=Fe[sf]=Fe[Yu]=Fe[Zu]=Fe[Ju]=Fe[Qu]=Fe[ef]=Fe[tf]=Fe[nf]=Fe[rf]=Fe[of]=Fe[af]=!1;function vf(e){return Ut(e)&&No(e.length)&&!!Fe[cn(e)]}function xf(e){return function(t){return e(t)}}var sl=typeof We=="object"&&We&&!We.nodeType&&We,er=sl&&typeof module=="object"&&module&&!module.nodeType&&module,yf=er&&er.exports===sl,jo=yf&&Ua.process,dl=function(){try{var e=er&&er.require&&er.require("util").types;return e||jo&&jo.binding&&jo.binding("util")}catch{}}(),cl=dl&&dl.isTypedArray,Uo=cl?xf(cl):vf,wf=Object.prototype,Cf=wf.hasOwnProperty;function ul(e,t){var n=ft(e),o=!n&&Hr(e),i=!n&&!o&&Nr(e),a=!n&&!o&&!i&&Uo(e),l=n||o||i||a,s=l?Lu(e.length,String):[],d=s.length;for(var c in e)(t||Cf.call(e,c))&&!(l&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Lo(c,d)))&&s.push(c);return s}function fl(e,t){return function(n){return e(t(n))}}var Sf=fl(Object.keys,Object),$f=Object.prototype,kf=$f.hasOwnProperty;function zf(e){if(!Wo(e))return Sf(e);var t=[];for(var n in Object(e))kf.call(e,n)&&n!="constructor"&&t.push(n);return t}function Go(e){return In(e)?ul(e):zf(e)}function Tf(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Pf=Object.prototype,Rf=Pf.hasOwnProperty;function Ef(e){if(!ht(e))return Tf(e);var t=Wo(e),n=[];for(var o in e)o=="constructor"&&(t||!Rf.call(e,o))||n.push(o);return n}function hl(e){return In(e)?ul(e,!0):Ef(e)}var Bf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mf=/^\w*$/;function Ko(e,t){if(ft(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vr(e)?!0:Mf.test(e)||!Bf.test(e)||t!=null&&e in Object(t)}var tr=fn(Object,"create");function _f(){this.__data__=tr?tr(null):{},this.size=0}function If(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Of="__lodash_hash_undefined__",Af=Object.prototype,Ff=Af.hasOwnProperty;function Df(e){var t=this.__data__;if(tr){var n=t[e];return n===Of?void 0:n}return Ff.call(t,e)?t[e]:void 0}var Vf=Object.prototype,Lf=Vf.hasOwnProperty;function Hf(e){var t=this.__data__;return tr?t[e]!==void 0:Lf.call(t,e)}var Nf="__lodash_hash_undefined__";function Wf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tr&&t===void 0?Nf:t,this}function hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}hn.prototype.clear=_f,hn.prototype.delete=If,hn.prototype.get=Df,hn.prototype.has=Hf,hn.prototype.set=Wf;function jf(){this.__data__=[],this.size=0}function Wr(e,t){for(var n=e.length;n--;)if(Qn(e[n][0],t))return n;return-1}var Uf=Array.prototype,Gf=Uf.splice;function Kf(e){var t=this.__data__,n=Wr(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Gf.call(t,n,1),--this.size,!0}function Xf(e){var t=this.__data__,n=Wr(t,e);return n<0?void 0:t[n][1]}function qf(e){return Wr(this.__data__,e)>-1}function Yf(e,t){var n=this.__data__,o=Wr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Bt.prototype.clear=jf,Bt.prototype.delete=Kf,Bt.prototype.get=Xf,Bt.prototype.has=qf,Bt.prototype.set=Yf;var nr=fn(bt,"Map");function Zf(){this.size=0,this.__data__={hash:new hn,map:new(nr||Bt),string:new hn}}function Jf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function jr(e,t){var n=e.__data__;return Jf(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Qf(e){var t=jr(this,e).delete(e);return this.size-=t?1:0,t}function eh(e){return jr(this,e).get(e)}function th(e){return jr(this,e).has(e)}function nh(e,t){var n=jr(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Mt.prototype.clear=Zf,Mt.prototype.delete=Qf,Mt.prototype.get=eh,Mt.prototype.has=th,Mt.prototype.set=nh;var rh="Expected a function";function Xo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rh);var n=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=n.cache;if(a.has(i))return a.get(i);var l=e.apply(this,o);return n.cache=a.set(i,l)||a,l};return n.cache=new(Xo.Cache||Mt),n}Xo.Cache=Mt;var oh=500;function ih(e){var t=Xo(e,function(o){return n.size===oh&&n.clear(),o}),n=t.cache;return t}var ah=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lh=/\\(\\)?/g,sh=ih(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ah,function(n,o,i,a){t.push(i?a.replace(lh,"$1"):o||n)}),t});function pl(e){return e==null?"":Za(e)}function bl(e,t){return ft(e)?e:Ko(e,t)?[e]:sh(pl(e))}function Ur(e){if(typeof e=="string"||Vr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function gl(e,t){t=bl(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ur(t[n++])];return n&&n==o?e:void 0}function dh(e,t,n){var o=e==null?void 0:gl(e,t);return o===void 0?n:o}function ch(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}var ml=fl(Object.getPrototypeOf,Object),uh="[object Object]",fh=Function.prototype,hh=Object.prototype,vl=fh.toString,ph=hh.hasOwnProperty,bh=vl.call(Object);function gh(e){if(!Ut(e)||cn(e)!=uh)return!1;var t=ml(e);if(t===null)return!0;var n=ph.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vl.call(n)==bh}function mh(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+t];return a}function vh(e,t,n){var o=e.length;return n=n===void 0?o:n,mh(e,t,n)}var xh="\\ud800-\\udfff",yh="\\u0300-\\u036f",wh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",Sh=yh+wh+Ch,$h="\\ufe0e\\ufe0f",kh="\\u200d",zh=RegExp("["+kh+xh+Sh+$h+"]");function xl(e){return zh.test(e)}function Th(e){return e.split("")}var yl="\\ud800-\\udfff",Ph="\\u0300-\\u036f",Rh="\\ufe20-\\ufe2f",Eh="\\u20d0-\\u20ff",Bh=Ph+Rh+Eh,Mh="\\ufe0e\\ufe0f",_h="["+yl+"]",qo="["+Bh+"]",Yo="\\ud83c[\\udffb-\\udfff]",Ih="(?:"+qo+"|"+Yo+")",wl="[^"+yl+"]",Cl="(?:\\ud83c[\\udde6-\\uddff]){2}",Sl="[\\ud800-\\udbff][\\udc00-\\udfff]",Oh="\\u200d",$l=Ih+"?",kl="["+Mh+"]?",Ah="(?:"+Oh+"(?:"+[wl,Cl,Sl].join("|")+")"+kl+$l+")*",Fh=kl+$l+Ah,Dh="(?:"+[wl+qo+"?",qo,Cl,Sl,_h].join("|")+")",Vh=RegExp(Yo+"(?="+Yo+")|"+Dh+Fh,"g");function Lh(e){return e.match(Vh)||[]}function Hh(e){return xl(e)?Lh(e):Th(e)}function Nh(e){return function(t){t=pl(t);var n=xl(t)?Hh(t):void 0,o=n?n[0]:t.charAt(0),i=n?vh(n,1).join(""):t.slice(1);return o[e]()+i}}var Wh=Nh("toUpperCase");function jh(){this.__data__=new Bt,this.size=0}function Uh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Gh(e){return this.__data__.get(e)}function Kh(e){return this.__data__.has(e)}var Xh=200;function qh(e,t){var n=this.__data__;if(n instanceof Bt){var o=n.__data__;if(!nr||o.length<Xh-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mt(o)}return n.set(e,t),this.size=n.size,this}function zt(e){var t=this.__data__=new Bt(e);this.size=t.size}zt.prototype.clear=jh,zt.prototype.delete=Uh,zt.prototype.get=Gh,zt.prototype.has=Kh,zt.prototype.set=qh;var zl=typeof We=="object"&&We&&!We.nodeType&&We,Tl=zl&&typeof module=="object"&&module&&!module.nodeType&&module,Yh=Tl&&Tl.exports===zl,Pl=Yh?bt.Buffer:void 0;Pl&&Pl.allocUnsafe;function Zh(e,t){return e.slice()}function Jh(e,t){for(var n=-1,o=e==null?0:e.length,i=0,a=[];++n<o;){var l=e[n];t(l,n,e)&&(a[i++]=l)}return a}function Qh(){return[]}var ep=Object.prototype,tp=ep.propertyIsEnumerable,Rl=Object.getOwnPropertySymbols,np=Rl?function(e){return e==null?[]:(e=Object(e),Jh(Rl(e),function(t){return tp.call(e,t)}))}:Qh;function rp(e,t,n){var o=t(e);return ft(e)?o:ch(o,n(e))}function El(e){return rp(e,Go,np)}var Zo=fn(bt,"DataView"),Jo=fn(bt,"Promise"),Qo=fn(bt,"Set"),Bl="[object Map]",op="[object Object]",Ml="[object Promise]",_l="[object Set]",Il="[object WeakMap]",Ol="[object DataView]",ip=un(Zo),ap=un(nr),lp=un(Jo),sp=un(Qo),dp=un(Vo),Gt=cn;(Zo&&Gt(new Zo(new ArrayBuffer(1)))!=Ol||nr&&Gt(new nr)!=Bl||Jo&&Gt(Jo.resolve())!=Ml||Qo&&Gt(new Qo)!=_l||Vo&&Gt(new Vo)!=Il)&&(Gt=function(e){var t=cn(e),n=t==op?e.constructor:void 0,o=n?un(n):"";if(o)switch(o){case ip:return Ol;case ap:return Bl;case lp:return Ml;case sp:return _l;case dp:return Il}return t});var Gr=bt.Uint8Array;function cp(e){var t=new e.constructor(e.byteLength);return new Gr(t).set(new Gr(e)),t}function up(e,t){var n=cp(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function fp(e){return typeof e.constructor=="function"&&!Wo(e)?vu(ml(e)):{}}var hp="__lodash_hash_undefined__";function pp(e){return this.__data__.set(e,hp),this}function bp(e){return this.__data__.has(e)}function Kr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Mt;++t<n;)this.add(e[t])}Kr.prototype.add=Kr.prototype.push=pp,Kr.prototype.has=bp;function gp(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function mp(e,t){return e.has(t)}var vp=1,xp=2;function Al(e,t,n,o,i,a){var l=n&vp,s=e.length,d=t.length;if(s!=d&&!(l&&d>s))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var u=-1,p=!0,m=n&xp?new Kr:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var h=e[u],x=t[u];if(o)var w=l?o(x,h,u,t,e,a):o(h,x,u,e,t,a);if(w!==void 0){if(w)continue;p=!1;break}if(m){if(!gp(t,function(g,P){if(!mp(m,P)&&(h===g||i(h,g,n,o,a)))return m.push(P)})){p=!1;break}}else if(!(h===x||i(h,x,n,o,a))){p=!1;break}}return a.delete(e),a.delete(t),p}function yp(e){var t=-1,n=Array(e.size);return e.forEach(function(o,i){n[++t]=[i,o]}),n}function wp(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Cp=1,Sp=2,$p="[object Boolean]",kp="[object Date]",zp="[object Error]",Tp="[object Map]",Pp="[object Number]",Rp="[object RegExp]",Ep="[object Set]",Bp="[object String]",Mp="[object Symbol]",_p="[object ArrayBuffer]",Ip="[object DataView]",Fl=jt?jt.prototype:void 0,ei=Fl?Fl.valueOf:void 0;function Op(e,t,n,o,i,a,l){switch(n){case Ip:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _p:return!(e.byteLength!=t.byteLength||!a(new Gr(e),new Gr(t)));case $p:case kp:case Pp:return Qn(+e,+t);case zp:return e.name==t.name&&e.message==t.message;case Rp:case Bp:return e==t+"";case Tp:var s=yp;case Ep:var d=o&Cp;if(s||(s=wp),e.size!=t.size&&!d)return!1;var c=l.get(e);if(c)return c==t;o|=Sp,l.set(e,t);var f=Al(s(e),s(t),o,i,a,l);return l.delete(e),f;case Mp:if(ei)return ei.call(e)==ei.call(t)}return!1}var Ap=1,Fp=Object.prototype,Dp=Fp.hasOwnProperty;function Vp(e,t,n,o,i,a){var l=n&Ap,s=El(e),d=s.length,c=El(t),f=c.length;if(d!=f&&!l)return!1;for(var u=d;u--;){var p=s[u];if(!(l?p in t:Dp.call(t,p)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var x=!0;a.set(e,t),a.set(t,e);for(var w=l;++u<d;){p=s[u];var g=e[p],P=t[p];if(o)var L=l?o(P,g,p,t,e,a):o(g,P,p,e,t,a);if(!(L===void 0?g===P||i(g,P,n,o,a):L)){x=!1;break}w||(w=p=="constructor")}if(x&&!w){var $=e.constructor,k=t.constructor;$!=k&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof k=="function"&&k instanceof k)&&(x=!1)}return a.delete(e),a.delete(t),x}var Lp=1,Dl="[object Arguments]",Vl="[object Array]",Xr="[object Object]",Hp=Object.prototype,Ll=Hp.hasOwnProperty;function Np(e,t,n,o,i,a){var l=ft(e),s=ft(t),d=l?Vl:Gt(e),c=s?Vl:Gt(t);d=d==Dl?Xr:d,c=c==Dl?Xr:c;var f=d==Xr,u=c==Xr,p=d==c;if(p&&Nr(e)){if(!Nr(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new zt),l||Uo(e)?Al(e,t,n,o,i,a):Op(e,t,d,n,o,i,a);if(!(n&Lp)){var m=f&&Ll.call(e,"__wrapped__"),h=u&&Ll.call(t,"__wrapped__");if(m||h){var x=m?e.value():e,w=h?t.value():t;return a||(a=new zt),i(x,w,n,o,a)}}return p?(a||(a=new zt),Vp(e,t,n,o,i,a)):!1}function ti(e,t,n,o,i){return e===t?!0:e==null||t==null||!Ut(e)&&!Ut(t)?e!==e&&t!==t:Np(e,t,n,o,ti,i)}var Wp=1,jp=2;function Up(e,t,n,o){var i=n.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],d=e[s],c=l[1];if(l[2]){if(d===void 0&&!(s in e))return!1}else{var f=new zt,u;if(!(u===void 0?ti(c,d,Wp|jp,o,f):u))return!1}}return!0}function Hl(e){return e===e&&!ht(e)}function Gp(e){for(var t=Go(e),n=t.length;n--;){var o=t[n],i=e[o];t[n]=[o,i,Hl(i)]}return t}function Nl(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Kp(e){var t=Gp(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(n){return n===e||Up(n,e,t)}}function Xp(e,t){return e!=null&&t in Object(e)}function qp(e,t,n){t=bl(t,e);for(var o=-1,i=t.length,a=!1;++o<i;){var l=Ur(t[o]);if(!(a=e!=null&&n(e,l)))break;e=e[l]}return a||++o!=i?a:(i=e==null?0:e.length,!!i&&No(i)&&Lo(l,i)&&(ft(e)||Hr(e)))}function Yp(e,t){return e!=null&&qp(e,t,Xp)}var Zp=1,Jp=2;function Qp(e,t){return Ko(e)&&Hl(t)?Nl(Ur(e),t):function(n){var o=dh(n,e);return o===void 0&&o===t?Yp(n,e):ti(t,o,Zp|Jp)}}function eb(e){return function(t){return t==null?void 0:t[e]}}function tb(e){return function(t){return gl(t,e)}}function nb(e){return Ko(e)?eb(Ur(e)):tb(e)}function rb(e){return typeof e=="function"?e:e==null?Ao:typeof e=="object"?ft(e)?Qp(e[0],e[1]):Kp(e):nb(e)}function ob(e){return function(t,n,o){for(var i=-1,a=Object(t),l=o(t),s=l.length;s--;){var d=l[++i];if(n(a[d],d,a)===!1)break}return t}}var Wl=ob();function ib(e,t){return e&&Wl(e,t,Go)}function ab(e,t){return function(n,o){if(n==null)return n;if(!In(n))return e(n,o);for(var i=n.length,a=-1,l=Object(n);++a<i&&o(l[a],a,l)!==!1;);return n}}var lb=ab(ib),ni=function(){return bt.Date.now()},sb="Expected a function",db=Math.max,cb=Math.min;function ub(e,t,n){var o,i,a,l,s,d,c=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(sb);t=Qa(t)||0,ht(n)&&(f=!!n.leading,u="maxWait"in n,a=u?db(Qa(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(_){var b=o,S=i;return o=i=void 0,c=_,l=e.apply(S,b),l}function h(_){return c=_,s=setTimeout(g,t),f?m(_):l}function x(_){var b=_-d,S=_-c,M=t-b;return u?cb(M,a-S):M}function w(_){var b=_-d,S=_-c;return d===void 0||b>=t||b<0||u&&S>=a}function g(){var _=ni();if(w(_))return P(_);s=setTimeout(g,x(_))}function P(_){return s=void 0,p&&o?m(_):(o=i=void 0,l)}function L(){s!==void 0&&clearTimeout(s),c=0,o=d=i=s=void 0}function $(){return s===void 0?l:P(ni())}function k(){var _=ni(),b=w(_);if(o=arguments,i=this,d=_,b){if(s===void 0)return h(d);if(u)return clearTimeout(s),s=setTimeout(g,t),m(d)}return s===void 0&&(s=setTimeout(g,t)),l}return k.cancel=L,k.flush=$,k}function ri(e,t,n){(n!==void 0&&!Qn(e[t],n)||n===void 0&&!(t in e))&&Ho(e,t,n)}function fb(e){return Ut(e)&&In(e)}function oi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hb(e){return _u(e,hl(e))}function pb(e,t,n,o,i,a,l){var s=oi(e,n),d=oi(t,n),c=l.get(d);if(c){ri(e,n,c);return}var f=a?a(s,d,n+"",e,t,l):void 0,u=f===void 0;if(u){var p=ft(d),m=!p&&Nr(d),h=!p&&!m&&Uo(d);f=d,p||m||h?ft(s)?f=s:fb(s)?f=yu(s):m?(u=!1,f=Zh(d)):h?(u=!1,f=up(d)):f=[]:gh(d)||Hr(d)?(f=s,Hr(s)?f=hb(s):(!ht(s)||Fo(s))&&(f=fp(d))):u=!1}u&&(l.set(d,f),i(f,d,o,a,l),l.delete(d)),ri(e,n,f)}function jl(e,t,n,o,i){e!==t&&Wl(t,function(a,l){if(i||(i=new zt),ht(a))pb(e,t,l,n,jl,o,i);else{var s=o?o(oi(e,l),a,l+"",e,t,i):void 0;s===void 0&&(s=a),ri(e,l,s)}},hl)}function bb(e,t){var n=-1,o=In(e)?Array(e.length):[];return lb(e,function(i,a,l){o[++n]=t(i,a,l)}),o}function gb(e,t){var n=ft(e)?Xa:bb;return n(e,rb(t))}var qr=Du(function(e,t,n){jl(e,t,n)}),mb="Expected a function";function ii(e,t,n){var o=!0,i=!0;if(typeof e!="function")throw new TypeError(mb);return ht(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),ub(e,t,{leading:o,maxWait:t,trailing:i})}const pn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:vb,fontFamily:xb,lineHeight:yb}=pn,Ul=V("body",`
|
|
16
16
|
margin: 0;
|
|
@@ -22,7 +22,7 @@ ${t}
|
|
|
22
22
|
`,[V("input",`
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
font-size: inherit;
|
|
25
|
-
`)]),bn="n-config-provider",rr="naive-ui-style";function Gx(e){return e}function Ce(e,t,n,o,i,a){const l=Nt(),s=r.inject(bn,null);if(n){const c=()=>{const f=a==null?void 0:a.value;n.mount({id:f===void 0?t:f+t,head:!0,props:{bPrefix:f?`.${f}-`:void 0},anchorMetaName:rr,ssr:l}),s!=null&&s.preflightStyleDisabled||Ul.mount({id:"n-global",head:!0,anchorMetaName:rr,ssr:l})};l?c():r.onBeforeMount(c)}return r.computed(()=>{var c;const{theme:{common:f,self:u,peers:p={}}={},themeOverrides:m={},builtinThemeOverrides:h={}}=i,{common:x,peers:w}=m,{common:g=void 0,[e]:{common:P=void 0,self:L=void 0,peers:$={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:k=void 0,[e]:_={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:b,peers:S={}}=_,M=qr({},f||P||g||o.common,k,b,x),F=qr((c=u||L||o.self)===null||c===void 0?void 0:c(M),h,_,m);return{common:M,self:F,peers:qr({},o.peers,$,p),peerOverrides:qr({},h.peers,S,w)}})}Ce.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const wb="n";function Je(e={},t={defaultBordered:!0}){const n=r.inject(bn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:r.computed(()=>{var o,i;const{bordered:a}=e;return a!==void 0?a:(i=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&i!==void 0?i:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:r.shallowRef(wb),namespaceRef:r.computed(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const Cb={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function ai(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}function or(e){return function(t,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;i=e.formattingValues[l]||e.formattingValues[a]}else{var s=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[d]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function ir(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var l=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?$b(s,function(u){return u.test(l)}):Sb(s,function(u){return u.test(l)}),c;c=e.valueCallback?e.valueCallback(d):d,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(l.length);return{value:c,rest:f}}}function Sb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $b(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function kb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var i=o[0],a=t.match(e.parsePattern);if(!a)return null;var l=e.valueCallback?e.valueCallback(a[0]):a[0];l=n.valueCallback?n.valueCallback(l):l;var s=t.slice(i.length);return{value:l,rest:s}}}var zb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tb=function(t,n,o){var i,a=zb[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i},Pb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Rb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Eb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bb={date:ai({formats:Pb,defaultWidth:"full"}),time:ai({formats:Rb,defaultWidth:"full"}),dateTime:ai({formats:Eb,defaultWidth:"full"})},Mb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_b=function(t,n,o,i){return Mb[t]},Ib={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ob={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ab={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Db={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Lb=function(t,n){var o=Number(t),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Hb={ordinalNumber:Lb,era:or({values:Ib,defaultWidth:"wide"}),quarter:or({values:Ob,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:or({values:Ab,defaultWidth:"wide"}),day:or({values:Fb,defaultWidth:"wide"}),dayPeriod:or({values:Db,defaultWidth:"wide",formattingValues:Vb,defaultFormattingWidth:"wide"})},Nb=/^(\d+)(th|st|nd|rd)?/i,Wb=/\d+/i,jb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ub={any:[/^b/i,/^(a|c)/i]},Gb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kb={any:[/1/i,/2/i,/3/i,/4/i]},Xb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Qb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eg={ordinalNumber:kb({matchPattern:Nb,parsePattern:Wb,valueCallback:function(t){return parseInt(t,10)}}),era:ir({matchPatterns:jb,defaultMatchWidth:"wide",parsePatterns:Ub,defaultParseWidth:"any"}),quarter:ir({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:Kb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ir({matchPatterns:Xb,defaultMatchWidth:"wide",parsePatterns:qb,defaultParseWidth:"any"}),day:ir({matchPatterns:Yb,defaultMatchWidth:"wide",parsePatterns:Zb,defaultParseWidth:"any"}),dayPeriod:ir({matchPatterns:Jb,defaultMatchWidth:"any",parsePatterns:Qb,defaultParseWidth:"any"})},tg={code:"en-US",formatDistance:Tb,formatLong:Bb,formatRelative:_b,localize:Hb,match:eg,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ng={name:"en-US",locale:tg};function ar(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=r.inject(bn,null)||{},o=r.computed(()=>{var a,l;return(l=(a=t==null?void 0:t.value)===null||a===void 0?void 0:a[e])!==null&&l!==void 0?l:Cb[e]});return{dateLocaleRef:r.computed(()=>{var a;return(a=n==null?void 0:n.value)!==null&&a!==void 0?a:ng}),localeRef:o}}function gn(e,t,n){if(!t){process.env.NODE_ENV!=="production"&&xo("use-style","No style is specified.");return}const o=Nt(),i=r.inject(bn,null),a=()=>{const l=n.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:rr,props:{bPrefix:l?`.${l}-`:void 0},ssr:o}),i!=null&&i.preflightStyleDisabled||Ul.mount({id:"n-global",head:!0,anchorMetaName:rr,ssr:o})};o?a():r.onBeforeMount(a)}function tt(e,t,n,o){var i;n||xo("useThemeClass","cssVarsRef is not passed");const a=(i=r.inject(bn,null))===null||i===void 0?void 0:i.mergedThemeHashRef,l=r.ref(""),s=Nt();let d;const c=`__${e}`,f=()=>{let u=c;const p=t?t.value:void 0,m=a==null?void 0:a.value;m&&(u+=`-${m}`),p&&(u+=`-${p}`);const{themeOverrides:h,builtinThemeOverrides:x}=o;h&&(u+=`-${So(JSON.stringify(h))}`),x&&(u+=`-${So(JSON.stringify(x))}`),l.value=u,d=()=>{const w=n.value;let g="";for(const P in w)g+=`${P}: ${w[P]};`;V(`.${u}`,g).mount({id:u,ssr:s}),d=void 0}};return r.watchEffect(()=>{f()}),{themeClass:l,onRender:()=>{d==null||d()}}}function Kt(e,t,n){if(!t)return;const o=Nt(),i=r.computed(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),a=()=>{r.watchEffect(()=>{const{value:l}=n,s=`${l}${e}Rtl`;if($d(s,o))return;const{value:d}=i;d&&d.style.mount({id:s,head:!0,anchorMetaName:rr,props:{bPrefix:l?`.${l}-`:void 0},ssr:o})})};return o?a():r.onBeforeMount(a),i}const Gl=r.defineComponent({name:"Add",render(){return r.h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function On(e,t){return r.defineComponent({name:Wh(e),setup(){var n;const o=(n=r.inject(bn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var i;const a=(i=o==null?void 0:o.value)===null||i===void 0?void 0:i[e];return a?a():t}}})}const rg=r.defineComponent({name:"Checkmark",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},r.h("g",{fill:"none"},r.h("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),og=On("close",r.h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},r.h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r.h("g",{fill:"currentColor","fill-rule":"nonzero"},r.h("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),ig=r.defineComponent({name:"Eye",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),r.h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),ag=r.defineComponent({name:"EyeOff",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),r.h("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),r.h("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),r.h("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),r.h("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),lg=r.defineComponent({name:"Empty",render(){return r.h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.h("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),r.h("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),sg=On("error",r.h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},r.h("g",{"fill-rule":"nonzero"},r.h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),dg=On("info",r.h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},r.h("g",{"fill-rule":"nonzero"},r.h("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cg=r.defineComponent({name:"Remove",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
|
|
25
|
+
`)]),bn="n-config-provider",rr="naive-ui-style";function Ux(e){return e}function Ce(e,t,n,o,i,a){const l=Nt(),s=r.inject(bn,null);if(n){const c=()=>{const f=a==null?void 0:a.value;n.mount({id:f===void 0?t:f+t,head:!0,props:{bPrefix:f?`.${f}-`:void 0},anchorMetaName:rr,ssr:l}),s!=null&&s.preflightStyleDisabled||Ul.mount({id:"n-global",head:!0,anchorMetaName:rr,ssr:l})};l?c():r.onBeforeMount(c)}return r.computed(()=>{var c;const{theme:{common:f,self:u,peers:p={}}={},themeOverrides:m={},builtinThemeOverrides:h={}}=i,{common:x,peers:w}=m,{common:g=void 0,[e]:{common:P=void 0,self:L=void 0,peers:$={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:k=void 0,[e]:_={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:b,peers:S={}}=_,M=qr({},f||P||g||o.common,k,b,x),F=qr((c=u||L||o.self)===null||c===void 0?void 0:c(M),h,_,m);return{common:M,self:F,peers:qr({},o.peers,$,p),peerOverrides:qr({},h.peers,S,w)}})}Ce.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const wb="n";function Je(e={},t={defaultBordered:!0}){const n=r.inject(bn,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:r.computed(()=>{var o,i;const{bordered:a}=e;return a!==void 0?a:(i=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&i!==void 0?i:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:r.shallowRef(wb),namespaceRef:r.computed(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const Cb={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function ai(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}function or(e){return function(t,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;i=e.formattingValues[l]||e.formattingValues[a]}else{var s=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[d]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function ir(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var l=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?$b(s,function(u){return u.test(l)}):Sb(s,function(u){return u.test(l)}),c;c=e.valueCallback?e.valueCallback(d):d,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(l.length);return{value:c,rest:f}}}function Sb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $b(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function kb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var i=o[0],a=t.match(e.parsePattern);if(!a)return null;var l=e.valueCallback?e.valueCallback(a[0]):a[0];l=n.valueCallback?n.valueCallback(l):l;var s=t.slice(i.length);return{value:l,rest:s}}}var zb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tb=function(t,n,o){var i,a=zb[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i},Pb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Rb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Eb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bb={date:ai({formats:Pb,defaultWidth:"full"}),time:ai({formats:Rb,defaultWidth:"full"}),dateTime:ai({formats:Eb,defaultWidth:"full"})},Mb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_b=function(t,n,o,i){return Mb[t]},Ib={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ob={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ab={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Db={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Lb=function(t,n){var o=Number(t),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},Hb={ordinalNumber:Lb,era:or({values:Ib,defaultWidth:"wide"}),quarter:or({values:Ob,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:or({values:Ab,defaultWidth:"wide"}),day:or({values:Fb,defaultWidth:"wide"}),dayPeriod:or({values:Db,defaultWidth:"wide",formattingValues:Vb,defaultFormattingWidth:"wide"})},Nb=/^(\d+)(th|st|nd|rd)?/i,Wb=/\d+/i,jb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ub={any:[/^b/i,/^(a|c)/i]},Gb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kb={any:[/1/i,/2/i,/3/i,/4/i]},Xb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},qb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Qb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eg={ordinalNumber:kb({matchPattern:Nb,parsePattern:Wb,valueCallback:function(t){return parseInt(t,10)}}),era:ir({matchPatterns:jb,defaultMatchWidth:"wide",parsePatterns:Ub,defaultParseWidth:"any"}),quarter:ir({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:Kb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ir({matchPatterns:Xb,defaultMatchWidth:"wide",parsePatterns:qb,defaultParseWidth:"any"}),day:ir({matchPatterns:Yb,defaultMatchWidth:"wide",parsePatterns:Zb,defaultParseWidth:"any"}),dayPeriod:ir({matchPatterns:Jb,defaultMatchWidth:"any",parsePatterns:Qb,defaultParseWidth:"any"})},tg={code:"en-US",formatDistance:Tb,formatLong:Bb,formatRelative:_b,localize:Hb,match:eg,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ng={name:"en-US",locale:tg};function ar(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=r.inject(bn,null)||{},o=r.computed(()=>{var a,l;return(l=(a=t==null?void 0:t.value)===null||a===void 0?void 0:a[e])!==null&&l!==void 0?l:Cb[e]});return{dateLocaleRef:r.computed(()=>{var a;return(a=n==null?void 0:n.value)!==null&&a!==void 0?a:ng}),localeRef:o}}function gn(e,t,n){if(!t){process.env.NODE_ENV!=="production"&&xo("use-style","No style is specified.");return}const o=Nt(),i=r.inject(bn,null),a=()=>{const l=n.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:rr,props:{bPrefix:l?`.${l}-`:void 0},ssr:o}),i!=null&&i.preflightStyleDisabled||Ul.mount({id:"n-global",head:!0,anchorMetaName:rr,ssr:o})};o?a():r.onBeforeMount(a)}function tt(e,t,n,o){var i;n||xo("useThemeClass","cssVarsRef is not passed");const a=(i=r.inject(bn,null))===null||i===void 0?void 0:i.mergedThemeHashRef,l=r.ref(""),s=Nt();let d;const c=`__${e}`,f=()=>{let u=c;const p=t?t.value:void 0,m=a==null?void 0:a.value;m&&(u+=`-${m}`),p&&(u+=`-${p}`);const{themeOverrides:h,builtinThemeOverrides:x}=o;h&&(u+=`-${So(JSON.stringify(h))}`),x&&(u+=`-${So(JSON.stringify(x))}`),l.value=u,d=()=>{const w=n.value;let g="";for(const P in w)g+=`${P}: ${w[P]};`;V(`.${u}`,g).mount({id:u,ssr:s}),d=void 0}};return r.watchEffect(()=>{f()}),{themeClass:l,onRender:()=>{d==null||d()}}}function Kt(e,t,n){if(!t)return;const o=Nt(),i=r.computed(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),a=()=>{r.watchEffect(()=>{const{value:l}=n,s=`${l}${e}Rtl`;if($d(s,o))return;const{value:d}=i;d&&d.style.mount({id:s,head:!0,anchorMetaName:rr,props:{bPrefix:l?`.${l}-`:void 0},ssr:o})})};return o?a():r.onBeforeMount(a),i}const Gl=r.defineComponent({name:"Add",render(){return r.h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function On(e,t){return r.defineComponent({name:Wh(e),setup(){var n;const o=(n=r.inject(bn,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var i;const a=(i=o==null?void 0:o.value)===null||i===void 0?void 0:i[e];return a?a():t}}})}const rg=r.defineComponent({name:"Checkmark",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},r.h("g",{fill:"none"},r.h("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),og=On("close",r.h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},r.h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r.h("g",{fill:"currentColor","fill-rule":"nonzero"},r.h("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),ig=r.defineComponent({name:"Eye",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),r.h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),ag=r.defineComponent({name:"EyeOff",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),r.h("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),r.h("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),r.h("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),r.h("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),lg=r.defineComponent({name:"Empty",render(){return r.h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.h("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),r.h("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),sg=On("error",r.h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},r.h("g",{"fill-rule":"nonzero"},r.h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),dg=On("info",r.h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},r.h("g",{"fill-rule":"nonzero"},r.h("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cg=r.defineComponent({name:"Remove",render(){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
|
|
26
26
|
fill: none;
|
|
27
27
|
stroke: currentColor;
|
|
28
28
|
stroke-linecap: round;
|
|
@@ -1025,7 +1025,7 @@ ${t}
|
|
|
1025
1025
|
`)])])]))]),Jm=y("input",[W("disabled",[R("input-el, textarea-el",`
|
|
1026
1026
|
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
1027
1027
|
`)])]),Qm=Object.assign(Object.assign({},Ce.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Fn=r.defineComponent({name:"Input",props:Qm,setup(e){process.env.NODE_ENV!=="production"&&r.watchEffect(()=>{e.showPasswordToggle&&Qe("input",'`show-password-toggle` is deprecated, please use `showPasswordOn="click"` instead')});const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=Je(e),a=Ce("Input","-input",Zm,yi,e,t);bs&&gn("-input-safari",Jm,t);const l=r.ref(null),s=r.ref(null),d=r.ref(null),c=r.ref(null),f=r.ref(null),u=r.ref(null),p=r.ref(null),m=Ym(p),h=r.ref(null),{localeRef:x}=ar("Input"),w=r.ref(e.defaultValue),g=r.toRef(e,"value"),P=St(g,w),L=dn(e),{mergedSizeRef:$,mergedDisabledRef:k,mergedStatusRef:_}=L,b=r.ref(!1),S=r.ref(!1),M=r.ref(!1),F=r.ref(!1);let I=null;const D=r.computed(()=>{const{placeholder:T,pair:G}=e;return G?Array.isArray(T)?T:T===void 0?["",""]:[T,T]:T===void 0?[x.value.placeholder]:[T]}),j=r.computed(()=>{const{value:T}=M,{value:G}=P,{value:be}=D;return!T&&(eo(G)||Array.isArray(G)&&eo(G[0]))&&be[0]}),Q=r.computed(()=>{const{value:T}=M,{value:G}=P,{value:be}=D;return!T&&be[1]&&(eo(G)||Array.isArray(G)&&eo(G[1]))}),N=Xe(()=>e.internalForceFocus||b.value),Z=Xe(()=>{if(k.value||e.readonly||!e.clearable||!N.value&&!S.value)return!1;const{value:T}=P,{value:G}=N;return e.pair?!!(Array.isArray(T)&&(T[0]||T[1]))&&(S.value||G):!!T&&(S.value||G)}),q=r.computed(()=>{const{showPasswordOn:T}=e;if(T)return T;if(e.showPasswordToggle)return"click"}),Y=r.ref(!1),le=r.computed(()=>{const{textDecoration:T}=e;return T?Array.isArray(T)?T.map(G=>({textDecoration:G})):[{textDecoration:T}]:["",""]}),ie=r.ref(void 0),ce=()=>{var T,G;if(e.type==="textarea"){const{autosize:be}=e;if(be&&(ie.value=(G=(T=h.value)===null||T===void 0?void 0:T.$el)===null||G===void 0?void 0:G.offsetWidth),!s.value||typeof be=="boolean")return;const{paddingTop:Me,paddingBottom:Ve,lineHeight:Ee}=window.getComputedStyle(s.value),It=Number(Me.slice(0,-2)),Ot=Number(Ve.slice(0,-2)),At=Number(Ee.slice(0,-2)),{value:wn}=d;if(!wn)return;if(be.minRows){const Cn=Math.max(be.minRows,1),br=`${It+Ot+At*Cn}px`;wn.style.minHeight=br}if(be.maxRows){const Cn=`${It+Ot+At*be.maxRows}px`;wn.style.maxHeight=Cn}}},U=r.computed(()=>{const{maxlength:T}=e;return T===void 0?void 0:Number(T)});r.onMounted(()=>{const{value:T}=P;Array.isArray(T)||Te(T)});const te=r.getCurrentInstance().proxy;function ve(T,G){const{onUpdateValue:be,"onUpdate:value":Me,onInput:Ve}=e,{nTriggerFormInput:Ee}=L;be&&he(be,T,G),Me&&he(Me,T,G),Ve&&he(Ve,T,G),w.value=T,Ee()}function ye(T,G){const{onChange:be}=e,{nTriggerFormChange:Me}=L;be&&he(be,T,G),w.value=T,Me()}function oe(T){const{onBlur:G}=e,{nTriggerFormBlur:be}=L;G&&he(G,T),be()}function Se(T){const{onFocus:G}=e,{nTriggerFormFocus:be}=L;G&&he(G,T),be()}function we(T){const{onClear:G}=e;G&&he(G,T)}function se(T){const{onInputBlur:G}=e;G&&he(G,T)}function _e(T){const{onInputFocus:G}=e;G&&he(G,T)}function Re(){const{onDeactivate:T}=e;T&&he(T)}function He(){const{onActivate:T}=e;T&&he(T)}function Ie(T){const{onClick:G}=e;G&&he(G,T)}function De(T){const{onWrapperFocus:G}=e;G&&he(G,T)}function Ue(T){const{onWrapperBlur:G}=e;G&&he(G,T)}function ke(){M.value=!0}function X(T){M.value=!1,T.target===u.value?O(T,1):O(T,0)}function O(T,G=0,be="input"){const Me=T.target.value;if(Te(Me),T instanceof InputEvent&&!T.isComposing&&(M.value=!1),e.type==="textarea"){const{value:Ee}=h;Ee&&Ee.syncUnifiedContainer()}if(I=Me,M.value)return;m.recordCursor();const Ve=ne(Me);if(Ve)if(!e.pair)be==="input"?ve(Me,{source:G}):ye(Me,{source:G});else{let{value:Ee}=P;Array.isArray(Ee)?Ee=[Ee[0],Ee[1]]:Ee=["",""],Ee[G]=Me,be==="input"?ve(Ee,{source:G}):ye(Ee,{source:G})}te.$forceUpdate(),Ve||r.nextTick(m.restoreCursor)}function ne(T){const{countGraphemes:G,maxlength:be,minlength:Me}=e;if(G){let Ee;if(be!==void 0&&(Ee===void 0&&(Ee=G(T)),Ee>Number(be))||Me!==void 0&&(Ee===void 0&&(Ee=G(T)),Ee<Number(be)))return!1}const{allowInput:Ve}=e;return typeof Ve=="function"?Ve(T):!0}function B(T){se(T),T.relatedTarget===l.value&&Re(),T.relatedTarget!==null&&(T.relatedTarget===f.value||T.relatedTarget===u.value||T.relatedTarget===s.value)||(F.value=!1),C(T,"blur"),p.value=null}function A(T,G){_e(T),b.value=!0,F.value=!0,He(),C(T,"focus"),G===0?p.value=f.value:G===1?p.value=u.value:G===2&&(p.value=s.value)}function K(T){e.passivelyActivated&&(Ue(T),C(T,"blur"))}function z(T){e.passivelyActivated&&(b.value=!0,De(T),C(T,"focus"))}function C(T,G){T.relatedTarget!==null&&(T.relatedTarget===f.value||T.relatedTarget===u.value||T.relatedTarget===s.value||T.relatedTarget===l.value)||(G==="focus"?(Se(T),b.value=!0):G==="blur"&&(oe(T),b.value=!1))}function E(T,G){O(T,G,"change")}function re(T){Ie(T)}function xe(T){we(T),ze()}function ze(){e.pair?(ve(["",""],{source:"clear"}),ye(["",""],{source:"clear"})):(ve("",{source:"clear"}),ye("",{source:"clear"}))}function Ne(T){const{onMousedown:G}=e;G&&G(T);const{tagName:be}=T.target;if(be!=="INPUT"&&be!=="TEXTAREA"){if(e.resizable){const{value:Me}=l;if(Me){const{left:Ve,top:Ee,width:It,height:Ot}=Me.getBoundingClientRect(),At=14;if(Ve+It-At<T.clientX&&T.clientX<Ve+It&&Ee+Ot-At<T.clientY&&T.clientY<Ee+Ot)return}}T.preventDefault(),b.value||J()}}function Oe(){var T;S.value=!0,e.type==="textarea"&&((T=h.value)===null||T===void 0||T.handleMouseEnterWrapper())}function Be(){var T;S.value=!1,e.type==="textarea"&&((T=h.value)===null||T===void 0||T.handleMouseLeaveWrapper())}function Ke(){k.value||q.value==="click"&&(Y.value=!Y.value)}function lt(T){if(k.value)return;T.preventDefault();const G=Me=>{Me.preventDefault(),$e("mouseup",document,G)};if(Pe("mouseup",document,G),q.value!=="mousedown")return;Y.value=!0;const be=()=>{Y.value=!1,$e("mouseup",document,be)};Pe("mouseup",document,be)}function Ye(T){e.onKeyup&&he(e.onKeyup,T)}function it(T){switch(e.onKeydown&&he(e.onKeydown,T),T.key){case"Escape":H();break;case"Enter":v(T);break}}function v(T){var G,be;if(e.passivelyActivated){const{value:Me}=F;if(Me){e.internalDeactivateOnEnter&&H();return}T.preventDefault(),e.type==="textarea"?(G=s.value)===null||G===void 0||G.focus():(be=f.value)===null||be===void 0||be.focus()}}function H(){e.passivelyActivated&&(F.value=!1,r.nextTick(()=>{var T;(T=l.value)===null||T===void 0||T.focus()}))}function J(){var T,G,be;k.value||(e.passivelyActivated?(T=l.value)===null||T===void 0||T.focus():((G=s.value)===null||G===void 0||G.focus(),(be=f.value)===null||be===void 0||be.focus()))}function ae(){var T;!((T=l.value)===null||T===void 0)&&T.contains(document.activeElement)&&document.activeElement.blur()}function de(){var T,G;(T=s.value)===null||T===void 0||T.select(),(G=f.value)===null||G===void 0||G.select()}function ue(){k.value||(s.value?s.value.focus():f.value&&f.value.focus())}function fe(){const{value:T}=l;T!=null&&T.contains(document.activeElement)&&T!==document.activeElement&&H()}function ge(T){if(e.type==="textarea"){const{value:G}=s;G==null||G.scrollTo(T)}else{const{value:G}=f;G==null||G.scrollTo(T)}}function Te(T){const{type:G,pair:be,autosize:Me}=e;if(!be&&Me)if(G==="textarea"){const{value:Ve}=d;Ve&&(Ve.textContent=`${T??""}\r
|
|
1028
|
-
`)}else{const{value:Ve}=c;Ve&&(T?Ve.textContent=T:Ve.innerHTML=" ")}}function ct(){ce()}const qt=r.ref({top:"0"});function yn(T){var G;const{scrollTop:be}=T.target;qt.value.top=`${-be}px`,(G=h.value)===null||G===void 0||G.syncUnifiedContainer()}let Yt=null;r.watchEffect(()=>{const{autosize:T,type:G}=e;T&&G==="textarea"?Yt=r.watch(P,be=>{!Array.isArray(be)&&be!==I&&Te(be)}):Yt==null||Yt()});let Zt=null;r.watchEffect(()=>{e.type==="textarea"?Zt=r.watch(P,T=>{var G;!Array.isArray(T)&&T!==I&&((G=h.value)===null||G===void 0||G.syncUnifiedContainer())}):Zt==null||Zt()}),r.provide(gs,{mergedValueRef:P,maxlengthRef:U,mergedClsPrefixRef:t,countGraphemesRef:r.toRef(e,"countGraphemes")});const hr={wrapperElRef:l,inputElRef:f,textareaElRef:s,isCompositing:M,clear:ze,focus:J,blur:ae,select:de,deactivate:fe,activate:ue,scrollTo:ge},pr=Kt("Input",i,t),Vn=r.computed(()=>{const{value:T}=$,{common:{cubicBezierEaseInOut:G},self:{color:be,borderRadius:Me,textColor:Ve,caretColor:Ee,caretColorError:It,caretColorWarning:Ot,textDecorationColor:At,border:wn,borderDisabled:Cn,borderHover:br,borderFocus:Ei,placeholderColor:Bi,placeholderColorDisabled:Mi,lineHeightTextarea:_i,colorDisabled:Ln,colorFocus:Hn,textColorDisabled:cx,boxShadowFocus:ux,iconSize:fx,colorFocusWarning:hx,boxShadowFocusWarning:px,borderWarning:bx,borderFocusWarning:gx,borderHoverWarning:mx,colorFocusError:vx,boxShadowFocusError:xx,borderError:yx,borderFocusError:wx,borderHoverError:Cx,clearSize:Sx,clearColor:$x,clearColorHover:kx,clearColorPressed:zx,iconColor:Tx,iconColorDisabled:Px,suffixTextColor:Rx,countTextColor:Ex,countTextColorDisabled:Bx,iconColorHover:Mx,iconColorPressed:_x,loadingColor:Ix,loadingColorError:Ox,loadingColorWarning:Ax,[ee("padding",T)]:Fx,[ee("fontSize",T)]:Dx,[ee("height",T)]:Vx}}=a.value,{left:Lx,right:Hx}=st(Fx);return{"--n-bezier":G,"--n-count-text-color":Ex,"--n-count-text-color-disabled":Bx,"--n-color":be,"--n-font-size":Dx,"--n-border-radius":Me,"--n-height":Vx,"--n-padding-left":Lx,"--n-padding-right":Hx,"--n-text-color":Ve,"--n-caret-color":Ee,"--n-text-decoration-color":At,"--n-border":wn,"--n-border-disabled":Cn,"--n-border-hover":br,"--n-border-focus":Ei,"--n-placeholder-color":Bi,"--n-placeholder-color-disabled":Mi,"--n-icon-size":fx,"--n-line-height-textarea":_i,"--n-color-disabled":Ln,"--n-color-focus":Hn,"--n-text-color-disabled":cx,"--n-box-shadow-focus":ux,"--n-loading-color":Ix,"--n-caret-color-warning":Ot,"--n-color-focus-warning":hx,"--n-box-shadow-focus-warning":px,"--n-border-warning":bx,"--n-border-focus-warning":gx,"--n-border-hover-warning":mx,"--n-loading-color-warning":Ax,"--n-caret-color-error":It,"--n-color-focus-error":vx,"--n-box-shadow-focus-error":xx,"--n-border-error":yx,"--n-border-focus-error":wx,"--n-border-hover-error":Cx,"--n-loading-color-error":Ox,"--n-clear-color":$x,"--n-clear-size":Sx,"--n-clear-color-hover":kx,"--n-clear-color-pressed":zx,"--n-icon-color":Tx,"--n-icon-color-hover":Mx,"--n-icon-color-pressed":_x,"--n-icon-color-disabled":Px,"--n-suffix-text-color":Rx}}),Jt=o?tt("input",r.computed(()=>{const{value:T}=$;return T[0]}),Vn,e):void 0;return Object.assign(Object.assign({},hr),{wrapperElRef:l,inputElRef:f,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:s,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:pr,uncontrolledValue:w,mergedValue:P,passwordVisible:Y,mergedPlaceholder:D,showPlaceholder1:j,showPlaceholder2:Q,mergedFocus:N,isComposing:M,activated:F,showClearButton:Z,mergedSize:$,mergedDisabled:k,textDecorationStyle:le,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:q,placeholderStyle:qt,mergedStatus:_,textAreaScrollContainerWidth:ie,handleTextAreaScroll:yn,handleCompositionStart:ke,handleCompositionEnd:X,handleInput:O,handleInputBlur:B,handleInputFocus:A,handleWrapperBlur:K,handleWrapperFocus:z,handleMouseEnter:Oe,handleMouseLeave:Be,handleMouseDown:Ne,handleChange:E,handleClick:re,handleClear:xe,handlePasswordToggleClick:Ke,handlePasswordToggleMousedown:lt,handleWrapperKeydown:it,handleWrapperKeyup:Ye,handleTextAreaMirrorResize:ct,getTextareaScrollContainer:()=>s.value,mergedTheme:a,cssVars:o?void 0:Vn,themeClass:Jt==null?void 0:Jt.themeClass,onRender:Jt==null?void 0:Jt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:i,type:a,countGraphemes:l,onRender:s}=this,d=this.$slots;return s==null||s(),r.h("div",{ref:"wrapperElRef",class:[`${n}-input`,i,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:a==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&a!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},r.h("div",{class:`${n}-input-wrapper`},Ae(d.prefix,c=>c&&r.h("div",{class:`${n}-input__prefix`},c)),a==="textarea"?r.h(pi,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,f;const{textAreaScrollContainerWidth:u}=this,p={width:this.autosize&&u&&`${u}px`};return r.h(r.Fragment,null,r.h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(f=this.inputProps)===null||f===void 0?void 0:f.style,p],onBlur:this.handleInputBlur,onFocus:m=>{this.handleInputFocus(m,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?r.h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,p],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?r.h(Wt,{onResize:this.handleTextAreaMirrorResize},{default:()=>r.h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):r.h("div",{class:`${n}-input__input`},r.h("input",Object.assign({type:a==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":a},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?r.h("div",{class:`${n}-input__placeholder`},r.h("span",null,this.mergedPlaceholder[0])):null,this.autosize?r.h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ae(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?r.h("div",{class:`${n}-input__suffix`},[Ae(d["clear-icon-placeholder"],f=>(this.clearable||f)&&r.h(vi,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>f,icon:()=>{var u,p;return(p=(u=this.$slots)["clear-icon"])===null||p===void 0?void 0:p.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?r.h(us,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?r.h(ms,null,{default:f=>{var u;return(u=d.count)===null||u===void 0?void 0:u.call(d,f)}}):null,this.mergedShowPasswordOn&&this.type==="password"?r.h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Ct(d["password-visible-icon"],()=>[r.h(gt,{clsPrefix:n},{default:()=>r.h(ig,null)})]):Ct(d["password-invisible-icon"],()=>[r.h(gt,{clsPrefix:n},{default:()=>r.h(ag,null)})])):null]):null)),this.pair?r.h("span",{class:`${n}-input__separator`},Ct(d.separator,()=>[this.separator])):null,this.pair?r.h("div",{class:`${n}-input-wrapper`},r.h("div",{class:`${n}-input__input`},r.h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?r.h("div",{class:`${n}-input__placeholder`},r.h("span",null,this.mergedPlaceholder[1])):null),Ae(d.suffix,c=>(this.clearable||c)&&r.h("div",{class:`${n}-input__suffix`},[this.clearable&&r.h(vi,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var f;return(f=d["clear-icon"])===null||f===void 0?void 0:f.call(d)},placeholder:()=>{var f;return(f=d["clear-icon-placeholder"])===null||f===void 0?void 0:f.call(d)}}),c]))):null,this.mergedBordered?r.h("div",{class:`${n}-input__border`}):null,this.mergedBordered?r.h("div",{class:`${n}-input__state-border`}):null,this.showCount&&a==="textarea"?r.h(ms,null,{default:c=>{var f;const{renderCount:u}=this;return u?u(c):(f=d.count)===null||f===void 0?void 0:f.call(d,c)}}):null)}}),ev=y("input-group",`
|
|
1028
|
+
`)}else{const{value:Ve}=c;Ve&&(T?Ve.textContent=T:Ve.innerHTML=" ")}}function ct(){ce()}const qt=r.ref({top:"0"});function yn(T){var G;const{scrollTop:be}=T.target;qt.value.top=`${-be}px`,(G=h.value)===null||G===void 0||G.syncUnifiedContainer()}let Yt=null;r.watchEffect(()=>{const{autosize:T,type:G}=e;T&&G==="textarea"?Yt=r.watch(P,be=>{!Array.isArray(be)&&be!==I&&Te(be)}):Yt==null||Yt()});let Zt=null;r.watchEffect(()=>{e.type==="textarea"?Zt=r.watch(P,T=>{var G;!Array.isArray(T)&&T!==I&&((G=h.value)===null||G===void 0||G.syncUnifiedContainer())}):Zt==null||Zt()}),r.provide(gs,{mergedValueRef:P,maxlengthRef:U,mergedClsPrefixRef:t,countGraphemesRef:r.toRef(e,"countGraphemes")});const hr={wrapperElRef:l,inputElRef:f,textareaElRef:s,isCompositing:M,clear:ze,focus:J,blur:ae,select:de,deactivate:fe,activate:ue,scrollTo:ge},pr=Kt("Input",i,t),Vn=r.computed(()=>{const{value:T}=$,{common:{cubicBezierEaseInOut:G},self:{color:be,borderRadius:Me,textColor:Ve,caretColor:Ee,caretColorError:It,caretColorWarning:Ot,textDecorationColor:At,border:wn,borderDisabled:Cn,borderHover:br,borderFocus:Ei,placeholderColor:Bi,placeholderColorDisabled:Mi,lineHeightTextarea:_i,colorDisabled:Ln,colorFocus:Hn,textColorDisabled:dx,boxShadowFocus:cx,iconSize:ux,colorFocusWarning:fx,boxShadowFocusWarning:hx,borderWarning:px,borderFocusWarning:bx,borderHoverWarning:gx,colorFocusError:mx,boxShadowFocusError:vx,borderError:xx,borderFocusError:yx,borderHoverError:wx,clearSize:Cx,clearColor:Sx,clearColorHover:$x,clearColorPressed:kx,iconColor:zx,iconColorDisabled:Tx,suffixTextColor:Px,countTextColor:Rx,countTextColorDisabled:Ex,iconColorHover:Bx,iconColorPressed:Mx,loadingColor:_x,loadingColorError:Ix,loadingColorWarning:Ox,[ee("padding",T)]:Ax,[ee("fontSize",T)]:Fx,[ee("height",T)]:Dx}}=a.value,{left:Vx,right:Lx}=st(Ax);return{"--n-bezier":G,"--n-count-text-color":Rx,"--n-count-text-color-disabled":Ex,"--n-color":be,"--n-font-size":Fx,"--n-border-radius":Me,"--n-height":Dx,"--n-padding-left":Vx,"--n-padding-right":Lx,"--n-text-color":Ve,"--n-caret-color":Ee,"--n-text-decoration-color":At,"--n-border":wn,"--n-border-disabled":Cn,"--n-border-hover":br,"--n-border-focus":Ei,"--n-placeholder-color":Bi,"--n-placeholder-color-disabled":Mi,"--n-icon-size":ux,"--n-line-height-textarea":_i,"--n-color-disabled":Ln,"--n-color-focus":Hn,"--n-text-color-disabled":dx,"--n-box-shadow-focus":cx,"--n-loading-color":_x,"--n-caret-color-warning":Ot,"--n-color-focus-warning":fx,"--n-box-shadow-focus-warning":hx,"--n-border-warning":px,"--n-border-focus-warning":bx,"--n-border-hover-warning":gx,"--n-loading-color-warning":Ox,"--n-caret-color-error":It,"--n-color-focus-error":mx,"--n-box-shadow-focus-error":vx,"--n-border-error":xx,"--n-border-focus-error":yx,"--n-border-hover-error":wx,"--n-loading-color-error":Ix,"--n-clear-color":Sx,"--n-clear-size":Cx,"--n-clear-color-hover":$x,"--n-clear-color-pressed":kx,"--n-icon-color":zx,"--n-icon-color-hover":Bx,"--n-icon-color-pressed":Mx,"--n-icon-color-disabled":Tx,"--n-suffix-text-color":Px}}),Jt=o?tt("input",r.computed(()=>{const{value:T}=$;return T[0]}),Vn,e):void 0;return Object.assign(Object.assign({},hr),{wrapperElRef:l,inputElRef:f,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:s,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:pr,uncontrolledValue:w,mergedValue:P,passwordVisible:Y,mergedPlaceholder:D,showPlaceholder1:j,showPlaceholder2:Q,mergedFocus:N,isComposing:M,activated:F,showClearButton:Z,mergedSize:$,mergedDisabled:k,textDecorationStyle:le,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:q,placeholderStyle:qt,mergedStatus:_,textAreaScrollContainerWidth:ie,handleTextAreaScroll:yn,handleCompositionStart:ke,handleCompositionEnd:X,handleInput:O,handleInputBlur:B,handleInputFocus:A,handleWrapperBlur:K,handleWrapperFocus:z,handleMouseEnter:Oe,handleMouseLeave:Be,handleMouseDown:Ne,handleChange:E,handleClick:re,handleClear:xe,handlePasswordToggleClick:Ke,handlePasswordToggleMousedown:lt,handleWrapperKeydown:it,handleWrapperKeyup:Ye,handleTextAreaMirrorResize:ct,getTextareaScrollContainer:()=>s.value,mergedTheme:a,cssVars:o?void 0:Vn,themeClass:Jt==null?void 0:Jt.themeClass,onRender:Jt==null?void 0:Jt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:i,type:a,countGraphemes:l,onRender:s}=this,d=this.$slots;return s==null||s(),r.h("div",{ref:"wrapperElRef",class:[`${n}-input`,i,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:a==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&a!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},r.h("div",{class:`${n}-input-wrapper`},Ae(d.prefix,c=>c&&r.h("div",{class:`${n}-input__prefix`},c)),a==="textarea"?r.h(pi,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,f;const{textAreaScrollContainerWidth:u}=this,p={width:this.autosize&&u&&`${u}px`};return r.h(r.Fragment,null,r.h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(f=this.inputProps)===null||f===void 0?void 0:f.style,p],onBlur:this.handleInputBlur,onFocus:m=>{this.handleInputFocus(m,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?r.h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,p],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?r.h(Wt,{onResize:this.handleTextAreaMirrorResize},{default:()=>r.h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):r.h("div",{class:`${n}-input__input`},r.h("input",Object.assign({type:a==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":a},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?r.h("div",{class:`${n}-input__placeholder`},r.h("span",null,this.mergedPlaceholder[0])):null,this.autosize?r.h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Ae(d.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?r.h("div",{class:`${n}-input__suffix`},[Ae(d["clear-icon-placeholder"],f=>(this.clearable||f)&&r.h(vi,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>f,icon:()=>{var u,p;return(p=(u=this.$slots)["clear-icon"])===null||p===void 0?void 0:p.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?r.h(us,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?r.h(ms,null,{default:f=>{var u;return(u=d.count)===null||u===void 0?void 0:u.call(d,f)}}):null,this.mergedShowPasswordOn&&this.type==="password"?r.h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Ct(d["password-visible-icon"],()=>[r.h(gt,{clsPrefix:n},{default:()=>r.h(ig,null)})]):Ct(d["password-invisible-icon"],()=>[r.h(gt,{clsPrefix:n},{default:()=>r.h(ag,null)})])):null]):null)),this.pair?r.h("span",{class:`${n}-input__separator`},Ct(d.separator,()=>[this.separator])):null,this.pair?r.h("div",{class:`${n}-input-wrapper`},r.h("div",{class:`${n}-input__input`},r.h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:l?void 0:this.maxlength,minlength:l?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?r.h("div",{class:`${n}-input__placeholder`},r.h("span",null,this.mergedPlaceholder[1])):null),Ae(d.suffix,c=>(this.clearable||c)&&r.h("div",{class:`${n}-input__suffix`},[this.clearable&&r.h(vi,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var f;return(f=d["clear-icon"])===null||f===void 0?void 0:f.call(d)},placeholder:()=>{var f;return(f=d["clear-icon-placeholder"])===null||f===void 0?void 0:f.call(d)}}),c]))):null,this.mergedBordered?r.h("div",{class:`${n}-input__border`}):null,this.mergedBordered?r.h("div",{class:`${n}-input__state-border`}):null,this.showCount&&a==="textarea"?r.h(ms,null,{default:c=>{var f;const{renderCount:u}=this;return u?u(c):(f=d.count)===null||f===void 0?void 0:f.call(d,c)}}):null)}}),ev=y("input-group",`
|
|
1029
1029
|
display: inline-flex;
|
|
1030
1030
|
width: 100%;
|
|
1031
1031
|
flex-wrap: nowrap;
|
|
@@ -1956,4 +1956,4 @@ ${t}
|
|
|
1956
1956
|
border-top: 1px solid var(--n-tab-border-color);
|
|
1957
1957
|
`),y("tabs-pad",`
|
|
1958
1958
|
border-top: 1px solid var(--n-tab-border-color);
|
|
1959
|
-
`)])])])]),v0=Object.assign(Object.assign({},Ce.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),x0=r.defineComponent({name:"Tabs",props:v0,setup(e,{slots:t}){var n,o,i,a;process.env.NODE_ENV!=="production"&&r.watchEffect(()=>{e.labelSize!==void 0&&Qe("tabs","`label-size` is deprecated, please use `size` instead."),e.activeName!==void 0&&Qe("tabs","`active-name` is deprecated, please use `value` instead."),e.onActiveNameChange!==void 0&&Qe("tabs","`on-active-name-change` is deprecated, please use `on-update:value` instead.")});const{mergedClsPrefixRef:l,inlineThemeDisabled:s}=Je(e),d=Ce("Tabs","-tabs",m0,o0,e,l),c=r.ref(null),f=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),h=r.ref(null),x=r.ref(!0),w=r.ref(!0),g=Tr(e,["labelSize","size"]),P=Tr(e,["activeName","value"]),L=r.ref((o=(n=P.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&o!==void 0?o:t.default?(a=(i=zn(t.default())[0])===null||i===void 0?void 0:i.props)===null||a===void 0?void 0:a.name:null),$=St(P,L),k={id:0},_=r.computed(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});r.watch($,()=>{k.id=0,I(),D()});function b(){var B;const{value:A}=$;return A===null?null:(B=c.value)===null||B===void 0?void 0:B.querySelector(`[data-name="${A}"]`)}function S(B){if(e.type==="card")return;const{value:A}=f;if(!A)return;const K=A.style.opacity==="0";if(B){const z=`${l.value}-tabs-bar--disabled`,{barWidth:C,placement:E}=e;if(B.dataset.disabled==="true"?A.classList.add(z):A.classList.remove(z),["top","bottom"].includes(E)){if(F(["top","maxHeight","height"]),typeof C=="number"&&B.offsetWidth>=C){const re=Math.floor((B.offsetWidth-C)/2)+B.offsetLeft;A.style.left=`${re}px`,A.style.maxWidth=`${C}px`}else A.style.left=`${B.offsetLeft}px`,A.style.maxWidth=`${B.offsetWidth}px`;A.style.width="8192px",K&&(A.style.transition="none"),A.offsetWidth,K&&(A.style.transition="",A.style.opacity="1")}else{if(F(["left","maxWidth","width"]),typeof C=="number"&&B.offsetHeight>=C){const re=Math.floor((B.offsetHeight-C)/2)+B.offsetTop;A.style.top=`${re}px`,A.style.maxHeight=`${C}px`}else A.style.top=`${B.offsetTop}px`,A.style.maxHeight=`${B.offsetHeight}px`;A.style.height="8192px",K&&(A.style.transition="none"),A.offsetHeight,K&&(A.style.transition="",A.style.opacity="1")}}}function M(){if(e.type==="card")return;const{value:B}=f;B&&(B.style.opacity="0")}function F(B){const{value:A}=f;if(A)for(const K of B)A.style[K]=""}function I(){if(e.type==="card")return;const B=b();B?S(B):M()}function D(){var B;const A=(B=m.value)===null||B===void 0?void 0:B.$el;if(!A)return;const K=b();if(!K)return;const{scrollLeft:z,offsetWidth:C}=A,{offsetLeft:E,offsetWidth:re}=K;z>E?A.scrollTo({top:0,left:E,behavior:"smooth"}):E+re>z+C&&A.scrollTo({top:0,left:E+re-C,behavior:"smooth"})}const j=r.ref(null);let Q=0,N=null;function Z(B){const A=j.value;if(A){Q=B.getBoundingClientRect().height;const K=`${Q}px`,z=()=>{A.style.height=K,A.style.maxHeight=K};N?(z(),N(),N=null):N=z}}function q(B){const A=j.value;if(A){const K=B.getBoundingClientRect().height,z=()=>{document.body.offsetHeight,A.style.maxHeight=`${K}px`,A.style.height=`${Math.max(Q,K)}px`};N?(N(),N=null,z()):N=z}}function Y(){const B=j.value;if(B){B.style.maxHeight="",B.style.height="";const{paneWrapperStyle:A}=e;if(typeof A=="string")B.style.cssText=A;else if(A){const{maxHeight:K,height:z}=A;K!==void 0&&(B.style.maxHeight=K),z!==void 0&&(B.style.height=z)}}}const le={value:[]},ie=r.ref("next");function ce(B){const A=$.value;let K="next";for(const z of le.value){if(z===A)break;if(z===B){K="prev";break}}ie.value=K,U(B)}function U(B){const{onActiveNameChange:A,onUpdateValue:K,"onUpdate:value":z}=e;A&&he(A,B),K&&he(K,B),z&&he(z,B),L.value=B}function te(B){const{onClose:A}=e;A&&he(A,B)}function ve(){const{value:B}=f;if(!B)return;const A="transition-disabled";B.classList.add(A),I(),B.classList.remove(A)}const ye=r.ref(null);function oe({transitionDisabled:B}){const A=c.value;if(!A)return;B&&A.classList.add("transition-disabled");const K=b();K&&ye.value&&(ye.value.style.width=`${K.offsetWidth}px`,ye.value.style.height=`${K.offsetHeight}px`,ye.value.style.transform=`translateX(${K.offsetLeft-rt(getComputedStyle(A).paddingLeft)}px)`,B&&ye.value.offsetWidth),B&&A.classList.remove("transition-disabled")}r.watch([$],()=>{e.type==="segment"&&r.nextTick(()=>{oe({transitionDisabled:!1})})}),r.onMounted(()=>{e.type==="segment"&&oe({transitionDisabled:!0})});let Se=0;function we(B){var A;if(B.contentRect.width===0&&B.contentRect.height===0||Se===B.contentRect.width)return;Se=B.contentRect.width;const{type:K}=e;if((K==="line"||K==="bar")&&ve(),K!=="segment"){const{placement:z}=e;De((z==="top"||z==="bottom"?(A=m.value)===null||A===void 0?void 0:A.$el:h.value)||null)}}const se=ii(we,64);r.watch([()=>e.justifyContent,()=>e.size],()=>{r.nextTick(()=>{const{type:B}=e;(B==="line"||B==="bar")&&ve()})});const _e=r.ref(!1);function Re(B){var A;const{target:K,contentRect:{width:z}}=B,C=K.parentElement.offsetWidth;if(!_e.value)C<z&&(_e.value=!0);else{const{value:E}=p;if(!E)return;C-z>E.$el.offsetWidth&&(_e.value=!1)}De(((A=m.value)===null||A===void 0?void 0:A.$el)||null)}const He=ii(Re,64);function Ie(){const{onAdd:B}=e;B&&B(),r.nextTick(()=>{const A=b(),{value:K}=m;!A||!K||K.scrollTo({left:A.offsetLeft,top:0,behavior:"smooth"})})}function De(B){if(!B)return;const{placement:A}=e;if(A==="top"||A==="bottom"){const{scrollLeft:K,scrollWidth:z,offsetWidth:C}=B;x.value=K<=0,w.value=K+C>=z}else{const{scrollTop:K,scrollHeight:z,offsetHeight:C}=B;x.value=K<=0,w.value=K+C>=z}}const Ue=ii(B=>{De(B.target)},64);r.provide(ki,{triggerRef:r.toRef(e,"trigger"),tabStyleRef:r.toRef(e,"tabStyle"),tabClassRef:r.toRef(e,"tabClass"),addTabStyleRef:r.toRef(e,"addTabStyle"),addTabClassRef:r.toRef(e,"addTabClass"),paneClassRef:r.toRef(e,"paneClass"),paneStyleRef:r.toRef(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:r.toRef(e,"type"),closableRef:r.toRef(e,"closable"),valueRef:$,tabChangeIdRef:k,onBeforeLeaveRef:r.toRef(e,"onBeforeLeave"),activateTab:ce,handleClose:te,handleAdd:Ie}),ia(()=>{I(),D()}),r.watchEffect(()=>{const{value:B}=u;if(!B)return;const{value:A}=l,K=`${A}-tabs-nav-scroll-wrapper--shadow-start`,z=`${A}-tabs-nav-scroll-wrapper--shadow-end`;x.value?B.classList.remove(K):B.classList.add(K),w.value?B.classList.remove(z):B.classList.add(z)});const ke={syncBarPosition:()=>{I()}},X=()=>{oe({transitionDisabled:!0})},O=r.computed(()=>{const{value:B}=g,{type:A}=e,K={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[A],z=`${B}${K}`,{self:{barColor:C,closeIconColor:E,closeIconColorHover:re,closeIconColorPressed:xe,tabColor:ze,tabBorderColor:Ne,paneTextColor:Oe,tabFontWeight:Be,tabBorderRadius:Ke,tabFontWeightActive:lt,colorSegment:Ye,fontWeightStrong:it,tabColorSegment:v,closeSize:H,closeIconSize:J,closeColorHover:ae,closeColorPressed:de,closeBorderRadius:ue,[ee("panePadding",B)]:fe,[ee("tabPadding",z)]:ge,[ee("tabPaddingVertical",z)]:Te,[ee("tabGap",z)]:ct,[ee("tabGap",`${z}Vertical`)]:qt,[ee("tabTextColor",A)]:yn,[ee("tabTextColorActive",A)]:Yt,[ee("tabTextColorHover",A)]:Zt,[ee("tabTextColorDisabled",A)]:hr,[ee("tabFontSize",B)]:pr},common:{cubicBezierEaseInOut:Vn}}=d.value;return{"--n-bezier":Vn,"--n-color-segment":Ye,"--n-bar-color":C,"--n-tab-font-size":pr,"--n-tab-text-color":yn,"--n-tab-text-color-active":Yt,"--n-tab-text-color-disabled":hr,"--n-tab-text-color-hover":Zt,"--n-pane-text-color":Oe,"--n-tab-border-color":Ne,"--n-tab-border-radius":Ke,"--n-close-size":H,"--n-close-icon-size":J,"--n-close-color-hover":ae,"--n-close-color-pressed":de,"--n-close-border-radius":ue,"--n-close-icon-color":E,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":xe,"--n-tab-color":ze,"--n-tab-font-weight":Be,"--n-tab-font-weight-active":lt,"--n-tab-padding":ge,"--n-tab-padding-vertical":Te,"--n-tab-gap":ct,"--n-tab-gap-vertical":qt,"--n-pane-padding-left":st(fe,"left"),"--n-pane-padding-right":st(fe,"right"),"--n-pane-padding-top":st(fe,"top"),"--n-pane-padding-bottom":st(fe,"bottom"),"--n-font-weight-strong":it,"--n-tab-color-segment":v}}),ne=s?tt("tabs",r.computed(()=>`${g.value[0]}${e.type[0]}`),O,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:ye,tabsPaneWrapperRef:j,tabsElRef:c,barElRef:f,addTabInstRef:p,xScrollInstRef:m,scrollWrapperElRef:u,addTabFixed:_e,tabWrapperStyle:_,handleNavResize:se,mergedSize:g,handleScroll:Ue,handleTabsResize:He,cssVars:s?void 0:O,themeClass:ne==null?void 0:ne.themeClass,animationDirection:ie,renderNameListRef:le,yScrollElRef:h,handleSegmentResize:X,onAnimationBeforeLeave:Z,onAnimationEnter:q,onAnimationAfterEnter:Y,onRender:ne==null?void 0:ne.onRender},ke)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:o,addable:i,mergedSize:a,renderNameListRef:l,onRender:s,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:f,prefix:u,suffix:p}}=this;s==null||s();const m=f?zn(f()).filter(k=>k.type.__TAB_PANE__===!0):[],h=f?zn(f()).filter(k=>k.type.__TAB__===!0):[],x=!h.length,w=t==="card",g=t==="segment",P=!w&&!g&&this.justifyContent;l.value=[];const L=()=>{const k=r.h("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},P?null:r.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),x?m.map((_,b)=>(l.value.push(_.props.name),Ti(r.h(zi,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!P||P==="center"||P==="start"||P==="end")}),_.children?{default:_.children.tab}:void 0)))):h.map((_,b)=>(l.value.push(_.props.name),Ti(b!==0&&!P?Bs(_):_))),!o&&i&&w?Es(i,(x?m.length:h.length)!==0):null,P?null:r.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return r.h("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},w&&i?r.h(Wt,{onResize:this.handleTabsResize},{default:()=>k}):k,w?r.h("div",{class:`${e}-tabs-pad`}):null,w?null:r.h("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=g?"top":n;return r.h("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,P&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},r.h("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},Ae(u,k=>k&&r.h("div",{class:`${e}-tabs-nav__prefix`},k)),g?r.h(Wt,{onResize:this.handleSegmentResize},{default:()=>r.h("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},r.h("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},r.h("div",{class:`${e}-tabs-wrapper`},r.h("div",{class:`${e}-tabs-tab`}))),x?m.map((k,_)=>(l.value.push(k.props.name),r.h(zi,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),k.children?{default:k.children.tab}:void 0))):h.map((k,_)=>(l.value.push(k.props.name),_===0?k:Bs(k))))}):r.h(Wt,{onResize:this.handleNavResize},{default:()=>r.h("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?r.h(_c,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:L}):r.h("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},L()))}),o&&i&&w?Es(i,!0):null,Ae(p,k=>k&&r.h("div",{class:`${e}-tabs-nav__suffix`},k))),x&&(this.animated&&($==="top"||$==="bottom")?r.h("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Rs(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Rs(m,this.mergedValue,this.renderedNames)))}});function Rs(e,t,n,o,i,a,l){const s=[];return e.forEach(d=>{const{name:c,displayDirective:f,"display-directive":u}=d.props,p=h=>f===h||u===h,m=t===c;if(d.key!==void 0&&(d.key=c),m||p("show")||p("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const h=!p("if");s.push(h?r.withDirectives(d,[[r.vShow,m]]):d)}}),l?r.h(r.TransitionGroup,{name:`${l}-transition`,onBeforeLeave:o,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Es(e,t){return r.h(zi,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Bs(e){const t=r.cloneVNode(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Ti(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}async function Ms(e,t,n){try{const{data:o}=await Qt().POST("/api/visualizations",{type:e,title:t,config:n});return o.id}catch(o){Sn(o)}}async function y0(e,t,n,o){try{if(t)await _s(t,n,o);else return await Ms(e,n,o)}catch(i){Sn(i)}}async function _s(e,t,n){try{await Qt().PUT(`/api/visualizations/${e}`,{title:t,config:n})}catch(o){Sn(o)}}function Is(e){const t={};return e&&e.forEach(n=>{n.name?t[n.name]=n.value??null:console.debug("Warning: Detected input element with no name.")}),t}const w0={key:2,class:"border border-dotted border-green-600 rounded mt-2 p-2"},C0=r.defineComponent({__name:"InputConditional",props:r.mergeModels({datasetId:{},input:{}},{value:{},valueModifiers:{}}),emits:r.mergeModels(["update:value"],["update:value"]),setup(e,{emit:t}){const n=e,o=t;if(!n.input.test_param)throw`The conditional '${n.input.name}' is missing a test parameter.`;if(!n.input.cases||n.input.cases.length===0)throw`The conditional '${n.input.name}' is missing a cases.`;const i=r.ref(n.input.test_param),a=i.value.name;a||console.error(`Test parameter has no name: ${n.input.name}.`);const l=r.useModel(e,"value");(!l.value||!(a in l.value))&&console.error(`Test parameter of conditional not available: ${n.input.name}.`,l.value);const s=r.ref(p()),d=r.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const x of n.input.cases)h[x.value]=Is(x.inputs),h[x.value][a]=x.value;return h}),c=r.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const x of n.input.cases)h[x.value]=x.inputs;return h}),f=r.computed(()=>c.value[s.value]),u=r.computed({get(){return s.value==="true"},set(h){s.value=String(h)}});function p(){return l.value&&l.value[a]}function m(h){let x={...d.value[s.value]};if(h){const w={};f.value.forEach(g=>{w[g.name]=h[g.name]}),x={...x,...h}}o("update:value",x)}return r.watch(()=>l.value,()=>{s.value=p()}),r.watch(()=>s.value,()=>{m()}),(h,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[i.value.type==="boolean"?(r.openBlock(),r.createBlock(r.unref(zs),{key:0,value:u.value,"onUpdate:value":x[0]||(x[0]=w=>u.value=w)},null,8,["value"])):(r.openBlock(),r.createBlock(r.unref(oo),{key:1,value:s.value,"onUpdate:value":x[1]||(x[1]=w=>s.value=w),options:i.value.data},null,8,["value","options"])),f.value?(r.openBlock(),r.createElementBlock("div",w0,[r.createVNode(Pi,{"dataset-id":h.datasetId,inputs:f.value,values:l.value,"onUpdate:values":m},null,8,["dataset-id","inputs","values"])])):r.createCommentVNode("",!0)],64))}}),S0={key:0,class:"mb-1"},$0={key:1,class:"text-red-600 mb-1"},k0=100,z0=r.defineComponent({__name:"InputData",props:r.mergeModels({extension:{},optional:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=r.ref([]),o=r.useModel(e,"value"),i=r.ref(!1),a=r.ref(null);async function l(d){i.value=!0;try{const c=t.extension?`q=extension-eq&qv=${t.extension}`:"",f=d?`q=name-contains&qv=${d}`:"",{data:u}=await Qt().GET(`/api/datasets?limit=${k0}&${c}&${f}`);if(u&&u.length>0){const p=u.map(m=>({label:m.name,value:{id:m.id,name:m.name}}));p.push({label:"...filter for more",value:null,disabled:!0}),t.optional&&p.unshift({label:"-- Clear Selection --",value:null}),n.value=p}}catch(c){console.log(c)}finally{i.value=!1}}function s(){o.value=a.value,a.value=null}return l(),(d,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[o.value?(r.openBlock(),r.createElementBlock("div",S0,[r.createVNode(r.unref(mt),{class:"size-3 mr-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Li))]),_:1}),r.createElementVNode("span",null,"Selected: "+r.toDisplayString(o.value.name),1)])):d.optional?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$0,[r.createVNode(r.unref(mt),{class:"size-3 mr-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Hi))]),_:1}),c[1]||(c[1]=r.createElementVNode("span",null,"Please select a dataset.",-1))])),r.createVNode(r.unref(oo),{value:a.value,"onUpdate:value":[c[0]||(c[0]=f=>a.value=f),s],filterable:"",placeholder:"Select a Dataset",loading:i.value,options:n.value,onSearch:l},null,8,["value","loading","options"])],64))}});function T0(e,t,n,o){const i=[];t&&i.push({label:"Column: Default",value:"auto"});const a=e.metadata_column_types;for(const l in a)(o&&["int","float"].includes(a[l])||n&&a[l]==="str"||!o&&!n)&&i.push({label:"Column: "+(parseInt(l)+1),value:l});return i}const P0=r.defineComponent({__name:"InputDataColumn",props:r.mergeModels({datasetId:{},isAuto:{type:Boolean},isText:{type:Boolean},isNumber:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=r.ref([]),o=r.useModel(e,"value");async function i(){if(t.datasetId)try{const{data:l}=await Qt().GET(`/api/datasets/${t.datasetId}`),s=T0(l,t.isAuto,t.isText,t.isNumber);n.value=s,a()}catch(l){console.log(l)}else console.log("Data column selector disabled, since `datasetId` is unavailable.")}function a(){n.value.length>0&&o.value===null&&(o.value=n.value[0].value)}return i(),r.watch(()=>o.value,()=>a()),(l,s)=>l.datasetId?(r.openBlock(),r.createBlock(r.unref(oo),{key:0,value:o.value,"onUpdate:value":s[0]||(s[0]=d=>o.value=d),options:n.value},null,8,["value","options"])):(r.openBlock(),r.createBlock(r.unref(Fn),{key:1,value:o.value,"onUpdate:value":s[1]||(s[1]=d=>o.value=d)},null,8,["value"]))}});function fr(e){return String(e).toLowerCase()==="true"}const R0={class:"overflow-auto select-none"},E0={class:"font-bold pb-1"},B0={key:0,class:"text-xs pb-1"},M0={key:5},Os=.01,Pi=r.defineComponent({__name:"InputForm",props:{datasetId:{},inputs:{},values:{}},emits:["update:values"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(a());function a(){const s={...n.values};return n.inputs.forEach(d=>{s[d.name]===void 0&&(s[d.name]=null)}),s}function l(){o("update:values",i.value)}return r.watch(()=>n.values,()=>{i.value=a()}),(s,d)=>(r.openBlock(),r.createElementBlock("div",R0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.inputs,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,class:"pb-2"},[r.createElementVNode("div",E0,r.toDisplayString(c.label||c.name),1),c.help?(r.openBlock(),r.createElementBlock("div",B0,r.toDisplayString(c.help),1)):r.createCommentVNode("",!0),r.createElementVNode("div",null,[c.type==="boolean"?(r.openBlock(),r.createBlock(r.unref(zs),{key:0,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[0]||(d[0]=u=>l())]},null,8,["value","onUpdate:value"])):c.type==="color"?(r.openBlock(),r.createBlock(r.unref(Ov),{key:1,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[1]||(d[1]=u=>l())],modes:["hex"],"show-alpha":!1},null,8,["value","onUpdate:value"])):c.type==="conditional"?(r.openBlock(),r.createBlock(C0,{key:2,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[2]||(d[2]=u=>l())],"dataset-id":s.datasetId,input:c},null,8,["value","onUpdate:value","dataset-id","input"])):c.type==="data"?(r.openBlock(),r.createBlock(z0,{key:3,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[3]||(d[3]=u=>l())],extension:c.extension,optional:r.unref(fr)(c.optional)},null,8,["value","onUpdate:value","extension","optional"])):c.type==="data_column"?(r.openBlock(),r.createBlock(P0,{key:4,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[4]||(d[4]=u=>l())],"dataset-id":s.datasetId,"is-auto":r.unref(fr)(c.is_auto),"is-text":r.unref(fr)(c.is_text),"is-number":r.unref(fr)(c.is_number)},null,8,["value","onUpdate:value","dataset-id","is-auto","is-text","is-number"])):c.type==="float"?(r.openBlock(),r.createElementBlock("div",M0,[c.min!==void 0&&c.max!==void 0?(r.openBlock(),r.createBlock(r.unref(h0),{key:0,class:"mb-2",value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[5]||(d[5]=u=>l())],min:Number(c.min),max:Number(c.max),step:Os},null,8,["value","onUpdate:value","min","max"])):r.createCommentVNode("",!0),r.createVNode(r.unref(d0),{value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[6]||(d[6]=u=>l())],size:"small",min:Number(c.min),max:Number(c.max),step:Os},null,8,["value","onUpdate:value","min","max"])])):c.type==="select"?(r.openBlock(),r.createBlock(r.unref(oo),{key:6,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[7]||(d[7]=u=>l())],options:c.data},null,8,["value","onUpdate:value","options"])):c.type==="textarea"?(r.openBlock(),r.createBlock(r.unref(Fn),{key:7,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[8]||(d[8]=u=>l())],rows:Number(c.rows),type:"textarea"},null,8,["value","onUpdate:value","rows"])):(r.openBlock(),r.createBlock(r.unref(Fn),{key:8,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[9]||(d[9]=u=>l())]},null,8,["value","onUpdate:value"]))])]))),128))]))}}),_0={class:"border border-dotted border-green-600 rounded p-2"},I0={class:"flex text-green-600 my-1"},O0={class:"mx-1"},A0=r.defineComponent({__name:"InputRepeats",props:{datasetId:{},inputs:{},valuesArray:{}},emits:["update:values-array"],setup(e,{emit:t}){const n=e,o=t,i=r.computed(()=>Is(n.inputs));function a(){const d=[...n.valuesArray];d.unshift(i.value),o("update:values-array",d)}function l(d){const c=[...n.valuesArray];c.splice(d,1),o("update:values-array",c)}function s(d,c){const f=[...n.valuesArray];f[d]={...c},o("update:values-array",f)}return(d,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(Pt),{size:"tiny",type:"primary",class:"mb-2",onClick:a},{default:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(js))]),_:1}),c[0]||(c[0]=r.createElementVNode("span",{class:"mx-1"},"Add New Track",-1))]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.valuesArray,(f,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,class:"my-2"},[r.createElementVNode("div",_0,[r.createVNode(Pi,{"dataset-id":d.datasetId,inputs:d.inputs,values:f,"onUpdate:values":p=>s(u,p)},null,8,["dataset-id","inputs","values","onUpdate:values"]),r.createElementVNode("div",I0,[r.createVNode(r.unref(Pt),{class:"text-green-600 w-full",size:"tiny",round:"",disabled:d.valuesArray.length<=1,onClick:p=>l(u)},{default:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Gs))]),_:1}),r.createElementVNode("span",O0,"Remove Track "+r.toDisplayString(d.valuesArray.length-u),1)]),_:2},1032,["disabled","onClick"])])])]))),128))],64))}}),F0=2e3,D0=r.defineComponent({__name:"AlertNotify",props:{message:{},messageType:{default:"info"}},emits:["timeout"],setup(e,{emit:t}){const n=e,o=t;let i=null;return r.watch(()=>n.message,()=>{i&&clearTimeout(i),i=setTimeout(()=>o("timeout"),F0)}),(a,l)=>a.message?(r.openBlock(),r.createBlock(r.unref(hs),{key:0,type:a.messageType,class:"m-4"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.message),1)]),_:1},8,["type"])):r.createCommentVNode("",!0)}}),V0={class:"text-xs"},L0=r.defineComponent({__name:"ApiStatus",setup(e){const t=r.ref("...");async function n(){try{const{data:o}=await Qt().GET("/api/version");t.value=o.version_major}catch{console.log("Unable to connect to Galaxy. Verify Galaxy is running and refer to docs."),t.value=""}}return n(),(o,i)=>t.value?(r.openBlock(),r.createBlock(r.unref(cr),{key:0,class:"mx-1",trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(mt),{class:"mx-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Li),{class:"text-green-600"})]),_:1})]),default:r.withCtx(()=>[r.createElementVNode("span",V0,"Connected to Galaxy Version "+r.toDisplayString(t.value)+".",1)]),_:1})):(r.openBlock(),r.createBlock(r.unref(cr),{key:1,class:"mx-1",trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(mt),{class:"mx-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Hi),{class:"text-red-600"})]),_:1})]),default:r.withCtx(()=>[i[0]||(i[0]=r.createElementVNode("span",{class:"text-xs"},"Galaxy is not accessible!",-1))]),_:1}))}}),H0={class:"overflow-auto select-none bg-white z-10"},N0={class:"flex p-2"},W0={class:"flex-1 font-thin text-lg p-1 p-2"},j0={key:0},U0={class:"m-2 mt-0 p-2 bg-sky-50 text-sky-900 rounded"},G0={class:"flex"},K0={class:"flex justify-center center-items"},X0={class:"m-2"},q0=["src"],Y0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 100 100",class:"size-14"},Z0={class:"overflow-hidden break-words p-1"},J0={class:"font-bold"},Q0=["innerHTML"],ex={class:"px-2 pb-2"},tx=r.defineComponent({__name:"SidePanel",props:{datasetId:{},datasetUrl:{},description:{},logoUrl:{},html:{},name:{},settingInputs:{},settingValues:{},trackInputs:{},trackValues:{},visualizationId:{},visualizationTitle:{}},emits:["update:tracks","update:settings","update:visualization-id","update:visualization-title","toggle"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(""),a=r.ref("info"),l=r.computed(()=>n.settingInputs.length===0||n.trackInputs.length===0);async function s(){try{if(n.visualizationId)await _s(n.visualizationId,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues}),i.value="Successfully saved.",a.value="success";else{const u=await Ms(n.name,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues});u?(i.value="Successfully created.",a.value="success",o("update:visualization-id",u)):(i.value="Something went wrong.",a.value="error")}}catch(u){i.value=Oi(u),a.value="error"}}function d(u){o("update:settings",u)}function c(u){o("update:tracks",u)}function f(u){o("update:visualization-title",u)}return(u,p)=>(r.openBlock(),r.createElementBlock("div",H0,[r.createElementVNode("div",N0,[r.createElementVNode("div",W0,[p[2]||(p[2]=r.createElementVNode("span",null,"Charts",-1)),r.createVNode(L0)]),u.datasetUrl?(r.openBlock(),r.createElementBlock("div",j0,[u.datasetId?(r.openBlock(),r.createBlock(r.unref(cr),{key:0,trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:s},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Ws))]),_:1})]),_:1})]),default:r.withCtx(()=>[p[3]||(p[3]=r.createElementVNode("span",{class:"text-xs"},"Save",-1))]),_:1})):r.createCommentVNode("",!0),r.createVNode(r.unref(cr),{trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:p[0]||(p[0]=m=>o("toggle"))},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Ns))]),_:1})]),_:1})]),default:r.withCtx(()=>[p[4]||(p[4]=r.createElementVNode("span",{class:"text-xs"},"Collapse",-1))]),_:1})])):r.createCommentVNode("",!0)]),r.createVNode(D0,{message:i.value,"message-type":a.value,onTimeout:p[1]||(p[1]=m=>i.value=""),class:"m-2"},null,8,["message","message-type"]),r.createElementVNode("div",U0,[r.createElementVNode("div",G0,[r.createElementVNode("div",K0,[r.createElementVNode("div",X0,[n.logoUrl?(r.openBlock(),r.createElementBlock("img",{key:0,src:n.logoUrl,class:"min-w-14 max-w-14 object-contain"},null,8,q0)):(r.openBlock(),r.createElementBlock("svg",Y0,p[5]||(p[5]=[r.createElementVNode("circle",{cx:"50",cy:"50",r:"45",stroke:"#E30A17","stroke-width":"5"},null,-1),r.createElementVNode("path",{d:"M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",fill:"#E30A17"},null,-1)])))])]),r.createElementVNode("div",Z0,[r.createElementVNode("span",J0,r.toDisplayString(u.html),1),r.createElementVNode("div",{class:"text-xs",innerHTML:u.description},null,8,Q0)])])]),r.createElementVNode("div",ex,[p[6]||(p[6]=r.createElementVNode("div",{class:"font-bold"},"Title",-1)),p[7]||(p[7]=r.createElementVNode("div",{class:"text-xs py-1"},"Specify a visualization title.",-1)),r.createVNode(r.unref(Fn),{value:u.visualizationTitle,onInput:f},null,8,["value"])]),r.createVNode(r.unref(x0),{type:"line",animated:"",class:"px-2","tab-class":l.value?"!hidden":""},{default:r.withCtx(()=>[u.trackInputs.length>0?(r.openBlock(),r.createBlock(r.unref(Ps),{key:0,name:"tracks"},{tab:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Us))]),_:1}),p[8]||(p[8]=r.createElementVNode("span",{class:"mx-1"},"Tracks",-1))]),default:r.withCtx(()=>[r.createVNode(A0,{"dataset-id":u.datasetId,inputs:u.trackInputs,"values-array":u.trackValues,"onUpdate:valuesArray":c},null,8,["dataset-id","inputs","values-array"])]),_:1})):r.createCommentVNode("",!0),u.settingInputs.length>0?(r.openBlock(),r.createBlock(r.unref(Ps),{key:1,name:"settings"},{tab:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Vs))]),_:1}),p[9]||(p[9]=r.createElementVNode("span",{class:"mx-1"},"Settings",-1))]),default:r.withCtx(()=>[r.createVNode(Pi,{"dataset-id":u.datasetId,inputs:u.settingInputs,values:u.settingValues,"onUpdate:values":d},null,8,["dataset-id","inputs","values"])]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["tab-class"])]))}});async function nx(e,t={}){const n=Ri(e.settings,t.settings),o=e.specs,i=ix(e.tracks,t.tracks);return{plugin:e,settings:n,specs:o,tracks:i}}function rx(e,t){let n=t??e.value;return e.type==="float"?n=Number(n):e.type==="boolean"&&(n=fr(n)),n}function ox(e,t={}){var i,a,l;const n=t,o=(i=e.test_param)==null?void 0:i.name;if(!o)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[o]??((a=e.test_param)==null?void 0:a.value);for(const d of e.cases||[])d.value===s&&(n[o]=s,(l=d.inputs)!=null&&l.length&&Ri(d.inputs,n))}return n}function Ri(e,t){const n=t||{};return e==null||e.forEach(o=>{o.type==="conditional"?n[o.name]=ox(o,n[o.name]):n[o.name]=rx(o,n[o.name])}),n}function ix(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((o,i)=>{n[i]=Ri(e,o)})),n}function ax(e,t="app"){if(e===void 0){const s=document.getElementById(t);if(!s)throw new Error(`Container element '${t}' not found.`);e=JSON.parse((s==null?void 0:s.getAttribute("data-incoming"))||"{}")}const n=(e==null?void 0:e.root)??"/",o=(e==null?void 0:e.visualization_config)??{},i=(e==null?void 0:e.visualization_id)??null,a=(e==null?void 0:e.visualization_plugin)??{},l=(e==null?void 0:e.visualization_title)??"Unnamed Visualization";return{root:n,visualizationConfig:o,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}}const lx={key:1,class:"m-2"},sx={key:0,class:"relative max-w-full h-screen overflow-hidden"},dx=r.defineComponent({__name:"GalaxyCharts",props:{container:{},credentials:{},incoming:{}},setup(e){const t=e,{root:n,visualizationConfig:o,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}=ax(t.incoming,t.container),s=r.ref(!0),d=r.ref(""),c=r.ref(""),f=r.ref(""),u=r.ref(!0),p=r.ref(""),m=r.ref(""),h=r.ref([]),x=r.ref({}),w=r.ref({}),g=r.ref([]),P=r.ref([]),L=r.ref(i),$=r.ref(l),k=Di();k.setCredentials(t.credentials||"include"),k.setRoot(n||"/"),nx(a,o).then(({plugin:Y,settings:le,specs:ie,tracks:ce})=>{d.value=Y.description||"",f.value=Y.html||"",u.value=!1,p.value=Y.logo||"",m.value=Y.name||"",h.value=Y.settings||[],x.value=le,w.value=ie||{},g.value=Y.tracks||[],P.value=ce});const _=r.computed(()=>o.dataset_id||""),b=r.computed(()=>o.dataset_url?(console.debug(`GalaxyCharts: Evaluating dataset url: ${o.dataset_url}.`),o.dataset_url):_.value?(console.debug(`GalaxyCharts: Built dataset url from dataset id: ${_.value}.`),Fs(n,_.value)):""),S=r.computed(()=>p.value&&`${n}${p.value}`),M=r.computed(()=>h.value.length===0&&g.value.length===0);async function F(){s.value=!s.value,await r.nextTick(),window?window.dispatchEvent(new Event("resize")):console.warn("window unavailable.")}function I(){try{window.postMessage({container:t.container,from:"galaxy-visualization",visualization_config:JSON.parse(JSON.stringify(D())),visualization_id:L.value,visualization_title:$.value},"*")}catch(Y){c.value=`Failed to postMessage: ${Y}`}}function D(){return{dataset_id:_.value,dataset_url:b.value,settings:x.value,tracks:P.value}}function j(Y){x.value={...Y},I()}function Q(Y){P.value=[...Y],I()}function N(Y){L.value=Y,I()}function Z(Y){$.value=Y,I()}async function q(Y){j({...x.value,...Y});try{const le=await y0(m.value,L.value,$.value,D());le&&N(le)}catch(le){c.value=`Failed to save: ${le}`}}return(Y,le)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(r.unref(hs),{key:0,type:"error",class:"m-2"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.value),1)]),_:1})):r.createCommentVNode("",!0),u.value?(r.openBlock(),r.createElementBlock("div",lx,[r.createElementVNode("span",null,[r.createVNode(r.unref(Ls),{class:"animate-spin size-4 inline mx-1"})]),le[0]||(le[0]=r.createElementVNode("span",{class:"text-xs"},"Please wait...",-1))])):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["grid h-screen",{"grid-cols-[1fr_17rem]":!s.value&&!M.value&&b.value}])},[b.value?(r.openBlock(),r.createElementBlock("div",sx,[r.renderSlot(Y.$slots,"default",{datasetId:_.value,datasetUrl:b.value,root:r.unref(n),settings:x.value,specs:w.value,tracks:P.value,save:q})])):r.createCommentVNode("",!0),s.value&&!M.value&&b.value?(r.openBlock(),r.createBlock(r.unref(cr),{key:1,trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-3 absolute right-0",onClick:F},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Hs))]),_:1})]),_:1})]),default:r.withCtx(()=>[le[1]||(le[1]=r.createElementVNode("span",{class:"text-xs"},"Expand",-1))]),_:1})):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(tx,{"dataset-id":_.value,"dataset-url":b.value,description:d.value,html:f.value,"logo-url":S.value,name:m.value,"setting-inputs":h.value,"setting-values":x.value,"track-inputs":g.value,"track-values":P.value,"visualization-id":L.value,"visualization-title":$.value,"onUpdate:settings":j,"onUpdate:tracks":Q,"onUpdate:visualizationId":N,"onUpdate:visualizationTitle":Z,onToggle:F},null,8,["dataset-id","dataset-url","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]),[[r.vShow,!s.value&&!M.value||!b.value]])],2))],64))}});We.GalaxyApi=Qt,We.GalaxyCharts=dx,We.useColumnsStore=Ds,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})});
|
|
1959
|
+
`)])])])]),v0=Object.assign(Object.assign({},Ce.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),x0=r.defineComponent({name:"Tabs",props:v0,setup(e,{slots:t}){var n,o,i,a;process.env.NODE_ENV!=="production"&&r.watchEffect(()=>{e.labelSize!==void 0&&Qe("tabs","`label-size` is deprecated, please use `size` instead."),e.activeName!==void 0&&Qe("tabs","`active-name` is deprecated, please use `value` instead."),e.onActiveNameChange!==void 0&&Qe("tabs","`on-active-name-change` is deprecated, please use `on-update:value` instead.")});const{mergedClsPrefixRef:l,inlineThemeDisabled:s}=Je(e),d=Ce("Tabs","-tabs",m0,o0,e,l),c=r.ref(null),f=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),h=r.ref(null),x=r.ref(!0),w=r.ref(!0),g=Tr(e,["labelSize","size"]),P=Tr(e,["activeName","value"]),L=r.ref((o=(n=P.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&o!==void 0?o:t.default?(a=(i=zn(t.default())[0])===null||i===void 0?void 0:i.props)===null||a===void 0?void 0:a.name:null),$=St(P,L),k={id:0},_=r.computed(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});r.watch($,()=>{k.id=0,I(),D()});function b(){var B;const{value:A}=$;return A===null?null:(B=c.value)===null||B===void 0?void 0:B.querySelector(`[data-name="${A}"]`)}function S(B){if(e.type==="card")return;const{value:A}=f;if(!A)return;const K=A.style.opacity==="0";if(B){const z=`${l.value}-tabs-bar--disabled`,{barWidth:C,placement:E}=e;if(B.dataset.disabled==="true"?A.classList.add(z):A.classList.remove(z),["top","bottom"].includes(E)){if(F(["top","maxHeight","height"]),typeof C=="number"&&B.offsetWidth>=C){const re=Math.floor((B.offsetWidth-C)/2)+B.offsetLeft;A.style.left=`${re}px`,A.style.maxWidth=`${C}px`}else A.style.left=`${B.offsetLeft}px`,A.style.maxWidth=`${B.offsetWidth}px`;A.style.width="8192px",K&&(A.style.transition="none"),A.offsetWidth,K&&(A.style.transition="",A.style.opacity="1")}else{if(F(["left","maxWidth","width"]),typeof C=="number"&&B.offsetHeight>=C){const re=Math.floor((B.offsetHeight-C)/2)+B.offsetTop;A.style.top=`${re}px`,A.style.maxHeight=`${C}px`}else A.style.top=`${B.offsetTop}px`,A.style.maxHeight=`${B.offsetHeight}px`;A.style.height="8192px",K&&(A.style.transition="none"),A.offsetHeight,K&&(A.style.transition="",A.style.opacity="1")}}}function M(){if(e.type==="card")return;const{value:B}=f;B&&(B.style.opacity="0")}function F(B){const{value:A}=f;if(A)for(const K of B)A.style[K]=""}function I(){if(e.type==="card")return;const B=b();B?S(B):M()}function D(){var B;const A=(B=m.value)===null||B===void 0?void 0:B.$el;if(!A)return;const K=b();if(!K)return;const{scrollLeft:z,offsetWidth:C}=A,{offsetLeft:E,offsetWidth:re}=K;z>E?A.scrollTo({top:0,left:E,behavior:"smooth"}):E+re>z+C&&A.scrollTo({top:0,left:E+re-C,behavior:"smooth"})}const j=r.ref(null);let Q=0,N=null;function Z(B){const A=j.value;if(A){Q=B.getBoundingClientRect().height;const K=`${Q}px`,z=()=>{A.style.height=K,A.style.maxHeight=K};N?(z(),N(),N=null):N=z}}function q(B){const A=j.value;if(A){const K=B.getBoundingClientRect().height,z=()=>{document.body.offsetHeight,A.style.maxHeight=`${K}px`,A.style.height=`${Math.max(Q,K)}px`};N?(N(),N=null,z()):N=z}}function Y(){const B=j.value;if(B){B.style.maxHeight="",B.style.height="";const{paneWrapperStyle:A}=e;if(typeof A=="string")B.style.cssText=A;else if(A){const{maxHeight:K,height:z}=A;K!==void 0&&(B.style.maxHeight=K),z!==void 0&&(B.style.height=z)}}}const le={value:[]},ie=r.ref("next");function ce(B){const A=$.value;let K="next";for(const z of le.value){if(z===A)break;if(z===B){K="prev";break}}ie.value=K,U(B)}function U(B){const{onActiveNameChange:A,onUpdateValue:K,"onUpdate:value":z}=e;A&&he(A,B),K&&he(K,B),z&&he(z,B),L.value=B}function te(B){const{onClose:A}=e;A&&he(A,B)}function ve(){const{value:B}=f;if(!B)return;const A="transition-disabled";B.classList.add(A),I(),B.classList.remove(A)}const ye=r.ref(null);function oe({transitionDisabled:B}){const A=c.value;if(!A)return;B&&A.classList.add("transition-disabled");const K=b();K&&ye.value&&(ye.value.style.width=`${K.offsetWidth}px`,ye.value.style.height=`${K.offsetHeight}px`,ye.value.style.transform=`translateX(${K.offsetLeft-rt(getComputedStyle(A).paddingLeft)}px)`,B&&ye.value.offsetWidth),B&&A.classList.remove("transition-disabled")}r.watch([$],()=>{e.type==="segment"&&r.nextTick(()=>{oe({transitionDisabled:!1})})}),r.onMounted(()=>{e.type==="segment"&&oe({transitionDisabled:!0})});let Se=0;function we(B){var A;if(B.contentRect.width===0&&B.contentRect.height===0||Se===B.contentRect.width)return;Se=B.contentRect.width;const{type:K}=e;if((K==="line"||K==="bar")&&ve(),K!=="segment"){const{placement:z}=e;De((z==="top"||z==="bottom"?(A=m.value)===null||A===void 0?void 0:A.$el:h.value)||null)}}const se=ii(we,64);r.watch([()=>e.justifyContent,()=>e.size],()=>{r.nextTick(()=>{const{type:B}=e;(B==="line"||B==="bar")&&ve()})});const _e=r.ref(!1);function Re(B){var A;const{target:K,contentRect:{width:z}}=B,C=K.parentElement.offsetWidth;if(!_e.value)C<z&&(_e.value=!0);else{const{value:E}=p;if(!E)return;C-z>E.$el.offsetWidth&&(_e.value=!1)}De(((A=m.value)===null||A===void 0?void 0:A.$el)||null)}const He=ii(Re,64);function Ie(){const{onAdd:B}=e;B&&B(),r.nextTick(()=>{const A=b(),{value:K}=m;!A||!K||K.scrollTo({left:A.offsetLeft,top:0,behavior:"smooth"})})}function De(B){if(!B)return;const{placement:A}=e;if(A==="top"||A==="bottom"){const{scrollLeft:K,scrollWidth:z,offsetWidth:C}=B;x.value=K<=0,w.value=K+C>=z}else{const{scrollTop:K,scrollHeight:z,offsetHeight:C}=B;x.value=K<=0,w.value=K+C>=z}}const Ue=ii(B=>{De(B.target)},64);r.provide(ki,{triggerRef:r.toRef(e,"trigger"),tabStyleRef:r.toRef(e,"tabStyle"),tabClassRef:r.toRef(e,"tabClass"),addTabStyleRef:r.toRef(e,"addTabStyle"),addTabClassRef:r.toRef(e,"addTabClass"),paneClassRef:r.toRef(e,"paneClass"),paneStyleRef:r.toRef(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:r.toRef(e,"type"),closableRef:r.toRef(e,"closable"),valueRef:$,tabChangeIdRef:k,onBeforeLeaveRef:r.toRef(e,"onBeforeLeave"),activateTab:ce,handleClose:te,handleAdd:Ie}),ia(()=>{I(),D()}),r.watchEffect(()=>{const{value:B}=u;if(!B)return;const{value:A}=l,K=`${A}-tabs-nav-scroll-wrapper--shadow-start`,z=`${A}-tabs-nav-scroll-wrapper--shadow-end`;x.value?B.classList.remove(K):B.classList.add(K),w.value?B.classList.remove(z):B.classList.add(z)});const ke={syncBarPosition:()=>{I()}},X=()=>{oe({transitionDisabled:!0})},O=r.computed(()=>{const{value:B}=g,{type:A}=e,K={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[A],z=`${B}${K}`,{self:{barColor:C,closeIconColor:E,closeIconColorHover:re,closeIconColorPressed:xe,tabColor:ze,tabBorderColor:Ne,paneTextColor:Oe,tabFontWeight:Be,tabBorderRadius:Ke,tabFontWeightActive:lt,colorSegment:Ye,fontWeightStrong:it,tabColorSegment:v,closeSize:H,closeIconSize:J,closeColorHover:ae,closeColorPressed:de,closeBorderRadius:ue,[ee("panePadding",B)]:fe,[ee("tabPadding",z)]:ge,[ee("tabPaddingVertical",z)]:Te,[ee("tabGap",z)]:ct,[ee("tabGap",`${z}Vertical`)]:qt,[ee("tabTextColor",A)]:yn,[ee("tabTextColorActive",A)]:Yt,[ee("tabTextColorHover",A)]:Zt,[ee("tabTextColorDisabled",A)]:hr,[ee("tabFontSize",B)]:pr},common:{cubicBezierEaseInOut:Vn}}=d.value;return{"--n-bezier":Vn,"--n-color-segment":Ye,"--n-bar-color":C,"--n-tab-font-size":pr,"--n-tab-text-color":yn,"--n-tab-text-color-active":Yt,"--n-tab-text-color-disabled":hr,"--n-tab-text-color-hover":Zt,"--n-pane-text-color":Oe,"--n-tab-border-color":Ne,"--n-tab-border-radius":Ke,"--n-close-size":H,"--n-close-icon-size":J,"--n-close-color-hover":ae,"--n-close-color-pressed":de,"--n-close-border-radius":ue,"--n-close-icon-color":E,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":xe,"--n-tab-color":ze,"--n-tab-font-weight":Be,"--n-tab-font-weight-active":lt,"--n-tab-padding":ge,"--n-tab-padding-vertical":Te,"--n-tab-gap":ct,"--n-tab-gap-vertical":qt,"--n-pane-padding-left":st(fe,"left"),"--n-pane-padding-right":st(fe,"right"),"--n-pane-padding-top":st(fe,"top"),"--n-pane-padding-bottom":st(fe,"bottom"),"--n-font-weight-strong":it,"--n-tab-color-segment":v}}),ne=s?tt("tabs",r.computed(()=>`${g.value[0]}${e.type[0]}`),O,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:ye,tabsPaneWrapperRef:j,tabsElRef:c,barElRef:f,addTabInstRef:p,xScrollInstRef:m,scrollWrapperElRef:u,addTabFixed:_e,tabWrapperStyle:_,handleNavResize:se,mergedSize:g,handleScroll:Ue,handleTabsResize:He,cssVars:s?void 0:O,themeClass:ne==null?void 0:ne.themeClass,animationDirection:ie,renderNameListRef:le,yScrollElRef:h,handleSegmentResize:X,onAnimationBeforeLeave:Z,onAnimationEnter:q,onAnimationAfterEnter:Y,onRender:ne==null?void 0:ne.onRender},ke)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:o,addable:i,mergedSize:a,renderNameListRef:l,onRender:s,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:f,prefix:u,suffix:p}}=this;s==null||s();const m=f?zn(f()).filter(k=>k.type.__TAB_PANE__===!0):[],h=f?zn(f()).filter(k=>k.type.__TAB__===!0):[],x=!h.length,w=t==="card",g=t==="segment",P=!w&&!g&&this.justifyContent;l.value=[];const L=()=>{const k=r.h("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},P?null:r.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),x?m.map((_,b)=>(l.value.push(_.props.name),Ti(r.h(zi,Object.assign({},_.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!P||P==="center"||P==="start"||P==="end")}),_.children?{default:_.children.tab}:void 0)))):h.map((_,b)=>(l.value.push(_.props.name),Ti(b!==0&&!P?Bs(_):_))),!o&&i&&w?Es(i,(x?m.length:h.length)!==0):null,P?null:r.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return r.h("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},w&&i?r.h(Wt,{onResize:this.handleTabsResize},{default:()=>k}):k,w?r.h("div",{class:`${e}-tabs-pad`}):null,w?null:r.h("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=g?"top":n;return r.h("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,P&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},r.h("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},Ae(u,k=>k&&r.h("div",{class:`${e}-tabs-nav__prefix`},k)),g?r.h(Wt,{onResize:this.handleSegmentResize},{default:()=>r.h("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},r.h("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},r.h("div",{class:`${e}-tabs-wrapper`},r.h("div",{class:`${e}-tabs-tab`}))),x?m.map((k,_)=>(l.value.push(k.props.name),r.h(zi,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:_!==0}),k.children?{default:k.children.tab}:void 0))):h.map((k,_)=>(l.value.push(k.props.name),_===0?k:Bs(k))))}):r.h(Wt,{onResize:this.handleNavResize},{default:()=>r.h("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?r.h(_c,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:L}):r.h("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},L()))}),o&&i&&w?Es(i,!0):null,Ae(p,k=>k&&r.h("div",{class:`${e}-tabs-nav__suffix`},k))),x&&(this.animated&&($==="top"||$==="bottom")?r.h("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Rs(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Rs(m,this.mergedValue,this.renderedNames)))}});function Rs(e,t,n,o,i,a,l){const s=[];return e.forEach(d=>{const{name:c,displayDirective:f,"display-directive":u}=d.props,p=h=>f===h||u===h,m=t===c;if(d.key!==void 0&&(d.key=c),m||p("show")||p("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const h=!p("if");s.push(h?r.withDirectives(d,[[r.vShow,m]]):d)}}),l?r.h(r.TransitionGroup,{name:`${l}-transition`,onBeforeLeave:o,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Es(e,t){return r.h(zi,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Bs(e){const t=r.cloneVNode(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Ti(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}async function Ms(e,t,n){try{const{data:o}=await Qt().POST("/api/visualizations",{type:e,title:t,config:n});return o.id}catch(o){Sn(o)}}async function y0(e,t,n,o){try{if(t)await _s(t,n,o);else return await Ms(e,n,o)}catch(i){Sn(i)}}async function _s(e,t,n){try{await Qt().PUT(`/api/visualizations/${e}`,{title:t,config:n})}catch(o){Sn(o)}}function Is(e){const t={};return e&&e.forEach(n=>{n.name?t[n.name]=n.value??null:console.debug("Warning: Detected input element with no name.")}),t}const w0={key:2,class:"border border-dotted border-green-600 rounded mt-2 p-2"},C0=r.defineComponent({__name:"InputConditional",props:r.mergeModels({datasetId:{},input:{}},{value:{},valueModifiers:{}}),emits:r.mergeModels(["update:value"],["update:value"]),setup(e,{emit:t}){const n=e,o=t;if(!n.input.test_param)throw`The conditional '${n.input.name}' is missing a test parameter.`;if(!n.input.cases||n.input.cases.length===0)throw`The conditional '${n.input.name}' is missing a cases.`;const i=r.ref(n.input.test_param),a=i.value.name;a||console.error(`Test parameter has no name: ${n.input.name}.`);const l=r.useModel(e,"value");(!l.value||!(a in l.value))&&console.error(`Test parameter of conditional not available: ${n.input.name}.`,l.value);const s=r.ref(p()),d=r.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const x of n.input.cases)h[x.value]=Is(x.inputs),h[x.value][a]=x.value;return h}),c=r.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const x of n.input.cases)h[x.value]=x.inputs;return h}),f=r.computed(()=>c.value[s.value]),u=r.computed({get(){return s.value==="true"},set(h){s.value=String(h)}});function p(){return l.value&&l.value[a]}function m(h){let x={...d.value[s.value]};if(h){const w={};f.value.forEach(g=>{w[g.name]=h[g.name]}),x={...x,...h}}o("update:value",x)}return r.watch(()=>l.value,()=>{s.value=p()}),r.watch(()=>s.value,()=>{m()}),(h,x)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[i.value.type==="boolean"?(r.openBlock(),r.createBlock(r.unref(zs),{key:0,value:u.value,"onUpdate:value":x[0]||(x[0]=w=>u.value=w)},null,8,["value"])):(r.openBlock(),r.createBlock(r.unref(oo),{key:1,value:s.value,"onUpdate:value":x[1]||(x[1]=w=>s.value=w),options:i.value.data},null,8,["value","options"])),f.value?(r.openBlock(),r.createElementBlock("div",w0,[r.createVNode(Pi,{"dataset-id":h.datasetId,inputs:f.value,values:l.value,"onUpdate:values":m},null,8,["dataset-id","inputs","values"])])):r.createCommentVNode("",!0)],64))}}),S0={key:0,class:"mb-1"},$0={key:1,class:"text-red-600 mb-1"},k0=100,z0=r.defineComponent({__name:"InputData",props:r.mergeModels({extension:{},optional:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=r.ref([]),o=r.useModel(e,"value"),i=r.ref(!1),a=r.ref(null);async function l(d){i.value=!0;try{const c=t.extension?`q=extension-eq&qv=${t.extension}`:"",f=d?`q=name-contains&qv=${d}`:"",{data:u}=await Qt().GET(`/api/datasets?limit=${k0}&${c}&${f}`);if(u&&u.length>0){const p=u.map(m=>({label:m.name,value:{id:m.id,name:m.name}}));p.push({label:"...filter for more",value:null,disabled:!0}),t.optional&&p.unshift({label:"-- Clear Selection --",value:null}),n.value=p}}catch(c){console.log(c)}finally{i.value=!1}}function s(){o.value=a.value,a.value=null}return l(),(d,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[o.value?(r.openBlock(),r.createElementBlock("div",S0,[r.createVNode(r.unref(mt),{class:"size-3 mr-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Li))]),_:1}),r.createElementVNode("span",null,"Selected: "+r.toDisplayString(o.value.name),1)])):d.optional?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$0,[r.createVNode(r.unref(mt),{class:"size-3 mr-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Hi))]),_:1}),c[1]||(c[1]=r.createElementVNode("span",null,"Please select a dataset.",-1))])),r.createVNode(r.unref(oo),{value:a.value,"onUpdate:value":[c[0]||(c[0]=f=>a.value=f),s],filterable:"",placeholder:"Select a Dataset",loading:i.value,options:n.value,onSearch:l},null,8,["value","loading","options"])],64))}});function T0(e,t,n,o){const i=[];t&&i.push({label:"Column: Default",value:"auto"});const a=e.metadata_column_types;for(const l in a)(o&&["int","float"].includes(a[l])||n&&a[l]==="str"||!o&&!n)&&i.push({label:"Column: "+(parseInt(l)+1),value:l});return i}const P0=r.defineComponent({__name:"InputDataColumn",props:r.mergeModels({datasetId:{},isAuto:{type:Boolean},isText:{type:Boolean},isNumber:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=r.ref([]),o=r.useModel(e,"value");async function i(){if(t.datasetId)try{const{data:l}=await Qt().GET(`/api/datasets/${t.datasetId}`),s=T0(l,t.isAuto,t.isText,t.isNumber);n.value=s,a()}catch(l){console.log(l)}else console.log("Data column selector disabled, since `datasetId` is unavailable.")}function a(){n.value.length>0&&o.value===null&&(o.value=n.value[0].value)}return i(),r.watch(()=>o.value,()=>a()),(l,s)=>l.datasetId?(r.openBlock(),r.createBlock(r.unref(oo),{key:0,value:o.value,"onUpdate:value":s[0]||(s[0]=d=>o.value=d),options:n.value},null,8,["value","options"])):(r.openBlock(),r.createBlock(r.unref(Fn),{key:1,value:o.value,"onUpdate:value":s[1]||(s[1]=d=>o.value=d)},null,8,["value"]))}});function fr(e){return String(e).toLowerCase()==="true"}const R0={class:"overflow-auto select-none"},E0={class:"font-bold mb-1"},B0={key:0,class:"text-xs mb-1"},M0={key:5},Os=.01,Pi=r.defineComponent({__name:"InputForm",props:{datasetId:{},inputs:{},values:{}},emits:["update:values"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(a());function a(){const s={...n.values};return n.inputs.forEach(d=>{s[d.name]===void 0&&(s[d.name]=null)}),s}function l(){o("update:values",i.value)}return r.watch(()=>n.values,()=>{i.value=a()}),(s,d)=>(r.openBlock(),r.createElementBlock("div",R0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.inputs,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,class:"mb-2"},[r.createElementVNode("div",E0,r.toDisplayString(c.label||c.name),1),c.help?(r.openBlock(),r.createElementBlock("div",B0,r.toDisplayString(c.help),1)):r.createCommentVNode("",!0),r.createElementVNode("div",null,[c.type==="boolean"?(r.openBlock(),r.createBlock(r.unref(zs),{key:0,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[0]||(d[0]=u=>l())]},null,8,["value","onUpdate:value"])):c.type==="color"?(r.openBlock(),r.createBlock(r.unref(Ov),{key:1,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[1]||(d[1]=u=>l())],modes:["hex"],"show-alpha":!1},null,8,["value","onUpdate:value"])):c.type==="conditional"?(r.openBlock(),r.createBlock(C0,{key:2,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[2]||(d[2]=u=>l())],"dataset-id":s.datasetId,input:c},null,8,["value","onUpdate:value","dataset-id","input"])):c.type==="data"?(r.openBlock(),r.createBlock(z0,{key:3,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[3]||(d[3]=u=>l())],extension:c.extension,optional:r.unref(fr)(c.optional)},null,8,["value","onUpdate:value","extension","optional"])):c.type==="data_column"?(r.openBlock(),r.createBlock(P0,{key:4,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[4]||(d[4]=u=>l())],"dataset-id":s.datasetId,"is-auto":r.unref(fr)(c.is_auto),"is-text":r.unref(fr)(c.is_text),"is-number":r.unref(fr)(c.is_number)},null,8,["value","onUpdate:value","dataset-id","is-auto","is-text","is-number"])):c.type==="float"?(r.openBlock(),r.createElementBlock("div",M0,[c.min!==void 0&&c.max!==void 0?(r.openBlock(),r.createBlock(r.unref(h0),{key:0,class:"mb-2",value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[5]||(d[5]=u=>l())],min:Number(c.min),max:Number(c.max),step:Os},null,8,["value","onUpdate:value","min","max"])):r.createCommentVNode("",!0),r.createVNode(r.unref(d0),{value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[6]||(d[6]=u=>l())],size:"small",min:Number(c.min),max:Number(c.max),step:Os},null,8,["value","onUpdate:value","min","max"])])):c.type==="select"?(r.openBlock(),r.createBlock(r.unref(oo),{key:6,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[7]||(d[7]=u=>l())],options:c.data},null,8,["value","onUpdate:value","options"])):c.type==="textarea"?(r.openBlock(),r.createBlock(r.unref(Fn),{key:7,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[8]||(d[8]=u=>l())],rows:Number(c.rows),type:"textarea"},null,8,["value","onUpdate:value","rows"])):(r.openBlock(),r.createBlock(r.unref(Fn),{key:8,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[9]||(d[9]=u=>l())]},null,8,["value","onUpdate:value"]))])]))),128))]))}}),_0={class:"border border-dotted border-green-600 rounded p-2"},I0={class:"flex text-green-600 my-1"},O0={class:"mx-1"},A0=r.defineComponent({__name:"InputRepeats",props:{datasetId:{},inputs:{},valuesArray:{}},emits:["update:values-array"],setup(e,{emit:t}){const n=e,o=t,i=r.computed(()=>Is(n.inputs));function a(){const d=[...n.valuesArray];d.unshift(i.value),o("update:values-array",d)}function l(d){const c=[...n.valuesArray];c.splice(d,1),o("update:values-array",c)}function s(d,c){const f=[...n.valuesArray];f[d]={...c},o("update:values-array",f)}return(d,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(Pt),{size:"tiny",type:"primary",onClick:a},{default:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(js))]),_:1}),c[0]||(c[0]=r.createElementVNode("span",{class:"mx-1"},"Add New Track",-1))]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.valuesArray,(f,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,class:"my-2"},[r.createElementVNode("div",_0,[r.createVNode(Pi,{"dataset-id":d.datasetId,inputs:d.inputs,values:f,"onUpdate:values":p=>s(u,p)},null,8,["dataset-id","inputs","values","onUpdate:values"]),r.createElementVNode("div",I0,[r.createVNode(r.unref(Pt),{class:"text-green-600 w-full",size:"tiny",round:"",disabled:d.valuesArray.length<=1,onClick:p=>l(u)},{default:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Gs))]),_:1}),r.createElementVNode("span",O0,"Remove Track "+r.toDisplayString(d.valuesArray.length-u),1)]),_:2},1032,["disabled","onClick"])])])]))),128))],64))}}),F0=2e3,D0=r.defineComponent({__name:"AlertNotify",props:{message:{},messageType:{default:"info"}},emits:["timeout"],setup(e,{emit:t}){const n=e,o=t;let i=null;return r.watch(()=>n.message,()=>{i&&clearTimeout(i),i=setTimeout(()=>o("timeout"),F0)}),(a,l)=>a.message?(r.openBlock(),r.createBlock(r.unref(hs),{key:0,type:a.messageType,class:"m-4"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(a.message),1)]),_:1},8,["type"])):r.createCommentVNode("",!0)}}),V0={class:"text-xs"},L0=r.defineComponent({__name:"ApiStatus",setup(e){const t=r.ref("...");async function n(){try{const{data:o}=await Qt().GET("/api/version");t.value=o.version_major}catch{console.log("Unable to connect to Galaxy. Verify Galaxy is running and refer to docs."),t.value=""}}return n(),(o,i)=>t.value?(r.openBlock(),r.createBlock(r.unref(cr),{key:0,class:"mx-1",trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(mt),{class:"mx-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Li),{class:"text-green-600"})]),_:1})]),default:r.withCtx(()=>[r.createElementVNode("span",V0,"Connected to Galaxy Version "+r.toDisplayString(t.value)+".",1)]),_:1})):(r.openBlock(),r.createBlock(r.unref(cr),{key:1,class:"mx-1",trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(mt),{class:"mx-1"},{default:r.withCtx(()=>[r.createVNode(r.unref(Hi),{class:"text-red-600"})]),_:1})]),default:r.withCtx(()=>[i[0]||(i[0]=r.createElementVNode("span",{class:"text-xs"},"Galaxy is not accessible!",-1))]),_:1}))}}),H0={class:"overflow-auto select-none bg-white z-10"},N0={key:0,class:"flex m-2"},W0={class:"flex-1 font-thin text-lg mt-1"},j0={class:"m-2 p-2 bg-sky-50 text-sky-900 rounded"},U0={class:"flex"},G0={class:"flex justify-center center-items"},K0={class:"m-2"},X0=["src"],q0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 100 100",class:"size-14"},Y0={class:"overflow-hidden break-words p-1"},Z0={class:"font-bold"},J0=["innerHTML"],Q0={class:"m-2"},ex=r.defineComponent({__name:"SidePanel",props:{datasetId:{},datasetUrl:{},description:{},logoUrl:{},html:{},name:{},settingInputs:{},settingValues:{},trackInputs:{},trackValues:{},visualizationId:{},visualizationTitle:{}},emits:["update:tracks","update:settings","update:visualization-id","update:visualization-title","toggle"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(""),a=r.ref("info"),l=r.computed(()=>n.settingInputs.length===0||n.trackInputs.length===0);async function s(){try{if(n.visualizationId)await _s(n.visualizationId,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues}),i.value="Successfully saved.",a.value="success";else{const u=await Ms(n.name,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues});u?(i.value="Successfully created.",a.value="success",o("update:visualization-id",u)):(i.value="Something went wrong.",a.value="error")}}catch(u){i.value=Oi(u),a.value="error"}}function d(u){o("update:settings",u)}function c(u){o("update:tracks",u)}function f(u){o("update:visualization-title",u)}return(u,p)=>(r.openBlock(),r.createElementBlock("div",H0,[u.datasetUrl?(r.openBlock(),r.createElementBlock("div",N0,[r.createElementVNode("div",W0,[p[2]||(p[2]=r.createElementVNode("span",null,"Charts",-1)),r.createVNode(L0)]),r.createElementVNode("div",null,[u.datasetId?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(cr),{key:0,trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100 mr-2",onClick:s},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Ws))]),_:1})]),_:1})]),default:r.withCtx(()=>[p[3]||(p[3]=r.createElementVNode("span",{class:"text-xs"},"Save",-1))]),_:1})),r.createVNode(r.unref(cr),{trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100",onClick:p[0]||(p[0]=m=>o("toggle"))},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Ns))]),_:1})]),_:1})]),default:r.withCtx(()=>[p[4]||(p[4]=r.createElementVNode("span",{class:"text-xs"},"Collapse",-1))]),_:1})])])):r.createCommentVNode("",!0),r.createVNode(D0,{message:i.value,"message-type":a.value,onTimeout:p[1]||(p[1]=m=>i.value=""),class:"m-2"},null,8,["message","message-type"]),r.createElementVNode("div",j0,[r.createElementVNode("div",U0,[r.createElementVNode("div",G0,[r.createElementVNode("div",K0,[n.logoUrl?(r.openBlock(),r.createElementBlock("img",{key:0,src:n.logoUrl,class:"min-w-14 max-w-14 object-contain"},null,8,X0)):(r.openBlock(),r.createElementBlock("svg",q0,p[5]||(p[5]=[r.createElementVNode("circle",{cx:"50",cy:"50",r:"45",stroke:"#E30A17","stroke-width":"5"},null,-1),r.createElementVNode("path",{d:"M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",fill:"#E30A17"},null,-1)])))])]),r.createElementVNode("div",Y0,[r.createElementVNode("span",Z0,r.toDisplayString(u.html),1),r.createElementVNode("div",{class:"text-xs",innerHTML:u.description},null,8,J0)])])]),r.createElementVNode("div",Q0,[p[6]||(p[6]=r.createElementVNode("div",{class:"font-bold"},"Title",-1)),p[7]||(p[7]=r.createElementVNode("div",{class:"text-xs py-1"},"Specify a visualization title.",-1)),r.createVNode(r.unref(Fn),{value:u.visualizationTitle,onInput:f},null,8,["value"])]),r.createVNode(r.unref(x0),{type:"line",animated:"",class:"px-2","tab-class":l.value?"!hidden":""},{default:r.withCtx(()=>[u.trackInputs.length>0?(r.openBlock(),r.createBlock(r.unref(Ps),{key:0,name:"tracks"},{tab:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Us))]),_:1}),p[8]||(p[8]=r.createElementVNode("span",{class:"mx-1"},"Tracks",-1))]),default:r.withCtx(()=>[r.createVNode(A0,{"dataset-id":u.datasetId,inputs:u.trackInputs,"values-array":u.trackValues,"onUpdate:valuesArray":c},null,8,["dataset-id","inputs","values-array"])]),_:1})):r.createCommentVNode("",!0),u.settingInputs.length>0?(r.openBlock(),r.createBlock(r.unref(Ps),{key:1,name:"settings"},{tab:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Vs))]),_:1}),p[9]||(p[9]=r.createElementVNode("span",{class:"mx-1"},"Settings",-1))]),default:r.withCtx(()=>[r.createVNode(Pi,{"dataset-id":u.datasetId,inputs:u.settingInputs,values:u.settingValues,"onUpdate:values":d},null,8,["dataset-id","inputs","values"])]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["tab-class"])]))}});async function tx(e,t={}){const n=Ri(e.settings,t.settings),o=e.specs,i=ox(e.tracks,t.tracks);return{plugin:e,settings:n,specs:o,tracks:i}}function nx(e,t){let n=t??e.value;return e.type==="float"?n=Number(n):e.type==="boolean"&&(n=fr(n)),n}function rx(e,t={}){var i,a,l;const n=t,o=(i=e.test_param)==null?void 0:i.name;if(!o)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[o]??((a=e.test_param)==null?void 0:a.value);for(const d of e.cases||[])d.value===s&&(n[o]=s,(l=d.inputs)!=null&&l.length&&Ri(d.inputs,n))}return n}function Ri(e,t){const n=t||{};return e==null||e.forEach(o=>{o.type==="conditional"?n[o.name]=rx(o,n[o.name]):n[o.name]=nx(o,n[o.name])}),n}function ox(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((o,i)=>{n[i]=Ri(e,o)})),n}function ix(e,t="app"){if(e===void 0){const s=document.getElementById(t);if(!s)throw new Error(`Container element '${t}' not found.`);e=JSON.parse((s==null?void 0:s.getAttribute("data-incoming"))||"{}")}const n=(e==null?void 0:e.root)??"/",o=(e==null?void 0:e.visualization_config)??{},i=(e==null?void 0:e.visualization_id)??null,a=(e==null?void 0:e.visualization_plugin)??{},l=(e==null?void 0:e.visualization_title)??"Unnamed Visualization";return{root:n,visualizationConfig:o,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}}const ax={key:1,class:"m-2"},lx={key:0,class:"relative max-w-full h-screen overflow-hidden"},sx=r.defineComponent({__name:"GalaxyCharts",props:{container:{},credentials:{},incoming:{}},setup(e){const t=e,{root:n,visualizationConfig:o,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}=ix(t.incoming,t.container),s=r.ref(!0),d=r.ref(""),c=r.ref(""),f=r.ref(""),u=r.ref(!0),p=r.ref(""),m=r.ref(""),h=r.ref([]),x=r.ref({}),w=r.ref({}),g=r.ref([]),P=r.ref([]),L=r.ref(i),$=r.ref(l),k=Di();k.setCredentials(t.credentials||"include"),k.setRoot(n||"/"),tx(a,o).then(({plugin:Y,settings:le,specs:ie,tracks:ce})=>{d.value=Y.description||"",f.value=Y.html||"",u.value=!1,p.value=Y.logo||"",m.value=Y.name||"",h.value=Y.settings||[],x.value=le,w.value=ie||{},g.value=Y.tracks||[],P.value=ce});const _=r.computed(()=>o.dataset_id||""),b=r.computed(()=>o.dataset_url?(console.debug(`GalaxyCharts: Evaluating dataset url: ${o.dataset_url}.`),o.dataset_url):_.value?(console.debug(`GalaxyCharts: Built dataset url from dataset id: ${_.value}.`),Fs(n,_.value)):""),S=r.computed(()=>p.value&&`${n}${p.value}`),M=r.computed(()=>h.value.length===0&&g.value.length===0);async function F(){s.value=!s.value,await r.nextTick(),window?window.dispatchEvent(new Event("resize")):console.warn("window unavailable.")}function I(){try{window.postMessage({container:t.container,from:"galaxy-visualization",visualization_config:JSON.parse(JSON.stringify(D())),visualization_id:L.value,visualization_title:$.value},"*")}catch(Y){c.value=`Failed to postMessage: ${Y}`}}function D(){return{dataset_id:_.value,dataset_url:b.value,settings:x.value,tracks:P.value}}function j(Y){x.value={...Y},I()}function Q(Y){P.value=[...Y],I()}function N(Y){L.value=Y,I()}function Z(Y){$.value=Y,I()}async function q(Y){j({...x.value,...Y});try{const le=await y0(m.value,L.value,$.value,D());le&&N(le)}catch(le){c.value=`Failed to save: ${le}`}}return(Y,le)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(r.unref(hs),{key:0,type:"error",class:"m-2"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.value),1)]),_:1})):r.createCommentVNode("",!0),u.value?(r.openBlock(),r.createElementBlock("div",ax,[r.createElementVNode("span",null,[r.createVNode(r.unref(Ls),{class:"animate-spin size-4 inline mx-1"})]),le[0]||(le[0]=r.createElementVNode("span",{class:"text-xs"},"Please wait...",-1))])):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["grid h-screen",{"grid-cols-[1fr_17rem]":!s.value&&!M.value&&b.value}])},[b.value?(r.openBlock(),r.createElementBlock("div",lx,[r.renderSlot(Y.$slots,"default",{datasetId:_.value,datasetUrl:b.value,root:r.unref(n),settings:x.value,specs:w.value,tracks:P.value,save:q})])):r.createCommentVNode("",!0),s.value&&!M.value&&b.value?(r.openBlock(),r.createBlock(r.unref(cr),{key:1,trigger:"hover",to:!1},{trigger:r.withCtx(()=>[r.createVNode(r.unref(Pt),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-2 absolute right-0",onClick:F},{icon:r.withCtx(()=>[r.createVNode(r.unref(mt),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Hs))]),_:1})]),_:1})]),default:r.withCtx(()=>[le[1]||(le[1]=r.createElementVNode("span",{class:"text-xs"},"Expand",-1))]),_:1})):r.createCommentVNode("",!0),r.withDirectives(r.createVNode(ex,{"dataset-id":_.value,"dataset-url":b.value,description:d.value,html:f.value,"logo-url":S.value,name:m.value,"setting-inputs":h.value,"setting-values":x.value,"track-inputs":g.value,"track-values":P.value,"visualization-id":L.value,"visualization-title":$.value,"onUpdate:settings":j,"onUpdate:tracks":Q,"onUpdate:visualizationId":N,"onUpdate:visualizationTitle":Z,onToggle:F},null,8,["dataset-id","dataset-url","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]),[[r.vShow,!s.value&&!M.value||!b.value]])],2))],64))}});We.GalaxyApi=Qt,We.GalaxyCharts=sx,We.useColumnsStore=Ds,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})});
|