@metapages/metapage 1.8.27 → 1.8.28
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/index.js
CHANGED
|
@@ -290,7 +290,7 @@ function ue(t) {
|
|
|
290
290
|
var e;
|
|
291
291
|
t.assignedMap = (e = t.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), t.operated || (t.operated = !0, t.parent && ue(t.parent));
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function kt() {
|
|
294
294
|
throw new Error("Cannot modify frozen object");
|
|
295
295
|
}
|
|
296
296
|
function Oe(t, e, s, n, i) {
|
|
@@ -318,12 +318,12 @@ function Oe(t, e, s, n, i) {
|
|
|
318
318
|
case 2:
|
|
319
319
|
for (const [a, u] of t)
|
|
320
320
|
Oe(a, a, s, n, i), Oe(u, a, s, n, i);
|
|
321
|
-
t.set = t.clear = t.delete =
|
|
321
|
+
t.set = t.clear = t.delete = kt;
|
|
322
322
|
break;
|
|
323
323
|
case 3:
|
|
324
324
|
for (const a of t)
|
|
325
325
|
Oe(a, a, s, n, i);
|
|
326
|
-
t.add = t.clear = t.delete =
|
|
326
|
+
t.add = t.clear = t.delete = kt;
|
|
327
327
|
break;
|
|
328
328
|
case 1:
|
|
329
329
|
Object.freeze(t);
|
|
@@ -404,7 +404,7 @@ function vt(t, e, s, n) {
|
|
|
404
404
|
fe(pe(o, e), s) && Ds(t, e);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ks(t, e, s, n, i) {
|
|
408
408
|
let { original: o, assignedMap: r, options: a } = t, u = t.copy;
|
|
409
409
|
u.length < o.length && ([o, u] = [u, o], [s, n] = [n, s]);
|
|
410
410
|
for (let l = 0; l < o.length; l += 1)
|
|
@@ -450,7 +450,7 @@ function Ns(t, e, s, n, i) {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ns({ original: t, copy: e, assignedMap: s }, n, i, o, r) {
|
|
454
454
|
s.forEach((a, u) => {
|
|
455
455
|
const l = pe(t, u), c = Fe(pe(e, u)), p = a ? Ie(t, u) ? z.Replace : z.Add : z.Remove;
|
|
456
456
|
if (fe(l, c) && p === z.Replace)
|
|
@@ -496,9 +496,9 @@ function $e(t, e, s, n) {
|
|
|
496
496
|
switch (t.type) {
|
|
497
497
|
case 0:
|
|
498
498
|
case 2:
|
|
499
|
-
return ks(t, e, s, n, i);
|
|
500
|
-
case 1:
|
|
501
499
|
return Ns(t, e, s, n, i);
|
|
500
|
+
case 1:
|
|
501
|
+
return ks(t, e, s, n, i);
|
|
502
502
|
case 3:
|
|
503
503
|
return Hs(t, e, s, n, i);
|
|
504
504
|
}
|
|
@@ -588,7 +588,7 @@ const ze = (t, e, s = !1) => {
|
|
|
588
588
|
[Be]() {
|
|
589
589
|
return this.entries();
|
|
590
590
|
}
|
|
591
|
-
}, Us = Reflect.ownKeys(ct),
|
|
591
|
+
}, Us = Reflect.ownKeys(ct), Nt = (t, e, { isValuesIterator: s }) => () => {
|
|
592
592
|
var n, i;
|
|
593
593
|
const o = e.next();
|
|
594
594
|
if (o.done)
|
|
@@ -650,7 +650,7 @@ const ze = (t, e, s = !1) => {
|
|
|
650
650
|
const e = t.setMap.keys();
|
|
651
651
|
return {
|
|
652
652
|
[Symbol.iterator]: () => this.values(),
|
|
653
|
-
next:
|
|
653
|
+
next: Nt(t, e, { isValuesIterator: !0 })
|
|
654
654
|
};
|
|
655
655
|
},
|
|
656
656
|
entries() {
|
|
@@ -659,7 +659,7 @@ const ze = (t, e, s = !1) => {
|
|
|
659
659
|
const e = t.setMap.keys();
|
|
660
660
|
return {
|
|
661
661
|
[Symbol.iterator]: () => this.entries(),
|
|
662
|
-
next:
|
|
662
|
+
next: Nt(t, e, {
|
|
663
663
|
isValuesIterator: !1
|
|
664
664
|
})
|
|
665
665
|
};
|
|
@@ -901,19 +901,19 @@ const Gs = (t) => {
|
|
|
901
901
|
return function e(s, n, i) {
|
|
902
902
|
var o, r, a;
|
|
903
903
|
if (typeof s == "function" && typeof n != "function")
|
|
904
|
-
return function(S, ...
|
|
905
|
-
return e(S, (E) => s.call(this, E, ...
|
|
904
|
+
return function(S, ...N) {
|
|
905
|
+
return e(S, (E) => s.call(this, E, ...N), n);
|
|
906
906
|
};
|
|
907
907
|
const u = s, l = n;
|
|
908
908
|
let c = i;
|
|
909
909
|
if (typeof n != "function" && (c = n), c !== void 0 && Object.prototype.toString.call(c) !== "[object Object]")
|
|
910
910
|
throw new Error(`Invalid options: ${c}, 'options' should be an object.`);
|
|
911
911
|
c = Object.assign(Object.assign({}, t), c);
|
|
912
|
-
const p = be(u) ? Ht(u) : u, m = Array.isArray(c.mark) ? (S,
|
|
912
|
+
const p = be(u) ? Ht(u) : u, m = Array.isArray(c.mark) ? (S, N) => {
|
|
913
913
|
for (const E of c.mark) {
|
|
914
914
|
if (typeof E != "function")
|
|
915
915
|
throw new Error(`Invalid mark: ${E}, 'mark' should be a function.`);
|
|
916
|
-
const v = E(S,
|
|
916
|
+
const v = E(S, N);
|
|
917
917
|
if (v)
|
|
918
918
|
return v;
|
|
919
919
|
}
|
|
@@ -938,21 +938,21 @@ const Gs = (t) => {
|
|
|
938
938
|
throw ot(P($)), S;
|
|
939
939
|
}
|
|
940
940
|
const C = (S) => {
|
|
941
|
-
const
|
|
941
|
+
const N = P($);
|
|
942
942
|
if (!be(S)) {
|
|
943
|
-
if (S !== void 0 && !fe(S, $) && (
|
|
943
|
+
if (S !== void 0 && !fe(S, $) && (N != null && N.operated))
|
|
944
944
|
throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
|
|
945
945
|
const v = S == null ? void 0 : S[xs];
|
|
946
946
|
if (v) {
|
|
947
947
|
const x = v[0];
|
|
948
948
|
return R.strict && typeof S == "object" && S !== null && ft({
|
|
949
|
-
rootDraft:
|
|
949
|
+
rootDraft: N,
|
|
950
950
|
value: S,
|
|
951
951
|
useRawReturn: !0
|
|
952
952
|
}), w([x]);
|
|
953
953
|
}
|
|
954
954
|
if (S !== void 0)
|
|
955
|
-
return typeof S == "object" && S !== null && ft({ rootDraft:
|
|
955
|
+
return typeof S == "object" && S !== null && ft({ rootDraft: N, value: S }), w([S]);
|
|
956
956
|
}
|
|
957
957
|
if (S === $ || S === void 0)
|
|
958
958
|
return w([]);
|
|
@@ -1345,7 +1345,7 @@ var me;
|
|
|
1345
1345
|
(function(t) {
|
|
1346
1346
|
t.InputsUpdate = "InputsUpdate", t.MessageAck = "MessageAck", t.SetupIframeServerResponse = "SetupIframeServerResponse";
|
|
1347
1347
|
})(me || (me = {}));
|
|
1348
|
-
const Pi = -32700, Ti = -32600, Di = -32601,
|
|
1348
|
+
const Pi = -32700, Ti = -32600, Di = -32601, ki = -32602, Ni = -32603;
|
|
1349
1349
|
function Hi(t) {
|
|
1350
1350
|
switch (typeof t) {
|
|
1351
1351
|
case "string":
|
|
@@ -1513,13 +1513,19 @@ var yn = function(t, e) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
1515
1515
|
if (t && t.length > 0)
|
|
1516
|
-
|
|
1516
|
+
try {
|
|
1517
|
+
return JSON.parse(as(t));
|
|
1518
|
+
} catch {
|
|
1519
|
+
return JSON.parse(decodeURIComponent(atob(decodeURIComponent(t))));
|
|
1520
|
+
}
|
|
1517
1521
|
}, os = (t) => btoa(encodeURIComponent(t)), as = (t) => {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1522
|
+
try {
|
|
1523
|
+
return decodeURIComponent(atob(t));
|
|
1524
|
+
} catch {
|
|
1525
|
+
return decodeURIComponent(atob(decodeURIComponent(t)));
|
|
1526
|
+
}
|
|
1521
1527
|
}, us = (t) => {
|
|
1522
|
-
const e = new URL(t);
|
|
1528
|
+
const e = t instanceof URL ? t : new URL(t);
|
|
1523
1529
|
return cs(e.hash);
|
|
1524
1530
|
}, cs = (t) => {
|
|
1525
1531
|
let e = t;
|
|
@@ -1540,11 +1546,7 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1540
1546
|
}).forEach(([o, r]) => {
|
|
1541
1547
|
i[o] = r;
|
|
1542
1548
|
}), Object.keys(i).forEach((o) => {
|
|
1543
|
-
|
|
1544
|
-
i[o] = decodeURIComponent(i[o]);
|
|
1545
|
-
} catch {
|
|
1546
|
-
i[o] = i[o];
|
|
1547
|
-
}
|
|
1549
|
+
i[o] = i[o];
|
|
1548
1550
|
}), [n, i];
|
|
1549
1551
|
}, Te = (t, e) => {
|
|
1550
1552
|
const [s, n] = us(t);
|
|
@@ -1559,8 +1561,11 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1559
1561
|
return t;
|
|
1560
1562
|
const r = Object.keys(i);
|
|
1561
1563
|
r.sort();
|
|
1562
|
-
const a = r.map((u, l) =>
|
|
1563
|
-
|
|
1564
|
+
const a = r.map((u, l) => {
|
|
1565
|
+
const c = i[u];
|
|
1566
|
+
return /^[A-Za-z0-9+/]+={0,2}$/.test(c) && c.length % 4, `${u}=${c}`;
|
|
1567
|
+
}).join("&");
|
|
1568
|
+
return !n && !a ? "" : `${n || ""}${a ? "?" + a : ""}`;
|
|
1564
1569
|
}, Rt = (t, e) => {
|
|
1565
1570
|
const s = Te(t, e);
|
|
1566
1571
|
if (s && s !== "")
|
|
@@ -1587,7 +1592,7 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1587
1592
|
const n = e == null ? void 0 : os(e);
|
|
1588
1593
|
Se(t, n, s);
|
|
1589
1594
|
}, Dn = (t) => Pn(window.location.href, t);
|
|
1590
|
-
var
|
|
1595
|
+
var kn = function(t, e) {
|
|
1591
1596
|
e || (e = {}), typeof e == "function" && (e = { cmp: e });
|
|
1592
1597
|
var s = typeof e.cycles == "boolean" ? e.cycles : !1, n = e.cmp && function(o) {
|
|
1593
1598
|
return function(r) {
|
|
@@ -1625,12 +1630,12 @@ var Nn = function(t, e) {
|
|
|
1625
1630
|
}
|
|
1626
1631
|
}(t);
|
|
1627
1632
|
};
|
|
1628
|
-
const fs = /* @__PURE__ */ mt(
|
|
1633
|
+
const fs = /* @__PURE__ */ mt(kn);
|
|
1629
1634
|
var xe;
|
|
1630
1635
|
(function(t) {
|
|
1631
1636
|
t.mp_debug = "mp_debug";
|
|
1632
1637
|
})(xe || (xe = {}));
|
|
1633
|
-
const
|
|
1638
|
+
const Nn = () => {
|
|
1634
1639
|
try {
|
|
1635
1640
|
return window !== window.top;
|
|
1636
1641
|
} catch {
|
|
@@ -1713,7 +1718,7 @@ var F;
|
|
|
1713
1718
|
})(F || (F = {}));
|
|
1714
1719
|
class ie extends Ot.EventEmitter {
|
|
1715
1720
|
constructor(e) {
|
|
1716
|
-
if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = ae.WaitingForPageLoad, this._messageSendCount = 0, this.debug = ht(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = ht(), this._isIframe =
|
|
1721
|
+
if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = ae.WaitingForPageLoad, this._messageSendCount = 0, this.debug = ht(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = ht(), this._isIframe = Nn(), this.addListener = this.addListener.bind(this), this.dispose = this.dispose.bind(this), this.error = this.error.bind(this), this.getInput = this.getInput.bind(this), this.getInputs = this.getInputs.bind(this), this.log = this.log.bind(this), this.logInternal = this.logInternal.bind(this), this.onInput = this.onInput.bind(this), this.onInputs = this.onInputs.bind(this), this.onMessage = this.onMessage.bind(this), this.sendRpc = this.sendRpc.bind(this), this.setInput = this.setInput.bind(this), this.setInputs = this.setInputs.bind(this), this.setInternalInputsAndNotify = this.setInternalInputsAndNotify.bind(this), this.setOutput = this.setOutput.bind(this), this.setOutputs = this.setOutputs.bind(this), this.warn = this.warn.bind(this), this._resolveSetupIframeServerResponse = this._resolveSetupIframeServerResponse.bind(this), this.addListenerReturnDisposer = this.addListenerReturnDisposer.bind(this), this.connected = this.connected.bind(this), this.isConnected = this.isConnected.bind(this), this.disableNotifyOnHashUrlChange = this.disableNotifyOnHashUrlChange.bind(this), this._onHashUrlChange = this._onHashUrlChange.bind(this), this.setParameter = this.setParameter.bind(this), this.setParameterBoolean = this.setParameterBoolean.bind(this), this.setParameterJson = this.setParameterJson.bind(this), this.setParameterBase64 = this.setParameterBase64.bind(this), this.setParameterFloat = this.setParameterFloat.bind(this), this.setParameterInt = this.setParameterInt.bind(this), this.getParameter = this.getParameter.bind(this), this.getParameterBoolean = this.getParameterBoolean.bind(this), this.getParameterJson = this.getParameterJson.bind(this), this.getParameterBase64 = this.getParameterBase64.bind(this), this.getParameterFloat = this.getParameterFloat.bind(this), this.getParameterInt = this.getParameterInt.bind(this), this.deleteParameter = this.deleteParameter.bind(this), !this._isIframe) {
|
|
1717
1722
|
this.log("Not an iframe, metaframe code disabled");
|
|
1718
1723
|
return;
|
|
1719
1724
|
}
|
|
@@ -2151,8 +2156,8 @@ const Bt = qe, {
|
|
|
2151
2156
|
t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1);
|
|
2152
2157
|
}, oi = (t, e) => {
|
|
2153
2158
|
const s = e || {}, n = t.length - 1, i = s.parts === !0 || s.scanToEnd === !0, o = [], r = [], a = [];
|
|
2154
|
-
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1, w = !1, A = !1, C = !1, S = 0,
|
|
2155
|
-
const x = () => l >= n, d = () => u.charCodeAt(l + 1), T = () => (
|
|
2159
|
+
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1, w = !1, A = !1, C = !1, S = 0, N, E, v = { value: "", depth: 0, isGlob: !1 };
|
|
2160
|
+
const x = () => l >= n, d = () => u.charCodeAt(l + 1), T = () => (N = E, u.charCodeAt(++l));
|
|
2156
2161
|
for (; l < n; ) {
|
|
2157
2162
|
E = T();
|
|
2158
2163
|
let V;
|
|
@@ -2192,7 +2197,7 @@ const Bt = qe, {
|
|
|
2192
2197
|
if (E === _s) {
|
|
2193
2198
|
if (o.push(l), r.push(v), v = { value: "", depth: 0, isGlob: !1 }, C === !0)
|
|
2194
2199
|
continue;
|
|
2195
|
-
if (
|
|
2200
|
+
if (N === nt && l === c + 1) {
|
|
2196
2201
|
c += 2;
|
|
2197
2202
|
continue;
|
|
2198
2203
|
}
|
|
@@ -2216,7 +2221,7 @@ const Bt = qe, {
|
|
|
2216
2221
|
break;
|
|
2217
2222
|
}
|
|
2218
2223
|
if (E === st) {
|
|
2219
|
-
if (
|
|
2224
|
+
if (N === st && (R = v.isGlobstar = !0), y = v.isGlob = !0, C = !0, i === !0)
|
|
2220
2225
|
continue;
|
|
2221
2226
|
break;
|
|
2222
2227
|
}
|
|
@@ -2281,13 +2286,13 @@ const Bt = qe, {
|
|
|
2281
2286
|
};
|
|
2282
2287
|
if (s.tokens === !0 && (h.maxDepth = 0, Jt(E) || r.push(v), h.tokens = r), s.parts === !0 || s.tokens === !0) {
|
|
2283
2288
|
let V;
|
|
2284
|
-
for (let
|
|
2285
|
-
const re = V ? V + 1 : c, ce = o[
|
|
2286
|
-
s.tokens && (
|
|
2289
|
+
for (let k = 0; k < o.length; k++) {
|
|
2290
|
+
const re = V ? V + 1 : c, ce = o[k], q = t.slice(re, ce);
|
|
2291
|
+
s.tokens && (k === 0 && c !== 0 ? (r[k].isPrefix = !0, r[k].value = Z) : r[k].value = q, Vt(r[k]), h.maxDepth += r[k].depth), (k !== 0 || q !== "") && a.push(q), V = ce;
|
|
2287
2292
|
}
|
|
2288
2293
|
if (V && V + 1 < t.length) {
|
|
2289
|
-
const
|
|
2290
|
-
a.push(
|
|
2294
|
+
const k = t.slice(V + 1);
|
|
2295
|
+
a.push(k), s.tokens && (r[r.length - 1].value = k, Vt(r[r.length - 1]), h.maxDepth += r[r.length - 1].depth);
|
|
2291
2296
|
}
|
|
2292
2297
|
h.slashes = o, h.parts = a;
|
|
2293
2298
|
}
|
|
@@ -2332,8 +2337,8 @@ const Je = Ye, se = qe, {
|
|
|
2332
2337
|
QMARK_NO_DOT: A,
|
|
2333
2338
|
STAR: C,
|
|
2334
2339
|
START_ANCHOR: S
|
|
2335
|
-
} = u,
|
|
2336
|
-
let x = s.bash === !0 ?
|
|
2340
|
+
} = u, N = (b) => `(${a}(?:(?!${S}${b.dot ? y : c}).)*?)`, E = s.dot ? "" : O, v = s.dot ? w : A;
|
|
2341
|
+
let x = s.bash === !0 ? N(s) : C;
|
|
2337
2342
|
s.capture && (x = `(${x})`), typeof s.noext == "boolean" && (s.noextglob = s.noext);
|
|
2338
2343
|
const d = {
|
|
2339
2344
|
input: t,
|
|
@@ -2355,16 +2360,16 @@ const Je = Ye, se = qe, {
|
|
|
2355
2360
|
t = se.removePrefix(t, d), i = t.length;
|
|
2356
2361
|
const T = [], H = [], Z = [];
|
|
2357
2362
|
let f = o, h;
|
|
2358
|
-
const V = () => d.index === i - 1,
|
|
2363
|
+
const V = () => d.index === i - 1, k = d.peek = (b = 1) => t[d.index + b], re = d.advance = () => t[++d.index], ce = () => t.slice(d.index + 1), q = (b = "", j = 0) => {
|
|
2359
2364
|
d.consumed += b, d.index += j;
|
|
2360
2365
|
}, De = (b) => {
|
|
2361
2366
|
d.output += b.output != null ? b.output : b.value, q(b.value);
|
|
2362
2367
|
}, Rs = () => {
|
|
2363
2368
|
let b = 1;
|
|
2364
|
-
for (;
|
|
2369
|
+
for (; k() === "!" && (k(2) !== "(" || k(3) === "?"); )
|
|
2365
2370
|
re(), d.start++, b++;
|
|
2366
2371
|
return b % 2 === 0 ? !1 : (d.negated = !0, d.start++, !0);
|
|
2367
|
-
},
|
|
2372
|
+
}, ke = (b) => {
|
|
2368
2373
|
d[b]++, Z.push(b);
|
|
2369
2374
|
}, ye = (b) => {
|
|
2370
2375
|
d[b]--, Z.pop();
|
|
@@ -2378,16 +2383,16 @@ const Je = Ye, se = qe, {
|
|
|
2378
2383
|
return;
|
|
2379
2384
|
}
|
|
2380
2385
|
b.prev = f, r.push(b), f = b;
|
|
2381
|
-
},
|
|
2386
|
+
}, Ne = (b, j) => {
|
|
2382
2387
|
const g = { ...l[j], conditions: 1, inner: "" };
|
|
2383
2388
|
g.prev = f, g.parens = d.parens, g.output = d.output;
|
|
2384
2389
|
const D = (s.capture ? "(" : "") + g.open;
|
|
2385
|
-
|
|
2390
|
+
ke("parens"), L({ type: b, value: j, output: d.output ? "" : _ }), L({ type: "paren", extglob: !0, value: re(), output: D }), T.push(g);
|
|
2386
2391
|
}, Ss = (b) => {
|
|
2387
2392
|
let j = b.close + (s.capture ? ")" : "");
|
|
2388
2393
|
if (b.type === "negate") {
|
|
2389
2394
|
let g = x;
|
|
2390
|
-
b.inner && b.inner.length > 1 && b.inner.includes("/") && (g =
|
|
2395
|
+
b.inner && b.inner.length > 1 && b.inner.includes("/") && (g = N(s)), (g !== x || V() || /^\)+$/.test(ce())) && (j = b.close = `)$))${g}`), b.prev.type === "bos" && V() && (d.negatedExtglob = !0);
|
|
2391
2396
|
}
|
|
2392
2397
|
L({ type: "paren", extglob: !0, value: h, output: j }), ye("parens");
|
|
2393
2398
|
};
|
|
@@ -2399,7 +2404,7 @@ const Je = Ye, se = qe, {
|
|
|
2399
2404
|
if (h = re(), h === "\0")
|
|
2400
2405
|
continue;
|
|
2401
2406
|
if (h === "\\") {
|
|
2402
|
-
const g =
|
|
2407
|
+
const g = k();
|
|
2403
2408
|
if (g === "/" && s.bash !== !0 || g === "." || g === ";")
|
|
2404
2409
|
continue;
|
|
2405
2410
|
if (!g) {
|
|
@@ -2424,7 +2429,7 @@ const Je = Ye, se = qe, {
|
|
|
2424
2429
|
}
|
|
2425
2430
|
}
|
|
2426
2431
|
}
|
|
2427
|
-
(h === "[" &&
|
|
2432
|
+
(h === "[" && k() !== ":" || h === "-" && k() === "]") && (h = `\\${h}`), h === "]" && (f.value === "[" || f.value === "[^") && (h = `\\${h}`), s.posix === !0 && h === "!" && f.value === "[" && (h = "^"), f.value += h, De({ value: h });
|
|
2428
2433
|
continue;
|
|
2429
2434
|
}
|
|
2430
2435
|
if (d.quotes === 1 && h !== '"') {
|
|
@@ -2436,7 +2441,7 @@ const Je = Ye, se = qe, {
|
|
|
2436
2441
|
continue;
|
|
2437
2442
|
}
|
|
2438
2443
|
if (h === "(") {
|
|
2439
|
-
|
|
2444
|
+
ke("parens"), L({ type: "paren", value: h });
|
|
2440
2445
|
continue;
|
|
2441
2446
|
}
|
|
2442
2447
|
if (h === ")") {
|
|
@@ -2456,7 +2461,7 @@ const Je = Ye, se = qe, {
|
|
|
2456
2461
|
throw new SyntaxError(we("closing", "]"));
|
|
2457
2462
|
h = `\\${h}`;
|
|
2458
2463
|
} else
|
|
2459
|
-
|
|
2464
|
+
ke("brackets");
|
|
2460
2465
|
L({ type: "bracket", value: h });
|
|
2461
2466
|
continue;
|
|
2462
2467
|
}
|
|
@@ -2484,7 +2489,7 @@ const Je = Ye, se = qe, {
|
|
|
2484
2489
|
continue;
|
|
2485
2490
|
}
|
|
2486
2491
|
if (h === "{" && s.nobrace !== !0) {
|
|
2487
|
-
|
|
2492
|
+
ke("braces");
|
|
2488
2493
|
const g = {
|
|
2489
2494
|
type: "brace",
|
|
2490
2495
|
value: h,
|
|
@@ -2550,12 +2555,12 @@ const Je = Ye, se = qe, {
|
|
|
2550
2555
|
continue;
|
|
2551
2556
|
}
|
|
2552
2557
|
if (h === "?") {
|
|
2553
|
-
if (!(f && f.value === "(") && s.noextglob !== !0 &&
|
|
2554
|
-
|
|
2558
|
+
if (!(f && f.value === "(") && s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2559
|
+
Ne("qmark", h);
|
|
2555
2560
|
continue;
|
|
2556
2561
|
}
|
|
2557
2562
|
if (f && f.type === "paren") {
|
|
2558
|
-
const D =
|
|
2563
|
+
const D = k();
|
|
2559
2564
|
let B = h;
|
|
2560
2565
|
if (D === "<" && !se.supportsLookbehinds())
|
|
2561
2566
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
@@ -2570,8 +2575,8 @@ const Je = Ye, se = qe, {
|
|
|
2570
2575
|
continue;
|
|
2571
2576
|
}
|
|
2572
2577
|
if (h === "!") {
|
|
2573
|
-
if (s.noextglob !== !0 &&
|
|
2574
|
-
|
|
2578
|
+
if (s.noextglob !== !0 && k() === "(" && (k(2) !== "?" || !/[!=<:]/.test(k(3)))) {
|
|
2579
|
+
Ne("negate", h);
|
|
2575
2580
|
continue;
|
|
2576
2581
|
}
|
|
2577
2582
|
if (s.nonegate !== !0 && d.index === 0) {
|
|
@@ -2580,8 +2585,8 @@ const Je = Ye, se = qe, {
|
|
|
2580
2585
|
}
|
|
2581
2586
|
}
|
|
2582
2587
|
if (h === "+") {
|
|
2583
|
-
if (s.noextglob !== !0 &&
|
|
2584
|
-
|
|
2588
|
+
if (s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2589
|
+
Ne("plus", h);
|
|
2585
2590
|
continue;
|
|
2586
2591
|
}
|
|
2587
2592
|
if (f && f.value === "(" || s.regex === !1) {
|
|
@@ -2596,7 +2601,7 @@ const Je = Ye, se = qe, {
|
|
|
2596
2601
|
continue;
|
|
2597
2602
|
}
|
|
2598
2603
|
if (h === "@") {
|
|
2599
|
-
if (s.noextglob !== !0 &&
|
|
2604
|
+
if (s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2600
2605
|
L({ type: "at", extglob: !0, value: h, output: "" });
|
|
2601
2606
|
continue;
|
|
2602
2607
|
}
|
|
@@ -2615,7 +2620,7 @@ const Je = Ye, se = qe, {
|
|
|
2615
2620
|
}
|
|
2616
2621
|
let b = ce();
|
|
2617
2622
|
if (s.noextglob !== !0 && /^\([^?]/.test(b)) {
|
|
2618
|
-
|
|
2623
|
+
Ne("star", h);
|
|
2619
2624
|
continue;
|
|
2620
2625
|
}
|
|
2621
2626
|
if (f.type === "star") {
|
|
@@ -2640,23 +2645,23 @@ const Je = Ye, se = qe, {
|
|
|
2640
2645
|
b = b.slice(3), q("/**", 3);
|
|
2641
2646
|
}
|
|
2642
2647
|
if (g.type === "bos" && V()) {
|
|
2643
|
-
f.type = "globstar", f.value += h, f.output =
|
|
2648
|
+
f.type = "globstar", f.value += h, f.output = N(s), d.output = f.output, d.globstar = !0, q(h);
|
|
2644
2649
|
continue;
|
|
2645
2650
|
}
|
|
2646
2651
|
if (g.type === "slash" && g.prev.type !== "bos" && !W && V()) {
|
|
2647
|
-
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output =
|
|
2652
|
+
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = N(s) + (s.strictSlashes ? ")" : "|$)"), f.value += h, d.globstar = !0, d.output += g.output + f.output, q(h);
|
|
2648
2653
|
continue;
|
|
2649
2654
|
}
|
|
2650
2655
|
if (g.type === "slash" && g.prev.type !== "bos" && b[0] === "/") {
|
|
2651
2656
|
const He = b[1] !== void 0 ? "|$" : "";
|
|
2652
|
-
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = `${
|
|
2657
|
+
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = `${N(s)}${m}|${m}${He})`, f.value += h, d.output += g.output + f.output, d.globstar = !0, q(h + re()), L({ type: "slash", value: "/", output: "" });
|
|
2653
2658
|
continue;
|
|
2654
2659
|
}
|
|
2655
2660
|
if (g.type === "bos" && b[0] === "/") {
|
|
2656
|
-
f.type = "globstar", f.value += h, f.output = `(?:^|${m}|${
|
|
2661
|
+
f.type = "globstar", f.value += h, f.output = `(?:^|${m}|${N(s)}${m})`, d.output = f.output, d.globstar = !0, q(h + re()), L({ type: "slash", value: "/", output: "" });
|
|
2657
2662
|
continue;
|
|
2658
2663
|
}
|
|
2659
|
-
d.output = d.output.slice(0, -f.output.length), f.type = "globstar", f.output =
|
|
2664
|
+
d.output = d.output.slice(0, -f.output.length), f.type = "globstar", f.output = N(s), f.value += h, d.output += f.output, d.globstar = !0, q(h);
|
|
2660
2665
|
continue;
|
|
2661
2666
|
}
|
|
2662
2667
|
const j = { type: "star", value: h, output: x };
|
|
@@ -2668,7 +2673,7 @@ const Je = Ye, se = qe, {
|
|
|
2668
2673
|
j.output = h, L(j);
|
|
2669
2674
|
continue;
|
|
2670
2675
|
}
|
|
2671
|
-
(d.index === d.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (d.output += R, f.output += R) : s.dot === !0 ? (d.output += $, f.output += $) : (d.output += E, f.output += E),
|
|
2676
|
+
(d.index === d.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (d.output += R, f.output += R) : s.dot === !0 ? (d.output += $, f.output += $) : (d.output += E, f.output += E), k() !== "*" && (d.output += _, f.output += _)), L(j);
|
|
2672
2677
|
}
|
|
2673
2678
|
for (; d.brackets > 0; ) {
|
|
2674
2679
|
if (s.strictBrackets === !0)
|
|
@@ -2737,8 +2742,8 @@ vs.fastpaths = (t, e) => {
|
|
|
2737
2742
|
}
|
|
2738
2743
|
}
|
|
2739
2744
|
}, S = se.removePrefix(t, $);
|
|
2740
|
-
let
|
|
2741
|
-
return
|
|
2745
|
+
let N = C(S);
|
|
2746
|
+
return N && s.strictSlashes !== !0 && (N += `${r}?`), N;
|
|
2742
2747
|
};
|
|
2743
2748
|
var pi = vs;
|
|
2744
2749
|
const hi = ai, dt = pi, ws = qe, di = Ye, mi = (t) => t && typeof t == "object" && !Array.isArray(t), G = (t, e, s = !1) => {
|
|
@@ -2939,7 +2944,7 @@ Error: ${s != null && s.message ? s == null ? void 0 : s.message : s == null ? v
|
|
|
2939
2944
|
return this;
|
|
2940
2945
|
if (this.emit(I.Outputs, e), this._metapage.listenerCount(I.Outputs) > 0) {
|
|
2941
2946
|
var n = {};
|
|
2942
|
-
n[this.id] =
|
|
2947
|
+
n[this.id] = e, this._metapage.emit(I.Outputs, n);
|
|
2943
2948
|
}
|
|
2944
2949
|
}
|
|
2945
2950
|
onInputs(e) {
|
|
@@ -3485,7 +3490,7 @@ const Ai = (t) => {
|
|
|
3485
3490
|
};
|
|
3486
3491
|
};
|
|
3487
3492
|
async function Wi(t) {
|
|
3488
|
-
var C, S,
|
|
3493
|
+
var C, S, N, E;
|
|
3489
3494
|
let { url: e, definition: s, onOutputs: n, rootDiv: i, options: o = {} } = t;
|
|
3490
3495
|
if (!e && !s)
|
|
3491
3496
|
throw new Error("Either url or definition must be provided");
|
|
@@ -3525,7 +3530,7 @@ async function Wi(t) {
|
|
|
3525
3530
|
display: "grid",
|
|
3526
3531
|
gridTemplateColumns: "repeat(1, 1fr)",
|
|
3527
3532
|
gridAutoRows: "1fr",
|
|
3528
|
-
gap: `${((
|
|
3533
|
+
gap: `${((N = u.props.margin) == null ? void 0 : N[0]) || 10}px`,
|
|
3529
3534
|
width: "100%",
|
|
3530
3535
|
height: "100%",
|
|
3531
3536
|
maxHeight: "100%",
|
|
@@ -3632,8 +3637,8 @@ const Ki = (t, e) => {
|
|
|
3632
3637
|
};
|
|
3633
3638
|
export {
|
|
3634
3639
|
ps as INITIAL_NULL_METAPAGE_DEFINITION,
|
|
3635
|
-
|
|
3636
|
-
|
|
3640
|
+
Ni as INTERNAL_ERROR,
|
|
3641
|
+
ki as INVALID_PARAMS,
|
|
3637
3642
|
Ti as INVALID_REQUEST,
|
|
3638
3643
|
K as JsonRpcMethodsFromChild,
|
|
3639
3644
|
me as JsonRpcMethodsFromParent,
|
|
@@ -3678,7 +3683,7 @@ export {
|
|
|
3678
3683
|
Bn as intToRGB,
|
|
3679
3684
|
ht as isDebugFromUrlsParams,
|
|
3680
3685
|
Ji as isEmptyMetaframeDefinition,
|
|
3681
|
-
|
|
3686
|
+
Nn as isIframe,
|
|
3682
3687
|
Hi as isJsonRpcId,
|
|
3683
3688
|
It as isMetaframeDivider,
|
|
3684
3689
|
Ki as isMetaframeHidden,
|