@oiij/naive-ui 0.0.30 → 0.0.31
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/components/preset-form/index.d.ts +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +307 -297
- package/dist/components.umd.cjs +1 -1
- package/package.json +4 -4
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as Fr, onBeforeMount as Ro, defineComponent as me, createBlock as z, openBlock as R, Transition as Oo, mergeProps as Z, unref as v, withCtx as O, renderSlot as U, ref as G, toValue as Ke, isRef as Kt, isReactive as Mo, watchEffect as Se, watch as Qe, computed as oe, nextTick as Sr, normalizeClass as Ru, createElementVNode as uu, normalizeStyle as rn, createVNode as V, createCommentVNode as ue, resolveDynamicComponent as se, Teleport as Lo, normalizeProps as fe, guardReactiveProps as qe, createSlots as Tr, onMounted as No, createElementBlock as re, createTextVNode as
|
|
2
|
-
import { NEl as an, NAvatar as jo, NFlex as Oe, NSpin as Pr, cM as Un, NConfigProvider as Ho, NLoadingBarProvider as Go, NDialogProvider as Wo, NModalProvider as Vo, NNotificationProvider as Zo, NMessageProvider as Yo, NGlobalStyle as Xo, useDialog as Ko, useLoadingBar as Qo, useMessage as Jo, useModal as ei, useNotification as ui, NTooltip as Rr, NButton as Je, NFormItem as ti, NInputGroup as ni, NInput as ln, NTimePicker as ri, NSwitch as oi, NSlider as ii, NSelect as Or, NRate as ai, NRadioGroup as li, NInputNumber as si, NDynamicTags as ci, NDatePicker as fi, NDivider as sn, NCheckboxGroup as di, NColorPicker as pi, NCheckbox as hi, NRadio as bi, NGrid as st, NGi as ct, NCollapseTransition as Mr, NDataTable as mi, NPagination as Lr, NForm as gi, NBadge as
|
|
1
|
+
import { inject as Fr, onBeforeMount as Ro, defineComponent as me, createBlock as z, openBlock as R, Transition as Oo, mergeProps as Z, unref as v, withCtx as O, renderSlot as U, ref as G, toValue as Ke, isRef as Kt, isReactive as Mo, watchEffect as Se, watch as Qe, computed as oe, nextTick as Sr, normalizeClass as Ru, createElementVNode as uu, normalizeStyle as rn, createVNode as V, createCommentVNode as ue, resolveDynamicComponent as se, Teleport as Lo, normalizeProps as fe, guardReactiveProps as qe, createSlots as Tr, onMounted as No, createElementBlock as re, createTextVNode as xu, toDisplayString as ou, onScopeDispose as on, onUnmounted as $o, reactive as Ou, toRefs as Io, h as be, useTemplateRef as mt, Fragment as Ee, renderList as Ze, toRaw as ye, toRef as zo, withModifiers as Bo, mergeModels as Uo, useModel as qo } from "vue";
|
|
2
|
+
import { NEl as an, NAvatar as jo, NFlex as Oe, NSpin as Pr, cM as Un, NConfigProvider as Ho, NLoadingBarProvider as Go, NDialogProvider as Wo, NModalProvider as Vo, NNotificationProvider as Zo, NMessageProvider as Yo, NGlobalStyle as Xo, useDialog as Ko, useLoadingBar as Qo, useMessage as Jo, useModal as ei, useNotification as ui, NTooltip as Rr, NButton as Je, NFormItem as ti, NInputGroup as ni, NInput as ln, NTimePicker as ri, NSwitch as oi, NSlider as ii, NSelect as Or, NRate as ai, NRadioGroup as li, NInputNumber as si, NDynamicTags as ci, NDatePicker as fi, NDivider as sn, NCheckboxGroup as di, NColorPicker as pi, NCheckbox as hi, NRadio as bi, NGrid as st, NGi as ct, NCollapseTransition as Mr, NDataTable as mi, NPagination as Lr, NForm as gi, NBadge as ki, NButtonGroup as xi, NModal as _i } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as vi, useTimeoutFn as yi, useDebounceFn as Nr } from "@vueuse/core";
|
|
4
4
|
function Ei(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -379,7 +379,7 @@ function gt(e, u) {
|
|
|
379
379
|
n();
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
const { cssr:
|
|
382
|
+
const { cssr: kt, plugin: xt, namespace: Iu } = qi(), { c: Zi } = kt, { cB: Xu } = xt, Yi = `${Iu}-transition`;
|
|
383
383
|
function Xi({
|
|
384
384
|
name: e = "fade",
|
|
385
385
|
enterDuration: u = ".3s",
|
|
@@ -435,14 +435,14 @@ const {
|
|
|
435
435
|
getOwnPropertyDescriptor: ea
|
|
436
436
|
} = Object;
|
|
437
437
|
let {
|
|
438
|
-
freeze:
|
|
438
|
+
freeze: ke,
|
|
439
439
|
seal: Ce,
|
|
440
440
|
create: qr
|
|
441
441
|
} = Object, {
|
|
442
442
|
apply: Jt,
|
|
443
443
|
construct: en
|
|
444
444
|
} = typeof Reflect < "u" && Reflect;
|
|
445
|
-
|
|
445
|
+
ke || (ke = function(u) {
|
|
446
446
|
return u;
|
|
447
447
|
});
|
|
448
448
|
Ce || (Ce = function(u) {
|
|
@@ -454,8 +454,8 @@ Jt || (Jt = function(u, t, n) {
|
|
|
454
454
|
en || (en = function(u, t) {
|
|
455
455
|
return new u(...t);
|
|
456
456
|
});
|
|
457
|
-
const Ku =
|
|
458
|
-
function
|
|
457
|
+
const Ku = xe(Array.prototype.forEach), ua = xe(Array.prototype.lastIndexOf), Wn = xe(Array.prototype.pop), Au = xe(Array.prototype.push), ta = xe(Array.prototype.splice), ot = xe(String.prototype.toLowerCase), Ot = xe(String.prototype.toString), Vn = xe(String.prototype.match), wu = xe(String.prototype.replace), na = xe(String.prototype.indexOf), ra = xe(String.prototype.trim), Fe = xe(Object.prototype.hasOwnProperty), ge = xe(RegExp.prototype.test), Cu = oa(TypeError);
|
|
458
|
+
function xe(e) {
|
|
459
459
|
return function(u) {
|
|
460
460
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
461
461
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
@@ -500,9 +500,9 @@ function Du(e, u) {
|
|
|
500
500
|
const n = ea(e, u);
|
|
501
501
|
if (n) {
|
|
502
502
|
if (n.get)
|
|
503
|
-
return
|
|
503
|
+
return xe(n.get);
|
|
504
504
|
if (typeof n.value == "function")
|
|
505
|
-
return
|
|
505
|
+
return xe(n.value);
|
|
506
506
|
}
|
|
507
507
|
e = Ji(e);
|
|
508
508
|
}
|
|
@@ -511,7 +511,7 @@ function Du(e, u) {
|
|
|
511
511
|
}
|
|
512
512
|
return t;
|
|
513
513
|
}
|
|
514
|
-
const Zn =
|
|
514
|
+
const Zn = ke(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Mt = ke(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Lt = ke(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), aa = ke(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Nt = ke(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), la = ke(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Yn = ke(["#text"]), Xn = ke(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = ke(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Kn = ke(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Qu = ke(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), sa = Ce(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ca = Ce(/<%[\w\W]*|[\w\W]*%>/gm), fa = Ce(/\$\{[\w\W]*/gm), da = Ce(/^data-[\-\w.\u00B7-\uFFFF]+$/), pa = Ce(/^aria-[\-\w]+$/), jr = Ce(
|
|
515
515
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
516
516
|
// eslint-disable-line no-useless-escape
|
|
517
517
|
), ha = Ce(/^(?:\w+script|data):/i), ba = Ce(
|
|
@@ -540,7 +540,7 @@ const Fu = {
|
|
|
540
540
|
document: 9
|
|
541
541
|
}, ga = function() {
|
|
542
542
|
return typeof window > "u" ? null : window;
|
|
543
|
-
},
|
|
543
|
+
}, ka = function(u, t) {
|
|
544
544
|
if (typeof u != "object" || typeof u.createPolicy != "function")
|
|
545
545
|
return null;
|
|
546
546
|
let n = null;
|
|
@@ -589,7 +589,7 @@ function Gr() {
|
|
|
589
589
|
NamedNodeMap: c = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
590
590
|
HTMLFormElement: f,
|
|
591
591
|
DOMParser: _,
|
|
592
|
-
trustedTypes:
|
|
592
|
+
trustedTypes: x
|
|
593
593
|
} = e, d = l.prototype, y = Du(d, "cloneNode"), A = Du(d, "remove"), E = Du(d, "nextSibling"), m = Du(d, "childNodes"), p = Du(d, "parentNode");
|
|
594
594
|
if (typeof a == "function") {
|
|
595
595
|
const I = t.createElement("template");
|
|
@@ -597,7 +597,7 @@ function Gr() {
|
|
|
597
597
|
}
|
|
598
598
|
let h, b = "";
|
|
599
599
|
const {
|
|
600
|
-
implementation:
|
|
600
|
+
implementation: k,
|
|
601
601
|
createNodeIterator: w,
|
|
602
602
|
createDocumentFragment: P,
|
|
603
603
|
getElementsByTagName: D
|
|
@@ -605,7 +605,7 @@ function Gr() {
|
|
|
605
605
|
importNode: B
|
|
606
606
|
} = n;
|
|
607
607
|
let L = Jn();
|
|
608
|
-
u.isSupported = typeof Ur == "function" && typeof p == "function" &&
|
|
608
|
+
u.isSupported = typeof Ur == "function" && typeof p == "function" && k && k.createHTMLDocument !== void 0;
|
|
609
609
|
const {
|
|
610
610
|
MUSTACHE_EXPR: Y,
|
|
611
611
|
ERB_EXPR: ie,
|
|
@@ -669,8 +669,8 @@ function Gr() {
|
|
|
669
669
|
throw Cu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
670
670
|
h = g.TRUSTED_TYPES_POLICY, b = h.createHTML("");
|
|
671
671
|
} else
|
|
672
|
-
h === void 0 && (h =
|
|
673
|
-
|
|
672
|
+
h === void 0 && (h = ka(x, r)), h !== null && typeof b == "string" && (b = h.createHTML(""));
|
|
673
|
+
ke && ke(g), pu = g;
|
|
674
674
|
}
|
|
675
675
|
}, Tn = j({}, [...Mt, ...Lt, ...aa]), Pn = j({}, [...Nt, ...la]), To = function(g) {
|
|
676
676
|
let S = p(g);
|
|
@@ -728,7 +728,7 @@ function Gr() {
|
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
730
|
if (!S || !S.documentElement) {
|
|
731
|
-
S =
|
|
731
|
+
S = k.createDocument(du, "template", null);
|
|
732
732
|
try {
|
|
733
733
|
S.documentElement.innerHTML = Ft ? b : J;
|
|
734
734
|
} catch {
|
|
@@ -857,8 +857,8 @@ function Gr() {
|
|
|
857
857
|
hu(ne, g);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
|
-
if (h && typeof
|
|
861
|
-
switch (
|
|
860
|
+
if (h && typeof x == "object" && typeof x.getAttributeType == "function" && !_e)
|
|
861
|
+
switch (x.getAttributeType(zn, Eu)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
863
|
pe = h.createHTML(pe);
|
|
864
864
|
break;
|
|
@@ -950,7 +950,7 @@ function Gr() {
|
|
|
950
950
|
L = Jn();
|
|
951
951
|
}, u;
|
|
952
952
|
}
|
|
953
|
-
var
|
|
953
|
+
var xa = Gr();
|
|
954
954
|
const er = {};
|
|
955
955
|
function _a(e) {
|
|
956
956
|
let u = er[e];
|
|
@@ -1101,8 +1101,8 @@ ft.prototype.parse = function(e, u) {
|
|
|
1101
1101
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
1102
1102
|
const _ = o.slice(0, s);
|
|
1103
1103
|
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
1104
|
-
const
|
|
1105
|
-
if (!
|
|
1104
|
+
const x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
1105
|
+
if (!x) {
|
|
1106
1106
|
const d = this.hostname.split(/\./);
|
|
1107
1107
|
for (let y = 0, A = d.length; y < A; y++) {
|
|
1108
1108
|
const E = d[y];
|
|
@@ -1118,7 +1118,7 @@ ft.prototype.parse = function(e, u) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
this.hostname.length > Fa && (this.hostname = ""),
|
|
1121
|
+
this.hostname.length > Fa && (this.hostname = ""), x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
1122
1122
|
}
|
|
1123
1123
|
const i = o.indexOf("#");
|
|
1124
1124
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
@@ -1503,7 +1503,7 @@ function Ka(e, u) {
|
|
|
1503
1503
|
function Qa(e) {
|
|
1504
1504
|
return e.indexOf("\\") < 0 ? e : e.replace(Jr, "$1");
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function ku(e) {
|
|
1507
1507
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ya, function(u, t, n) {
|
|
1508
1508
|
return t || Ka(u, n);
|
|
1509
1509
|
});
|
|
@@ -1617,7 +1617,7 @@ const o0 = { mdurl: Ta, ucmicro: Ra }, i0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1617
1617
|
isWhiteSpace: Mu,
|
|
1618
1618
|
lib: o0,
|
|
1619
1619
|
normalizeReference: vt,
|
|
1620
|
-
unescapeAll:
|
|
1620
|
+
unescapeAll: ku,
|
|
1621
1621
|
unescapeMd: Qa
|
|
1622
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
1623
|
function a0(e, u, t) {
|
|
@@ -1650,7 +1650,7 @@ function l0(e, u, t) {
|
|
|
1650
1650
|
if (n = e.charCodeAt(r), n === 10 || n === 60)
|
|
1651
1651
|
return o;
|
|
1652
1652
|
if (n === 62)
|
|
1653
|
-
return o.pos = r + 1, o.str =
|
|
1653
|
+
return o.pos = r + 1, o.str = ku(e.slice(u + 1, r)), o.ok = !0, o;
|
|
1654
1654
|
if (n === 92 && r + 1 < t) {
|
|
1655
1655
|
r += 2;
|
|
1656
1656
|
continue;
|
|
@@ -1676,7 +1676,7 @@ function l0(e, u, t) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
r++;
|
|
1678
1678
|
}
|
|
1679
|
-
return u === r || a !== 0 || (o.str =
|
|
1679
|
+
return u === r || a !== 0 || (o.str = ku(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
1680
1680
|
}
|
|
1681
1681
|
function s0(e, u, t, n) {
|
|
1682
1682
|
let r, o = u;
|
|
@@ -1704,12 +1704,12 @@ function s0(e, u, t, n) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
for (; o < t; ) {
|
|
1706
1706
|
if (r = e.charCodeAt(o), r === a.marker)
|
|
1707
|
-
return a.pos = o + 1, a.str +=
|
|
1707
|
+
return a.pos = o + 1, a.str += ku(e.slice(u, o)), a.ok = !0, a;
|
|
1708
1708
|
if (r === 40 && a.marker === 41)
|
|
1709
1709
|
return a;
|
|
1710
1710
|
r === 92 && o + 1 < t && o++, o++;
|
|
1711
1711
|
}
|
|
1712
|
-
return a.can_continue = !0, a.str +=
|
|
1712
|
+
return a.can_continue = !0, a.str += ku(e.slice(u, o)), a;
|
|
1713
1713
|
}
|
|
1714
1714
|
const c0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1715
|
__proto__: null,
|
|
@@ -1727,7 +1727,7 @@ Ne.code_block = function(e, u, t, n, r) {
|
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
1729
|
Ne.fence = function(e, u, t, n, r) {
|
|
1730
|
-
const o = e[u], a = o.info ?
|
|
1730
|
+
const o = e[u], a = o.info ? ku(o.info).trim() : "";
|
|
1731
1731
|
let i = "", l = "";
|
|
1732
1732
|
if (a) {
|
|
1733
1733
|
const c = a.split(/(\s+)/g);
|
|
@@ -1986,7 +1986,7 @@ function m0(e) {
|
|
|
1986
1986
|
function g0(e) {
|
|
1987
1987
|
return /^<\/a\s*>/i.test(e);
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function k0(e) {
|
|
1990
1990
|
const u = e.tokens;
|
|
1991
1991
|
if (e.md.options.linkify)
|
|
1992
1992
|
for (let t = 0, n = u.length; t < n; t++) {
|
|
@@ -2006,13 +2006,13 @@ function x0(e) {
|
|
|
2006
2006
|
const c = [];
|
|
2007
2007
|
let f = i.level, _ = 0;
|
|
2008
2008
|
s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
|
|
2009
|
-
for (let
|
|
2010
|
-
const d = s[
|
|
2009
|
+
for (let x = 0; x < s.length; x++) {
|
|
2010
|
+
const d = s[x].url, y = e.md.normalizeLink(d);
|
|
2011
2011
|
if (!e.md.validateLink(y))
|
|
2012
2012
|
continue;
|
|
2013
|
-
let A = s[
|
|
2014
|
-
s[
|
|
2015
|
-
const E = s[
|
|
2013
|
+
let A = s[x].text;
|
|
2014
|
+
s[x].schema ? s[x].schema === "mailto:" && !/^mailto:/i.test(A) ? A = e.md.normalizeLinkText("mailto:" + A).replace(/^mailto:/, "") : A = e.md.normalizeLinkText(A) : A = e.md.normalizeLinkText("http://" + A).replace(/^http:\/\//, "");
|
|
2015
|
+
const E = s[x].index;
|
|
2016
2016
|
if (E > _) {
|
|
2017
2017
|
const b = new e.Token("text", "", 0);
|
|
2018
2018
|
b.content = l.slice(_, E), b.level = f, c.push(b);
|
|
@@ -2022,18 +2022,18 @@ function x0(e) {
|
|
|
2022
2022
|
const p = new e.Token("text", "", 0);
|
|
2023
2023
|
p.content = A, p.level = f, c.push(p);
|
|
2024
2024
|
const h = new e.Token("link_close", "a", -1);
|
|
2025
|
-
h.level = --f, h.markup = "linkify", h.info = "auto", c.push(h), _ = s[
|
|
2025
|
+
h.level = --f, h.markup = "linkify", h.info = "auto", c.push(h), _ = s[x].lastIndex;
|
|
2026
2026
|
}
|
|
2027
2027
|
if (_ < l.length) {
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2028
|
+
const x = new e.Token("text", "", 0);
|
|
2029
|
+
x.content = l.slice(_), x.level = f, c.push(x);
|
|
2030
2030
|
}
|
|
2031
2031
|
u[t].children = r = Qr(r, a, c);
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
|
-
const uo = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
|
|
2036
|
+
const uo = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, x0 = /\((c|tm|r)\)/i, _0 = /\((c|tm|r)\)/ig, v0 = {
|
|
2037
2037
|
c: "©",
|
|
2038
2038
|
r: "®",
|
|
2039
2039
|
tm: "™"
|
|
@@ -2059,7 +2059,7 @@ function w0(e) {
|
|
|
2059
2059
|
let u;
|
|
2060
2060
|
if (e.md.options.typographer)
|
|
2061
2061
|
for (u = e.tokens.length - 1; u >= 0; u--)
|
|
2062
|
-
e.tokens[u].type === "inline" && (
|
|
2062
|
+
e.tokens[u].type === "inline" && (x0.test(e.tokens[u].content) && E0(e.tokens[u].children), uo.test(e.tokens[u].content) && A0(e.tokens[u].children));
|
|
2063
2063
|
}
|
|
2064
2064
|
const C0 = /['"]/, ar = /['"]/g, lr = "’";
|
|
2065
2065
|
function Ju(e, u, t) {
|
|
@@ -2083,7 +2083,7 @@ function D0(e, u) {
|
|
|
2083
2083
|
break;
|
|
2084
2084
|
let f = !0, _ = !0;
|
|
2085
2085
|
l = c.index + 1;
|
|
2086
|
-
const
|
|
2086
|
+
const x = c[0] === "'";
|
|
2087
2087
|
let d = 32;
|
|
2088
2088
|
if (c.index - 1 >= 0)
|
|
2089
2089
|
d = i.charCodeAt(c.index - 1);
|
|
@@ -2104,7 +2104,7 @@ function D0(e, u) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
const A = Nu(d) || Lu(String.fromCharCode(d)), E = Nu(y) || Lu(String.fromCharCode(y)), m = Mu(d), p = Mu(y);
|
|
2106
2106
|
if (p ? f = !1 : E && (m || A || (f = !1)), m ? _ = !1 : A && (p || E || (_ = !1)), y === 34 && c[0] === '"' && d >= 48 && d <= 57 && (_ = f = !1), f && _ && (f = A, _ = E), !f && !_) {
|
|
2107
|
-
|
|
2107
|
+
x && (o.content = Ju(o.content, c.index, lr));
|
|
2108
2108
|
continue;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (_)
|
|
@@ -2112,23 +2112,23 @@ function D0(e, u) {
|
|
|
2112
2112
|
let h = n[t];
|
|
2113
2113
|
if (n[t].level < a)
|
|
2114
2114
|
break;
|
|
2115
|
-
if (h.single ===
|
|
2115
|
+
if (h.single === x && n[t].level === a) {
|
|
2116
2116
|
h = n[t];
|
|
2117
|
-
let b,
|
|
2118
|
-
|
|
2117
|
+
let b, k;
|
|
2118
|
+
x ? (b = u.md.options.quotes[2], k = u.md.options.quotes[3]) : (b = u.md.options.quotes[0], k = u.md.options.quotes[1]), o.content = Ju(o.content, c.index, k), e[h.token].content = Ju(
|
|
2119
2119
|
e[h.token].content,
|
|
2120
2120
|
h.pos,
|
|
2121
2121
|
b
|
|
2122
|
-
), l +=
|
|
2122
|
+
), l += k.length - 1, h.token === r && (l += b.length - 1), i = o.content, s = i.length, n.length = t;
|
|
2123
2123
|
continue e;
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
f ? n.push({
|
|
2127
2127
|
token: r,
|
|
2128
2128
|
pos: c.index,
|
|
2129
|
-
single:
|
|
2129
|
+
single: x,
|
|
2130
2130
|
level: a
|
|
2131
|
-
}) : _ &&
|
|
2131
|
+
}) : _ && x && (o.content = Ju(o.content, c.index, lr));
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
}
|
|
@@ -2154,7 +2154,7 @@ const zt = [
|
|
|
2154
2154
|
["normalize", p0],
|
|
2155
2155
|
["block", h0],
|
|
2156
2156
|
["inline", b0],
|
|
2157
|
-
["linkify",
|
|
2157
|
+
["linkify", k0],
|
|
2158
2158
|
["replacements", w0],
|
|
2159
2159
|
["smartquotes", F0],
|
|
2160
2160
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
@@ -2307,7 +2307,7 @@ function P0(e, u, t, n) {
|
|
|
2307
2307
|
return !0;
|
|
2308
2308
|
const _ = e.parentType;
|
|
2309
2309
|
e.parentType = "table";
|
|
2310
|
-
const
|
|
2310
|
+
const x = e.md.block.ruler.getRules("blockquote"), d = e.push("table_open", "table", 1), y = [u, 0];
|
|
2311
2311
|
d.map = y;
|
|
2312
2312
|
const A = e.push("thead_open", "thead", 1);
|
|
2313
2313
|
A.map = [u, u + 1];
|
|
@@ -2316,31 +2316,31 @@ function P0(e, u, t, n) {
|
|
|
2316
2316
|
for (let h = 0; h < s.length; h++) {
|
|
2317
2317
|
const b = e.push("th_open", "th", 1);
|
|
2318
2318
|
c[h] && (b.attrs = [["style", "text-align:" + c[h]]]);
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2319
|
+
const k = e.push("inline", "", 0);
|
|
2320
|
+
k.content = s[h].trim(), k.children = [], e.push("th_close", "th", -1);
|
|
2321
2321
|
}
|
|
2322
2322
|
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
2323
2323
|
let m, p = 0;
|
|
2324
2324
|
for (r = u + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
|
|
2325
2325
|
let h = !1;
|
|
2326
|
-
for (let
|
|
2327
|
-
if (k
|
|
2326
|
+
for (let k = 0, w = x.length; k < w; k++)
|
|
2327
|
+
if (x[k](e, r, t, !0)) {
|
|
2328
2328
|
h = !0;
|
|
2329
2329
|
break;
|
|
2330
2330
|
}
|
|
2331
2331
|
if (h || (l = Bt(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (s = sr(l), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), p += f - s.length, p > T0))
|
|
2332
2332
|
break;
|
|
2333
2333
|
if (r === u + 2) {
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2334
|
+
const k = e.push("tbody_open", "tbody", 1);
|
|
2335
|
+
k.map = m = [u + 2, 0];
|
|
2336
2336
|
}
|
|
2337
2337
|
const b = e.push("tr_open", "tr", 1);
|
|
2338
2338
|
b.map = [r, r + 1];
|
|
2339
|
-
for (let
|
|
2339
|
+
for (let k = 0; k < f; k++) {
|
|
2340
2340
|
const w = e.push("td_open", "td", 1);
|
|
2341
|
-
c[
|
|
2341
|
+
c[k] && (w.attrs = [["style", "text-align:" + c[k]]]);
|
|
2342
2342
|
const P = e.push("inline", "", 0);
|
|
2343
|
-
P.content = s[
|
|
2343
|
+
P.content = s[k] ? s[k].trim() : "", P.children = [], e.push("td_close", "td", -1);
|
|
2344
2344
|
}
|
|
2345
2345
|
e.push("tr_close", "tr", -1);
|
|
2346
2346
|
}
|
|
@@ -2390,8 +2390,8 @@ function O0(e, u, t, n) {
|
|
|
2390
2390
|
break;
|
|
2391
2391
|
}
|
|
2392
2392
|
l = e.sCount[u], e.line = f + (_ ? 1 : 0);
|
|
2393
|
-
const
|
|
2394
|
-
return
|
|
2393
|
+
const x = e.push("fence", "code", 0);
|
|
2394
|
+
return x.info = c, x.content = e.getLines(u + 1, f, l, !0), x.markup = s, x.map = [u, e.line], !0;
|
|
2395
2395
|
}
|
|
2396
2396
|
function M0(e, u, t, n) {
|
|
2397
2397
|
let r = e.bMarks[u] + e.tShift[u], o = e.eMarks[u];
|
|
@@ -2402,14 +2402,14 @@ function M0(e, u, t, n) {
|
|
|
2402
2402
|
return !0;
|
|
2403
2403
|
const i = [], l = [], s = [], c = [], f = e.md.block.ruler.getRules("blockquote"), _ = e.parentType;
|
|
2404
2404
|
e.parentType = "blockquote";
|
|
2405
|
-
let
|
|
2405
|
+
let x = !1, d;
|
|
2406
2406
|
for (d = u; d < t; d++) {
|
|
2407
2407
|
const p = e.sCount[d] < e.blkIndent;
|
|
2408
2408
|
if (r = e.bMarks[d] + e.tShift[d], o = e.eMarks[d], r >= o)
|
|
2409
2409
|
break;
|
|
2410
2410
|
if (e.src.charCodeAt(r++) === 62 && !p) {
|
|
2411
|
-
let b = e.sCount[d] + 1,
|
|
2412
|
-
e.src.charCodeAt(r) === 32 ? (r++, b++, w = !1,
|
|
2411
|
+
let b = e.sCount[d] + 1, k, w;
|
|
2412
|
+
e.src.charCodeAt(r) === 32 ? (r++, b++, w = !1, k = !0) : e.src.charCodeAt(r) === 9 ? (k = !0, (e.bsCount[d] + b) % 4 === 3 ? (r++, b++, w = !1) : w = !0) : k = !1;
|
|
2413
2413
|
let P = b;
|
|
2414
2414
|
for (i.push(e.bMarks[d]), e.bMarks[d] = r; r < o; ) {
|
|
2415
2415
|
const D = e.src.charCodeAt(r);
|
|
@@ -2419,13 +2419,13 @@ function M0(e, u, t, n) {
|
|
|
2419
2419
|
break;
|
|
2420
2420
|
r++;
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
x = r >= o, l.push(e.bsCount[d]), e.bsCount[d] = e.sCount[d] + 1 + (k ? 1 : 0), s.push(e.sCount[d]), e.sCount[d] = P - b, c.push(e.tShift[d]), e.tShift[d] = r - e.bMarks[d];
|
|
2423
2423
|
continue;
|
|
2424
2424
|
}
|
|
2425
|
-
if (
|
|
2425
|
+
if (x)
|
|
2426
2426
|
break;
|
|
2427
2427
|
let h = !1;
|
|
2428
|
-
for (let b = 0,
|
|
2428
|
+
for (let b = 0, k = f.length; b < k; b++)
|
|
2429
2429
|
if (f[b](e, d, t, !0)) {
|
|
2430
2430
|
h = !0;
|
|
2431
2431
|
break;
|
|
@@ -2517,26 +2517,26 @@ function $0(e, u, t, n) {
|
|
|
2517
2517
|
return !1;
|
|
2518
2518
|
let c = !1;
|
|
2519
2519
|
n && e.parentType === "paragraph" && e.sCount[l] >= e.blkIndent && (c = !0);
|
|
2520
|
-
let f, _,
|
|
2521
|
-
if ((
|
|
2522
|
-
if (f = !0, a = e.bMarks[l] + e.tShift[l], _ = Number(e.src.slice(a,
|
|
2523
|
-
} else if ((
|
|
2520
|
+
let f, _, x;
|
|
2521
|
+
if ((x = fr(e, l)) >= 0) {
|
|
2522
|
+
if (f = !0, a = e.bMarks[l] + e.tShift[l], _ = Number(e.src.slice(a, x - 1)), c && _ !== 1) return !1;
|
|
2523
|
+
} else if ((x = cr(e, l)) >= 0)
|
|
2524
2524
|
f = !1;
|
|
2525
2525
|
else
|
|
2526
2526
|
return !1;
|
|
2527
|
-
if (c && e.skipSpaces(
|
|
2527
|
+
if (c && e.skipSpaces(x) >= e.eMarks[l])
|
|
2528
2528
|
return !1;
|
|
2529
2529
|
if (n)
|
|
2530
2530
|
return !0;
|
|
2531
|
-
const d = e.src.charCodeAt(
|
|
2531
|
+
const d = e.src.charCodeAt(x - 1), y = e.tokens.length;
|
|
2532
2532
|
f ? (i = e.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = e.push("bullet_list_open", "ul", 1);
|
|
2533
2533
|
const A = [l, 0];
|
|
2534
2534
|
i.map = A, i.markup = String.fromCharCode(d);
|
|
2535
2535
|
let E = !1;
|
|
2536
2536
|
const m = e.md.block.ruler.getRules("list"), p = e.parentType;
|
|
2537
2537
|
for (e.parentType = "list"; l < t; ) {
|
|
2538
|
-
o =
|
|
2539
|
-
const h = e.sCount[l] +
|
|
2538
|
+
o = x, r = e.eMarks[l];
|
|
2539
|
+
const h = e.sCount[l] + x - (e.bMarks[l] + e.tShift[l]);
|
|
2540
2540
|
let b = h;
|
|
2541
2541
|
for (; o < r; ) {
|
|
2542
2542
|
const q = e.src.charCodeAt(o);
|
|
@@ -2548,15 +2548,15 @@ function $0(e, u, t, n) {
|
|
|
2548
2548
|
break;
|
|
2549
2549
|
o++;
|
|
2550
2550
|
}
|
|
2551
|
-
const
|
|
2551
|
+
const k = o;
|
|
2552
2552
|
let w;
|
|
2553
|
-
|
|
2553
|
+
k >= r ? w = 1 : w = b - h, w > 4 && (w = 1);
|
|
2554
2554
|
const P = h + w;
|
|
2555
2555
|
i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
2556
2556
|
const D = [l, 0];
|
|
2557
|
-
i.map = D, f && (i.info = e.src.slice(a,
|
|
2557
|
+
i.map = D, f && (i.info = e.src.slice(a, x - 1));
|
|
2558
2558
|
const B = e.tight, L = e.tShift[l], Y = e.sCount[l], ie = e.listIndent;
|
|
2559
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] =
|
|
2559
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = k - e.bMarks[l], e.sCount[l] = b, k >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || E) && (s = !1), E = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ie, e.tShift[l] = L, e.sCount[l] = Y, e.tight = B, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let F = !1;
|
|
2562
2562
|
for (let q = 0, ee = m.length; q < ee; q++)
|
|
@@ -2567,12 +2567,12 @@ function $0(e, u, t, n) {
|
|
|
2567
2567
|
if (F)
|
|
2568
2568
|
break;
|
|
2569
2569
|
if (f) {
|
|
2570
|
-
if (
|
|
2570
|
+
if (x = fr(e, l), x < 0)
|
|
2571
2571
|
break;
|
|
2572
2572
|
a = e.bMarks[l] + e.tShift[l];
|
|
2573
|
-
} else if (
|
|
2573
|
+
} else if (x = cr(e, l), x < 0)
|
|
2574
2574
|
break;
|
|
2575
|
-
if (d !== e.src.charCodeAt(
|
|
2575
|
+
if (d !== e.src.charCodeAt(x - 1))
|
|
2576
2576
|
break;
|
|
2577
2577
|
}
|
|
2578
2578
|
return f ? i = e.push("ordered_list_close", "ol", -1) : i = e.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), A[1] = l, e.line = l, e.parentType = p, s && N0(e, y), !0;
|
|
@@ -2598,8 +2598,8 @@ function I0(e, u, t, n) {
|
|
|
2598
2598
|
if (e.parentType = P, D)
|
|
2599
2599
|
return null;
|
|
2600
2600
|
}
|
|
2601
|
-
const b = e.bMarks[m] + e.tShift[m],
|
|
2602
|
-
return e.src.slice(b,
|
|
2601
|
+
const b = e.bMarks[m] + e.tShift[m], k = e.eMarks[m];
|
|
2602
|
+
return e.src.slice(b, k + 1);
|
|
2603
2603
|
}
|
|
2604
2604
|
let l = e.src.slice(r, o + 1);
|
|
2605
2605
|
o = l.length;
|
|
@@ -2635,7 +2635,7 @@ function I0(e, u, t, n) {
|
|
|
2635
2635
|
if (!e.md.validateLink(f))
|
|
2636
2636
|
return !1;
|
|
2637
2637
|
r = c.pos;
|
|
2638
|
-
const _ = r,
|
|
2638
|
+
const _ = r, x = a, d = r;
|
|
2639
2639
|
for (; r < o; r++) {
|
|
2640
2640
|
const m = l.charCodeAt(r);
|
|
2641
2641
|
if (m === 10) {
|
|
@@ -2650,14 +2650,14 @@ function I0(e, u, t, n) {
|
|
|
2650
2650
|
l += m, r = o, o = l.length, a++, y = e.md.helpers.parseLinkTitle(l, r, o, y);
|
|
2651
2651
|
}
|
|
2652
2652
|
let A;
|
|
2653
|
-
for (r < o && d !== r && y.ok ? (A = y.str, r = y.pos) : (A = "", r = _, a =
|
|
2653
|
+
for (r < o && d !== r && y.ok ? (A = y.str, r = y.pos) : (A = "", r = _, a = x); r < o; ) {
|
|
2654
2654
|
const m = l.charCodeAt(r);
|
|
2655
2655
|
if (!K(m))
|
|
2656
2656
|
break;
|
|
2657
2657
|
r++;
|
|
2658
2658
|
}
|
|
2659
2659
|
if (r < o && l.charCodeAt(r) !== 10 && A)
|
|
2660
|
-
for (A = "", r = _, a =
|
|
2660
|
+
for (A = "", r = _, a = x; r < o; ) {
|
|
2661
2661
|
const m = l.charCodeAt(r);
|
|
2662
2662
|
if (!K(m))
|
|
2663
2663
|
break;
|
|
@@ -2798,9 +2798,9 @@ function el(e, u, t) {
|
|
|
2798
2798
|
if (e.sCount[i] - e.blkIndent > 3)
|
|
2799
2799
|
continue;
|
|
2800
2800
|
if (e.sCount[i] >= e.blkIndent) {
|
|
2801
|
-
let
|
|
2801
|
+
let x = e.bMarks[i] + e.tShift[i];
|
|
2802
2802
|
const d = e.eMarks[i];
|
|
2803
|
-
if (
|
|
2803
|
+
if (x < d && (a = e.src.charCodeAt(x), (a === 45 || a === 61) && (x = e.skipChars(x, a), x = e.skipSpaces(x), x >= d))) {
|
|
2804
2804
|
o = a === 61 ? 1 : 2;
|
|
2805
2805
|
break;
|
|
2806
2806
|
}
|
|
@@ -2808,8 +2808,8 @@ function el(e, u, t) {
|
|
|
2808
2808
|
if (e.sCount[i] < 0)
|
|
2809
2809
|
continue;
|
|
2810
2810
|
let _ = !1;
|
|
2811
|
-
for (let
|
|
2812
|
-
if (n[
|
|
2811
|
+
for (let x = 0, d = n.length; x < d; x++)
|
|
2812
|
+
if (n[x](e, i, t, !0)) {
|
|
2813
2813
|
_ = !0;
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
@@ -2914,8 +2914,8 @@ Bu.prototype.scanDelims = function(e, u) {
|
|
|
2914
2914
|
let o = e;
|
|
2915
2915
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2916
2916
|
o++;
|
|
2917
|
-
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)), s = Nu(i) || Lu(String.fromCharCode(i)), c = Mu(r), f = Mu(i), _ = !f && (!s || c || l),
|
|
2918
|
-
return { can_open: _ && (u || !
|
|
2917
|
+
const a = o - e, i = o < t ? this.src.charCodeAt(o) : 32, l = Nu(r) || Lu(String.fromCharCode(r)), s = Nu(i) || Lu(String.fromCharCode(i)), c = Mu(r), f = Mu(i), _ = !f && (!s || c || l), x = !c && (!l || f || s);
|
|
2918
|
+
return { can_open: _ && (u || !x || l), can_close: x && (u || !_ || s), length: a };
|
|
2919
2919
|
};
|
|
2920
2920
|
Bu.prototype.Token = Te;
|
|
2921
2921
|
function tl(e) {
|
|
@@ -3163,10 +3163,10 @@ function pl(e, u) {
|
|
|
3163
3163
|
let t, n, r, o, a = "", i = "", l = e.pos, s = !0;
|
|
3164
3164
|
if (e.src.charCodeAt(e.pos) !== 91)
|
|
3165
3165
|
return !1;
|
|
3166
|
-
const c = e.pos, f = e.posMax, _ = e.pos + 1,
|
|
3167
|
-
if (
|
|
3166
|
+
const c = e.pos, f = e.posMax, _ = e.pos + 1, x = e.md.helpers.parseLinkLabel(e, e.pos, !0);
|
|
3167
|
+
if (x < 0)
|
|
3168
3168
|
return !1;
|
|
3169
|
-
let d =
|
|
3169
|
+
let d = x + 1;
|
|
3170
3170
|
if (d < f && e.src.charCodeAt(d) === 40) {
|
|
3171
3171
|
for (s = !1, d++; d < f && (t = e.src.charCodeAt(d), !(!K(t) && t !== 10)); d++)
|
|
3172
3172
|
;
|
|
@@ -3184,12 +3184,12 @@ function pl(e, u) {
|
|
|
3184
3184
|
if (s) {
|
|
3185
3185
|
if (typeof e.env.references > "u")
|
|
3186
3186
|
return !1;
|
|
3187
|
-
if (d < f && e.src.charCodeAt(d) === 91 ? (l = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(l, d++) : d =
|
|
3187
|
+
if (d < f && e.src.charCodeAt(d) === 91 ? (l = d + 1, d = e.md.helpers.parseLinkLabel(e, d), d >= 0 ? n = e.src.slice(l, d++) : d = x + 1) : d = x + 1, n || (n = e.src.slice(_, x)), o = e.env.references[vt(n)], !o)
|
|
3188
3188
|
return e.pos = c, !1;
|
|
3189
3189
|
a = o.href, i = o.title;
|
|
3190
3190
|
}
|
|
3191
3191
|
if (!u) {
|
|
3192
|
-
e.pos = _, e.posMax =
|
|
3192
|
+
e.pos = _, e.posMax = x;
|
|
3193
3193
|
const y = e.push("link_open", "a", 1), A = [["href", a]];
|
|
3194
3194
|
y.attrs = A, i && A.push(["title", i]), e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1);
|
|
3195
3195
|
}
|
|
@@ -3200,7 +3200,7 @@ function hl(e, u) {
|
|
|
3200
3200
|
const f = e.pos, _ = e.posMax;
|
|
3201
3201
|
if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91)
|
|
3202
3202
|
return !1;
|
|
3203
|
-
const
|
|
3203
|
+
const x = e.pos + 2, d = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1);
|
|
3204
3204
|
if (d < 0)
|
|
3205
3205
|
return !1;
|
|
3206
3206
|
if (o = d + 1, o < _ && e.src.charCodeAt(o) === 40) {
|
|
@@ -3221,12 +3221,12 @@ function hl(e, u) {
|
|
|
3221
3221
|
} else {
|
|
3222
3222
|
if (typeof e.env.references > "u")
|
|
3223
3223
|
return !1;
|
|
3224
|
-
if (o < _ && e.src.charCodeAt(o) === 91 ? (s = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = e.src.slice(
|
|
3224
|
+
if (o < _ && e.src.charCodeAt(o) === 91 ? (s = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(s, o++) : o = d + 1) : o = d + 1, r || (r = e.src.slice(x, d)), a = e.env.references[vt(r)], !a)
|
|
3225
3225
|
return e.pos = f, !1;
|
|
3226
3226
|
c = a.href, l = a.title;
|
|
3227
3227
|
}
|
|
3228
3228
|
if (!u) {
|
|
3229
|
-
n = e.src.slice(
|
|
3229
|
+
n = e.src.slice(x, d);
|
|
3230
3230
|
const y = [];
|
|
3231
3231
|
e.md.inline.parse(
|
|
3232
3232
|
n,
|
|
@@ -3282,10 +3282,10 @@ function gl(e, u) {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
return !1;
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3285
|
+
function kl(e) {
|
|
3286
3286
|
return /^<a[>\s]/i.test(e);
|
|
3287
3287
|
}
|
|
3288
|
-
function
|
|
3288
|
+
function xl(e) {
|
|
3289
3289
|
return /^<\/a\s*>/i.test(e);
|
|
3290
3290
|
}
|
|
3291
3291
|
function _l(e) {
|
|
@@ -3306,7 +3306,7 @@ function vl(e, u) {
|
|
|
3306
3306
|
return !1;
|
|
3307
3307
|
if (!u) {
|
|
3308
3308
|
const a = e.push("html_inline", "", 0);
|
|
3309
|
-
a.content = o[0],
|
|
3309
|
+
a.content = o[0], kl(a.content) && e.linkLevel++, xl(a.content) && e.linkLevel--;
|
|
3310
3310
|
}
|
|
3311
3311
|
return e.pos += o[0].length, !0;
|
|
3312
3312
|
}
|
|
@@ -3354,8 +3354,8 @@ function hr(e) {
|
|
|
3354
3354
|
if (f.marker === i.marker && f.open && f.end < 0) {
|
|
3355
3355
|
let _ = !1;
|
|
3356
3356
|
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (_ = !0), !_) {
|
|
3357
|
-
const
|
|
3358
|
-
o[a] = a - s +
|
|
3357
|
+
const x = s > 0 && !e[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3358
|
+
o[a] = a - s + x, o[s] = x, i.open = !1, f.end = a, f.close = !1, c = -1, r = -2;
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
@@ -3648,11 +3648,11 @@ we.prototype.normalize = function(u) {
|
|
|
3648
3648
|
};
|
|
3649
3649
|
we.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const mu = 2147483647, Me = 36,
|
|
3651
|
+
const mu = 2147483647, Me = 36, kn = 1, $u = 26, zl = 38, Bl = 700, ao = 72, lo = 128, so = "-", Ul = /^xn--/, ql = /[^\0-\x7F]/, jl = /[\x2E\u3002\uFF0E\uFF61]/g, Hl = {
|
|
3652
3652
|
overflow: "Overflow: input needs wider integers to process",
|
|
3653
3653
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3654
3654
|
"invalid-input": "Invalid input"
|
|
3655
|
-
}, jt = Me -
|
|
3655
|
+
}, jt = Me - kn, Le = Math.floor, Ht = String.fromCharCode;
|
|
3656
3656
|
function We(e) {
|
|
3657
3657
|
throw new RangeError(Hl[e]);
|
|
3658
3658
|
}
|
|
@@ -3705,10 +3705,10 @@ const Wl = (e) => String.fromCodePoint(...e), Vl = function(e) {
|
|
|
3705
3705
|
i >= t && We("invalid-input");
|
|
3706
3706
|
const _ = Vl(e.charCodeAt(i++));
|
|
3707
3707
|
_ >= Me && We("invalid-input"), _ > Le((mu - n) / c) && We("overflow"), n += _ * c;
|
|
3708
|
-
const
|
|
3709
|
-
if (_ <
|
|
3708
|
+
const x = f <= o ? kn : f >= o + $u ? $u : f - o;
|
|
3709
|
+
if (_ < x)
|
|
3710
3710
|
break;
|
|
3711
|
-
const d = Me -
|
|
3711
|
+
const d = Me - x;
|
|
3712
3712
|
c > Le(mu / d) && We("overflow"), c *= d;
|
|
3713
3713
|
}
|
|
3714
3714
|
const s = u.length + 1;
|
|
@@ -3734,12 +3734,12 @@ const Wl = (e) => String.fromCodePoint(...e), Vl = function(e) {
|
|
|
3734
3734
|
if (c < n && ++r > mu && We("overflow"), c === n) {
|
|
3735
3735
|
let f = r;
|
|
3736
3736
|
for (let _ = Me; ; _ += Me) {
|
|
3737
|
-
const
|
|
3738
|
-
if (f <
|
|
3737
|
+
const x = _ <= o ? kn : _ >= o + $u ? $u : _ - o;
|
|
3738
|
+
if (f < x)
|
|
3739
3739
|
break;
|
|
3740
|
-
const d = f -
|
|
3740
|
+
const d = f - x, y = Me - x;
|
|
3741
3741
|
u.push(
|
|
3742
|
-
Ht(gr(
|
|
3742
|
+
Ht(gr(x + d % y, 0))
|
|
3743
3743
|
), f = Le(d / y);
|
|
3744
3744
|
}
|
|
3745
3745
|
u.push(Ht(gr(f, 0))), o = po(r, s, i === a), r = 0, ++i;
|
|
@@ -4043,10 +4043,10 @@ function os(e, u) {
|
|
|
4043
4043
|
const a = G(""), i = G(), l = De({ ...r });
|
|
4044
4044
|
function s(c) {
|
|
4045
4045
|
const f = l.render(c);
|
|
4046
|
-
if (a.value = n ?
|
|
4046
|
+
if (a.value = n ? xa.sanitize(f) : f, i.value) i.value.innerHTML = a.value;
|
|
4047
4047
|
else {
|
|
4048
|
-
const _ = Qe(i, (
|
|
4049
|
-
|
|
4048
|
+
const _ = Qe(i, (x) => {
|
|
4049
|
+
x && (x.innerHTML = a.value, _());
|
|
4050
4050
|
});
|
|
4051
4051
|
}
|
|
4052
4052
|
return a.value;
|
|
@@ -4064,17 +4064,17 @@ function os(e, u) {
|
|
|
4064
4064
|
function is(e, u) {
|
|
4065
4065
|
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), l = G(!1), s = oe(() => r ? e.value.slice(0, o.value) : e.value), c = oe(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
4066
4066
|
let f = null;
|
|
4067
|
-
const _ = rt(),
|
|
4068
|
-
Qe(e, (b,
|
|
4069
|
-
if (!
|
|
4067
|
+
const _ = rt(), x = rt(), d = rt();
|
|
4068
|
+
Qe(e, (b, k) => {
|
|
4069
|
+
if (!k) {
|
|
4070
4070
|
o.value = 0, y();
|
|
4071
4071
|
return;
|
|
4072
4072
|
}
|
|
4073
|
-
b.startsWith(
|
|
4073
|
+
b.startsWith(k) || (o.value = 0), y();
|
|
4074
4074
|
}, { immediate: !0 });
|
|
4075
4075
|
function y() {
|
|
4076
4076
|
if (f && clearTimeout(f), !r) {
|
|
4077
|
-
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1,
|
|
4077
|
+
o.value = e.value.length, i.value = !0, l.value = !1, a.value = !1, x.trigger(s.value);
|
|
4078
4078
|
return;
|
|
4079
4079
|
}
|
|
4080
4080
|
l.value = !0, a.value = !1, i.value = !1, _.trigger();
|
|
@@ -4083,7 +4083,7 @@ function is(e, u) {
|
|
|
4083
4083
|
index: o.value,
|
|
4084
4084
|
value: s.value
|
|
4085
4085
|
}), o.value >= e.value.length) {
|
|
4086
|
-
o.value = e.value.length, i.value = !0, l.value = !1,
|
|
4086
|
+
o.value = e.value.length, i.value = !0, l.value = !1, x.trigger(s.value);
|
|
4087
4087
|
return;
|
|
4088
4088
|
}
|
|
4089
4089
|
f = setTimeout(b, n);
|
|
@@ -4102,7 +4102,7 @@ function is(e, u) {
|
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
4104
|
function p() {
|
|
4105
|
-
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length,
|
|
4105
|
+
f && clearTimeout(f), l.value = !1, a.value = !1, i.value = !0, o.value = e.value.length, x.trigger(s.value);
|
|
4106
4106
|
}
|
|
4107
4107
|
function h() {
|
|
4108
4108
|
f && clearTimeout(f), f = null, l.value = !1, a.value = !1, i.value = !1, o.value = 0;
|
|
@@ -4121,17 +4121,17 @@ function is(e, u) {
|
|
|
4121
4121
|
stop: p,
|
|
4122
4122
|
destroy: h,
|
|
4123
4123
|
onStat: _.on,
|
|
4124
|
-
onStop:
|
|
4124
|
+
onStop: x.on,
|
|
4125
4125
|
onUpdate: d.on
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
|
-
var
|
|
4128
|
+
var kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4129
4129
|
function as(e) {
|
|
4130
4130
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4131
4131
|
}
|
|
4132
|
-
var Gt = { exports: {} },
|
|
4132
|
+
var Gt = { exports: {} }, xr;
|
|
4133
4133
|
function ls() {
|
|
4134
|
-
return
|
|
4134
|
+
return xr || (xr = 1, function(e) {
|
|
4135
4135
|
var u = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
4136
4136
|
/**
|
|
4137
4137
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
@@ -4240,13 +4240,13 @@ function ls() {
|
|
|
4240
4240
|
*/
|
|
4241
4241
|
clone: function m(p, h) {
|
|
4242
4242
|
h = h || {};
|
|
4243
|
-
var b,
|
|
4243
|
+
var b, k;
|
|
4244
4244
|
switch (i.util.type(p)) {
|
|
4245
4245
|
case "Object":
|
|
4246
|
-
if (
|
|
4247
|
-
return h[
|
|
4246
|
+
if (k = i.util.objId(p), h[k])
|
|
4247
|
+
return h[k];
|
|
4248
4248
|
b = /** @type {Record<string, any>} */
|
|
4249
|
-
{}, h[
|
|
4249
|
+
{}, h[k] = b;
|
|
4250
4250
|
for (var w in p)
|
|
4251
4251
|
p.hasOwnProperty(w) && (b[w] = m(p[w], h));
|
|
4252
4252
|
return (
|
|
@@ -4254,7 +4254,7 @@ function ls() {
|
|
|
4254
4254
|
b
|
|
4255
4255
|
);
|
|
4256
4256
|
case "Array":
|
|
4257
|
-
return
|
|
4257
|
+
return k = i.util.objId(p), h[k] ? h[k] : (b = [], h[k] = b, /** @type {Array} */
|
|
4258
4258
|
/** @type {any} */
|
|
4259
4259
|
p.forEach(function(P, D) {
|
|
4260
4260
|
b[D] = m(P, h);
|
|
@@ -4340,10 +4340,10 @@ function ls() {
|
|
|
4340
4340
|
*/
|
|
4341
4341
|
isActive: function(m, p, h) {
|
|
4342
4342
|
for (var b = "no-" + p; m; ) {
|
|
4343
|
-
var
|
|
4344
|
-
if (
|
|
4343
|
+
var k = m.classList;
|
|
4344
|
+
if (k.contains(p))
|
|
4345
4345
|
return !0;
|
|
4346
|
-
if (
|
|
4346
|
+
if (k.contains(b))
|
|
4347
4347
|
return !1;
|
|
4348
4348
|
m = m.parentElement;
|
|
4349
4349
|
}
|
|
@@ -4477,13 +4477,13 @@ function ls() {
|
|
|
4477
4477
|
insertBefore: function(m, p, h, b) {
|
|
4478
4478
|
b = b || /** @type {any} */
|
|
4479
4479
|
i.languages;
|
|
4480
|
-
var
|
|
4481
|
-
for (var P in
|
|
4482
|
-
if (
|
|
4480
|
+
var k = b[m], w = {};
|
|
4481
|
+
for (var P in k)
|
|
4482
|
+
if (k.hasOwnProperty(P)) {
|
|
4483
4483
|
if (P == p)
|
|
4484
4484
|
for (var D in h)
|
|
4485
4485
|
h.hasOwnProperty(D) && (w[D] = h[D]);
|
|
4486
|
-
h.hasOwnProperty(P) || (w[P] =
|
|
4486
|
+
h.hasOwnProperty(P) || (w[P] = k[P]);
|
|
4487
4487
|
}
|
|
4488
4488
|
var B = b[m];
|
|
4489
4489
|
return b[m] = w, i.languages.DFS(i.languages, function(L, Y) {
|
|
@@ -4491,14 +4491,14 @@ function ls() {
|
|
|
4491
4491
|
}), w;
|
|
4492
4492
|
},
|
|
4493
4493
|
// Traverse a language definition with Depth First Search
|
|
4494
|
-
DFS: function m(p, h, b,
|
|
4495
|
-
|
|
4494
|
+
DFS: function m(p, h, b, k) {
|
|
4495
|
+
k = k || {};
|
|
4496
4496
|
var w = i.util.objId;
|
|
4497
4497
|
for (var P in p)
|
|
4498
4498
|
if (p.hasOwnProperty(P)) {
|
|
4499
4499
|
h.call(p, P, p[P], b || P);
|
|
4500
4500
|
var D = p[P], B = i.util.type(D);
|
|
4501
|
-
B === "Object" && !
|
|
4501
|
+
B === "Object" && !k[w(D)] ? (k[w(D)] = !0, m(D, h, null, k)) : B === "Array" && !k[w(D)] && (k[w(D)] = !0, m(D, h, P, k));
|
|
4502
4502
|
}
|
|
4503
4503
|
}
|
|
4504
4504
|
},
|
|
@@ -4540,7 +4540,7 @@ function ls() {
|
|
|
4540
4540
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4541
4541
|
};
|
|
4542
4542
|
i.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), i.hooks.run("before-all-elements-highlight", b);
|
|
4543
|
-
for (var
|
|
4543
|
+
for (var k = 0, w; w = b.elements[k++]; )
|
|
4544
4544
|
i.highlightElement(w, p === !0, b.callback);
|
|
4545
4545
|
},
|
|
4546
4546
|
/**
|
|
@@ -4572,14 +4572,14 @@ function ls() {
|
|
|
4572
4572
|
* @public
|
|
4573
4573
|
*/
|
|
4574
4574
|
highlightElement: function(m, p, h) {
|
|
4575
|
-
var b = i.util.getLanguage(m),
|
|
4575
|
+
var b = i.util.getLanguage(m), k = i.languages[b];
|
|
4576
4576
|
i.util.setLanguage(m, b);
|
|
4577
4577
|
var w = m.parentElement;
|
|
4578
4578
|
w && w.nodeName.toLowerCase() === "pre" && i.util.setLanguage(w, b);
|
|
4579
4579
|
var P = m.textContent, D = {
|
|
4580
4580
|
element: m,
|
|
4581
4581
|
language: b,
|
|
4582
|
-
grammar:
|
|
4582
|
+
grammar: k,
|
|
4583
4583
|
code: P
|
|
4584
4584
|
};
|
|
4585
4585
|
function B(Y) {
|
|
@@ -4666,8 +4666,8 @@ function ls() {
|
|
|
4666
4666
|
p[b] = h[b];
|
|
4667
4667
|
delete p.rest;
|
|
4668
4668
|
}
|
|
4669
|
-
var
|
|
4670
|
-
return _(
|
|
4669
|
+
var k = new f();
|
|
4670
|
+
return _(k, k.head, m), c(m, k, p, k.head, 0), d(k);
|
|
4671
4671
|
},
|
|
4672
4672
|
/**
|
|
4673
4673
|
* @namespace
|
|
@@ -4704,8 +4704,8 @@ function ls() {
|
|
|
4704
4704
|
run: function(m, p) {
|
|
4705
4705
|
var h = i.hooks.all[m];
|
|
4706
4706
|
if (!(!h || !h.length))
|
|
4707
|
-
for (var b = 0,
|
|
4708
|
-
|
|
4707
|
+
for (var b = 0, k; k = h[b++]; )
|
|
4708
|
+
k(p);
|
|
4709
4709
|
}
|
|
4710
4710
|
},
|
|
4711
4711
|
Token: l
|
|
@@ -4723,7 +4723,7 @@ function ls() {
|
|
|
4723
4723
|
b += m(B, h);
|
|
4724
4724
|
}), b;
|
|
4725
4725
|
}
|
|
4726
|
-
var
|
|
4726
|
+
var k = {
|
|
4727
4727
|
type: p.type,
|
|
4728
4728
|
content: m(p.content, h),
|
|
4729
4729
|
tag: "span",
|
|
@@ -4731,22 +4731,22 @@ function ls() {
|
|
|
4731
4731
|
attributes: {},
|
|
4732
4732
|
language: h
|
|
4733
4733
|
}, w = p.alias;
|
|
4734
|
-
w && (Array.isArray(w) ? Array.prototype.push.apply(
|
|
4734
|
+
w && (Array.isArray(w) ? Array.prototype.push.apply(k.classes, w) : k.classes.push(w)), i.hooks.run("wrap", k);
|
|
4735
4735
|
var P = "";
|
|
4736
|
-
for (var D in
|
|
4737
|
-
P += " " + D + '="' + (
|
|
4738
|
-
return "<" +
|
|
4736
|
+
for (var D in k.attributes)
|
|
4737
|
+
P += " " + D + '="' + (k.attributes[D] || "").replace(/"/g, """) + '"';
|
|
4738
|
+
return "<" + k.tag + ' class="' + k.classes.join(" ") + '"' + P + ">" + k.content + "</" + k.tag + ">";
|
|
4739
4739
|
};
|
|
4740
4740
|
function s(m, p, h, b) {
|
|
4741
4741
|
m.lastIndex = p;
|
|
4742
|
-
var
|
|
4743
|
-
if (
|
|
4744
|
-
var w =
|
|
4745
|
-
|
|
4742
|
+
var k = m.exec(h);
|
|
4743
|
+
if (k && b && k[1]) {
|
|
4744
|
+
var w = k[1].length;
|
|
4745
|
+
k.index += w, k[0] = k[0].slice(w);
|
|
4746
4746
|
}
|
|
4747
|
-
return
|
|
4747
|
+
return k;
|
|
4748
4748
|
}
|
|
4749
|
-
function c(m, p, h, b,
|
|
4749
|
+
function c(m, p, h, b, k, w) {
|
|
4750
4750
|
for (var P in h)
|
|
4751
4751
|
if (!(!h.hasOwnProperty(P) || !h[P])) {
|
|
4752
4752
|
var D = h[P];
|
|
@@ -4759,7 +4759,7 @@ function ls() {
|
|
|
4759
4759
|
var ee = L.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
4760
|
L.pattern = RegExp(L.pattern.source, ee + "g");
|
|
4761
4761
|
}
|
|
4762
|
-
for (var C = L.pattern || L, $ = b.next, T =
|
|
4762
|
+
for (var C = L.pattern || L, $ = b.next, T = k; $ !== p.tail && !(w && T >= w.reach); T += $.value.length, $ = $.next) {
|
|
4763
4763
|
var Q = $.value;
|
|
4764
4764
|
if (p.length > m.length)
|
|
4765
4765
|
return;
|
|
@@ -4781,7 +4781,7 @@ function ls() {
|
|
|
4781
4781
|
var Pe = H.index, je = H[0], iu = Q.slice(0, Pe), au = Q.slice(Pe + je.length), lu = T + Q.length;
|
|
4782
4782
|
w && lu > w.reach && (w.reach = lu);
|
|
4783
4783
|
var tu = $.prev;
|
|
4784
|
-
iu && (tu = _(p, tu, iu), T += iu.length),
|
|
4784
|
+
iu && (tu = _(p, tu, iu), T += iu.length), x(p, tu, N);
|
|
4785
4785
|
var He = new l(P, Y ? i.tokenize(je, Y) : je, q, je);
|
|
4786
4786
|
if ($ = _(p, tu, He), au && _(p, $, au), N > 1) {
|
|
4787
4787
|
var Ge = {
|
|
@@ -4800,13 +4800,13 @@ function ls() {
|
|
|
4800
4800
|
m.next = p, this.head = m, this.tail = p, this.length = 0;
|
|
4801
4801
|
}
|
|
4802
4802
|
function _(m, p, h) {
|
|
4803
|
-
var b = p.next,
|
|
4804
|
-
return p.next =
|
|
4803
|
+
var b = p.next, k = { value: h, prev: p, next: b };
|
|
4804
|
+
return p.next = k, b.prev = k, m.length++, k;
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4807
|
-
for (var b = p.next,
|
|
4806
|
+
function x(m, p, h) {
|
|
4807
|
+
for (var b = p.next, k = 0; k < h && b !== m.tail; k++)
|
|
4808
4808
|
b = b.next;
|
|
4809
|
-
p.next = b, b.prev = p, m.length -=
|
|
4809
|
+
p.next = b, b.prev = p, m.length -= k;
|
|
4810
4810
|
}
|
|
4811
4811
|
function d(m) {
|
|
4812
4812
|
for (var p = [], h = m.head.next; h !== m.tail; )
|
|
@@ -4815,8 +4815,8 @@ function ls() {
|
|
|
4815
4815
|
}
|
|
4816
4816
|
if (!n.document)
|
|
4817
4817
|
return n.addEventListener && (i.disableWorkerMessageHandler || n.addEventListener("message", function(m) {
|
|
4818
|
-
var p = JSON.parse(m.data), h = p.language, b = p.code,
|
|
4819
|
-
n.postMessage(i.highlight(b, i.languages[h], h)),
|
|
4818
|
+
var p = JSON.parse(m.data), h = p.language, b = p.code, k = p.immediateClose;
|
|
4819
|
+
n.postMessage(i.highlight(b, i.languages[h], h)), k && n.close();
|
|
4820
4820
|
}, !1)), i;
|
|
4821
4821
|
var y = i.util.currentScript();
|
|
4822
4822
|
y && (i.filename = y.src, y.hasAttribute("data-manual") && (i.manual = !0));
|
|
@@ -4829,7 +4829,7 @@ function ls() {
|
|
|
4829
4829
|
}
|
|
4830
4830
|
return i;
|
|
4831
4831
|
}(u);
|
|
4832
|
-
e.exports && (e.exports = t), typeof
|
|
4832
|
+
e.exports && (e.exports = t), typeof kr < "u" && (kr.Prism = t), t.languages.markup = {
|
|
4833
4833
|
comment: {
|
|
4834
4834
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
4835
4835
|
greedy: !0
|
|
@@ -5226,7 +5226,7 @@ function ls() {
|
|
|
5226
5226
|
m.readyState == 4 && (m.status < 400 && m.responseText ? A(m.responseText) : m.status >= 400 ? E(r(m.status, m.statusText)) : E(o));
|
|
5227
5227
|
}, m.send(null);
|
|
5228
5228
|
}
|
|
5229
|
-
function
|
|
5229
|
+
function x(y) {
|
|
5230
5230
|
var A = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y || "");
|
|
5231
5231
|
if (A) {
|
|
5232
5232
|
var E = Number(A[1]), m = A[2], p = A[3];
|
|
@@ -5253,18 +5253,18 @@ function ls() {
|
|
|
5253
5253
|
var b = t.plugins.autoloader;
|
|
5254
5254
|
b && b.loadLanguages(p), _(
|
|
5255
5255
|
m,
|
|
5256
|
-
function(
|
|
5256
|
+
function(k) {
|
|
5257
5257
|
A.setAttribute(i, s);
|
|
5258
|
-
var w =
|
|
5258
|
+
var w = x(A.getAttribute("data-range"));
|
|
5259
5259
|
if (w) {
|
|
5260
|
-
var P =
|
|
5261
|
-
D < 0 && (D += P.length), D = Math.max(0, Math.min(D - 1, P.length)), B < 0 && (B += P.length), B = Math.max(0, Math.min(B, P.length)),
|
|
5260
|
+
var P = k.split(/\r\n?|\n/g), D = w[0], B = w[1] == null ? P.length : w[1];
|
|
5261
|
+
D < 0 && (D += P.length), D = Math.max(0, Math.min(D - 1, P.length)), B < 0 && (B += P.length), B = Math.max(0, Math.min(B, P.length)), k = P.slice(D, B).join(`
|
|
5262
5262
|
`), A.hasAttribute("data-start") || A.setAttribute("data-start", String(D + 1));
|
|
5263
5263
|
}
|
|
5264
|
-
E.textContent =
|
|
5264
|
+
E.textContent = k, t.highlightElement(E);
|
|
5265
5265
|
},
|
|
5266
|
-
function(
|
|
5267
|
-
A.setAttribute(i, c), E.textContent =
|
|
5266
|
+
function(k) {
|
|
5267
|
+
A.setAttribute(i, c), E.textContent = k;
|
|
5268
5268
|
}
|
|
5269
5269
|
);
|
|
5270
5270
|
}
|
|
@@ -5307,7 +5307,7 @@ const fs = `
|
|
|
5307
5307
|
code[class*=language-],pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#3e4451;color:inherit;text-shadow:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}.token.comment,.token.prolog,.token.cdata{color:#5c6370}.token.doctype,.token.punctuation,.token.entity{color:#abb2bf}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#d19a66}.token.keyword{color:#c678dd}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e06c75}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#98c379}.token.variable,.token.operator,.token.function{color:#61afef}.token.url{color:#56b6c2}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}.language-css .token.selector{color:#e06c75}.language-css .token.property{color:#abb2bf}.language-css .token.function,.language-css .token.url>.token.function{color:#56b6c2}.language-css .token.url>.token.string.url{color:#98c379}.language-css .token.important,.language-css .token.atrule .token.rule{color:#c678dd}.language-javascript .token.operator{color:#c678dd}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}.language-json .token.operator{color:#abb2bf}.language-json .token.null.keyword{color:#d19a66}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#abb2bf}.language-markdown .token.url>.token.content{color:#61afef}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#56b6c2}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}.language-markdown .token.code-snippet{color:#98c379}.language-markdown .token.bold .token.content{color:#d19a66}.language-markdown .token.italic .token.content{color:#c678dd}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e06c75}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}.line-highlight.line-highlight{background:rgba(153,187,255,.04)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#636d83}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:#262931}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#31363f}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5308
5308
|
`, ds = `
|
|
5309
5309
|
code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-] ::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-] ::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule{color:#a626a4}.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:rgba(56,58,66,.2)}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:rgba(56,58,66,.05)}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::-moz-selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) ::selection{background-color:rgba(251,86,105,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::-moz-selection{background-color:rgba(56,224,98,.25)}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) ::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) ::selection{background-color:rgba(56,224,98,.25)}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent}
|
|
5310
|
-
`, { c: Wt, cB: _r, cE: Vt } = { ...
|
|
5310
|
+
`, { c: Wt, cB: _r, cE: Vt } = { ...kt, ...xt }, ut = `${Iu}-type-writer`;
|
|
5311
5311
|
function ps() {
|
|
5312
5312
|
return Wt([
|
|
5313
5313
|
_r("type-writer", {
|
|
@@ -5379,7 +5379,7 @@ const hs = ["innerHTML"], bs = /* @__PURE__ */ me({
|
|
|
5379
5379
|
_: 1
|
|
5380
5380
|
}, 8, ["class"]));
|
|
5381
5381
|
}
|
|
5382
|
-
}), { c: ms, cB: gs, cE:
|
|
5382
|
+
}), { c: ms, cB: gs, cE: ks, cM: xs } = { ...kt, ...xt }, Zt = `${Iu}-bubble`;
|
|
5383
5383
|
function _s() {
|
|
5384
5384
|
return ms([
|
|
5385
5385
|
gs("bubble", {
|
|
@@ -5387,10 +5387,10 @@ function _s() {
|
|
|
5387
5387
|
gap: "10px",
|
|
5388
5388
|
fontSize: "var(--n-font-size);"
|
|
5389
5389
|
}, [
|
|
5390
|
-
|
|
5390
|
+
xs("reverse", {
|
|
5391
5391
|
flexDirection: "row-reverse"
|
|
5392
5392
|
}),
|
|
5393
|
-
|
|
5393
|
+
ks("content", {
|
|
5394
5394
|
backgroundColor: "var(--tag-color)",
|
|
5395
5395
|
padding: "10px",
|
|
5396
5396
|
borderRadius: "var(--border-radius)",
|
|
@@ -5461,7 +5461,7 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5461
5461
|
_: 3
|
|
5462
5462
|
}, 8, ["class"]));
|
|
5463
5463
|
}
|
|
5464
|
-
}), { c: vs, cB: ys } = { ...
|
|
5464
|
+
}), { c: vs, cB: ys } = { ...kt, ...xt }, tt = `${Iu}-full-loading`;
|
|
5465
5465
|
function Es() {
|
|
5466
5466
|
return vs([
|
|
5467
5467
|
ys("full-loading", {
|
|
@@ -5602,7 +5602,7 @@ const As = /* @__PURE__ */ me({
|
|
|
5602
5602
|
_: 3
|
|
5603
5603
|
}, 16));
|
|
5604
5604
|
}
|
|
5605
|
-
}),
|
|
5605
|
+
}), xn = (e, u) => {
|
|
5606
5606
|
const t = e.__vccOpts || e;
|
|
5607
5607
|
for (const [n, r] of u)
|
|
5608
5608
|
t[n] = r;
|
|
@@ -5623,7 +5623,7 @@ function Ds(e, u, t, n, r, o) {
|
|
|
5623
5623
|
}, null, -1)
|
|
5624
5624
|
]));
|
|
5625
5625
|
}
|
|
5626
|
-
const Fs = /* @__PURE__ */
|
|
5626
|
+
const Fs = /* @__PURE__ */ xn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
5627
5627
|
__name: "CopyButton",
|
|
5628
5628
|
props: {
|
|
5629
5629
|
value: {},
|
|
@@ -5666,13 +5666,13 @@ const Fs = /* @__PURE__ */ kn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: O(() => [
|
|
5668
5668
|
U(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
|
|
5669
|
+
xu(ou(v(n) ? "复制成功" : "复制"), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 3
|
|
5673
5673
|
}, 16));
|
|
5674
5674
|
}
|
|
5675
|
-
}),
|
|
5675
|
+
}), ko = (e, { manual: u, ready: t = !0, refreshDeps: n = [], refreshDepsAction: r }) => {
|
|
5676
5676
|
const o = G(!1);
|
|
5677
5677
|
return Se(() => {
|
|
5678
5678
|
!u && e.options.refreshDeps !== !0 && (o.value = v(t));
|
|
@@ -5697,7 +5697,7 @@ const Fs = /* @__PURE__ */ kn(ws, [["render", Ds]]), Jc = /* @__PURE__ */ me({
|
|
|
5697
5697
|
}
|
|
5698
5698
|
};
|
|
5699
5699
|
};
|
|
5700
|
-
|
|
5700
|
+
ko.onInit = ({ ready: e = !0, manual: u }) => ({
|
|
5701
5701
|
loading: !u && v(e)
|
|
5702
5702
|
});
|
|
5703
5703
|
const at = /* @__PURE__ */ new Map(), Ss = (e, u, t) => {
|
|
@@ -5764,8 +5764,8 @@ const at = /* @__PURE__ */ new Map(), Ss = (e, u, t) => {
|
|
|
5764
5764
|
data: c,
|
|
5765
5765
|
params: f,
|
|
5766
5766
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
5767
|
-
}), a.value = Yt(u, (
|
|
5768
|
-
e.setState({ data:
|
|
5767
|
+
}), a.value = Yt(u, (x) => {
|
|
5768
|
+
e.setState({ data: x });
|
|
5769
5769
|
}));
|
|
5770
5770
|
},
|
|
5771
5771
|
onMutate: (c) => {
|
|
@@ -5784,8 +5784,8 @@ function ht(e) {
|
|
|
5784
5784
|
var u = typeof e;
|
|
5785
5785
|
return e != null && (u == "object" || u == "function");
|
|
5786
5786
|
}
|
|
5787
|
-
var Ns = typeof global == "object" && global && global.Object === Object && global, $s = typeof self == "object" && self && self.Object === Object && self,
|
|
5788
|
-
return
|
|
5787
|
+
var Ns = typeof global == "object" && global && global.Object === Object && global, $s = typeof self == "object" && self && self.Object === Object && self, xo = Ns || $s || Function("return this")(), Xt = function() {
|
|
5788
|
+
return xo.Date.now();
|
|
5789
5789
|
}, Is = /\s/;
|
|
5790
5790
|
function zs(e) {
|
|
5791
5791
|
for (var u = e.length; u-- && Is.test(e.charAt(u)); )
|
|
@@ -5796,7 +5796,7 @@ var Bs = /^\s+/;
|
|
|
5796
5796
|
function Us(e) {
|
|
5797
5797
|
return e && e.slice(0, zs(e) + 1).replace(Bs, "");
|
|
5798
5798
|
}
|
|
5799
|
-
var bt =
|
|
5799
|
+
var bt = xo.Symbol, _o = Object.prototype, qs = _o.hasOwnProperty, js = _o.toString, Su = bt ? bt.toStringTag : void 0;
|
|
5800
5800
|
function Hs(e) {
|
|
5801
5801
|
var u = qs.call(e, Su), t = e[Su];
|
|
5802
5802
|
try {
|
|
@@ -5844,29 +5844,29 @@ function vo(e, u, t) {
|
|
|
5844
5844
|
if (typeof e != "function")
|
|
5845
5845
|
throw new TypeError(rc);
|
|
5846
5846
|
u = Er(u) || 0, ht(t) && (c = !!t.leading, f = "maxWait" in t, o = f ? oc(Er(t.maxWait) || 0, u) : o, _ = "trailing" in t ? !!t.trailing : _);
|
|
5847
|
-
function k
|
|
5847
|
+
function x(k) {
|
|
5848
5848
|
var w = n, P = r;
|
|
5849
|
-
return n = r = void 0, s =
|
|
5849
|
+
return n = r = void 0, s = k, a = e.apply(P, w), a;
|
|
5850
5850
|
}
|
|
5851
|
-
function d(
|
|
5852
|
-
return s =
|
|
5851
|
+
function d(k) {
|
|
5852
|
+
return s = k, i = setTimeout(E, u), c ? x(k) : a;
|
|
5853
5853
|
}
|
|
5854
|
-
function y(
|
|
5855
|
-
var w =
|
|
5854
|
+
function y(k) {
|
|
5855
|
+
var w = k - l, P = k - s, D = u - w;
|
|
5856
5856
|
return f ? ic(D, o - P) : D;
|
|
5857
5857
|
}
|
|
5858
|
-
function A(
|
|
5859
|
-
var w =
|
|
5858
|
+
function A(k) {
|
|
5859
|
+
var w = k - l, P = k - s;
|
|
5860
5860
|
return l === void 0 || w >= u || w < 0 || f && P >= o;
|
|
5861
5861
|
}
|
|
5862
5862
|
function E() {
|
|
5863
|
-
var
|
|
5864
|
-
if (A(
|
|
5865
|
-
return m(
|
|
5866
|
-
i = setTimeout(E, y(
|
|
5863
|
+
var k = Xt();
|
|
5864
|
+
if (A(k))
|
|
5865
|
+
return m(k);
|
|
5866
|
+
i = setTimeout(E, y(k));
|
|
5867
5867
|
}
|
|
5868
|
-
function m(
|
|
5869
|
-
return i = void 0, _ && n ? k
|
|
5868
|
+
function m(k) {
|
|
5869
|
+
return i = void 0, _ && n ? x(k) : (n = r = void 0, a);
|
|
5870
5870
|
}
|
|
5871
5871
|
function p() {
|
|
5872
5872
|
i !== void 0 && clearTimeout(i), s = 0, n = l = r = i = void 0;
|
|
@@ -5875,12 +5875,12 @@ function vo(e, u, t) {
|
|
|
5875
5875
|
return i === void 0 ? a : m(Xt());
|
|
5876
5876
|
}
|
|
5877
5877
|
function b() {
|
|
5878
|
-
var
|
|
5879
|
-
if (n = arguments, r = this, l =
|
|
5878
|
+
var k = Xt(), w = A(k);
|
|
5879
|
+
if (n = arguments, r = this, l = k, w) {
|
|
5880
5880
|
if (i === void 0)
|
|
5881
5881
|
return d(l);
|
|
5882
5882
|
if (f)
|
|
5883
|
-
return clearTimeout(i), i = setTimeout(E, u),
|
|
5883
|
+
return clearTimeout(i), i = setTimeout(E, u), x(l);
|
|
5884
5884
|
}
|
|
5885
5885
|
return i === void 0 && (i = setTimeout(E, u)), a;
|
|
5886
5886
|
}
|
|
@@ -6076,12 +6076,12 @@ const ve = new bc(), mc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
6076
6076
|
function _n() {
|
|
6077
6077
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6078
6078
|
}
|
|
6079
|
-
const
|
|
6079
|
+
const kc = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6080
6080
|
function vn() {
|
|
6081
6081
|
return _n() ? document.visibilityState !== "hidden" : !0;
|
|
6082
6082
|
}
|
|
6083
6083
|
const Tu = [];
|
|
6084
|
-
function
|
|
6084
|
+
function xc(e) {
|
|
6085
6085
|
return Tu.push(e), function() {
|
|
6086
6086
|
const t = Tu.indexOf(e);
|
|
6087
6087
|
Tu.splice(t, 1);
|
|
@@ -6118,7 +6118,7 @@ const _c = (e, { pollingInterval: u, pollingWhenHidden: t = !0, pollingErrorRetr
|
|
|
6118
6118
|
},
|
|
6119
6119
|
onFinally: () => {
|
|
6120
6120
|
n === -1 || n !== -1 && a.value <= n ? r = setTimeout(() => {
|
|
6121
|
-
!t && !vn() ? o.value =
|
|
6121
|
+
!t && !vn() ? o.value = xc(() => {
|
|
6122
6122
|
e.refresh();
|
|
6123
6123
|
}) : e.refresh();
|
|
6124
6124
|
}, v(u)) : a.value = 0;
|
|
@@ -6146,7 +6146,7 @@ function Ec(e) {
|
|
|
6146
6146
|
t > -1 && Pu.splice(t, 1);
|
|
6147
6147
|
};
|
|
6148
6148
|
}
|
|
6149
|
-
if (
|
|
6149
|
+
if (kc) {
|
|
6150
6150
|
const e = () => {
|
|
6151
6151
|
if (!(!vn() || !yc()))
|
|
6152
6152
|
for (let u = 0; u < Pu.length; u++) {
|
|
@@ -6223,16 +6223,16 @@ const Fc = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) =>
|
|
|
6223
6223
|
return Qe([l, o], (s) => {
|
|
6224
6224
|
r && (r.cancel(), e.runAsync = a);
|
|
6225
6225
|
const [c, f] = s, _ = Dc(
|
|
6226
|
-
(
|
|
6227
|
-
|
|
6226
|
+
(x) => {
|
|
6227
|
+
x();
|
|
6228
6228
|
},
|
|
6229
6229
|
v(c),
|
|
6230
6230
|
f
|
|
6231
6231
|
);
|
|
6232
|
-
r = _, i.value = _, e.runAsync = (...
|
|
6232
|
+
r = _, i.value = _, e.runAsync = (...x) => new Promise((d, y) => {
|
|
6233
6233
|
var A;
|
|
6234
6234
|
(A = i.value) == null || A.call(i, () => {
|
|
6235
|
-
a(...
|
|
6235
|
+
a(...x).then(d).catch(y);
|
|
6236
6236
|
});
|
|
6237
6237
|
});
|
|
6238
6238
|
}, {
|
|
@@ -6289,7 +6289,7 @@ class Rc {
|
|
|
6289
6289
|
async runAsync(...u) {
|
|
6290
6290
|
var t, n, r, o, a, i, l, s, c, f, _;
|
|
6291
6291
|
this.count += 1;
|
|
6292
|
-
const
|
|
6292
|
+
const x = this.count, { stopNow: d = !1, returnNow: y = !1, ...A } = this.runPluginHandler(
|
|
6293
6293
|
"onBefore",
|
|
6294
6294
|
u
|
|
6295
6295
|
);
|
|
@@ -6314,8 +6314,8 @@ class Rc {
|
|
|
6314
6314
|
try {
|
|
6315
6315
|
let { servicePromise: E } = this.runPluginHandler("onRequest", this.serviceRef.value, u);
|
|
6316
6316
|
const m = (h) => {
|
|
6317
|
-
var b,
|
|
6318
|
-
if (!this.options.concurrent &&
|
|
6317
|
+
var b, k, w, P;
|
|
6318
|
+
if (!this.options.concurrent && x !== this.count)
|
|
6319
6319
|
return new Promise(() => {
|
|
6320
6320
|
});
|
|
6321
6321
|
const D = this.options.formatResult ? this.options.formatResult(h) : h, B = {
|
|
@@ -6325,13 +6325,13 @@ class Rc {
|
|
|
6325
6325
|
data: D,
|
|
6326
6326
|
error: void 0,
|
|
6327
6327
|
loading: !1
|
|
6328
|
-
}), (
|
|
6328
|
+
}), (k = (b = this.options).onSuccess) == null || k.call(b, D, u), this.runPluginHandler("onSuccess", D, u, B), this.previousValidData = D, (P = (w = this.options).onFinally) == null || P.call(w, u, D, void 0), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, D, void 0), D;
|
|
6329
6329
|
};
|
|
6330
6330
|
E || (E = this.serviceRef.value(...u));
|
|
6331
6331
|
const p = await E;
|
|
6332
6332
|
return m(p);
|
|
6333
6333
|
} catch (E) {
|
|
6334
|
-
if (!this.options.concurrent &&
|
|
6334
|
+
if (!this.options.concurrent && x !== this.count)
|
|
6335
6335
|
return new Promise(() => {
|
|
6336
6336
|
});
|
|
6337
6337
|
throw this.setState({
|
|
@@ -6339,7 +6339,7 @@ class Rc {
|
|
|
6339
6339
|
loading: !1
|
|
6340
6340
|
}), (i = (a = this.options).onError) == null || i.call(a, E, u), this.runPluginHandler("onError", E, u), (Cr((l = this.options) == null ? void 0 : l.rollbackOnError) && ((s = this.options) != null && s.rollbackOnError(u)) || Sc((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
|
|
6341
6341
|
data: this.previousValidData
|
|
6342
|
-
}), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, E), (this.options.concurrent ||
|
|
6342
|
+
}), (_ = (f = this.options).onFinally) == null || _.call(f, u, void 0, E), (this.options.concurrent || x === this.count) && this.runPluginHandler("onFinally", u, void 0, E), E;
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
6345
6345
|
run(...u) {
|
|
@@ -6393,33 +6393,33 @@ function Lc(e, u = {}, t = []) {
|
|
|
6393
6393
|
}, _ = t.map((y) => {
|
|
6394
6394
|
var A;
|
|
6395
6395
|
return (A = y?.onInit) == null ? void 0 : A.call(y, l);
|
|
6396
|
-
}).filter(Boolean),
|
|
6396
|
+
}).filter(Boolean), x = new Rc(
|
|
6397
6397
|
s,
|
|
6398
6398
|
l,
|
|
6399
6399
|
f,
|
|
6400
6400
|
Object.assign({}, ..._, c)
|
|
6401
6401
|
);
|
|
6402
|
-
|
|
6402
|
+
x.options = l, x.pluginImpls = t.map((y) => y(x, l));
|
|
6403
6403
|
const d = oe(() => Kt(a) ? a.value : a);
|
|
6404
6404
|
if (Se(() => {
|
|
6405
6405
|
if (!o) {
|
|
6406
|
-
const y =
|
|
6407
|
-
d.value &&
|
|
6406
|
+
const y = x.state.params || u.defaultParams || [];
|
|
6407
|
+
d.value && x.options.refreshDeps === !0 && s.value && x.run(...y);
|
|
6408
6408
|
}
|
|
6409
|
-
}), !o &&
|
|
6410
|
-
const y =
|
|
6411
|
-
v(a) &&
|
|
6409
|
+
}), !o && x.options.refreshDeps !== !0) {
|
|
6410
|
+
const y = x.state.params || u.defaultParams || [];
|
|
6411
|
+
v(a) && x.run(...y);
|
|
6412
6412
|
}
|
|
6413
6413
|
return on(() => {
|
|
6414
|
-
|
|
6414
|
+
x.cancel();
|
|
6415
6415
|
}), {
|
|
6416
6416
|
...Io(c),
|
|
6417
|
-
cancel:
|
|
6418
|
-
refresh:
|
|
6419
|
-
refreshAsync:
|
|
6420
|
-
run:
|
|
6421
|
-
runAsync:
|
|
6422
|
-
mutate:
|
|
6417
|
+
cancel: x.cancel.bind(x),
|
|
6418
|
+
refresh: x.refresh.bind(x),
|
|
6419
|
+
refreshAsync: x.refreshAsync.bind(x),
|
|
6420
|
+
run: x.run.bind(x),
|
|
6421
|
+
runAsync: x.runAsync.bind(x),
|
|
6422
|
+
mutate: x.mutate.bind(x)
|
|
6423
6423
|
};
|
|
6424
6424
|
}
|
|
6425
6425
|
const Nc = (e, u) => function(n, r = {}, o = []) {
|
|
@@ -6438,7 +6438,7 @@ function yn(e, u, t) {
|
|
|
6438
6438
|
_c,
|
|
6439
6439
|
Ac,
|
|
6440
6440
|
Fc,
|
|
6441
|
-
|
|
6441
|
+
ko,
|
|
6442
6442
|
Ls,
|
|
6443
6443
|
wc
|
|
6444
6444
|
]) == null ? void 0 : n.filter(Boolean);
|
|
@@ -6476,7 +6476,7 @@ function zc(e, u, t, n, r, o) {
|
|
|
6476
6476
|
}, null, -1)
|
|
6477
6477
|
]));
|
|
6478
6478
|
}
|
|
6479
|
-
const Dr = /* @__PURE__ */
|
|
6479
|
+
const Dr = /* @__PURE__ */ xn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
6480
6480
|
__name: "SearchInput",
|
|
6481
6481
|
props: {
|
|
6482
6482
|
value: {},
|
|
@@ -6539,7 +6539,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6539
6539
|
}, c.buttonProps, { onClick: l }), Tr({
|
|
6540
6540
|
default: O(() => [
|
|
6541
6541
|
o.value === "text" ? (R(), re(Ee, { key: 0 }, [
|
|
6542
|
-
|
|
6542
|
+
xu(" 搜索 ")
|
|
6543
6543
|
], 64)) : ue("", !0)
|
|
6544
6544
|
]),
|
|
6545
6545
|
_: 2
|
|
@@ -6686,7 +6686,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6686
6686
|
[i.page]: c.value.page,
|
|
6687
6687
|
[i.pageSize]: c.value.pageSize,
|
|
6688
6688
|
...e.defaultParams
|
|
6689
|
-
}, { loading: _, data:
|
|
6689
|
+
}, { loading: _, data: x, error: d, params: y, run: A, runAsync: E, refresh: m, refreshAsync: p, cancel: h, mutate: b } = yn(e.api, {
|
|
6690
6690
|
defaultParams: [
|
|
6691
6691
|
f
|
|
6692
6692
|
],
|
|
@@ -6704,10 +6704,10 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6704
6704
|
onFinally: (C, $, T) => {
|
|
6705
6705
|
e.requestOptions?.onFinally?.(C, $, T), n("finally", C, $, T);
|
|
6706
6706
|
}
|
|
6707
|
-
}, e.requestPlugins),
|
|
6707
|
+
}, e.requestPlugins), k = [], w = oe(() => x.value ? Array.isArray(x.value[i.list]) ? x.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), P = oe(() => e.columns?.reduce((C, $) => C + Number($.width ?? 100), 0));
|
|
6708
6708
|
function D(C, $) {
|
|
6709
6709
|
C[i.list]?.forEach((N) => {
|
|
6710
|
-
|
|
6710
|
+
k.some((H) => H[i.rowKey] === N[i.rowKey]) || k.push(N);
|
|
6711
6711
|
}), c.value.page = i.page in $[0] ? Number($[0][i.page]) : 1, c.value.pageSize = i.pageSize in $[0] ? Number($[0][i.pageSize]) : 10, c.value.itemCount = i.count in C ? Number(C[i.count]) : 0;
|
|
6712
6712
|
const T = $[0]?.[i.filter], Q = $[0]?.[i.sorter];
|
|
6713
6713
|
if (o) {
|
|
@@ -6764,7 +6764,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6764
6764
|
n("scroll", C);
|
|
6765
6765
|
},
|
|
6766
6766
|
onUpdateCheckedRowKeys: (C, $, T) => {
|
|
6767
|
-
const Q = C.map((N) =>
|
|
6767
|
+
const Q = C.map((N) => k.find((H) => H[i.rowKey] === N));
|
|
6768
6768
|
n("update:checkedRowKeys", C, Q, { row: ye(T.row), action: T.action }, ye(w.value));
|
|
6769
6769
|
},
|
|
6770
6770
|
onUpdateExpandedRowKeys: (C) => {
|
|
@@ -6789,7 +6789,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6789
6789
|
}
|
|
6790
6790
|
const q = {
|
|
6791
6791
|
loading: _,
|
|
6792
|
-
data:
|
|
6792
|
+
data: x,
|
|
6793
6793
|
error: d,
|
|
6794
6794
|
params: y,
|
|
6795
6795
|
pagination: c,
|
|
@@ -6894,7 +6894,7 @@ const Dr = /* @__PURE__ */ kn($c, [["render", zc]]), yo = /* @__PURE__ */ me({
|
|
|
6894
6894
|
onClick: $[1] || ($[1] = (T) => ie.value = !ie.value)
|
|
6895
6895
|
}, {
|
|
6896
6896
|
default: O(() => [
|
|
6897
|
-
|
|
6897
|
+
xu(ou(ie.value ? "折叠" : "展开"), 1)
|
|
6898
6898
|
]),
|
|
6899
6899
|
_: 1
|
|
6900
6900
|
})
|
|
@@ -7044,7 +7044,7 @@ function qc(e, u) {
|
|
|
7044
7044
|
function _() {
|
|
7045
7045
|
f(), Object.assign(r, structuredClone(e));
|
|
7046
7046
|
}
|
|
7047
|
-
function
|
|
7047
|
+
function x() {
|
|
7048
7048
|
c(), _();
|
|
7049
7049
|
}
|
|
7050
7050
|
return {
|
|
@@ -7055,7 +7055,7 @@ function qc(e, u) {
|
|
|
7055
7055
|
validate: s,
|
|
7056
7056
|
resetValidation: c,
|
|
7057
7057
|
resetForm: _,
|
|
7058
|
-
reset:
|
|
7058
|
+
reset: x,
|
|
7059
7059
|
clear: f,
|
|
7060
7060
|
onValidated: l.on
|
|
7061
7061
|
};
|
|
@@ -7065,7 +7065,17 @@ function jc(e) {
|
|
|
7065
7065
|
return;
|
|
7066
7066
|
const u = {};
|
|
7067
7067
|
return e.forEach((t) => {
|
|
7068
|
-
|
|
7068
|
+
if (t.key) {
|
|
7069
|
+
if (t.rules) {
|
|
7070
|
+
u[t.key] = t.rules;
|
|
7071
|
+
return;
|
|
7072
|
+
}
|
|
7073
|
+
t.required && (u[t.key] = {
|
|
7074
|
+
required: !0,
|
|
7075
|
+
message: `${typeof t.label == "string" ? t.label : typeof t.label == "object" ? t.label.label : typeof t.key == "string" ? t.key : "字段"}不能为空`,
|
|
7076
|
+
trigger: ["input", "blur"]
|
|
7077
|
+
});
|
|
7078
|
+
}
|
|
7069
7079
|
}), u;
|
|
7070
7080
|
}
|
|
7071
7081
|
const uf = /* @__PURE__ */ me({
|
|
@@ -7090,7 +7100,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7090
7100
|
collapsedGrid: p[1] === "grid",
|
|
7091
7101
|
collapsedFlex: p[1] === "flex"
|
|
7092
7102
|
};
|
|
7093
|
-
}), o = e.rules ? { ...e.rules, ...jc(e.options) } : void 0, { formValue: a, formRules: i, formRef: l, validate: s, resetValidation: c, resetForm: f, reset: _, clear:
|
|
7103
|
+
}), o = e.rules ? { ...e.rules, ...jc(e.options) } : void 0, { formValue: a, formRules: i, formRef: l, validate: s, resetValidation: c, resetForm: f, reset: _, clear: x, onValidated: d } = qc(e.values, {
|
|
7094
7104
|
rules: o,
|
|
7095
7105
|
clearRules: e.clearRules
|
|
7096
7106
|
});
|
|
@@ -7106,7 +7116,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7106
7116
|
resetValidation: c,
|
|
7107
7117
|
resetForm: f,
|
|
7108
7118
|
reset: _,
|
|
7109
|
-
clear:
|
|
7119
|
+
clear: x,
|
|
7110
7120
|
onValidated: d,
|
|
7111
7121
|
setValues: (p) => {
|
|
7112
7122
|
Object.assign(a.value, p);
|
|
@@ -7136,10 +7146,10 @@ const uf = /* @__PURE__ */ me({
|
|
|
7136
7146
|
}, () => [
|
|
7137
7147
|
r.value.grid ? (R(), z(v(st), fe(Z({ key: 0 }, p.gridProps)), {
|
|
7138
7148
|
default: O(() => [
|
|
7139
|
-
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, gridItemProps:
|
|
7149
|
+
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(v(ct), Z({
|
|
7140
7150
|
key: B,
|
|
7141
7151
|
span: 12
|
|
7142
|
-
}, { ref_for: !0 },
|
|
7152
|
+
}, { ref_for: !0 }, k), {
|
|
7143
7153
|
default: O(() => [
|
|
7144
7154
|
w ? (R(), z(se(v(he)(w(A, E), P, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7145
7155
|
be(v(Xe), {
|
|
@@ -7158,8 +7168,8 @@ const uf = /* @__PURE__ */ me({
|
|
|
7158
7168
|
}, 16)) : ue("", !0),
|
|
7159
7169
|
r.value.flex ? (R(), z(v(Oe), fe(Z({ key: 1 }, p.flexProps)), {
|
|
7160
7170
|
default: O(() => [
|
|
7161
|
-
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, render:
|
|
7162
|
-
|
|
7171
|
+
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => !b.collapsed), ({ key: b, render: k, label: w, ...P }, D) => (R(), re(Ee, { key: D }, [
|
|
7172
|
+
k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7163
7173
|
be(v(Xe), {
|
|
7164
7174
|
options: P,
|
|
7165
7175
|
value: b ? v(a)[b] : void 0,
|
|
@@ -7182,7 +7192,7 @@ const uf = /* @__PURE__ */ me({
|
|
|
7182
7192
|
onClick: h[0] || (h[0] = (b) => y.value = !y.value)
|
|
7183
7193
|
}, {
|
|
7184
7194
|
default: O(() => [
|
|
7185
|
-
|
|
7195
|
+
xu(ou(y.value ? "折叠" : "展开"), 1)
|
|
7186
7196
|
]),
|
|
7187
7197
|
_: 1
|
|
7188
7198
|
})
|
|
@@ -7193,10 +7203,10 @@ const uf = /* @__PURE__ */ me({
|
|
|
7193
7203
|
default: O(() => [
|
|
7194
7204
|
r.value.collapsedGrid ? (R(), z(v(st), fe(Z({ key: 0 }, p.gridProps)), {
|
|
7195
7205
|
default: O(() => [
|
|
7196
|
-
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, gridItemProps:
|
|
7206
|
+
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(v(ct), Z({
|
|
7197
7207
|
key: B,
|
|
7198
7208
|
span: 12
|
|
7199
|
-
}, { ref_for: !0 },
|
|
7209
|
+
}, { ref_for: !0 }, k), {
|
|
7200
7210
|
default: O(() => [
|
|
7201
7211
|
w ? (R(), z(se(v(he)(w(A, E), P, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7202
7212
|
be(v(Xe), {
|
|
@@ -7215,8 +7225,8 @@ const uf = /* @__PURE__ */ me({
|
|
|
7215
7225
|
}, 16)) : ue("", !0),
|
|
7216
7226
|
r.value.collapsedFlex ? (R(), z(v(Oe), fe(Z({ key: 1 }, p.flexProps)), {
|
|
7217
7227
|
default: O(() => [
|
|
7218
|
-
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, render:
|
|
7219
|
-
|
|
7228
|
+
(R(!0), re(Ee, null, Ze(p.options?.filter((b) => b.collapsed), ({ key: b, render: k, label: w, ...P }, D) => (R(), re(Ee, { key: D }, [
|
|
7229
|
+
k ? (R(), z(se(v(he)(k(A, E), w, { path: b })), { key: 0 })) : (R(), z(se(v(he)(
|
|
7220
7230
|
be(v(Xe), {
|
|
7221
7231
|
options: P,
|
|
7222
7232
|
value: b ? v(a)[b] : void 0,
|
|
@@ -7257,7 +7267,7 @@ function Wc(e, u, t, n, r, o) {
|
|
|
7257
7267
|
}, null, -1)
|
|
7258
7268
|
]));
|
|
7259
7269
|
}
|
|
7260
|
-
const Vc = /* @__PURE__ */
|
|
7270
|
+
const Vc = /* @__PURE__ */ xn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
7261
7271
|
__name: "PresetPicker",
|
|
7262
7272
|
props: {
|
|
7263
7273
|
value: {},
|
|
@@ -7290,18 +7300,18 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7290
7300
|
function s() {
|
|
7291
7301
|
o.value = structuredClone(Array.isArray(e.value) ? ye(e.value) : e.value ? [e.value] : []), l.value = !0;
|
|
7292
7302
|
}
|
|
7293
|
-
function c(h, b,
|
|
7303
|
+
function c(h, b, k, w, P) {
|
|
7294
7304
|
P && (r.rowKey = P), e.multiple ? o.value.includes(h?.[r.rowKey]) ? (o.value = o.value.filter((D) => D !== h?.[r.rowKey]), a.value = a.value.filter((D) => D?.[r.rowKey] !== h?.[r.rowKey])) : (o.value.push(h?.[r.rowKey]), a.value.push(h)) : (o.value = [h?.[r.rowKey]], a.value = [h]);
|
|
7295
7305
|
}
|
|
7296
|
-
function f(h, b,
|
|
7297
|
-
if (P && (r.rowKey = P),
|
|
7306
|
+
function f(h, b, k, w, P) {
|
|
7307
|
+
if (P && (r.rowKey = P), k.action === "checkAll") {
|
|
7298
7308
|
const D = h.filter((L) => !o.value.includes(L));
|
|
7299
7309
|
o.value.push(...D);
|
|
7300
7310
|
const B = b.filter((L) => !a.value.some((Y) => Y?.[r.rowKey] === L?.[r.rowKey]));
|
|
7301
7311
|
a.value.push(...B);
|
|
7302
7312
|
return;
|
|
7303
7313
|
}
|
|
7304
|
-
if (
|
|
7314
|
+
if (k.action === "uncheckAll") {
|
|
7305
7315
|
const D = o.value.filter((L) => !w?.some((Y) => Y?.[r.rowKey] === L));
|
|
7306
7316
|
o.value = D;
|
|
7307
7317
|
const B = a.value.filter((L) => !w?.some((Y) => Y?.[r.rowKey] === L?.[r.rowKey]));
|
|
@@ -7311,12 +7321,12 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7311
7321
|
function _() {
|
|
7312
7322
|
n("negativeClick"), l.value = !1;
|
|
7313
7323
|
}
|
|
7314
|
-
function
|
|
7324
|
+
function x() {
|
|
7315
7325
|
if (n("positiveClick"), e.multiple) {
|
|
7316
|
-
const h = ye(Ke(o)), b = h.map((
|
|
7326
|
+
const h = ye(Ke(o)), b = h.map((k) => ye(Ke(a.value.find((w) => w?.[r.rowKey] === k))));
|
|
7317
7327
|
n("update:value", h, b);
|
|
7318
7328
|
} else {
|
|
7319
|
-
const h = o.value[0] ?? null, b = ye(Ke(a.value.find((
|
|
7329
|
+
const h = o.value[0] ?? null, b = ye(Ke(a.value.find((k) => k?.[r.rowKey] === h)));
|
|
7320
7330
|
n("update:value", h, b);
|
|
7321
7331
|
}
|
|
7322
7332
|
l.value = !1;
|
|
@@ -7340,15 +7350,15 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7340
7350
|
onUpdateCheckedRowKeys: f,
|
|
7341
7351
|
onClickRow: c,
|
|
7342
7352
|
onNegativeClick: _,
|
|
7343
|
-
onPositiveClick:
|
|
7353
|
+
onPositiveClick: x,
|
|
7344
7354
|
clearValue: d
|
|
7345
7355
|
};
|
|
7346
7356
|
return u({
|
|
7347
7357
|
refs: m,
|
|
7348
7358
|
actions: p
|
|
7349
|
-
}), (h, b) => (R(), z(v(
|
|
7359
|
+
}), (h, b) => (R(), z(v(ki), Z({ value: E.value }, h.badgeProps), {
|
|
7350
7360
|
default: O(() => [
|
|
7351
|
-
V(v(
|
|
7361
|
+
V(v(xi), null, {
|
|
7352
7362
|
default: O(() => [
|
|
7353
7363
|
V(v(Je), Z({ type: h.type }, h.buttonProps, { onClick: s }), {
|
|
7354
7364
|
icon: O(() => [
|
|
@@ -7379,21 +7389,21 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7379
7389
|
]),
|
|
7380
7390
|
V(v(_i), Z({
|
|
7381
7391
|
show: l.value,
|
|
7382
|
-
"onUpdate:show": b[0] || (b[0] = (
|
|
7392
|
+
"onUpdate:show": b[0] || (b[0] = (k) => l.value = k),
|
|
7383
7393
|
style: { width: "auto" },
|
|
7384
7394
|
preset: "dialog",
|
|
7385
7395
|
title: h.placeholder,
|
|
7386
7396
|
"positive-text": "确认",
|
|
7387
7397
|
"negative-text": "取消"
|
|
7388
7398
|
}, h.modalProps, {
|
|
7389
|
-
onPositiveClick:
|
|
7399
|
+
onPositiveClick: x,
|
|
7390
7400
|
onNegativeClick: _,
|
|
7391
|
-
onClose: b[1] || (b[1] = (
|
|
7392
|
-
onAfterEnter: b[2] || (b[2] = (
|
|
7393
|
-
onAfterLeave: b[3] || (b[3] = (
|
|
7394
|
-
onEsc: b[4] || (b[4] = (
|
|
7395
|
-
onMaskClick: b[5] || (b[5] = (
|
|
7396
|
-
"onUpdate:show": b[6] || (b[6] = (
|
|
7401
|
+
onClose: b[1] || (b[1] = (k) => n("close")),
|
|
7402
|
+
onAfterEnter: b[2] || (b[2] = (k) => n("afterEnter")),
|
|
7403
|
+
onAfterLeave: b[3] || (b[3] = (k) => n("afterLeave")),
|
|
7404
|
+
onEsc: b[4] || (b[4] = (k) => n("esc")),
|
|
7405
|
+
onMaskClick: b[5] || (b[5] = (k) => n("maskClick")),
|
|
7406
|
+
"onUpdate:show": b[6] || (b[6] = (k) => n("update:show", k))
|
|
7397
7407
|
}), {
|
|
7398
7408
|
action: O(() => [
|
|
7399
7409
|
U(h.$slots, "modal-action")
|
|
@@ -7458,7 +7468,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7458
7468
|
[o.pageSize]: i.value.pageSize,
|
|
7459
7469
|
[o.search]: "",
|
|
7460
7470
|
...e.defaultParams
|
|
7461
|
-
}, { data: s, error: c, loading: f, params: _, run:
|
|
7471
|
+
}, { data: s, error: c, loading: f, params: _, run: x, runAsync: d, refresh: y, refreshAsync: A, cancel: E, mutate: m } = yn(e.api, {
|
|
7462
7472
|
defaultParams: [
|
|
7463
7473
|
l
|
|
7464
7474
|
],
|
|
@@ -7485,14 +7495,14 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7485
7495
|
function b(F, q) {
|
|
7486
7496
|
i.value.page = q[0] && o.page in q[0] ? Number(q[0][o.page]) : 1, i.value.pageSize = q[0] && o.pageSize in q[0] ? Number(q[0][o.pageSize]) : 10, i.value.itemCount = o.count in F ? Number(F[o.count]) : 0;
|
|
7487
7497
|
}
|
|
7488
|
-
function
|
|
7489
|
-
return
|
|
7498
|
+
function k(F) {
|
|
7499
|
+
return x({
|
|
7490
7500
|
..._.value[0],
|
|
7491
7501
|
...F
|
|
7492
7502
|
});
|
|
7493
7503
|
}
|
|
7494
7504
|
const w = G(""), P = Nr(() => {
|
|
7495
|
-
|
|
7505
|
+
k({
|
|
7496
7506
|
[o.page]: 1,
|
|
7497
7507
|
[o.search]: w.value
|
|
7498
7508
|
});
|
|
@@ -7515,22 +7525,22 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7515
7525
|
n("update:value", F, q, ye(Ke(ee)));
|
|
7516
7526
|
},
|
|
7517
7527
|
onSearch: (F) => {
|
|
7518
|
-
w.value = F, !f.value && (e.debounce ? P() :
|
|
7528
|
+
w.value = F, !f.value && (e.debounce ? P() : k({
|
|
7519
7529
|
[o.page]: 1,
|
|
7520
7530
|
[o.search]: w.value
|
|
7521
7531
|
}));
|
|
7522
7532
|
},
|
|
7523
7533
|
onUpdateShow: (F) => {
|
|
7524
|
-
F && (s.value || e.manual &&
|
|
7534
|
+
F && (s.value || e.manual && x(l));
|
|
7525
7535
|
}
|
|
7526
7536
|
}, B = {
|
|
7527
7537
|
onUpdatePage: (F) => {
|
|
7528
|
-
n("update:page", F), !f.value &&
|
|
7538
|
+
n("update:page", F), !f.value && k({
|
|
7529
7539
|
[o.page]: F
|
|
7530
7540
|
});
|
|
7531
7541
|
},
|
|
7532
7542
|
onUpdatePageSize: (F) => {
|
|
7533
|
-
n("update:pageSize", F), !f.value &&
|
|
7543
|
+
n("update:pageSize", F), !f.value && k({
|
|
7534
7544
|
[o.pageSize]: F
|
|
7535
7545
|
});
|
|
7536
7546
|
}
|
|
@@ -7550,7 +7560,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7550
7560
|
rawList: p,
|
|
7551
7561
|
selectRef: r
|
|
7552
7562
|
}, ie = {
|
|
7553
|
-
run:
|
|
7563
|
+
run: x,
|
|
7554
7564
|
runAsync: d,
|
|
7555
7565
|
refresh: y,
|
|
7556
7566
|
refreshAsync: A,
|
|
@@ -7559,7 +7569,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7559
7569
|
setParams: (F) => {
|
|
7560
7570
|
Object.assign(_.value[0], F);
|
|
7561
7571
|
},
|
|
7562
|
-
runParams: (F) =>
|
|
7572
|
+
runParams: (F) => x(Object.assign(_.value[0], F)),
|
|
7563
7573
|
runParamsAsync: async (F) => d(Object.assign(_.value[0], F))
|
|
7564
7574
|
};
|
|
7565
7575
|
return u({
|
|
@@ -7641,7 +7651,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7641
7651
|
},
|
|
7642
7652
|
emits: ["before", "success", "error", "finally"],
|
|
7643
7653
|
setup(e, { expose: u, emit: t }) {
|
|
7644
|
-
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run: s, runAsync: c, refresh: f, refreshAsync: _, cancel:
|
|
7654
|
+
const n = t, r = { page: "page", pageSize: "pageSize", search: "search", ...e.fields }, { loading: o, data: a, error: i, params: l, run: s, runAsync: c, refresh: f, refreshAsync: _, cancel: x, mutate: d } = yn(e.api, {
|
|
7645
7655
|
defaultParams: [
|
|
7646
7656
|
{
|
|
7647
7657
|
[r.page]: 1,
|
|
@@ -7674,7 +7684,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7674
7684
|
runAsync: c,
|
|
7675
7685
|
refresh: f,
|
|
7676
7686
|
refreshAsync: _,
|
|
7677
|
-
cancel:
|
|
7687
|
+
cancel: x,
|
|
7678
7688
|
mutate: d,
|
|
7679
7689
|
setParam: (E) => {
|
|
7680
7690
|
Object.assign(l.value[0], E);
|
|
@@ -7717,7 +7727,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7717
7727
|
onChange: a,
|
|
7718
7728
|
onBlur: a
|
|
7719
7729
|
}), null, 16, ["value"])) : (R(), re(Ee, { key: 1 }, [
|
|
7720
|
-
|
|
7730
|
+
xu(ou(r.value), 1)
|
|
7721
7731
|
], 64))
|
|
7722
7732
|
]));
|
|
7723
7733
|
}
|
|
@@ -7747,7 +7757,7 @@ const Vc = /* @__PURE__ */ kn(Hc, [["render", Wc]]), tf = /* @__PURE__ */ me({
|
|
|
7747
7757
|
]),
|
|
7748
7758
|
default: O(() => [
|
|
7749
7759
|
U(n.$slots, "tooltip", {}, () => [
|
|
7750
|
-
|
|
7760
|
+
xu(ou(n.value), 1)
|
|
7751
7761
|
])
|
|
7752
7762
|
]),
|
|
7753
7763
|
_: 3
|