@naturalcycles/internal-web-lib 1.5.0 → 1.6.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.
- package/bundle/analyticsClient.js +19 -19
- package/bundle/analyticsClient.js.map +1 -1
- package/bundle/conversionClient.js +17 -17
- package/bundle/conversionClient.js.map +1 -1
- package/bundle/cookieMonster.js +169 -137
- package/bundle/cookieMonster.js.map +1 -1
- package/dist/cookie-monster/css/shared-sheets.js +1 -1
- package/dist/cookie-monster/utils/translationsService.d.ts +2 -2
- package/dist/cookie-monster/utils/translationsService.js +5 -5
- package/dist/node_modules/.pnpm/{@naturalcycles_ncuikit@1.15.0_react@19.3.0_undici@8.11.2 → @naturalcycles_ncuikit@1.17.0_react@19.3.1_undici@8.12.1}/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/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.93.
|
|
11
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/abort.js
|
|
12
12
|
function r(e) {
|
|
13
13
|
return e ? i(e) : void 0;
|
|
14
14
|
}
|
|
@@ -38,7 +38,7 @@ function c(e) {
|
|
|
38
38
|
return t.signal;
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
41
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/log/commonLogger.js
|
|
42
42
|
function l(e, t) {
|
|
43
43
|
let n = (n, [r, i]) => e({
|
|
44
44
|
...t?.(),
|
|
@@ -67,7 +67,7 @@ var d = l(({ level: e, msg: t, err: n, ...r }) => {
|
|
|
67
67
|
t !== void 0 && i.push(t), n !== void 0 && i.push(n), Object.keys(r).length && i.push(r), console[e](...i);
|
|
68
68
|
}), f = (...e) => void 0, p = Object.entries;
|
|
69
69
|
//#endregion
|
|
70
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
70
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/object/object.util.js
|
|
71
71
|
function ee(e, t, n = {}) {
|
|
72
72
|
if (n.mutate) {
|
|
73
73
|
for (let n of Object.keys(e)) t.includes(n) || delete e[n];
|
|
@@ -114,7 +114,7 @@ function y(e, ...n) {
|
|
|
114
114
|
return e;
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
117
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/env.js
|
|
118
118
|
function b() {
|
|
119
119
|
return !x();
|
|
120
120
|
}
|
|
@@ -122,7 +122,7 @@ function x() {
|
|
|
122
122
|
return typeof window < "u" && !!window?.document;
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
125
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/json.util.js
|
|
126
126
|
var S = /^\s*[{["\-\d]/;
|
|
127
127
|
function C(e, t) {
|
|
128
128
|
if (typeof e == "string" && e && S.test(e)) try {
|
|
@@ -138,7 +138,7 @@ function ne(e, t) {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
//#endregion
|
|
141
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
141
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/string.util.js
|
|
142
142
|
function w(e, t, n = "...") {
|
|
143
143
|
if (!e || e.length <= t) return e;
|
|
144
144
|
if (t <= n.length) return n;
|
|
@@ -146,7 +146,7 @@ function w(e, t, n = "...") {
|
|
|
146
146
|
return e.slice(0, r) + n + e.slice(i);
|
|
147
147
|
}
|
|
148
148
|
//#endregion
|
|
149
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
149
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/error/error.util.js
|
|
150
150
|
function T(e, t = Error, n) {
|
|
151
151
|
let r;
|
|
152
152
|
return r = e instanceof t ? e : re(E(e), t), n && (r.data ||= {}, Object.assign(r.data, n)), r;
|
|
@@ -286,7 +286,7 @@ var M = class e extends Error {
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
//#endregion
|
|
289
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
289
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/safeJsonStringify.js
|
|
290
290
|
function P(e, t, n, r) {
|
|
291
291
|
try {
|
|
292
292
|
return JSON.stringify(e, t, n);
|
|
@@ -305,7 +305,7 @@ function ce(e, t) {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
308
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/stringify.js
|
|
309
309
|
var le = typeof globalThis.AggregateError == "function", ue = P;
|
|
310
310
|
function F(e, t = {}) {
|
|
311
311
|
if (e === void 0) return "undefined";
|
|
@@ -343,7 +343,7 @@ function de(e, t) {
|
|
|
343
343
|
].join("\n")), e.cause && n && (r = r + "\nCaused by: " + F(e.cause, t)), r;
|
|
344
344
|
}
|
|
345
345
|
//#endregion
|
|
346
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
346
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/error/assert.js
|
|
347
347
|
function I(e, t = Error) {
|
|
348
348
|
if (!(e instanceof t)) throw new ie(`Expected to be instanceof ${t.name}, actual typeof: ${typeof e}`);
|
|
349
349
|
}
|
|
@@ -351,7 +351,7 @@ function L(e, t) {
|
|
|
351
351
|
if (!(e instanceof t)) throw e;
|
|
352
352
|
}
|
|
353
353
|
//#endregion
|
|
354
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
354
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/promise/pDelay.js
|
|
355
355
|
async function R(e, t) {
|
|
356
356
|
t?.aborted || await new Promise((n) => {
|
|
357
357
|
let r = setTimeout(i, e);
|
|
@@ -362,7 +362,7 @@ async function R(e, t) {
|
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
//#endregion
|
|
365
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
365
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/datetime/time.util.js
|
|
366
366
|
function z(e, t = Date.now()) {
|
|
367
367
|
return B(t - e);
|
|
368
368
|
}
|
|
@@ -373,12 +373,12 @@ function B(e) {
|
|
|
373
373
|
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`;
|
|
374
374
|
}
|
|
375
375
|
//#endregion
|
|
376
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
376
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/number/number.util.js
|
|
377
377
|
function V(e, t, n) {
|
|
378
378
|
return e <= t ? t : e >= n ? n : e;
|
|
379
379
|
}
|
|
380
380
|
//#endregion
|
|
381
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
381
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/analytics/analytics.model.js
|
|
382
382
|
var H = "identify";
|
|
383
383
|
function U(e) {
|
|
384
384
|
return e.length <= 255 ? e : Array.from(e).slice(0, 255).join("");
|
|
@@ -396,7 +396,7 @@ var W = [
|
|
|
396
396
|
"utm_marketing_tactic"
|
|
397
397
|
];
|
|
398
398
|
//#endregion
|
|
399
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
399
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/array/array.util.js
|
|
400
400
|
function fe(e, t) {
|
|
401
401
|
let n = {};
|
|
402
402
|
for (let r of e) {
|
|
@@ -406,7 +406,7 @@ function fe(e, t) {
|
|
|
406
406
|
return n;
|
|
407
407
|
}
|
|
408
408
|
//#endregion
|
|
409
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
409
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/promise/pTimeout.js
|
|
410
410
|
async function pe(e, t) {
|
|
411
411
|
let n = new AbortController(), { signal: r } = n;
|
|
412
412
|
if (!t.timeout) return await e(r);
|
|
@@ -433,7 +433,7 @@ async function pe(e, t) {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
//#endregion
|
|
436
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
436
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/url.util.js
|
|
437
437
|
function me(e, t) {
|
|
438
438
|
if (typeof e != "string") return null;
|
|
439
439
|
try {
|
|
@@ -443,7 +443,7 @@ function me(e, t) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
//#endregion
|
|
446
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
446
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/http/http.model.js
|
|
447
447
|
var he = [
|
|
448
448
|
"GET",
|
|
449
449
|
"POST",
|