@feedmepos/mf-common 1.8.38-beta.1 → 1.8.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ import "node:path";
22
22
  const Bi = (i) => {
23
23
  const n = i.join("|");
24
24
  return new RegExp(`^(${n})(\\/.*)?$`);
25
- }, Wi = ({
25
+ }, ki = ({
26
26
  externals: i
27
27
  }) => {
28
28
  const n = Bi(i);
@@ -37,7 +37,7 @@ const Bi = (i) => {
37
37
  }));
38
38
  }
39
39
  };
40
- }, ki = (i) => {
40
+ }, Wi = (i) => {
41
41
  const n = "/@id/", a = new RegExp(
42
42
  `${n}(${i.join("|")})`,
43
43
  "g"
@@ -59,7 +59,7 @@ const Bi = (i) => {
59
59
  var u;
60
60
  const l = { ...a };
61
61
  return l.optimizeDeps && l.optimizeDeps.esbuildOptions && ((u = l.optimizeDeps.esbuildOptions).plugins ?? (u.plugins = []), l.optimizeDeps.esbuildOptions.plugins.push(
62
- Wi({ externals: n })
62
+ ki({ externals: n })
63
63
  )), l;
64
64
  },
65
65
  configResolved: (a) => {
@@ -70,7 +70,7 @@ const Bi = (i) => {
70
70
  a.optimizeDeps.include = l;
71
71
  }
72
72
  a.optimizeDeps && (a.optimizeDeps.exclude = a.optimizeDeps.exclude || [], a.optimizeDeps.exclude.push(...n));
73
- const u = ki(n);
73
+ const u = Wi(n);
74
74
  a.plugins.push(u);
75
75
  },
76
76
  // Supresses the following warning:
@@ -138,11 +138,11 @@ function zi() {
138
138
  function m(e) {
139
139
  return p(e);
140
140
  }
141
- function W(e, t, r) {
141
+ function k(e, t, r) {
142
142
  return B.call(e, t, r);
143
143
  }
144
144
  function y(e, t, r) {
145
- W(W(e, t, r), void 0, h);
145
+ k(k(e, t, r), void 0, h);
146
146
  }
147
147
  function j(e, t) {
148
148
  y(e, t);
@@ -151,17 +151,17 @@ function zi() {
151
151
  y(e, void 0, t);
152
152
  }
153
153
  function A(e, t, r) {
154
- return W(e, t, r);
154
+ return k(e, t, r);
155
155
  }
156
156
  function x(e) {
157
- W(e, void 0, h);
157
+ k(e, void 0, h);
158
158
  }
159
159
  let re = (e) => {
160
160
  if (typeof queueMicrotask == "function")
161
161
  re = queueMicrotask;
162
162
  else {
163
163
  const t = w(void 0);
164
- re = (r) => W(t, r);
164
+ re = (r) => k(t, r);
165
165
  }
166
166
  return re(e);
167
167
  };
@@ -633,7 +633,7 @@ function zi() {
633
633
  * Returns the current BYOB pull request, or `null` if there isn't one.
634
634
  */
635
635
  get byobRequest() {
636
- if (!We(this))
636
+ if (!ke(this))
637
637
  throw ot("byobRequest");
638
638
  return Er(this);
639
639
  }
@@ -642,16 +642,16 @@ function zi() {
642
642
  * over-full. An underlying byte source ought to use this information to determine when and how to apply backpressure.
643
643
  */
644
644
  get desiredSize() {
645
- if (!We(this))
645
+ if (!ke(this))
646
646
  throw ot("desiredSize");
647
- return Wn(this);
647
+ return kn(this);
648
648
  }
649
649
  /**
650
650
  * Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from
651
651
  * the stream, but once those are read, the stream will become closed.
652
652
  */
653
653
  close() {
654
- if (!We(this))
654
+ if (!ke(this))
655
655
  throw ot("close");
656
656
  if (this._closeRequested)
657
657
  throw new TypeError("The stream has already been closed; do not close it again!");
@@ -661,7 +661,7 @@ function zi() {
661
661
  nt(this);
662
662
  }
663
663
  enqueue(t) {
664
- if (!We(this))
664
+ if (!ke(this))
665
665
  throw ot("enqueue");
666
666
  if (ue(t, 1, "enqueue"), !ArrayBuffer.isView(t))
667
667
  throw new TypeError("chunk must be an array buffer view");
@@ -680,7 +680,7 @@ function zi() {
680
680
  * Errors the controlled readable stream, making all future interactions with it fail with the given error `e`.
681
681
  */
682
682
  error(t = void 0) {
683
- if (!We(this))
683
+ if (!ke(this))
684
684
  throw ot("error");
685
685
  G(this, t);
686
686
  }
@@ -719,7 +719,7 @@ function zi() {
719
719
  };
720
720
  this._pendingPullIntos.push(f);
721
721
  }
722
- ln(r, t), ke(this);
722
+ ln(r, t), We(this);
723
723
  }
724
724
  /** @internal */
725
725
  [lr]() {
@@ -739,13 +739,13 @@ function zi() {
739
739
  value: "ReadableByteStreamController",
740
740
  configurable: !0
741
741
  });
742
- function We(e) {
742
+ function ke(e) {
743
743
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledReadableByteStream") ? !1 : e instanceof de;
744
744
  }
745
745
  function Cr(e) {
746
746
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_associatedReadableByteStreamController") ? !1 : e instanceof Be;
747
747
  }
748
- function ke(e) {
748
+ function We(e) {
749
749
  if (!ta(e))
750
750
  return;
751
751
  if (e._pulling) {
@@ -754,7 +754,7 @@ function zi() {
754
754
  }
755
755
  e._pulling = !0;
756
756
  const r = e._pullAlgorithm();
757
- y(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, ke(e)), null), (o) => (G(e, o), null));
757
+ y(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, We(e)), null), (o) => (G(e, o), null));
758
758
  }
759
759
  function wn(e) {
760
760
  Pr(e), e._pendingPullIntos = new M();
@@ -800,7 +800,7 @@ function zi() {
800
800
  r.bytesFilled += t;
801
801
  }
802
802
  function En(e) {
803
- e._queueTotalSize === 0 && e._closeRequested ? (Pt(e), ft(e._controlledReadableByteStream)) : ke(e);
803
+ e._queueTotalSize === 0 && e._closeRequested ? (Pt(e), ft(e._controlledReadableByteStream)) : We(e);
804
804
  }
805
805
  function Pr(e) {
806
806
  e._byobRequest !== null && (e._byobRequest._associatedReadableByteStreamController = void 0, e._byobRequest._view = null, e._byobRequest = null);
@@ -827,8 +827,8 @@ function zi() {
827
827
  let C;
828
828
  try {
829
829
  C = fe(t.buffer);
830
- } catch (k) {
831
- o._errorSteps(k);
830
+ } catch (W) {
831
+ o._errorSteps(W);
832
832
  return;
833
833
  }
834
834
  const v = {
@@ -847,23 +847,23 @@ function zi() {
847
847
  return;
848
848
  }
849
849
  if (s._state === "closed") {
850
- const k = new f(v.buffer, v.byteOffset, 0);
851
- o._closeSteps(k);
850
+ const W = new f(v.buffer, v.byteOffset, 0);
851
+ o._closeSteps(W);
852
852
  return;
853
853
  }
854
854
  if (e._queueTotalSize > 0) {
855
855
  if (Pn(e, v)) {
856
- const k = Rn(v);
857
- En(e), o._chunkSteps(k);
856
+ const W = Rn(v);
857
+ En(e), o._chunkSteps(W);
858
858
  return;
859
859
  }
860
860
  if (e._closeRequested) {
861
- const k = new TypeError("Insufficient bytes to fill elements in the given buffer");
862
- G(e, k), o._errorSteps(k);
861
+ const W = new TypeError("Insufficient bytes to fill elements in the given buffer");
862
+ G(e, W), o._errorSteps(W);
863
863
  return;
864
864
  }
865
865
  }
866
- e._pendingPullIntos.push(v), On(s, o), ke(e);
866
+ e._pendingPullIntos.push(v), On(s, o), We(e);
867
867
  }
868
868
  function Xo(e, t) {
869
869
  t.readerType === "none" && De(e);
@@ -891,14 +891,14 @@ function zi() {
891
891
  }
892
892
  function An(e, t) {
893
893
  const r = e._pendingPullIntos.peek();
894
- Pr(e), e._controlledReadableByteStream._state === "closed" ? Xo(e, r) : ea(e, t, r), ke(e);
894
+ Pr(e), e._controlledReadableByteStream._state === "closed" ? Xo(e, r) : ea(e, t, r), We(e);
895
895
  }
896
896
  function De(e) {
897
897
  return e._pendingPullIntos.shift();
898
898
  }
899
899
  function ta(e) {
900
900
  const t = e._controlledReadableByteStream;
901
- return t._state !== "readable" || e._closeRequested || !e._started ? !1 : !!(un(t) && wt(t) > 0 || Br(t) && zn(t) > 0 || Wn(e) > 0);
901
+ return t._state !== "readable" || e._closeRequested || !e._started ? !1 : !!(un(t) && wt(t) > 0 || Br(t) && zn(t) > 0 || kn(e) > 0);
902
902
  }
903
903
  function Pt(e) {
904
904
  e._pullAlgorithm = void 0, e._cancelAlgorithm = void 0;
@@ -944,7 +944,7 @@ function zi() {
944
944
  }
945
945
  else
946
946
  Br(r) ? (Tt(e, d, s, f), vr(e)) : Tt(e, d, s, f);
947
- ke(e);
947
+ We(e);
948
948
  }
949
949
  function G(e, t) {
950
950
  const r = e._controlledReadableByteStream;
@@ -963,7 +963,7 @@ function zi() {
963
963
  }
964
964
  return e._byobRequest;
965
965
  }
966
- function Wn(e) {
966
+ function kn(e) {
967
967
  const t = e._controlledReadableByteStream._state;
968
968
  return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
969
969
  }
@@ -996,10 +996,10 @@ function zi() {
996
996
  const s = t.byteLength;
997
997
  r.buffer = fe(t.buffer), An(e, s);
998
998
  }
999
- function kn(e, t, r, o, s, f, d) {
999
+ function Wn(e, t, r, o, s, f, d) {
1000
1000
  t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, we(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = f, t._pullAlgorithm = o, t._cancelAlgorithm = s, t._autoAllocateChunkSize = d, t._pendingPullIntos = new M(), e._readableStreamController = t;
1001
1001
  const b = r();
1002
- y(w(b), () => (t._started = !0, ke(t), null), (S) => (G(t, S), null));
1002
+ y(w(b), () => (t._started = !0, We(t), null), (S) => (G(t, S), null));
1003
1003
  }
1004
1004
  function ra(e, t, r) {
1005
1005
  const o = Object.create(de.prototype);
@@ -1009,7 +1009,7 @@ function zi() {
1009
1009
  const b = t.autoAllocateChunkSize;
1010
1010
  if (b === 0)
1011
1011
  throw new TypeError("autoAllocateChunkSize must be greater than 0");
1012
- kn(e, o, s, f, d, r, b);
1012
+ Wn(e, o, s, f, d, r, b);
1013
1013
  }
1014
1014
  function na(e, t, r) {
1015
1015
  e._associatedReadableByteStreamController = t, e._view = r;
@@ -1061,7 +1061,7 @@ function zi() {
1061
1061
  constructor(t) {
1062
1062
  if (ue(t, 1, "ReadableStreamBYOBReader"), br(t, "First parameter"), Pe(t))
1063
1063
  throw new TypeError("This stream has already been locked for exclusive reading by another reader");
1064
- if (!We(t._readableStreamController))
1064
+ if (!ke(t._readableStreamController))
1065
1065
  throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
1066
1066
  tn(this, t), this._readIntoRequests = new M();
1067
1067
  }
@@ -1168,11 +1168,11 @@ function zi() {
1168
1168
  throw new RangeError("Invalid highWaterMark");
1169
1169
  return r;
1170
1170
  }
1171
- function Wt(e) {
1171
+ function kt(e) {
1172
1172
  const { size: t } = e;
1173
1173
  return t || (() => 1);
1174
1174
  }
1175
- function kt(e, t) {
1175
+ function Wt(e, t) {
1176
1176
  ne(e, t);
1177
1177
  const r = e == null ? void 0 : e.highWaterMark, o = e == null ? void 0 : e.size;
1178
1178
  return {
@@ -1227,11 +1227,11 @@ function zi() {
1227
1227
  class Ce {
1228
1228
  constructor(t = {}, r = {}) {
1229
1229
  t === void 0 ? t = null : an(t, "First parameter");
1230
- const o = kt(r, "Second parameter"), s = fa(t, "First parameter");
1230
+ const o = Wt(r, "Second parameter"), s = fa(t, "First parameter");
1231
1231
  if (Dn(this), s.type !== void 0)
1232
1232
  throw new RangeError("Invalid type is specified");
1233
- const d = Wt(o), b = at(o, 1);
1234
- ka(this, s, b, d);
1233
+ const d = kt(o), b = at(o, 1);
1234
+ Wa(this, s, b, d);
1235
1235
  }
1236
1236
  /**
1237
1237
  * Returns whether or not the writable stream is locked to a writer.
@@ -1326,7 +1326,7 @@ function zi() {
1326
1326
  _wasAlreadyErroring: s
1327
1327
  };
1328
1328
  });
1329
- return e._pendingAbortRequest._promise = f, s || kr(e, t), f;
1329
+ return e._pendingAbortRequest._promise = f, s || Wr(e, t), f;
1330
1330
  }
1331
1331
  function $n(e) {
1332
1332
  const t = e._state;
@@ -1350,14 +1350,14 @@ function zi() {
1350
1350
  e._writeRequests.push(s);
1351
1351
  });
1352
1352
  }
1353
- function Wr(e, t) {
1353
+ function kr(e, t) {
1354
1354
  if (e._state === "writable") {
1355
- kr(e, t);
1355
+ Wr(e, t);
1356
1356
  return;
1357
1357
  }
1358
1358
  qr(e);
1359
1359
  }
1360
- function kr(e, t) {
1360
+ function Wr(e, t) {
1361
1361
  const r = e._writableStreamController;
1362
1362
  e._state = "erroring", e._storedError = t;
1363
1363
  const o = e._writer;
@@ -1384,7 +1384,7 @@ function zi() {
1384
1384
  e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0;
1385
1385
  }
1386
1386
  function wa(e, t) {
1387
- e._inFlightWriteRequest._reject(t), e._inFlightWriteRequest = void 0, Wr(e, t);
1387
+ e._inFlightWriteRequest._reject(t), e._inFlightWriteRequest = void 0, kr(e, t);
1388
1388
  }
1389
1389
  function Ra(e) {
1390
1390
  e._inFlightCloseRequest._resolve(void 0), e._inFlightCloseRequest = void 0, e._state === "erroring" && (e._storedError = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._resolve(), e._pendingAbortRequest = void 0)), e._state = "closed";
@@ -1392,7 +1392,7 @@ function zi() {
1392
1392
  r !== void 0 && Jn(r);
1393
1393
  }
1394
1394
  function Ca(e, t) {
1395
- e._inFlightCloseRequest._reject(t), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t), e._pendingAbortRequest = void 0), Wr(e, t);
1395
+ e._inFlightCloseRequest._reject(t), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t), e._pendingAbortRequest = void 0), kr(e, t);
1396
1396
  }
1397
1397
  function oe(e) {
1398
1398
  return !(e._closeRequest === void 0 && e._inFlightCloseRequest === void 0);
@@ -1452,7 +1452,7 @@ function zi() {
1452
1452
  throw ze("desiredSize");
1453
1453
  if (this._ownerWritableStream === void 0)
1454
1454
  throw st("desiredSize");
1455
- return Wa(this);
1455
+ return ka(this);
1456
1456
  }
1457
1457
  /**
1458
1458
  * Returns a promise that will be fulfilled when the desired size to fill the stream’s internal queue transitions
@@ -1532,7 +1532,7 @@ function zi() {
1532
1532
  function Un(e, t) {
1533
1533
  e._readyPromiseState === "pending" ? Kn(e, t) : $a(e, t);
1534
1534
  }
1535
- function Wa(e) {
1535
+ function ka(e) {
1536
1536
  const t = e._ownerWritableStream, r = t._state;
1537
1537
  return r === "errored" || r === "erroring" ? null : r === "closed" ? 0 : Vn(t._writableStreamController);
1538
1538
  }
@@ -1619,9 +1619,9 @@ function zi() {
1619
1619
  const S = Fr(t);
1620
1620
  Or(e, S);
1621
1621
  const g = r(), C = w(g);
1622
- y(C, () => (t._started = !0, Ft(t), null), (v) => (t._started = !0, Wr(e, v), null));
1622
+ y(C, () => (t._started = !0, Ft(t), null), (v) => (t._started = !0, kr(e, v), null));
1623
1623
  }
1624
- function ka(e, t, r, o) {
1624
+ function Wa(e, t, r, o) {
1625
1625
  const s = Object.create(Ue.prototype);
1626
1626
  let f, d, b, S;
1627
1627
  t.start !== void 0 ? f = () => t.start(s) : f = () => {
@@ -1698,7 +1698,7 @@ function zi() {
1698
1698
  }
1699
1699
  function Yn(e, t) {
1700
1700
  const r = e._controlledWritableStream;
1701
- zt(e), kr(r, t);
1701
+ zt(e), Wr(r, t);
1702
1702
  }
1703
1703
  function It(e) {
1704
1704
  return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`);
@@ -1789,30 +1789,30 @@ function zi() {
1789
1789
  e._disturbed = !0;
1790
1790
  let S = !1, g = w(void 0);
1791
1791
  return P((C, v) => {
1792
- let k;
1792
+ let W;
1793
1793
  if (f !== void 0) {
1794
- if (k = () => {
1794
+ if (W = () => {
1795
1795
  const _ = f.reason !== void 0 ? f.reason : new Ha("Aborted", "AbortError"), E = [];
1796
1796
  o || E.push(() => t._state === "writable" ? qt(t, _) : w(void 0)), s || E.push(() => e._state === "readable" ? X(e, _) : w(void 0)), N(() => Promise.all(E.map((q) => q())), !0, _);
1797
1797
  }, f.aborted) {
1798
- k();
1798
+ W();
1799
1799
  return;
1800
1800
  }
1801
- f.addEventListener("abort", k);
1801
+ f.addEventListener("abort", W);
1802
1802
  }
1803
1803
  function ee() {
1804
1804
  return P((_, E) => {
1805
1805
  function q(Q) {
1806
- Q ? _() : W(Qe(), q, E);
1806
+ Q ? _() : k(Qe(), q, E);
1807
1807
  }
1808
1808
  q(!1);
1809
1809
  });
1810
1810
  }
1811
1811
  function Qe() {
1812
- return S ? w(!0) : W(b._readyPromise, () => P((_, E) => {
1812
+ return S ? w(!0) : k(b._readyPromise, () => P((_, E) => {
1813
1813
  tt(d, {
1814
1814
  _chunkSteps: (q) => {
1815
- g = W(Nn(b, q), void 0, u), _(!1);
1815
+ g = k(Nn(b, q), void 0, u), _(!1);
1816
1816
  },
1817
1817
  _closeSteps: () => _(!0),
1818
1818
  _errorSteps: E
@@ -1826,7 +1826,7 @@ function zi() {
1826
1826
  x(ee());
1827
1827
  function Ee() {
1828
1828
  const _ = g;
1829
- return W(g, () => _ !== g ? Ee() : void 0);
1829
+ return k(g, () => _ !== g ? Ee() : void 0);
1830
1830
  }
1831
1831
  function me(_, E, q) {
1832
1832
  _._state === "errored" ? q(_._storedError) : R(E, q);
@@ -1846,7 +1846,7 @@ function zi() {
1846
1846
  S || (S = !0, t._state === "writable" && !oe(t) ? j(Ee(), () => be(_, E)) : be(_, E));
1847
1847
  }
1848
1848
  function be(_, E) {
1849
- return xn(b), le(d), f !== void 0 && f.removeEventListener("abort", k), _ ? v(E) : C(void 0), null;
1849
+ return xn(b), le(d), f !== void 0 && f.removeEventListener("abort", W), _ ? v(E) : C(void 0), null;
1850
1850
  }
1851
1851
  });
1852
1852
  }
@@ -1995,12 +1995,12 @@ function zi() {
1995
1995
  return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);
1996
1996
  }
1997
1997
  function Ya(e, t) {
1998
- return We(e._readableStreamController) ? Ja(e) : Ga(e);
1998
+ return ke(e._readableStreamController) ? Ja(e) : Ga(e);
1999
1999
  }
2000
2000
  function Ga(e, t) {
2001
2001
  const r = Le(e);
2002
2002
  let o = !1, s = !1, f = !1, d = !1, b, S, g, C, v;
2003
- const k = P((U) => {
2003
+ const W = P((U) => {
2004
2004
  v = U;
2005
2005
  });
2006
2006
  function ee() {
@@ -2025,14 +2025,14 @@ function zi() {
2025
2025
  const N = rt([b, S]), J = X(e, N);
2026
2026
  v(J);
2027
2027
  }
2028
- return k;
2028
+ return W;
2029
2029
  }
2030
2030
  function Ee(U) {
2031
2031
  if (d = !0, S = U, f) {
2032
2032
  const N = rt([b, S]), J = X(e, N);
2033
2033
  v(J);
2034
2034
  }
2035
- return k;
2035
+ return W;
2036
2036
  }
2037
2037
  function me() {
2038
2038
  }
@@ -2040,7 +2040,7 @@ function zi() {
2040
2040
  }
2041
2041
  function Ja(e) {
2042
2042
  let t = Le(e), r = !1, o = !1, s = !1, f = !1, d = !1, b, S, g, C, v;
2043
- const k = P((_) => {
2043
+ const W = P((_) => {
2044
2044
  v = _;
2045
2045
  });
2046
2046
  function ee(_) {
@@ -2123,14 +2123,14 @@ function zi() {
2123
2123
  const E = rt([b, S]), q = X(e, E);
2124
2124
  v(q);
2125
2125
  }
2126
- return k;
2126
+ return W;
2127
2127
  }
2128
2128
  function J(_) {
2129
2129
  if (d = !0, S = _, f) {
2130
2130
  const E = rt([b, S]), q = X(e, E);
2131
2131
  v(q);
2132
2132
  }
2133
- return k;
2133
+ return W;
2134
2134
  }
2135
2135
  function be() {
2136
2136
  }
@@ -2270,14 +2270,14 @@ function zi() {
2270
2270
  class L {
2271
2271
  constructor(t = {}, r = {}) {
2272
2272
  t === void 0 ? t = null : an(t, "First parameter");
2273
- const o = kt(r, "Second parameter"), s = ti(t, "First parameter");
2273
+ const o = Wt(r, "Second parameter"), s = ti(t, "First parameter");
2274
2274
  if (Ur(this), s.type === "bytes") {
2275
2275
  if (o.size !== void 0)
2276
2276
  throw new RangeError("The strategy for a byte stream cannot have a size function");
2277
2277
  const f = at(o, 0);
2278
2278
  ra(this, s, f);
2279
2279
  } else {
2280
- const f = Wt(o), d = at(o, 1);
2280
+ const f = kt(o), d = at(o, 1);
2281
2281
  Va(this, s, d, f);
2282
2282
  }
2283
2283
  }
@@ -2394,7 +2394,7 @@ function zi() {
2394
2394
  const o = Object.create(L.prototype);
2395
2395
  Ur(o);
2396
2396
  const s = Object.create(de.prototype);
2397
- return kn(o, s, e, t, r, 0, void 0), o;
2397
+ return Wn(o, s, e, t, r, 0, void 0), o;
2398
2398
  }
2399
2399
  function Ur(e) {
2400
2400
  e._state = "readable", e._reader = void 0, e._storedError = void 0, e._disturbed = !1;
@@ -2546,17 +2546,17 @@ function zi() {
2546
2546
  class Nt {
2547
2547
  constructor(t = {}, r = {}, o = {}) {
2548
2548
  t === void 0 && (t = null);
2549
- const s = kt(r, "Second parameter"), f = kt(o, "Third parameter"), d = ui(t, "First parameter");
2549
+ const s = Wt(r, "Second parameter"), f = Wt(o, "Third parameter"), d = ui(t, "First parameter");
2550
2550
  if (d.readableType !== void 0)
2551
2551
  throw new RangeError("Invalid readableType specified");
2552
2552
  if (d.writableType !== void 0)
2553
2553
  throw new RangeError("Invalid writableType specified");
2554
- const b = at(f, 0), S = Wt(f), g = at(s, 1), C = Wt(s);
2554
+ const b = at(f, 0), S = kt(f), g = at(s, 1), C = kt(s);
2555
2555
  let v;
2556
- const k = P((ee) => {
2556
+ const W = P((ee) => {
2557
2557
  v = ee;
2558
2558
  });
2559
- mi(this, k, g, C, b, S), pi(this, d), d.start !== void 0 ? v(d.start(this._transformStreamController)) : v(void 0);
2559
+ mi(this, W, g, C, b, S), pi(this, d), d.start !== void 0 ? v(d.start(this._transformStreamController)) : v(void 0);
2560
2560
  }
2561
2561
  /**
2562
2562
  * The readable side of the transform stream.
@@ -2586,11 +2586,11 @@ function zi() {
2586
2586
  function d() {
2587
2587
  return t;
2588
2588
  }
2589
- function b(k) {
2590
- return _i(e, k);
2589
+ function b(W) {
2590
+ return _i(e, W);
2591
2591
  }
2592
- function S(k) {
2593
- return Si(e, k);
2592
+ function S(W) {
2593
+ return Si(e, W);
2594
2594
  }
2595
2595
  function g() {
2596
2596
  return wi(e);
@@ -2599,8 +2599,8 @@ function zi() {
2599
2599
  function C() {
2600
2600
  return Ri(e);
2601
2601
  }
2602
- function v(k) {
2603
- return Ci(e, k);
2602
+ function v(W) {
2603
+ return Ci(e, W);
2604
2604
  }
2605
2605
  e._readable = ut(d, C, v, s, f), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Ht(e, !0), e._transformStreamController = void 0;
2606
2606
  }
@@ -2940,12 +2940,12 @@ const Ao = (et = class {
2940
2940
  for (const m of B) {
2941
2941
  if (P >= T)
2942
2942
  break;
2943
- const W = ArrayBuffer.isView(m) ? m.byteLength : m.size;
2944
- if (h && W <= h)
2945
- h -= W, c -= W;
2943
+ const k = ArrayBuffer.isView(m) ? m.byteLength : m.size;
2944
+ if (h && k <= h)
2945
+ h -= k, c -= k;
2946
2946
  else {
2947
2947
  let y;
2948
- ArrayBuffer.isView(m) ? (y = m.subarray(h, Math.min(W, c)), P += y.byteLength) : (y = m.slice(h, Math.min(W, c)), P += y.size), c -= W, p.push(y), h = 0;
2948
+ ArrayBuffer.isView(m) ? (y = m.subarray(h, Math.min(k, c)), P += y.byteLength) : (y = m.slice(h, Math.min(k, c)), P += y.size), c -= k, p.push(y), h = 0;
2949
2949
  }
2950
2950
  }
2951
2951
  const w = new et([], { type: String(u).toLowerCase() });
@@ -3141,7 +3141,7 @@ class mt {
3141
3141
  u.append(h, c);
3142
3142
  return u;
3143
3143
  }
3144
- const { toFormData: a } = await import("./multipart-parser-abee26be.js");
3144
+ const { toFormData: a } = await import("./multipart-parser-85d073e9.js");
3145
3145
  return a(this.body, n);
3146
3146
  }
3147
3147
  /**
@@ -3238,7 +3238,7 @@ const Xr = (i, n) => {
3238
3238
  (i) => i.getBoundary(),
3239
3239
  "form-data doesn't follow the spec and requires special treatment. Use alternative package",
3240
3240
  "https://github.com/node-fetch/node-fetch/issues/1167"
3241
- ), Wo = (i, n) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : Bo(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : rr(i) ? i.type || null : D.isBuffer(i) || Xt.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof Zr ? `multipart/form-data; boundary=${n[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${Vi(i)}` : i instanceof se ? null : "text/plain;charset=UTF-8", Yi = (i) => {
3241
+ ), ko = (i, n) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : Bo(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : rr(i) ? i.type || null : D.isBuffer(i) || Xt.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof Zr ? `multipart/form-data; boundary=${n[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${Vi(i)}` : i instanceof se ? null : "text/plain;charset=UTF-8", Yi = (i) => {
3242
3242
  const { body: n } = i[H];
3243
3243
  return n === null ? 0 : rr(n) ? n.size : D.isBuffer(n) ? n.length : n && typeof n.getLengthSync == "function" && n.hasKnownLength && n.hasKnownLength() ? n.getLengthSync() : null;
3244
3244
  }, Gi = async (i, { body: n }) => {
@@ -3376,13 +3376,13 @@ function Ji(i = []) {
3376
3376
  })
3377
3377
  );
3378
3378
  }
3379
- const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ko = (i) => Zi.has(i), te = Symbol("Response internals");
3379
+ const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), Wo = (i) => Zi.has(i), te = Symbol("Response internals");
3380
3380
  class V extends mt {
3381
3381
  constructor(n = null, a = {}) {
3382
3382
  super(n, a);
3383
3383
  const u = a.status != null ? a.status : 200, l = new ye(a.headers);
3384
3384
  if (n !== null && !l.has("Content-Type")) {
3385
- const h = Wo(n, this);
3385
+ const h = ko(n, this);
3386
3386
  h && l.append("Content-Type", h);
3387
3387
  }
3388
3388
  this[te] = {
@@ -3446,7 +3446,7 @@ class V extends mt {
3446
3446
  * @returns {Response} A Response object.
3447
3447
  */
3448
3448
  static redirect(n, a = 302) {
3449
- if (!ko(a))
3449
+ if (!Wo(a))
3450
3450
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
3451
3451
  return new V(null, {
3452
3452
  headers: {
@@ -3575,7 +3575,7 @@ class bt extends mt {
3575
3575
  });
3576
3576
  const c = new ye(a.headers || n.headers || {});
3577
3577
  if (h !== null && !c.has("Content-Type")) {
3578
- const p = Wo(h, this);
3578
+ const p = ko(h, this);
3579
3579
  p && c.set("Content-Type", p);
3580
3580
  }
3581
3581
  let T = dt(n) ? n.signal : null;
@@ -3715,14 +3715,14 @@ async function Oo(i, n) {
3715
3715
  return;
3716
3716
  }
3717
3717
  const w = () => {
3718
- P(), W();
3718
+ P(), k();
3719
3719
  }, m = T(h.toString(), c);
3720
3720
  B && B.addEventListener("abort", w);
3721
- const W = () => {
3721
+ const k = () => {
3722
3722
  m.abort(), B && B.removeEventListener("abort", w);
3723
3723
  };
3724
3724
  m.on("error", (y) => {
3725
- u(new ie(`request to ${l.url} failed, reason: ${y.message}`, "system", y)), W();
3725
+ u(new ie(`request to ${l.url} failed, reason: ${y.message}`, "system", y)), k();
3726
3726
  }), ls(m, (y) => {
3727
3727
  p && p.body && p.body.destroy(y);
3728
3728
  }), process.version < "v14" && m.on("socket", (y) => {
@@ -3738,20 +3738,20 @@ async function Oo(i, n) {
3738
3738
  }), m.on("response", (y) => {
3739
3739
  m.setTimeout(0);
3740
3740
  const j = Ji(y.rawHeaders);
3741
- if (ko(y.statusCode)) {
3741
+ if (Wo(y.statusCode)) {
3742
3742
  const O = j.get("Location");
3743
3743
  let z = null;
3744
3744
  try {
3745
3745
  z = O === null ? null : new URL(O, l.url);
3746
3746
  } catch {
3747
3747
  if (l.redirect !== "manual") {
3748
- u(new ie(`uri requested responds with an invalid redirect URL: ${O}`, "invalid-redirect")), W();
3748
+ u(new ie(`uri requested responds with an invalid redirect URL: ${O}`, "invalid-redirect")), k();
3749
3749
  return;
3750
3750
  }
3751
3751
  }
3752
3752
  switch (l.redirect) {
3753
3753
  case "error":
3754
- u(new ie(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`, "no-redirect")), W();
3754
+ u(new ie(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`, "no-redirect")), k();
3755
3755
  return;
3756
3756
  case "manual":
3757
3757
  break;
@@ -3759,7 +3759,7 @@ async function Oo(i, n) {
3759
3759
  if (z === null)
3760
3760
  break;
3761
3761
  if (l.counter >= l.follow) {
3762
- u(new ie(`maximum redirect reached at: ${l.url}`, "max-redirect")), W();
3762
+ u(new ie(`maximum redirect reached at: ${l.url}`, "max-redirect")), k();
3763
3763
  return;
3764
3764
  }
3765
3765
  const $ = {
@@ -3779,12 +3779,12 @@ async function Oo(i, n) {
3779
3779
  for (const _t of ["authorization", "www-authenticate", "cookie", "cookie2"])
3780
3780
  $.headers.delete(_t);
3781
3781
  if (y.statusCode !== 303 && l.body && n.body instanceof se.Readable) {
3782
- u(new ie("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), W();
3782
+ u(new ie("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), k();
3783
3783
  return;
3784
3784
  }
3785
3785
  (y.statusCode === 303 || (y.statusCode === 301 || y.statusCode === 302) && l.method === "POST") && ($.method = "GET", $.body = void 0, $.headers.delete("content-length"));
3786
3786
  const M = ns(j);
3787
- M && ($.referrerPolicy = M), a(Oo(new bt(z, $))), W();
3787
+ M && ($.referrerPolicy = M), a(Oo(new bt(z, $))), k();
3788
3788
  return;
3789
3789
  }
3790
3790
  default:
@@ -3869,11 +3869,11 @@ function ls(i, n) {
3869
3869
  });
3870
3870
  }
3871
3871
  const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) => {
3872
- var W, y, j;
3872
+ var k, y, j;
3873
3873
  const l = JSON.parse(
3874
3874
  Ti(So(process.cwd(), "package.json"), "utf-8")
3875
3875
  ), h = Object.keys(l.dependencies).filter((R) => R.startsWith(us)).reduce((R, A) => (R[A] = l.dependencies[A], R), {});
3876
- (W = u.includeFmmfPackages) == null || W.forEach((R) => {
3876
+ (k = u.includeFmmfPackages) == null || k.forEach((R) => {
3877
3877
  h[R] = l.dependencies[R] ?? "latest";
3878
3878
  }), (y = u.excludeFmmfPackages) == null || y.forEach((R) => {
3879
3879
  delete h[R];
@@ -3892,19 +3892,24 @@ const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) =>
3892
3892
  ...Object.keys(c)
3893
3893
  ];
3894
3894
  const p = { ...i };
3895
- n == "build" && a.startsWith("fmmf") && (B = [
3895
+ if (n == "build" && a.startsWith("fmmf") && (B = [
3896
3896
  ...Object.keys(h),
3897
3897
  ...Object.keys(T),
3898
3898
  ...Object.keys(c)
3899
3899
  ], p.build = {
3900
3900
  emptyOutDir: !0,
3901
+ minify: !1,
3901
3902
  lib: {
3902
3903
  entry: {
3903
3904
  app: So(process.cwd(), "src/app.ts")
3904
3905
  },
3905
3906
  formats: ["es"]
3906
3907
  }
3907
- }), p.plugins ?? (p.plugins = []), u.externalize && p.plugins.push(qi({ externals: B })), p.build ?? (p.build = {}), (j = p.build).rollupOptions ?? (j.rollupOptions = {}), p.build.rollupOptions.external = B.concat(
3908
+ }), p.plugins ?? (p.plugins = []), u.externalize) {
3909
+ const R = u.externalize === !0 ? Object.keys(h) : u.externalize;
3910
+ p.plugins.push(qi({ externals: R }));
3911
+ }
3912
+ p.build ?? (p.build = {}), (j = p.build).rollupOptions ?? (j.rollupOptions = {}), p.build.rollupOptions.external = B.concat(
3908
3913
  ...p.build.rollupOptions.external ?? []
3909
3914
  );
3910
3915
  const P = h;