halo-fe 1.0.25 → 1.0.26
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -1
- package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
- package/dist/main.js +3482 -3071
- package/dist/style.css +1 -1
- package/esm/coms/@types/PagerEmit.d.ts +11 -0
- package/esm/coms/@types/PagerProps.d.ts +18 -0
- package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
- package/esm/coms/@types/TableEmit.d.ts +10 -0
- package/esm/coms/@types/TableProps.d.ts +14 -2
- package/esm/coms/@types/index.d.ts +4 -1
- package/esm/coms/controls/@types/CodeIntelli.d.ts +6 -0
- package/esm/coms/controls/@types/CodeProps.d.ts +31 -2
- package/esm/coms/controls/@types/Range.d.ts +1 -1
- package/esm/coms/controls/Code.vue.d.ts +15 -25
- package/esm/coms/layouts/Row.vue.d.ts +2 -1
- package/esm/coms/pagers/Index.vue.d.ts +8 -1
- package/esm/coms/pagers/index.d.ts +2 -2
- package/esm/coms/progresses/Circle.vue.d.ts +2 -0
- package/esm/coms/progresses/Index.vue.d.ts +6 -3
- package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
- package/esm/coms/progresses/index.d.ts +2 -1
- package/esm/coms/tables/Index.vue.d.ts +22 -3
- package/esm/drivers/@types/IOpen.d.ts +1 -1
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
- package/esm/drivers/cdns/Cdn.d.ts +1 -1
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +2 -6
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
- package/esm/drivers/encoders/IEncoder.d.ts +2 -5
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
- package/esm/drivers/excels/Excel.d.ts +1 -1
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -1
- package/esm/drivers/explainers/ExplainerFactory.d.ts +2 -2
- package/esm/drivers/features/FeatureFactory.d.ts +2 -2
- package/esm/drivers/features/IFeature.d.ts +2 -6
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +1 -1
- package/esm/drivers/features/implements/I18NFeature.d.ts +1 -1
- package/esm/drivers/features/implements/SortFeature.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
- package/esm/drivers/hashers/IHasher.d.ts +2 -5
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/https/Http.d.ts +10 -6
- package/esm/drivers/https/HttpFactory.d.ts +2 -7
- package/esm/drivers/https/IHttp.d.ts +12 -12
- package/esm/drivers/https/entities/HttpResponse.d.ts +5 -1
- package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
- package/esm/drivers/https/implements/HaloHttp.d.ts +1 -1
- package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
- package/esm/drivers/i18ns/I18n.d.ts +1 -1
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/index.d.ts +50 -0
- package/esm/drivers/messengers/MessengerFactory.d.ts +2 -2
- package/esm/drivers/providers/IProvider.d.ts +19 -15
- package/esm/drivers/providers/Provider.d.ts +11 -9
- package/esm/drivers/providers/ProviderFactory.d.ts +5 -9
- package/esm/drivers/providers/implements/CookieProvider.d.ts +8 -8
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +20 -10
- package/esm/drivers/providers/implements/StorageProvider.d.ts +8 -8
- package/esm/drivers/signers/ISigner.d.ts +1 -1
- package/esm/drivers/signers/Signer.d.ts +1 -1
- package/esm/drivers/signers/SignerFactory.d.ts +2 -2
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
- package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +16 -0
- package/esm/drivers/sockets/@types/index.d.ts +2 -0
- package/esm/drivers/sockets/ISocket.d.ts +7 -3
- package/esm/drivers/sockets/Socket.d.ts +10 -1
- package/esm/drivers/sockets/SocketFactory.d.ts +1 -1
- package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +26 -0
- package/esm/drivers/sockets/entities/index.d.ts +3 -0
- package/esm/drivers/sockets/implement/DefaultSocket.d.ts +0 -2
- package/esm/drivers/sockets/index.d.ts +3 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/drivers/ssos/Sso.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +2 -2
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/SecretSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
- package/esm/drivers/tasks/ITask.d.ts +7 -3
- package/esm/drivers/tasks/Task.d.ts +2 -1
- package/esm/drivers/tasks/TaskFactory.d.ts +2 -2
- package/esm/drivers/tasks/implement/MemoryTask.d.ts +5 -3
- package/esm/drivers/templates/TemplateFactory.d.ts +2 -2
- package/esm/drivers/util/UtilFactory.d.ts +1 -1
- package/esm/drivers/util/implements/ArrayUtil.d.ts +5 -5
- package/esm/drivers/util/implements/EventUtil.d.ts +6 -6
- package/esm/drivers/util/implements/JsonUtil.d.ts +5 -0
- package/esm/drivers/util/implements/SignUtil.d.ts +1 -1
- package/esm/drivers/util/implements/StringUtil.d.ts +1 -1
- package/esm/drivers/utilities/IUtility.d.ts +3 -0
- package/esm/drivers/utilities/Utility.d.ts +3 -0
- package/esm/drivers/utilities/UtilityFactory.d.ts +6 -6
- package/esm/drivers/utilities/implement/EventUtility.d.ts +3 -6
- package/esm/drivers/utilities/implement/SaveUtility.d.ts +48 -3
- package/esm/drivers/videos/VideoFactory.d.ts +2 -2
- package/esm/drivers/voices/VoiceFactory.d.ts +2 -2
- package/esm/factory/Factories.d.ts +99 -0
- package/esm/factory/Factory.d.ts +41 -0
- package/esm/factory/IFactory.d.ts +40 -0
- package/esm/factory/Utils.d.ts +29 -0
- package/esm/factory/index.d.ts +4 -0
- package/esm/factorying/Factory.d.ts +3 -3
- package/esm/factorying/IFactory.d.ts +1 -1
- package/esm/main.d.ts +1 -2
- package/esm/repos/Repo.d.ts +5 -0
- package/esm/repos/RepoFactory.d.ts +20 -1
- package/esm/repos/implements/PageRepo.d.ts +30 -0
- package/esm/repos/implements/QueryRepo.d.ts +64 -0
- package/esm/repos/implements/SettingRepo.d.ts +1 -0
- package/esm/repos/index.d.ts +10 -1
- package/esm/svcs/SvcFactory.d.ts +1 -1
- package/esm/svcs/implement/ConfigSvc.d.ts +9 -9
- package/esm/svcs/implement/DriverSvc.d.ts +1 -35
- package/esm/svcs/index.d.ts +6 -15
- package/package.json +9 -9
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class F {
|
2
2
|
constructor(e, s, r, i, n) {
|
3
3
|
this.kind = e, this.input = s, this.begin = r, this.end = i, this.file = n;
|
4
4
|
}
|
@@ -21,7 +21,7 @@ class V {
|
|
21
21
|
}
|
22
22
|
}
|
23
23
|
const ft = Object.prototype.toString, be = String.prototype.toLowerCase, ce = Object.hasOwnProperty;
|
24
|
-
function
|
24
|
+
function _(t) {
|
25
25
|
return typeof t == "string";
|
26
26
|
}
|
27
27
|
function w(t) {
|
@@ -37,13 +37,13 @@ function gt(t) {
|
|
37
37
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
38
38
|
}
|
39
39
|
function c(t) {
|
40
|
-
return t = d(t),
|
40
|
+
return t = d(t), _(t) ? t : v(t) ? "" : k(t) ? t.map((e) => c(e)).join("") : String(t);
|
41
41
|
}
|
42
42
|
function ue(t) {
|
43
|
-
return t = d(t), k(t) ? t :
|
43
|
+
return t = d(t), k(t) ? t : _(t) && t.length > 0 ? [t] : yt(t) ? Array.from(t) : te(t) ? Object.keys(t).map((e) => [e, t[e]]) : [];
|
44
44
|
}
|
45
45
|
function T(t) {
|
46
|
-
return t = d(t),
|
46
|
+
return t = d(t), v(t) ? [] : k(t) ? t : [t];
|
47
47
|
}
|
48
48
|
function d(t) {
|
49
49
|
return t instanceof V && w(t.valueOf) ? t.valueOf() : t;
|
@@ -57,7 +57,7 @@ function de(t) {
|
|
57
57
|
function He(t) {
|
58
58
|
return t && w(t.toLiquid) ? He(t.toLiquid()) : t;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function v(t) {
|
61
61
|
return t == null;
|
62
62
|
}
|
63
63
|
function mt(t) {
|
@@ -215,7 +215,7 @@ function K(t, e = `unexpected ${JSON.stringify(t)}`) {
|
|
215
215
|
}
|
216
216
|
class Dt extends V {
|
217
217
|
equals(e) {
|
218
|
-
return
|
218
|
+
return v(d(e));
|
219
219
|
}
|
220
220
|
gt() {
|
221
221
|
return !1;
|
@@ -235,7 +235,7 @@ class Dt extends V {
|
|
235
235
|
}
|
236
236
|
class se extends V {
|
237
237
|
equals(e) {
|
238
|
-
return e instanceof se ? !1 : (e = d(e),
|
238
|
+
return e instanceof se ? !1 : (e = d(e), _(e) || k(e) ? e.length === 0 : te(e) ? Object.keys(e).length === 0 : !1);
|
239
239
|
}
|
240
240
|
gt() {
|
241
241
|
return !1;
|
@@ -255,7 +255,7 @@ class se extends V {
|
|
255
255
|
}
|
256
256
|
class qt extends se {
|
257
257
|
equals(e) {
|
258
|
-
return e === !1 ||
|
258
|
+
return e === !1 || v(d(e)) ? !0 : _(e) ? /^\s*$/.test(e) : super.equals(e);
|
259
259
|
}
|
260
260
|
}
|
261
261
|
class pe extends V {
|
@@ -331,7 +331,7 @@ var ee = function() {
|
|
331
331
|
return e;
|
332
332
|
}, ee.apply(this, arguments);
|
333
333
|
};
|
334
|
-
function
|
334
|
+
function O(t, e, s, r) {
|
335
335
|
function i(n) {
|
336
336
|
return n instanceof s ? n : new s(function(o) {
|
337
337
|
o(n);
|
@@ -359,7 +359,7 @@ function S(t, e, s, r) {
|
|
359
359
|
});
|
360
360
|
}
|
361
361
|
function N(t) {
|
362
|
-
return
|
362
|
+
return O(this, void 0, void 0, function* () {
|
363
363
|
if (!X(t))
|
364
364
|
return t;
|
365
365
|
let e, s = !1, r = "next";
|
@@ -498,8 +498,8 @@ function Bt(t, e) {
|
|
498
498
|
if (!a)
|
499
499
|
return s;
|
500
500
|
const l = {};
|
501
|
-
for (const
|
502
|
-
l[
|
501
|
+
for (const S of r)
|
502
|
+
l[S] = !0;
|
503
503
|
let h = String(a(t, { flags: l, width: i, modifier: n })), u = Vt.has(o) ? " " : "0", p = i || At[o] || 0;
|
504
504
|
return l["^"] ? h = h.toUpperCase() : l["#"] && (h = Tt(h)), l._ ? u = " " : l[0] && (u = "0"), l["-"] && (p = 0), J(h, p, u);
|
505
505
|
}
|
@@ -528,9 +528,9 @@ const jt = 6e4, Ut = /([zZ]|([+-])(\d{2}):(\d{2}))$/, tt = [
|
|
528
528
|
"Friday",
|
529
529
|
"Saturday"
|
530
530
|
], Wt = st.map((t) => t.slice(0, 3));
|
531
|
-
class
|
531
|
+
class R {
|
532
532
|
constructor(e, s, r) {
|
533
|
-
this.locale = s, this.DateTimeFormat = et(), this.date = new Date(e), this.timezoneFixed = r !== void 0, r === void 0 && (r = this.date.getTimezoneOffset()), this.timezoneOffset =
|
533
|
+
this.locale = s, this.DateTimeFormat = et(), this.date = new Date(e), this.timezoneFixed = r !== void 0, r === void 0 && (r = this.date.getTimezoneOffset()), this.timezoneOffset = _(r) ? R.getTimezoneOffset(r, this.date) : r, this.timezoneName = _(r) ? r : "";
|
534
534
|
const i = (this.date.getTimezoneOffset() - this.timezoneOffset) * jt, n = this.date.getTime() + i;
|
535
535
|
this.displayDate = new Date(n);
|
536
536
|
}
|
@@ -617,12 +617,12 @@ class O {
|
|
617
617
|
static createDateFixedToTimezone(e, s) {
|
618
618
|
const r = e.match(Ut);
|
619
619
|
if (r && r[1] === "Z")
|
620
|
-
return new
|
620
|
+
return new R(+new Date(e), s, 0);
|
621
621
|
if (r && r[2] && r[3] && r[4]) {
|
622
622
|
const [, , i, n, o] = r, a = (i === "+" ? -1 : 1) * (parseInt(n, 10) * 60 + parseInt(o, 10));
|
623
|
-
return new
|
623
|
+
return new R(+new Date(e), s, a);
|
624
624
|
}
|
625
|
-
return new
|
625
|
+
return new R(e, s);
|
626
626
|
}
|
627
627
|
static getTimezoneOffset(e, s) {
|
628
628
|
const r = s.toLocaleString("en-US", { timeZone: e }), i = s.toLocaleString("en-US", { timeZone: "UTC" }), n = new Date(r);
|
@@ -640,16 +640,16 @@ class he {
|
|
640
640
|
e = xe(e), b(e <= this.limit, this.message);
|
641
641
|
}
|
642
642
|
}
|
643
|
-
class ge extends
|
643
|
+
class ge extends F {
|
644
644
|
constructor(e, [s, r], i, n, o, a, l, h) {
|
645
645
|
super(e, i, n, o, h), this.trimLeft = !1, this.trimRight = !1;
|
646
646
|
const u = i[s] === "-", p = i[r - 1] === "-";
|
647
|
-
let
|
648
|
-
for (;
|
649
|
-
|
650
|
-
for (; Y >
|
647
|
+
let S = u ? s + 1 : s, Y = p ? r - 1 : r;
|
648
|
+
for (; S < Y && f[i.charCodeAt(S)] & H; )
|
649
|
+
S++;
|
650
|
+
for (; Y > S && f[i.charCodeAt(Y - 1)] & H; )
|
651
651
|
Y--;
|
652
|
-
this.contentRange = [
|
652
|
+
this.contentRange = [S, Y], this.trimLeft = u || a, this.trimRight = p || l;
|
653
653
|
}
|
654
654
|
get content() {
|
655
655
|
return this.input.slice(this.contentRange[0], this.contentRange[1]);
|
@@ -670,7 +670,7 @@ class Yt extends ge {
|
|
670
670
|
super(g.Output, u, e, s, r, o, a, n);
|
671
671
|
}
|
672
672
|
}
|
673
|
-
class De extends
|
673
|
+
class De extends F {
|
674
674
|
constructor(e, s, r, i) {
|
675
675
|
super(g.HTML, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.trimLeft = 0, this.trimRight = 0;
|
676
676
|
}
|
@@ -678,17 +678,17 @@ class De extends L {
|
|
678
678
|
return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
|
679
679
|
}
|
680
680
|
}
|
681
|
-
class Jt extends
|
681
|
+
class Jt extends F {
|
682
682
|
constructor(e, s, r, i) {
|
683
683
|
super(g.Number, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.content = Number(this.getText());
|
684
684
|
}
|
685
685
|
}
|
686
|
-
class ne extends
|
686
|
+
class ne extends F {
|
687
687
|
constructor(e, s, r, i) {
|
688
688
|
super(g.Word, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.content = this.getText();
|
689
689
|
}
|
690
690
|
}
|
691
|
-
class Qt extends
|
691
|
+
class Qt extends F {
|
692
692
|
constructor(e, s, r, i) {
|
693
693
|
super(g.Literal, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.literal = this.getText(), this.content = Xe[this.literal];
|
694
694
|
}
|
@@ -717,7 +717,7 @@ const qe = {
|
|
717
717
|
or: 0
|
718
718
|
/* OperatorType.Binary */
|
719
719
|
};
|
720
|
-
class Gt extends
|
720
|
+
class Gt extends F {
|
721
721
|
constructor(e, s, r, i) {
|
722
722
|
super(g.Operator, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.operator = this.getText();
|
723
723
|
}
|
@@ -726,17 +726,17 @@ class Gt extends L {
|
|
726
726
|
return e in qe ? qe[e] : 1;
|
727
727
|
}
|
728
728
|
}
|
729
|
-
class Me extends
|
729
|
+
class Me extends F {
|
730
730
|
constructor(e, s, r, i, n, o) {
|
731
731
|
super(g.PropertyAccess, r, i, n, o), this.variable = e, this.props = s;
|
732
732
|
}
|
733
733
|
}
|
734
|
-
class Xt extends
|
734
|
+
class Xt extends F {
|
735
735
|
constructor(e, s, r, i, n, o) {
|
736
736
|
super(g.Filter, r, i, n, o), this.name = e, this.args = s;
|
737
737
|
}
|
738
738
|
}
|
739
|
-
class Kt extends
|
739
|
+
class Kt extends F {
|
740
740
|
constructor(e, s, r, i, n, o) {
|
741
741
|
super(g.Hash, e, s, r, o), this.input = e, this.begin = s, this.end = r, this.name = i, this.value = n, this.file = o;
|
742
742
|
}
|
@@ -779,12 +779,12 @@ function ts(t) {
|
|
779
779
|
}
|
780
780
|
return e;
|
781
781
|
}
|
782
|
-
class ss extends
|
782
|
+
class ss extends F {
|
783
783
|
constructor(e, s, r, i) {
|
784
784
|
super(g.Quoted, e, s, r, i), this.input = e, this.begin = s, this.end = r, this.file = i, this.content = ts(this.getText());
|
785
785
|
}
|
786
786
|
}
|
787
|
-
class rs extends
|
787
|
+
class rs extends F {
|
788
788
|
constructor(e, s, r, i, n, o) {
|
789
789
|
super(g.Range, e, s, r, o), this.input = e, this.begin = s, this.end = r, this.lhs = i, this.rhs = n, this.file = o;
|
790
790
|
}
|
@@ -794,7 +794,7 @@ class is extends ge {
|
|
794
794
|
super(g.Tag, [s, r], e, s, r, !1, !1, n), this.tokenizer = new z(e, i.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank(), this.args = this.tokenizer.remaining();
|
795
795
|
}
|
796
796
|
}
|
797
|
-
class ns extends
|
797
|
+
class ns extends F {
|
798
798
|
constructor(e, s, r, i, n, o) {
|
799
799
|
super(g.FilteredValue, r, i, n, o), this.initial = e, this.filters = s, this.input = r, this.begin = i, this.end = n, this.file = o;
|
800
800
|
}
|
@@ -999,7 +999,7 @@ function ys(t, e, s) {
|
|
999
999
|
});
|
1000
1000
|
}
|
1001
1001
|
function ws(t) {
|
1002
|
-
return
|
1002
|
+
return O(this, void 0, void 0, function* () {
|
1003
1003
|
return new Promise((e, s) => {
|
1004
1004
|
const r = new XMLHttpRequest();
|
1005
1005
|
r.onload = () => {
|
@@ -1017,7 +1017,7 @@ function Ts(t) {
|
|
1017
1017
|
return e.responseText;
|
1018
1018
|
}
|
1019
1019
|
function ks(t) {
|
1020
|
-
return
|
1020
|
+
return O(this, void 0, void 0, function* () {
|
1021
1021
|
return !0;
|
1022
1022
|
});
|
1023
1023
|
}
|
@@ -1039,7 +1039,7 @@ var vs = /* @__PURE__ */ Object.freeze({
|
|
1039
1039
|
sep: _s
|
1040
1040
|
});
|
1041
1041
|
function Ls(t, e, ...s) {
|
1042
|
-
return t = d(t), k(t) ||
|
1042
|
+
return t = d(t), k(t) || _(t) ? t.length ? t : e : t === !1 && new Map(s).get("allow_false") ? !1 : re(t, this.context) ? e : t;
|
1043
1043
|
}
|
1044
1044
|
function Ae(t, e = 0) {
|
1045
1045
|
return JSON.stringify(t, null, e);
|
@@ -1116,21 +1116,21 @@ class $s {
|
|
1116
1116
|
this.mapping = e, this.sep = "/";
|
1117
1117
|
}
|
1118
1118
|
exists(e) {
|
1119
|
-
return
|
1119
|
+
return O(this, void 0, void 0, function* () {
|
1120
1120
|
return this.existsSync(e);
|
1121
1121
|
});
|
1122
1122
|
}
|
1123
1123
|
existsSync(e) {
|
1124
|
-
return !
|
1124
|
+
return !v(this.mapping[e]);
|
1125
1125
|
}
|
1126
1126
|
readFile(e) {
|
1127
|
-
return
|
1127
|
+
return O(this, void 0, void 0, function* () {
|
1128
1128
|
return this.readFileSync(e);
|
1129
1129
|
});
|
1130
1130
|
}
|
1131
1131
|
readFileSync(e) {
|
1132
1132
|
const s = this.mapping[e];
|
1133
|
-
if (
|
1133
|
+
if (v(s))
|
1134
1134
|
throw new Error(`ENOENT: ${e}`);
|
1135
1135
|
return s;
|
1136
1136
|
}
|
@@ -1153,6 +1153,7 @@ const U = {
|
|
1153
1153
|
partials: ["."],
|
1154
1154
|
relativeReference: !0,
|
1155
1155
|
jekyllInclude: !1,
|
1156
|
+
keyValueSeparator: ":",
|
1156
1157
|
cache: void 0,
|
1157
1158
|
extname: "",
|
1158
1159
|
fs: vs,
|
@@ -1194,7 +1195,7 @@ function Cs(t) {
|
|
1194
1195
|
}
|
1195
1196
|
function G(t) {
|
1196
1197
|
let e = [];
|
1197
|
-
return k(t) && (e = t),
|
1198
|
+
return k(t) && (e = t), _(t) && (e = [t]), e;
|
1198
1199
|
}
|
1199
1200
|
function As(t, e) {
|
1200
1201
|
let s = !1;
|
@@ -1420,7 +1421,7 @@ class z {
|
|
1420
1421
|
return;
|
1421
1422
|
let i;
|
1422
1423
|
this.skipBlank();
|
1423
|
-
const n = e ? "=" : ":";
|
1424
|
+
const n = _(e) ? e : e ? "=" : ":";
|
1424
1425
|
return this.peek() === n && (++this.p, i = this.readValue()), new Kt(this.input, s, this.p, r, i, this.file);
|
1425
1426
|
}
|
1426
1427
|
remaining() {
|
@@ -1612,7 +1613,7 @@ function Us(t) {
|
|
1612
1613
|
super(e, s, r), w(t.parse) && t.parse.call(this, e, s);
|
1613
1614
|
}
|
1614
1615
|
*render(e, s) {
|
1615
|
-
const r = yield new W(this.token.args).render(e);
|
1616
|
+
const r = yield new W(this.token.args, e.opts.keyValueSeparator).render(e);
|
1616
1617
|
return yield t.render.call(this, e, s, r);
|
1617
1618
|
}
|
1618
1619
|
};
|
@@ -1631,7 +1632,7 @@ class at {
|
|
1631
1632
|
return yield this.handler.apply({ context: s, liquid: this.liquid }, [e, ...r]);
|
1632
1633
|
}
|
1633
1634
|
}
|
1634
|
-
class
|
1635
|
+
class L {
|
1635
1636
|
/**
|
1636
1637
|
* @param str the value to be valuated, eg.: "foobar" | truncate: 3
|
1637
1638
|
*/
|
@@ -1657,7 +1658,7 @@ class Ws extends me {
|
|
1657
1658
|
var r;
|
1658
1659
|
super(e);
|
1659
1660
|
const i = new z(e.input, s.options.operators, e.file, e.contentRange);
|
1660
|
-
this.value = new
|
1661
|
+
this.value = new L(i.readFilteredValue(), s);
|
1661
1662
|
const n = this.value.filters, o = s.options.outputEscape;
|
1662
1663
|
!(!((r = n[n.length - 1]) === null || r === void 0) && r.raw) && o && n.push(new at(toString.call(o), o, [], s));
|
1663
1664
|
}
|
@@ -1851,7 +1852,7 @@ class I {
|
|
1851
1852
|
return D(this._getFromScope(e, s));
|
1852
1853
|
}
|
1853
1854
|
*_getFromScope(e, s, r = this.strictVariables) {
|
1854
|
-
|
1855
|
+
_(s) && (s = s.split("."));
|
1855
1856
|
for (let i = 0; i < s.length; i++)
|
1856
1857
|
if (e = yield er(e, s[i], this.ownPropertyOnly), r && mt(e))
|
1857
1858
|
throw new Lt(s.slice(0, i + 1).join("."));
|
@@ -1886,7 +1887,7 @@ class I {
|
|
1886
1887
|
}
|
1887
1888
|
}
|
1888
1889
|
function er(t, e, s) {
|
1889
|
-
if (t = He(t),
|
1890
|
+
if (t = He(t), v(t))
|
1890
1891
|
return t;
|
1891
1892
|
if (k(t) && e < 0)
|
1892
1893
|
return t[t.length + +e];
|
@@ -1906,7 +1907,7 @@ function rr(t) {
|
|
1906
1907
|
function ir(t) {
|
1907
1908
|
if (ce.call(t, "size") || t.size !== void 0)
|
1908
1909
|
return t.size;
|
1909
|
-
if (k(t) ||
|
1910
|
+
if (k(t) || _(t))
|
1910
1911
|
return t.length;
|
1911
1912
|
if (typeof t == "object")
|
1912
1913
|
return Object.keys(t).length;
|
@@ -1963,7 +1964,7 @@ var vr = /* @__PURE__ */ Object.freeze({
|
|
1963
1964
|
slugify: xr
|
1964
1965
|
});
|
1965
1966
|
const Lr = x(function(t, e) {
|
1966
|
-
const s = T(t), r =
|
1967
|
+
const s = T(t), r = v(e) ? " " : c(e), i = s.length * (1 + r.length);
|
1967
1968
|
return this.context.memoryLimit.use(i), s.join(r);
|
1968
1969
|
}), Fr = x((t) => k(t) ? We(t) : ""), Sr = x((t) => k(t) ? t[0] : ""), Or = x(function(t) {
|
1969
1970
|
const e = T(t);
|
@@ -2005,7 +2006,7 @@ function* Dr(t, e) {
|
|
2005
2006
|
}
|
2006
2007
|
function qr(t) {
|
2007
2008
|
const e = T(t);
|
2008
|
-
return this.context.memoryLimit.use(e.length), e.filter((s) => !
|
2009
|
+
return this.context.memoryLimit.use(e.length), e.filter((s) => !v(d(s)));
|
2009
2010
|
}
|
2010
2011
|
function ht(t, e = []) {
|
2011
2012
|
const s = T(t), r = T(e);
|
@@ -2031,7 +2032,7 @@ function Pr(t) {
|
|
2031
2032
|
return s.shift(), s;
|
2032
2033
|
}
|
2033
2034
|
function Cr(t, e, s = 1) {
|
2034
|
-
return t = d(t),
|
2035
|
+
return t = d(t), v(t) ? [] : (k(t) || (t = c(t)), e = e < 0 ? t.length + e : e, this.context.memoryLimit.use(s), t.slice(e, e + s));
|
2035
2036
|
}
|
2036
2037
|
function* Ar(t, e, s) {
|
2037
2038
|
const r = [];
|
@@ -2042,7 +2043,7 @@ function* Ar(t, e, s) {
|
|
2042
2043
|
return t.filter((n, o) => s === void 0 ? $(r[o], this.context) : P(r[o], s));
|
2043
2044
|
}
|
2044
2045
|
function* Vr(t, e, s) {
|
2045
|
-
const r = [], i = new
|
2046
|
+
const r = [], i = new L(c(s), this.liquid), n = T(t);
|
2046
2047
|
this.context.memoryLimit.use(n.length);
|
2047
2048
|
for (const o of n)
|
2048
2049
|
(yield i.value(this.context.spawn({ [e]: o }))) && r.push(o);
|
@@ -2060,7 +2061,7 @@ function* Br(t, e) {
|
|
2060
2061
|
return [...s.entries()].map(([i, n]) => ({ name: i, items: n }));
|
2061
2062
|
}
|
2062
2063
|
function* jr(t, e, s) {
|
2063
|
-
const r = /* @__PURE__ */ new Map(), i = new
|
2064
|
+
const r = /* @__PURE__ */ new Map(), i = new L(c(s), this.liquid);
|
2064
2065
|
t = T(t), this.context.memoryLimit.use(t.length);
|
2065
2066
|
for (const n of t) {
|
2066
2067
|
const o = yield i.value(this.context.spawn({ [e]: n }));
|
@@ -2077,7 +2078,7 @@ function* Ur(t, e, s) {
|
|
2077
2078
|
}
|
2078
2079
|
}
|
2079
2080
|
function* Hr(t, e, s) {
|
2080
|
-
const r = new
|
2081
|
+
const r = new L(c(s), this.liquid), i = T(t);
|
2081
2082
|
for (const n of i)
|
2082
2083
|
if (yield r.value(this.context.spawn({ [e]: n })))
|
2083
2084
|
return n;
|
@@ -2086,7 +2087,7 @@ function Wr(t) {
|
|
2086
2087
|
return t = T(t), this.context.memoryLimit.use(t.length), [...new Set(t)];
|
2087
2088
|
}
|
2088
2089
|
function Yr(t, e = 1) {
|
2089
|
-
if (t = d(t),
|
2090
|
+
if (t = d(t), v(t))
|
2090
2091
|
return [];
|
2091
2092
|
k(t) || (t = c(t)), this.context.memoryLimit.use(e);
|
2092
2093
|
const s = [...t].sort(() => Math.random() - 0.5);
|
@@ -2124,7 +2125,7 @@ function we(t, e, s) {
|
|
2124
2125
|
const o = ((r = t == null ? void 0 : t.length) !== null && r !== void 0 ? r : 0) + ((i = e == null ? void 0 : e.length) !== null && i !== void 0 ? i : 0) + ((n = s == null ? void 0 : s.length) !== null && n !== void 0 ? n : 0);
|
2125
2126
|
this.context.memoryLimit.use(o);
|
2126
2127
|
const a = ut(t, this.context.opts, s);
|
2127
|
-
return a ? (e = d(e), e =
|
2128
|
+
return a ? (e = d(e), e = v(e) ? this.context.opts.dateFormat : c(e), Z(a, e)) : t;
|
2128
2129
|
}
|
2129
2130
|
function Qr(t) {
|
2130
2131
|
return we.call(this, t, "%Y-%m-%dT%H:%M:%S%:z");
|
@@ -2151,7 +2152,7 @@ function ct(t, e, s, r) {
|
|
2151
2152
|
function ut(t, e, s) {
|
2152
2153
|
let r;
|
2153
2154
|
const i = s ?? e.timezoneOffset, n = e.locale;
|
2154
|
-
return t = d(t), t === "now" || t === "today" ? r = new
|
2155
|
+
return t = d(t), t === "now" || t === "today" ? r = new R(Date.now(), n, i) : de(t) ? r = new R(t * 1e3, n, i) : _(t) ? /^\d+$/.test(t) ? r = new R(+t * 1e3, n, i) : e.preserveTimezones && s === void 0 ? r = R.createDateFixedToTimezone(t, n) : r = new R(t, n, i) : r = new R(t, n, i), r.valid() ? r : void 0;
|
2155
2156
|
}
|
2156
2157
|
var Kr = /* @__PURE__ */ Object.freeze({
|
2157
2158
|
__proto__: null,
|
@@ -2305,7 +2306,7 @@ var bi = /* @__PURE__ */ Object.freeze({
|
|
2305
2306
|
const xi = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Is), mr), vr), Jr), Kr), bi), ot);
|
2306
2307
|
class _i extends m {
|
2307
2308
|
constructor(e, s, r) {
|
2308
|
-
super(e, s, r), this.key = this.tokenizer.readIdentifier().content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new
|
2309
|
+
super(e, s, r), this.key = this.tokenizer.readIdentifier().content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new L(this.tokenizer.readFilteredValue(), this.liquid);
|
2309
2310
|
}
|
2310
2311
|
*render(e) {
|
2311
2312
|
e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
|
@@ -2318,7 +2319,7 @@ class vi extends m {
|
|
2318
2319
|
const n = this.tokenizer.readIdentifier(), o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
|
2319
2320
|
if (!n.size() || o.content !== "in" || !a)
|
2320
2321
|
throw new Error(`illegal tag: ${e.getText()}`);
|
2321
|
-
this.variable = n.content, this.collection = a, this.hash = new W(this.tokenizer.remaining()), this.templates = [], this.elseTemplates = [];
|
2322
|
+
this.variable = n.content, this.collection = a, this.hash = new W(this.tokenizer.remaining(), r.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
|
2322
2323
|
let l;
|
2323
2324
|
const h = i.parseStream(s).on("start", () => l = this.templates).on("tag:else", (u) => {
|
2324
2325
|
K(u.args), l = this.elseTemplates;
|
@@ -2387,7 +2388,7 @@ class Oi extends m {
|
|
2387
2388
|
}
|
2388
2389
|
class Ri extends m {
|
2389
2390
|
constructor(e, s, r, i) {
|
2390
|
-
super(e, s, r), this.branches = [], this.elseTemplates = [], this.value = new
|
2391
|
+
super(e, s, r), this.branches = [], this.elseTemplates = [], this.value = new L(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
2391
2392
|
let n = [], o = 0;
|
2392
2393
|
const a = i.parseStream(s).on("tag:when", (l) => {
|
2393
2394
|
if (o > 0)
|
@@ -2454,7 +2455,7 @@ class zi extends m {
|
|
2454
2455
|
n.p = o;
|
2455
2456
|
break;
|
2456
2457
|
}
|
2457
|
-
this.hash = new W(n.remaining());
|
2458
|
+
this.hash = new W(n.remaining(), r.options.keyValueSeparator);
|
2458
2459
|
}
|
2459
2460
|
*render(e, s) {
|
2460
2461
|
const { liquid: r, hash: i } = this, n = yield ke(this.file, e, r);
|
@@ -2469,8 +2470,8 @@ class zi extends m {
|
|
2469
2470
|
a.forloop = new pe(u.length, l.getText(), h);
|
2470
2471
|
for (const p of u) {
|
2471
2472
|
a[h] = p;
|
2472
|
-
const
|
2473
|
-
yield r.renderer.renderTemplates(
|
2473
|
+
const S = yield r._parsePartialFile(n, o.sync, this.currentFile);
|
2474
|
+
yield r.renderer.renderTemplates(S, o, s), a.forloop.next();
|
2474
2475
|
}
|
2475
2476
|
} else {
|
2476
2477
|
const l = yield r._parsePartialFile(n, o.sync, this.currentFile);
|
@@ -2504,7 +2505,7 @@ class Ni extends m {
|
|
2504
2505
|
const { tokenizer: n } = e;
|
2505
2506
|
this.file = Te(n, this.liquid, i), this.currentFile = e.file;
|
2506
2507
|
const o = n.p;
|
2507
|
-
n.readIdentifier().content === "with" ? (n.skipBlank(), n.peek() !== ":" ? this.withVar = n.readValue() : n.p = o) : n.p = o, this.hash = new W(n.remaining(),
|
2508
|
+
n.readIdentifier().content === "with" ? (n.skipBlank(), n.peek() !== ":" ? this.withVar = n.readValue() : n.p = o) : n.p = o, this.hash = new W(n.remaining(), r.options.jekyllInclude || r.options.keyValueSeparator);
|
2508
2509
|
}
|
2509
2510
|
*render(e, s) {
|
2510
2511
|
const { liquid: r, hash: i, withVar: n } = this, { renderer: o } = r, a = yield ke(this.file, e, r);
|
@@ -2549,11 +2550,11 @@ class Mi extends m {
|
|
2549
2550
|
super(e, s, r), this.branches = [];
|
2550
2551
|
let n = [];
|
2551
2552
|
i.parseStream(s).on("start", () => this.branches.push({
|
2552
|
-
value: new
|
2553
|
+
value: new L(e.args, this.liquid),
|
2553
2554
|
templates: n = []
|
2554
2555
|
})).on("tag:elsif", (o) => {
|
2555
2556
|
b(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
|
2556
|
-
value: new
|
2557
|
+
value: new L(o.args, this.liquid),
|
2557
2558
|
templates: n = []
|
2558
2559
|
});
|
2559
2560
|
}).on("tag:else", (o) => {
|
@@ -2589,7 +2590,7 @@ class Ii extends m {
|
|
2589
2590
|
}
|
2590
2591
|
class $i extends m {
|
2591
2592
|
constructor(e, s, r, i) {
|
2592
|
-
super(e, s, r), this.file = Te(this.tokenizer, this.liquid, i), this.currentFile = e.file, this.args = new W(this.tokenizer.remaining()), this.templates = i.parseTokens(s);
|
2593
|
+
super(e, s, r), this.file = Te(this.tokenizer, this.liquid, i), this.currentFile = e.file, this.args = new W(this.tokenizer.remaining(), r.options.keyValueSeparator), this.templates = i.parseTokens(s);
|
2593
2594
|
}
|
2594
2595
|
*render(e, s) {
|
2595
2596
|
const { liquid: r, args: i, file: n } = this, { renderer: o } = r;
|
@@ -2602,7 +2603,7 @@ class $i extends m {
|
|
2602
2603
|
const l = yield r._parseLayoutFile(a, e.sync, this.currentFile);
|
2603
2604
|
e.setRegister("blockMode", C.STORE);
|
2604
2605
|
const h = yield o.renderTemplates(this.templates, e), u = e.getRegister("blocks");
|
2605
|
-
u[""] === void 0 && (u[""] = (p,
|
2606
|
+
u[""] === void 0 && (u[""] = (p, S) => S.write(h)), e.setRegister("blockMode", C.OUTPUT), e.push(yield i.render(e)), yield o.renderTemplates(l, e, s), e.pop();
|
2606
2607
|
}
|
2607
2608
|
}
|
2608
2609
|
class Pi extends m {
|
@@ -2671,7 +2672,7 @@ class Vi extends m {
|
|
2671
2672
|
const o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
|
2672
2673
|
if (o.content !== "in" || !a)
|
2673
2674
|
throw new Error(`illegal tag: ${e.getText()}`);
|
2674
|
-
this.variable = n.content, this.collection = a, this.args = new W(this.tokenizer.remaining()), this.templates = [];
|
2675
|
+
this.variable = n.content, this.collection = a, this.args = new W(this.tokenizer.remaining(), r.options.keyValueSeparator), this.templates = [];
|
2675
2676
|
let l;
|
2676
2677
|
const h = i.parseStream(s).on("start", () => l = this.templates).on("tag:endtablerow", () => h.stop()).on("template", (u) => l.push(u)).on("end", () => {
|
2677
2678
|
throw new Error(`tag ${e.getText()} not closed`);
|
@@ -2694,7 +2695,7 @@ class Bi extends m {
|
|
2694
2695
|
super(e, s, r), this.branches = [], this.elseTemplates = [];
|
2695
2696
|
let n = [], o = 0;
|
2696
2697
|
i.parseStream(s).on("start", () => this.branches.push({
|
2697
|
-
value: new
|
2698
|
+
value: new L(e.args, this.liquid),
|
2698
2699
|
test: re,
|
2699
2700
|
templates: n = []
|
2700
2701
|
})).on("tag:elsif", (a) => {
|
@@ -2703,7 +2704,7 @@ class Bi extends m {
|
|
2703
2704
|
return;
|
2704
2705
|
}
|
2705
2706
|
this.branches.push({
|
2706
|
-
value: new
|
2707
|
+
value: new L(a.args, this.liquid),
|
2707
2708
|
test: $,
|
2708
2709
|
templates: n = []
|
2709
2710
|
});
|
@@ -2741,7 +2742,7 @@ class Ui extends m {
|
|
2741
2742
|
}
|
2742
2743
|
class Hi extends m {
|
2743
2744
|
constructor(e, s, r) {
|
2744
|
-
super(e, s, r), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new
|
2745
|
+
super(e, s, r), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new L(this.tokenizer.readFilteredValue(), this.liquid));
|
2745
2746
|
}
|
2746
2747
|
*render(e, s) {
|
2747
2748
|
if (!this.value)
|
@@ -2803,7 +2804,7 @@ class dt {
|
|
2803
2804
|
return this.renderer.renderTemplates(e, i);
|
2804
2805
|
}
|
2805
2806
|
render(e, s, r) {
|
2806
|
-
return
|
2807
|
+
return O(this, void 0, void 0, function* () {
|
2807
2808
|
return N(this._render(e, s, Object.assign(Object.assign({}, r), { sync: !1 })));
|
2808
2809
|
});
|
2809
2810
|
}
|
@@ -2819,7 +2820,7 @@ class dt {
|
|
2819
2820
|
return this._render(i, s, r);
|
2820
2821
|
}
|
2821
2822
|
parseAndRender(e, s, r) {
|
2822
|
-
return
|
2823
|
+
return O(this, void 0, void 0, function* () {
|
2823
2824
|
return N(this._parseAndRender(e, s, Object.assign(Object.assign({}, r), { sync: !1 })));
|
2824
2825
|
});
|
2825
2826
|
}
|
@@ -2836,7 +2837,7 @@ class dt {
|
|
2836
2837
|
return new M(this).parseFile(e, s, r, i);
|
2837
2838
|
}
|
2838
2839
|
parseFile(e, s) {
|
2839
|
-
return
|
2840
|
+
return O(this, void 0, void 0, function* () {
|
2840
2841
|
return N(new M(this).parseFile(e, !1, s));
|
2841
2842
|
});
|
2842
2843
|
}
|
@@ -2848,7 +2849,7 @@ class dt {
|
|
2848
2849
|
return yield this._render(i, s, r);
|
2849
2850
|
}
|
2850
2851
|
renderFile(e, s, r) {
|
2851
|
-
return
|
2852
|
+
return O(this, void 0, void 0, function* () {
|
2852
2853
|
return N(this._renderFile(e, s, Object.assign(Object.assign({}, r), { sync: !1 })));
|
2853
2854
|
});
|
2854
2855
|
}
|
@@ -2856,17 +2857,17 @@ class dt {
|
|
2856
2857
|
return D(this._renderFile(e, s, Object.assign(Object.assign({}, r), { sync: !0 })));
|
2857
2858
|
}
|
2858
2859
|
renderFileToNodeStream(e, s, r) {
|
2859
|
-
return
|
2860
|
+
return O(this, void 0, void 0, function* () {
|
2860
2861
|
const i = yield this.parseFile(e);
|
2861
2862
|
return this.renderToNodeStream(i, s, r);
|
2862
2863
|
});
|
2863
2864
|
}
|
2864
2865
|
_evalValue(e, s) {
|
2865
|
-
const r = new
|
2866
|
+
const r = new L(e, this), i = s instanceof I ? s : new I(s, this.options);
|
2866
2867
|
return r.value(i);
|
2867
2868
|
}
|
2868
2869
|
evalValue(e, s) {
|
2869
|
-
return
|
2870
|
+
return O(this, void 0, void 0, function* () {
|
2870
2871
|
return N(this._evalValue(e, s));
|
2871
2872
|
});
|
2872
2873
|
}
|