@naturalcycles/internal-web-lib 1.1.0 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/is.util.js
1
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/is.util.js
2
2
  var e = (e) => !!e;
3
3
  function t(e) {
4
4
  return typeof e == "object" && !!e && !Array.isArray(e) || !1;
@@ -8,7 +8,7 @@ function n(e) {
8
8
  return !0;
9
9
  }
10
10
  //#endregion
11
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/abort.js
11
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/abort.js
12
12
  function r(e) {
13
13
  return e ? i(e) : void 0;
14
14
  }
@@ -38,10 +38,10 @@ function c(e) {
38
38
  return t.signal;
39
39
  }
40
40
  //#endregion
41
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/types.js
41
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/types.js
42
42
  var l = (...e) => void 0, u = Object.entries;
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/object/object.util.js
44
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/object/object.util.js
45
45
  function d(e, t, n = {}) {
46
46
  if (n.mutate) {
47
47
  for (let n of Object.keys(e)) t.includes(n) || delete e[n];
@@ -88,7 +88,7 @@ function _(e, ...n) {
88
88
  return e;
89
89
  }
90
90
  //#endregion
91
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/env.js
91
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/env.js
92
92
  function v() {
93
93
  return !y();
94
94
  }
@@ -96,7 +96,7 @@ function y() {
96
96
  return typeof window < "u" && !!window?.document;
97
97
  }
98
98
  //#endregion
99
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/json.util.js
99
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/json.util.js
100
100
  var te = /^\s*[{["\-\d]/;
101
101
  function b(e, t) {
102
102
  if (typeof e == "string" && e && te.test(e)) try {
@@ -112,7 +112,7 @@ function x(e, t) {
112
112
  }
113
113
  }
114
114
  //#endregion
115
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/string.util.js
115
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/string.util.js
116
116
  function S(e, t, n = "...") {
117
117
  if (!e || e.length <= t) return e;
118
118
  if (t <= n.length) return n;
@@ -120,7 +120,7 @@ function S(e, t, n = "...") {
120
120
  return e.slice(0, r) + n + e.slice(i);
121
121
  }
122
122
  //#endregion
123
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/error/error.util.js
123
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/error/error.util.js
124
124
  function C(e, t = Error, n) {
125
125
  let r;
126
126
  return r = e instanceof t ? e : E(w(e), t), n && (r.data ||= {}, Object.assign(r.data, n)), r;
@@ -260,7 +260,7 @@ var j = class e extends Error {
260
260
  }
261
261
  };
262
262
  //#endregion
263
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/safeJsonStringify.js
263
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/safeJsonStringify.js
264
264
  function P(e, t, n, r) {
265
265
  try {
266
266
  return JSON.stringify(e, t, n);
@@ -279,7 +279,7 @@ function ae(e, t) {
279
279
  };
280
280
  }
281
281
  //#endregion
282
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/stringify.js
282
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/stringify.js
283
283
  var oe = typeof globalThis.AggregateError == "function", se = P;
284
284
  function F(e, t = {}) {
285
285
  if (e === void 0) return "undefined";
@@ -317,7 +317,7 @@ function ce(e, t) {
317
317
  ].join("\n")), e.cause && n && (r = r + "\nCaused by: " + F(e.cause, t)), r;
318
318
  }
319
319
  //#endregion
320
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/error/assert.js
320
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/error/assert.js
321
321
  function le(e, t = Error) {
322
322
  if (!(e instanceof t)) throw new N(`Expected to be instanceof ${t.name}, actual typeof: ${typeof e}`);
323
323
  }
@@ -325,7 +325,7 @@ function I(e, t) {
325
325
  if (!(e instanceof t)) throw e;
326
326
  }
327
327
  //#endregion
328
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/promise/pDelay.js
328
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/promise/pDelay.js
329
329
  async function L(e, t) {
330
330
  t?.aborted || await new Promise((n) => {
331
331
  let r = setTimeout(i, e);
@@ -336,7 +336,7 @@ async function L(e, t) {
336
336
  });
337
337
  }
338
338
  //#endregion
339
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/datetime/time.util.js
339
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/datetime/time.util.js
340
340
  function R(e, t = Date.now()) {
341
341
  return z(t - e);
342
342
  }
@@ -347,12 +347,12 @@ function z(e) {
347
347
  return r === 0 ? n === 0 ? `${t} sec` : `${n}m${t}s` : r < 24 ? `${r}h${n}m` : r < 48 ? `${Math.round(r + n / 60)}h` : `${Math.floor(r / 24)} days`;
348
348
  }
349
349
  //#endregion
350
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/number/number.util.js
350
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/number/number.util.js
351
351
  function B(e, t, n) {
352
352
  return e <= t ? t : e >= n ? n : e;
353
353
  }
354
354
  //#endregion
355
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/analytics/analytics.model.js
355
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/analytics/analytics.model.js
356
356
  var V = "identify";
357
357
  function H(e) {
358
358
  return e.length <= 255 ? e : Array.from(e).slice(0, 255).join("");
@@ -370,7 +370,7 @@ var U = [
370
370
  "utm_marketing_tactic"
371
371
  ];
372
372
  //#endregion
373
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/array/array.util.js
373
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/array/array.util.js
374
374
  function W(e, t) {
375
375
  let n = {};
376
376
  for (let r of e) {
@@ -380,7 +380,7 @@ function W(e, t) {
380
380
  return n;
381
381
  }
382
382
  //#endregion
383
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/promise/pTimeout.js
383
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/promise/pTimeout.js
384
384
  async function ue(e, t) {
385
385
  let n = new AbortController(), { signal: r } = n;
386
386
  if (!t.timeout) return await e(r);
@@ -409,7 +409,7 @@ async function ue(e, t) {
409
409
  });
410
410
  }
411
411
  //#endregion
412
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/url.util.js
412
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/string/url.util.js
413
413
  function de(e, t) {
414
414
  if (typeof e != "string") return null;
415
415
  try {
@@ -419,7 +419,7 @@ function de(e, t) {
419
419
  }
420
420
  }
421
421
  //#endregion
422
- //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.89.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/http/http.model.js
422
+ //#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.90.0_undici@8.11.2/node_modules/@naturalcycles/js-lib/dist/http/http.model.js
423
423
  var fe = [
424
424
  "GET",
425
425
  "POST",