@squirrel-cloud/ui-vue 0.2.25 → 0.2.27
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/squirrel-cloud-ui-vue.js +513 -513
- package/dist/squirrel-cloud-ui-vue.umd.cjs +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as F, openBlock as
|
|
1
|
+
import { createElementBlock as F, openBlock as v, createElementVNode as C, createStaticVNode as st, defineComponent as I, computed as E, createBlock as O, unref as q, normalizeClass as V, withCtx as ku, createCommentVNode as U, createTextVNode as y0, resolveDynamicComponent as mu, toDisplayString as _u, h as we, ref as j, normalizeStyle as Fu, shallowRef as Ru, onMounted as C0, onBeforeUnmount as Te, renderSlot as R, Transition as v0, withDirectives as Du, vShow as qu, inject as at, createVNode as Iu, provide as lt, toRef as xe, useSlots as D0, mergeModels as Yu, useModel as Ku, vModelDynamic as ft, Fragment as Ee, renderList as dt, watch as Qu, getCurrentScope as ht, onScopeDispose as pt, shallowReadonly as Cu, Teleport as bt, withModifiers as xt } from "vue";
|
|
2
2
|
const P = (u, e) => {
|
|
3
3
|
const t = u.__vccOpts || u;
|
|
4
4
|
for (const [n, r] of e)
|
|
@@ -9,7 +9,7 @@ const P = (u, e) => {
|
|
|
9
9
|
"data-icon": "arrow-left"
|
|
10
10
|
};
|
|
11
11
|
function gt(u, e) {
|
|
12
|
-
return
|
|
12
|
+
return v(), F("span", _t, e[0] || (e[0] = [
|
|
13
13
|
C("svg", {
|
|
14
14
|
viewBox: "0 0 48 48",
|
|
15
15
|
version: "1.1",
|
|
@@ -24,8 +24,8 @@ const kt = /* @__PURE__ */ P(mt, [["render", gt]]), yt = {}, Ct = {
|
|
|
24
24
|
class: "sq-icon",
|
|
25
25
|
"data-icon": "arrow-right"
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function vt(u, e) {
|
|
28
|
+
return v(), F("span", Ct, e[0] || (e[0] = [
|
|
29
29
|
C("svg", {
|
|
30
30
|
viewBox: "0 0 48 48",
|
|
31
31
|
version: "1.1",
|
|
@@ -36,12 +36,12 @@ function Dt(u, e) {
|
|
|
36
36
|
], -1)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const Dt = /* @__PURE__ */ P(yt, [["render", vt]]), wt = {}, Et = {
|
|
40
40
|
class: "sq-icon",
|
|
41
41
|
"data-icon": "caret-up"
|
|
42
42
|
};
|
|
43
43
|
function At(u, e) {
|
|
44
|
-
return
|
|
44
|
+
return v(), F("span", Et, e[0] || (e[0] = [
|
|
45
45
|
C("svg", {
|
|
46
46
|
viewBox: "0 0 48 48",
|
|
47
47
|
version: "1.1",
|
|
@@ -56,7 +56,7 @@ const Ft = /* @__PURE__ */ P(wt, [["render", At]]), St = {}, Bt = {
|
|
|
56
56
|
"data-icon": "check-circle"
|
|
57
57
|
};
|
|
58
58
|
function zt(u, e) {
|
|
59
|
-
return
|
|
59
|
+
return v(), F("span", Bt, e[0] || (e[0] = [
|
|
60
60
|
C("svg", {
|
|
61
61
|
viewBox: "0 0 48 48",
|
|
62
62
|
version: "1.1",
|
|
@@ -77,7 +77,7 @@ const Mt = /* @__PURE__ */ P(St, [["render", zt]]), Tt = {}, Lt = {
|
|
|
77
77
|
"data-icon": "check-filled"
|
|
78
78
|
};
|
|
79
79
|
function qt(u, e) {
|
|
80
|
-
return
|
|
80
|
+
return v(), F("span", Lt, e[0] || (e[0] = [
|
|
81
81
|
C("svg", {
|
|
82
82
|
viewBox: "0 0 48 48",
|
|
83
83
|
version: "1.1",
|
|
@@ -94,7 +94,7 @@ const Rt = /* @__PURE__ */ P(Tt, [["render", qt]]), It = {}, Pt = {
|
|
|
94
94
|
"data-icon": "close"
|
|
95
95
|
};
|
|
96
96
|
function Ot(u, e) {
|
|
97
|
-
return
|
|
97
|
+
return v(), F("span", Pt, e[0] || (e[0] = [
|
|
98
98
|
C("svg", {
|
|
99
99
|
viewBox: "0 0 48 48",
|
|
100
100
|
version: "1.1",
|
|
@@ -112,7 +112,7 @@ const $t = /* @__PURE__ */ P(It, [["render", Ot]]), Nt = {}, jt = {
|
|
|
112
112
|
"data-icon": "close-circle"
|
|
113
113
|
};
|
|
114
114
|
function Ht(u, e) {
|
|
115
|
-
return
|
|
115
|
+
return v(), F("span", jt, e[0] || (e[0] = [
|
|
116
116
|
C("svg", {
|
|
117
117
|
viewBox: "0 0 48 48",
|
|
118
118
|
version: "1.1",
|
|
@@ -135,7 +135,7 @@ const Vt = /* @__PURE__ */ P(Nt, [["render", Ht]]), Zt = {}, Ut = {
|
|
|
135
135
|
"data-icon": "close-filled"
|
|
136
136
|
};
|
|
137
137
|
function Wt(u, e) {
|
|
138
|
-
return
|
|
138
|
+
return v(), F("span", Ut, e[0] || (e[0] = [
|
|
139
139
|
C("svg", {
|
|
140
140
|
viewBox: "0 0 48 48",
|
|
141
141
|
version: "1.1",
|
|
@@ -153,7 +153,7 @@ const Gt = /* @__PURE__ */ P(Zt, [["render", Wt]]), Jt = {}, Xt = {
|
|
|
153
153
|
"data-icon": "ellipsis"
|
|
154
154
|
};
|
|
155
155
|
function Qt(u, e) {
|
|
156
|
-
return
|
|
156
|
+
return v(), F("span", Xt, e[0] || (e[0] = [
|
|
157
157
|
C("svg", {
|
|
158
158
|
viewBox: "0 0 48 48",
|
|
159
159
|
version: "1.1",
|
|
@@ -170,7 +170,7 @@ const Yt = /* @__PURE__ */ P(Jt, [["render", Qt]]), Kt = {}, un = {
|
|
|
170
170
|
"data-icon": "hide"
|
|
171
171
|
};
|
|
172
172
|
function en(u, e) {
|
|
173
|
-
return
|
|
173
|
+
return v(), F("span", un, e[0] || (e[0] = [
|
|
174
174
|
C("svg", {
|
|
175
175
|
viewBox: "0 0 48 48",
|
|
176
176
|
version: "1.1",
|
|
@@ -193,7 +193,7 @@ const tn = /* @__PURE__ */ P(Kt, [["render", en]]), nn = {}, rn = {
|
|
|
193
193
|
"data-icon": "info-filled"
|
|
194
194
|
};
|
|
195
195
|
function cn(u, e) {
|
|
196
|
-
return
|
|
196
|
+
return v(), F("span", rn, e[0] || (e[0] = [
|
|
197
197
|
C("svg", {
|
|
198
198
|
viewBox: "0 0 48 48",
|
|
199
199
|
version: "1.1",
|
|
@@ -214,7 +214,7 @@ const on = /* @__PURE__ */ P(nn, [["render", cn]]), sn = {}, an = {
|
|
|
214
214
|
"data-icon": "jump-to"
|
|
215
215
|
};
|
|
216
216
|
function ln(u, e) {
|
|
217
|
-
return
|
|
217
|
+
return v(), F("span", an, e[0] || (e[0] = [
|
|
218
218
|
C("svg", {
|
|
219
219
|
viewBox: "0 0 48 48",
|
|
220
220
|
version: "1.1",
|
|
@@ -230,7 +230,7 @@ const fn = /* @__PURE__ */ P(sn, [["render", ln]]), dn = {}, hn = {
|
|
|
230
230
|
"data-icon": "loading"
|
|
231
231
|
};
|
|
232
232
|
function pn(u, e) {
|
|
233
|
-
return
|
|
233
|
+
return v(), F("span", hn, e[0] || (e[0] = [
|
|
234
234
|
C("svg", {
|
|
235
235
|
viewBox: "0 0 48 48",
|
|
236
236
|
version: "1.1",
|
|
@@ -249,7 +249,7 @@ const bn = /* @__PURE__ */ P(dn, [["render", pn]]), xn = {}, mn = {
|
|
|
249
249
|
"data-icon": "view"
|
|
250
250
|
};
|
|
251
251
|
function _n(u, e) {
|
|
252
|
-
return
|
|
252
|
+
return v(), F("span", mn, e[0] || (e[0] = [
|
|
253
253
|
C("svg", {
|
|
254
254
|
viewBox: "0 0 48 48",
|
|
255
255
|
version: "1.1",
|
|
@@ -268,7 +268,7 @@ const gn = /* @__PURE__ */ P(xn, [["render", _n]]), kn = {}, yn = {
|
|
|
268
268
|
"data-icon": "warning-circle"
|
|
269
269
|
};
|
|
270
270
|
function Cn(u, e) {
|
|
271
|
-
return
|
|
271
|
+
return v(), F("span", yn, e[0] || (e[0] = [
|
|
272
272
|
st(`<svg viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M4.52,19.05c0.23,0.08,0.46,0.12,0.68,0.12c0.82,0,1.58-0.51,1.88-1.32c0.18-0.5,0.39-1,0.62-1.48
|
|
273
273
|
c0.47-1,0.04-2.19-0.96-2.66c-1-0.47-2.19-0.04-2.66,0.96c-0.28,0.59-0.53,1.2-0.75,1.82C2.94,17.52,3.48,18.67,4.52,19.05z"></path><path d="M24,2C18.12,2,12.6,4.29,8.44,8.44c-0.78,0.78-0.78,2.05,0,2.83c0.78,0.78,2.05,0.78,2.83,0C14.67,7.87,19.19,6,24,6
|
|
274
274
|
c9.92,0,18,8.07,18,18c0,9.92-8.08,18-18,18c-9.93,0-18-8.08-18-18c0-1.1-0.9-2-2-2s-2,0.9-2,2c0,12.13,9.87,22,22,22
|
|
@@ -276,12 +276,12 @@ function Cn(u, e) {
|
|
|
276
276
|
C22.66,27.38,23.22,27.9,23.9,27.9z"></path></svg>`, 1)
|
|
277
277
|
]));
|
|
278
278
|
}
|
|
279
|
-
const
|
|
279
|
+
const vn = /* @__PURE__ */ P(kn, [["render", Cn]]), Dn = {}, wn = {
|
|
280
280
|
class: "sq-icon",
|
|
281
281
|
"data-icon": "warning-filled"
|
|
282
282
|
};
|
|
283
283
|
function En(u, e) {
|
|
284
|
-
return
|
|
284
|
+
return v(), F("span", wn, e[0] || (e[0] = [
|
|
285
285
|
C("svg", {
|
|
286
286
|
viewBox: "0 0 48 48",
|
|
287
287
|
version: "1.1",
|
|
@@ -293,7 +293,7 @@ function En(u, e) {
|
|
|
293
293
|
], -1)
|
|
294
294
|
]));
|
|
295
295
|
}
|
|
296
|
-
const An = /* @__PURE__ */ P(
|
|
296
|
+
const An = /* @__PURE__ */ P(Dn, [["render", En]]), $i = /* @__PURE__ */ I({
|
|
297
297
|
__name: "alert",
|
|
298
298
|
props: {
|
|
299
299
|
type: { default: "info" },
|
|
@@ -302,10 +302,10 @@ const An = /* @__PURE__ */ P(vn, [["render", En]]), $i = /* @__PURE__ */ I({
|
|
|
302
302
|
text: {}
|
|
303
303
|
},
|
|
304
304
|
setup(u) {
|
|
305
|
-
const e = u, t =
|
|
305
|
+
const e = u, t = E(() => {
|
|
306
306
|
const r = [];
|
|
307
307
|
return e.type && r.push(`is-${e.type}`), r;
|
|
308
|
-
}), n =
|
|
308
|
+
}), n = E(() => {
|
|
309
309
|
if (e.icon) return e.icon;
|
|
310
310
|
if (!e.showIcon) return;
|
|
311
311
|
switch (e.type) {
|
|
@@ -320,12 +320,12 @@ const An = /* @__PURE__ */ P(vn, [["render", En]]), $i = /* @__PURE__ */ I({
|
|
|
320
320
|
return Gt;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
|
-
return (r, c) => (
|
|
324
|
-
class:
|
|
323
|
+
return (r, c) => (v(), O(q(be), {
|
|
324
|
+
class: V(["sq-alert", t.value])
|
|
325
325
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
n.value ? (
|
|
328
|
-
y0(" " +
|
|
326
|
+
default: ku(() => [
|
|
327
|
+
n.value ? (v(), O(mu(n.value), { key: 0 })) : U("", !0),
|
|
328
|
+
y0(" " + _u(e.text), 1)
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["class"]));
|
|
@@ -370,10 +370,10 @@ const Bn = () => ({
|
|
|
370
370
|
*/
|
|
371
371
|
nextZIndex: () => (We++, We)
|
|
372
372
|
});
|
|
373
|
-
function
|
|
373
|
+
function G(u, e, t) {
|
|
374
374
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
G.prototype.attrIndex = function(e) {
|
|
377
377
|
if (!this.attrs)
|
|
378
378
|
return -1;
|
|
379
379
|
const t = this.attrs;
|
|
@@ -382,19 +382,19 @@ U.prototype.attrIndex = function(e) {
|
|
|
382
382
|
return n;
|
|
383
383
|
return -1;
|
|
384
384
|
};
|
|
385
|
-
|
|
385
|
+
G.prototype.attrPush = function(e) {
|
|
386
386
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
G.prototype.attrSet = function(e, t) {
|
|
389
389
|
const n = this.attrIndex(e), r = [e, t];
|
|
390
390
|
n < 0 ? this.attrPush(r) : this.attrs[n] = r;
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
G.prototype.attrGet = function(e) {
|
|
393
393
|
const t = this.attrIndex(e);
|
|
394
394
|
let n = null;
|
|
395
395
|
return t >= 0 && (n = this.attrs[t][1]), n;
|
|
396
396
|
};
|
|
397
|
-
|
|
397
|
+
G.prototype.attrJoin = function(e, t) {
|
|
398
398
|
const n = this.attrIndex(e);
|
|
399
399
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
400
400
|
};
|
|
@@ -417,7 +417,7 @@ function zn(u) {
|
|
|
417
417
|
["disabled", ""]
|
|
418
418
|
];
|
|
419
419
|
l && f.push(["checked", ""]);
|
|
420
|
-
const p = new
|
|
420
|
+
const p = new G("input", "input", 0);
|
|
421
421
|
p.attrs = f, (r = o.children) == null || r.unshift(p);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
@@ -497,8 +497,8 @@ function Tn(u) {
|
|
|
497
497
|
e[u.charCodeAt(t)] = u[t];
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
typeof e != "string" && (t = e, e =
|
|
500
|
+
function Hu(u, e, t) {
|
|
501
|
+
typeof e != "string" && (t = e, e = Hu.defaultChars), typeof t > "u" && (t = !0);
|
|
502
502
|
const n = Tn(e);
|
|
503
503
|
let r = "";
|
|
504
504
|
for (let c = 0, i = u.length; c < i; c++) {
|
|
@@ -526,8 +526,8 @@ function ju(u, e, t) {
|
|
|
526
526
|
}
|
|
527
527
|
return r;
|
|
528
528
|
}
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
Hu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
530
|
+
Hu.componentChars = "-_.!~*'()";
|
|
531
531
|
function Le(u) {
|
|
532
532
|
let e = "";
|
|
533
533
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
|
@@ -606,7 +606,7 @@ ue.prototype.parseHost = function(u) {
|
|
|
606
606
|
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
607
607
|
__proto__: null,
|
|
608
608
|
decode: Su,
|
|
609
|
-
encode:
|
|
609
|
+
encode: Hu,
|
|
610
610
|
format: Le,
|
|
611
611
|
parse: qe
|
|
612
612
|
}, Symbol.toStringTag, { value: "Module" })), w0 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, E0 = /[\0-\x1F\x7F-\x9F]/, Hn = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Re = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, A0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, F0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -671,10 +671,10 @@ var L;
|
|
|
671
671
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
672
672
|
})(L || (L = {}));
|
|
673
673
|
const Xn = 32;
|
|
674
|
-
var
|
|
674
|
+
var fu;
|
|
675
675
|
(function(u) {
|
|
676
676
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
677
|
-
})(
|
|
677
|
+
})(fu || (fu = {}));
|
|
678
678
|
function Ae(u) {
|
|
679
679
|
return u >= L.ZERO && u <= L.NINE;
|
|
680
680
|
}
|
|
@@ -691,13 +691,13 @@ var T;
|
|
|
691
691
|
(function(u) {
|
|
692
692
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
693
693
|
})(T || (T = {}));
|
|
694
|
-
var
|
|
694
|
+
var lu;
|
|
695
695
|
(function(u) {
|
|
696
696
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
697
|
-
})(
|
|
697
|
+
})(lu || (lu = {}));
|
|
698
698
|
class ur {
|
|
699
699
|
constructor(e, t, n) {
|
|
700
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = T.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
700
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = T.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = lu.Strict;
|
|
701
701
|
}
|
|
702
702
|
/** Resets the instance to make it reusable. */
|
|
703
703
|
startEntity(e) {
|
|
@@ -805,7 +805,7 @@ class ur {
|
|
|
805
805
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
806
806
|
if (e === L.SEMI)
|
|
807
807
|
this.consumed += 1;
|
|
808
|
-
else if (this.decodeMode ===
|
|
808
|
+
else if (this.decodeMode === lu.Strict)
|
|
809
809
|
return 0;
|
|
810
810
|
return this.emitCodePoint(Jn(this.result), this.consumed), this.errors && (e !== L.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
811
811
|
}
|
|
@@ -820,18 +820,18 @@ class ur {
|
|
|
820
820
|
*/
|
|
821
821
|
stateNamedEntity(e, t) {
|
|
822
822
|
const { decodeTree: n } = this;
|
|
823
|
-
let r = n[this.treeIndex], c = (r &
|
|
823
|
+
let r = n[this.treeIndex], c = (r & fu.VALUE_LENGTH) >> 14;
|
|
824
824
|
for (; t < e.length; t++, this.excess++) {
|
|
825
825
|
const i = e.charCodeAt(t);
|
|
826
826
|
if (this.treeIndex = er(n, r, this.treeIndex + Math.max(1, c), i), this.treeIndex < 0)
|
|
827
827
|
return this.result === 0 || // If we are parsing an attribute
|
|
828
|
-
this.decodeMode ===
|
|
828
|
+
this.decodeMode === lu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
829
829
|
(c === 0 || // And there should be no invalid characters.
|
|
830
830
|
Kn(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
831
|
-
if (r = n[this.treeIndex], c = (r &
|
|
831
|
+
if (r = n[this.treeIndex], c = (r & fu.VALUE_LENGTH) >> 14, c !== 0) {
|
|
832
832
|
if (i === L.SEMI)
|
|
833
833
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
|
834
|
-
this.decodeMode !==
|
|
834
|
+
this.decodeMode !== lu.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
return -1;
|
|
@@ -843,7 +843,7 @@ class ur {
|
|
|
843
843
|
*/
|
|
844
844
|
emitNotTerminatedNamedEntity() {
|
|
845
845
|
var e;
|
|
846
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
846
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & fu.VALUE_LENGTH) >> 14;
|
|
847
847
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
@@ -857,7 +857,7 @@ class ur {
|
|
|
857
857
|
*/
|
|
858
858
|
emitNamedEntityData(e, t, n) {
|
|
859
859
|
const { decodeTree: r } = this;
|
|
860
|
-
return this.emitCodePoint(t === 1 ? r[e] & ~
|
|
860
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~fu.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
|
861
861
|
}
|
|
862
862
|
/**
|
|
863
863
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -870,7 +870,7 @@ class ur {
|
|
|
870
870
|
var e;
|
|
871
871
|
switch (this.state) {
|
|
872
872
|
case T.NamedEntity:
|
|
873
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
873
|
+
return this.result !== 0 && (this.decodeMode !== lu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
874
874
|
// Otherwise, emit a numeric entity if we have one.
|
|
875
875
|
case T.NumericDecimal:
|
|
876
876
|
return this.emitNumericEntity(0, 2);
|
|
@@ -906,7 +906,7 @@ function S0(u) {
|
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
908
|
function er(u, e, t, n) {
|
|
909
|
-
const r = (e &
|
|
909
|
+
const r = (e & fu.BRANCH_LENGTH) >> 7, c = e & fu.JUMP_TABLE;
|
|
910
910
|
if (r === 0)
|
|
911
911
|
return c !== 0 && n === c ? t : -1;
|
|
912
912
|
if (c) {
|
|
@@ -927,7 +927,7 @@ function er(u, e, t, n) {
|
|
|
927
927
|
}
|
|
928
928
|
const tr = S0(Zn);
|
|
929
929
|
S0(Un);
|
|
930
|
-
function B0(u, e =
|
|
930
|
+
function B0(u, e = lu.Legacy) {
|
|
931
931
|
return tr(u, e);
|
|
932
932
|
}
|
|
933
933
|
function nr(u) {
|
|
@@ -991,7 +991,7 @@ const fr = /[&<>"]/, dr = /[&<>"]/g, hr = {
|
|
|
991
991
|
function pr(u) {
|
|
992
992
|
return hr[u];
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function du(u) {
|
|
995
995
|
return fr.test(u) ? u.replace(dr, pr) : u;
|
|
996
996
|
}
|
|
997
997
|
const br = /[.?*+^$[\]\\(){}|-]/g;
|
|
@@ -1006,7 +1006,7 @@ function z(u) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
return !1;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Pu(u) {
|
|
1010
1010
|
if (u >= 8192 && u <= 8202)
|
|
1011
1011
|
return !0;
|
|
1012
1012
|
switch (u) {
|
|
@@ -1030,10 +1030,10 @@ function Iu(u) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return !1;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Ou(u) {
|
|
1034
1034
|
return Re.test(u) || A0.test(u);
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function $u(u) {
|
|
1037
1037
|
switch (u) {
|
|
1038
1038
|
case 33:
|
|
1039
1039
|
case 34:
|
|
@@ -1079,16 +1079,16 @@ const mr = { mdurl: jn, ucmicro: Vn }, _r = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1079
1079
|
__proto__: null,
|
|
1080
1080
|
arrayReplaceAt: z0,
|
|
1081
1081
|
assign: oe,
|
|
1082
|
-
escapeHtml:
|
|
1082
|
+
escapeHtml: du,
|
|
1083
1083
|
escapeRE: xr,
|
|
1084
1084
|
fromCodePoint: ee,
|
|
1085
1085
|
has: cr,
|
|
1086
|
-
isMdAsciiPunct:
|
|
1087
|
-
isPunctChar:
|
|
1086
|
+
isMdAsciiPunct: $u,
|
|
1087
|
+
isPunctChar: Ou,
|
|
1088
1088
|
isSpace: z,
|
|
1089
1089
|
isString: Ie,
|
|
1090
1090
|
isValidEntityCode: Pe,
|
|
1091
|
-
isWhiteSpace:
|
|
1091
|
+
isWhiteSpace: Pu,
|
|
1092
1092
|
lib: mr,
|
|
1093
1093
|
normalizeReference: ie,
|
|
1094
1094
|
unescapeAll: Bu,
|
|
@@ -1190,17 +1190,17 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1190
1190
|
parseLinkDestination: kr,
|
|
1191
1191
|
parseLinkLabel: gr,
|
|
1192
1192
|
parseLinkTitle: yr
|
|
1193
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1194
|
-
|
|
1193
|
+
}, Symbol.toStringTag, { value: "Module" })), cu = {};
|
|
1194
|
+
cu.code_inline = function(u, e, t, n, r) {
|
|
1195
1195
|
const c = u[e];
|
|
1196
|
-
return "<code" + r.renderAttrs(c) + ">" +
|
|
1196
|
+
return "<code" + r.renderAttrs(c) + ">" + du(c.content) + "</code>";
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1198
|
+
cu.code_block = function(u, e, t, n, r) {
|
|
1199
1199
|
const c = u[e];
|
|
1200
|
-
return "<pre" + r.renderAttrs(c) + "><code>" +
|
|
1200
|
+
return "<pre" + r.renderAttrs(c) + "><code>" + du(u[e].content) + `</code></pre>
|
|
1201
1201
|
`;
|
|
1202
1202
|
};
|
|
1203
|
-
|
|
1203
|
+
cu.fence = function(u, e, t, n, r) {
|
|
1204
1204
|
const c = u[e], i = c.info ? Bu(c.info).trim() : "";
|
|
1205
1205
|
let o = "", s = "";
|
|
1206
1206
|
if (i) {
|
|
@@ -1208,7 +1208,7 @@ nu.fence = function(u, e, t, n, r) {
|
|
|
1208
1208
|
o = l[0], s = l.slice(2).join("");
|
|
1209
1209
|
}
|
|
1210
1210
|
let a;
|
|
1211
|
-
if (t.highlight ? a = t.highlight(c.content, o, s) ||
|
|
1211
|
+
if (t.highlight ? a = t.highlight(c.content, o, s) || du(c.content) : a = du(c.content), a.indexOf("<pre") === 0)
|
|
1212
1212
|
return a + `
|
|
1213
1213
|
`;
|
|
1214
1214
|
if (i) {
|
|
@@ -1223,39 +1223,39 @@ nu.fence = function(u, e, t, n, r) {
|
|
|
1223
1223
|
return `<pre><code${r.renderAttrs(c)}>${a}</code></pre>
|
|
1224
1224
|
`;
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1226
|
+
cu.image = function(u, e, t, n, r) {
|
|
1227
1227
|
const c = u[e];
|
|
1228
1228
|
return c.attrs[c.attrIndex("alt")][1] = r.renderInlineAsText(c.children, t, n), r.renderToken(u, e, t);
|
|
1229
1229
|
};
|
|
1230
|
-
|
|
1230
|
+
cu.hardbreak = function(u, e, t) {
|
|
1231
1231
|
return t.xhtmlOut ? `<br />
|
|
1232
1232
|
` : `<br>
|
|
1233
1233
|
`;
|
|
1234
1234
|
};
|
|
1235
|
-
|
|
1235
|
+
cu.softbreak = function(u, e, t) {
|
|
1236
1236
|
return t.breaks ? t.xhtmlOut ? `<br />
|
|
1237
1237
|
` : `<br>
|
|
1238
1238
|
` : `
|
|
1239
1239
|
`;
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1242
|
-
return
|
|
1241
|
+
cu.text = function(u, e) {
|
|
1242
|
+
return du(u[e].content);
|
|
1243
1243
|
};
|
|
1244
|
-
|
|
1244
|
+
cu.html_block = function(u, e) {
|
|
1245
1245
|
return u[e].content;
|
|
1246
1246
|
};
|
|
1247
|
-
|
|
1247
|
+
cu.html_inline = function(u, e) {
|
|
1248
1248
|
return u[e].content;
|
|
1249
1249
|
};
|
|
1250
1250
|
function Tu() {
|
|
1251
|
-
this.rules = oe({},
|
|
1251
|
+
this.rules = oe({}, cu);
|
|
1252
1252
|
}
|
|
1253
1253
|
Tu.prototype.renderAttrs = function(e) {
|
|
1254
1254
|
let t, n, r;
|
|
1255
1255
|
if (!e.attrs)
|
|
1256
1256
|
return "";
|
|
1257
1257
|
for (r = "", t = 0, n = e.attrs.length; t < n; t++)
|
|
1258
|
-
r += " " +
|
|
1258
|
+
r += " " + du(e.attrs[t][0]) + '="' + du(e.attrs[t][1]) + '"';
|
|
1259
1259
|
return r;
|
|
1260
1260
|
};
|
|
1261
1261
|
Tu.prototype.renderToken = function(e, t, n) {
|
|
@@ -1408,12 +1408,12 @@ $.prototype.getRules = function(u) {
|
|
|
1408
1408
|
function T0(u, e, t) {
|
|
1409
1409
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1410
1410
|
}
|
|
1411
|
-
T0.prototype.Token =
|
|
1412
|
-
const
|
|
1411
|
+
T0.prototype.Token = G;
|
|
1412
|
+
const vr = /\r\n?|\n/g, Dr = /\0/g;
|
|
1413
1413
|
function wr(u) {
|
|
1414
1414
|
let e;
|
|
1415
|
-
e = u.src.replace(
|
|
1416
|
-
`), e = e.replace(
|
|
1415
|
+
e = u.src.replace(vr, `
|
|
1416
|
+
`), e = e.replace(Dr, "�"), u.src = e;
|
|
1417
1417
|
}
|
|
1418
1418
|
function Er(u) {
|
|
1419
1419
|
let e;
|
|
@@ -1548,7 +1548,7 @@ function Or(u, e) {
|
|
|
1548
1548
|
b = u[t].content.charCodeAt(0);
|
|
1549
1549
|
break;
|
|
1550
1550
|
}
|
|
1551
|
-
const g =
|
|
1551
|
+
const g = $u(d) || Ou(String.fromCharCode(d)), y = $u(b) || Ou(String.fromCharCode(b)), x = Pu(d), m = Pu(b);
|
|
1552
1552
|
if (m ? f = !1 : y && (x || g || (f = !1)), x ? p = !1 : g && (m || y || (p = !1)), b === 34 && l[0] === '"' && d >= 48 && d <= 57 && (p = f = !1), f && p && (f = g, p = y), !f && !p) {
|
|
1553
1553
|
h && (c.content = Wu(c.content, l.index, t0));
|
|
1554
1554
|
continue;
|
|
@@ -1618,7 +1618,7 @@ Oe.prototype.process = function(u) {
|
|
|
1618
1618
|
e[t](u);
|
|
1619
1619
|
};
|
|
1620
1620
|
Oe.prototype.State = T0;
|
|
1621
|
-
function
|
|
1621
|
+
function ou(u, e, t, n) {
|
|
1622
1622
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
1623
1623
|
const r = this.src;
|
|
1624
1624
|
for (let c = 0, i = 0, o = 0, s = 0, a = r.length, l = !1; i < a; i++) {
|
|
@@ -1633,19 +1633,19 @@ function ru(u, e, t, n) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1635
1635
|
}
|
|
1636
|
-
|
|
1637
|
-
const n = new
|
|
1636
|
+
ou.prototype.push = function(u, e, t) {
|
|
1637
|
+
const n = new G(u, e, t);
|
|
1638
1638
|
return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
|
|
1639
1639
|
};
|
|
1640
|
-
|
|
1640
|
+
ou.prototype.isEmpty = function(e) {
|
|
1641
1641
|
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
|
|
1642
1642
|
};
|
|
1643
|
-
|
|
1643
|
+
ou.prototype.skipEmptyLines = function(e) {
|
|
1644
1644
|
for (let t = this.lineMax; e < t && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++)
|
|
1645
1645
|
;
|
|
1646
1646
|
return e;
|
|
1647
1647
|
};
|
|
1648
|
-
|
|
1648
|
+
ou.prototype.skipSpaces = function(e) {
|
|
1649
1649
|
for (let t = this.src.length; e < t; e++) {
|
|
1650
1650
|
const n = this.src.charCodeAt(e);
|
|
1651
1651
|
if (!z(n))
|
|
@@ -1653,7 +1653,7 @@ ru.prototype.skipSpaces = function(e) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
return e;
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
ou.prototype.skipSpacesBack = function(e, t) {
|
|
1657
1657
|
if (e <= t)
|
|
1658
1658
|
return e;
|
|
1659
1659
|
for (; e > t; )
|
|
@@ -1661,12 +1661,12 @@ ru.prototype.skipSpacesBack = function(e, t) {
|
|
|
1661
1661
|
return e + 1;
|
|
1662
1662
|
return e;
|
|
1663
1663
|
};
|
|
1664
|
-
|
|
1664
|
+
ou.prototype.skipChars = function(e, t) {
|
|
1665
1665
|
for (let n = this.src.length; e < n && this.src.charCodeAt(e) === t; e++)
|
|
1666
1666
|
;
|
|
1667
1667
|
return e;
|
|
1668
1668
|
};
|
|
1669
|
-
|
|
1669
|
+
ou.prototype.skipCharsBack = function(e, t, n) {
|
|
1670
1670
|
if (e <= n)
|
|
1671
1671
|
return e;
|
|
1672
1672
|
for (; e > n; )
|
|
@@ -1674,7 +1674,7 @@ ru.prototype.skipCharsBack = function(e, t, n) {
|
|
|
1674
1674
|
return e + 1;
|
|
1675
1675
|
return e;
|
|
1676
1676
|
};
|
|
1677
|
-
|
|
1677
|
+
ou.prototype.getLines = function(e, t, n, r) {
|
|
1678
1678
|
if (e >= t)
|
|
1679
1679
|
return "";
|
|
1680
1680
|
const c = new Array(t - e);
|
|
@@ -1696,7 +1696,7 @@ ru.prototype.getLines = function(e, t, n, r) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
return c.join("");
|
|
1698
1698
|
};
|
|
1699
|
-
|
|
1699
|
+
ou.prototype.Token = G;
|
|
1700
1700
|
const jr = 65536;
|
|
1701
1701
|
function ge(u, e) {
|
|
1702
1702
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
@@ -1769,7 +1769,7 @@ function Hr(u, e, t, n) {
|
|
|
1769
1769
|
let x, m = 0;
|
|
1770
1770
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1771
1771
|
let _ = !1;
|
|
1772
|
-
for (let w = 0,
|
|
1772
|
+
for (let w = 0, D = h.length; w < D; w++)
|
|
1773
1773
|
if (h[w](u, r, t, !0)) {
|
|
1774
1774
|
_ = !0;
|
|
1775
1775
|
break;
|
|
@@ -1783,10 +1783,10 @@ function Hr(u, e, t, n) {
|
|
|
1783
1783
|
const k = u.push("tr_open", "tr", 1);
|
|
1784
1784
|
k.map = [r, r + 1];
|
|
1785
1785
|
for (let w = 0; w < f; w++) {
|
|
1786
|
-
const
|
|
1787
|
-
l[w] && (
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1786
|
+
const D = u.push("td_open", "td", 1);
|
|
1787
|
+
l[w] && (D.attrs = [["style", "text-align:" + l[w]]]);
|
|
1788
|
+
const S = u.push("inline", "", 0);
|
|
1789
|
+
S.content = a[w] ? a[w].trim() : "", S.children = [], u.push("td_close", "td", -1);
|
|
1790
1790
|
}
|
|
1791
1791
|
u.push("tr_close", "tr", -1);
|
|
1792
1792
|
}
|
|
@@ -1854,18 +1854,18 @@ function Ur(u, e, t, n) {
|
|
|
1854
1854
|
if (r = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], r >= c)
|
|
1855
1855
|
break;
|
|
1856
1856
|
if (u.src.charCodeAt(r++) === 62 && !m) {
|
|
1857
|
-
let k = u.sCount[d] + 1, w,
|
|
1858
|
-
u.src.charCodeAt(r) === 32 ? (r++, k++,
|
|
1859
|
-
let
|
|
1857
|
+
let k = u.sCount[d] + 1, w, D;
|
|
1858
|
+
u.src.charCodeAt(r) === 32 ? (r++, k++, D = !1, w = !0) : u.src.charCodeAt(r) === 9 ? (w = !0, (u.bsCount[d] + k) % 4 === 3 ? (r++, k++, D = !1) : D = !0) : w = !1;
|
|
1859
|
+
let S = k;
|
|
1860
1860
|
for (o.push(u.bMarks[d]), u.bMarks[d] = r; r < c; ) {
|
|
1861
|
-
const
|
|
1862
|
-
if (z(
|
|
1863
|
-
|
|
1861
|
+
const M = u.src.charCodeAt(r);
|
|
1862
|
+
if (z(M))
|
|
1863
|
+
M === 9 ? S += 4 - (S + u.bsCount[d] + (D ? 1 : 0)) % 4 : S++;
|
|
1864
1864
|
else
|
|
1865
1865
|
break;
|
|
1866
1866
|
r++;
|
|
1867
1867
|
}
|
|
1868
|
-
h = r >= c, s.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (w ? 1 : 0), a.push(u.sCount[d]), u.sCount[d] =
|
|
1868
|
+
h = r >= c, s.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (w ? 1 : 0), a.push(u.sCount[d]), u.sCount[d] = S - k, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
1869
1869
|
continue;
|
|
1870
1870
|
}
|
|
1871
1871
|
if (h)
|
|
@@ -1985,32 +1985,32 @@ function Jr(u, e, t, n) {
|
|
|
1985
1985
|
const _ = u.sCount[s] + h - (u.bMarks[s] + u.tShift[s]);
|
|
1986
1986
|
let k = _;
|
|
1987
1987
|
for (; c < r; ) {
|
|
1988
|
-
const
|
|
1989
|
-
if (
|
|
1988
|
+
const uu = u.src.charCodeAt(c);
|
|
1989
|
+
if (uu === 9)
|
|
1990
1990
|
k += 4 - (k + u.bsCount[s]) % 4;
|
|
1991
|
-
else if (
|
|
1991
|
+
else if (uu === 32)
|
|
1992
1992
|
k++;
|
|
1993
1993
|
else
|
|
1994
1994
|
break;
|
|
1995
1995
|
c++;
|
|
1996
1996
|
}
|
|
1997
1997
|
const w = c;
|
|
1998
|
-
let
|
|
1999
|
-
w >= r ?
|
|
2000
|
-
const
|
|
1998
|
+
let D;
|
|
1999
|
+
w >= r ? D = 1 : D = k - _, D > 4 && (D = 1);
|
|
2000
|
+
const S = _ + D;
|
|
2001
2001
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
2002
|
-
const
|
|
2003
|
-
o.map =
|
|
2004
|
-
const
|
|
2005
|
-
if (u.listIndent = u.blkIndent, u.blkIndent =
|
|
2002
|
+
const M = [s, 0];
|
|
2003
|
+
o.map = M, f && (o.info = u.src.slice(i, h - 1));
|
|
2004
|
+
const B = u.tight, A = u.tShift[s], N = u.sCount[s], Y = u.listIndent;
|
|
2005
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = S, u.tight = !0, u.tShift[s] = w - u.bMarks[s], u.sCount[s] = k, w >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || y) && (a = !1), y = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = Y, u.tShift[s] = A, u.sCount[s] = N, u.tight = B, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), s = u.line, M[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
|
|
2006
2006
|
break;
|
|
2007
|
-
let
|
|
2008
|
-
for (let
|
|
2009
|
-
if (x[
|
|
2010
|
-
|
|
2007
|
+
let K = !1;
|
|
2008
|
+
for (let uu = 0, pu = x.length; uu < pu; uu++)
|
|
2009
|
+
if (x[uu](u, s, t, !0)) {
|
|
2010
|
+
K = !0;
|
|
2011
2011
|
break;
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2013
|
+
if (K)
|
|
2014
2014
|
break;
|
|
2015
2015
|
if (f) {
|
|
2016
2016
|
if (h = c0(u, s), h < 0)
|
|
@@ -2033,15 +2033,15 @@ function Xr(u, e, t, n) {
|
|
|
2033
2033
|
return null;
|
|
2034
2034
|
let _ = !1;
|
|
2035
2035
|
if (u.sCount[x] - u.blkIndent > 3 && (_ = !0), u.sCount[x] < 0 && (_ = !0), !_) {
|
|
2036
|
-
const
|
|
2036
|
+
const D = u.md.block.ruler.getRules("reference"), S = u.parentType;
|
|
2037
2037
|
u.parentType = "reference";
|
|
2038
|
-
let
|
|
2039
|
-
for (let
|
|
2040
|
-
if (
|
|
2041
|
-
|
|
2038
|
+
let M = !1;
|
|
2039
|
+
for (let B = 0, A = D.length; B < A; B++)
|
|
2040
|
+
if (D[B](u, x, m, !0)) {
|
|
2041
|
+
M = !0;
|
|
2042
2042
|
break;
|
|
2043
2043
|
}
|
|
2044
|
-
if (u.parentType =
|
|
2044
|
+
if (u.parentType = S, M)
|
|
2045
2045
|
return null;
|
|
2046
2046
|
}
|
|
2047
2047
|
const k = u.bMarks[x] + u.tShift[x], w = u.eMarks[x];
|
|
@@ -2177,7 +2177,7 @@ const Qr = [
|
|
|
2177
2177
|
"tr",
|
|
2178
2178
|
"track",
|
|
2179
2179
|
"ul"
|
|
2180
|
-
], Yr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Kr = "[^\"'=<>`\\x00-\\x20]+", uc = "'[^']*'", ec = '"[^"]*"', tc = "(?:" + Kr + "|" + uc + "|" + ec + ")", nc = "(?:\\s+" + Yr + "(?:\\s*=\\s*" + tc + ")?)", q0 = "<[A-Za-z][A-Za-z0-9\\-]*" + nc + "*\\s*\\/?>", R0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", rc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", cc = "<[?][\\s\\S]*?[?]>", oc = "<![A-Za-z][^>]*>", ic = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", sc = new RegExp("^(?:" + q0 + "|" + R0 + "|" + rc + "|" + cc + "|" + oc + "|" + ic + ")"), ac = new RegExp("^(?:" + q0 + "|" + R0 + ")"),
|
|
2180
|
+
], Yr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Kr = "[^\"'=<>`\\x00-\\x20]+", uc = "'[^']*'", ec = '"[^"]*"', tc = "(?:" + Kr + "|" + uc + "|" + ec + ")", nc = "(?:\\s+" + Yr + "(?:\\s*=\\s*" + tc + ")?)", q0 = "<[A-Za-z][A-Za-z0-9\\-]*" + nc + "*\\s*\\/?>", R0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", rc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", cc = "<[?][\\s\\S]*?[?]>", oc = "<![A-Za-z][^>]*>", ic = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", sc = new RegExp("^(?:" + q0 + "|" + R0 + "|" + rc + "|" + cc + "|" + oc + "|" + ic + ")"), ac = new RegExp("^(?:" + q0 + "|" + R0 + ")"), vu = [
|
|
2181
2181
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2182
2182
|
[/^<!--/, /-->/, !0],
|
|
2183
2183
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2191,16 +2191,16 @@ function lc(u, e, t, n) {
|
|
|
2191
2191
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2192
2192
|
return !1;
|
|
2193
2193
|
let i = u.src.slice(r, c), o = 0;
|
|
2194
|
-
for (; o <
|
|
2194
|
+
for (; o < vu.length && !vu[o][0].test(i); o++)
|
|
2195
2195
|
;
|
|
2196
|
-
if (o ===
|
|
2196
|
+
if (o === vu.length)
|
|
2197
2197
|
return !1;
|
|
2198
2198
|
if (n)
|
|
2199
|
-
return
|
|
2199
|
+
return vu[o][2];
|
|
2200
2200
|
let s = e + 1;
|
|
2201
|
-
if (!
|
|
2201
|
+
if (!vu[o][1].test(i)) {
|
|
2202
2202
|
for (; s < t && !(u.sCount[s] < u.blkIndent); s++)
|
|
2203
|
-
if (r = u.bMarks[s] + u.tShift[s], c = u.eMarks[s], i = u.src.slice(r, c),
|
|
2203
|
+
if (r = u.bMarks[s] + u.tShift[s], c = u.eMarks[s], i = u.src.slice(r, c), vu[o][1].test(i)) {
|
|
2204
2204
|
i.length !== 0 && s++;
|
|
2205
2205
|
break;
|
|
2206
2206
|
}
|
|
@@ -2341,29 +2341,29 @@ se.prototype.parse = function(u, e, t, n) {
|
|
|
2341
2341
|
const r = new this.State(u, e, t, n);
|
|
2342
2342
|
this.tokenize(r, r.line, r.lineMax);
|
|
2343
2343
|
};
|
|
2344
|
-
se.prototype.State =
|
|
2345
|
-
function
|
|
2344
|
+
se.prototype.State = ou;
|
|
2345
|
+
function Vu(u, e, t, n) {
|
|
2346
2346
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2347
2347
|
}
|
|
2348
|
-
|
|
2349
|
-
const u = new
|
|
2348
|
+
Vu.prototype.pushPending = function() {
|
|
2349
|
+
const u = new G("text", "", 0);
|
|
2350
2350
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2351
2351
|
};
|
|
2352
|
-
|
|
2352
|
+
Vu.prototype.push = function(u, e, t) {
|
|
2353
2353
|
this.pending && this.pushPending();
|
|
2354
|
-
const n = new
|
|
2354
|
+
const n = new G(u, e, t);
|
|
2355
2355
|
let r = null;
|
|
2356
2356
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2357
2357
|
};
|
|
2358
|
-
|
|
2358
|
+
Vu.prototype.scanDelims = function(u, e) {
|
|
2359
2359
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2360
2360
|
let c = u;
|
|
2361
2361
|
for (; c < t && this.src.charCodeAt(c) === n; )
|
|
2362
2362
|
c++;
|
|
2363
|
-
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, s =
|
|
2363
|
+
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, s = $u(r) || Ou(String.fromCharCode(r)), a = $u(o) || Ou(String.fromCharCode(o)), l = Pu(r), f = Pu(o), p = !f && (!a || l || s), h = !l && (!s || f || a);
|
|
2364
2364
|
return { can_open: p && (e || !h || s), can_close: h && (e || !p || a), length: i };
|
|
2365
2365
|
};
|
|
2366
|
-
|
|
2366
|
+
Vu.prototype.Token = G;
|
|
2367
2367
|
function pc(u) {
|
|
2368
2368
|
switch (u) {
|
|
2369
2369
|
case 10:
|
|
@@ -2551,7 +2551,7 @@ const I0 = {
|
|
|
2551
2551
|
tokenize: yc,
|
|
2552
2552
|
postProcess: Cc
|
|
2553
2553
|
};
|
|
2554
|
-
function
|
|
2554
|
+
function vc(u, e) {
|
|
2555
2555
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2556
2556
|
if (e || n !== 95 && n !== 42)
|
|
2557
2557
|
return !1;
|
|
@@ -2595,15 +2595,15 @@ function i0(u, e) {
|
|
|
2595
2595
|
a.type = i ? "strong_close" : "em_close", a.tag = i ? "strong" : "em", a.nesting = -1, a.markup = i ? o + o : o, a.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Dc(u) {
|
|
2599
2599
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2600
2600
|
i0(u, u.delimiters);
|
|
2601
2601
|
for (let n = 0; n < t; n++)
|
|
2602
2602
|
e[n] && e[n].delimiters && i0(u, e[n].delimiters);
|
|
2603
2603
|
}
|
|
2604
2604
|
const P0 = {
|
|
2605
|
-
tokenize:
|
|
2606
|
-
postProcess:
|
|
2605
|
+
tokenize: vc,
|
|
2606
|
+
postProcess: Dc
|
|
2607
2607
|
};
|
|
2608
2608
|
function wc(u, e) {
|
|
2609
2609
|
let t, n, r, c, i = "", o = "", s = u.pos, a = !0;
|
|
@@ -2843,7 +2843,7 @@ const ke = [
|
|
|
2843
2843
|
// rule below merges unused segments back with the rest of the text
|
|
2844
2844
|
["fragments_join", Pc]
|
|
2845
2845
|
];
|
|
2846
|
-
function
|
|
2846
|
+
function Zu() {
|
|
2847
2847
|
this.ruler = new $();
|
|
2848
2848
|
for (let u = 0; u < ke.length; u++)
|
|
2849
2849
|
this.ruler.push(ke[u][0], ke[u][1]);
|
|
@@ -2851,7 +2851,7 @@ function Vu() {
|
|
|
2851
2851
|
for (let u = 0; u < ye.length; u++)
|
|
2852
2852
|
this.ruler2.push(ye[u][0], ye[u][1]);
|
|
2853
2853
|
}
|
|
2854
|
-
|
|
2854
|
+
Zu.prototype.skipToken = function(u) {
|
|
2855
2855
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, c = u.cache;
|
|
2856
2856
|
if (typeof c[e] < "u") {
|
|
2857
2857
|
u.pos = c[e];
|
|
@@ -2869,7 +2869,7 @@ Vu.prototype.skipToken = function(u) {
|
|
|
2869
2869
|
u.pos = u.posMax;
|
|
2870
2870
|
i || u.pos++, c[e] = u.pos;
|
|
2871
2871
|
};
|
|
2872
|
-
|
|
2872
|
+
Zu.prototype.tokenize = function(u) {
|
|
2873
2873
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
2874
2874
|
for (; u.pos < n; ) {
|
|
2875
2875
|
const c = u.pos;
|
|
@@ -2891,14 +2891,14 @@ Vu.prototype.tokenize = function(u) {
|
|
|
2891
2891
|
}
|
|
2892
2892
|
u.pending && u.pushPending();
|
|
2893
2893
|
};
|
|
2894
|
-
|
|
2894
|
+
Zu.prototype.parse = function(u, e, t, n) {
|
|
2895
2895
|
const r = new this.State(u, e, t, n);
|
|
2896
2896
|
this.tokenize(r);
|
|
2897
2897
|
const c = this.ruler2.getRules(""), i = c.length;
|
|
2898
2898
|
for (let o = 0; o < i; o++)
|
|
2899
2899
|
c[o](r);
|
|
2900
2900
|
};
|
|
2901
|
-
|
|
2901
|
+
Zu.prototype.State = Vu;
|
|
2902
2902
|
function Oc(u) {
|
|
2903
2903
|
const e = {};
|
|
2904
2904
|
u = u || {}, e.src_Any = w0.source, e.src_Cc = E0.source, e.src_Z = F0.source, e.src_P = Re.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
@@ -3038,18 +3038,18 @@ function Se(u, e) {
|
|
|
3038
3038
|
const t = new Xc(u, e);
|
|
3039
3039
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3042
|
-
if (!(this instanceof
|
|
3043
|
-
return new
|
|
3041
|
+
function Z(u, e) {
|
|
3042
|
+
if (!(this instanceof Z))
|
|
3043
|
+
return new Z(u, e);
|
|
3044
3044
|
e || Vc(u) && (e = u, u = {}), this.__opts__ = Fe({}, O0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Fe({}, Zc, u), this.__compiled__ = {}, this.__tlds__ = Wc, this.__tlds_replaced__ = !1, this.re = {}, te(this);
|
|
3045
3045
|
}
|
|
3046
|
-
|
|
3046
|
+
Z.prototype.add = function(e, t) {
|
|
3047
3047
|
return this.__schemas__[e] = t, te(this), this;
|
|
3048
3048
|
};
|
|
3049
|
-
|
|
3049
|
+
Z.prototype.set = function(e) {
|
|
3050
3050
|
return this.__opts__ = Fe(this.__opts__, e), this;
|
|
3051
3051
|
};
|
|
3052
|
-
|
|
3052
|
+
Z.prototype.test = function(e) {
|
|
3053
3053
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3054
3054
|
return !1;
|
|
3055
3055
|
let t, n, r, c, i, o, s, a, l;
|
|
@@ -3062,13 +3062,13 @@ V.prototype.test = function(e) {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (a = e.search(this.re.host_fuzzy_test), a >= 0 && (this.__index__ < 0 || a < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, o = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && o > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = o))), this.__index__ >= 0;
|
|
3064
3064
|
};
|
|
3065
|
-
|
|
3065
|
+
Z.prototype.pretest = function(e) {
|
|
3066
3066
|
return this.re.pretest.test(e);
|
|
3067
3067
|
};
|
|
3068
|
-
|
|
3068
|
+
Z.prototype.testSchemaAt = function(e, t, n) {
|
|
3069
3069
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
|
3070
3070
|
};
|
|
3071
|
-
|
|
3071
|
+
Z.prototype.match = function(e) {
|
|
3072
3072
|
const t = [];
|
|
3073
3073
|
let n = 0;
|
|
3074
3074
|
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Se(this, n)), n = this.__last_index__);
|
|
@@ -3077,29 +3077,29 @@ V.prototype.match = function(e) {
|
|
|
3077
3077
|
t.push(Se(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3078
3078
|
return t.length ? t : null;
|
|
3079
3079
|
};
|
|
3080
|
-
|
|
3080
|
+
Z.prototype.matchAtStart = function(e) {
|
|
3081
3081
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
|
|
3082
3082
|
const t = this.re.schema_at_start.exec(e);
|
|
3083
3083
|
if (!t) return null;
|
|
3084
3084
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3085
3085
|
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Se(this, 0)) : null;
|
|
3086
3086
|
};
|
|
3087
|
-
|
|
3087
|
+
Z.prototype.tlds = function(e, t) {
|
|
3088
3088
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
|
3089
3089
|
return n !== c[r - 1];
|
|
3090
3090
|
}).reverse(), te(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, te(this), this);
|
|
3091
3091
|
};
|
|
3092
|
-
|
|
3092
|
+
Z.prototype.normalize = function(e) {
|
|
3093
3093
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3094
3094
|
};
|
|
3095
|
-
|
|
3095
|
+
Z.prototype.onCompile = function() {
|
|
3096
3096
|
};
|
|
3097
|
-
const wu = 2147483647,
|
|
3097
|
+
const wu = 2147483647, eu = 36, Ne = 1, Nu = 26, Qc = 38, Yc = 700, $0 = 72, N0 = 128, j0 = "-", Kc = /^xn--/, uo = /[^\0-\x7F]/, eo = /[\x2E\u3002\uFF0E\uFF61]/g, to = {
|
|
3098
3098
|
overflow: "Overflow: input needs wider integers to process",
|
|
3099
3099
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3100
3100
|
"invalid-input": "Invalid input"
|
|
3101
|
-
}, Ce =
|
|
3102
|
-
function
|
|
3101
|
+
}, Ce = eu - Ne, tu = Math.floor, ve = String.fromCharCode;
|
|
3102
|
+
function au(u) {
|
|
3103
3103
|
throw new RangeError(to[u]);
|
|
3104
3104
|
}
|
|
3105
3105
|
function no(u, e) {
|
|
@@ -3131,34 +3131,34 @@ function V0(u) {
|
|
|
3131
3131
|
return e;
|
|
3132
3132
|
}
|
|
3133
3133
|
const ro = (u) => String.fromCodePoint(...u), co = function(u) {
|
|
3134
|
-
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 :
|
|
3134
|
+
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : eu;
|
|
3135
3135
|
}, f0 = function(u, e) {
|
|
3136
3136
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3137
3137
|
}, Z0 = function(u, e, t) {
|
|
3138
3138
|
let n = 0;
|
|
3139
|
-
for (u = t ?
|
|
3140
|
-
u =
|
|
3141
|
-
return
|
|
3139
|
+
for (u = t ? tu(u / Yc) : u >> 1, u += tu(u / e); u > Ce * Nu >> 1; n += eu)
|
|
3140
|
+
u = tu(u / Ce);
|
|
3141
|
+
return tu(n + (Ce + 1) * u / (u + Qc));
|
|
3142
3142
|
}, U0 = function(u) {
|
|
3143
3143
|
const e = [], t = u.length;
|
|
3144
3144
|
let n = 0, r = N0, c = $0, i = u.lastIndexOf(j0);
|
|
3145
3145
|
i < 0 && (i = 0);
|
|
3146
3146
|
for (let o = 0; o < i; ++o)
|
|
3147
|
-
u.charCodeAt(o) >= 128 &&
|
|
3147
|
+
u.charCodeAt(o) >= 128 && au("not-basic"), e.push(u.charCodeAt(o));
|
|
3148
3148
|
for (let o = i > 0 ? i + 1 : 0; o < t; ) {
|
|
3149
3149
|
const s = n;
|
|
3150
|
-
for (let l = 1, f =
|
|
3151
|
-
o >= t &&
|
|
3150
|
+
for (let l = 1, f = eu; ; f += eu) {
|
|
3151
|
+
o >= t && au("invalid-input");
|
|
3152
3152
|
const p = co(u.charCodeAt(o++));
|
|
3153
|
-
p >=
|
|
3154
|
-
const h = f <= c ? Ne : f >= c +
|
|
3153
|
+
p >= eu && au("invalid-input"), p > tu((wu - n) / l) && au("overflow"), n += p * l;
|
|
3154
|
+
const h = f <= c ? Ne : f >= c + Nu ? Nu : f - c;
|
|
3155
3155
|
if (p < h)
|
|
3156
3156
|
break;
|
|
3157
|
-
const d =
|
|
3158
|
-
l >
|
|
3157
|
+
const d = eu - h;
|
|
3158
|
+
l > tu(wu / d) && au("overflow"), l *= d;
|
|
3159
3159
|
}
|
|
3160
3160
|
const a = e.length + 1;
|
|
3161
|
-
c = Z0(n - s, a, s == 0),
|
|
3161
|
+
c = Z0(n - s, a, s == 0), tu(n / a) > wu - r && au("overflow"), r += tu(n / a), n %= a, e.splice(n++, 0, r);
|
|
3162
3162
|
}
|
|
3163
3163
|
return String.fromCodePoint(...e);
|
|
3164
3164
|
}, W0 = function(u) {
|
|
@@ -3167,7 +3167,7 @@ const ro = (u) => String.fromCodePoint(...u), co = function(u) {
|
|
|
3167
3167
|
const t = u.length;
|
|
3168
3168
|
let n = N0, r = 0, c = $0;
|
|
3169
3169
|
for (const s of u)
|
|
3170
|
-
s < 128 && e.push(
|
|
3170
|
+
s < 128 && e.push(ve(s));
|
|
3171
3171
|
const i = e.length;
|
|
3172
3172
|
let o = i;
|
|
3173
3173
|
for (i && e.push(j0); o < t; ) {
|
|
@@ -3175,20 +3175,20 @@ const ro = (u) => String.fromCodePoint(...u), co = function(u) {
|
|
|
3175
3175
|
for (const l of u)
|
|
3176
3176
|
l >= n && l < s && (s = l);
|
|
3177
3177
|
const a = o + 1;
|
|
3178
|
-
s - n >
|
|
3178
|
+
s - n > tu((wu - r) / a) && au("overflow"), r += (s - n) * a, n = s;
|
|
3179
3179
|
for (const l of u)
|
|
3180
|
-
if (l < n && ++r > wu &&
|
|
3180
|
+
if (l < n && ++r > wu && au("overflow"), l === n) {
|
|
3181
3181
|
let f = r;
|
|
3182
|
-
for (let p =
|
|
3183
|
-
const h = p <= c ? Ne : p >= c +
|
|
3182
|
+
for (let p = eu; ; p += eu) {
|
|
3183
|
+
const h = p <= c ? Ne : p >= c + Nu ? Nu : p - c;
|
|
3184
3184
|
if (f < h)
|
|
3185
3185
|
break;
|
|
3186
|
-
const d = f - h, b =
|
|
3186
|
+
const d = f - h, b = eu - h;
|
|
3187
3187
|
e.push(
|
|
3188
|
-
|
|
3189
|
-
), f =
|
|
3188
|
+
ve(f0(h + d % b, 0))
|
|
3189
|
+
), f = tu(d / b);
|
|
3190
3190
|
}
|
|
3191
|
-
e.push(
|
|
3191
|
+
e.push(ve(f0(f, 0))), c = Z0(r, a, o === i), r = 0, ++o;
|
|
3192
3192
|
}
|
|
3193
3193
|
++r, ++n;
|
|
3194
3194
|
}
|
|
@@ -3405,7 +3405,7 @@ function xo(u) {
|
|
|
3405
3405
|
e.hostname = G0.toASCII(e.hostname);
|
|
3406
3406
|
} catch {
|
|
3407
3407
|
}
|
|
3408
|
-
return
|
|
3408
|
+
return Hu(Le(e));
|
|
3409
3409
|
}
|
|
3410
3410
|
function mo(u) {
|
|
3411
3411
|
const e = qe(u, !0);
|
|
@@ -3416,15 +3416,15 @@ function mo(u) {
|
|
|
3416
3416
|
}
|
|
3417
3417
|
return Su(Le(e), Su.defaultChars + "%");
|
|
3418
3418
|
}
|
|
3419
|
-
function
|
|
3420
|
-
if (!(this instanceof
|
|
3421
|
-
return new
|
|
3422
|
-
e || Ie(u) || (e = u || {}, u = "default"), this.inline = new
|
|
3419
|
+
function W(u, e) {
|
|
3420
|
+
if (!(this instanceof W))
|
|
3421
|
+
return new W(u, e);
|
|
3422
|
+
e || Ie(u) || (e = u || {}, u = "default"), this.inline = new Zu(), this.block = new se(), this.core = new Oe(), this.renderer = new Tu(), this.linkify = new Z(), this.validateLink = bo, this.normalizeLink = xo, this.normalizeLinkText = mo, this.utils = _r, this.helpers = oe({}, Cr), this.options = {}, this.configure(u), e && this.set(e);
|
|
3423
3423
|
}
|
|
3424
|
-
|
|
3424
|
+
W.prototype.set = function(u) {
|
|
3425
3425
|
return oe(this.options, u), this;
|
|
3426
3426
|
};
|
|
3427
|
-
|
|
3427
|
+
W.prototype.configure = function(u) {
|
|
3428
3428
|
const e = this;
|
|
3429
3429
|
if (Ie(u)) {
|
|
3430
3430
|
const t = u;
|
|
@@ -3437,7 +3437,7 @@ Z.prototype.configure = function(u) {
|
|
|
3437
3437
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3438
3438
|
}), this;
|
|
3439
3439
|
};
|
|
3440
|
-
|
|
3440
|
+
W.prototype.enable = function(u, e) {
|
|
3441
3441
|
let t = [];
|
|
3442
3442
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3443
3443
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3449,7 +3449,7 @@ Z.prototype.enable = function(u, e) {
|
|
|
3449
3449
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3450
3450
|
return this;
|
|
3451
3451
|
};
|
|
3452
|
-
|
|
3452
|
+
W.prototype.disable = function(u, e) {
|
|
3453
3453
|
let t = [];
|
|
3454
3454
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3455
3455
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3461,29 +3461,29 @@ Z.prototype.disable = function(u, e) {
|
|
|
3461
3461
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3462
3462
|
return this;
|
|
3463
3463
|
};
|
|
3464
|
-
|
|
3464
|
+
W.prototype.use = function(u) {
|
|
3465
3465
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3466
3466
|
return u.apply(u, e), this;
|
|
3467
3467
|
};
|
|
3468
|
-
|
|
3468
|
+
W.prototype.parse = function(u, e) {
|
|
3469
3469
|
if (typeof u != "string")
|
|
3470
3470
|
throw new Error("Input data should be a String");
|
|
3471
3471
|
const t = new this.core.State(u, this, e);
|
|
3472
3472
|
return this.core.process(t), t.tokens;
|
|
3473
3473
|
};
|
|
3474
|
-
|
|
3474
|
+
W.prototype.render = function(u, e) {
|
|
3475
3475
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3476
3476
|
};
|
|
3477
|
-
|
|
3477
|
+
W.prototype.parseInline = function(u, e) {
|
|
3478
3478
|
const t = new this.core.State(u, this, e);
|
|
3479
3479
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
3480
3480
|
};
|
|
3481
|
-
|
|
3481
|
+
W.prototype.renderInline = function(u, e) {
|
|
3482
3482
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3483
3483
|
};
|
|
3484
3484
|
function _o() {
|
|
3485
3485
|
function u(r, c) {
|
|
3486
|
-
const i = new
|
|
3486
|
+
const i = new W({
|
|
3487
3487
|
html: !0,
|
|
3488
3488
|
typographer: !0
|
|
3489
3489
|
});
|
|
@@ -3501,7 +3501,7 @@ function _o() {
|
|
|
3501
3501
|
const c = [], i = { children: [] };
|
|
3502
3502
|
let o = i;
|
|
3503
3503
|
return r.forEach((s) => {
|
|
3504
|
-
var b, g, y, x, m, _, k, w,
|
|
3504
|
+
var b, g, y, x, m, _, k, w, D, S, M;
|
|
3505
3505
|
const { type: a, children: l, content: f, attrs: p, tag: h, hidden: d } = s;
|
|
3506
3506
|
switch (a) {
|
|
3507
3507
|
case "heading_open":
|
|
@@ -3521,24 +3521,24 @@ function _o() {
|
|
|
3521
3521
|
case "s_open":
|
|
3522
3522
|
case "link_open": {
|
|
3523
3523
|
if (d) break;
|
|
3524
|
-
const
|
|
3524
|
+
const B = {
|
|
3525
3525
|
tag: h,
|
|
3526
3526
|
children: [],
|
|
3527
3527
|
attrs: p ? Object.fromEntries(p) : {}
|
|
3528
3528
|
};
|
|
3529
3529
|
if (a === "link_open") {
|
|
3530
|
-
const
|
|
3531
|
-
|
|
3530
|
+
const A = s.attrGet("href") ?? "", N = document.location.origin;
|
|
3531
|
+
A != null && A.startsWith("http") && !A.includes(N) && (B.attrs.target = "_blank", B.attrs.rel = "noopener noreferrer", B.attrs.dataOuter = "", (b = B.children) == null || b.push({ tag: fn }));
|
|
3532
3532
|
}
|
|
3533
3533
|
if (a === "table_open") {
|
|
3534
|
-
const
|
|
3534
|
+
const A = {
|
|
3535
3535
|
tag: "div",
|
|
3536
3536
|
children: [],
|
|
3537
3537
|
attrs: { class: "sq-article-table" }
|
|
3538
3538
|
};
|
|
3539
|
-
(g = o.children) == null || g.push(
|
|
3539
|
+
(g = o.children) == null || g.push(A), c.push(o), o = A;
|
|
3540
3540
|
}
|
|
3541
|
-
(y = o.children) == null || y.push(
|
|
3541
|
+
(y = o.children) == null || y.push(B), c.push(o), o = B;
|
|
3542
3542
|
break;
|
|
3543
3543
|
}
|
|
3544
3544
|
case "heading_close":
|
|
@@ -3571,8 +3571,8 @@ function _o() {
|
|
|
3571
3571
|
}
|
|
3572
3572
|
case "inline": {
|
|
3573
3573
|
if (l) {
|
|
3574
|
-
const
|
|
3575
|
-
(m = o.children) == null || m.push(...
|
|
3574
|
+
const B = n(l);
|
|
3575
|
+
(m = o.children) == null || m.push(...B ?? []);
|
|
3576
3576
|
} else
|
|
3577
3577
|
(_ = o.children) == null || _.push(f);
|
|
3578
3578
|
break;
|
|
@@ -3590,11 +3590,11 @@ function _o() {
|
|
|
3590
3590
|
break;
|
|
3591
3591
|
}
|
|
3592
3592
|
case "hr": {
|
|
3593
|
-
(
|
|
3593
|
+
(D = o.children) == null || D.push({ tag: h });
|
|
3594
3594
|
break;
|
|
3595
3595
|
}
|
|
3596
3596
|
case "input": {
|
|
3597
|
-
(
|
|
3597
|
+
(S = o.children) == null || S.push({
|
|
3598
3598
|
tag: h,
|
|
3599
3599
|
children: [],
|
|
3600
3600
|
attrs: p ? Object.fromEntries(p) : {}
|
|
@@ -3605,13 +3605,13 @@ function _o() {
|
|
|
3605
3605
|
if (f.startsWith("</"))
|
|
3606
3606
|
o = c.pop();
|
|
3607
3607
|
else {
|
|
3608
|
-
const
|
|
3609
|
-
tag:
|
|
3608
|
+
const B = f.replace("<", "").replace(">", ""), A = {
|
|
3609
|
+
tag: B,
|
|
3610
3610
|
children: []
|
|
3611
3611
|
};
|
|
3612
|
-
|
|
3612
|
+
B === "blur" && (A.tag = "span", A.attrs = {
|
|
3613
3613
|
"data-blur": ""
|
|
3614
|
-
}), (
|
|
3614
|
+
}), (M = o.children) == null || M.push(A), c.push(o), o = A;
|
|
3615
3615
|
}
|
|
3616
3616
|
break;
|
|
3617
3617
|
}
|
|
@@ -3668,40 +3668,40 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3668
3668
|
size: { default: "md" }
|
|
3669
3669
|
},
|
|
3670
3670
|
setup(u) {
|
|
3671
|
-
const e = u, t =
|
|
3671
|
+
const e = u, t = j(!0), n = E(() => {
|
|
3672
3672
|
const o = [];
|
|
3673
3673
|
return e.size !== "md" && o.push(`sq-avatar--${e.size}`), e.round && o.push("is-round"), o;
|
|
3674
|
-
}), r =
|
|
3674
|
+
}), r = E(() => {
|
|
3675
3675
|
if (!e.randomColor) return;
|
|
3676
3676
|
const { getRandomColor: o } = Fn();
|
|
3677
3677
|
return {
|
|
3678
3678
|
"--avatar-bg-color": o()
|
|
3679
3679
|
};
|
|
3680
|
-
}), c =
|
|
3680
|
+
}), c = E(() => e.alt.charAt(0).toUpperCase());
|
|
3681
3681
|
function i() {
|
|
3682
3682
|
t.value = !1;
|
|
3683
3683
|
}
|
|
3684
|
-
return (o, s) => (
|
|
3685
|
-
class:
|
|
3684
|
+
return (o, s) => (v(), F("div", {
|
|
3685
|
+
class: V(["sq-avatar", n.value]),
|
|
3686
3686
|
style: Fu(r.value)
|
|
3687
3687
|
}, [
|
|
3688
|
-
e.img && t.value ? (
|
|
3688
|
+
e.img && t.value ? (v(), F("img", {
|
|
3689
3689
|
key: 0,
|
|
3690
3690
|
src: e.img,
|
|
3691
3691
|
alt: e.alt,
|
|
3692
3692
|
onError: i
|
|
3693
|
-
}, null, 40, yo)) : (
|
|
3693
|
+
}, null, 40, yo)) : (v(), F("span", {
|
|
3694
3694
|
key: 1,
|
|
3695
|
-
textContent:
|
|
3695
|
+
textContent: _u(c.value)
|
|
3696
3696
|
}, null, 8, Co))
|
|
3697
3697
|
], 6));
|
|
3698
3698
|
}
|
|
3699
|
-
}),
|
|
3699
|
+
}), vo = {
|
|
3700
3700
|
key: 0,
|
|
3701
3701
|
viewBox: "0 0 100 100",
|
|
3702
3702
|
version: "1.1",
|
|
3703
3703
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3704
|
-
},
|
|
3704
|
+
}, Do = {
|
|
3705
3705
|
key: 1,
|
|
3706
3706
|
class: "sq-progress-label"
|
|
3707
3707
|
}, wo = ["textContent"], Eo = /* @__PURE__ */ I({
|
|
@@ -3717,13 +3717,13 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3717
3717
|
label: { type: Boolean, default: !0 }
|
|
3718
3718
|
},
|
|
3719
3719
|
setup(u) {
|
|
3720
|
-
const e = new ResizeObserver(a), t = u, n =
|
|
3720
|
+
const e = new ResizeObserver(a), t = u, n = j(100), r = Ru(null), c = E(() => {
|
|
3721
3721
|
const l = [];
|
|
3722
3722
|
return t.color || l.push(`is-${t.type}`), t.theme !== "line" && l.push(`is-${t.theme}`), l;
|
|
3723
|
-
}), i =
|
|
3723
|
+
}), i = E(() => {
|
|
3724
3724
|
const l = t.max - t.min;
|
|
3725
3725
|
return (t.value - t.min) * 100 / l;
|
|
3726
|
-
}), o =
|
|
3726
|
+
}), o = E(() => `${Math.round(i.value * 10) / 10} %`), s = E(() => {
|
|
3727
3727
|
const l = {};
|
|
3728
3728
|
if (l["--progress-stroke"] = `${t.stroke}px`, t.theme === "line")
|
|
3729
3729
|
l["--progress-value"] = `${i.value}%`;
|
|
@@ -3745,13 +3745,13 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3745
3745
|
function a() {
|
|
3746
3746
|
n.value = r.value.getBoundingClientRect().width;
|
|
3747
3747
|
}
|
|
3748
|
-
return (l, f) => (
|
|
3749
|
-
class:
|
|
3748
|
+
return (l, f) => (v(), F("div", {
|
|
3749
|
+
class: V(["sq-progress", c.value]),
|
|
3750
3750
|
ref_key: "progressRef",
|
|
3751
3751
|
ref: r,
|
|
3752
3752
|
style: Fu(s.value)
|
|
3753
3753
|
}, [
|
|
3754
|
-
t.theme === "circle" ? (
|
|
3754
|
+
t.theme === "circle" ? (v(), F("svg", vo, [...f[0] || (f[0] = [
|
|
3755
3755
|
C("circle", {
|
|
3756
3756
|
class: "sq-progress-track",
|
|
3757
3757
|
cx: "50",
|
|
@@ -3762,14 +3762,14 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3762
3762
|
cx: "50",
|
|
3763
3763
|
cy: "50"
|
|
3764
3764
|
}, null, -1)
|
|
3765
|
-
])])) :
|
|
3766
|
-
t.theme === "circle" && t.label ? (
|
|
3765
|
+
])])) : U("", !0),
|
|
3766
|
+
t.theme === "circle" && t.label ? (v(), F("div", Do, [
|
|
3767
3767
|
R(l.$slots, "default", { percentage: i.value }, () => [
|
|
3768
3768
|
C("span", {
|
|
3769
|
-
textContent:
|
|
3769
|
+
textContent: _u(o.value)
|
|
3770
3770
|
}, null, 8, wo)
|
|
3771
3771
|
])
|
|
3772
|
-
])) :
|
|
3772
|
+
])) : U("", !0)
|
|
3773
3773
|
], 6));
|
|
3774
3774
|
}
|
|
3775
3775
|
}), Ao = { class: "sq-backtop" }, Hi = /* @__PURE__ */ I({
|
|
@@ -3783,7 +3783,7 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3783
3783
|
progressProps: {}
|
|
3784
3784
|
},
|
|
3785
3785
|
setup(u) {
|
|
3786
|
-
const e = new ResizeObserver(o), t = u, n =
|
|
3786
|
+
const e = new ResizeObserver(o), t = u, n = j(100), r = j(0), c = E(() => r.value > t.visibilityHeight);
|
|
3787
3787
|
C0(() => {
|
|
3788
3788
|
o(), r.value = window.scrollY, window.addEventListener("scroll", i);
|
|
3789
3789
|
const a = document.querySelector(t.target) ?? document.body;
|
|
@@ -3801,18 +3801,18 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3801
3801
|
function s() {
|
|
3802
3802
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
3803
3803
|
}
|
|
3804
|
-
return (a, l) => (
|
|
3804
|
+
return (a, l) => (v(), O(v0, {
|
|
3805
3805
|
name: t.transition
|
|
3806
3806
|
}, {
|
|
3807
|
-
default:
|
|
3807
|
+
default: ku(() => {
|
|
3808
3808
|
var f, p, h;
|
|
3809
3809
|
return [
|
|
3810
|
-
|
|
3810
|
+
Du(C("div", Ao, [
|
|
3811
3811
|
C("div", {
|
|
3812
3812
|
class: "sq-backtop-wrap",
|
|
3813
3813
|
onClick: s
|
|
3814
3814
|
}, [
|
|
3815
|
-
t.progress ? (
|
|
3815
|
+
t.progress ? (v(), O(q(Eo), {
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
theme: "circle",
|
|
3818
3818
|
label: !1,
|
|
@@ -3821,13 +3821,13 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3821
3821
|
type: (f = t.progressProps) == null ? void 0 : f.type,
|
|
3822
3822
|
stroke: (p = t.progressProps) == null ? void 0 : p.stroke,
|
|
3823
3823
|
color: (h = t.progressProps) == null ? void 0 : h.color
|
|
3824
|
-
}, null, 8, ["value", "max", "type", "stroke", "color"])) :
|
|
3824
|
+
}, null, 8, ["value", "max", "type", "stroke", "color"])) : U("", !0),
|
|
3825
3825
|
R(a.$slots, "default", {}, () => [
|
|
3826
|
-
(
|
|
3826
|
+
(v(), O(mu(t.icon)))
|
|
3827
3827
|
])
|
|
3828
3828
|
])
|
|
3829
3829
|
], 512), [
|
|
3830
|
-
[
|
|
3830
|
+
[qu, c.value]
|
|
3831
3831
|
])
|
|
3832
3832
|
];
|
|
3833
3833
|
}),
|
|
@@ -3847,29 +3847,29 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3847
3847
|
},
|
|
3848
3848
|
emits: ["click"],
|
|
3849
3849
|
setup(u, { emit: e }) {
|
|
3850
|
-
const t = at(X0, void 0), n = e, r = u, c =
|
|
3850
|
+
const t = at(X0, void 0), n = e, r = u, c = E(() => {
|
|
3851
3851
|
const f = [], p = s.value, h = a.value, d = l.value;
|
|
3852
3852
|
return p !== "md" && f.push(`sq-button--${p}`), h && f.push(`is-${h}`), d && f.push("is-round"), !(t != null && t.value) && r.text && f.push("is-text"), f;
|
|
3853
|
-
}), i =
|
|
3853
|
+
}), i = E(() => r.loading ? bn : r.icon), o = E(() => r.loading || r.disabled), s = E(() => {
|
|
3854
3854
|
var f;
|
|
3855
3855
|
return ((f = t == null ? void 0 : t.value) == null ? void 0 : f.size) ?? r.size;
|
|
3856
|
-
}), a =
|
|
3856
|
+
}), a = E(() => {
|
|
3857
3857
|
var f;
|
|
3858
3858
|
return ((f = t == null ? void 0 : t.value) == null ? void 0 : f.type) ?? r.type;
|
|
3859
|
-
}), l =
|
|
3859
|
+
}), l = E(() => {
|
|
3860
3860
|
var f;
|
|
3861
3861
|
return ((f = t == null ? void 0 : t.value) == null ? void 0 : f.round) ?? r.round;
|
|
3862
3862
|
});
|
|
3863
|
-
return (f, p) => (
|
|
3864
|
-
class:
|
|
3863
|
+
return (f, p) => (v(), F("button", {
|
|
3864
|
+
class: V(["sq-button", c.value]),
|
|
3865
3865
|
disabled: o.value,
|
|
3866
3866
|
onClick: p[0] || (p[0] = (h) => n("click", h))
|
|
3867
3867
|
}, [
|
|
3868
|
-
|
|
3868
|
+
Iu(q(be), {
|
|
3869
3869
|
size: r.size === "lg" ? "md" : r.size
|
|
3870
3870
|
}, {
|
|
3871
|
-
default:
|
|
3872
|
-
i.value ? (
|
|
3871
|
+
default: ku(() => [
|
|
3872
|
+
i.value ? (v(), O(mu(i.value), { key: 0 })) : U("", !0),
|
|
3873
3873
|
R(f.$slots, "default")
|
|
3874
3874
|
]),
|
|
3875
3875
|
_: 3
|
|
@@ -3887,12 +3887,12 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3887
3887
|
const e = u;
|
|
3888
3888
|
return lt(
|
|
3889
3889
|
X0,
|
|
3890
|
-
|
|
3890
|
+
j({
|
|
3891
3891
|
size: xe(e, "size"),
|
|
3892
3892
|
type: xe(e, "type"),
|
|
3893
3893
|
round: xe(e, "round")
|
|
3894
3894
|
})
|
|
3895
|
-
), (t, n) => (
|
|
3895
|
+
), (t, n) => (v(), F("div", So, [
|
|
3896
3896
|
R(t.$slots, "default")
|
|
3897
3897
|
]));
|
|
3898
3898
|
}
|
|
@@ -3909,19 +3909,19 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3909
3909
|
decorative: { type: Boolean, default: !1 }
|
|
3910
3910
|
},
|
|
3911
3911
|
setup(u) {
|
|
3912
|
-
const e =
|
|
3913
|
-
return (n, r) => (
|
|
3914
|
-
t.title || q(e).title ? (
|
|
3912
|
+
const e = D0(), t = u;
|
|
3913
|
+
return (n, r) => (v(), F("section", Bo, [
|
|
3914
|
+
t.title || q(e).title ? (v(), F("div", zo, [
|
|
3915
3915
|
C("h2", {
|
|
3916
|
-
class:
|
|
3917
|
-
textContent:
|
|
3916
|
+
class: V({ "has-decorative": t.decorative }),
|
|
3917
|
+
textContent: _u(t.title)
|
|
3918
3918
|
}, null, 10, Mo),
|
|
3919
3919
|
R(n.$slots, "title")
|
|
3920
|
-
])) :
|
|
3920
|
+
])) : U("", !0),
|
|
3921
3921
|
R(n.$slots, "default"),
|
|
3922
|
-
q(e).footer ? (
|
|
3922
|
+
q(e).footer ? (v(), F("div", To, [
|
|
3923
3923
|
R(n.$slots, "footer")
|
|
3924
|
-
])) :
|
|
3924
|
+
])) : U("", !0)
|
|
3925
3925
|
]));
|
|
3926
3926
|
}
|
|
3927
3927
|
}), Lo = {
|
|
@@ -3947,58 +3947,60 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
3947
3947
|
}),
|
|
3948
3948
|
emits: /* @__PURE__ */ Yu(["focus", "blur", "input", "change"], ["update:value"]),
|
|
3949
3949
|
setup(u, { expose: e, emit: t }) {
|
|
3950
|
-
const n =
|
|
3951
|
-
const
|
|
3952
|
-
return c.size !== "md" &&
|
|
3953
|
-
}), f =
|
|
3954
|
-
const
|
|
3955
|
-
return n.suffix ||
|
|
3956
|
-
}),
|
|
3950
|
+
const n = D0(), r = t, c = u, i = Ku(u, "value"), o = j(!1), s = j(!1), a = Ru(null), l = E(() => {
|
|
3951
|
+
const A = [];
|
|
3952
|
+
return c.size !== "md" && A.push(`sq-input--${c.size}`), c.status && A.push(`is-${c.status}`), c.round && A.push("is-round"), c.disabled && A.push("is-disabled"), A;
|
|
3953
|
+
}), f = E(() => s.value ? tn : gn), p = E(() => s.value ? "text" : c.type), h = E(() => n.prefix || c.prefixIcon), d = E(() => o.value && i.value.length), b = E(() => d.value && c.clearable), g = E(() => d.value && c.type === "password"), y = E(() => {
|
|
3954
|
+
const A = c.showStatusIcon && c.status;
|
|
3955
|
+
return n.suffix || A || c.suffixIcon;
|
|
3956
|
+
}), x = E(
|
|
3957
|
+
() => g.value || b.value || y.value
|
|
3958
|
+
), m = E(() => {
|
|
3957
3959
|
if (c.showStatusIcon && c.status)
|
|
3958
3960
|
switch (c.status) {
|
|
3959
3961
|
case "success":
|
|
3960
3962
|
return Mt;
|
|
3961
3963
|
case "warn":
|
|
3962
|
-
return
|
|
3964
|
+
return vn;
|
|
3963
3965
|
case "error":
|
|
3964
3966
|
return Vt;
|
|
3965
3967
|
}
|
|
3966
3968
|
return c.suffixIcon;
|
|
3967
3969
|
});
|
|
3968
|
-
function
|
|
3969
|
-
r("focus",
|
|
3970
|
+
function _(A) {
|
|
3971
|
+
r("focus", A), !c.readonly && (o.value = !0);
|
|
3970
3972
|
}
|
|
3971
|
-
function
|
|
3972
|
-
r("blur",
|
|
3973
|
+
function k(A) {
|
|
3974
|
+
r("blur", A), !c.readonly && (o.value = !1);
|
|
3973
3975
|
}
|
|
3974
|
-
function
|
|
3975
|
-
setTimeout(
|
|
3976
|
+
function w() {
|
|
3977
|
+
setTimeout(D);
|
|
3976
3978
|
}
|
|
3977
|
-
function
|
|
3978
|
-
var
|
|
3979
|
-
(
|
|
3979
|
+
function D() {
|
|
3980
|
+
var A;
|
|
3981
|
+
(A = a.value) == null || A.focus();
|
|
3980
3982
|
}
|
|
3981
|
-
function
|
|
3982
|
-
var
|
|
3983
|
-
o.value = !1, (
|
|
3983
|
+
function S() {
|
|
3984
|
+
var A;
|
|
3985
|
+
o.value = !1, (A = a.value) == null || A.blur();
|
|
3984
3986
|
}
|
|
3985
|
-
function
|
|
3987
|
+
function M() {
|
|
3986
3988
|
i.value = "";
|
|
3987
3989
|
}
|
|
3988
|
-
function
|
|
3990
|
+
function B() {
|
|
3989
3991
|
s.value = !s.value;
|
|
3990
3992
|
}
|
|
3991
|
-
return e({ focus:
|
|
3992
|
-
class:
|
|
3993
|
-
onMousedown:
|
|
3993
|
+
return e({ focus: D, blur: S }), (A, N) => (v(), F("div", {
|
|
3994
|
+
class: V(["sq-input", l.value]),
|
|
3995
|
+
onMousedown: w
|
|
3994
3996
|
}, [
|
|
3995
|
-
|
|
3996
|
-
R(
|
|
3997
|
-
(
|
|
3997
|
+
h.value ? (v(), F("span", Lo, [
|
|
3998
|
+
R(A.$slots, "prefix", {}, () => [
|
|
3999
|
+
(v(), O(mu(c.prefixIcon)))
|
|
3998
4000
|
])
|
|
3999
|
-
])) :
|
|
4000
|
-
|
|
4001
|
-
"onUpdate:modelValue":
|
|
4001
|
+
])) : U("", !0),
|
|
4002
|
+
Du(C("input", {
|
|
4003
|
+
"onUpdate:modelValue": N[0] || (N[0] = (Y) => i.value = Y),
|
|
4002
4004
|
class: "sq-input-inner",
|
|
4003
4005
|
disabled: c.disabled,
|
|
4004
4006
|
readonly: c.readonly,
|
|
@@ -4006,33 +4008,31 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
4006
4008
|
type: p.value,
|
|
4007
4009
|
ref_key: "inputRef",
|
|
4008
4010
|
ref: a,
|
|
4009
|
-
onFocus:
|
|
4010
|
-
onBlur:
|
|
4011
|
-
onInput:
|
|
4012
|
-
onChange:
|
|
4011
|
+
onFocus: _,
|
|
4012
|
+
onBlur: k,
|
|
4013
|
+
onInput: N[1] || (N[1] = (Y) => r("input", Y)),
|
|
4014
|
+
onChange: N[2] || (N[2] = (Y) => r("change", Y))
|
|
4013
4015
|
}, null, 40, qo), [
|
|
4014
4016
|
[ft, i.value]
|
|
4015
4017
|
]),
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
+
Du(C("span", Ro, [
|
|
4019
|
+
Du((v(), O(mu(f.value), {
|
|
4018
4020
|
class: "sq-input-suffix-pwd",
|
|
4019
|
-
onMousedown:
|
|
4021
|
+
onMousedown: B
|
|
4020
4022
|
}, null, 544)), [
|
|
4021
|
-
[
|
|
4023
|
+
[qu, g.value]
|
|
4022
4024
|
]),
|
|
4023
|
-
|
|
4025
|
+
Du(Iu(q($t), {
|
|
4024
4026
|
class: "sq-input-suffix-clear",
|
|
4025
|
-
onMousedown:
|
|
4027
|
+
onMousedown: M
|
|
4026
4028
|
}, null, 512), [
|
|
4027
|
-
[
|
|
4029
|
+
[qu, b.value]
|
|
4028
4030
|
]),
|
|
4029
|
-
R(
|
|
4030
|
-
|
|
4031
|
-
[vu, g.value]
|
|
4032
|
-
])
|
|
4031
|
+
R(A.$slots, "suffix", {}, () => [
|
|
4032
|
+
m.value ? (v(), O(mu(m.value), { key: 0 })) : U("", !0)
|
|
4033
4033
|
])
|
|
4034
4034
|
], 512), [
|
|
4035
|
-
[
|
|
4035
|
+
[qu, x.value]
|
|
4036
4036
|
])
|
|
4037
4037
|
], 34));
|
|
4038
4038
|
}
|
|
@@ -4050,7 +4050,7 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
4050
4050
|
}),
|
|
4051
4051
|
emits: ["update:current", "update:page-size"],
|
|
4052
4052
|
setup(u) {
|
|
4053
|
-
const e = u, t = Ku(u, "current"), n = Ku(u, "page-size"), r =
|
|
4053
|
+
const e = u, t = Ku(u, "current"), n = Ku(u, "page-size"), r = E(() => Math.ceil(e.total / n.value) || 1), c = E(() => {
|
|
4054
4054
|
const s = [], a = Math.floor(e.pagerCount / 2) - 1;
|
|
4055
4055
|
let l = t.value - a, f = t.value + a;
|
|
4056
4056
|
l < 2 && (l = 2, f = l + a * 2), f > r.value - 1 && (f = r.value - 1, l = f - a * 2);
|
|
@@ -4062,39 +4062,39 @@ const { md2tokens: go, tokens2vueh: ko } = _o(), Ni = I({
|
|
|
4062
4062
|
}, o = (s) => {
|
|
4063
4063
|
t.value = s;
|
|
4064
4064
|
};
|
|
4065
|
-
return (s, a) => (
|
|
4065
|
+
return (s, a) => (v(), F("div", Io, [
|
|
4066
4066
|
C("div", Po, [
|
|
4067
|
-
|
|
4067
|
+
Iu(q(Ju), {
|
|
4068
4068
|
icon: q(kt),
|
|
4069
4069
|
disabled: t.value === 1 || e.disabled,
|
|
4070
4070
|
onClick: a[0] || (a[0] = (l) => i(-1))
|
|
4071
4071
|
}, null, 8, ["icon", "disabled"]),
|
|
4072
|
-
(
|
|
4073
|
-
l ? (
|
|
4072
|
+
(v(!0), F(Ee, null, dt(c.value, (l) => (v(), F(Ee, { key: l }, [
|
|
4073
|
+
l ? (v(), O(q(Ju), {
|
|
4074
4074
|
key: 0,
|
|
4075
4075
|
type: t.value === l ? "primary" : void 0,
|
|
4076
4076
|
disabled: e.disabled,
|
|
4077
4077
|
onClick: (f) => o(l)
|
|
4078
4078
|
}, {
|
|
4079
|
-
default:
|
|
4080
|
-
y0(
|
|
4079
|
+
default: ku(() => [
|
|
4080
|
+
y0(_u(l), 1)
|
|
4081
4081
|
]),
|
|
4082
4082
|
_: 2
|
|
4083
|
-
}, 1032, ["type", "disabled", "onClick"])) : (
|
|
4083
|
+
}, 1032, ["type", "disabled", "onClick"])) : (v(), O(q(Ju), {
|
|
4084
4084
|
key: 1,
|
|
4085
4085
|
icon: q(Yt),
|
|
4086
4086
|
disabled: ""
|
|
4087
4087
|
}, null, 8, ["icon"]))
|
|
4088
4088
|
], 64))), 128)),
|
|
4089
|
-
|
|
4090
|
-
icon: q(
|
|
4089
|
+
Iu(q(Ju), {
|
|
4090
|
+
icon: q(Dt),
|
|
4091
4091
|
disabled: t.value === r.value || e.disabled,
|
|
4092
4092
|
onClick: a[1] || (a[1] = (l) => i(1))
|
|
4093
4093
|
}, null, 8, ["icon", "disabled"])
|
|
4094
4094
|
])
|
|
4095
4095
|
]));
|
|
4096
4096
|
}
|
|
4097
|
-
}), Be = Math.min, Eu = Math.max, ne = Math.round, Xu = Math.floor,
|
|
4097
|
+
}), Be = Math.min, Eu = Math.max, ne = Math.round, Xu = Math.floor, nu = (u) => ({
|
|
4098
4098
|
x: u,
|
|
4099
4099
|
y: u
|
|
4100
4100
|
}), Oo = {
|
|
@@ -4122,11 +4122,11 @@ function Q0(u) {
|
|
|
4122
4122
|
return u === "y" ? "height" : "width";
|
|
4123
4123
|
}
|
|
4124
4124
|
const jo = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4125
|
-
function
|
|
4125
|
+
function xu(u) {
|
|
4126
4126
|
return jo.has(zu(u)) ? "y" : "x";
|
|
4127
4127
|
}
|
|
4128
4128
|
function Y0(u) {
|
|
4129
|
-
return No(
|
|
4129
|
+
return No(xu(u));
|
|
4130
4130
|
}
|
|
4131
4131
|
function Ho(u, e, t) {
|
|
4132
4132
|
t === void 0 && (t = !1);
|
|
@@ -4202,7 +4202,7 @@ function p0(u, e, t) {
|
|
|
4202
4202
|
reference: n,
|
|
4203
4203
|
floating: r
|
|
4204
4204
|
} = u;
|
|
4205
|
-
const c =
|
|
4205
|
+
const c = xu(e), i = Y0(e), o = Q0(i), s = zu(e), a = c === "y", l = n.x + n.width / 2 - r.width / 2, f = n.y + n.height / 2 - r.height / 2, p = n[o] / 2 - r[o] / 2;
|
|
4206
4206
|
let h;
|
|
4207
4207
|
switch (s) {
|
|
4208
4208
|
case "top":
|
|
@@ -4375,57 +4375,57 @@ const Ko = function(u) {
|
|
|
4375
4375
|
} = je(u, e);
|
|
4376
4376
|
if ((t = c.arrow) != null && t.alignmentOffset)
|
|
4377
4377
|
return {};
|
|
4378
|
-
const y = zu(r), x =
|
|
4378
|
+
const y = zu(r), x = xu(o), m = zu(o) === o, _ = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), k = p || (m || !b ? [re(o)] : Vo(o)), w = d !== "none";
|
|
4379
4379
|
!p && w && k.push(...Go(o, b, d, _));
|
|
4380
|
-
const
|
|
4381
|
-
let
|
|
4382
|
-
if (l &&
|
|
4383
|
-
const
|
|
4384
|
-
|
|
4380
|
+
const D = [o, ...k], S = await Yo(e, g), M = [];
|
|
4381
|
+
let B = ((n = c.flip) == null ? void 0 : n.overflows) || [];
|
|
4382
|
+
if (l && M.push(S[y]), f) {
|
|
4383
|
+
const K = Ho(r, i, _);
|
|
4384
|
+
M.push(S[K[0]], S[K[1]]);
|
|
4385
4385
|
}
|
|
4386
|
-
if (
|
|
4386
|
+
if (B = [...B, {
|
|
4387
4387
|
placement: r,
|
|
4388
|
-
overflows:
|
|
4389
|
-
}], !
|
|
4390
|
-
var
|
|
4391
|
-
const
|
|
4392
|
-
if (
|
|
4388
|
+
overflows: M
|
|
4389
|
+
}], !M.every((K) => K <= 0)) {
|
|
4390
|
+
var A, N;
|
|
4391
|
+
const K = (((A = c.flip) == null ? void 0 : A.index) || 0) + 1, uu = D[K];
|
|
4392
|
+
if (uu && (!(f === "alignment" ? x !== xu(uu) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4393
4393
|
// overflows the main axis.
|
|
4394
|
-
|
|
4394
|
+
B.every((J) => xu(J.placement) === x ? J.overflows[0] > 0 : !0)))
|
|
4395
4395
|
return {
|
|
4396
4396
|
data: {
|
|
4397
|
-
index:
|
|
4398
|
-
overflows:
|
|
4397
|
+
index: K,
|
|
4398
|
+
overflows: B
|
|
4399
4399
|
},
|
|
4400
4400
|
reset: {
|
|
4401
|
-
placement:
|
|
4401
|
+
placement: uu
|
|
4402
4402
|
}
|
|
4403
4403
|
};
|
|
4404
|
-
let
|
|
4405
|
-
if (!
|
|
4404
|
+
let pu = (N = B.filter((bu) => bu.overflows[0] <= 0).sort((bu, J) => bu.overflows[1] - J.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
4405
|
+
if (!pu)
|
|
4406
4406
|
switch (h) {
|
|
4407
4407
|
case "bestFit": {
|
|
4408
|
-
var
|
|
4409
|
-
const
|
|
4408
|
+
var Y;
|
|
4409
|
+
const bu = (Y = B.filter((J) => {
|
|
4410
4410
|
if (w) {
|
|
4411
|
-
const
|
|
4412
|
-
return
|
|
4411
|
+
const su = xu(J.placement);
|
|
4412
|
+
return su === x || // Create a bias to the `y` side axis due to horizontal
|
|
4413
4413
|
// reading directions favoring greater width.
|
|
4414
|
-
|
|
4414
|
+
su === "y";
|
|
4415
4415
|
}
|
|
4416
4416
|
return !0;
|
|
4417
|
-
}).map((
|
|
4418
|
-
|
|
4417
|
+
}).map((J) => [J.placement, J.overflows.filter((su) => su > 0).reduce((su, it) => su + it, 0)]).sort((J, su) => J[1] - su[1])[0]) == null ? void 0 : Y[0];
|
|
4418
|
+
bu && (pu = bu);
|
|
4419
4419
|
break;
|
|
4420
4420
|
}
|
|
4421
4421
|
case "initialPlacement":
|
|
4422
|
-
|
|
4422
|
+
pu = o;
|
|
4423
4423
|
break;
|
|
4424
4424
|
}
|
|
4425
|
-
if (r !==
|
|
4425
|
+
if (r !== pu)
|
|
4426
4426
|
return {
|
|
4427
4427
|
reset: {
|
|
4428
|
-
placement:
|
|
4428
|
+
placement: pu
|
|
4429
4429
|
}
|
|
4430
4430
|
};
|
|
4431
4431
|
}
|
|
@@ -4438,7 +4438,7 @@ async function ei(u, e) {
|
|
|
4438
4438
|
placement: t,
|
|
4439
4439
|
platform: n,
|
|
4440
4440
|
elements: r
|
|
4441
|
-
} = u, c = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), i = zu(t), o = le(t), s =
|
|
4441
|
+
} = u, c = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), i = zu(t), o = le(t), s = xu(t) === "y", a = ui.has(i) ? -1 : 1, l = c && s ? -1 : 1, f = je(e, u);
|
|
4442
4442
|
let {
|
|
4443
4443
|
mainAxis: p,
|
|
4444
4444
|
crossAxis: h,
|
|
@@ -4486,42 +4486,42 @@ const ti = function(u) {
|
|
|
4486
4486
|
function fe() {
|
|
4487
4487
|
return typeof window < "u";
|
|
4488
4488
|
}
|
|
4489
|
-
function
|
|
4489
|
+
function yu(u) {
|
|
4490
4490
|
return He(u) ? (u.nodeName || "").toLowerCase() : "#document";
|
|
4491
4491
|
}
|
|
4492
|
-
function
|
|
4492
|
+
function H(u) {
|
|
4493
4493
|
var e;
|
|
4494
4494
|
return (u == null || (e = u.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
4495
4495
|
}
|
|
4496
|
-
function
|
|
4496
|
+
function iu(u) {
|
|
4497
4497
|
var e;
|
|
4498
4498
|
return (e = (He(u) ? u.ownerDocument : u.document) || window.document) == null ? void 0 : e.documentElement;
|
|
4499
4499
|
}
|
|
4500
4500
|
function He(u) {
|
|
4501
|
-
return fe() ? u instanceof Node || u instanceof
|
|
4501
|
+
return fe() ? u instanceof Node || u instanceof H(u).Node : !1;
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4504
|
-
return fe() ? u instanceof Element || u instanceof
|
|
4503
|
+
function X(u) {
|
|
4504
|
+
return fe() ? u instanceof Element || u instanceof H(u).Element : !1;
|
|
4505
4505
|
}
|
|
4506
|
-
function
|
|
4507
|
-
return fe() ? u instanceof HTMLElement || u instanceof
|
|
4506
|
+
function ru(u) {
|
|
4507
|
+
return fe() ? u instanceof HTMLElement || u instanceof H(u).HTMLElement : !1;
|
|
4508
4508
|
}
|
|
4509
4509
|
function b0(u) {
|
|
4510
|
-
return !fe() || typeof ShadowRoot > "u" ? !1 : u instanceof ShadowRoot || u instanceof
|
|
4510
|
+
return !fe() || typeof ShadowRoot > "u" ? !1 : u instanceof ShadowRoot || u instanceof H(u).ShadowRoot;
|
|
4511
4511
|
}
|
|
4512
4512
|
const ni = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
4513
|
-
function
|
|
4513
|
+
function Uu(u) {
|
|
4514
4514
|
const {
|
|
4515
4515
|
overflow: e,
|
|
4516
4516
|
overflowX: t,
|
|
4517
4517
|
overflowY: n,
|
|
4518
4518
|
display: r
|
|
4519
|
-
} =
|
|
4519
|
+
} = Q(u);
|
|
4520
4520
|
return /auto|scroll|overlay|hidden|clip/.test(e + n + t) && !ni.has(r);
|
|
4521
4521
|
}
|
|
4522
4522
|
const ri = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
4523
4523
|
function ci(u) {
|
|
4524
|
-
return ri.has(
|
|
4524
|
+
return ri.has(yu(u));
|
|
4525
4525
|
}
|
|
4526
4526
|
const oi = [":popover-open", ":modal"];
|
|
4527
4527
|
function de(u) {
|
|
@@ -4535,17 +4535,17 @@ function de(u) {
|
|
|
4535
4535
|
}
|
|
4536
4536
|
const ii = ["transform", "translate", "scale", "rotate", "perspective"], si = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ai = ["paint", "layout", "strict", "content"];
|
|
4537
4537
|
function Ve(u) {
|
|
4538
|
-
const e = Ze(), t =
|
|
4538
|
+
const e = Ze(), t = X(u) ? Q(u) : u;
|
|
4539
4539
|
return ii.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || si.some((n) => (t.willChange || "").includes(n)) || ai.some((n) => (t.contain || "").includes(n));
|
|
4540
4540
|
}
|
|
4541
4541
|
function li(u) {
|
|
4542
|
-
let e =
|
|
4543
|
-
for (;
|
|
4542
|
+
let e = hu(u);
|
|
4543
|
+
for (; ru(e) && !Mu(e); ) {
|
|
4544
4544
|
if (Ve(e))
|
|
4545
4545
|
return e;
|
|
4546
4546
|
if (de(e))
|
|
4547
4547
|
return null;
|
|
4548
|
-
e =
|
|
4548
|
+
e = hu(e);
|
|
4549
4549
|
}
|
|
4550
4550
|
return null;
|
|
4551
4551
|
}
|
|
@@ -4554,13 +4554,13 @@ function Ze() {
|
|
|
4554
4554
|
}
|
|
4555
4555
|
const fi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
4556
4556
|
function Mu(u) {
|
|
4557
|
-
return fi.has(
|
|
4557
|
+
return fi.has(yu(u));
|
|
4558
4558
|
}
|
|
4559
|
-
function
|
|
4560
|
-
return
|
|
4559
|
+
function Q(u) {
|
|
4560
|
+
return H(u).getComputedStyle(u);
|
|
4561
4561
|
}
|
|
4562
4562
|
function he(u) {
|
|
4563
|
-
return
|
|
4563
|
+
return X(u) ? {
|
|
4564
4564
|
scrollLeft: u.scrollLeft,
|
|
4565
4565
|
scrollTop: u.scrollTop
|
|
4566
4566
|
} : {
|
|
@@ -4568,39 +4568,39 @@ function he(u) {
|
|
|
4568
4568
|
scrollTop: u.scrollY
|
|
4569
4569
|
};
|
|
4570
4570
|
}
|
|
4571
|
-
function
|
|
4572
|
-
if (
|
|
4571
|
+
function hu(u) {
|
|
4572
|
+
if (yu(u) === "html")
|
|
4573
4573
|
return u;
|
|
4574
4574
|
const e = (
|
|
4575
4575
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
4576
4576
|
u.assignedSlot || // DOM Element detected.
|
|
4577
4577
|
u.parentNode || // ShadowRoot detected.
|
|
4578
4578
|
b0(u) && u.host || // Fallback.
|
|
4579
|
-
|
|
4579
|
+
iu(u)
|
|
4580
4580
|
);
|
|
4581
4581
|
return b0(e) ? e.host : e;
|
|
4582
4582
|
}
|
|
4583
4583
|
function K0(u) {
|
|
4584
|
-
const e =
|
|
4585
|
-
return Mu(e) ? u.ownerDocument ? u.ownerDocument.body : u.body :
|
|
4584
|
+
const e = hu(u);
|
|
4585
|
+
return Mu(e) ? u.ownerDocument ? u.ownerDocument.body : u.body : ru(e) && Uu(e) ? e : K0(e);
|
|
4586
4586
|
}
|
|
4587
|
-
function
|
|
4587
|
+
function ju(u, e, t) {
|
|
4588
4588
|
var n;
|
|
4589
4589
|
e === void 0 && (e = []), t === void 0 && (t = !0);
|
|
4590
|
-
const r = K0(u), c = r === ((n = u.ownerDocument) == null ? void 0 : n.body), i =
|
|
4590
|
+
const r = K0(u), c = r === ((n = u.ownerDocument) == null ? void 0 : n.body), i = H(r);
|
|
4591
4591
|
if (c) {
|
|
4592
4592
|
const o = Me(i);
|
|
4593
|
-
return e.concat(i, i.visualViewport || [],
|
|
4593
|
+
return e.concat(i, i.visualViewport || [], Uu(r) ? r : [], o && t ? ju(o) : []);
|
|
4594
4594
|
}
|
|
4595
|
-
return e.concat(r,
|
|
4595
|
+
return e.concat(r, ju(r, [], t));
|
|
4596
4596
|
}
|
|
4597
4597
|
function Me(u) {
|
|
4598
4598
|
return u.parent && Object.getPrototypeOf(u.parent) ? u.frameElement : null;
|
|
4599
4599
|
}
|
|
4600
4600
|
function ut(u) {
|
|
4601
|
-
const e =
|
|
4601
|
+
const e = Q(u);
|
|
4602
4602
|
let t = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
4603
|
-
const r =
|
|
4603
|
+
const r = ru(u), c = r ? u.offsetWidth : t, i = r ? u.offsetHeight : n, o = ne(t) !== c || ne(n) !== i;
|
|
4604
4604
|
return o && (t = c, n = i), {
|
|
4605
4605
|
width: t,
|
|
4606
4606
|
height: n,
|
|
@@ -4608,12 +4608,12 @@ function ut(u) {
|
|
|
4608
4608
|
};
|
|
4609
4609
|
}
|
|
4610
4610
|
function Ue(u) {
|
|
4611
|
-
return
|
|
4611
|
+
return X(u) ? u : u.contextElement;
|
|
4612
4612
|
}
|
|
4613
4613
|
function Au(u) {
|
|
4614
4614
|
const e = Ue(u);
|
|
4615
|
-
if (!
|
|
4616
|
-
return
|
|
4615
|
+
if (!ru(e))
|
|
4616
|
+
return nu(1);
|
|
4617
4617
|
const t = e.getBoundingClientRect(), {
|
|
4618
4618
|
width: n,
|
|
4619
4619
|
height: r,
|
|
@@ -4625,30 +4625,30 @@ function Au(u) {
|
|
|
4625
4625
|
y: o
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
4628
|
-
const di = /* @__PURE__ */
|
|
4628
|
+
const di = /* @__PURE__ */ nu(0);
|
|
4629
4629
|
function et(u) {
|
|
4630
|
-
const e =
|
|
4630
|
+
const e = H(u);
|
|
4631
4631
|
return !Ze() || !e.visualViewport ? di : {
|
|
4632
4632
|
x: e.visualViewport.offsetLeft,
|
|
4633
4633
|
y: e.visualViewport.offsetTop
|
|
4634
4634
|
};
|
|
4635
4635
|
}
|
|
4636
4636
|
function hi(u, e, t) {
|
|
4637
|
-
return e === void 0 && (e = !1), !t || e && t !==
|
|
4637
|
+
return e === void 0 && (e = !1), !t || e && t !== H(u) ? !1 : e;
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4639
|
+
function gu(u, e, t, n) {
|
|
4640
4640
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
4641
4641
|
const r = u.getBoundingClientRect(), c = Ue(u);
|
|
4642
|
-
let i =
|
|
4643
|
-
e && (n ?
|
|
4644
|
-
const o = hi(c, t, n) ? et(c) :
|
|
4642
|
+
let i = nu(1);
|
|
4643
|
+
e && (n ? X(n) && (i = Au(n)) : i = Au(u));
|
|
4644
|
+
const o = hi(c, t, n) ? et(c) : nu(0);
|
|
4645
4645
|
let s = (r.left + o.x) / i.x, a = (r.top + o.y) / i.y, l = r.width / i.x, f = r.height / i.y;
|
|
4646
4646
|
if (c) {
|
|
4647
|
-
const p =
|
|
4647
|
+
const p = H(c), h = n && X(n) ? H(n) : n;
|
|
4648
4648
|
let d = p, b = Me(d);
|
|
4649
4649
|
for (; b && n && h !== d; ) {
|
|
4650
|
-
const g = Au(b), y = b.getBoundingClientRect(), x =
|
|
4651
|
-
s *= g.x, a *= g.y, l *= g.x, f *= g.y, s += m, a += _, d =
|
|
4650
|
+
const g = Au(b), y = b.getBoundingClientRect(), x = Q(b), m = y.left + (b.clientLeft + parseFloat(x.paddingLeft)) * g.x, _ = y.top + (b.clientTop + parseFloat(x.paddingTop)) * g.y;
|
|
4651
|
+
s *= g.x, a *= g.y, l *= g.x, f *= g.y, s += m, a += _, d = H(b), b = Me(d);
|
|
4652
4652
|
}
|
|
4653
4653
|
}
|
|
4654
4654
|
return ce({
|
|
@@ -4660,7 +4660,7 @@ function _u(u, e, t, n) {
|
|
|
4660
4660
|
}
|
|
4661
4661
|
function pe(u, e) {
|
|
4662
4662
|
const t = he(u).scrollLeft;
|
|
4663
|
-
return e ? e.left + t :
|
|
4663
|
+
return e ? e.left + t : gu(iu(u)).left + t;
|
|
4664
4664
|
}
|
|
4665
4665
|
function tt(u, e) {
|
|
4666
4666
|
const t = u.getBoundingClientRect(), n = t.left + e.scrollLeft - pe(u, t), r = t.top + e.scrollTop;
|
|
@@ -4676,19 +4676,19 @@ function pi(u) {
|
|
|
4676
4676
|
offsetParent: n,
|
|
4677
4677
|
strategy: r
|
|
4678
4678
|
} = u;
|
|
4679
|
-
const c = r === "fixed", i =
|
|
4679
|
+
const c = r === "fixed", i = iu(n), o = e ? de(e.floating) : !1;
|
|
4680
4680
|
if (n === i || o && c)
|
|
4681
4681
|
return t;
|
|
4682
4682
|
let s = {
|
|
4683
4683
|
scrollLeft: 0,
|
|
4684
4684
|
scrollTop: 0
|
|
4685
|
-
}, a =
|
|
4686
|
-
const l =
|
|
4687
|
-
if ((f || !f && !c) && ((
|
|
4688
|
-
const h =
|
|
4685
|
+
}, a = nu(1);
|
|
4686
|
+
const l = nu(0), f = ru(n);
|
|
4687
|
+
if ((f || !f && !c) && ((yu(n) !== "body" || Uu(i)) && (s = he(n)), ru(n))) {
|
|
4688
|
+
const h = gu(n);
|
|
4689
4689
|
a = Au(n), l.x = h.x + n.clientLeft, l.y = h.y + n.clientTop;
|
|
4690
4690
|
}
|
|
4691
|
-
const p = i && !f && !c ? tt(i, s) :
|
|
4691
|
+
const p = i && !f && !c ? tt(i, s) : nu(0);
|
|
4692
4692
|
return {
|
|
4693
4693
|
width: t.width * a.x,
|
|
4694
4694
|
height: t.height * a.y,
|
|
@@ -4700,10 +4700,10 @@ function bi(u) {
|
|
|
4700
4700
|
return Array.from(u.getClientRects());
|
|
4701
4701
|
}
|
|
4702
4702
|
function xi(u) {
|
|
4703
|
-
const e =
|
|
4703
|
+
const e = iu(u), t = he(u), n = u.ownerDocument.body, r = Eu(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), c = Eu(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
4704
4704
|
let i = -t.scrollLeft + pe(u);
|
|
4705
4705
|
const o = -t.scrollTop;
|
|
4706
|
-
return
|
|
4706
|
+
return Q(n).direction === "rtl" && (i += Eu(e.clientWidth, n.clientWidth) - r), {
|
|
4707
4707
|
width: r,
|
|
4708
4708
|
height: c,
|
|
4709
4709
|
x: i,
|
|
@@ -4712,7 +4712,7 @@ function xi(u) {
|
|
|
4712
4712
|
}
|
|
4713
4713
|
const x0 = 25;
|
|
4714
4714
|
function mi(u, e) {
|
|
4715
|
-
const t =
|
|
4715
|
+
const t = H(u), n = iu(u), r = t.visualViewport;
|
|
4716
4716
|
let c = n.clientWidth, i = n.clientHeight, o = 0, s = 0;
|
|
4717
4717
|
if (r) {
|
|
4718
4718
|
c = r.width, i = r.height;
|
|
@@ -4733,7 +4733,7 @@ function mi(u, e) {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
const _i = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4735
4735
|
function gi(u, e) {
|
|
4736
|
-
const t =
|
|
4736
|
+
const t = gu(u, !0, e === "fixed"), n = t.top + u.clientTop, r = t.left + u.clientLeft, c = ru(u) ? Au(u) : nu(1), i = u.clientWidth * c.x, o = u.clientHeight * c.y, s = r * c.x, a = n * c.y;
|
|
4737
4737
|
return {
|
|
4738
4738
|
width: i,
|
|
4739
4739
|
height: o,
|
|
@@ -4746,8 +4746,8 @@ function m0(u, e, t) {
|
|
|
4746
4746
|
if (e === "viewport")
|
|
4747
4747
|
n = mi(u, t);
|
|
4748
4748
|
else if (e === "document")
|
|
4749
|
-
n = xi(
|
|
4750
|
-
else if (
|
|
4749
|
+
n = xi(iu(u));
|
|
4750
|
+
else if (X(e))
|
|
4751
4751
|
n = gi(e, t);
|
|
4752
4752
|
else {
|
|
4753
4753
|
const r = et(u);
|
|
@@ -4761,19 +4761,19 @@ function m0(u, e, t) {
|
|
|
4761
4761
|
return ce(n);
|
|
4762
4762
|
}
|
|
4763
4763
|
function nt(u, e) {
|
|
4764
|
-
const t =
|
|
4765
|
-
return t === e || !
|
|
4764
|
+
const t = hu(u);
|
|
4765
|
+
return t === e || !X(t) || Mu(t) ? !1 : Q(t).position === "fixed" || nt(t, e);
|
|
4766
4766
|
}
|
|
4767
4767
|
function ki(u, e) {
|
|
4768
4768
|
const t = e.get(u);
|
|
4769
4769
|
if (t)
|
|
4770
4770
|
return t;
|
|
4771
|
-
let n =
|
|
4772
|
-
const c =
|
|
4773
|
-
let i = c ?
|
|
4774
|
-
for (;
|
|
4775
|
-
const o =
|
|
4776
|
-
!s && o.position === "fixed" && (r = null), (c ? !s && !r : !s && o.position === "static" && !!r && _i.has(r.position) ||
|
|
4771
|
+
let n = ju(u, [], !1).filter((o) => X(o) && yu(o) !== "body"), r = null;
|
|
4772
|
+
const c = Q(u).position === "fixed";
|
|
4773
|
+
let i = c ? hu(u) : u;
|
|
4774
|
+
for (; X(i) && !Mu(i); ) {
|
|
4775
|
+
const o = Q(i), s = Ve(i);
|
|
4776
|
+
!s && o.position === "fixed" && (r = null), (c ? !s && !r : !s && o.position === "static" && !!r && _i.has(r.position) || Uu(i) && !s && nt(u, i)) ? n = n.filter((l) => l !== i) : r = o, i = hu(i);
|
|
4777
4777
|
}
|
|
4778
4778
|
return e.set(u, n), n;
|
|
4779
4779
|
}
|
|
@@ -4805,23 +4805,23 @@ function Ci(u) {
|
|
|
4805
4805
|
height: t
|
|
4806
4806
|
};
|
|
4807
4807
|
}
|
|
4808
|
-
function
|
|
4809
|
-
const n =
|
|
4808
|
+
function vi(u, e, t) {
|
|
4809
|
+
const n = ru(e), r = iu(e), c = t === "fixed", i = gu(u, !0, c, e);
|
|
4810
4810
|
let o = {
|
|
4811
4811
|
scrollLeft: 0,
|
|
4812
4812
|
scrollTop: 0
|
|
4813
4813
|
};
|
|
4814
|
-
const s =
|
|
4814
|
+
const s = nu(0);
|
|
4815
4815
|
function a() {
|
|
4816
4816
|
s.x = pe(r);
|
|
4817
4817
|
}
|
|
4818
4818
|
if (n || !n && !c)
|
|
4819
|
-
if ((
|
|
4820
|
-
const h =
|
|
4819
|
+
if ((yu(e) !== "body" || Uu(r)) && (o = he(e)), n) {
|
|
4820
|
+
const h = gu(e, !0, c, e);
|
|
4821
4821
|
s.x = h.x + e.clientLeft, s.y = h.y + e.clientTop;
|
|
4822
4822
|
} else r && a();
|
|
4823
4823
|
c && !n && r && a();
|
|
4824
|
-
const l = r && !n && !c ? tt(r, o) :
|
|
4824
|
+
const l = r && !n && !c ? tt(r, o) : nu(0), f = i.left + o.scrollLeft - s.x - l.x, p = i.top + o.scrollTop - s.y - l.y;
|
|
4825
4825
|
return {
|
|
4826
4826
|
x: f,
|
|
4827
4827
|
y: p,
|
|
@@ -4829,39 +4829,39 @@ function Di(u, e, t) {
|
|
|
4829
4829
|
height: i.height
|
|
4830
4830
|
};
|
|
4831
4831
|
}
|
|
4832
|
-
function
|
|
4833
|
-
return
|
|
4832
|
+
function De(u) {
|
|
4833
|
+
return Q(u).position === "static";
|
|
4834
4834
|
}
|
|
4835
4835
|
function _0(u, e) {
|
|
4836
|
-
if (!
|
|
4836
|
+
if (!ru(u) || Q(u).position === "fixed")
|
|
4837
4837
|
return null;
|
|
4838
4838
|
if (e)
|
|
4839
4839
|
return e(u);
|
|
4840
4840
|
let t = u.offsetParent;
|
|
4841
|
-
return
|
|
4841
|
+
return iu(u) === t && (t = t.ownerDocument.body), t;
|
|
4842
4842
|
}
|
|
4843
4843
|
function rt(u, e) {
|
|
4844
|
-
const t =
|
|
4844
|
+
const t = H(u);
|
|
4845
4845
|
if (de(u))
|
|
4846
4846
|
return t;
|
|
4847
|
-
if (!
|
|
4848
|
-
let r =
|
|
4847
|
+
if (!ru(u)) {
|
|
4848
|
+
let r = hu(u);
|
|
4849
4849
|
for (; r && !Mu(r); ) {
|
|
4850
|
-
if (
|
|
4850
|
+
if (X(r) && !De(r))
|
|
4851
4851
|
return r;
|
|
4852
|
-
r =
|
|
4852
|
+
r = hu(r);
|
|
4853
4853
|
}
|
|
4854
4854
|
return t;
|
|
4855
4855
|
}
|
|
4856
4856
|
let n = _0(u, e);
|
|
4857
|
-
for (; n && ci(n) &&
|
|
4857
|
+
for (; n && ci(n) && De(n); )
|
|
4858
4858
|
n = _0(n, e);
|
|
4859
|
-
return n && Mu(n) &&
|
|
4859
|
+
return n && Mu(n) && De(n) && !Ve(n) ? t : n || li(u) || t;
|
|
4860
4860
|
}
|
|
4861
|
-
const
|
|
4861
|
+
const Di = async function(u) {
|
|
4862
4862
|
const e = this.getOffsetParent || rt, t = this.getDimensions, n = await t(u.floating);
|
|
4863
4863
|
return {
|
|
4864
|
-
reference:
|
|
4864
|
+
reference: vi(u.reference, await e(u.floating), u.strategy),
|
|
4865
4865
|
floating: {
|
|
4866
4866
|
x: 0,
|
|
4867
4867
|
y: 0,
|
|
@@ -4871,18 +4871,18 @@ const vi = async function(u) {
|
|
|
4871
4871
|
};
|
|
4872
4872
|
};
|
|
4873
4873
|
function wi(u) {
|
|
4874
|
-
return
|
|
4874
|
+
return Q(u).direction === "rtl";
|
|
4875
4875
|
}
|
|
4876
4876
|
const Ei = {
|
|
4877
4877
|
convertOffsetParentRelativeRectToViewportRelativeRect: pi,
|
|
4878
|
-
getDocumentElement:
|
|
4878
|
+
getDocumentElement: iu,
|
|
4879
4879
|
getClippingRect: yi,
|
|
4880
4880
|
getOffsetParent: rt,
|
|
4881
|
-
getElementRects:
|
|
4881
|
+
getElementRects: Di,
|
|
4882
4882
|
getClientRects: bi,
|
|
4883
4883
|
getDimensions: Ci,
|
|
4884
4884
|
getScale: Au,
|
|
4885
|
-
isElement:
|
|
4885
|
+
isElement: X,
|
|
4886
4886
|
isRTL: wi
|
|
4887
4887
|
};
|
|
4888
4888
|
function ct(u, e) {
|
|
@@ -4890,7 +4890,7 @@ function ct(u, e) {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
function Ai(u, e) {
|
|
4892
4892
|
let t = null, n;
|
|
4893
|
-
const r =
|
|
4893
|
+
const r = iu(u);
|
|
4894
4894
|
function c() {
|
|
4895
4895
|
var o;
|
|
4896
4896
|
clearTimeout(n), (o = t) == null || o.disconnect(), t = null;
|
|
@@ -4911,15 +4911,15 @@ function Ai(u, e) {
|
|
|
4911
4911
|
};
|
|
4912
4912
|
let _ = !0;
|
|
4913
4913
|
function k(w) {
|
|
4914
|
-
const
|
|
4915
|
-
if (
|
|
4914
|
+
const D = w[0].intersectionRatio;
|
|
4915
|
+
if (D !== s) {
|
|
4916
4916
|
if (!_)
|
|
4917
4917
|
return i();
|
|
4918
|
-
|
|
4918
|
+
D ? i(!1, D) : n = setTimeout(() => {
|
|
4919
4919
|
i(!1, 1e-7);
|
|
4920
4920
|
}, 1e3);
|
|
4921
4921
|
}
|
|
4922
|
-
|
|
4922
|
+
D === 1 && !ct(a, u.getBoundingClientRect()) && i(), _ = !1;
|
|
4923
4923
|
}
|
|
4924
4924
|
try {
|
|
4925
4925
|
t = new IntersectionObserver(k, {
|
|
@@ -4942,7 +4942,7 @@ function Fi(u, e, t, n) {
|
|
|
4942
4942
|
elementResize: i = typeof ResizeObserver == "function",
|
|
4943
4943
|
layoutShift: o = typeof IntersectionObserver == "function",
|
|
4944
4944
|
animationFrame: s = !1
|
|
4945
|
-
} = n, a = Ue(u), l = r || c ? [...a ?
|
|
4945
|
+
} = n, a = Ue(u), l = r || c ? [...a ? ju(a) : [], ...ju(e)] : [];
|
|
4946
4946
|
l.forEach((y) => {
|
|
4947
4947
|
r && y.addEventListener("scroll", t, {
|
|
4948
4948
|
passive: !0
|
|
@@ -4957,10 +4957,10 @@ function Fi(u, e, t, n) {
|
|
|
4957
4957
|
(m = h) == null || m.observe(e);
|
|
4958
4958
|
})), t();
|
|
4959
4959
|
}), a && !s && h.observe(a), h.observe(e));
|
|
4960
|
-
let d, b = s ?
|
|
4960
|
+
let d, b = s ? gu(u) : null;
|
|
4961
4961
|
s && g();
|
|
4962
4962
|
function g() {
|
|
4963
|
-
const y =
|
|
4963
|
+
const y = gu(u);
|
|
4964
4964
|
b && !ct(b, y) && t(), b = y, d = requestAnimationFrame(g);
|
|
4965
4965
|
}
|
|
4966
4966
|
return t(), () => {
|
|
@@ -4989,7 +4989,7 @@ function Mi(u) {
|
|
|
4989
4989
|
function g0(u) {
|
|
4990
4990
|
if (Mi(u)) {
|
|
4991
4991
|
const e = u.$el;
|
|
4992
|
-
return He(e) &&
|
|
4992
|
+
return He(e) && yu(e) === "#comment" ? null : e;
|
|
4993
4993
|
}
|
|
4994
4994
|
return u;
|
|
4995
4995
|
}
|
|
@@ -5005,50 +5005,50 @@ function k0(u, e) {
|
|
|
5005
5005
|
}
|
|
5006
5006
|
function Ti(u, e, t) {
|
|
5007
5007
|
t === void 0 && (t = {});
|
|
5008
|
-
const n = t.whileElementsMounted, r =
|
|
5009
|
-
var
|
|
5010
|
-
return (
|
|
5011
|
-
}), c =
|
|
5012
|
-
var
|
|
5013
|
-
return (
|
|
5014
|
-
}), o =
|
|
5015
|
-
var
|
|
5016
|
-
return (
|
|
5017
|
-
}), s =
|
|
5018
|
-
var
|
|
5019
|
-
return (
|
|
5020
|
-
}), a =
|
|
5021
|
-
const
|
|
5008
|
+
const n = t.whileElementsMounted, r = E(() => {
|
|
5009
|
+
var D;
|
|
5010
|
+
return (D = Lu(t.open)) != null ? D : !0;
|
|
5011
|
+
}), c = E(() => Lu(t.middleware)), i = E(() => {
|
|
5012
|
+
var D;
|
|
5013
|
+
return (D = Lu(t.placement)) != null ? D : "bottom";
|
|
5014
|
+
}), o = E(() => {
|
|
5015
|
+
var D;
|
|
5016
|
+
return (D = Lu(t.strategy)) != null ? D : "absolute";
|
|
5017
|
+
}), s = E(() => {
|
|
5018
|
+
var D;
|
|
5019
|
+
return (D = Lu(t.transform)) != null ? D : !0;
|
|
5020
|
+
}), a = E(() => g0(u.value)), l = E(() => g0(e.value)), f = j(0), p = j(0), h = j(o.value), d = j(i.value), b = Ru({}), g = j(!1), y = E(() => {
|
|
5021
|
+
const D = {
|
|
5022
5022
|
position: h.value,
|
|
5023
5023
|
left: "0",
|
|
5024
5024
|
top: "0"
|
|
5025
5025
|
};
|
|
5026
5026
|
if (!l.value)
|
|
5027
|
-
return
|
|
5028
|
-
const
|
|
5027
|
+
return D;
|
|
5028
|
+
const S = k0(l.value, f.value), M = k0(l.value, p.value);
|
|
5029
5029
|
return s.value ? {
|
|
5030
|
-
...
|
|
5031
|
-
transform: "translate(" +
|
|
5030
|
+
...D,
|
|
5031
|
+
transform: "translate(" + S + "px, " + M + "px)",
|
|
5032
5032
|
...ot(l.value) >= 1.5 && {
|
|
5033
5033
|
willChange: "transform"
|
|
5034
5034
|
}
|
|
5035
5035
|
} : {
|
|
5036
5036
|
position: h.value,
|
|
5037
|
-
left:
|
|
5038
|
-
top:
|
|
5037
|
+
left: S + "px",
|
|
5038
|
+
top: M + "px"
|
|
5039
5039
|
};
|
|
5040
5040
|
});
|
|
5041
5041
|
let x;
|
|
5042
5042
|
function m() {
|
|
5043
5043
|
if (a.value == null || l.value == null)
|
|
5044
5044
|
return;
|
|
5045
|
-
const
|
|
5045
|
+
const D = r.value;
|
|
5046
5046
|
zi(a.value, l.value, {
|
|
5047
5047
|
middleware: c.value,
|
|
5048
5048
|
placement: i.value,
|
|
5049
5049
|
strategy: o.value
|
|
5050
|
-
}).then((
|
|
5051
|
-
f.value =
|
|
5050
|
+
}).then((S) => {
|
|
5051
|
+
f.value = S.x, p.value = S.y, h.value = S.strategy, d.value = S.placement, b.value = S.middlewareData, g.value = D !== !1;
|
|
5052
5052
|
});
|
|
5053
5053
|
}
|
|
5054
5054
|
function _() {
|
|
@@ -5104,7 +5104,7 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5104
5104
|
setup(u) {
|
|
5105
5105
|
const { nextZIndex: e } = Bn();
|
|
5106
5106
|
let t;
|
|
5107
|
-
const n = u, r =
|
|
5107
|
+
const n = u, r = j(0), c = Ru(null), i = Ru(null), o = Ku(u, "visible"), { floatingStyles: s } = Ti(c, i, {
|
|
5108
5108
|
placement: n.placement,
|
|
5109
5109
|
whileElementsMounted: Fi,
|
|
5110
5110
|
transform: !1,
|
|
@@ -5137,9 +5137,9 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5137
5137
|
function d() {
|
|
5138
5138
|
t && (clearTimeout(t), t = void 0);
|
|
5139
5139
|
}
|
|
5140
|
-
return (b, g) => (
|
|
5140
|
+
return (b, g) => (v(), F(Ee, null, [
|
|
5141
5141
|
C("span", {
|
|
5142
|
-
class:
|
|
5142
|
+
class: V(["sq-popover-trigger", b.$attrs.class]),
|
|
5143
5143
|
style: Fu(b.$attrs.style),
|
|
5144
5144
|
ref_key: "triggerRef",
|
|
5145
5145
|
ref: c,
|
|
@@ -5149,16 +5149,16 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5149
5149
|
}, [
|
|
5150
5150
|
R(b.$slots, "reference")
|
|
5151
5151
|
], 38),
|
|
5152
|
-
(
|
|
5152
|
+
(v(), O(bt, {
|
|
5153
5153
|
to: "body",
|
|
5154
5154
|
disabled: !n.teleported
|
|
5155
5155
|
}, [
|
|
5156
|
-
|
|
5156
|
+
Iu(v0, {
|
|
5157
5157
|
name: n.transition
|
|
5158
5158
|
}, {
|
|
5159
|
-
default:
|
|
5160
|
-
|
|
5161
|
-
class:
|
|
5159
|
+
default: ku(() => [
|
|
5160
|
+
Du(C("div", {
|
|
5161
|
+
class: V(["sq-popover", b.popoverClass]),
|
|
5162
5162
|
style: Fu({ ...q(s), zIndex: r.value }),
|
|
5163
5163
|
ref_key: "popverRef",
|
|
5164
5164
|
ref: i,
|
|
@@ -5167,7 +5167,7 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5167
5167
|
}, [
|
|
5168
5168
|
R(b.$slots, "default")
|
|
5169
5169
|
], 6), [
|
|
5170
|
-
[
|
|
5170
|
+
[qu, o.value]
|
|
5171
5171
|
])
|
|
5172
5172
|
]),
|
|
5173
5173
|
_: 3
|
|
@@ -5184,15 +5184,15 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5184
5184
|
size: { default: "md" }
|
|
5185
5185
|
},
|
|
5186
5186
|
setup(u) {
|
|
5187
|
-
const e = u, t =
|
|
5187
|
+
const e = u, t = E(() => {
|
|
5188
5188
|
const r = [];
|
|
5189
5189
|
return e.size !== "md" && r.push(`sq-tag--${e.size}`), e.theme !== "plain" && e.type && r.push(`is-${e.theme}`), e.type && r.push(`is-${e.type}`), e.round && r.push("is-round"), r;
|
|
5190
|
-
}), n =
|
|
5191
|
-
return (r, c) => (
|
|
5192
|
-
class:
|
|
5190
|
+
}), n = E(() => e.size === "lg" ? "md" : "sm");
|
|
5191
|
+
return (r, c) => (v(), O(q(be), {
|
|
5192
|
+
class: V(["sq-tag", t.value]),
|
|
5193
5193
|
size: n.value
|
|
5194
5194
|
}, {
|
|
5195
|
-
default:
|
|
5195
|
+
default: ku(() => [
|
|
5196
5196
|
R(r.$slots, "default")
|
|
5197
5197
|
]),
|
|
5198
5198
|
_: 3
|
|
@@ -5209,16 +5209,16 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5209
5209
|
},
|
|
5210
5210
|
emits: ["change"],
|
|
5211
5211
|
setup(u, { emit: e }) {
|
|
5212
|
-
const t = e, n = u, r =
|
|
5212
|
+
const t = e, n = u, r = E(() => {
|
|
5213
5213
|
const i = [];
|
|
5214
5214
|
return n.size !== "md" && i.push(`sq-tag--${n.size}`), n.theme !== "plain" && i.push(`is-${n.theme}`), n.type && i.push(`is-${n.type}`), n.round && i.push("is-round"), n.checked && i.push("is-checked"), i;
|
|
5215
|
-
}), c =
|
|
5216
|
-
return (i, o) => (
|
|
5217
|
-
class:
|
|
5215
|
+
}), c = E(() => n.size === "lg" ? "md" : "sm");
|
|
5216
|
+
return (i, o) => (v(), O(q(be), {
|
|
5217
|
+
class: V(["sq-check-tag", r.value]),
|
|
5218
5218
|
size: c.value,
|
|
5219
5219
|
onClick: o[0] || (o[0] = (s) => t("change", !n.checked))
|
|
5220
5220
|
}, {
|
|
5221
|
-
default:
|
|
5221
|
+
default: ku(() => [
|
|
5222
5222
|
R(i.$slots, "default")
|
|
5223
5223
|
]),
|
|
5224
5224
|
_: 3
|
|
@@ -5232,14 +5232,14 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5232
5232
|
size: { default: "md" }
|
|
5233
5233
|
},
|
|
5234
5234
|
setup(u) {
|
|
5235
|
-
const e = u, t =
|
|
5235
|
+
const e = u, t = E(() => {
|
|
5236
5236
|
const r = [];
|
|
5237
5237
|
return e.size !== "md" && r.push(`sq-text--${e.size}`), e.ellipsis && r.push(e.rowNum > 1 ? "multi-line" : "single-line"), r;
|
|
5238
|
-
}), n =
|
|
5238
|
+
}), n = E(
|
|
5239
5239
|
() => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
|
|
5240
5240
|
);
|
|
5241
|
-
return (r, c) => (
|
|
5242
|
-
class:
|
|
5241
|
+
return (r, c) => (v(), F("span", {
|
|
5242
|
+
class: V(["sq-text", t.value]),
|
|
5243
5243
|
style: Fu(n.value)
|
|
5244
5244
|
}, [
|
|
5245
5245
|
R(r.$slots, "default")
|
|
@@ -5251,12 +5251,12 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5251
5251
|
align: { default: "left" }
|
|
5252
5252
|
},
|
|
5253
5253
|
setup(u) {
|
|
5254
|
-
const e = u, t =
|
|
5254
|
+
const e = u, t = E(() => {
|
|
5255
5255
|
const n = [];
|
|
5256
5256
|
return n.push(`align-${e.align}`), n;
|
|
5257
5257
|
});
|
|
5258
|
-
return (n, r) => (
|
|
5259
|
-
class:
|
|
5258
|
+
return (n, r) => (v(), F("div", {
|
|
5259
|
+
class: V(["sq-timeline", t.value])
|
|
5260
5260
|
}, [
|
|
5261
5261
|
R(n.$slots, "default")
|
|
5262
5262
|
], 2));
|
|
@@ -5273,31 +5273,31 @@ const Gi = /* @__PURE__ */ I({
|
|
|
5273
5273
|
title: {}
|
|
5274
5274
|
},
|
|
5275
5275
|
setup(u) {
|
|
5276
|
-
const e = u, t =
|
|
5276
|
+
const e = u, t = E(() => {
|
|
5277
5277
|
const r = [];
|
|
5278
5278
|
return e.theme !== "card" && r.push(`is-${e.theme}`), e.type && r.push(`is-${e.type}`), e.hollow && r.push("is-hollow"), r;
|
|
5279
|
-
}), n =
|
|
5279
|
+
}), n = E(() => {
|
|
5280
5280
|
const r = {};
|
|
5281
5281
|
return e.color && (r["--timeline-dot-color"] = e.color), r;
|
|
5282
5282
|
});
|
|
5283
|
-
return (r, c) => (
|
|
5284
|
-
class:
|
|
5283
|
+
return (r, c) => (v(), F("div", {
|
|
5284
|
+
class: V(["sq-timeline-item", t.value]),
|
|
5285
5285
|
style: Fu(n.value)
|
|
5286
5286
|
}, [
|
|
5287
5287
|
C("span", Li, [
|
|
5288
|
-
e.icon ? (
|
|
5288
|
+
e.icon ? (v(), O(mu(e.icon), { key: 0 })) : U("", !0)
|
|
5289
5289
|
]),
|
|
5290
5290
|
C("div", qi, [
|
|
5291
|
-
e.title ? (
|
|
5291
|
+
e.title ? (v(), F("h2", {
|
|
5292
5292
|
key: 0,
|
|
5293
5293
|
class: "content-title",
|
|
5294
|
-
textContent:
|
|
5295
|
-
}, null, 8, Ri)) :
|
|
5296
|
-
e.timestamp ? (
|
|
5294
|
+
textContent: _u(e.title)
|
|
5295
|
+
}, null, 8, Ri)) : U("", !0),
|
|
5296
|
+
e.timestamp ? (v(), F("span", {
|
|
5297
5297
|
key: 1,
|
|
5298
5298
|
class: "content-time",
|
|
5299
|
-
textContent:
|
|
5300
|
-
}, null, 8, Ii)) :
|
|
5299
|
+
textContent: _u(e.timestamp)
|
|
5300
|
+
}, null, 8, Ii)) : U("", !0),
|
|
5301
5301
|
C("div", Pi, [
|
|
5302
5302
|
R(r.$slots, "default")
|
|
5303
5303
|
])
|