@elmethis/core 1.0.0-alpha.78 → 1.0.0-alpha.79
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/{Bash-CVGwAt0l.js → Bash-CsnDT01F.js} +1 -1
- package/dist/{C-BXmRg8wa.js → C-DLpPkbWy.js} +1 -1
- package/dist/{Cpp-CA2xvblY.js → Cpp-Kcxqyr3J.js} +1 -1
- package/dist/{Csharp-EdHTdZBd.js → Csharp-C51wMsoZ.js} +1 -1
- package/dist/{Css-BX_AX3Lk.js → Css-o7IoSKC0.js} +1 -1
- package/dist/{Go-CvGMqtJT.js → Go-Dywf6Guj.js} +1 -1
- package/dist/{Html-D1N87DiR.js → Html-hp3-xFB4.js} +1 -1
- package/dist/{Java-equAOM-S.js → Java-ASdG0_J-.js} +1 -1
- package/dist/{JavaScript-Dcy8EM05.js → JavaScript-CZO2404F.js} +1 -1
- package/dist/{Json-CkbW-pY9.js → Json-1P1Re0lu.js} +1 -1
- package/dist/{Kotlin-c3v2oxY5.js → Kotlin-8ghZrYcj.js} +1 -1
- package/dist/{Lua-Dgk8tFMm.js → Lua-DqjEuLfl.js} +1 -1
- package/dist/{Npm-CE-FZi-1.js → Npm-BsY-9UXK.js} +1 -1
- package/dist/{Python-DuAuFF5b.js → Python-DUHF75vr.js} +1 -1
- package/dist/{Rust-CjP9Kdui.js → Rust-2bgykmm-.js} +1 -1
- package/dist/{Sql-PCcIaoTQ.js → Sql-VzEMx3bm.js} +1 -1
- package/dist/{Terraform-RgDzn5JH.js → Terraform-DTTCHKiQ.js} +1 -1
- package/dist/{TypeScript-ClOmfnBY.js → TypeScript-Cyyy2weB.js} +1 -1
- package/dist/elmethis.js +2 -2
- package/dist/elmethis.umd.cjs +7 -7
- package/dist/{index-NJHMT2k_.js → index-B_ft8LyE.js} +215 -208
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, openBlock as I, createElementBlock as O, normalizeClass as _, normalizeStyle as
|
|
1
|
+
import { defineComponent as G, openBlock as I, createElementBlock as O, normalizeClass as _, normalizeStyle as Y, createElementVNode as L, unref as P, toDisplayString as Ce, ref as U, watch as Ke, createVNode as X, Transition as zt, withCtx as Oe, defineAsyncComponent as Ee, onMounted as qt, nextTick as Zt, onUpdated as Ya, createTextVNode as Kt, getCurrentScope as Zi, onScopeDispose as Ki, readonly as Ji, getCurrentInstance as Xa, isRef as Qi, computed as lt, shallowRef as N0, watchEffect as eo, toRaw as to, renderSlot as Se, createCommentVNode as _e, createBlock as Me, resolveDynamicComponent as xt, mergeModels as nn, useModel as an, Fragment as we, renderList as Tt, h as de, markRaw as oe } from "vue";
|
|
2
2
|
var _r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function ro(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -2122,7 +2122,7 @@ const ao = ["innerHTML"], so = /* @__PURE__ */ G({
|
|
|
2122
2122
|
});
|
|
2123
2123
|
return (t, n) => (I(), O("div", {
|
|
2124
2124
|
class: _(t.$style.tag),
|
|
2125
|
-
style:
|
|
2125
|
+
style: Y({ backgroundColor: t.color })
|
|
2126
2126
|
}, [
|
|
2127
2127
|
L("div", {
|
|
2128
2128
|
class: _(t.$style.icon),
|
|
@@ -2599,109 +2599,109 @@ const Bo = /* @__PURE__ */ G({
|
|
|
2599
2599
|
case "rust":
|
|
2600
2600
|
case "rs":
|
|
2601
2601
|
return Ee({
|
|
2602
|
-
loader: () => import("./Rust-
|
|
2602
|
+
loader: () => import("./Rust-2bgykmm-.js"),
|
|
2603
2603
|
loadingComponent: je
|
|
2604
2604
|
});
|
|
2605
2605
|
case "javascript":
|
|
2606
2606
|
case "js":
|
|
2607
2607
|
return Ee({
|
|
2608
|
-
loader: () => import("./JavaScript-
|
|
2608
|
+
loader: () => import("./JavaScript-CZO2404F.js"),
|
|
2609
2609
|
loadingComponent: je
|
|
2610
2610
|
});
|
|
2611
2611
|
case "typescript":
|
|
2612
2612
|
case "ts":
|
|
2613
2613
|
return Ee({
|
|
2614
|
-
loader: () => import("./TypeScript-
|
|
2614
|
+
loader: () => import("./TypeScript-Cyyy2weB.js"),
|
|
2615
2615
|
loadingComponent: je
|
|
2616
2616
|
});
|
|
2617
2617
|
case "bash":
|
|
2618
2618
|
case "sh":
|
|
2619
2619
|
case "shell":
|
|
2620
2620
|
return Ee({
|
|
2621
|
-
loader: () => import("./Bash-
|
|
2621
|
+
loader: () => import("./Bash-CsnDT01F.js"),
|
|
2622
2622
|
loadingComponent: je
|
|
2623
2623
|
});
|
|
2624
2624
|
case "tf":
|
|
2625
2625
|
case "terraform":
|
|
2626
2626
|
case "hcl":
|
|
2627
2627
|
return Ee({
|
|
2628
|
-
loader: () => import("./Terraform-
|
|
2628
|
+
loader: () => import("./Terraform-DTTCHKiQ.js"),
|
|
2629
2629
|
loadingComponent: je
|
|
2630
2630
|
});
|
|
2631
2631
|
case "html":
|
|
2632
2632
|
return Ee({
|
|
2633
|
-
loader: () => import("./Html-
|
|
2633
|
+
loader: () => import("./Html-hp3-xFB4.js"),
|
|
2634
2634
|
loadingComponent: je
|
|
2635
2635
|
});
|
|
2636
2636
|
case "css":
|
|
2637
2637
|
return Ee({
|
|
2638
|
-
loader: () => import("./Css-
|
|
2638
|
+
loader: () => import("./Css-o7IoSKC0.js"),
|
|
2639
2639
|
loadingComponent: je
|
|
2640
2640
|
});
|
|
2641
2641
|
case "npm":
|
|
2642
2642
|
return Ee({
|
|
2643
|
-
loader: () => import("./Npm-
|
|
2643
|
+
loader: () => import("./Npm-BsY-9UXK.js"),
|
|
2644
2644
|
loadingComponent: je
|
|
2645
2645
|
});
|
|
2646
2646
|
case "java":
|
|
2647
2647
|
return Ee({
|
|
2648
|
-
loader: () => import("./Java-
|
|
2648
|
+
loader: () => import("./Java-ASdG0_J-.js"),
|
|
2649
2649
|
loadingComponent: je
|
|
2650
2650
|
});
|
|
2651
2651
|
case "kotlin":
|
|
2652
2652
|
case "kt":
|
|
2653
2653
|
return Ee({
|
|
2654
|
-
loader: () => import("./Kotlin-
|
|
2654
|
+
loader: () => import("./Kotlin-8ghZrYcj.js"),
|
|
2655
2655
|
loadingComponent: je
|
|
2656
2656
|
});
|
|
2657
2657
|
case "go":
|
|
2658
2658
|
case "golang":
|
|
2659
2659
|
return Ee({
|
|
2660
|
-
loader: () => import("./Go-
|
|
2660
|
+
loader: () => import("./Go-Dywf6Guj.js"),
|
|
2661
2661
|
loadingComponent: je
|
|
2662
2662
|
});
|
|
2663
2663
|
case "python":
|
|
2664
2664
|
case "py":
|
|
2665
2665
|
return Ee({
|
|
2666
|
-
loader: () => import("./Python-
|
|
2666
|
+
loader: () => import("./Python-DUHF75vr.js"),
|
|
2667
2667
|
loadingComponent: je
|
|
2668
2668
|
});
|
|
2669
2669
|
case "sql":
|
|
2670
2670
|
return Ee({
|
|
2671
|
-
loader: () => import("./Sql-
|
|
2671
|
+
loader: () => import("./Sql-VzEMx3bm.js"),
|
|
2672
2672
|
loadingComponent: je
|
|
2673
2673
|
});
|
|
2674
2674
|
case "json":
|
|
2675
2675
|
return Ee({
|
|
2676
|
-
loader: () => import("./Json-
|
|
2676
|
+
loader: () => import("./Json-1P1Re0lu.js"),
|
|
2677
2677
|
loadingComponent: je
|
|
2678
2678
|
});
|
|
2679
2679
|
case "lua":
|
|
2680
2680
|
return Ee({
|
|
2681
|
-
loader: () => import("./Lua-
|
|
2681
|
+
loader: () => import("./Lua-DqjEuLfl.js"),
|
|
2682
2682
|
loadingComponent: je
|
|
2683
2683
|
});
|
|
2684
2684
|
case "cs":
|
|
2685
2685
|
case "csharp":
|
|
2686
2686
|
return Ee({
|
|
2687
|
-
loader: () => import("./Csharp-
|
|
2687
|
+
loader: () => import("./Csharp-C51wMsoZ.js"),
|
|
2688
2688
|
loadingComponent: je
|
|
2689
2689
|
});
|
|
2690
2690
|
case "cpp":
|
|
2691
2691
|
case "c++":
|
|
2692
2692
|
return Ee({
|
|
2693
|
-
loader: () => import("./Cpp-
|
|
2693
|
+
loader: () => import("./Cpp-Kcxqyr3J.js"),
|
|
2694
2694
|
loadingComponent: je
|
|
2695
2695
|
});
|
|
2696
2696
|
case "c":
|
|
2697
2697
|
return Ee({
|
|
2698
|
-
loader: () => import("./C-
|
|
2698
|
+
loader: () => import("./C-DLpPkbWy.js"),
|
|
2699
2699
|
loadingComponent: je
|
|
2700
2700
|
});
|
|
2701
2701
|
default:
|
|
2702
2702
|
return je;
|
|
2703
2703
|
}
|
|
2704
|
-
}, n =
|
|
2704
|
+
}, n = U(t());
|
|
2705
2705
|
return Ke(
|
|
2706
2706
|
() => e.language,
|
|
2707
2707
|
() => {
|
|
@@ -2709,7 +2709,7 @@ const Bo = /* @__PURE__ */ G({
|
|
|
2709
2709
|
}
|
|
2710
2710
|
), (a, s) => (I(), O("div", {
|
|
2711
2711
|
class: _(a.$style.block),
|
|
2712
|
-
style:
|
|
2712
|
+
style: Y({ "--size": `${a.size}px` })
|
|
2713
2713
|
}, [
|
|
2714
2714
|
X(zt, { mode: "out-in" }, {
|
|
2715
2715
|
default: Oe(() => [
|
|
@@ -2741,7 +2741,7 @@ const Bo = /* @__PURE__ */ G({
|
|
|
2741
2741
|
setup(r) {
|
|
2742
2742
|
return (e, t) => (I(), O("span", {
|
|
2743
2743
|
class: _(e.$style.text),
|
|
2744
|
-
style:
|
|
2744
|
+
style: Y({
|
|
2745
2745
|
"--color": e.color,
|
|
2746
2746
|
"--font-size": e.size,
|
|
2747
2747
|
"--font-weight": e.bold ? "bold" : void 0,
|
|
@@ -3404,10 +3404,10 @@ var Ka = { exports: {} };
|
|
|
3404
3404
|
ge--, Te = v.slice(fe, be), ie.index -= fe;
|
|
3405
3405
|
} else if (ie = h(ke, 0, Te, qe), !ie)
|
|
3406
3406
|
continue;
|
|
3407
|
-
var Rt = ie.index, et = ie[0],
|
|
3407
|
+
var Rt = ie.index, et = ie[0], st = Te.slice(0, Rt), Ft = Te.slice(Rt + et.length), St = fe + Te.length;
|
|
3408
3408
|
$ && St > $.reach && ($.reach = St);
|
|
3409
3409
|
var Gt = se.prev;
|
|
3410
|
-
|
|
3410
|
+
st && (Gt = g(b, Gt, st), fe += st.length), y(b, Gt, ge);
|
|
3411
3411
|
var ur = new u(D, ae ? o.tokenize(et, ae) : et, $e, et);
|
|
3412
3412
|
if (se = g(b, Gt, ur), Ft && g(b, se, Ft), ge > 1) {
|
|
3413
3413
|
var i0 = {
|
|
@@ -4238,7 +4238,7 @@ const Uo = { class: "elmethis-prism-code-highlighter-pre" }, Wo = /* @__PURE__ *
|
|
|
4238
4238
|
language: { default: "txt" }
|
|
4239
4239
|
},
|
|
4240
4240
|
setup(r) {
|
|
4241
|
-
const e =
|
|
4241
|
+
const e = U(null), t = async () => {
|
|
4242
4242
|
document != null && (Ln.plugins.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/", e.value && Ln.highlightElement(e.value));
|
|
4243
4243
|
};
|
|
4244
4244
|
return qt(() => {
|
|
@@ -4387,7 +4387,7 @@ function Qo(r) {
|
|
|
4387
4387
|
function el(r, e, t = {}) {
|
|
4388
4388
|
const {
|
|
4389
4389
|
immediate: n = !0
|
|
4390
|
-
} = t, a =
|
|
4390
|
+
} = t, a = U(!1);
|
|
4391
4391
|
let s = null;
|
|
4392
4392
|
function i() {
|
|
4393
4393
|
s && (clearTimeout(s), s = null);
|
|
@@ -4452,21 +4452,21 @@ function rl(...r) {
|
|
|
4452
4452
|
}, i);
|
|
4453
4453
|
}
|
|
4454
4454
|
function nl() {
|
|
4455
|
-
const r =
|
|
4455
|
+
const r = U(!1), e = Xa();
|
|
4456
4456
|
return e && qt(() => {
|
|
4457
4457
|
r.value = !0;
|
|
4458
4458
|
}, e), r;
|
|
4459
4459
|
}
|
|
4460
4460
|
function t0(r) {
|
|
4461
4461
|
const e = nl();
|
|
4462
|
-
return
|
|
4462
|
+
return lt(() => (e.value, !!r()));
|
|
4463
4463
|
}
|
|
4464
4464
|
function al(r, e, t = {}) {
|
|
4465
4465
|
const { window: n = _t, ...a } = t;
|
|
4466
4466
|
let s;
|
|
4467
4467
|
const i = t0(() => n && "MutationObserver" in n), o = () => {
|
|
4468
4468
|
s && (s.disconnect(), s = void 0);
|
|
4469
|
-
}, u =
|
|
4469
|
+
}, u = lt(() => {
|
|
4470
4470
|
const g = Ie(r), y = (Array.isArray(g) ? g : [g]).map(mt).filter(Ja);
|
|
4471
4471
|
return new Set(y);
|
|
4472
4472
|
}), h = Ke(
|
|
@@ -4493,7 +4493,7 @@ function sl(r, e, t) {
|
|
|
4493
4493
|
resetOnExecute: o = !0,
|
|
4494
4494
|
shallow: u = !0,
|
|
4495
4495
|
throwError: h
|
|
4496
|
-
} = t ?? {}, d = u ? N0(e) :
|
|
4496
|
+
} = t ?? {}, d = u ? N0(e) : U(e), m = U(!1), g = U(!1), y = N0(void 0);
|
|
4497
4497
|
async function x(j = 0, ...v) {
|
|
4498
4498
|
o && (d.value = e), y.value = void 0, m.value = !1, g.value = !0, j > 0 && await Or(j);
|
|
4499
4499
|
const b = typeof r == "function" ? r(...v) : r;
|
|
@@ -4531,7 +4531,7 @@ function sl(r, e, t) {
|
|
|
4531
4531
|
function il(r, e = {}) {
|
|
4532
4532
|
const { window: t = _t } = e, n = t0(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
4533
4533
|
let a;
|
|
4534
|
-
const s =
|
|
4534
|
+
const s = U(!1), i = (h) => {
|
|
4535
4535
|
s.value = h.matches;
|
|
4536
4536
|
}, o = () => {
|
|
4537
4537
|
a && ("removeEventListener" in a ? a.removeEventListener("change", i) : a.removeListener(i));
|
|
@@ -4578,7 +4578,7 @@ function on(r = {}) {
|
|
|
4578
4578
|
source: n,
|
|
4579
4579
|
copiedDuring: a = 1500,
|
|
4580
4580
|
legacy: s = !1
|
|
4581
|
-
} = r, i = t0(() => e && "clipboard" in e), o = Nn("clipboard-read"), u = Nn("clipboard-write"), h =
|
|
4581
|
+
} = r, i = t0(() => e && "clipboard" in e), o = Nn("clipboard-read"), u = Nn("clipboard-write"), h = lt(() => i.value || s), d = U(""), m = U(!1), g = el(() => m.value = !1, a);
|
|
4582
4582
|
function y() {
|
|
4583
4583
|
i.value && j(o.value) ? e.clipboard.readText().then((v) => {
|
|
4584
4584
|
d.value = v;
|
|
@@ -4611,7 +4611,7 @@ function ol(r, e, t = {}) {
|
|
|
4611
4611
|
let s;
|
|
4612
4612
|
const i = t0(() => n && "ResizeObserver" in n), o = () => {
|
|
4613
4613
|
s && (s.disconnect(), s = void 0);
|
|
4614
|
-
}, u =
|
|
4614
|
+
}, u = lt(() => {
|
|
4615
4615
|
const m = Ie(r);
|
|
4616
4616
|
return Array.isArray(m) ? m.map((g) => mt(g)) : [mt(m)];
|
|
4617
4617
|
}), h = Ke(
|
|
@@ -4639,7 +4639,7 @@ function ll(r, e = {}) {
|
|
|
4639
4639
|
windowScroll: a = !0,
|
|
4640
4640
|
immediate: s = !0,
|
|
4641
4641
|
updateTiming: i = "sync"
|
|
4642
|
-
} = e, o =
|
|
4642
|
+
} = e, o = U(0), u = U(0), h = U(0), d = U(0), m = U(0), g = U(0), y = U(0), x = U(0);
|
|
4643
4643
|
function k() {
|
|
4644
4644
|
const j = mt(r);
|
|
4645
4645
|
if (!j) {
|
|
@@ -4668,19 +4668,19 @@ function ll(r, e = {}) {
|
|
|
4668
4668
|
update: M
|
|
4669
4669
|
};
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4671
|
+
function at(r, e, t = {}) {
|
|
4672
4672
|
const {
|
|
4673
4673
|
root: n,
|
|
4674
4674
|
rootMargin: a = "0px",
|
|
4675
4675
|
threshold: s = 0,
|
|
4676
4676
|
window: i = _t,
|
|
4677
4677
|
immediate: o = !0
|
|
4678
|
-
} = t, u = t0(() => i && "IntersectionObserver" in i), h =
|
|
4678
|
+
} = t, u = t0(() => i && "IntersectionObserver" in i), h = lt(() => {
|
|
4679
4679
|
const x = Ie(r);
|
|
4680
4680
|
return (Array.isArray(x) ? x : [x]).map(mt).filter(Ja);
|
|
4681
4681
|
});
|
|
4682
4682
|
let d = Yt;
|
|
4683
|
-
const m =
|
|
4683
|
+
const m = U(o), g = u.value ? Ke(
|
|
4684
4684
|
() => [h.value, mt(n), m.value],
|
|
4685
4685
|
([x, k]) => {
|
|
4686
4686
|
if (d(), !m.value || !x.length)
|
|
@@ -4738,17 +4738,17 @@ function ts(r = {}) {
|
|
|
4738
4738
|
const { window: e = _t, behavior: t = "auto" } = r;
|
|
4739
4739
|
if (!e)
|
|
4740
4740
|
return {
|
|
4741
|
-
x:
|
|
4742
|
-
y:
|
|
4741
|
+
x: U(0),
|
|
4742
|
+
y: U(0)
|
|
4743
4743
|
};
|
|
4744
|
-
const n =
|
|
4744
|
+
const n = U(e.scrollX), a = U(e.scrollY), s = lt({
|
|
4745
4745
|
get() {
|
|
4746
4746
|
return n.value;
|
|
4747
4747
|
},
|
|
4748
4748
|
set(o) {
|
|
4749
4749
|
scrollTo({ left: o, behavior: t });
|
|
4750
4750
|
}
|
|
4751
|
-
}), i =
|
|
4751
|
+
}), i = lt({
|
|
4752
4752
|
get() {
|
|
4753
4753
|
return a.value;
|
|
4754
4754
|
},
|
|
@@ -4776,7 +4776,7 @@ function dl(r = {}) {
|
|
|
4776
4776
|
listenOrientation: a = !0,
|
|
4777
4777
|
includeScrollbar: s = !0,
|
|
4778
4778
|
type: i = "inner"
|
|
4779
|
-
} = r, o =
|
|
4779
|
+
} = r, o = U(t), u = U(n), h = () => {
|
|
4780
4780
|
e && (i === "outer" ? (o.value = e.outerWidth, u.value = e.outerHeight) : s ? (o.value = e.innerWidth, u.value = e.innerHeight) : (o.value = e.document.documentElement.clientWidth, u.value = e.document.documentElement.clientHeight));
|
|
4781
4781
|
};
|
|
4782
4782
|
if (h(), Qa(h), Nt("resize", h, { passive: !0 }), a) {
|
|
@@ -4788,7 +4788,7 @@ function dl(r = {}) {
|
|
|
4788
4788
|
const hl = /* @__PURE__ */ G({
|
|
4789
4789
|
__name: "ElmTooltip",
|
|
4790
4790
|
setup(r) {
|
|
4791
|
-
const e =
|
|
4791
|
+
const e = U(null), { x: t, y: n, width: a, height: s } = ll(e), i = dl(), o = U(!1);
|
|
4792
4792
|
return (u, h) => (I(), O("span", {
|
|
4793
4793
|
ref_key: "el",
|
|
4794
4794
|
ref: e,
|
|
@@ -4806,7 +4806,7 @@ const hl = /* @__PURE__ */ G({
|
|
|
4806
4806
|
o.value ? (I(), O("div", {
|
|
4807
4807
|
key: 0,
|
|
4808
4808
|
class: _(u.$style.tooltip),
|
|
4809
|
-
style:
|
|
4809
|
+
style: Y(
|
|
4810
4810
|
P(t) > P(i).width.value / 2 ? {
|
|
4811
4811
|
top: `${P(n) + P(s)}px`,
|
|
4812
4812
|
right: `${P(i).width.value - P(t) - P(a)}px`
|
|
@@ -4836,31 +4836,38 @@ const hl = /* @__PURE__ */ G({
|
|
|
4836
4836
|
margin: {}
|
|
4837
4837
|
},
|
|
4838
4838
|
setup(r) {
|
|
4839
|
-
const e = r, { copy: t, copied: n } = on({ source: e.code });
|
|
4840
|
-
return (a,
|
|
4841
|
-
|
|
4842
|
-
|
|
4839
|
+
const e = r, { copy: t, copied: n } = on({ source: e.code }), a = U(null), s = U(!1);
|
|
4840
|
+
return at(a, ([{ isIntersecting: i }], o) => {
|
|
4841
|
+
s.value = i;
|
|
4842
|
+
}), (i, o) => (I(), O("div", {
|
|
4843
|
+
ref_key: "target",
|
|
4844
|
+
ref: a,
|
|
4845
|
+
class: _(i.$style.wrapper),
|
|
4846
|
+
style: Y({
|
|
4847
|
+
"--margin-block": i.margin,
|
|
4848
|
+
"--opacity": s.value ? 1 : 0
|
|
4849
|
+
})
|
|
4843
4850
|
}, [
|
|
4844
4851
|
L("div", {
|
|
4845
|
-
class: _(
|
|
4852
|
+
class: _(i.$style.header)
|
|
4846
4853
|
}, [
|
|
4847
4854
|
L("div", {
|
|
4848
|
-
class: _(
|
|
4855
|
+
class: _(i.$style.header__left)
|
|
4849
4856
|
}, [
|
|
4850
4857
|
X(Lo, {
|
|
4851
|
-
language:
|
|
4858
|
+
language: i.language,
|
|
4852
4859
|
size: 20
|
|
4853
4860
|
}, null, 8, ["language"]),
|
|
4854
4861
|
X(ye, {
|
|
4855
|
-
text:
|
|
4862
|
+
text: i.caption ?? i.language
|
|
4856
4863
|
}, null, 8, ["text"])
|
|
4857
4864
|
], 2),
|
|
4858
4865
|
X(ln, null, {
|
|
4859
4866
|
original: Oe(() => [
|
|
4860
4867
|
(I(), Me(xt(P(n) ? P(xo) : P(wo)), {
|
|
4861
|
-
class: _(
|
|
4862
|
-
onClick:
|
|
4863
|
-
P(t)(
|
|
4868
|
+
class: _(i.$style["copy-icon"]),
|
|
4869
|
+
onClick: o[0] || (o[0] = () => {
|
|
4870
|
+
P(t)(i.code);
|
|
4864
4871
|
})
|
|
4865
4872
|
}, null, 8, ["class"]))
|
|
4866
4873
|
]),
|
|
@@ -4875,20 +4882,20 @@ const hl = /* @__PURE__ */ G({
|
|
|
4875
4882
|
})
|
|
4876
4883
|
], 2),
|
|
4877
4884
|
L("div", {
|
|
4878
|
-
class: _(
|
|
4885
|
+
class: _(i.$style.code)
|
|
4879
4886
|
}, [
|
|
4880
4887
|
X(Yo, {
|
|
4881
|
-
code:
|
|
4882
|
-
language:
|
|
4888
|
+
code: i.code,
|
|
4889
|
+
language: i.language
|
|
4883
4890
|
}, null, 8, ["code", "language"])
|
|
4884
4891
|
], 2)
|
|
4885
4892
|
], 6));
|
|
4886
4893
|
}
|
|
4887
|
-
}), yl = "
|
|
4894
|
+
}), yl = "_wrapper_17kkz_1", gl = "_header_17kkz_15", bl = "_header__left_17kkz_29", xl = "_code_17kkz_55", wl = {
|
|
4888
4895
|
wrapper: yl,
|
|
4889
4896
|
header: gl,
|
|
4890
4897
|
header__left: bl,
|
|
4891
|
-
"copy-icon": "_copy-
|
|
4898
|
+
"copy-icon": "_copy-icon_17kkz_36",
|
|
4892
4899
|
code: xl
|
|
4893
4900
|
}, kl = {
|
|
4894
4901
|
$style: wl
|
|
@@ -4975,7 +4982,7 @@ var ns = function r(e) {
|
|
|
4975
4982
|
}, Il = function(e) {
|
|
4976
4983
|
var t = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);
|
|
4977
4984
|
return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
|
|
4978
|
-
},
|
|
4985
|
+
}, W = {
|
|
4979
4986
|
contains: Sl,
|
|
4980
4987
|
deflt: Ml,
|
|
4981
4988
|
escape: El,
|
|
@@ -5136,7 +5143,7 @@ class un {
|
|
|
5136
5143
|
*/
|
|
5137
5144
|
isTrusted(e) {
|
|
5138
5145
|
if (e.url && !e.protocol) {
|
|
5139
|
-
var t =
|
|
5146
|
+
var t = W.protocolFromUrl(e.url);
|
|
5140
5147
|
if (t == null)
|
|
5141
5148
|
return !1;
|
|
5142
5149
|
e.protocol = t;
|
|
@@ -5153,40 +5160,40 @@ class Mt {
|
|
|
5153
5160
|
* Get the style of a superscript given a base in the current style.
|
|
5154
5161
|
*/
|
|
5155
5162
|
sup() {
|
|
5156
|
-
return
|
|
5163
|
+
return it[Ol[this.id]];
|
|
5157
5164
|
}
|
|
5158
5165
|
/**
|
|
5159
5166
|
* Get the style of a subscript given a base in the current style.
|
|
5160
5167
|
*/
|
|
5161
5168
|
sub() {
|
|
5162
|
-
return
|
|
5169
|
+
return it[Bl[this.id]];
|
|
5163
5170
|
}
|
|
5164
5171
|
/**
|
|
5165
5172
|
* Get the style of a fraction numerator given the fraction in the current
|
|
5166
5173
|
* style.
|
|
5167
5174
|
*/
|
|
5168
5175
|
fracNum() {
|
|
5169
|
-
return
|
|
5176
|
+
return it[Rl[this.id]];
|
|
5170
5177
|
}
|
|
5171
5178
|
/**
|
|
5172
5179
|
* Get the style of a fraction denominator given the fraction in the current
|
|
5173
5180
|
* style.
|
|
5174
5181
|
*/
|
|
5175
5182
|
fracDen() {
|
|
5176
|
-
return
|
|
5183
|
+
return it[Fl[this.id]];
|
|
5177
5184
|
}
|
|
5178
5185
|
/**
|
|
5179
5186
|
* Get the cramped version of a style (in particular, cramping a cramped style
|
|
5180
5187
|
* doesn't change the style).
|
|
5181
5188
|
*/
|
|
5182
5189
|
cramp() {
|
|
5183
|
-
return
|
|
5190
|
+
return it[Dl[this.id]];
|
|
5184
5191
|
}
|
|
5185
5192
|
/**
|
|
5186
5193
|
* Get a text or display version of this style.
|
|
5187
5194
|
*/
|
|
5188
5195
|
text() {
|
|
5189
|
-
return
|
|
5196
|
+
return it[Hl[this.id]];
|
|
5190
5197
|
}
|
|
5191
5198
|
/**
|
|
5192
5199
|
* Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
|
|
@@ -5195,11 +5202,11 @@ class Mt {
|
|
|
5195
5202
|
return this.size >= 2;
|
|
5196
5203
|
}
|
|
5197
5204
|
}
|
|
5198
|
-
var cn = 0, q0 = 1, Xt = 2, ft = 3, p0 = 4, Xe = 5, Jt = 6, Fe = 7,
|
|
5199
|
-
DISPLAY:
|
|
5200
|
-
TEXT:
|
|
5201
|
-
SCRIPT:
|
|
5202
|
-
SCRIPTSCRIPT:
|
|
5205
|
+
var cn = 0, q0 = 1, Xt = 2, ft = 3, p0 = 4, Xe = 5, Jt = 6, Fe = 7, it = [new Mt(cn, 0, !1), new Mt(q0, 0, !0), new Mt(Xt, 1, !1), new Mt(ft, 1, !0), new Mt(p0, 2, !1), new Mt(Xe, 2, !0), new Mt(Jt, 3, !1), new Mt(Fe, 3, !0)], Ol = [p0, Xe, p0, Xe, Jt, Fe, Jt, Fe], Bl = [Xe, Xe, Xe, Xe, Fe, Fe, Fe, Fe], Rl = [Xt, ft, p0, Xe, Jt, Fe, Jt, Fe], Fl = [ft, ft, Xe, Xe, Fe, Fe, Fe, Fe], Dl = [q0, q0, ft, ft, Xe, Xe, Fe, Fe], Hl = [cn, q0, Xt, ft, Xt, ft, Xt, ft], K = {
|
|
5206
|
+
DISPLAY: it[cn],
|
|
5207
|
+
TEXT: it[Xt],
|
|
5208
|
+
SCRIPT: it[p0],
|
|
5209
|
+
SCRIPTSCRIPT: it[Jt]
|
|
5203
5210
|
}, Rr = [{
|
|
5204
5211
|
// Latin characters beyond the Latin-1 characters we have metrics for.
|
|
5205
5212
|
// Needed for Czech, Hungarian and Turkish text, for example.
|
|
@@ -5702,7 +5709,7 @@ class b0 {
|
|
|
5702
5709
|
this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
|
|
5703
5710
|
}
|
|
5704
5711
|
hasClass(e) {
|
|
5705
|
-
return
|
|
5712
|
+
return W.contains(this.classes, e);
|
|
5706
5713
|
}
|
|
5707
5714
|
/** Convert the fragment into a node. */
|
|
5708
5715
|
toNode() {
|
|
@@ -5725,7 +5732,7 @@ class b0 {
|
|
|
5725
5732
|
return this.children.map(e).join("");
|
|
5726
5733
|
}
|
|
5727
5734
|
}
|
|
5728
|
-
var
|
|
5735
|
+
var ot = {
|
|
5729
5736
|
"AMS-Regular": {
|
|
5730
5737
|
32: [0, 0, 0, 0, 0.25],
|
|
5731
5738
|
65: [0, 0.68889, 0, 0, 0.72222],
|
|
@@ -7956,13 +7963,13 @@ var it = {
|
|
|
7956
7963
|
я: "r"
|
|
7957
7964
|
};
|
|
7958
7965
|
function Kl(r, e) {
|
|
7959
|
-
|
|
7966
|
+
ot[r] = e;
|
|
7960
7967
|
}
|
|
7961
7968
|
function dn(r, e, t) {
|
|
7962
|
-
if (!
|
|
7969
|
+
if (!ot[e])
|
|
7963
7970
|
throw new Error("Font metrics not found for font: " + e + ".");
|
|
7964
|
-
var n = r.charCodeAt(0), a =
|
|
7965
|
-
if (!a && r[0] in qn && (n = qn[r[0]].charCodeAt(0), a =
|
|
7971
|
+
var n = r.charCodeAt(0), a = ot[e][n];
|
|
7972
|
+
if (!a && r[0] in qn && (n = qn[r[0]].charCodeAt(0), a = ot[e][n]), !a && t === "text" && as(n) && (a = ot[e][77]), a)
|
|
7966
7973
|
return {
|
|
7967
7974
|
depth: a[0],
|
|
7968
7975
|
height: a[1],
|
|
@@ -8274,13 +8281,13 @@ var Fr = {
|
|
|
8274
8281
|
return t;
|
|
8275
8282
|
}, ls = function(e) {
|
|
8276
8283
|
var t = "<" + e;
|
|
8277
|
-
this.classes.length && (t += ' class="' +
|
|
8284
|
+
this.classes.length && (t += ' class="' + W.escape(Et(this.classes)) + '"');
|
|
8278
8285
|
var n = "";
|
|
8279
8286
|
for (var a in this.style)
|
|
8280
|
-
this.style.hasOwnProperty(a) && (n +=
|
|
8281
|
-
n && (t += ' style="' +
|
|
8287
|
+
this.style.hasOwnProperty(a) && (n += W.hyphenate(a) + ":" + this.style[a] + ";");
|
|
8288
|
+
n && (t += ' style="' + W.escape(n) + '"');
|
|
8282
8289
|
for (var s in this.attributes)
|
|
8283
|
-
this.attributes.hasOwnProperty(s) && (t += " " + s + '="' +
|
|
8290
|
+
this.attributes.hasOwnProperty(s) && (t += " " + s + '="' + W.escape(this.attributes[s]) + '"');
|
|
8284
8291
|
t += ">";
|
|
8285
8292
|
for (var i = 0; i < this.children.length; i++)
|
|
8286
8293
|
t += this.children[i].toMarkup();
|
|
@@ -8299,7 +8306,7 @@ class x0 {
|
|
|
8299
8306
|
this.attributes[e] = t;
|
|
8300
8307
|
}
|
|
8301
8308
|
hasClass(e) {
|
|
8302
|
-
return
|
|
8309
|
+
return W.contains(this.classes, e);
|
|
8303
8310
|
}
|
|
8304
8311
|
toNode() {
|
|
8305
8312
|
return os.call(this, "span");
|
|
@@ -8316,7 +8323,7 @@ class hn {
|
|
|
8316
8323
|
this.attributes[e] = t;
|
|
8317
8324
|
}
|
|
8318
8325
|
hasClass(e) {
|
|
8319
|
-
return
|
|
8326
|
+
return W.contains(this.classes, e);
|
|
8320
8327
|
}
|
|
8321
8328
|
toNode() {
|
|
8322
8329
|
return os.call(this, "a");
|
|
@@ -8330,7 +8337,7 @@ class t1 {
|
|
|
8330
8337
|
this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = t, this.src = e, this.classes = ["mord"], this.style = n;
|
|
8331
8338
|
}
|
|
8332
8339
|
hasClass(e) {
|
|
8333
|
-
return
|
|
8340
|
+
return W.contains(this.classes, e);
|
|
8334
8341
|
}
|
|
8335
8342
|
toNode() {
|
|
8336
8343
|
var e = document.createElement("img");
|
|
@@ -8340,10 +8347,10 @@ class t1 {
|
|
|
8340
8347
|
return e;
|
|
8341
8348
|
}
|
|
8342
8349
|
toMarkup() {
|
|
8343
|
-
var e = '<img src="' +
|
|
8350
|
+
var e = '<img src="' + W.escape(this.src) + '"' + (' alt="' + W.escape(this.alt) + '"'), t = "";
|
|
8344
8351
|
for (var n in this.style)
|
|
8345
|
-
this.style.hasOwnProperty(n) && (t +=
|
|
8346
|
-
return t && (e += ' style="' +
|
|
8352
|
+
this.style.hasOwnProperty(n) && (t += W.hyphenate(n) + ":" + this.style[n] + ";");
|
|
8353
|
+
return t && (e += ' style="' + W.escape(t) + '"'), e += "'/>", e;
|
|
8347
8354
|
}
|
|
8348
8355
|
}
|
|
8349
8356
|
var r1 = {
|
|
@@ -8360,7 +8367,7 @@ class Je {
|
|
|
8360
8367
|
h && this.classes.push(h + "_fallback"), /[îïíì]/.test(this.text) && (this.text = r1[this.text]);
|
|
8361
8368
|
}
|
|
8362
8369
|
hasClass(e) {
|
|
8363
|
-
return
|
|
8370
|
+
return W.contains(this.classes, e);
|
|
8364
8371
|
}
|
|
8365
8372
|
/**
|
|
8366
8373
|
* Creates a text node or span from a symbol node. Note that a span is only
|
|
@@ -8378,13 +8385,13 @@ class Je {
|
|
|
8378
8385
|
*/
|
|
8379
8386
|
toMarkup() {
|
|
8380
8387
|
var e = !1, t = "<span";
|
|
8381
|
-
this.classes.length && (e = !0, t += ' class="', t +=
|
|
8388
|
+
this.classes.length && (e = !0, t += ' class="', t += W.escape(Et(this.classes)), t += '"');
|
|
8382
8389
|
var n = "";
|
|
8383
8390
|
this.italic > 0 && (n += "margin-right:" + this.italic + "em;");
|
|
8384
8391
|
for (var a in this.style)
|
|
8385
|
-
this.style.hasOwnProperty(a) && (n +=
|
|
8386
|
-
n && (e = !0, t += ' style="' +
|
|
8387
|
-
var s =
|
|
8392
|
+
this.style.hasOwnProperty(a) && (n += W.hyphenate(a) + ":" + this.style[a] + ";");
|
|
8393
|
+
n && (e = !0, t += ' style="' + W.escape(n) + '"');
|
|
8394
|
+
var s = W.escape(this.text);
|
|
8388
8395
|
return e ? (t += ">", t += s, t += "</span>", t) : s;
|
|
8389
8396
|
}
|
|
8390
8397
|
}
|
|
@@ -8403,7 +8410,7 @@ class yt {
|
|
|
8403
8410
|
toMarkup() {
|
|
8404
8411
|
var e = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
8405
8412
|
for (var t in this.attributes)
|
|
8406
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' +
|
|
8413
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + W.escape(this.attributes[t]) + '"');
|
|
8407
8414
|
e += ">";
|
|
8408
8415
|
for (var n = 0; n < this.children.length; n++)
|
|
8409
8416
|
e += this.children[n].toMarkup();
|
|
@@ -8419,7 +8426,7 @@ class Ct {
|
|
|
8419
8426
|
return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", Pn[this.pathName]), t;
|
|
8420
8427
|
}
|
|
8421
8428
|
toMarkup() {
|
|
8422
|
-
return this.alternate ? '<path d="' +
|
|
8429
|
+
return this.alternate ? '<path d="' + W.escape(this.alternate) + '"/>' : '<path d="' + W.escape(Pn[this.pathName]) + '"/>';
|
|
8423
8430
|
}
|
|
8424
8431
|
}
|
|
8425
8432
|
class Dr {
|
|
@@ -8435,7 +8442,7 @@ class Dr {
|
|
|
8435
8442
|
toMarkup() {
|
|
8436
8443
|
var e = "<line";
|
|
8437
8444
|
for (var t in this.attributes)
|
|
8438
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' +
|
|
8445
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + W.escape(this.attributes[t]) + '"');
|
|
8439
8446
|
return e += "/>", e;
|
|
8440
8447
|
}
|
|
8441
8448
|
}
|
|
@@ -9646,7 +9653,7 @@ var W0 = function(e) {
|
|
|
9646
9653
|
var m = gt([a[0] || "leftmost"], [], t), g = gt([a[1] || "rightmost"], [], t), y = n === "root";
|
|
9647
9654
|
return Jn(s, (x, k) => {
|
|
9648
9655
|
var M = k.classes[0], j = x.classes[0];
|
|
9649
|
-
M === "mbin" &&
|
|
9656
|
+
M === "mbin" && W.contains(k1, j) ? k.classes[0] = "mord" : j === "mbin" && W.contains(w1, M) && (x.classes[0] = "mord");
|
|
9650
9657
|
}, {
|
|
9651
9658
|
node: m
|
|
9652
9659
|
}, g, y), Jn(s, (x, k) => {
|
|
@@ -9770,8 +9777,8 @@ class Ye {
|
|
|
9770
9777
|
toMarkup() {
|
|
9771
9778
|
var e = "<" + this.type;
|
|
9772
9779
|
for (var t in this.attributes)
|
|
9773
|
-
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e +=
|
|
9774
|
-
this.classes.length > 0 && (e += ' class ="' +
|
|
9780
|
+
Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += W.escape(this.attributes[t]), e += '"');
|
|
9781
|
+
this.classes.length > 0 && (e += ' class ="' + W.escape(Et(this.classes)) + '"'), e += ">";
|
|
9775
9782
|
for (var n = 0; n < this.children.length; n++)
|
|
9776
9783
|
e += this.children[n].toMarkup();
|
|
9777
9784
|
return e += "</" + this.type + ">", e;
|
|
@@ -9798,7 +9805,7 @@ class c0 {
|
|
|
9798
9805
|
* (representing the text itself).
|
|
9799
9806
|
*/
|
|
9800
9807
|
toMarkup() {
|
|
9801
|
-
return
|
|
9808
|
+
return W.escape(this.toText());
|
|
9802
9809
|
}
|
|
9803
9810
|
/**
|
|
9804
9811
|
* Converts the text node into a string
|
|
@@ -9878,7 +9885,7 @@ var F = {
|
|
|
9878
9885
|
if (n === "mathtt")
|
|
9879
9886
|
return "monospace";
|
|
9880
9887
|
var s = e.text;
|
|
9881
|
-
if (
|
|
9888
|
+
if (W.contains(["\\imath", "\\jmath"], s))
|
|
9882
9889
|
return null;
|
|
9883
9890
|
ue[a][s] && ue[a][s].replace && (s = ue[a][s].replace);
|
|
9884
9891
|
var i = C.fontMap[n].fontName;
|
|
@@ -9927,7 +9934,7 @@ var F = {
|
|
|
9927
9934
|
};
|
|
9928
9935
|
function Qn(r, e, t, n, a) {
|
|
9929
9936
|
var s = Pe(r, t), i;
|
|
9930
|
-
s.length === 1 && s[0] instanceof Ye &&
|
|
9937
|
+
s.length === 1 && s[0] instanceof Ye && W.contains(["mrow", "mtable"], s[0].type) ? i = s[0] : i = new F.MathNode("mrow", s);
|
|
9931
9938
|
var o = new F.MathNode("annotation", [new F.TextNode(e)]);
|
|
9932
9939
|
o.setAttribute("encoding", "application/x-tex");
|
|
9933
9940
|
var u = new F.MathNode("semantics", [i, o]), h = new F.MathNode("math", [u]);
|
|
@@ -10062,7 +10069,7 @@ var ys = function(e) {
|
|
|
10062
10069
|
}, _1 = function(e, t) {
|
|
10063
10070
|
function n() {
|
|
10064
10071
|
var o = 4e5, u = e.label.slice(1);
|
|
10065
|
-
if (
|
|
10072
|
+
if (W.contains(["widehat", "widecheck", "widetilde", "utilde"], u)) {
|
|
10066
10073
|
var h = e, d = I1(h.base), m, g, y;
|
|
10067
10074
|
if (d > 5)
|
|
10068
10075
|
u === "widehat" || u === "widecheck" ? (m = 420, o = 2364, y = 0.42, g = u + "4") : (m = 312, o = 2340, y = 0.34, g = "tilde4");
|
|
@@ -10172,9 +10179,9 @@ function er(r) {
|
|
|
10172
10179
|
var yn = (r, e) => {
|
|
10173
10180
|
var t, n, a;
|
|
10174
10181
|
r && r.type === "supsub" ? (n = te(r.base, "accent"), t = n.base, r.base = t, a = n1(ne(r, e)), r.base = n) : (n = te(r, "accent"), t = n.base);
|
|
10175
|
-
var s = ne(t, e.havingCrampedStyle()), i = n.isShifty &&
|
|
10182
|
+
var s = ne(t, e.havingCrampedStyle()), i = n.isShifty && W.isCharacterBox(t), o = 0;
|
|
10176
10183
|
if (i) {
|
|
10177
|
-
var u =
|
|
10184
|
+
var u = W.getBaseElem(t), h = ne(u, e.havingCrampedStyle());
|
|
10178
10185
|
o = Un(h).skew;
|
|
10179
10186
|
}
|
|
10180
10187
|
var d = n.label === "\\c", m = d ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), g;
|
|
@@ -10450,7 +10457,7 @@ q({
|
|
|
10450
10457
|
mclass: "m" + n.slice(5),
|
|
10451
10458
|
// TODO(kevinb): don't prefix with 'm'
|
|
10452
10459
|
body: xe(a),
|
|
10453
|
-
isCharacterBox:
|
|
10460
|
+
isCharacterBox: W.isCharacterBox(a)
|
|
10454
10461
|
};
|
|
10455
10462
|
},
|
|
10456
10463
|
htmlBuilder: xs,
|
|
@@ -10475,7 +10482,7 @@ q({
|
|
|
10475
10482
|
mode: t.mode,
|
|
10476
10483
|
mclass: tr(e[0]),
|
|
10477
10484
|
body: xe(e[1]),
|
|
10478
|
-
isCharacterBox:
|
|
10485
|
+
isCharacterBox: W.isCharacterBox(e[1])
|
|
10479
10486
|
};
|
|
10480
10487
|
}
|
|
10481
10488
|
});
|
|
@@ -10512,7 +10519,7 @@ q({
|
|
|
10512
10519
|
mode: t.mode,
|
|
10513
10520
|
mclass: i,
|
|
10514
10521
|
body: [u],
|
|
10515
|
-
isCharacterBox:
|
|
10522
|
+
isCharacterBox: W.isCharacterBox(u)
|
|
10516
10523
|
};
|
|
10517
10524
|
},
|
|
10518
10525
|
htmlBuilder: xs,
|
|
@@ -11005,7 +11012,7 @@ var u0 = function(e, t, n) {
|
|
|
11005
11012
|
elem: s
|
|
11006
11013
|
};
|
|
11007
11014
|
}, gr = function(e, t, n) {
|
|
11008
|
-
var a =
|
|
11015
|
+
var a = ot["Size4-Regular"][e.charCodeAt(0)] ? ot["Size4-Regular"][e.charCodeAt(0)][4] : ot["Size1-Regular"][e.charCodeAt(0)][4], s = new Ct("inner", Xl(e, Math.round(1e3 * t))), i = new yt([s], {
|
|
11009
11016
|
width: N(a),
|
|
11010
11017
|
height: N(t),
|
|
11011
11018
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -11024,7 +11031,7 @@ var u0 = function(e, t, n) {
|
|
|
11024
11031
|
var o, u, h, d, m = "", g = 0;
|
|
11025
11032
|
o = h = d = e, u = null;
|
|
11026
11033
|
var y = "Size1-Regular";
|
|
11027
|
-
e === "\\uparrow" ? h = d = "⏐" : e === "\\Uparrow" ? h = d = "‖" : e === "\\downarrow" ? o = h = "⏐" : e === "\\Downarrow" ? o = h = "‖" : e === "\\updownarrow" ? (o = "\\uparrow", h = "⏐", d = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", h = "‖", d = "\\Downarrow") :
|
|
11034
|
+
e === "\\uparrow" ? h = d = "⏐" : e === "\\Uparrow" ? h = d = "‖" : e === "\\downarrow" ? o = h = "⏐" : e === "\\Downarrow" ? o = h = "‖" : e === "\\updownarrow" ? (o = "\\uparrow", h = "⏐", d = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", h = "‖", d = "\\Downarrow") : W.contains(V1, e) ? (h = "∣", m = "vert", g = 333) : W.contains(G1, e) ? (h = "∥", m = "doublevert", g = 556) : e === "[" || e === "\\lbrack" ? (o = "⎡", h = "⎢", d = "⎣", y = "Size4-Regular", m = "lbrack", g = 667) : e === "]" || e === "\\rbrack" ? (o = "⎤", h = "⎥", d = "⎦", y = "Size4-Regular", m = "rbrack", g = 667) : e === "\\lfloor" || e === "⌊" ? (h = o = "⎢", d = "⎣", y = "Size4-Regular", m = "lfloor", g = 667) : e === "\\lceil" || e === "⌈" ? (o = "⎡", h = d = "⎢", y = "Size4-Regular", m = "lceil", g = 667) : e === "\\rfloor" || e === "⌋" ? (h = o = "⎥", d = "⎦", y = "Size4-Regular", m = "rfloor", g = 667) : e === "\\rceil" || e === "⌉" ? (o = "⎤", h = d = "⎥", y = "Size4-Regular", m = "rceil", g = 667) : e === "(" || e === "\\lparen" ? (o = "⎛", h = "⎜", d = "⎝", y = "Size4-Regular", m = "lparen", g = 875) : e === ")" || e === "\\rparen" ? (o = "⎞", h = "⎟", d = "⎠", y = "Size4-Regular", m = "rparen", g = 875) : e === "\\{" || e === "\\lbrace" ? (o = "⎧", u = "⎨", d = "⎩", h = "⎪", y = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "⎫", u = "⎬", d = "⎭", h = "⎪", y = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (o = "⎧", d = "⎩", h = "⎪", y = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (o = "⎫", d = "⎭", h = "⎪", y = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (o = "⎧", d = "⎭", h = "⎪", y = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (o = "⎫", d = "⎩", h = "⎪", y = "Size4-Regular");
|
|
11028
11035
|
var x = u0(o, y, s), k = x.height + x.depth, M = u0(h, y, s), j = M.height + M.depth, v = u0(d, y, s), b = v.height + v.depth, A = 0, T = 1;
|
|
11029
11036
|
if (u !== null) {
|
|
11030
11037
|
var E = u0(u, y, s);
|
|
@@ -11080,9 +11087,9 @@ var u0 = function(e, t, n) {
|
|
|
11080
11087
|
ruleWidth: (t.fontMetrics().sqrtRuleThickness + i) * s
|
|
11081
11088
|
};
|
|
11082
11089
|
}, Es = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], W1 = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], Cs = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], d0 = [0, 1.2, 1.8, 2.4, 3], Y1 = function(e, t, n, a, s) {
|
|
11083
|
-
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"),
|
|
11090
|
+
if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), W.contains(Es, e) || W.contains(Cs, e))
|
|
11084
11091
|
return zs(e, t, !1, n, a, s);
|
|
11085
|
-
if (
|
|
11092
|
+
if (W.contains(W1, e))
|
|
11086
11093
|
return Ts(e, d0[t], !1, n, a, s);
|
|
11087
11094
|
throw new H("Illegal delimiter: '" + e + "'");
|
|
11088
11095
|
}, X1 = [{
|
|
@@ -11162,7 +11169,7 @@ var u0 = function(e, t, n) {
|
|
|
11162
11169
|
}, _s = function(e, t, n, a, s, i) {
|
|
11163
11170
|
e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
|
|
11164
11171
|
var o;
|
|
11165
|
-
|
|
11172
|
+
W.contains(Cs, e) ? o = X1 : W.contains(Es, e) ? o = $s : o = Z1;
|
|
11166
11173
|
var u = Is(e, t, o, a);
|
|
11167
11174
|
return u.type === "small" ? P1(e, u.style, n, a, s, i) : u.type === "large" ? zs(e, u.size, n, a, s, i) : Ts(e, t, n, a, s, i);
|
|
11168
11175
|
}, J1 = function(e, t, n, a, s, i) {
|
|
@@ -11254,7 +11261,7 @@ var u0 = function(e, t, n) {
|
|
|
11254
11261
|
}, Q1 = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
|
11255
11262
|
function rr(r, e) {
|
|
11256
11263
|
var t = er(r);
|
|
11257
|
-
if (t &&
|
|
11264
|
+
if (t && W.contains(Q1, t.text))
|
|
11258
11265
|
return t;
|
|
11259
11266
|
throw t ? new H("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new H("Invalid delimiter type '" + r.type + "'", r);
|
|
11260
11267
|
}
|
|
@@ -11402,7 +11409,7 @@ q({
|
|
|
11402
11409
|
}
|
|
11403
11410
|
});
|
|
11404
11411
|
var bn = (r, e) => {
|
|
11405
|
-
var t = C.wrapFragment(ne(r.body, e), e), n = r.label.slice(1), a = e.sizeMultiplier, s, i = 0, o =
|
|
11412
|
+
var t = C.wrapFragment(ne(r.body, e), e), n = r.label.slice(1), a = e.sizeMultiplier, s, i = 0, o = W.isCharacterBox(r.body);
|
|
11406
11413
|
if (n === "sout")
|
|
11407
11414
|
s = C.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / a, i = -0.5 * e.fontMetrics().xHeight;
|
|
11408
11415
|
else if (n === "phase") {
|
|
@@ -11799,23 +11806,23 @@ var ct = function(e, t) {
|
|
|
11799
11806
|
}
|
|
11800
11807
|
if (!(a >= o)) {
|
|
11801
11808
|
var et = void 0;
|
|
11802
|
-
(a > 0 || e.hskipBeforeAndAfter) && (et =
|
|
11803
|
-
var
|
|
11809
|
+
(a > 0 || e.hskipBeforeAndAfter) && (et = W.deflt(ie.pregap, g), et !== 0 && ($e = C.makeSpan(["arraycolsep"], []), $e.style.width = N(et), me.push($e)));
|
|
11810
|
+
var st = [];
|
|
11804
11811
|
for (n = 0; n < s; ++n) {
|
|
11805
11812
|
var Ft = u[n], St = Ft[a];
|
|
11806
11813
|
if (St) {
|
|
11807
11814
|
var Gt = Ft.pos - ae;
|
|
11808
|
-
St.depth = Ft.depth, St.height = Ft.height,
|
|
11815
|
+
St.depth = Ft.depth, St.height = Ft.height, st.push({
|
|
11809
11816
|
type: "elem",
|
|
11810
11817
|
elem: St,
|
|
11811
11818
|
shift: Gt
|
|
11812
11819
|
});
|
|
11813
11820
|
}
|
|
11814
11821
|
}
|
|
11815
|
-
|
|
11822
|
+
st = C.makeVList({
|
|
11816
11823
|
positionType: "individualShift",
|
|
11817
|
-
children:
|
|
11818
|
-
}, t),
|
|
11824
|
+
children: st
|
|
11825
|
+
}, t), st = C.makeSpan(["col-align-" + (ie.align || "c")], [st]), me.push(st), (a < o - 1 || e.hskipBeforeAndAfter) && (et = W.deflt(ie.postgap, g), et !== 0 && ($e = C.makeSpan(["arraycolsep"], []), $e.style.width = N(et), me.push($e)));
|
|
11819
11826
|
}
|
|
11820
11827
|
}
|
|
11821
11828
|
if (u = C.makeSpan(["mtable"], me), h.length > 0) {
|
|
@@ -12109,7 +12116,7 @@ ut({
|
|
|
12109
12116
|
numArgs: 0
|
|
12110
12117
|
},
|
|
12111
12118
|
handler(r) {
|
|
12112
|
-
|
|
12119
|
+
W.contains(["gather", "gather*"], r.envName) && nr(r);
|
|
12113
12120
|
var e = {
|
|
12114
12121
|
cols: [{
|
|
12115
12122
|
type: "align",
|
|
@@ -12285,7 +12292,7 @@ q({
|
|
|
12285
12292
|
handler: (r, e) => {
|
|
12286
12293
|
var {
|
|
12287
12294
|
parser: t
|
|
12288
|
-
} = r, n = e[0], a =
|
|
12295
|
+
} = r, n = e[0], a = W.isCharacterBox(n);
|
|
12289
12296
|
return {
|
|
12290
12297
|
type: "mclass",
|
|
12291
12298
|
mode: t.mode,
|
|
@@ -13165,7 +13172,7 @@ q({
|
|
|
13165
13172
|
});
|
|
13166
13173
|
var Ns = (r, e, t, n, a, s, i) => {
|
|
13167
13174
|
r = C.makeSpan([], [r]);
|
|
13168
|
-
var o = t &&
|
|
13175
|
+
var o = t && W.isCharacterBox(t), u, h;
|
|
13169
13176
|
if (e) {
|
|
13170
13177
|
var d = ne(e, n.havingStyle(a.sup()), n);
|
|
13171
13178
|
h = {
|
|
@@ -13263,7 +13270,7 @@ var Ns = (r, e, t, n, a, s, i) => {
|
|
|
13263
13270
|
var t, n, a = !1, s;
|
|
13264
13271
|
r.type === "supsub" ? (t = r.sup, n = r.sub, s = te(r.base, "op"), a = !0) : s = te(r, "op");
|
|
13265
13272
|
var i = e.style, o = !1;
|
|
13266
|
-
i.size === K.DISPLAY.size && s.symbol && !
|
|
13273
|
+
i.size === K.DISPLAY.size && s.symbol && !W.contains(Ps, s.name) && (o = !0);
|
|
13267
13274
|
var u;
|
|
13268
13275
|
if (s.symbol) {
|
|
13269
13276
|
var h = o ? "Size2-Regular" : "Size1-Regular", d = "";
|
|
@@ -13295,7 +13302,7 @@ var Ns = (r, e, t, n, a, s, i) => {
|
|
|
13295
13302
|
}, w0 = (r, e) => {
|
|
13296
13303
|
var t;
|
|
13297
13304
|
if (r.symbol)
|
|
13298
|
-
t = new Ye("mo", [Qe(r.name, r.mode)]),
|
|
13305
|
+
t = new Ye("mo", [Qe(r.name, r.mode)]), W.contains(Ps, r.name) && t.setAttribute("largeop", "false");
|
|
13299
13306
|
else if (r.body)
|
|
13300
13307
|
t = new Ye("mo", Pe(r.body, e));
|
|
13301
13308
|
else {
|
|
@@ -13957,7 +13964,7 @@ var i2 = function(e, t) {
|
|
|
13957
13964
|
return s ? qs : null;
|
|
13958
13965
|
} else {
|
|
13959
13966
|
if (n.type === "accent")
|
|
13960
|
-
return
|
|
13967
|
+
return W.isCharacterBox(n.base) ? yn : null;
|
|
13961
13968
|
if (n.type === "horizBrace") {
|
|
13962
13969
|
var i = !e.sub;
|
|
13963
13970
|
return i === n.isOver ? Ls : null;
|
|
@@ -13976,7 +13983,7 @@ Vt({
|
|
|
13976
13983
|
base: n,
|
|
13977
13984
|
sup: a,
|
|
13978
13985
|
sub: s
|
|
13979
|
-
} = r, i = ne(n, e), o, u, h = e.fontMetrics(), d = 0, m = 0, g = n &&
|
|
13986
|
+
} = r, i = ne(n, e), o, u, h = e.fontMetrics(), d = 0, m = 0, g = n && W.isCharacterBox(n);
|
|
13980
13987
|
if (a) {
|
|
13981
13988
|
var y = e.havingStyle(e.style.sup());
|
|
13982
13989
|
o = ne(a, y, e), g || (d = i.height - y.fontMetrics().supDrop * y.sizeMultiplier / e.sizeMultiplier);
|
|
@@ -14712,7 +14719,7 @@ var ba = {
|
|
|
14712
14719
|
};
|
|
14713
14720
|
f("\\dots", function(r) {
|
|
14714
14721
|
var e = "\\dotso", t = r.expandAfterFuture().text;
|
|
14715
|
-
return t in ba ? e = ba[t] : (t.slice(0, 4) === "\\not" || t in ue.math &&
|
|
14722
|
+
return t in ba ? e = ba[t] : (t.slice(0, 4) === "\\not" || t in ue.math && W.contains(["bin", "rel"], ue.math[t].group)) && (e = "\\dotsb"), e;
|
|
14716
14723
|
});
|
|
14717
14724
|
var jn = {
|
|
14718
14725
|
// \rightdelim@ checks for the following:
|
|
@@ -14786,7 +14793,7 @@ f("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
|
14786
14793
|
f("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
|
14787
14794
|
f("\\newline", "\\\\\\relax");
|
|
14788
14795
|
f("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
|
14789
|
-
var Ws = N(
|
|
14796
|
+
var Ws = N(ot["Main-Regular"][84][1] - 0.7 * ot["Main-Regular"][65][1]);
|
|
14790
14797
|
f("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Ws + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
|
14791
14798
|
f("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Ws + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
|
14792
14799
|
f("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
|
@@ -16534,7 +16541,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16534
16541
|
block: { type: Boolean, default: !1 }
|
|
16535
16542
|
},
|
|
16536
16543
|
setup(r) {
|
|
16537
|
-
const e = r, t =
|
|
16544
|
+
const e = r, t = U(null), n = () => {
|
|
16538
16545
|
if (t.value)
|
|
16539
16546
|
try {
|
|
16540
16547
|
x2.render(e.expression, t.value, {
|
|
@@ -16549,7 +16556,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16549
16556
|
key: JSON.stringify(e),
|
|
16550
16557
|
ref_key: "targetRef",
|
|
16551
16558
|
ref: t,
|
|
16552
|
-
style:
|
|
16559
|
+
style: Y({
|
|
16553
16560
|
"--margin-block": e.block ? "3rem" : void 0
|
|
16554
16561
|
})
|
|
16555
16562
|
}, {
|
|
@@ -16618,7 +16625,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16618
16625
|
}, null, 2)
|
|
16619
16626
|
], 2),
|
|
16620
16627
|
L("div", {
|
|
16621
|
-
style:
|
|
16628
|
+
style: Y({ minHeight: e.minHeight })
|
|
16622
16629
|
}, [
|
|
16623
16630
|
Se(e.$slots, "default")
|
|
16624
16631
|
], 4)
|
|
@@ -16643,7 +16650,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16643
16650
|
const e = an(r, "isOpen");
|
|
16644
16651
|
return (t, n) => (I(), O("div", {
|
|
16645
16652
|
class: _(t.$style.provider),
|
|
16646
|
-
style:
|
|
16653
|
+
style: Y({
|
|
16647
16654
|
"--opacity": e.value ? 1 : 0,
|
|
16648
16655
|
"--pointer-events": e.value ? "auto" : "none"
|
|
16649
16656
|
}),
|
|
@@ -16654,7 +16661,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16654
16661
|
e.value ? (I(), O("div", {
|
|
16655
16662
|
key: 0,
|
|
16656
16663
|
class: _(t.$style.modal),
|
|
16657
|
-
style:
|
|
16664
|
+
style: Y({
|
|
16658
16665
|
"--width": t.width
|
|
16659
16666
|
})
|
|
16660
16667
|
}, [
|
|
@@ -16681,7 +16688,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16681
16688
|
return (t, n) => (I(), O(we, null, [
|
|
16682
16689
|
L("div", {
|
|
16683
16690
|
class: _(t.$style.parallax),
|
|
16684
|
-
style:
|
|
16691
|
+
style: Y({
|
|
16685
16692
|
backgroundImage: `url(${t.imageUrl1})`,
|
|
16686
16693
|
transform: `scale(1.2) translateY(${P(e) / 400}%)`,
|
|
16687
16694
|
transformOrigin: "bottom"
|
|
@@ -16689,7 +16696,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16689
16696
|
}, null, 6),
|
|
16690
16697
|
L("div", {
|
|
16691
16698
|
class: _(t.$style.parallax),
|
|
16692
|
-
style:
|
|
16699
|
+
style: Y({
|
|
16693
16700
|
backgroundImage: `url(${t.imageUrl2})`,
|
|
16694
16701
|
transform: `scale(1.2) translateY(${P(e) / 900}%)`,
|
|
16695
16702
|
transformOrigin: "bottom"
|
|
@@ -16717,7 +16724,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16717
16724
|
};
|
|
16718
16725
|
return (n, a) => (I(), O("div", {
|
|
16719
16726
|
class: _(n.$style.toggle),
|
|
16720
|
-
style:
|
|
16727
|
+
style: Y({ "--margin-block": n.margin })
|
|
16721
16728
|
}, [
|
|
16722
16729
|
L("div", {
|
|
16723
16730
|
class: _(n.$style.summary),
|
|
@@ -16726,7 +16733,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16726
16733
|
L("div", Y2, [
|
|
16727
16734
|
X(P(P0), {
|
|
16728
16735
|
class: _(n.$style.icon),
|
|
16729
|
-
style:
|
|
16736
|
+
style: Y({ "--rotate": e.value ? "90deg" : "0deg" })
|
|
16730
16737
|
}, null, 8, ["class", "style"]),
|
|
16731
16738
|
L("div", null, [
|
|
16732
16739
|
n.summary != null ? (I(), Me(ye, {
|
|
@@ -16737,7 +16744,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16737
16744
|
]),
|
|
16738
16745
|
X(P(Io), {
|
|
16739
16746
|
class: _(n.$style.icon),
|
|
16740
|
-
style:
|
|
16747
|
+
style: Y({
|
|
16741
16748
|
"--rotate": e.value ? "135deg" : "0deg",
|
|
16742
16749
|
"--color": e.value ? "#b36472" : void 0
|
|
16743
16750
|
})
|
|
@@ -16783,7 +16790,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16783
16790
|
}, null, 10, ru),
|
|
16784
16791
|
L("div", {
|
|
16785
16792
|
class: _(e.$style.container),
|
|
16786
|
-
style:
|
|
16793
|
+
style: Y({
|
|
16787
16794
|
"--weight": e.weight,
|
|
16788
16795
|
"--border-radius": e.round ? "calc(var(--weight) / 2)" : void 0,
|
|
16789
16796
|
"--color": e.color
|
|
@@ -16791,7 +16798,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16791
16798
|
}, [
|
|
16792
16799
|
L("div", {
|
|
16793
16800
|
class: _(e.$style.value),
|
|
16794
|
-
style:
|
|
16801
|
+
style: Y({
|
|
16795
16802
|
"--scale-x": `scaleX(${e.loading ? 0 : e.value / e.max})`
|
|
16796
16803
|
})
|
|
16797
16804
|
}, null, 6),
|
|
@@ -16801,7 +16808,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16801
16808
|
}, null, 2)) : _e("", !0),
|
|
16802
16809
|
L("div", {
|
|
16803
16810
|
class: _(e.$style.buffer),
|
|
16804
|
-
style:
|
|
16811
|
+
style: Y({
|
|
16805
16812
|
"--scale-x": `scaleX(${e.loading ? 0 : e.buffer != null ? e.buffer / e.max : e.value / e.max})`
|
|
16806
16813
|
})
|
|
16807
16814
|
}, null, 6)
|
|
@@ -16824,7 +16831,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16824
16831
|
round: { type: Boolean, default: !0 }
|
|
16825
16832
|
},
|
|
16826
16833
|
setup(r) {
|
|
16827
|
-
const e = r, t =
|
|
16834
|
+
const e = r, t = lt(() => e.progress.reduce((a, s) => a + s.value, 0)), n = lt(() => {
|
|
16828
16835
|
let a = 0;
|
|
16829
16836
|
return e.progress.map((s) => {
|
|
16830
16837
|
const i = s.value / t.value * 100, o = a;
|
|
@@ -16833,7 +16840,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16833
16840
|
});
|
|
16834
16841
|
return (a, s) => (I(), O("div", {
|
|
16835
16842
|
class: _(a.$style.container),
|
|
16836
|
-
style:
|
|
16843
|
+
style: Y({
|
|
16837
16844
|
"--weight": a.weight,
|
|
16838
16845
|
"--border-radius": a.round ? "calc(var(--weight) / 2)" : void 0
|
|
16839
16846
|
})
|
|
@@ -16841,7 +16848,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16841
16848
|
(I(!0), O(we, null, Tt(n.value, (i) => (I(), O("div", {
|
|
16842
16849
|
key: a.index,
|
|
16843
16850
|
class: _(a.$style.bar),
|
|
16844
|
-
style:
|
|
16851
|
+
style: Y({
|
|
16845
16852
|
"--transform": `translateX(${i.start}%) scaleX(${i.scale})`,
|
|
16846
16853
|
"--color": i.color
|
|
16847
16854
|
})
|
|
@@ -16875,13 +16882,13 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16875
16882
|
setup(r) {
|
|
16876
16883
|
return (e, t) => (I(), O("div", {
|
|
16877
16884
|
class: _(e.$style.wrapper),
|
|
16878
|
-
style:
|
|
16885
|
+
style: Y({ width: e.size, height: e.size })
|
|
16879
16886
|
}, [
|
|
16880
16887
|
(I(), O(we, null, Tt(3, (n) => L("div", {
|
|
16881
16888
|
class: _(e.$style.dot),
|
|
16882
16889
|
"aria-hidden": "",
|
|
16883
16890
|
key: n,
|
|
16884
|
-
style:
|
|
16891
|
+
style: Y({ backgroundColor: e.color })
|
|
16885
16892
|
}, null, 6)), 64))
|
|
16886
16893
|
], 6));
|
|
16887
16894
|
}
|
|
@@ -16922,7 +16929,7 @@ const w2 = /* @__PURE__ */ G({
|
|
|
16922
16929
|
[e.$style.primary]: e.primary
|
|
16923
16930
|
}
|
|
16924
16931
|
]),
|
|
16925
|
-
style:
|
|
16932
|
+
style: Y({
|
|
16926
16933
|
display: e.block ? "flex" : "inline-flex",
|
|
16927
16934
|
width: e.block ? "100%" : "auto",
|
|
16928
16935
|
cursor: e.disabled ? "not-allowed" : e.loading ? "progress" : "pointer",
|
|
@@ -17361,15 +17368,15 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17361
17368
|
id: {}
|
|
17362
17369
|
},
|
|
17363
17370
|
setup(r) {
|
|
17364
|
-
const e =
|
|
17365
|
-
return
|
|
17371
|
+
const e = U(null), t = U(!1);
|
|
17372
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
17366
17373
|
t.value = n;
|
|
17367
17374
|
}), (n, a) => (I(), O("h1", {
|
|
17368
17375
|
ref_key: "target",
|
|
17369
17376
|
ref: e,
|
|
17370
17377
|
class: _(n.$style.h1),
|
|
17371
17378
|
id: n.id ?? P(nt)(n.text),
|
|
17372
|
-
style:
|
|
17379
|
+
style: Y({
|
|
17373
17380
|
"--scale": t.value ? 1 : 0,
|
|
17374
17381
|
"--font-size": n.size,
|
|
17375
17382
|
"--opacity": t.value ? 1 : 0
|
|
@@ -17426,8 +17433,8 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17426
17433
|
id: {}
|
|
17427
17434
|
},
|
|
17428
17435
|
setup(r) {
|
|
17429
|
-
const e =
|
|
17430
|
-
return
|
|
17436
|
+
const e = U(null), t = U(!1);
|
|
17437
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
17431
17438
|
t.value = n;
|
|
17432
17439
|
}), (n, a) => (I(), O(we, null, [
|
|
17433
17440
|
L("h2", {
|
|
@@ -17435,7 +17442,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17435
17442
|
ref: e,
|
|
17436
17443
|
class: _(n.$style.h2),
|
|
17437
17444
|
id: n.id ?? P(nt)(n.text),
|
|
17438
|
-
style:
|
|
17445
|
+
style: Y({
|
|
17439
17446
|
"--scale": t.value ? 1 : 0,
|
|
17440
17447
|
"--font-size": n.size,
|
|
17441
17448
|
"--opacity": t.value ? 1 : 0
|
|
@@ -17465,8 +17472,8 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17465
17472
|
id: {}
|
|
17466
17473
|
},
|
|
17467
17474
|
setup(r) {
|
|
17468
|
-
const e =
|
|
17469
|
-
return
|
|
17475
|
+
const e = U(null), t = U(!1);
|
|
17476
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
17470
17477
|
t.value = n;
|
|
17471
17478
|
}), (n, a) => (I(), O(we, null, [
|
|
17472
17479
|
L("h3", {
|
|
@@ -17474,7 +17481,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17474
17481
|
ref: e,
|
|
17475
17482
|
class: _(n.$style.h3),
|
|
17476
17483
|
id: n.id ?? P(nt)(n.text),
|
|
17477
|
-
style:
|
|
17484
|
+
style: Y({ "--font-size": n.size, "--opacity": t.value ? 1 : 0 })
|
|
17478
17485
|
}, Ce(n.text), 15, f4),
|
|
17479
17486
|
X(k0, {
|
|
17480
17487
|
id: n.id ?? P(nt)(n.text)
|
|
@@ -17497,7 +17504,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17497
17504
|
L("h4", {
|
|
17498
17505
|
class: _(e.$style.h4),
|
|
17499
17506
|
id: e.id ?? P(nt)(e.text),
|
|
17500
|
-
style:
|
|
17507
|
+
style: Y({ "--font-size": e.size })
|
|
17501
17508
|
}, Ce(e.text), 15, x4),
|
|
17502
17509
|
X(k0, {
|
|
17503
17510
|
id: e.id ?? P(nt)(e.text)
|
|
@@ -17520,7 +17527,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17520
17527
|
L("h5", {
|
|
17521
17528
|
class: _(e.$style.h5),
|
|
17522
17529
|
id: e.id ?? P(nt)(e.text),
|
|
17523
|
-
style:
|
|
17530
|
+
style: Y({ "--font-size": e.size })
|
|
17524
17531
|
}, Ce(e.text), 15, j4),
|
|
17525
17532
|
X(k0, {
|
|
17526
17533
|
id: e.id ?? P(nt)(e.text)
|
|
@@ -17543,7 +17550,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17543
17550
|
L("h6", {
|
|
17544
17551
|
class: _(e.$style.h6),
|
|
17545
17552
|
id: e.id ?? P(nt)(e.text),
|
|
17546
|
-
style:
|
|
17553
|
+
style: Y({ "--font-size": e.size })
|
|
17547
17554
|
}, Ce(e.text), 15, I4),
|
|
17548
17555
|
X(k0, {
|
|
17549
17556
|
id: e.id ?? P(nt)(e.text)
|
|
@@ -17572,7 +17579,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17572
17579
|
[e.$style.pending]: !e.loading && e.pending
|
|
17573
17580
|
}
|
|
17574
17581
|
]),
|
|
17575
|
-
style:
|
|
17582
|
+
style: Y({
|
|
17576
17583
|
"--size": e.size,
|
|
17577
17584
|
transform: e.direction === "up" ? "rotate(270deg)" : e.direction === "down" ? "rotate(90deg)" : e.direction === "left" ? "rotate(180deg)" : "rotate(0deg)"
|
|
17578
17585
|
})
|
|
@@ -17631,7 +17638,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17631
17638
|
size: { default: 128 }
|
|
17632
17639
|
},
|
|
17633
17640
|
setup(r) {
|
|
17634
|
-
const e = r, t =
|
|
17641
|
+
const e = r, t = lt(() => `translateZ(${e.size / 2}px)`), n = [
|
|
17635
17642
|
{ name: "front", rotate: "" },
|
|
17636
17643
|
{ name: "back", rotate: "rotateY(180deg)" },
|
|
17637
17644
|
{ name: "left", rotate: "rotateY(-90deg)" },
|
|
@@ -17641,7 +17648,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17641
17648
|
];
|
|
17642
17649
|
return (a, s) => (I(), O("div", {
|
|
17643
17650
|
class: _(a.$style.cube),
|
|
17644
|
-
style:
|
|
17651
|
+
style: Y({
|
|
17645
17652
|
width: `${a.size}px`,
|
|
17646
17653
|
height: `${a.size}px`
|
|
17647
17654
|
})
|
|
@@ -17649,7 +17656,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17649
17656
|
(I(), O(we, null, Tt(n, (i) => L("div", {
|
|
17650
17657
|
key: i.name,
|
|
17651
17658
|
class: _(a.$style.face),
|
|
17652
|
-
style:
|
|
17659
|
+
style: Y({
|
|
17653
17660
|
transform: `${i.rotate} ${t.value}`
|
|
17654
17661
|
})
|
|
17655
17662
|
}, null, 6)), 64))
|
|
@@ -17675,7 +17682,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17675
17682
|
e.isLoading ? de(sr, { size: e.size }) : e.isLogin ? P(fo) : P(mo)
|
|
17676
17683
|
), {
|
|
17677
17684
|
class: _(e.$style.icon),
|
|
17678
|
-
style:
|
|
17685
|
+
style: Y({
|
|
17679
17686
|
"--width": e.size,
|
|
17680
17687
|
"--color": e.isLogin ? "#b36472" : "#6987b8"
|
|
17681
17688
|
})
|
|
@@ -17695,7 +17702,7 @@ const Qc = ["id"], e4 = /* @__PURE__ */ G({
|
|
|
17695
17702
|
$style: id
|
|
17696
17703
|
}, rm = /* @__PURE__ */ J(ad, [["__cssModules", od]]), Ea = "elmethis-theme";
|
|
17697
17704
|
function ld() {
|
|
17698
|
-
const r =
|
|
17705
|
+
const r = U(!1), e = () => {
|
|
17699
17706
|
r.value = !r.value;
|
|
17700
17707
|
};
|
|
17701
17708
|
return Ke(r, () => {
|
|
@@ -19016,7 +19023,7 @@ const dh = {
|
|
|
19016
19023
|
return (n, a) => (I(), O("a", {
|
|
19017
19024
|
class: _(n.$style.link),
|
|
19018
19025
|
href: n.href,
|
|
19019
|
-
style:
|
|
19026
|
+
style: Y({ "--font-size": n.size }),
|
|
19020
19027
|
target: n.openInNewTab ? "_blank" : void 0,
|
|
19021
19028
|
rel: "noopener noreferrer",
|
|
19022
19029
|
onClick: t
|
|
@@ -19083,7 +19090,7 @@ const dh = {
|
|
|
19083
19090
|
}
|
|
19084
19091
|
return (n, a) => (I(), O("div", {
|
|
19085
19092
|
class: _(n.$style.file),
|
|
19086
|
-
style:
|
|
19093
|
+
style: Y({ "--margin-block": n.margin })
|
|
19087
19094
|
}, [
|
|
19088
19095
|
L("div", {
|
|
19089
19096
|
class: _(n.$style["left-container"])
|
|
@@ -19133,7 +19140,7 @@ const dh = {
|
|
|
19133
19140
|
margin: {}
|
|
19134
19141
|
},
|
|
19135
19142
|
setup(r) {
|
|
19136
|
-
const e = r, { isLoading: t, error: n } = cl({ src: e.src }), a =
|
|
19143
|
+
const e = r, { isLoading: t, error: n } = cl({ src: e.src }), a = U(!1);
|
|
19137
19144
|
return rl("Escape", (s) => {
|
|
19138
19145
|
s.preventDefault(), a.value = !1;
|
|
19139
19146
|
}), (s, i) => (I(), O(we, null, [
|
|
@@ -19152,7 +19159,7 @@ const dh = {
|
|
|
19152
19159
|
], 2)) : P(t) ? (I(), O("div", {
|
|
19153
19160
|
key: 1,
|
|
19154
19161
|
class: _(s.$style.fallback),
|
|
19155
|
-
style:
|
|
19162
|
+
style: Y({ "--margin-block": s.margin })
|
|
19156
19163
|
}, [
|
|
19157
19164
|
X(xu),
|
|
19158
19165
|
L("div", null, [
|
|
@@ -19166,7 +19173,7 @@ const dh = {
|
|
|
19166
19173
|
onClick: i[0] || (i[0] = () => {
|
|
19167
19174
|
s.enableModal && (a.value = !0);
|
|
19168
19175
|
}),
|
|
19169
|
-
style:
|
|
19176
|
+
style: Y({
|
|
19170
19177
|
"--height": P(t) ? "0" : "auto",
|
|
19171
19178
|
"--opacity": P(t) ? 0 : 1,
|
|
19172
19179
|
"--cursor": s.enableModal ? "zoom-in" : "inherit",
|
|
@@ -19230,7 +19237,7 @@ const dh = {
|
|
|
19230
19237
|
href: n.url,
|
|
19231
19238
|
target: n.openInNewTab ? "_blank" : void 0,
|
|
19232
19239
|
rel: "noopener noreferrer",
|
|
19233
|
-
style:
|
|
19240
|
+
style: Y({
|
|
19234
19241
|
"--flex-direction": n.isHorizontal ? "row" : "column",
|
|
19235
19242
|
"--container-height": n.isHorizontal ? "150px" : "auto",
|
|
19236
19243
|
"--image-max-width": n.isHorizontal ? "32%" : "100%",
|
|
@@ -19315,14 +19322,14 @@ const dh = {
|
|
|
19315
19322
|
links: {}
|
|
19316
19323
|
},
|
|
19317
19324
|
setup(r) {
|
|
19318
|
-
const e =
|
|
19319
|
-
return
|
|
19325
|
+
const e = U(null), t = U(!1);
|
|
19326
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
19320
19327
|
t.value = n;
|
|
19321
19328
|
}), (n, a) => (I(), O("nav", {
|
|
19322
19329
|
class: _(n.$style.container),
|
|
19323
19330
|
ref_key: "target",
|
|
19324
19331
|
ref: e,
|
|
19325
|
-
style:
|
|
19332
|
+
style: Y({
|
|
19326
19333
|
"--opacity": t.value ? 1 : 0
|
|
19327
19334
|
})
|
|
19328
19335
|
}, [
|
|
@@ -19335,14 +19342,14 @@ const dh = {
|
|
|
19335
19342
|
i === 0 ? P(To) : i === n.links.length - 1 ? P(ko) : P(Ao)
|
|
19336
19343
|
), {
|
|
19337
19344
|
class: _([n.$style.icon, n.$style.fade]),
|
|
19338
|
-
style:
|
|
19345
|
+
style: Y({
|
|
19339
19346
|
"--delay": `${i * 100}ms`
|
|
19340
19347
|
})
|
|
19341
19348
|
}, null, 8, ["class", "style"])),
|
|
19342
19349
|
X(ye, {
|
|
19343
19350
|
text: s.text,
|
|
19344
19351
|
class: _(n.$style.fade),
|
|
19345
|
-
style:
|
|
19352
|
+
style: Y({
|
|
19346
19353
|
"--delay": `${i * 100 + 50}ms`
|
|
19347
19354
|
})
|
|
19348
19355
|
}, null, 8, ["text", "class", "style"])
|
|
@@ -19350,7 +19357,7 @@ const dh = {
|
|
|
19350
19357
|
n.links.length !== i + 1 ? (I(), Me(P(P0), {
|
|
19351
19358
|
key: 0,
|
|
19352
19359
|
class: _([n.$style.chevron, n.$style.fade]),
|
|
19353
|
-
style:
|
|
19360
|
+
style: Y({
|
|
19354
19361
|
"--delay": `${i * 100 + 100}ms`
|
|
19355
19362
|
})
|
|
19356
19363
|
}, null, 8, ["class", "style"])) : _e("", !0)
|
|
@@ -19371,7 +19378,7 @@ const dh = {
|
|
|
19371
19378
|
position: { default: "right" }
|
|
19372
19379
|
},
|
|
19373
19380
|
setup(r) {
|
|
19374
|
-
const e =
|
|
19381
|
+
const e = U(!1), { y: t } = ts();
|
|
19375
19382
|
Ke(
|
|
19376
19383
|
() => t.value,
|
|
19377
19384
|
() => {
|
|
@@ -19383,7 +19390,7 @@ const dh = {
|
|
|
19383
19390
|
};
|
|
19384
19391
|
return (a, s) => (I(), O("nav", {
|
|
19385
19392
|
class: _([a.$style.wrapper, { [a.$style["wrapper--visible"]]: e.value }]),
|
|
19386
|
-
style:
|
|
19393
|
+
style: Y({
|
|
19387
19394
|
"--size": "64px",
|
|
19388
19395
|
left: a.position === "left" ? "0" : "auto",
|
|
19389
19396
|
right: a.position === "right" ? "0" : "auto"
|
|
@@ -19427,7 +19434,7 @@ const dh = {
|
|
|
19427
19434
|
(I(!0), O(we, null, Tt(e.headings, (n) => (I(), O("a", {
|
|
19428
19435
|
class: _(e.$style.link),
|
|
19429
19436
|
href: `#${n.id ?? n.text}`,
|
|
19430
|
-
style:
|
|
19437
|
+
style: Y({ "--padding-left": `${n.level * 0.5}rem` })
|
|
19431
19438
|
}, [
|
|
19432
19439
|
L("sup", null, [
|
|
19433
19440
|
X(ye, {
|
|
@@ -19859,14 +19866,14 @@ const X0 = function() {
|
|
|
19859
19866
|
}(), hp = X0.fetch ? (...r) => X0.fetch(...r) : () => Promise.reject(new Error("[ofetch] global.fetch is not supported!")), pp = X0.Headers, mp = X0.AbortController, fp = Pi({ fetch: hp, Headers: pp, AbortController: mp }), vp = /* @__PURE__ */ G({
|
|
19860
19867
|
__name: "ElmParagraph",
|
|
19861
19868
|
setup(r) {
|
|
19862
|
-
const e =
|
|
19863
|
-
return
|
|
19869
|
+
const e = U(null), t = U(!1);
|
|
19870
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
19864
19871
|
t.value = n;
|
|
19865
19872
|
}), (n, a) => (I(), O("p", {
|
|
19866
19873
|
ref_key: "target",
|
|
19867
19874
|
ref: e,
|
|
19868
19875
|
class: _(n.$style.paragraph),
|
|
19869
|
-
style:
|
|
19876
|
+
style: Y({
|
|
19870
19877
|
"--opacity": t.value ? 1 : 0
|
|
19871
19878
|
})
|
|
19872
19879
|
}, [
|
|
@@ -19900,14 +19907,14 @@ const X0 = function() {
|
|
|
19900
19907
|
margin: {}
|
|
19901
19908
|
},
|
|
19902
19909
|
setup(r) {
|
|
19903
|
-
const e =
|
|
19904
|
-
return
|
|
19910
|
+
const e = U(null), t = U(!1);
|
|
19911
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
19905
19912
|
t.value = n;
|
|
19906
19913
|
}), (n, a) => (I(), O("hr", {
|
|
19907
19914
|
ref_key: "target",
|
|
19908
19915
|
ref: e,
|
|
19909
19916
|
class: _(n.$style.divider),
|
|
19910
|
-
style:
|
|
19917
|
+
style: Y({
|
|
19911
19918
|
"--scale": t.value ? 1 : 0,
|
|
19912
19919
|
"--margin-block": n.margin
|
|
19913
19920
|
})
|
|
@@ -19920,14 +19927,14 @@ const X0 = function() {
|
|
|
19920
19927
|
}, Vi = /* @__PURE__ */ J(xp, [["__cssModules", Sp]]), Gi = /* @__PURE__ */ G({
|
|
19921
19928
|
__name: "ElmBulletedList",
|
|
19922
19929
|
setup(r) {
|
|
19923
|
-
const e =
|
|
19924
|
-
return
|
|
19930
|
+
const e = U(null), t = U(!1);
|
|
19931
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
19925
19932
|
t.value = n;
|
|
19926
19933
|
}), (n, a) => (I(), O("ul", {
|
|
19927
19934
|
ref_key: "target",
|
|
19928
19935
|
ref: e,
|
|
19929
19936
|
class: "elmethis-bulleted-list",
|
|
19930
|
-
style:
|
|
19937
|
+
style: Y({
|
|
19931
19938
|
"--opacity": t.value ? 1 : 0
|
|
19932
19939
|
})
|
|
19933
19940
|
}, [
|
|
@@ -19950,14 +19957,14 @@ const X0 = function() {
|
|
|
19950
19957
|
}, Qr = /* @__PURE__ */ J(Mp, [["__cssModules", zp]]), Ui = /* @__PURE__ */ G({
|
|
19951
19958
|
__name: "ElmNumberedList",
|
|
19952
19959
|
setup(r) {
|
|
19953
|
-
const e =
|
|
19954
|
-
return
|
|
19960
|
+
const e = U(null), t = U(!1);
|
|
19961
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
19955
19962
|
t.value = n;
|
|
19956
19963
|
}), (n, a) => (I(), O("ol", {
|
|
19957
19964
|
ref_key: "target",
|
|
19958
19965
|
ref: e,
|
|
19959
19966
|
class: "elmethis-numbered-list",
|
|
19960
|
-
style:
|
|
19967
|
+
style: Y({
|
|
19961
19968
|
"--opacity": t.value ? 1 : 0
|
|
19962
19969
|
})
|
|
19963
19970
|
}, [
|
|
@@ -19971,7 +19978,7 @@ const X0 = function() {
|
|
|
19971
19978
|
endpoint: {}
|
|
19972
19979
|
},
|
|
19973
19980
|
setup(r) {
|
|
19974
|
-
const e = r, t =
|
|
19981
|
+
const e = r, t = U([]), n = U(!0);
|
|
19975
19982
|
qt(async () => {
|
|
19976
19983
|
n.value = !0, t.value = await a(e.id, e.endpoint), n.value = !1;
|
|
19977
19984
|
});
|
|
@@ -20917,13 +20924,13 @@ const f3 = /* @__PURE__ */ G({
|
|
|
20917
20924
|
setup(r) {
|
|
20918
20925
|
const e = r, { blue: t, green: n, red: a } = It(e.color), { hue: s, saturation: i, lightness: o } = kt(e.color), u = o3(It(e.color)), h = `rgb(${a}, ${n}, ${t})`, d = `hsl(${Math.floor(s)}, ${Math.floor(i * 100)}%, ${Math.floor(o * 100)}%)`, { copy: m, copied: g } = on();
|
|
20919
20926
|
return (y, x) => (I(), O("div", {
|
|
20920
|
-
style:
|
|
20927
|
+
style: Y({ "--color": y.color })
|
|
20921
20928
|
}, [
|
|
20922
20929
|
X(ln, null, {
|
|
20923
20930
|
original: Oe(() => [
|
|
20924
20931
|
L("div", {
|
|
20925
20932
|
class: _(y.$style["color-bg"]),
|
|
20926
|
-
style:
|
|
20933
|
+
style: Y({
|
|
20927
20934
|
"--background-color": y.color
|
|
20928
20935
|
}),
|
|
20929
20936
|
onClick: x[0] || (x[0] = (k) => P(m)(P(u)))
|
|
@@ -20980,7 +20987,7 @@ const f3 = /* @__PURE__ */ G({
|
|
|
20980
20987
|
}, [
|
|
20981
20988
|
L("div", {
|
|
20982
20989
|
class: _(e.$style["color-name"]),
|
|
20983
|
-
style:
|
|
20990
|
+
style: Y({ "--color": n.code })
|
|
20984
20991
|
}, Ce(n.name), 7),
|
|
20985
20992
|
(I(), O(we, null, Tt([
|
|
20986
20993
|
-0.2,
|
|
@@ -21016,14 +21023,14 @@ const f3 = /* @__PURE__ */ G({
|
|
|
21016
21023
|
important: { code: "#9771bd", icon: _o },
|
|
21017
21024
|
warning: { code: "#b8a36e", icon: Mo },
|
|
21018
21025
|
caution: { code: "#b36472", icon: Oo }
|
|
21019
|
-
}, t =
|
|
21020
|
-
return
|
|
21026
|
+
}, t = U(null), n = U(!1);
|
|
21027
|
+
return at(t, ([{ isIntersecting: a }], s) => {
|
|
21021
21028
|
n.value = a;
|
|
21022
21029
|
}), (a, s) => (I(), O("aside", {
|
|
21023
21030
|
ref_key: "target",
|
|
21024
21031
|
ref: t,
|
|
21025
21032
|
class: _(a.$style.callout),
|
|
21026
|
-
style:
|
|
21033
|
+
style: Y({
|
|
21027
21034
|
"--border-color": e[a.type].code,
|
|
21028
21035
|
"--bg-color": P(a0)(e[a.type].code, 0.1),
|
|
21029
21036
|
"--scale": n.value ? 1 : 0
|
|
@@ -21034,7 +21041,7 @@ const f3 = /* @__PURE__ */ G({
|
|
|
21034
21041
|
}, [
|
|
21035
21042
|
(I(), Me(xt(e[a.type].icon), {
|
|
21036
21043
|
class: _(a.$style.icon),
|
|
21037
|
-
style:
|
|
21044
|
+
style: Y({ "--icon-color": e[a.type].code })
|
|
21038
21045
|
}, null, 8, ["class", "style"])),
|
|
21039
21046
|
X(ye, {
|
|
21040
21047
|
text: a.type.toUpperCase(),
|
|
@@ -21055,14 +21062,14 @@ const f3 = /* @__PURE__ */ G({
|
|
|
21055
21062
|
}, C3 = /* @__PURE__ */ J(M3, [["__cssModules", E3]]), $3 = /* @__PURE__ */ G({
|
|
21056
21063
|
__name: "ElmBlockQuote",
|
|
21057
21064
|
setup(r) {
|
|
21058
|
-
const e =
|
|
21059
|
-
return
|
|
21065
|
+
const e = U(null), t = U(!1);
|
|
21066
|
+
return at(e, ([{ isIntersecting: n }], a) => {
|
|
21060
21067
|
t.value = n;
|
|
21061
21068
|
}), (n, a) => (I(), O("blockquote", {
|
|
21062
21069
|
ref_key: "target",
|
|
21063
21070
|
ref: e,
|
|
21064
21071
|
class: _(n.$style.blockquote),
|
|
21065
|
-
style:
|
|
21072
|
+
style: Y({
|
|
21066
21073
|
"--opacity": t.value ? 1 : 0
|
|
21067
21074
|
})
|
|
21068
21075
|
}, [
|
|
@@ -21081,7 +21088,7 @@ const f3 = /* @__PURE__ */ G({
|
|
|
21081
21088
|
setup(r) {
|
|
21082
21089
|
return (e, t) => (I(), O("table", {
|
|
21083
21090
|
class: "table",
|
|
21084
|
-
style:
|
|
21091
|
+
style: Y({
|
|
21085
21092
|
"--margin-block": e.margin
|
|
21086
21093
|
})
|
|
21087
21094
|
}, [
|