@kong-ui-public/documentation 0.1.6 → 0.1.7
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/documentation.es.js +57 -57
- package/dist/documentation.umd.js +4 -4
- package/package.json +3 -3
package/dist/documentation.es.js
CHANGED
|
@@ -728,26 +728,26 @@ var Re = Be.exports, ze = { exports: {} };
|
|
|
728
728
|
var ve = D.pattern.toString().match(/[imsuy]*$/)[0];
|
|
729
729
|
D.pattern = RegExp(D.pattern.source, ve + "g");
|
|
730
730
|
}
|
|
731
|
-
for (var
|
|
731
|
+
for (var U = D.pattern || D, O = m.next, W = s; O !== o.tail && !(g && W >= g.reach); W += O.value.length, O = O.next) {
|
|
732
732
|
var ee = O.value;
|
|
733
733
|
if (o.length > i.length)
|
|
734
734
|
return;
|
|
735
735
|
if (!(ee instanceof c)) {
|
|
736
|
-
var le = 1,
|
|
736
|
+
var le = 1, V;
|
|
737
737
|
if (ie) {
|
|
738
|
-
if (
|
|
738
|
+
if (V = y(U, W, i, oe), !V || V.index >= i.length)
|
|
739
739
|
break;
|
|
740
|
-
var se =
|
|
741
|
-
for (
|
|
742
|
-
O = O.next,
|
|
743
|
-
if (
|
|
740
|
+
var se = V.index, Ze = V.index + V[0].length, X = W;
|
|
741
|
+
for (X += O.value.length; se >= X; )
|
|
742
|
+
O = O.next, X += O.value.length;
|
|
743
|
+
if (X -= O.value.length, W = X, O.value instanceof c)
|
|
744
744
|
continue;
|
|
745
|
-
for (var ae = O; ae !== o.tail && (
|
|
746
|
-
le++,
|
|
747
|
-
le--, ee = i.slice(W,
|
|
748
|
-
} else if (
|
|
745
|
+
for (var ae = O; ae !== o.tail && (X < Ze || typeof ae.value == "string"); ae = ae.next)
|
|
746
|
+
le++, X += ae.value.length;
|
|
747
|
+
le--, ee = i.slice(W, X), V.index -= W;
|
|
748
|
+
} else if (V = y(U, 0, ee, oe), !V)
|
|
749
749
|
continue;
|
|
750
|
-
var se =
|
|
750
|
+
var se = V.index, ue = V[0], we = ee.slice(0, se), Te = ee.slice(se + ue.length), be = W + ee.length;
|
|
751
751
|
g && be > g.reach && (g.reach = be);
|
|
752
752
|
var ce = O.prev;
|
|
753
753
|
we && (ce = L(o, ce, we), W += we.length), _(o, ce, le);
|
|
@@ -1492,18 +1492,18 @@ const Pt = /* @__PURE__ */ B(Nt, [["render", Et], ["__scopeId", "data-v-c2502730
|
|
|
1492
1492
|
], 64));
|
|
1493
1493
|
}
|
|
1494
1494
|
}), Kt = {};
|
|
1495
|
-
function
|
|
1495
|
+
function Ut(e, n) {
|
|
1496
1496
|
return h(), q("span", null, [
|
|
1497
1497
|
z(e.$slots, "default")
|
|
1498
1498
|
]);
|
|
1499
1499
|
}
|
|
1500
|
-
const
|
|
1500
|
+
const Vt = /* @__PURE__ */ B(Kt, [["render", Ut]]), Jt = {};
|
|
1501
1501
|
function Wt(e, n) {
|
|
1502
1502
|
return h(), q("p", null, [
|
|
1503
1503
|
z(e.$slots, "default", {}, void 0, !0)
|
|
1504
1504
|
]);
|
|
1505
1505
|
}
|
|
1506
|
-
const
|
|
1506
|
+
const Xt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530"]]), Qt = /* @__PURE__ */ $({
|
|
1507
1507
|
__name: "List",
|
|
1508
1508
|
props: {
|
|
1509
1509
|
isOrdered: {
|
|
@@ -1526,7 +1526,7 @@ const Qt = /* @__PURE__ */ B(Jt, [["render", Wt], ["__scopeId", "data-v-7b54f530
|
|
|
1526
1526
|
_: 3
|
|
1527
1527
|
}, 8, ["class"]));
|
|
1528
1528
|
}
|
|
1529
|
-
}), Zt = /* @__PURE__ */ B(
|
|
1529
|
+
}), Zt = /* @__PURE__ */ B(Qt, [["__scopeId", "data-v-7555911f"]]), Yt = {};
|
|
1530
1530
|
function en(e, n) {
|
|
1531
1531
|
return h(), q("li", null, [
|
|
1532
1532
|
z(e.$slots, "default", {}, void 0, !0)
|
|
@@ -1564,7 +1564,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
|
|
|
1564
1564
|
link: rn,
|
|
1565
1565
|
list: Zt,
|
|
1566
1566
|
list_item: tn,
|
|
1567
|
-
paragraph:
|
|
1567
|
+
paragraph: Xt,
|
|
1568
1568
|
strikethrough: Rt,
|
|
1569
1569
|
table: Pt,
|
|
1570
1570
|
table_header: Ne,
|
|
@@ -1572,7 +1572,7 @@ const tn = /* @__PURE__ */ B(Yt, [["render", en], ["__scopeId", "data-v-cf238e78
|
|
|
1572
1572
|
table_cell: $t,
|
|
1573
1573
|
task_checkbox: Ot,
|
|
1574
1574
|
text: Ht,
|
|
1575
|
-
text_block:
|
|
1575
|
+
text_block: Vt
|
|
1576
1576
|
}, Ee = [];
|
|
1577
1577
|
function ln(e) {
|
|
1578
1578
|
Ee.indexOf(e) === -1 && (Ee.push(e), console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`));
|
|
@@ -1729,21 +1729,21 @@ var An = Ke, Dn = yn, qn = kn, Cn = xn, Tn = Sn, jn = _n, De = {
|
|
|
1729
1729
|
isNegativeZero: Tn,
|
|
1730
1730
|
extend: jn
|
|
1731
1731
|
};
|
|
1732
|
-
function
|
|
1732
|
+
function Ue(e, n) {
|
|
1733
1733
|
var t = "", a = e.reason || "(unknown reason)";
|
|
1734
1734
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
|
|
1735
1735
|
|
|
1736
1736
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1737
1737
|
}
|
|
1738
1738
|
function re(e, n) {
|
|
1739
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1739
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Ue(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1740
1740
|
}
|
|
1741
1741
|
re.prototype = Object.create(Error.prototype);
|
|
1742
1742
|
re.prototype.constructor = re;
|
|
1743
1743
|
re.prototype.toString = function(e) {
|
|
1744
|
-
return this.name + ": " +
|
|
1744
|
+
return this.name + ": " + Ue(this, e);
|
|
1745
1745
|
};
|
|
1746
|
-
var
|
|
1746
|
+
var Q = re, Fn = [
|
|
1747
1747
|
"kind",
|
|
1748
1748
|
"multi",
|
|
1749
1749
|
"resolve",
|
|
@@ -1770,13 +1770,13 @@ function Nn(e) {
|
|
|
1770
1770
|
function En(e, n) {
|
|
1771
1771
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1772
1772
|
if (Fn.indexOf(t) === -1)
|
|
1773
|
-
throw new
|
|
1773
|
+
throw new Q('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1774
1774
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1775
1775
|
return !0;
|
|
1776
1776
|
}, this.construct = n.construct || function(t) {
|
|
1777
1777
|
return t;
|
|
1778
1778
|
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Nn(n.styleAliases || null), Rn.indexOf(this.kind) === -1)
|
|
1779
|
-
throw new
|
|
1779
|
+
throw new Q('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1780
1780
|
}
|
|
1781
1781
|
var M = En;
|
|
1782
1782
|
function Le(e, n) {
|
|
@@ -1820,17 +1820,17 @@ xe.prototype.extend = function(e) {
|
|
|
1820
1820
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
1821
1821
|
e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
1822
1822
|
else
|
|
1823
|
-
throw new
|
|
1823
|
+
throw new Q("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1824
1824
|
n.forEach(function(r) {
|
|
1825
1825
|
if (!(r instanceof M))
|
|
1826
|
-
throw new
|
|
1826
|
+
throw new Q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1827
1827
|
if (r.loadKind && r.loadKind !== "scalar")
|
|
1828
|
-
throw new
|
|
1828
|
+
throw new Q("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1829
1829
|
if (r.multi)
|
|
1830
|
-
throw new
|
|
1830
|
+
throw new Q("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1831
1831
|
}), t.forEach(function(r) {
|
|
1832
1832
|
if (!(r instanceof M))
|
|
1833
|
-
throw new
|
|
1833
|
+
throw new Q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1834
1834
|
});
|
|
1835
1835
|
var a = Object.create(xe.prototype);
|
|
1836
1836
|
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Le(a, "implicit"), a.compiledExplicit = Le(a, "explicit"), a.compiledTypeMap = Pn(a.compiledImplicit, a.compiledExplicit), a;
|
|
@@ -1899,17 +1899,17 @@ function Kn(e) {
|
|
|
1899
1899
|
var n = e.length;
|
|
1900
1900
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Un(e) {
|
|
1903
1903
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Vn(e) {
|
|
1906
1906
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1907
1907
|
}
|
|
1908
1908
|
var Jn = new M("tag:yaml.org,2002:bool", {
|
|
1909
1909
|
kind: "scalar",
|
|
1910
1910
|
resolve: Kn,
|
|
1911
|
-
construct:
|
|
1912
|
-
predicate:
|
|
1911
|
+
construct: Un,
|
|
1912
|
+
predicate: Vn,
|
|
1913
1913
|
represent: {
|
|
1914
1914
|
lowercase: function(e) {
|
|
1915
1915
|
return e ? "true" : "false";
|
|
@@ -1926,10 +1926,10 @@ var Jn = new M("tag:yaml.org,2002:bool", {
|
|
|
1926
1926
|
function Wn(e) {
|
|
1927
1927
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Xn(e) {
|
|
1930
1930
|
return 48 <= e && e <= 55;
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Qn(e) {
|
|
1933
1933
|
return 48 <= e && e <= 57;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Zn(e) {
|
|
@@ -1962,7 +1962,7 @@ function Zn(e) {
|
|
|
1962
1962
|
if (r === "o") {
|
|
1963
1963
|
for (t++; t < n; t++)
|
|
1964
1964
|
if (r = e[t], r !== "_") {
|
|
1965
|
-
if (!
|
|
1965
|
+
if (!Xn(e.charCodeAt(t)))
|
|
1966
1966
|
return !1;
|
|
1967
1967
|
a = !0;
|
|
1968
1968
|
}
|
|
@@ -1973,7 +1973,7 @@ function Zn(e) {
|
|
|
1973
1973
|
return !1;
|
|
1974
1974
|
for (; t < n; t++)
|
|
1975
1975
|
if (r = e[t], r !== "_") {
|
|
1976
|
-
if (!
|
|
1976
|
+
if (!Qn(e.charCodeAt(t)))
|
|
1977
1977
|
return !1;
|
|
1978
1978
|
a = !0;
|
|
1979
1979
|
}
|
|
@@ -2087,17 +2087,17 @@ var sa = new M("tag:yaml.org,2002:float", {
|
|
|
2087
2087
|
ta,
|
|
2088
2088
|
sa
|
|
2089
2089
|
]
|
|
2090
|
-
}), ca = ua,
|
|
2090
|
+
}), ca = ua, Ve = new RegExp(
|
|
2091
2091
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
2092
2092
|
), Je = new RegExp(
|
|
2093
2093
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
2094
2094
|
);
|
|
2095
2095
|
function da(e) {
|
|
2096
|
-
return e === null ? !1 :
|
|
2096
|
+
return e === null ? !1 : Ve.exec(e) !== null || Je.exec(e) !== null;
|
|
2097
2097
|
}
|
|
2098
2098
|
function pa(e) {
|
|
2099
2099
|
var n, t, a, r, p, u, l, c = 0, y = null, w, P, L;
|
|
2100
|
-
if (n =
|
|
2100
|
+
if (n = Ve.exec(e), n === null && (n = Je.exec(e)), n === null)
|
|
2101
2101
|
throw new Error("Date resolve error");
|
|
2102
2102
|
if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
|
|
2103
2103
|
return new Date(Date.UTC(t, a, r));
|
|
@@ -2287,7 +2287,7 @@ const Ia = (e) => (fe("data-v-760513c3"), e = e(), he(), e), $a = { class: "docu
|
|
|
2287
2287
|
}, za = { class: "meta-label" }, Ha = {
|
|
2288
2288
|
key: 1,
|
|
2289
2289
|
class: "document-create meta-section"
|
|
2290
|
-
}, Ka = { class: "meta-label" },
|
|
2290
|
+
}, Ka = { class: "meta-label" }, Ua = { class: "document-display-actions" }, Va = {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
class: "markdown-content-loading",
|
|
2293
2293
|
"data-testid": "markdown-content-loading"
|
|
@@ -2378,7 +2378,7 @@ const Ia = (e) => (fe("data-v-760513c3"), e = e(), he(), e), $a = { class: "docu
|
|
|
2378
2378
|
_: 1
|
|
2379
2379
|
})
|
|
2380
2380
|
])) : H("", !0),
|
|
2381
|
-
R("div",
|
|
2381
|
+
R("div", Ua, [
|
|
2382
2382
|
F(k(We), {
|
|
2383
2383
|
"auth-function": () => e.canEdit()
|
|
2384
2384
|
}, {
|
|
@@ -2421,7 +2421,7 @@ const Ia = (e) => (fe("data-v-760513c3"), e = e(), he(), e), $a = { class: "docu
|
|
|
2421
2421
|
}, 8, ["auth-function"])
|
|
2422
2422
|
])
|
|
2423
2423
|
]),
|
|
2424
|
-
r.value ? (h(), q("div",
|
|
2424
|
+
r.value ? (h(), q("div", Va, [
|
|
2425
2425
|
e.card ? (h(), T(i, {
|
|
2426
2426
|
key: 1,
|
|
2427
2427
|
type: "card"
|
|
@@ -2448,15 +2448,15 @@ const Ce = (e, n) => {
|
|
|
2448
2448
|
for (const [a, r] of n)
|
|
2449
2449
|
t[a] = r;
|
|
2450
2450
|
return t;
|
|
2451
|
-
},
|
|
2451
|
+
}, Xa = /* @__PURE__ */ Ce(Wa, [["__scopeId", "data-v-760513c3"]]), me = "24px", Xe = (e, n) => {
|
|
2452
2452
|
const t = e.__vccOpts || e;
|
|
2453
2453
|
for (const [a, r] of n)
|
|
2454
2454
|
t[a] = r;
|
|
2455
2455
|
return t;
|
|
2456
|
-
},
|
|
2456
|
+
}, Qa = (e) => (fe("data-v-2cc22034"), e = e(), he(), e), Za = ["aria-hidden"], Ya = {
|
|
2457
2457
|
key: 0,
|
|
2458
2458
|
"data-testid": "kui-icon-svg-title"
|
|
2459
|
-
}, er = /* @__PURE__ */
|
|
2459
|
+
}, er = /* @__PURE__ */ Qa(() => /* @__PURE__ */ R("path", {
|
|
2460
2460
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2461
2461
|
fill: "currentColor"
|
|
2462
2462
|
}, null, -1)), tr = /* @__PURE__ */ $({
|
|
@@ -2552,14 +2552,14 @@ const Ce = (e, n) => {
|
|
|
2552
2552
|
_: 1
|
|
2553
2553
|
}, 8, ["aria-hidden", "style"]));
|
|
2554
2554
|
}
|
|
2555
|
-
}), nr = /* @__PURE__ */
|
|
2555
|
+
}), nr = /* @__PURE__ */ Xe(tr, [["__scopeId", "data-v-2cc22034"]]), Qe = (e) => (fe("data-v-6c72abfd"), e = e(), he(), e), ar = ["aria-hidden"], rr = {
|
|
2556
2556
|
key: 0,
|
|
2557
2557
|
"data-testid": "kui-icon-svg-title"
|
|
2558
|
-
}, or = /* @__PURE__ */
|
|
2558
|
+
}, or = /* @__PURE__ */ Qe(() => /* @__PURE__ */ R("path", {
|
|
2559
2559
|
d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
|
|
2560
2560
|
fill: "currentColor",
|
|
2561
2561
|
"transform-origin": "center"
|
|
2562
|
-
}, null, -1)), ir = /* @__PURE__ */
|
|
2562
|
+
}, null, -1)), ir = /* @__PURE__ */ Qe(() => /* @__PURE__ */ R("animateTransform", {
|
|
2563
2563
|
attributeName: "transform",
|
|
2564
2564
|
attributeType: "XML",
|
|
2565
2565
|
dur: "1.5s",
|
|
@@ -2661,7 +2661,7 @@ const Ce = (e, n) => {
|
|
|
2661
2661
|
_: 1
|
|
2662
2662
|
}, 8, ["aria-hidden", "style"]));
|
|
2663
2663
|
}
|
|
2664
|
-
}), $e = /* @__PURE__ */
|
|
2664
|
+
}), $e = /* @__PURE__ */ Xe(lr, [["__scopeId", "data-v-6c72abfd"]]), sr = /* @__PURE__ */ $({
|
|
2665
2665
|
__name: "DocumentationPageEmptyState",
|
|
2666
2666
|
props: {
|
|
2667
2667
|
/**
|
|
@@ -2853,7 +2853,7 @@ const Ce = (e, n) => {
|
|
|
2853
2853
|
R("div", fr, [
|
|
2854
2854
|
F(D, {
|
|
2855
2855
|
modelValue: c.pageName,
|
|
2856
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
2856
|
+
"onUpdate:modelValue": g[0] || (g[0] = (U) => c.pageName = U),
|
|
2857
2857
|
modelModifiers: { trim: !0 },
|
|
2858
2858
|
"data-testid": "documentation-page-name",
|
|
2859
2859
|
label: k(a).t("documentation.form_modal.title_label"),
|
|
@@ -2864,7 +2864,7 @@ const Ce = (e, n) => {
|
|
|
2864
2864
|
R("div", hr, [
|
|
2865
2865
|
F(D, {
|
|
2866
2866
|
modelValue: c.urlSlug,
|
|
2867
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
2867
|
+
"onUpdate:modelValue": g[1] || (g[1] = (U) => c.urlSlug = U),
|
|
2868
2868
|
modelModifiers: { trim: !0 },
|
|
2869
2869
|
"data-testid": "documentation-url-slug",
|
|
2870
2870
|
"error-message": k(a).t("documentation.form_modal.slug_error"),
|
|
@@ -2886,14 +2886,14 @@ const Ce = (e, n) => {
|
|
|
2886
2886
|
]),
|
|
2887
2887
|
F(oe, {
|
|
2888
2888
|
modelValue: u.value,
|
|
2889
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
2889
|
+
"onUpdate:modelValue": g[2] || (g[2] = (U) => u.value = U),
|
|
2890
2890
|
"data-testid": "documentation-status",
|
|
2891
2891
|
label: A.value
|
|
2892
2892
|
}, null, 8, ["modelValue", "label"])
|
|
2893
2893
|
])),
|
|
2894
2894
|
F(ie, {
|
|
2895
2895
|
modelValue: c.parent,
|
|
2896
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
2896
|
+
"onUpdate:modelValue": g[3] || (g[3] = (U) => c.parent = U),
|
|
2897
2897
|
appearance: "select",
|
|
2898
2898
|
class: "document-parent-select",
|
|
2899
2899
|
"data-testid": "documentation-parent",
|
|
@@ -2911,7 +2911,7 @@ const Ce = (e, n) => {
|
|
|
2911
2911
|
class: "edit-documentation-delete-button",
|
|
2912
2912
|
"data-testid": "edit-documentation-delete-button",
|
|
2913
2913
|
disabled: e.actionPending,
|
|
2914
|
-
onClick: g[4] || (g[4] = (
|
|
2914
|
+
onClick: g[4] || (g[4] = (U) => n("delete"))
|
|
2915
2915
|
}, je({
|
|
2916
2916
|
default: S(() => [
|
|
2917
2917
|
G(" " + N(k(a).t("documentation.form_modal.delete_button_text")), 1)
|
|
@@ -3061,7 +3061,7 @@ const kr = /* @__PURE__ */ Ce(yr, [["__scopeId", "data-v-ad1a177c"]]), _r = { cl
|
|
|
3061
3061
|
onChildChange: w[1] || (w[1] = (_) => n("child-change", _)),
|
|
3062
3062
|
onSelected: w[2] || (w[2] = (_) => n("document-selection", _))
|
|
3063
3063
|
}, null, 8, ["items"])),
|
|
3064
|
-
e.selectedDocument ? (h(), T(
|
|
3064
|
+
e.selectedDocument ? (h(), T(Xa, {
|
|
3065
3065
|
key: p.value,
|
|
3066
3066
|
"can-edit": e.canEdit,
|
|
3067
3067
|
card: e.card,
|
|
@@ -3095,7 +3095,7 @@ const kr = /* @__PURE__ */ Ce(yr, [["__scopeId", "data-v-ad1a177c"]]), _r = { cl
|
|
|
3095
3095
|
const jr = /* @__PURE__ */ Ce(Sr, [["__scopeId", "data-v-6e642447"]]);
|
|
3096
3096
|
export {
|
|
3097
3097
|
jr as DocumentationContent,
|
|
3098
|
-
|
|
3098
|
+
Xa as DocumentationDisplay,
|
|
3099
3099
|
sr as DocumentationPageEmptyState,
|
|
3100
3100
|
kr as ProductDocumentModal
|
|
3101
3101
|
};
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* @author Lea Verou <https://lea.verou.me>
|
|
6
6
|
* @namespace
|
|
7
7
|
* @public
|
|
8
|
-
*/var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,m=0,u={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function l(i){return i instanceof d?new d(i.type,l(i.content),i.alias):Array.isArray(i)?i.map(l):i.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++m}),l.__id},clone:function l(i,p){p=p||{};var g,c;switch(s.util.type(i)){case"Object":if(c=s.util.objId(i),p[c])return p[c];g={},p[c]=g;for(var f in i)i.hasOwnProperty(f)&&(g[f]=l(i[f],p));return g;case"Array":return c=s.util.objId(i),p[c]?p[c]:(g=[],p[c]=g,i.forEach(function(w,h){g[h]=l(w,p)}),g);default:return i}},getLanguage:function(l){for(;l;){var i=a.exec(l.className);if(i)return i[1].toLowerCase();l=l.parentElement}return"none"},setLanguage:function(l,i){l.className=l.className.replace(RegExp(a,"gi"),""),l.classList.add("language-"+i)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(g){var l=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack)||[])[1];if(l){var i=document.getElementsByTagName("script");for(var p in i)if(i[p].src==l)return i[p]}return null}},isActive:function(l,i,p){for(var g="no-"+i;l;){var c=l.classList;if(c.contains(i))return!0;if(c.contains(g))return!1;l=l.parentElement}return!!p}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(l,i){var p=s.util.clone(s.languages[l]);for(var g in i)p[g]=i[g];return p},insertBefore:function(l,i,p,g){g=g||s.languages;var c=g[l],f={};for(var w in c)if(c.hasOwnProperty(w)){if(w==i)for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h]);p.hasOwnProperty(w)||(f[w]=c[w])}var S=g[l];return g[l]=f,s.languages.DFS(s.languages,function(v,B){B===S&&v!=l&&(this[v]=f)}),f},DFS:function l(i,p,g,c){c=c||{};var f=s.util.objId;for(var w in i)if(i.hasOwnProperty(w)){p.call(i,w,i[w],g||w);var h=i[w],S=s.util.type(h);S==="Object"&&!c[f(h)]?(c[f(h)]=!0,l(h,p,null,c)):S==="Array"&&!c[f(h)]&&(c[f(h)]=!0,l(h,p,w,c))}}},plugins:{},highlightAll:function(l,i){s.highlightAllUnder(document,l,i)},highlightAllUnder:function(l,i,p){var g={callback:p,container:l,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",g),g.elements=Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)),s.hooks.run("before-all-elements-highlight",g);for(var c=0,f;f=g.elements[c++];)s.highlightElement(f,i===!0,g.callback)},highlightElement:function(l,i,p){var g=s.util.getLanguage(l),c=s.languages[g];s.util.setLanguage(l,g);var f=l.parentElement;f&&f.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(f,g);var w=l.textContent,h={element:l,language:g,grammar:c,code:w};function S(B){h.highlightedCode=B,s.hooks.run("before-insert",h),h.element.innerHTML=h.highlightedCode,s.hooks.run("after-highlight",h),s.hooks.run("complete",h),p&&p.call(h.element)}if(s.hooks.run("before-sanity-check",h),f=h.element.parentElement,f&&f.nodeName.toLowerCase()==="pre"&&!f.hasAttribute("tabindex")&&f.setAttribute("tabindex","0"),!h.code){s.hooks.run("complete",h),p&&p.call(h.element);return}if(s.hooks.run("before-highlight",h),!h.grammar){S(s.util.encode(h.code));return}if(i&&r.Worker){var v=new Worker(s.filename);v.onmessage=function(B){S(B.data)},v.postMessage(JSON.stringify({language:h.language,code:h.code,immediateClose:!0}))}else S(s.highlight(h.code,h.grammar,h.language))},highlight:function(l,i,p){var g={code:l,grammar:i,language:p};if(s.hooks.run("before-tokenize",g),!g.grammar)throw new Error('The language "'+g.language+'" has no grammar.');return g.tokens=s.tokenize(g.code,g.grammar),s.hooks.run("after-tokenize",g),d.stringify(s.util.encode(g.tokens),g.language)},tokenize:function(l,i){var p=i.rest;if(p){for(var g in p)i[g]=p[g];delete i.rest}var c=new A;return N(c,c.head,l),k(l,c,i,c.head,0),D(c)},hooks:{all:{},add:function(l,i){var p=s.hooks.all;p[l]=p[l]||[],p[l].push(i)},run:function(l,i){var p=s.hooks.all[l];if(!(!p||!p.length))for(var g=0,c;c=p[g++];)c(i)}},Token:d};r.Prism=s;function d(l,i,p,g){this.type=l,this.content=i,this.alias=p,this.length=(g||"").length|0}d.stringify=function l(i,p){if(typeof i=="string")return i;if(Array.isArray(i)){var g="";return i.forEach(function(S){g+=l(S,p)}),g}var c={type:i.type,content:l(i.content,p),tag:"span",classes:["token",i.type],attributes:{},language:p},f=i.alias;f&&(Array.isArray(f)?Array.prototype.push.apply(c.classes,f):c.classes.push(f)),s.hooks.run("wrap",c);var w="";for(var h in c.attributes)w+=" "+h+'="'+(c.attributes[h]||"").replace(/"/g,""")+'"';return"<"+c.tag+' class="'+c.classes.join(" ")+'"'+w+">"+c.content+"</"+c.tag+">"};function b(l,i,p,g){l.lastIndex=i;var c=l.exec(p);if(c&&g&&c[1]){var f=c[1].length;c.index+=f,c[0]=c[0].slice(f)}return c}function k(l,i,p,g,c,f){for(var w in p)if(!(!p.hasOwnProperty(w)||!p[w])){var h=p[w];h=Array.isArray(h)?h:[h];for(var S=0;S<h.length;++S){if(f&&f.cause==w+","+S)return;var v=h[S],B=v.inside,W=!!v.lookbehind,Q=!!v.greedy,M=v.alias;if(Q&&!v.pattern.global){var le=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,le+"g")}for(var F=v.pattern||v,E=g.next,P=c;E!==i.tail&&!(f&&P>=f.reach);P+=E.value.length,E=E.next){var G=E.value;if(i.length>l.length)return;if(!(G instanceof d)){var X=1,R;if(Q){if(R=b(F,P,l,W),!R||R.index>=l.length)break;var Z=R.index,zo=R.index+R[0].length,I=P;for(I+=E.value.length;Z>=I;)E=E.next,I+=E.value.length;if(I-=E.value.length,P=I,E.value instanceof d)continue;for(var z=E;z!==i.tail&&(I<zo||typeof z.value=="string");z=z.next)X++,I+=z.value.length;X--,G=l.slice(P,I),R.index-=P}else if(R=b(F,0,G,W),!R)continue;var Z=R.index,Y=R[0],se=G.slice(0,Z),Be=G.slice(Z+Y.length),ce=P+G.length;f&&ce>f.reach&&(f.reach=ce);var ee=E.prev;se&&(ee=N(i,ee,se),P+=se.length),x(i,ee,X);var Ho=new d(w,B?s.tokenize(Y,B):Y,M,Y);if(E=N(i,ee,Ho),Be&&N(i,E,Be),X>1){var ue={cause:w+","+S,reach:ce};k(l,i,p,E.prev,P,ue),f&&ue.reach>f.reach&&(f.reach=ue.reach)}}}}}}function A(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function N(l,i,p){var g=i.next,c={value:p,prev:i,next:g};return i.next=c,g.prev=c,l.length++,c}function x(l,i,p){for(var g=i.next,c=0;c<p&&g!==l.tail;c++)g=g.next;i.next=g,g.prev=i,l.length-=c}function D(l){for(var i=[],p=l.head.next;p!==l.tail;)i.push(p.value),p=p.next;return i}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(l){var i=JSON.parse(l.data),p=i.language,g=i.code,c=i.immediateClose;r.postMessage(s.highlight(g,s.languages[p],p)),c&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function y(){s.manual||s.highlightAll()}if(!s.manual){var C=document.readyState;C==="loading"||C==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return s}(o);e.exports&&(e.exports=n),typeof de<"u"&&(de.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,a){var m={};m["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},m.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:m}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var s={};s[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,a){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:n.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var m=r.languages.markup;m&&(m.tag.addInlined("style","css"),m.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",a=function(_,y){return"✖ Error "+_+" while fetching file: "+y},m="✖ Error: File does not exist or is empty",u={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",d="loading",b="loaded",k="failed",A="pre[data-src]:not(["+s+'="'+b+'"]):not(['+s+'="'+d+'"])';function N(_,y,C){var l=new XMLHttpRequest;l.open("GET",_,!0),l.onreadystatechange=function(){l.readyState==4&&(l.status<400&&l.responseText?y(l.responseText):l.status>=400?C(a(l.status,l.statusText)):C(m))},l.send(null)}function x(_){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(y){var C=Number(y[1]),l=y[2],i=y[3];return l?i?[C,Number(i)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+A}),n.hooks.add("before-sanity-check",function(_){var y=_.element;if(y.matches(A)){_.code="",y.setAttribute(s,d);var C=y.appendChild(document.createElement("CODE"));C.textContent=r;var l=y.getAttribute("data-src"),i=_.language;if(i==="none"){var p=(/\.(\w+)$/.exec(l)||[,"none"])[1];i=u[p]||p}n.util.setLanguage(C,i),n.util.setLanguage(y,i);var g=n.plugins.autoloader;g&&g.loadLanguages(i),N(l,function(c){y.setAttribute(s,b);var f=x(y.getAttribute("data-range"));if(f){var w=c.split(/\r\n?|\n/g),h=f[0],S=f[1]==null?w.length:f[1];h<0&&(h+=w.length),h=Math.max(0,Math.min(h-1,w.length)),S<0&&(S+=w.length),S=Math.max(0,Math.min(S,w.length)),c=w.slice(h,S).join(`
|
|
8
|
+
*/var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,m=0,u={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function l(i){return i instanceof d?new d(i.type,l(i.content),i.alias):Array.isArray(i)?i.map(l):i.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++m}),l.__id},clone:function l(i,p){p=p||{};var g,c;switch(s.util.type(i)){case"Object":if(c=s.util.objId(i),p[c])return p[c];g={},p[c]=g;for(var f in i)i.hasOwnProperty(f)&&(g[f]=l(i[f],p));return g;case"Array":return c=s.util.objId(i),p[c]?p[c]:(g=[],p[c]=g,i.forEach(function(w,h){g[h]=l(w,p)}),g);default:return i}},getLanguage:function(l){for(;l;){var i=a.exec(l.className);if(i)return i[1].toLowerCase();l=l.parentElement}return"none"},setLanguage:function(l,i){l.className=l.className.replace(RegExp(a,"gi"),""),l.classList.add("language-"+i)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(g){var l=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack)||[])[1];if(l){var i=document.getElementsByTagName("script");for(var p in i)if(i[p].src==l)return i[p]}return null}},isActive:function(l,i,p){for(var g="no-"+i;l;){var c=l.classList;if(c.contains(i))return!0;if(c.contains(g))return!1;l=l.parentElement}return!!p}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(l,i){var p=s.util.clone(s.languages[l]);for(var g in i)p[g]=i[g];return p},insertBefore:function(l,i,p,g){g=g||s.languages;var c=g[l],f={};for(var w in c)if(c.hasOwnProperty(w)){if(w==i)for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h]);p.hasOwnProperty(w)||(f[w]=c[w])}var S=g[l];return g[l]=f,s.languages.DFS(s.languages,function(v,B){B===S&&v!=l&&(this[v]=f)}),f},DFS:function l(i,p,g,c){c=c||{};var f=s.util.objId;for(var w in i)if(i.hasOwnProperty(w)){p.call(i,w,i[w],g||w);var h=i[w],S=s.util.type(h);S==="Object"&&!c[f(h)]?(c[f(h)]=!0,l(h,p,null,c)):S==="Array"&&!c[f(h)]&&(c[f(h)]=!0,l(h,p,w,c))}}},plugins:{},highlightAll:function(l,i){s.highlightAllUnder(document,l,i)},highlightAllUnder:function(l,i,p){var g={callback:p,container:l,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",g),g.elements=Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)),s.hooks.run("before-all-elements-highlight",g);for(var c=0,f;f=g.elements[c++];)s.highlightElement(f,i===!0,g.callback)},highlightElement:function(l,i,p){var g=s.util.getLanguage(l),c=s.languages[g];s.util.setLanguage(l,g);var f=l.parentElement;f&&f.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(f,g);var w=l.textContent,h={element:l,language:g,grammar:c,code:w};function S(B){h.highlightedCode=B,s.hooks.run("before-insert",h),h.element.innerHTML=h.highlightedCode,s.hooks.run("after-highlight",h),s.hooks.run("complete",h),p&&p.call(h.element)}if(s.hooks.run("before-sanity-check",h),f=h.element.parentElement,f&&f.nodeName.toLowerCase()==="pre"&&!f.hasAttribute("tabindex")&&f.setAttribute("tabindex","0"),!h.code){s.hooks.run("complete",h),p&&p.call(h.element);return}if(s.hooks.run("before-highlight",h),!h.grammar){S(s.util.encode(h.code));return}if(i&&r.Worker){var v=new Worker(s.filename);v.onmessage=function(B){S(B.data)},v.postMessage(JSON.stringify({language:h.language,code:h.code,immediateClose:!0}))}else S(s.highlight(h.code,h.grammar,h.language))},highlight:function(l,i,p){var g={code:l,grammar:i,language:p};if(s.hooks.run("before-tokenize",g),!g.grammar)throw new Error('The language "'+g.language+'" has no grammar.');return g.tokens=s.tokenize(g.code,g.grammar),s.hooks.run("after-tokenize",g),d.stringify(s.util.encode(g.tokens),g.language)},tokenize:function(l,i){var p=i.rest;if(p){for(var g in p)i[g]=p[g];delete i.rest}var c=new A;return N(c,c.head,l),k(l,c,i,c.head,0),D(c)},hooks:{all:{},add:function(l,i){var p=s.hooks.all;p[l]=p[l]||[],p[l].push(i)},run:function(l,i){var p=s.hooks.all[l];if(!(!p||!p.length))for(var g=0,c;c=p[g++];)c(i)}},Token:d};r.Prism=s;function d(l,i,p,g){this.type=l,this.content=i,this.alias=p,this.length=(g||"").length|0}d.stringify=function l(i,p){if(typeof i=="string")return i;if(Array.isArray(i)){var g="";return i.forEach(function(S){g+=l(S,p)}),g}var c={type:i.type,content:l(i.content,p),tag:"span",classes:["token",i.type],attributes:{},language:p},f=i.alias;f&&(Array.isArray(f)?Array.prototype.push.apply(c.classes,f):c.classes.push(f)),s.hooks.run("wrap",c);var w="";for(var h in c.attributes)w+=" "+h+'="'+(c.attributes[h]||"").replace(/"/g,""")+'"';return"<"+c.tag+' class="'+c.classes.join(" ")+'"'+w+">"+c.content+"</"+c.tag+">"};function b(l,i,p,g){l.lastIndex=i;var c=l.exec(p);if(c&&g&&c[1]){var f=c[1].length;c.index+=f,c[0]=c[0].slice(f)}return c}function k(l,i,p,g,c,f){for(var w in p)if(!(!p.hasOwnProperty(w)||!p[w])){var h=p[w];h=Array.isArray(h)?h:[h];for(var S=0;S<h.length;++S){if(f&&f.cause==w+","+S)return;var v=h[S],B=v.inside,W=!!v.lookbehind,X=!!v.greedy,M=v.alias;if(X&&!v.pattern.global){var le=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,le+"g")}for(var F=v.pattern||v,E=g.next,P=c;E!==i.tail&&!(f&&P>=f.reach);P+=E.value.length,E=E.next){var G=E.value;if(i.length>l.length)return;if(!(G instanceof d)){var Q=1,R;if(X){if(R=b(F,P,l,W),!R||R.index>=l.length)break;var Z=R.index,zo=R.index+R[0].length,I=P;for(I+=E.value.length;Z>=I;)E=E.next,I+=E.value.length;if(I-=E.value.length,P=I,E.value instanceof d)continue;for(var z=E;z!==i.tail&&(I<zo||typeof z.value=="string");z=z.next)Q++,I+=z.value.length;Q--,G=l.slice(P,I),R.index-=P}else if(R=b(F,0,G,W),!R)continue;var Z=R.index,Y=R[0],se=G.slice(0,Z),Be=G.slice(Z+Y.length),ce=P+G.length;f&&ce>f.reach&&(f.reach=ce);var ee=E.prev;se&&(ee=N(i,ee,se),P+=se.length),x(i,ee,Q);var Ho=new d(w,B?s.tokenize(Y,B):Y,M,Y);if(E=N(i,ee,Ho),Be&&N(i,E,Be),Q>1){var ue={cause:w+","+S,reach:ce};k(l,i,p,E.prev,P,ue),f&&ue.reach>f.reach&&(f.reach=ue.reach)}}}}}}function A(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function N(l,i,p){var g=i.next,c={value:p,prev:i,next:g};return i.next=c,g.prev=c,l.length++,c}function x(l,i,p){for(var g=i.next,c=0;c<p&&g!==l.tail;c++)g=g.next;i.next=g,g.prev=i,l.length-=c}function D(l){for(var i=[],p=l.head.next;p!==l.tail;)i.push(p.value),p=p.next;return i}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(l){var i=JSON.parse(l.data),p=i.language,g=i.code,c=i.immediateClose;r.postMessage(s.highlight(g,s.languages[p],p)),c&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function y(){s.manual||s.highlightAll()}if(!s.manual){var C=document.readyState;C==="loading"||C==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",y):window.requestAnimationFrame?window.requestAnimationFrame(y):window.setTimeout(y,16)}return s}(o);e.exports&&(e.exports=n),typeof de<"u"&&(de.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,a){var m={};m["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},m.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:m}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var s={};s[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,a){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:n.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var m=r.languages.markup;m&&(m.tag.addInlined("style","css"),m.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",a=function(_,y){return"✖ Error "+_+" while fetching file: "+y},m="✖ Error: File does not exist or is empty",u={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",d="loading",b="loaded",k="failed",A="pre[data-src]:not(["+s+'="'+b+'"]):not(['+s+'="'+d+'"])';function N(_,y,C){var l=new XMLHttpRequest;l.open("GET",_,!0),l.onreadystatechange=function(){l.readyState==4&&(l.status<400&&l.responseText?y(l.responseText):l.status>=400?C(a(l.status,l.statusText)):C(m))},l.send(null)}function x(_){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(y){var C=Number(y[1]),l=y[2],i=y[3];return l?i?[C,Number(i)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+A}),n.hooks.add("before-sanity-check",function(_){var y=_.element;if(y.matches(A)){_.code="",y.setAttribute(s,d);var C=y.appendChild(document.createElement("CODE"));C.textContent=r;var l=y.getAttribute("data-src"),i=_.language;if(i==="none"){var p=(/\.(\w+)$/.exec(l)||[,"none"])[1];i=u[p]||p}n.util.setLanguage(C,i),n.util.setLanguage(y,i);var g=n.plugins.autoloader;g&&g.loadLanguages(i),N(l,function(c){y.setAttribute(s,b);var f=x(y.getAttribute("data-range"));if(f){var w=c.split(/\r\n?|\n/g),h=f[0],S=f[1]==null?w.length:f[1];h<0&&(h+=w.length),h=Math.max(0,Math.min(h-1,w.length)),S<0&&(S+=w.length),S=Math.max(0,Math.min(S,w.length)),c=w.slice(h,S).join(`
|
|
9
9
|
`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(h+1))}C.textContent=c,n.highlightElement(C)},function(c){y.setAttribute(s,k),C.textContent=c})}}),n.plugins.fileHighlight={highlight:function(_){for(var y=(_||document).querySelectorAll(A),C=0,l;l=y[C++];)n.highlightElement(l)}};var D=!1;n.fileHighlight=function(){D||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),D=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ge);var Ke=ge.exports;const U=He(Ke),Ue=q(t.defineComponent({__name:"CodeBlock",props:{codeBlockIndex:{type:Number,default:1},lines:{type:Array,required:!0},lang:{type:String,default:"plaintext"},isSingleLine:{type:Boolean,default:!1}},setup(e){const o=e;U.manual=!0;const n=t.ref(!1),r=Object.keys(me.languages).reduce((d,b)=>{const k=me.languages[b].alias||[];return[...d,b,...Array.isArray(k)?k:[k]]},[]).sort();function a(d){n.value=!0,U.languages[d.language]||console.warn(`Prism: the language “${d.language}” isn’t enabled.`),d.preElement.classList.contains(`language-${d.language}`)||d.preElement.classList.add(`language-${d.language}`),d.codeElement.innerHTML=m(d.code),U.highlightElement(d.codeElement),n.value=!1}const m=d=>d.replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),u=t.computed(()=>`document-code-block-${o.codeBlockIndex}`),s=t.computed(()=>{var d,b;const k=((b=(d=o.lines)==null?void 0:d.flatMap(A=>A.text))==null?void 0:b.join(""))||"";return k.endsWith(`
|
|
10
|
-
`)&&!o.isSingleLine?k.slice(0,-1):k});return t.watch(()=>o.lang,async d=>{if(r.includes(d))try{await import(`../../../node_modules/prismjs/components/prism-${d}.min.js`)}catch{console.warn(`Prism does not have a language file for '${d}'`)}U.highlightAll()},{immediate:!0}),(d,b)=>{const k=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createBlock(k,{id:u.value,class:"document-code-block",code:s.value,"is-processing":n.value,"is-single-line":e.isSingleLine,language:e.lang,theme:"light",onCodeBlockRender:a},null,8,["id","code","is-processing","is-single-line","language"])}}}),[["__scopeId","data-v-19aebd59"]]),Je=t.defineComponent({__name:"Emphasis",props:{level:{type:Number,default:1,validator(e){if(!Number.isInteger(e))return!1;const o=e;return o>0&&o<3}}},setup(e){const o=e.level===1?"em":"strong";return(n,r)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(o)),null,{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3}))}}),We=q(t.defineComponent({__name:"Heading",props:{level:{type:Number,validator(e){if(!Number.isInteger(e))return!1;const o=e;return o>0&&o<7},default:1},slug:{type:String,default:""}},setup(e){const o=e,n=`${o.slug}`,r=`h${o.level}`;return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r),{id:n},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3}))}}),[["__scopeId","data-v-9ef4ad64"]]),
|
|
10
|
+
`)&&!o.isSingleLine?k.slice(0,-1):k});return t.watch(()=>o.lang,async d=>{if(r.includes(d))try{await import(`../../../node_modules/prismjs/components/prism-${d}.min.js`)}catch{console.warn(`Prism does not have a language file for '${d}'`)}U.highlightAll()},{immediate:!0}),(d,b)=>{const k=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createBlock(k,{id:u.value,class:"document-code-block",code:s.value,"is-processing":n.value,"is-single-line":e.isSingleLine,language:e.lang,theme:"light",onCodeBlockRender:a},null,8,["id","code","is-processing","is-single-line","language"])}}}),[["__scopeId","data-v-19aebd59"]]),Je=t.defineComponent({__name:"Emphasis",props:{level:{type:Number,default:1,validator(e){if(!Number.isInteger(e))return!1;const o=e;return o>0&&o<3}}},setup(e){const o=e.level===1?"em":"strong";return(n,r)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(o)),null,{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3}))}}),We=q(t.defineComponent({__name:"Heading",props:{level:{type:Number,validator(e){if(!Number.isInteger(e))return!1;const o=e;return o>0&&o<7},default:1},slug:{type:String,default:""}},setup(e){const o=e,n=`${o.slug}`,r=`h${o.level}`;return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r),{id:n},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3}))}}),[["__scopeId","data-v-9ef4ad64"]]),Xe=["alt","src","title"],Qe=q(t.defineComponent({__name:"Image",props:{url:{type:String,required:!0},alt:{type:String,default:""},title:{type:String,default:""}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("img",{alt:e.alt,src:e.url,title:e.title},null,8,Xe))}}),[["__scopeId","data-v-13314abe"]]),Ze={};function Ye(e,o){return t.openBlock(),t.createElementBlock("hr")}const et=q(Ze,[["render",Ye],["__scopeId","data-v-b6e25b56"]]),tt={};function nt(e,o){return t.openBlock(),t.createElementBlock("s",null,[t.renderSlot(e.$slots,"default")])}const ot=q(tt,[["render",nt]]),rt={};function at(e,o){return t.openBlock(),t.createElementBlock("table",null,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const it=q(rt,[["render",at],["__scopeId","data-v-c2502730"]]),lt=t.defineComponent({__name:"TableRow",props:{section:{type:String,default:L.body}},setup(e){const o=e;let n;return o.section===L.header?n="thead":o.section===L.body?n="tbody":o.section===L.footer&&(n="tfoot"),(r,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(n)),null,{default:t.withCtx(()=>[t.createElementVNode("tr",null,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]),_:3}))}}),fe=q(lt,[["__scopeId","data-v-90ab3ded"]]),st=t.defineComponent({__name:"TableCell",props:{alignment:{type:String,default:K.left},parent:{type:Object,required:!0}},setup(e){var o;const n=e,r=((o=n.parent)==null?void 0:o.section)===L.header?"th":"td";let a;return n.alignment===K.center?a="align-center":n.alignment===K.right&&(a="align-right"),(m,u)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(r)),{class:t.normalizeClass(t.unref(a))},{default:t.withCtx(()=>[t.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),ct=q(st,[["__scopeId","data-v-1c3aad80"]]),ut=["checked"],dt=t.defineComponent({__name:"TaskCheckbox",props:{checked:{type:Boolean}},setup(e){const o=t.ref(e.checked);return(n,r)=>(t.openBlock(),t.createElementBlock("input",{"aria-label":"Display-only checkbox for task",checked:o.value,type:"checkbox"},null,8,ut))}}),pt={key:0},mt={key:1},gt={inheritAttrs:!1},ft=t.defineComponent({...gt,__name:"Text",props:{text:{type:String,required:!0},appendSpace:{type:Boolean,default:!1},hardBreak:{type:Boolean,default:!1}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createTextVNode(t.toDisplayString(e.text),1),e.appendSpace?(t.openBlock(),t.createElementBlock("span",pt," ")):t.createCommentVNode("",!0),e.hardBreak?(t.openBlock(),t.createElementBlock("br",mt)):t.createCommentVNode("",!0)],64))}}),ht={};function wt(e,o){return t.openBlock(),t.createElementBlock("span",null,[t.renderSlot(e.$slots,"default")])}const kt=q(ht,[["render",wt]]),yt={};function bt(e,o){return t.openBlock(),t.createElementBlock("p",null,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const xt=q(yt,[["render",bt],["__scopeId","data-v-7b54f530"]]),St=q(t.defineComponent({__name:"List",props:{isOrdered:{type:Boolean,default:!1},hasTaskItems:{type:Boolean,default:!1}},setup(e){const o=e.isOrdered?"ol":"ul";return(n,r)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(o)),{class:t.normalizeClass({"has-task-items":e.hasTaskItems})},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-7555911f"]]),_t={};function vt(e,o){return t.openBlock(),t.createElementBlock("li",null,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}const Ct=q(_t,[["render",vt],["__scopeId","data-v-cf238e78"]]),Dt=["href","title"],At=q(t.defineComponent({__name:"Link",props:{href:{type:String,required:!0},title:{type:String,default:""}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("a",{href:e.href,rel:"noreferrer noopener nofollow",title:e.title},[t.renderSlot(o.$slots,"default",{},void 0,!0)],8,Dt))}}),[["__scopeId","data-v-0f033d16"]]),Nt={blockquote:Ge,code:ze,code_block:Ue,emphasis:Je,heading:We,image:Qe,break:et,link:At,list:St,list_item:Ct,paragraph:xt,strikethrough:ot,table:it,table_header:fe,table_row:fe,table_cell:ct,task_checkbox:dt,text:ft,text_block:kt},he=[];function qt(e){he.indexOf(e)===-1&&(he.push(e),console.warn(`[DocumentViewer] Unable to render an unknown node type "${e}"`))}function ne(e,o){return e.map((n,r)=>{var a;if(!n)return null;const{type:m,children:u,...s}=n,d=Nt[n.type];if(!d)return qt(m),null;if(Re(n)&&(n.section=L.header),Le(n)){const b=(a=n.children)==null?void 0:a.some(k=>{var A;return(A=k.children)==null?void 0:A.some(N=>{var x;return(x=N.children)==null?void 0:x.some(D=>D.type==="task_checkbox")})});return t.createVNode(d,t.mergeProps({hasTaskItems:b},s,{parent:o}),{default:()=>u&&ne(u,n)})}return(n==null?void 0:n.type)==="code_block"?t.createVNode(d,t.mergeProps(s,{lines:u,isSingleLine:(u==null?void 0:u.length)&&u.length===1,codeBlockIndex:r}),null):t.createVNode(d,t.mergeProps(s,{parent:o}),{default:()=>u&&ne(u,n)})})}const Tt={error:"Error: Markdown content missing"},Et={documentViewer:Tt};function Bt(){return{i18n:H.createI18n("en-us",Et),i18nT:H.Translation}}function jt(){return{hasRequiredProps:(e,o)=>{let n=!0;return e.forEach(r=>{o.forEach(a=>{r[a]||(n=!1)})}),n}}}const Ft={useI18n:Bt,useUtilities:jt};function Rt(e,o=""){return e.toLowerCase().trim().replace(/ /g,"-").replace(/[^\w-]+/g,"")+o}function we(e,o=new Map){if(!e)return e;const n=o||new Map;return e.map(r=>Ie(r)?Pt(r,o):(r.children&&(r.children=we(r.children,n)),r))}function Pt(e,o,n="doc-heading-"){var r;const a=(r=e.children)==null?void 0:r[0],m=`level-${e.level}`,u=Pe(a)&&a.text||m,s=o.get(u);o.set(u,(s||0)+1);const d=s&&s>1?`-${s}`:"",b=n+Rt(u,d);return{...e,slug:b}}const It={class:"document-viewer","data-testid":"document-viewer"},Lt={key:1,"data-testid":"document-viewer-error"},$t=q(t.defineComponent({__name:"DocumentViewer",props:{document:{type:Object,required:!0}},setup(e){var o;const n=e,{i18n:r}=Ft.useI18n(),a=d=>!d||Object.keys(d).length===0&&d.constructor===Object,m=t.computed(()=>!a(n.document)),u=we((o=n.document)==null?void 0:o.children),s=()=>{var d;return(d=n.document)!=null&&d.children?ne(u):null};return(d,b)=>(t.openBlock(),t.createElementBlock("div",It,[m.value?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createElementBlock("div",Lt,t.toDisplayString(t.unref(r).t("documentViewer.error")),1))]))}}),[["__scopeId","data-v-1ab71c85"]]);function ke(e){if(e!==void 0)return JSON.parse(JSON.stringify(e))}function Vt(e){return Object.keys(e).length===0}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ye(e){return typeof e>"u"||e===null}function Gt(e){return typeof e=="object"&&e!==null}function Ot(e){return Array.isArray(e)?e:ye(e)?[]:[e]}function Mt(e,o){var n,r,a,m;if(o)for(m=Object.keys(o),n=0,r=m.length;n<r;n+=1)a=m[n],e[a]=o[a];return e}function zt(e,o){var n="",r;for(r=0;r<o;r+=1)n+=e;return n}function Ht(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Kt=ye,Ut=Gt,Jt=Ot,Wt=zt,Xt=Ht,Qt=Mt,oe={isNothing:Kt,isObject:Ut,toArray:Jt,repeat:Wt,isNegativeZero:Xt,extend:Qt};function be(e,o){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!o&&e.mark.snippet&&(n+=`
|
|
11
11
|
|
|
12
12
|
`+e.mark.snippet),r+" "+n):r}function O(e,o){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=o,this.message=be(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O.prototype.toString=function(e){return this.name+": "+be(this,e)};var $=O,Zt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Yt=["scalar","sequence","mapping"];function en(e){var o={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){o[String(r)]=n})}),o}function tn(e,o){if(o=o||{},Object.keys(o).forEach(function(n){if(Zt.indexOf(n)===-1)throw new $('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=o,this.tag=e,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(n){return n},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=en(o.styleAliases||null),Yt.indexOf(this.kind)===-1)throw new $('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var T=tn;function xe(e,o){var n=[];return e[o].forEach(function(r){var a=n.length;n.forEach(function(m,u){m.tag===r.tag&&m.kind===r.kind&&m.multi===r.multi&&(a=u)}),n[a]=r}),n}function nn(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},o,n;function r(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(o=0,n=arguments.length;o<n;o+=1)arguments[o].forEach(r);return e}function re(e){return this.extend(e)}re.prototype.extend=function(e){var o=[],n=[];if(e instanceof T)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(o=o.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new $("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.forEach(function(a){if(!(a instanceof T))throw new $("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new $("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new $("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof T))throw new $("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(re.prototype);return r.implicit=(this.implicit||[]).concat(o),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=xe(r,"implicit"),r.compiledExplicit=xe(r,"explicit"),r.compiledTypeMap=nn(r.compiledImplicit,r.compiledExplicit),r};var on=re,rn=new T("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),an=new T("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ln=new T("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),sn=new on({explicit:[rn,an,ln]});function cn(e){if(e===null)return!0;var o=e.length;return o===1&&e==="~"||o===4&&(e==="null"||e==="Null"||e==="NULL")}function un(){return null}function dn(e){return e===null}var pn=new T("tag:yaml.org,2002:null",{kind:"scalar",resolve:cn,construct:un,predicate:dn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function mn(e){if(e===null)return!1;var o=e.length;return o===4&&(e==="true"||e==="True"||e==="TRUE")||o===5&&(e==="false"||e==="False"||e==="FALSE")}function gn(e){return e==="true"||e==="True"||e==="TRUE"}function fn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var hn=new T("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mn,construct:gn,predicate:fn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function wn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function kn(e){return 48<=e&&e<=55}function yn(e){return 48<=e&&e<=57}function bn(e){if(e===null)return!1;var o=e.length,n=0,r=!1,a;if(!o)return!1;if(a=e[n],(a==="-"||a==="+")&&(a=e[++n]),a==="0"){if(n+1===o)return!0;if(a=e[++n],a==="b"){for(n++;n<o;n++)if(a=e[n],a!=="_"){if(a!=="0"&&a!=="1")return!1;r=!0}return r&&a!=="_"}if(a==="x"){for(n++;n<o;n++)if(a=e[n],a!=="_"){if(!wn(e.charCodeAt(n)))return!1;r=!0}return r&&a!=="_"}if(a==="o"){for(n++;n<o;n++)if(a=e[n],a!=="_"){if(!kn(e.charCodeAt(n)))return!1;r=!0}return r&&a!=="_"}}if(a==="_")return!1;for(;n<o;n++)if(a=e[n],a!=="_"){if(!yn(e.charCodeAt(n)))return!1;r=!0}return!(!r||a==="_")}function xn(e){var o=e,n=1,r;if(o.indexOf("_")!==-1&&(o=o.replace(/_/g,"")),r=o[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),o=o.slice(1),r=o[0]),o==="0")return 0;if(r==="0"){if(o[1]==="b")return n*parseInt(o.slice(2),2);if(o[1]==="x")return n*parseInt(o.slice(2),16);if(o[1]==="o")return n*parseInt(o.slice(2),8)}return n*parseInt(o,10)}function Sn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!oe.isNegativeZero(e)}var _n=new T("tag:yaml.org,2002:int",{kind:"scalar",resolve:bn,construct:xn,predicate:Sn,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Cn(e){return!(e===null||!vn.test(e)||e[e.length-1]==="_")}function Dn(e){var o,n;return o=e.replace(/_/g,"").toLowerCase(),n=o[0]==="-"?-1:1,"+-".indexOf(o[0])>=0&&(o=o.slice(1)),o===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:o===".nan"?NaN:n*parseFloat(o,10)}var An=/^[-+]?[0-9]+e/;function Nn(e,o){var n;if(isNaN(e))switch(o){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(o){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(o){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(oe.isNegativeZero(e))return"-0.0";return n=e.toString(10),An.test(n)?n.replace("e",".e"):n}function qn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||oe.isNegativeZero(e))}var Tn=new T("tag:yaml.org,2002:float",{kind:"scalar",resolve:Cn,construct:Dn,predicate:qn,represent:Nn,defaultStyle:"lowercase"}),En=sn.extend({implicit:[pn,hn,_n,Tn]}),Bn=En,Se=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function jn(e){return e===null?!1:Se.exec(e)!==null||_e.exec(e)!==null}function Fn(e){var o,n,r,a,m,u,s,d=0,b=null,k,A,N;if(o=Se.exec(e),o===null&&(o=_e.exec(e)),o===null)throw new Error("Date resolve error");if(n=+o[1],r=+o[2]-1,a=+o[3],!o[4])return new Date(Date.UTC(n,r,a));if(m=+o[4],u=+o[5],s=+o[6],o[7]){for(d=o[7].slice(0,3);d.length<3;)d+="0";d=+d}return o[9]&&(k=+o[10],A=+(o[11]||0),b=(k*60+A)*6e4,o[9]==="-"&&(b=-b)),N=new Date(Date.UTC(n,r,a,m,u,s,d)),b&&N.setTime(N.getTime()-b),N}function Rn(e){return e.toISOString()}var Pn=new T("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:jn,construct:Fn,instanceOf:Date,represent:Rn});function In(e){return e==="<<"||e===null}var Ln=new T("tag:yaml.org,2002:merge",{kind:"scalar",resolve:In}),ae=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
13
|
-
\r`;function $n(e){if(e===null)return!1;var o,n,r=0,a=e.length,m=ae;for(n=0;n<a;n++)if(o=m.indexOf(e.charAt(n)),!(o>64)){if(o<0)return!1;r+=6}return r%8===0}function Vn(e){var o,n,r=e.replace(/[\r\n=]/g,""),a=r.length,m=ae,u=0,s=[];for(o=0;o<a;o++)o%4===0&&o&&(s.push(u>>16&255),s.push(u>>8&255),s.push(u&255)),u=u<<6|m.indexOf(r.charAt(o));return n=a%4*6,n===0?(s.push(u>>16&255),s.push(u>>8&255),s.push(u&255)):n===18?(s.push(u>>10&255),s.push(u>>2&255)):n===12&&s.push(u>>4&255),new Uint8Array(s)}function Gn(e){var o="",n=0,r,a,m=e.length,u=ae;for(r=0;r<m;r++)r%3===0&&r&&(o+=u[n>>18&63],o+=u[n>>12&63],o+=u[n>>6&63],o+=u[n&63]),n=(n<<8)+e[r];return a=m%3,a===0?(o+=u[n>>18&63],o+=u[n>>12&63],o+=u[n>>6&63],o+=u[n&63]):a===2?(o+=u[n>>10&63],o+=u[n>>4&63],o+=u[n<<2&63],o+=u[64]):a===1&&(o+=u[n>>2&63],o+=u[n<<4&63],o+=u[64],o+=u[64]),o}function On(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Mn=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$n,construct:Vn,predicate:On,represent:Gn}),zn=Object.prototype.hasOwnProperty,Hn=Object.prototype.toString;function Kn(e){if(e===null)return!0;var o=[],n,r,a,m,u,s=e;for(n=0,r=s.length;n<r;n+=1){if(a=s[n],u=!1,Hn.call(a)!=="[object Object]")return!1;for(m in a)if(zn.call(a,m))if(!u)u=!0;else return!1;if(!u)return!1;if(o.indexOf(m)===-1)o.push(m);else return!1}return!0}function Un(e){return e!==null?e:[]}var Jn=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kn,construct:Un}),Wn=Object.prototype.toString;function
|
|
14
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var oo=new Array(256),ro=new Array(256),V=0;V<256;V++)oo[V]=ve(V)?1:0,ro[V]=ve(V);const Ce=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const o=e,n=t.ref(void 0),r=t.computed(()=>n.value===!0||n.value!==void 0&&o.forceShow===!0);return t.watch(()=>o.authFunction,async()=>{n.value=await o.authFunction()},{immediate:!0}),(a,m)=>r.value?t.renderSlot(a.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),Yo="",ao=e=>(t.pushScopeId("data-v-760513c3"),e=e(),t.popScopeId(),e),io={class:"documentation-display"},lo={class:"document-meta"},so={class:"document-title meta-section"},co=ao(()=>t.createElementVNode("span",{class:"document-title-extension"},"md",-1)),uo={key:0,class:"document-status meta-section"},po={class:"meta-label"},mo={key:1,class:"document-create meta-section"},go={class:"meta-label"},fo={class:"document-display-actions"},ho={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},wo={key:1},ko=t.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","edit","toggle-published"],setup(e,{emit:o}){const n=e,{i18n:r}=te.useI18n(),a=t.ref(!0),m=t.computed(()=>{var x,D,_,y,C;return((D=(x=n.selectedDocument)==null?void 0:x.document)==null?void 0:D.title)||((C=(y=(_=n.selectedDocument)==null?void 0:_.document)==null?void 0:y.revision)==null?void 0:C.title)||""}),u=t.computed(()=>""),s=t.ref(!1),d=t.ref(r.t("documentation.common.unpublished")),b=t.ref(null);t.watch(()=>n.selectedDocument,x=>{var D;Vt(x)||(n.hidePublishToggle||A((D=x.document)==null?void 0:D.status),x.ast&&N())},{deep:!0});const k=()=>{const x=!s.value;o("toggle-published",x),s.value=x,d.value=x?r.t("documentation.common.published"):r.t("documentation.common.unpublished")},A=x=>{x==="published"?(s.value=!0,d.value=r.t("documentation.common.published")):(s.value=!1,d.value=r.t("documentation.common.unpublished"))},N=()=>{b.value={children:n.selectedDocument.ast,type:"document",version:1},a.value=!1};return(x,D)=>{const _=t.resolveComponent("KBadge"),y=t.resolveComponent("KInputSwitch"),C=t.resolveComponent("KButton"),l=t.resolveComponent("KSkeleton");return t.openBlock(),t.createElementBlock("div",io,[t.createElementVNode("div",lo,[t.createElementVNode("div",so,[t.renderSlot(x.$slots,"document-title",{},()=>[t.createElementVNode("span",null,t.toDisplayString(m.value),1),t.createTextVNode("."),co],!0)]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uo,[t.createElementVNode("span",po,t.toDisplayString(t.unref(r).t("documentation.documentation_display.status_label")),1),s.value?(t.openBlock(),t.createBlock(_,{key:0,appearance:"success"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.common.published")),1)]),_:1})):(t.openBlock(),t.createBlock(_,{key:1,appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.common.unpublished")),1)]),_:1}))])),u.value?(t.openBlock(),t.createElementBlock("div",mo,[t.createElementVNode("span",go,t.toDisplayString(t.unref(r).t("documentation.documentation_display.added_label")),1),t.createVNode(_,{appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",fo,[t.createVNode(t.unref(Ce),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[!e.hidePublishToggle&&!e.card?(t.openBlock(),t.createBlock(y,{key:0,modelValue:s.value,"onUpdate:modelValue":D[0]||(D[0]=i=>s.value=i),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:d.value,"label-position":"left",onClick:k},null,8,["modelValue","label"])):t.createCommentVNode("",!0),t.createVNode(C,{appearance:"secondary",class:"document-edit-button","data-testid":"document-edit-button",size:"small",onClick:D[1]||(D[1]=i=>o("edit"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.documentation_display.edit_button")),1)]),_:1}),t.createVNode(C,{appearance:"primary","data-testid":"add-new-page-button",size:"small",onClick:D[2]||(D[2]=i=>o("add"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.documentation_display.add_new")),1)]),_:1})]),_:1},8,["auth-function"])])]),a.value?(t.openBlock(),t.createElementBlock("div",ho,[e.card?(t.openBlock(),t.createBlock(l,{key:1,type:"card"})):(t.openBlock(),t.createBlock(l,{key:0,class:"markdown-content-loader"}))])):(t.openBlock(),t.createElementBlock("div",wo,[t.createElementVNode("div",{class:t.normalizeClass(["document-content",{"content-card-view":e.card}])},[b.value?(t.openBlock(),t.createBlock(t.unref($t),{key:0,document:b.value},null,8,["document"])):t.createCommentVNode("",!0)],2)]))])}}}),er="",ie=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},De=ie(ko,[["__scopeId","data-v-760513c3"]]),J="24px",Ae=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},yo=e=>(t.pushScopeId("data-v-81725854"),e=e(),t.popScopeId(),e),bo=["aria-hidden"],xo={key:0,"data-testid":"kui-icon-svg-title"},So=yo(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),_o=Ae(t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:J,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),m=Number(a);if(m&&!isNaN(m)&&Number.isInteger(m)&&m>0)return`${m}px`}return J}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",xo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),So],8,bo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-81725854"]]),Ne=e=>(t.pushScopeId("data-v-355d73b9"),e=e(),t.popScopeId(),e),vo=["aria-hidden"],Co={key:0,"data-testid":"kui-icon-svg-title"},Do=Ne(()=>t.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Ao=Ne(()=>t.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),qe=Ae(t.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:J,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),m=Number(a);if(m&&!isNaN(m)&&Number.isInteger(m)&&m>0)return`${m}px`}return J}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Co,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Do,Ao],8,vo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-355d73b9"]]),Te=t.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(e,{emit:o}){const{i18n:n}=te.useI18n();return(r,a)=>{const m=t.resolveComponent("KButton"),u=t.resolveComponent("KEmptyState");return t.openBlock(),t.createBlock(u,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state",icon:"stateGruceo","icon-size":"96"},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n).t("documentation.show.empty_state.title")),1)]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n).t("documentation.show.empty_state.message")),1)]),cta:t.withCtx(()=>[t.createVNode(t.unref(Ce),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(m,{appearance:"primary","data-testid":"add-new-page-button",onClick:a[0]||(a[0]=s=>o("create-documentation"))},{icon:t.withCtx(()=>[t.createVNode(t.unref(_o),{size:"22"})]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(n).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),No={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},qo=e=>(t.pushScopeId("data-v-ad1a177c"),e=e(),t.popScopeId(),e),To={class:"title"},Eo={class:"subtitle"},Bo=qo(()=>t.createElementVNode("br",null,null,-1)),jo={class:"document-inputs"},Fo={class:"page-name side-by-side"},Ro={class:"url-slug side-by-side"},Po={key:1,class:"documentation-status"},Io={class:"action-buttons"},Lo={class:"button-spacing"},$o=t.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["cancel","save","delete"],setup(e,{emit:o}){const n=e,{i18n:r}=te.useI18n(),a=t.computed(()=>{var c;return(c=n.record.file)==null?void 0:c.filename}),m=t.computed(()=>{var c;return y.value?(c=y.value.name)==null?void 0:c.split(".")[0]:""}),u=t.ref(!0),s=t.computed(()=>u.value?"published":"unpublished"),d=t.reactive({fileName:"",pageName:"",urlSlug:"",status:s.value,parent:""}),b=/^[\w-]+$/,k=t.computed(()=>{var c;return d.urlSlug!==""&&!((c=d.urlSlug)!=null&&c.match(b))}),A=t.computed(()=>{var w;let c=(w=n.documents)==null?void 0:w.filter(h=>{var S;return h.record.id!==((S=n.record)==null?void 0:S.id)&&!h.record.parent_document_id}).map(h=>({label:h.record.title,value:h.record.id,selected:!1}));c||(c=[]);const f=ke(c.length);return c.push({label:r.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!f}),c}),N=t.computed(()=>!n.editing&&!y.value||!d.pageName||k.value),x=t.computed(()=>n.editing?r.t("documentation.form_modal.edit_title"):r.t("documentation.form_modal.create_title")),D=t.computed(()=>n.editing?r.t("documentation.form_modal.replace_file_button_text"):r.t("documentation.form_modal.filename_button_text")),_=t.computed(()=>s.value==="published"?r.t("documentation.common.published"):r.t("documentation.common.unpublished")),y=t.ref(null),C=c=>{y.value=c==null?void 0:c[0],d.pageName=m.value,d.urlSlug=m.value,d.fileName=m.value},l=()=>{y.value=null},i=()=>{o("cancel"),g()},p=()=>{o("save",Object.assign(d,{status:s.value}),y)},g=()=>{var c,f,w,h,S;if(y.value=null,n.editing&&((c=n.record)!=null&&c.document)){const v=ke(n.record),B=v.status||n.record.document.status||u.value;d.fileName=((f=v.document.file)==null?void 0:f.filename)||((h=(w=v.document.revision)==null?void 0:w.file)==null?void 0:h.filename),d.pageName=v.document.title||((S=v.document.revision)==null?void 0:S.title),d.urlSlug=v.document.slug,d.parent=v.document.parent_document_id,d.status=B,u.value=B==="published"}else d.fileName="",d.pageName="",d.urlSlug="",d.parent="",d.status=""};return t.onMounted(()=>{g()}),(c,f)=>{const w=t.resolveComponent("KExternalLink"),h=t.resolveComponent("KAlert"),S=t.resolveComponent("KFileUpload"),v=t.resolveComponent("KInput"),B=t.resolveComponent("KLabel"),W=t.resolveComponent("KInputSwitch"),Q=t.resolveComponent("KSelect"),M=t.resolveComponent("KButton"),le=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[t.createVNode(le,{class:"edit-document-modal","data-testid":"edit-document-modal","is-visible":"",onCanceled:i,onProceed:p},{"header-content":t.withCtx(()=>[t.createElementVNode("div",To,[t.createTextVNode(t.toDisplayString(x.value)+" ",1),t.createElementVNode("div",Eo,[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.subtitle"))+" ",1),Bo,t.createVNode(w,{class:"doc-link",href:t.unref(No).serviceDocumentationDocs},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),"body-content":t.withCtx(()=>[e.errorMessage?(t.openBlock(),t.createBlock(h,{key:0,"alert-message":e.errorMessage,appearance:"danger",class:"bottom-spacing"},null,8,["alert-message"])):t.createCommentVNode("",!0),t.createVNode(S,{accept:[".md",".markdown"],"button-text":D.value,class:"document-file-upload","data-testid":"document-file-upload",label:t.unref(r).t("documentation.form_modal.file_label"),"label-attributes":{help:t.unref(r).t("documentation.form_modal.file_tooltip")},placeholder:e.editing?a.value:void 0,onFileAdded:C,onFileRemoved:l},null,8,["accept","button-text","label","label-attributes","placeholder"]),t.createElementVNode("div",jo,[t.createElementVNode("div",Fo,[t.createVNode(v,{modelValue:d.pageName,"onUpdate:modelValue":f[0]||(f[0]=F=>d.pageName=F),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:t.unref(r).t("documentation.form_modal.title_label"),placeholder:t.unref(r).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),t.createElementVNode("div",Ro,[t.createVNode(v,{modelValue:d.urlSlug,"onUpdate:modelValue":f[1]||(f[1]=F=>d.urlSlug=F),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":t.unref(r).t("documentation.form_modal.slug_error"),"has-error":k.value,label:t.unref(r).t("documentation.form_modal.slug_label"),pattern:b,placeholder:t.unref(r).t("documentation.form_modal.slug_placeholder")},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Po,[t.createElementVNode("div",null,[t.createVNode(B,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.status_label")),1)]),_:1})]),t.createVNode(W,{modelValue:u.value,"onUpdate:modelValue":f[2]||(f[2]=F=>u.value=F),"data-testid":"documentation-status",label:_.value},null,8,["modelValue","label"])])),t.createVNode(Q,{modelValue:d.parent,"onUpdate:modelValue":f[3]||(f[3]=F=>d.parent=F),appearance:"select",class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:A.value,label:t.unref(r).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),"action-buttons":t.withCtx(()=>[t.createElementVNode("div",Io,[e.editing?(t.openBlock(),t.createBlock(M,{key:0,appearance:"danger",class:"edit-documentation-delete-button","data-testid":"edit-documentation-delete-button",disabled:e.actionPending,onClick:f[4]||(f[4]=F=>o("delete"))},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.form_modal.delete_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(qe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",Lo,[t.createVNode(M,{appearance:"secondary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:i},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),t.createVNode(M,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:e.actionPending||N.value,onClick:p},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.form_modal.save_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(qe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])])])]),_:1})])}}}),or="",rr="",Ee=ie($o,[["__scopeId","data-v-ad1a177c"]]),Vo={class:"documentation"},Go={class:"documentation-parent-container"},Oo=t.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","edit","document-selection","modal-closed","parent-change","save","toggle-published"],setup(e,{emit:o}){const n=e,r=t.ref(!1),a=t.ref(!1);t.watch(()=>n.actionSuccess,b=>{b&&d()});const m=t.computed(()=>{var b,k;return`data-display-${n.cacheKey}-${((k=(b=n.selectedDocument)==null?void 0:b.document)==null?void 0:k.id)||""}`}),u=()=>{a.value=!1,r.value=!0},s=()=>{a.value=!0,r.value=!0,o("edit")},d=()=>{r.value=!1,o("modal-closed")};return(b,k)=>{const A=t.resolveComponent("KTreeList"),N=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Vo,[e.documentList&&!e.documentList.length?(t.openBlock(),t.createBlock(Te,{key:0,"can-edit":e.canEdit,onCreateDocumentation:u},null,8,["can-edit"])):(t.openBlock(),t.createBlock(N,{key:1,"border-variant":"noBorder",class:"documentation-card"},{body:t.withCtx(()=>[t.createElementVNode("div",Go,[(t.openBlock(),t.createBlock(A,{key:`tree-list-${e.cacheKey}`,class:"document-tree-list",items:e.documentList,"max-depth":2,onChange:k[0]||(k[0]=x=>o("parent-change",x)),onChildChange:k[1]||(k[1]=x=>o("child-change",x)),onSelected:k[2]||(k[2]=x=>o("document-selection",x))},null,8,["items"])),e.selectedDocument?(t.openBlock(),t.createBlock(De,{key:m.value,"can-edit":e.canEdit,card:e.card,class:"document-holder","hide-publish-toggle":e.hidePublishToggle,"selected-document":e.selectedDocument,onAdd:u,onEdit:s,onTogglePublished:k[3]||(k[3]=x=>o("toggle-published",x))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):t.createCommentVNode("",!0)])]),_:1})),r.value?(t.openBlock(),t.createBlock(Ee,{key:2,"action-pending":e.actionPending,documents:e.documentList,editing:a.value,"error-message":e.modalErrorMessage,"hide-publish-toggle":e.hidePublishToggle,record:a.value&&e.selectedDocument?e.selectedDocument:void 0,onCancel:d,onDelete:k[4]||(k[4]=x=>o("delete")),onSave:k[5]||(k[5]=(x,D)=>o("save",x,D))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):t.createCommentVNode("",!0)])}}}),ar="",Mo=ie(Oo,[["__scopeId","data-v-6e642447"]]);j.DocumentationContent=Mo,j.DocumentationDisplay=De,j.DocumentationPageEmptyState=Te,j.ProductDocumentModal=Ee,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
13
|
+
\r`;function $n(e){if(e===null)return!1;var o,n,r=0,a=e.length,m=ae;for(n=0;n<a;n++)if(o=m.indexOf(e.charAt(n)),!(o>64)){if(o<0)return!1;r+=6}return r%8===0}function Vn(e){var o,n,r=e.replace(/[\r\n=]/g,""),a=r.length,m=ae,u=0,s=[];for(o=0;o<a;o++)o%4===0&&o&&(s.push(u>>16&255),s.push(u>>8&255),s.push(u&255)),u=u<<6|m.indexOf(r.charAt(o));return n=a%4*6,n===0?(s.push(u>>16&255),s.push(u>>8&255),s.push(u&255)):n===18?(s.push(u>>10&255),s.push(u>>2&255)):n===12&&s.push(u>>4&255),new Uint8Array(s)}function Gn(e){var o="",n=0,r,a,m=e.length,u=ae;for(r=0;r<m;r++)r%3===0&&r&&(o+=u[n>>18&63],o+=u[n>>12&63],o+=u[n>>6&63],o+=u[n&63]),n=(n<<8)+e[r];return a=m%3,a===0?(o+=u[n>>18&63],o+=u[n>>12&63],o+=u[n>>6&63],o+=u[n&63]):a===2?(o+=u[n>>10&63],o+=u[n>>4&63],o+=u[n<<2&63],o+=u[64]):a===1&&(o+=u[n>>2&63],o+=u[n<<4&63],o+=u[64],o+=u[64]),o}function On(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Mn=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$n,construct:Vn,predicate:On,represent:Gn}),zn=Object.prototype.hasOwnProperty,Hn=Object.prototype.toString;function Kn(e){if(e===null)return!0;var o=[],n,r,a,m,u,s=e;for(n=0,r=s.length;n<r;n+=1){if(a=s[n],u=!1,Hn.call(a)!=="[object Object]")return!1;for(m in a)if(zn.call(a,m))if(!u)u=!0;else return!1;if(!u)return!1;if(o.indexOf(m)===-1)o.push(m);else return!1}return!0}function Un(e){return e!==null?e:[]}var Jn=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kn,construct:Un}),Wn=Object.prototype.toString;function Xn(e){if(e===null)return!0;var o,n,r,a,m,u=e;for(m=new Array(u.length),o=0,n=u.length;o<n;o+=1){if(r=u[o],Wn.call(r)!=="[object Object]"||(a=Object.keys(r),a.length!==1))return!1;m[o]=[a[0],r[a[0]]]}return!0}function Qn(e){if(e===null)return[];var o,n,r,a,m,u=e;for(m=new Array(u.length),o=0,n=u.length;o<n;o+=1)r=u[o],a=Object.keys(r),m[o]=[a[0],r[a[0]]];return m}var Zn=new T("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xn,construct:Qn}),Yn=Object.prototype.hasOwnProperty;function eo(e){if(e===null)return!0;var o,n=e;for(o in n)if(Yn.call(n,o)&&n[o]!==null)return!1;return!0}function to(e){return e!==null?e:{}}var no=new T("tag:yaml.org,2002:set",{kind:"mapping",resolve:eo,construct:to});Bn.extend({implicit:[Pn,Ln],explicit:[Mn,Jn,Zn,no]});function ve(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
14
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var oo=new Array(256),ro=new Array(256),V=0;V<256;V++)oo[V]=ve(V)?1:0,ro[V]=ve(V);const Ce=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const o=e,n=t.ref(void 0),r=t.computed(()=>n.value===!0||n.value!==void 0&&o.forceShow===!0);return t.watch(()=>o.authFunction,async()=>{n.value=await o.authFunction()},{immediate:!0}),(a,m)=>r.value?t.renderSlot(a.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),Yo="",ao=e=>(t.pushScopeId("data-v-760513c3"),e=e(),t.popScopeId(),e),io={class:"documentation-display"},lo={class:"document-meta"},so={class:"document-title meta-section"},co=ao(()=>t.createElementVNode("span",{class:"document-title-extension"},"md",-1)),uo={key:0,class:"document-status meta-section"},po={class:"meta-label"},mo={key:1,class:"document-create meta-section"},go={class:"meta-label"},fo={class:"document-display-actions"},ho={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},wo={key:1},ko=t.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","edit","toggle-published"],setup(e,{emit:o}){const n=e,{i18n:r}=te.useI18n(),a=t.ref(!0),m=t.computed(()=>{var x,D,_,y,C;return((D=(x=n.selectedDocument)==null?void 0:x.document)==null?void 0:D.title)||((C=(y=(_=n.selectedDocument)==null?void 0:_.document)==null?void 0:y.revision)==null?void 0:C.title)||""}),u=t.computed(()=>""),s=t.ref(!1),d=t.ref(r.t("documentation.common.unpublished")),b=t.ref(null);t.watch(()=>n.selectedDocument,x=>{var D;Vt(x)||(n.hidePublishToggle||A((D=x.document)==null?void 0:D.status),x.ast&&N())},{deep:!0});const k=()=>{const x=!s.value;o("toggle-published",x),s.value=x,d.value=x?r.t("documentation.common.published"):r.t("documentation.common.unpublished")},A=x=>{x==="published"?(s.value=!0,d.value=r.t("documentation.common.published")):(s.value=!1,d.value=r.t("documentation.common.unpublished"))},N=()=>{b.value={children:n.selectedDocument.ast,type:"document",version:1},a.value=!1};return(x,D)=>{const _=t.resolveComponent("KBadge"),y=t.resolveComponent("KInputSwitch"),C=t.resolveComponent("KButton"),l=t.resolveComponent("KSkeleton");return t.openBlock(),t.createElementBlock("div",io,[t.createElementVNode("div",lo,[t.createElementVNode("div",so,[t.renderSlot(x.$slots,"document-title",{},()=>[t.createElementVNode("span",null,t.toDisplayString(m.value),1),t.createTextVNode("."),co],!0)]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uo,[t.createElementVNode("span",po,t.toDisplayString(t.unref(r).t("documentation.documentation_display.status_label")),1),s.value?(t.openBlock(),t.createBlock(_,{key:0,appearance:"success"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.common.published")),1)]),_:1})):(t.openBlock(),t.createBlock(_,{key:1,appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.common.unpublished")),1)]),_:1}))])),u.value?(t.openBlock(),t.createElementBlock("div",mo,[t.createElementVNode("span",go,t.toDisplayString(t.unref(r).t("documentation.documentation_display.added_label")),1),t.createVNode(_,{appearance:"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",fo,[t.createVNode(t.unref(Ce),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[!e.hidePublishToggle&&!e.card?(t.openBlock(),t.createBlock(y,{key:0,modelValue:s.value,"onUpdate:modelValue":D[0]||(D[0]=i=>s.value=i),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:d.value,"label-position":"left",onClick:k},null,8,["modelValue","label"])):t.createCommentVNode("",!0),t.createVNode(C,{appearance:"secondary",class:"document-edit-button","data-testid":"document-edit-button",size:"small",onClick:D[1]||(D[1]=i=>o("edit"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.documentation_display.edit_button")),1)]),_:1}),t.createVNode(C,{appearance:"primary","data-testid":"add-new-page-button",size:"small",onClick:D[2]||(D[2]=i=>o("add"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.documentation_display.add_new")),1)]),_:1})]),_:1},8,["auth-function"])])]),a.value?(t.openBlock(),t.createElementBlock("div",ho,[e.card?(t.openBlock(),t.createBlock(l,{key:1,type:"card"})):(t.openBlock(),t.createBlock(l,{key:0,class:"markdown-content-loader"}))])):(t.openBlock(),t.createElementBlock("div",wo,[t.createElementVNode("div",{class:t.normalizeClass(["document-content",{"content-card-view":e.card}])},[b.value?(t.openBlock(),t.createBlock(t.unref($t),{key:0,document:b.value},null,8,["document"])):t.createCommentVNode("",!0)],2)]))])}}}),er="",ie=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},De=ie(ko,[["__scopeId","data-v-760513c3"]]),J="24px",Ae=(e,o)=>{const n=e.__vccOpts||e;for(const[r,a]of o)n[r]=a;return n},yo=e=>(t.pushScopeId("data-v-2cc22034"),e=e(),t.popScopeId(),e),bo=["aria-hidden"],xo={key:0,"data-testid":"kui-icon-svg-title"},So=yo(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),_o=Ae(t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:J,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),m=Number(a);if(m&&!isNaN(m)&&Number.isInteger(m)&&m>0)return`${m}px`}return J}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",xo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),So],8,bo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-2cc22034"]]),Ne=e=>(t.pushScopeId("data-v-6c72abfd"),e=e(),t.popScopeId(),e),vo=["aria-hidden"],Co={key:0,"data-testid":"kui-icon-svg-title"},Do=Ne(()=>t.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Ao=Ne(()=>t.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),qe=Ae(t.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:J,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const o=String(e).replace(/px/gi,""),n=Number(o);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const o=e,n=t.computed(()=>{if(typeof o.size=="number"&&o.size>0)return`${o.size}px`;if(typeof o.size=="string"){const a=String(o.size).replace(/px/gi,""),m=Number(a);if(m&&!isNaN(m)&&Number.isInteger(m)&&m>0)return`${m}px`}return J}),r=t.computed(()=>({boxSizing:"border-box",color:o.color,display:o.display,height:n.value,lineHeight:"0",width:n.value}));return(a,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:t.normalizeStyle(r.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Co,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Do,Ao],8,vo))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-6c72abfd"]]),Te=t.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(e,{emit:o}){const{i18n:n}=te.useI18n();return(r,a)=>{const m=t.resolveComponent("KButton"),u=t.resolveComponent("KEmptyState");return t.openBlock(),t.createBlock(u,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state",icon:"stateGruceo","icon-size":"96"},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n).t("documentation.show.empty_state.title")),1)]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n).t("documentation.show.empty_state.message")),1)]),cta:t.withCtx(()=>[t.createVNode(t.unref(Ce),{"auth-function":()=>e.canEdit()},{default:t.withCtx(()=>[t.createVNode(m,{appearance:"primary","data-testid":"add-new-page-button",onClick:a[0]||(a[0]=s=>o("create-documentation"))},{icon:t.withCtx(()=>[t.createVNode(t.unref(_o),{size:"22"})]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(n).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),No={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},qo=e=>(t.pushScopeId("data-v-ad1a177c"),e=e(),t.popScopeId(),e),To={class:"title"},Eo={class:"subtitle"},Bo=qo(()=>t.createElementVNode("br",null,null,-1)),jo={class:"document-inputs"},Fo={class:"page-name side-by-side"},Ro={class:"url-slug side-by-side"},Po={key:1,class:"documentation-status"},Io={class:"action-buttons"},Lo={class:"button-spacing"},$o=t.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["cancel","save","delete"],setup(e,{emit:o}){const n=e,{i18n:r}=te.useI18n(),a=t.computed(()=>{var c;return(c=n.record.file)==null?void 0:c.filename}),m=t.computed(()=>{var c;return y.value?(c=y.value.name)==null?void 0:c.split(".")[0]:""}),u=t.ref(!0),s=t.computed(()=>u.value?"published":"unpublished"),d=t.reactive({fileName:"",pageName:"",urlSlug:"",status:s.value,parent:""}),b=/^[\w-]+$/,k=t.computed(()=>{var c;return d.urlSlug!==""&&!((c=d.urlSlug)!=null&&c.match(b))}),A=t.computed(()=>{var w;let c=(w=n.documents)==null?void 0:w.filter(h=>{var S;return h.record.id!==((S=n.record)==null?void 0:S.id)&&!h.record.parent_document_id}).map(h=>({label:h.record.title,value:h.record.id,selected:!1}));c||(c=[]);const f=ke(c.length);return c.push({label:r.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!f}),c}),N=t.computed(()=>!n.editing&&!y.value||!d.pageName||k.value),x=t.computed(()=>n.editing?r.t("documentation.form_modal.edit_title"):r.t("documentation.form_modal.create_title")),D=t.computed(()=>n.editing?r.t("documentation.form_modal.replace_file_button_text"):r.t("documentation.form_modal.filename_button_text")),_=t.computed(()=>s.value==="published"?r.t("documentation.common.published"):r.t("documentation.common.unpublished")),y=t.ref(null),C=c=>{y.value=c==null?void 0:c[0],d.pageName=m.value,d.urlSlug=m.value,d.fileName=m.value},l=()=>{y.value=null},i=()=>{o("cancel"),g()},p=()=>{o("save",Object.assign(d,{status:s.value}),y)},g=()=>{var c,f,w,h,S;if(y.value=null,n.editing&&((c=n.record)!=null&&c.document)){const v=ke(n.record),B=v.status||n.record.document.status||u.value;d.fileName=((f=v.document.file)==null?void 0:f.filename)||((h=(w=v.document.revision)==null?void 0:w.file)==null?void 0:h.filename),d.pageName=v.document.title||((S=v.document.revision)==null?void 0:S.title),d.urlSlug=v.document.slug,d.parent=v.document.parent_document_id,d.status=B,u.value=B==="published"}else d.fileName="",d.pageName="",d.urlSlug="",d.parent="",d.status=""};return t.onMounted(()=>{g()}),(c,f)=>{const w=t.resolveComponent("KExternalLink"),h=t.resolveComponent("KAlert"),S=t.resolveComponent("KFileUpload"),v=t.resolveComponent("KInput"),B=t.resolveComponent("KLabel"),W=t.resolveComponent("KInputSwitch"),X=t.resolveComponent("KSelect"),M=t.resolveComponent("KButton"),le=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[t.createVNode(le,{class:"edit-document-modal","data-testid":"edit-document-modal","is-visible":"",onCanceled:i,onProceed:p},{"header-content":t.withCtx(()=>[t.createElementVNode("div",To,[t.createTextVNode(t.toDisplayString(x.value)+" ",1),t.createElementVNode("div",Eo,[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.subtitle"))+" ",1),Bo,t.createVNode(w,{class:"doc-link",href:t.unref(No).serviceDocumentationDocs},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),"body-content":t.withCtx(()=>[e.errorMessage?(t.openBlock(),t.createBlock(h,{key:0,"alert-message":e.errorMessage,appearance:"danger",class:"bottom-spacing"},null,8,["alert-message"])):t.createCommentVNode("",!0),t.createVNode(S,{accept:[".md",".markdown"],"button-text":D.value,class:"document-file-upload","data-testid":"document-file-upload",label:t.unref(r).t("documentation.form_modal.file_label"),"label-attributes":{help:t.unref(r).t("documentation.form_modal.file_tooltip")},placeholder:e.editing?a.value:void 0,onFileAdded:C,onFileRemoved:l},null,8,["accept","button-text","label","label-attributes","placeholder"]),t.createElementVNode("div",jo,[t.createElementVNode("div",Fo,[t.createVNode(v,{modelValue:d.pageName,"onUpdate:modelValue":f[0]||(f[0]=F=>d.pageName=F),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:t.unref(r).t("documentation.form_modal.title_label"),placeholder:t.unref(r).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),t.createElementVNode("div",Ro,[t.createVNode(v,{modelValue:d.urlSlug,"onUpdate:modelValue":f[1]||(f[1]=F=>d.urlSlug=F),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":t.unref(r).t("documentation.form_modal.slug_error"),"has-error":k.value,label:t.unref(r).t("documentation.form_modal.slug_label"),pattern:b,placeholder:t.unref(r).t("documentation.form_modal.slug_placeholder")},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),e.hidePublishToggle?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Po,[t.createElementVNode("div",null,[t.createVNode(B,null,{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.status_label")),1)]),_:1})]),t.createVNode(W,{modelValue:u.value,"onUpdate:modelValue":f[2]||(f[2]=F=>u.value=F),"data-testid":"documentation-status",label:_.value},null,8,["modelValue","label"])])),t.createVNode(X,{modelValue:d.parent,"onUpdate:modelValue":f[3]||(f[3]=F=>d.parent=F),appearance:"select",class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:A.value,label:t.unref(r).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),"action-buttons":t.withCtx(()=>[t.createElementVNode("div",Io,[e.editing?(t.openBlock(),t.createBlock(M,{key:0,appearance:"danger",class:"edit-documentation-delete-button","data-testid":"edit-documentation-delete-button",disabled:e.actionPending,onClick:f[4]||(f[4]=F=>o("delete"))},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.form_modal.delete_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(qe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",Lo,[t.createVNode(M,{appearance:"secondary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:i},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),t.createVNode(M,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:e.actionPending||N.value,onClick:p},t.createSlots({default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(r).t("documentation.form_modal.save_button_text")),1)]),_:2},[e.actionPending?{name:"icon",fn:t.withCtx(()=>[t.createVNode(t.unref(qe),{size:"16"})]),key:"0"}:void 0]),1032,["disabled"])])])]),_:1})])}}}),or="",rr="",Ee=ie($o,[["__scopeId","data-v-ad1a177c"]]),Vo={class:"documentation"},Go={class:"documentation-parent-container"},Oo=t.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","edit","document-selection","modal-closed","parent-change","save","toggle-published"],setup(e,{emit:o}){const n=e,r=t.ref(!1),a=t.ref(!1);t.watch(()=>n.actionSuccess,b=>{b&&d()});const m=t.computed(()=>{var b,k;return`data-display-${n.cacheKey}-${((k=(b=n.selectedDocument)==null?void 0:b.document)==null?void 0:k.id)||""}`}),u=()=>{a.value=!1,r.value=!0},s=()=>{a.value=!0,r.value=!0,o("edit")},d=()=>{r.value=!1,o("modal-closed")};return(b,k)=>{const A=t.resolveComponent("KTreeList"),N=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Vo,[e.documentList&&!e.documentList.length?(t.openBlock(),t.createBlock(Te,{key:0,"can-edit":e.canEdit,onCreateDocumentation:u},null,8,["can-edit"])):(t.openBlock(),t.createBlock(N,{key:1,"border-variant":"noBorder",class:"documentation-card"},{body:t.withCtx(()=>[t.createElementVNode("div",Go,[(t.openBlock(),t.createBlock(A,{key:`tree-list-${e.cacheKey}`,class:"document-tree-list",items:e.documentList,"max-depth":2,onChange:k[0]||(k[0]=x=>o("parent-change",x)),onChildChange:k[1]||(k[1]=x=>o("child-change",x)),onSelected:k[2]||(k[2]=x=>o("document-selection",x))},null,8,["items"])),e.selectedDocument?(t.openBlock(),t.createBlock(De,{key:m.value,"can-edit":e.canEdit,card:e.card,class:"document-holder","hide-publish-toggle":e.hidePublishToggle,"selected-document":e.selectedDocument,onAdd:u,onEdit:s,onTogglePublished:k[3]||(k[3]=x=>o("toggle-published",x))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):t.createCommentVNode("",!0)])]),_:1})),r.value?(t.openBlock(),t.createBlock(Ee,{key:2,"action-pending":e.actionPending,documents:e.documentList,editing:a.value,"error-message":e.modalErrorMessage,"hide-publish-toggle":e.hidePublishToggle,record:a.value&&e.selectedDocument?e.selectedDocument:void 0,onCancel:d,onDelete:k[4]||(k[4]=x=>o("delete")),onSave:k[5]||(k[5]=(x,D)=>o("save",x,D))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):t.createCommentVNode("",!0)])}}}),ar="",Mo=ie(Oo,[["__scopeId","data-v-6e642447"]]);j.DocumentationContent=Mo,j.DocumentationDisplay=De,j.DocumentationPageEmptyState=Te,j.ProductDocumentModal=Ee,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/documentation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/documentation.umd.js",
|
|
6
6
|
"module": "./dist/documentation.es.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@kong-ui-public/i18n": "^2.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@kong/icons": "^1.8.
|
|
53
|
+
"@kong/icons": "^1.8.2",
|
|
54
54
|
"@kong-ui-public/document-viewer": "^2.0.6",
|
|
55
|
-
"@kong-ui-public/entities-shared": "^2.1.
|
|
55
|
+
"@kong-ui-public/entities-shared": "^2.1.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "cross-env USE_SANDBOX=true vite",
|