@symbo.ls/scratch 2.11.125 → 2.11.131

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.
Files changed (43) hide show
  1. package/package.json +2 -2
  2. package/LICENSE +0 -21
  3. package/dist/cjs/defaultConfig/animation.js +0 -26
  4. package/dist/cjs/defaultConfig/cases.js +0 -26
  5. package/dist/cjs/defaultConfig/color.js +0 -28
  6. package/dist/cjs/defaultConfig/document.js +0 -26
  7. package/dist/cjs/defaultConfig/font-family.js +0 -34
  8. package/dist/cjs/defaultConfig/font.js +0 -26
  9. package/dist/cjs/defaultConfig/icons.js +0 -26
  10. package/dist/cjs/defaultConfig/index.js +0 -221
  11. package/dist/cjs/defaultConfig/media.js +0 -51
  12. package/dist/cjs/defaultConfig/responsive.js +0 -50
  13. package/dist/cjs/defaultConfig/sequence.js +0 -51
  14. package/dist/cjs/defaultConfig/spacing.js +0 -85
  15. package/dist/cjs/defaultConfig/svg.js +0 -28
  16. package/dist/cjs/defaultConfig/templates.js +0 -26
  17. package/dist/cjs/defaultConfig/theme.js +0 -26
  18. package/dist/cjs/defaultConfig/timing.js +0 -67
  19. package/dist/cjs/defaultConfig/typography.js +0 -71
  20. package/dist/cjs/defaultConfig/unit.js +0 -28
  21. package/dist/cjs/factory.js +0 -1502
  22. package/dist/cjs/index.js +0 -3083
  23. package/dist/cjs/package.json +0 -4
  24. package/dist/cjs/set.js +0 -2452
  25. package/dist/cjs/system/color.js +0 -1735
  26. package/dist/cjs/system/document.js +0 -1528
  27. package/dist/cjs/system/font.js +0 -1568
  28. package/dist/cjs/system/index.js +0 -2640
  29. package/dist/cjs/system/reset.js +0 -1637
  30. package/dist/cjs/system/spacing.js +0 -1812
  31. package/dist/cjs/system/svg.js +0 -1639
  32. package/dist/cjs/system/theme.js +0 -1823
  33. package/dist/cjs/system/timing.js +0 -1725
  34. package/dist/cjs/system/typography.js +0 -1778
  35. package/dist/cjs/tests/index.js +0 -30
  36. package/dist/cjs/transforms/index.js +0 -2001
  37. package/dist/cjs/utils/color.js +0 -1423
  38. package/dist/cjs/utils/font.js +0 -72
  39. package/dist/cjs/utils/index.js +0 -2001
  40. package/dist/cjs/utils/sequence.js +0 -1671
  41. package/dist/cjs/utils/sprite.js +0 -1546
  42. package/dist/cjs/utils/theme.js +0 -34
  43. package/dist/cjs/utils/var.js +0 -1527
@@ -1,1735 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from))
18
- if (!__hasOwnProp.call(to, key) && key !== except)
19
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
- // If the importer is in node compatibility mode or this is not an ESM
25
- // file that has been converted to a CommonJS file using a Babel-
26
- // compatible transform (i.e. "__esModule" has not been set), then set
27
- // "default" to the CommonJS "module.exports" for node compatibility.
28
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
- mod
30
- ));
31
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
-
33
- // ../../node_modules/@domql/utils/dist/cjs/key.js
34
- var require_key = __commonJS({
35
- "../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
36
- "use strict";
37
- var __defProp2 = Object.defineProperty;
38
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
40
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
41
- var __export2 = (target, all) => {
42
- for (var name in all)
43
- __defProp2(target, name, { get: all[name], enumerable: true });
44
- };
45
- var __copyProps2 = (to, from, except, desc) => {
46
- if (from && typeof from === "object" || typeof from === "function") {
47
- for (let key of __getOwnPropNames2(from))
48
- if (!__hasOwnProp2.call(to, key) && key !== except)
49
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
50
- }
51
- return to;
52
- };
53
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
54
- var key_exports = {};
55
- __export2(key_exports, {
56
- createKey: () => createKey,
57
- createSnapshotId: () => createSnapshotId
58
- });
59
- module2.exports = __toCommonJS2(key_exports);
60
- var createKey = function() {
61
- let index = 0;
62
- function newId() {
63
- index++;
64
- return index;
65
- }
66
- return newId;
67
- }();
68
- var createSnapshotId = createKey;
69
- }
70
- });
71
-
72
- // ../../node_modules/@domql/utils/dist/cjs/env.js
73
- var require_env = __commonJS({
74
- "../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
75
- "use strict";
76
- var __defProp2 = Object.defineProperty;
77
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
78
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
79
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
80
- var __export2 = (target, all) => {
81
- for (var name in all)
82
- __defProp2(target, name, { get: all[name], enumerable: true });
83
- };
84
- var __copyProps2 = (to, from, except, desc) => {
85
- if (from && typeof from === "object" || typeof from === "function") {
86
- for (let key of __getOwnPropNames2(from))
87
- if (!__hasOwnProp2.call(to, key) && key !== except)
88
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
89
- }
90
- return to;
91
- };
92
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
93
- var env_exports = {};
94
- __export2(env_exports, {
95
- NODE_ENV: () => NODE_ENV,
96
- getNev: () => getNev,
97
- isDevelopment: () => isDevelopment,
98
- isProduction: () => isProduction,
99
- isTest: () => isTest
100
- });
101
- module2.exports = __toCommonJS2(env_exports);
102
- var NODE_ENV = "development";
103
- var isProduction = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
104
- var isTest = (env = NODE_ENV) => env === "test";
105
- var isDevelopment = (env = NODE_ENV) => env === "development" || env === "dev";
106
- var getNev = (key, env = NODE_ENV) => env[key];
107
- }
108
- });
109
-
110
- // ../../node_modules/@domql/tags/dist/cjs/htmlTags.js
111
- var require_htmlTags = __commonJS({
112
- "../../node_modules/@domql/tags/dist/cjs/htmlTags.js"(exports, module2) {
113
- "use strict";
114
- var __defProp2 = Object.defineProperty;
115
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
116
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
117
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
118
- var __export2 = (target, all) => {
119
- for (var name in all)
120
- __defProp2(target, name, { get: all[name], enumerable: true });
121
- };
122
- var __copyProps2 = (to, from, except, desc) => {
123
- if (from && typeof from === "object" || typeof from === "function") {
124
- for (let key of __getOwnPropNames2(from))
125
- if (!__hasOwnProp2.call(to, key) && key !== except)
126
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
127
- }
128
- return to;
129
- };
130
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
131
- var htmlTags_exports = {};
132
- __export2(htmlTags_exports, {
133
- HTML_TAGS: () => HTML_TAGS
134
- });
135
- module2.exports = __toCommonJS2(htmlTags_exports);
136
- var HTML_TAGS = {
137
- root: [
138
- "body",
139
- "html"
140
- ],
141
- head: [
142
- "title",
143
- "base",
144
- "meta",
145
- "style"
146
- ],
147
- body: [
148
- "string",
149
- "fragment",
150
- "a",
151
- "abbr",
152
- "acronym",
153
- "address",
154
- "applet",
155
- "area",
156
- "article",
157
- "aside",
158
- "audio",
159
- "b",
160
- "basefont",
161
- "bdi",
162
- "bdo",
163
- "big",
164
- "blockquote",
165
- "br",
166
- "button",
167
- "canvas",
168
- "caption",
169
- "center",
170
- "cite",
171
- "code",
172
- "col",
173
- "colgroup",
174
- "data",
175
- "datalist",
176
- "dd",
177
- "del",
178
- "details",
179
- "dfn",
180
- "dialog",
181
- "dir",
182
- "div",
183
- "dl",
184
- "dt",
185
- "em",
186
- "embed",
187
- "fieldset",
188
- "figcaption",
189
- "figure",
190
- "font",
191
- "footer",
192
- "form",
193
- "frame",
194
- "frameset",
195
- "h1",
196
- "h2",
197
- "h3",
198
- "h4",
199
- "h5",
200
- "h6",
201
- "head",
202
- "header",
203
- "hr",
204
- "i",
205
- "iframe",
206
- "img",
207
- "input",
208
- "ins",
209
- "kbd",
210
- "label",
211
- "legend",
212
- "li",
213
- "link",
214
- "main",
215
- "map",
216
- "mark",
217
- "meter",
218
- "nav",
219
- "noframes",
220
- "noscript",
221
- "object",
222
- "ol",
223
- "optgroup",
224
- "option",
225
- "output",
226
- "p",
227
- "param",
228
- "picture",
229
- "pre",
230
- "progress",
231
- "q",
232
- "rp",
233
- "rt",
234
- "ruby",
235
- "s",
236
- "samp",
237
- "script",
238
- "section",
239
- "select",
240
- "small",
241
- "source",
242
- "span",
243
- "strike",
244
- "strong",
245
- "sub",
246
- "summary",
247
- "sup",
248
- "table",
249
- "tbody",
250
- "td",
251
- "template",
252
- "textarea",
253
- "tfoot",
254
- "th",
255
- "thead",
256
- "time",
257
- "tr",
258
- "track",
259
- "tt",
260
- "u",
261
- "ul",
262
- "var",
263
- "video",
264
- "wbr",
265
- // SVG
266
- "svg",
267
- "path"
268
- ]
269
- };
270
- }
271
- });
272
-
273
- // ../../node_modules/@domql/tags/dist/cjs/index.js
274
- var require_cjs = __commonJS({
275
- "../../node_modules/@domql/tags/dist/cjs/index.js"(exports, module2) {
276
- "use strict";
277
- var __defProp2 = Object.defineProperty;
278
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
279
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
280
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
281
- var __copyProps2 = (to, from, except, desc) => {
282
- if (from && typeof from === "object" || typeof from === "function") {
283
- for (let key of __getOwnPropNames2(from))
284
- if (!__hasOwnProp2.call(to, key) && key !== except)
285
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
286
- }
287
- return to;
288
- };
289
- var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
290
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
291
- var tags_exports = {};
292
- module2.exports = __toCommonJS2(tags_exports);
293
- __reExport(tags_exports, require_htmlTags(), module2.exports);
294
- }
295
- });
296
-
297
- // ../../node_modules/@domql/globals/dist/cjs/index.js
298
- var require_cjs2 = __commonJS({
299
- "../../node_modules/@domql/globals/dist/cjs/index.js"(exports, module2) {
300
- "use strict";
301
- var __defProp2 = Object.defineProperty;
302
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
303
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
304
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
305
- var __export2 = (target, all) => {
306
- for (var name in all)
307
- __defProp2(target, name, { get: all[name], enumerable: true });
308
- };
309
- var __copyProps2 = (to, from, except, desc) => {
310
- if (from && typeof from === "object" || typeof from === "function") {
311
- for (let key of __getOwnPropNames2(from))
312
- if (!__hasOwnProp2.call(to, key) && key !== except)
313
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
314
- }
315
- return to;
316
- };
317
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
318
- var globals_exports = {};
319
- __export2(globals_exports, {
320
- document: () => document3,
321
- global: () => global,
322
- self: () => self,
323
- window: () => window2
324
- });
325
- module2.exports = __toCommonJS2(globals_exports);
326
- var global = globalThis;
327
- var self = globalThis;
328
- var window2 = globalThis;
329
- var document3 = window2.document;
330
- }
331
- });
332
-
333
- // ../../node_modules/@domql/utils/dist/cjs/node.js
334
- var require_node = __commonJS({
335
- "../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
336
- "use strict";
337
- var __defProp2 = Object.defineProperty;
338
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
339
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
340
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
341
- var __export2 = (target, all) => {
342
- for (var name in all)
343
- __defProp2(target, name, { get: all[name], enumerable: true });
344
- };
345
- var __copyProps2 = (to, from, except, desc) => {
346
- if (from && typeof from === "object" || typeof from === "function") {
347
- for (let key of __getOwnPropNames2(from))
348
- if (!__hasOwnProp2.call(to, key) && key !== except)
349
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
350
- }
351
- return to;
352
- };
353
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
354
- var node_exports = {};
355
- __export2(node_exports, {
356
- isHtmlElement: () => isHtmlElement,
357
- isNode: () => isNode
358
- });
359
- module2.exports = __toCommonJS2(node_exports);
360
- var import_globals2 = require_cjs2();
361
- var isNode = (obj) => {
362
- return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
363
- };
364
- var isHtmlElement = (obj) => {
365
- return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
366
- };
367
- }
368
- });
369
-
370
- // ../../node_modules/@domql/utils/dist/cjs/types.js
371
- var require_types = __commonJS({
372
- "../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
373
- "use strict";
374
- var __defProp2 = Object.defineProperty;
375
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
376
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
377
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
378
- var __export2 = (target, all) => {
379
- for (var name in all)
380
- __defProp2(target, name, { get: all[name], enumerable: true });
381
- };
382
- var __copyProps2 = (to, from, except, desc) => {
383
- if (from && typeof from === "object" || typeof from === "function") {
384
- for (let key of __getOwnPropNames2(from))
385
- if (!__hasOwnProp2.call(to, key) && key !== except)
386
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
387
- }
388
- return to;
389
- };
390
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
391
- var types_exports = {};
392
- __export2(types_exports, {
393
- TYPES: () => TYPES,
394
- is: () => is,
395
- isArray: () => isArray5,
396
- isBoolean: () => isBoolean,
397
- isDefined: () => isDefined2,
398
- isFunction: () => isFunction,
399
- isNot: () => isNot,
400
- isNull: () => isNull,
401
- isNumber: () => isNumber2,
402
- isObject: () => isObject5,
403
- isObjectLike: () => isObjectLike2,
404
- isString: () => isString6,
405
- isUndefined: () => isUndefined,
406
- isValidHtmlTag: () => isValidHtmlTag
407
- });
408
- module2.exports = __toCommonJS2(types_exports);
409
- var import_tags = require_cjs();
410
- var import_node = require_node();
411
- var isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.includes(arg);
412
- var isObject5 = (arg) => {
413
- if (arg === null)
414
- return false;
415
- return typeof arg === "object" && arg.constructor === Object;
416
- };
417
- var isString6 = (arg) => typeof arg === "string";
418
- var isNumber2 = (arg) => typeof arg === "number";
419
- var isFunction = (arg) => typeof arg === "function";
420
- var isBoolean = (arg) => arg === true || arg === false;
421
- var isNull = (arg) => arg === null;
422
- var isArray5 = (arg) => Array.isArray(arg);
423
- var isObjectLike2 = (arg) => {
424
- if (arg === null)
425
- return false;
426
- return typeof arg === "object";
427
- };
428
- var isDefined2 = (arg) => {
429
- return isObject5(arg) || isObjectLike2(arg) || isString6(arg) || isNumber2(arg) || isFunction(arg) || isArray5(arg) || isObjectLike2(arg) || isBoolean(arg) || isNull(arg);
430
- };
431
- var isUndefined = (arg) => {
432
- return arg === void 0;
433
- };
434
- var TYPES = {
435
- boolean: isBoolean,
436
- array: isArray5,
437
- object: isObject5,
438
- string: isString6,
439
- number: isNumber2,
440
- null: isNull,
441
- function: isFunction,
442
- objectLike: isObjectLike2,
443
- node: import_node.isNode,
444
- htmlElement: import_node.isHtmlElement,
445
- defined: isDefined2
446
- };
447
- var is = (arg) => {
448
- return (...args) => {
449
- return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
450
- };
451
- };
452
- var isNot = (arg) => {
453
- return (...args) => {
454
- return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
455
- };
456
- };
457
- }
458
- });
459
-
460
- // ../../node_modules/@domql/utils/dist/cjs/array.js
461
- var require_array = __commonJS({
462
- "../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
463
- "use strict";
464
- var __defProp2 = Object.defineProperty;
465
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
466
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
467
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
468
- var __export2 = (target, all) => {
469
- for (var name in all)
470
- __defProp2(target, name, { get: all[name], enumerable: true });
471
- };
472
- var __copyProps2 = (to, from, except, desc) => {
473
- if (from && typeof from === "object" || typeof from === "function") {
474
- for (let key of __getOwnPropNames2(from))
475
- if (!__hasOwnProp2.call(to, key) && key !== except)
476
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
477
- }
478
- return to;
479
- };
480
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
481
- var array_exports = {};
482
- __export2(array_exports, {
483
- arrayContainsOtherArray: () => arrayContainsOtherArray,
484
- createNestedObject: () => createNestedObject,
485
- cutArrayAfterValue: () => cutArrayAfterValue,
486
- cutArrayBeforeValue: () => cutArrayBeforeValue,
487
- joinArrays: () => joinArrays,
488
- mergeAndCloneIfArray: () => mergeAndCloneIfArray,
489
- mergeArray: () => mergeArray,
490
- removeFromArray: () => removeFromArray,
491
- swapItemsInArray: () => swapItemsInArray
492
- });
493
- module2.exports = __toCommonJS2(array_exports);
494
- var import_object = require_object();
495
- var import_types = require_types();
496
- var arrayContainsOtherArray = (arr1, arr2) => {
497
- return arr2.every((val) => arr1.includes(val));
498
- };
499
- var removeFromArray = (arr, index) => {
500
- if ((0, import_types.isString)(index))
501
- index = parseInt(index);
502
- if ((0, import_types.isNumber)(index)) {
503
- if (index < 0 || index >= arr.length || isNaN(index)) {
504
- throw new Error("Invalid index");
505
- }
506
- arr.splice(index, 1);
507
- } else if ((0, import_types.isArray)(index)) {
508
- index.forEach((idx) => removeFromArray(arr, idx));
509
- } else {
510
- throw new Error("Invalid index");
511
- }
512
- return arr;
513
- };
514
- var swapItemsInArray = (arr, i, j) => {
515
- [arr[i], arr[j]] = [arr[j], arr[i]];
516
- };
517
- var joinArrays = (...arrays) => {
518
- return [].concat(...arrays);
519
- };
520
- var mergeArray = (arr, excludeFrom = []) => {
521
- return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
522
- };
523
- var mergeAndCloneIfArray = (obj) => {
524
- return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
525
- };
526
- var cutArrayBeforeValue = (arr, value) => {
527
- const index = arr.indexOf(value);
528
- if (index !== -1) {
529
- return arr.slice(0, index);
530
- }
531
- return arr;
532
- };
533
- var cutArrayAfterValue = (arr, value) => {
534
- const index = arr.indexOf(value);
535
- if (index !== -1) {
536
- return arr.slice(index + 1);
537
- }
538
- return arr;
539
- };
540
- var createNestedObject = (arr, lastValue) => {
541
- const nestedObject = {};
542
- if (arr.length === 0) {
543
- return lastValue;
544
- }
545
- arr.reduce((obj, value, index) => {
546
- if (!obj[value]) {
547
- obj[value] = {};
548
- }
549
- if (index === arr.length - 1 && lastValue) {
550
- obj[value] = lastValue;
551
- }
552
- return obj[value];
553
- }, nestedObject);
554
- return nestedObject;
555
- };
556
- }
557
- });
558
-
559
- // ../../node_modules/@domql/utils/dist/cjs/string.js
560
- var require_string = __commonJS({
561
- "../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
562
- "use strict";
563
- var __defProp2 = Object.defineProperty;
564
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
565
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
566
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
567
- var __export2 = (target, all) => {
568
- for (var name in all)
569
- __defProp2(target, name, { get: all[name], enumerable: true });
570
- };
571
- var __copyProps2 = (to, from, except, desc) => {
572
- if (from && typeof from === "object" || typeof from === "function") {
573
- for (let key of __getOwnPropNames2(from))
574
- if (!__hasOwnProp2.call(to, key) && key !== except)
575
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
576
- }
577
- return to;
578
- };
579
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
580
- var string_exports = {};
581
- __export2(string_exports, {
582
- replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
583
- stringIncludesAny: () => stringIncludesAny
584
- });
585
- module2.exports = __toCommonJS2(string_exports);
586
- var stringIncludesAny = (str, characters) => {
587
- for (const char of characters) {
588
- if (str.includes(char)) {
589
- return true;
590
- }
591
- }
592
- return false;
593
- };
594
- var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
595
- var replaceLiteralsWithObjectFields = (str, state) => {
596
- if (!str.includes("{{"))
597
- return str;
598
- return str.replace(brackRegex, (_, parentPath, variable) => {
599
- if (parentPath) {
600
- const parentLevels = parentPath.match(/\.\.\//g).length;
601
- let parentState = state;
602
- for (let i = 0; i < parentLevels; i++) {
603
- parentState = parentState.parent;
604
- if (!parentState) {
605
- return "";
606
- }
607
- }
608
- const value = parentState[variable.trim()];
609
- return value !== void 0 ? `${value}` : "";
610
- } else {
611
- const value = state[variable.trim()];
612
- return value !== void 0 ? `${value}` : "";
613
- }
614
- });
615
- };
616
- }
617
- });
618
-
619
- // ../../node_modules/@domql/utils/dist/cjs/object.js
620
- var require_object = __commonJS({
621
- "../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
622
- "use strict";
623
- var __defProp2 = Object.defineProperty;
624
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
625
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
626
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
627
- var __export2 = (target, all) => {
628
- for (var name in all)
629
- __defProp2(target, name, { get: all[name], enumerable: true });
630
- };
631
- var __copyProps2 = (to, from, except, desc) => {
632
- if (from && typeof from === "object" || typeof from === "function") {
633
- for (let key of __getOwnPropNames2(from))
634
- if (!__hasOwnProp2.call(to, key) && key !== except)
635
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
636
- }
637
- return to;
638
- };
639
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
640
- var object_exports = {};
641
- __export2(object_exports, {
642
- clone: () => clone,
643
- deepClone: () => deepClone2,
644
- deepCloneExclude: () => deepCloneExclude,
645
- deepDestringify: () => deepDestringify,
646
- deepMerge: () => deepMerge2,
647
- deepStringify: () => deepStringify,
648
- detachFunctionsFromObject: () => detachFunctionsFromObject,
649
- diff: () => diff,
650
- diffArrays: () => diffArrays,
651
- diffObjects: () => diffObjects,
652
- exec: () => exec,
653
- flattenRecursive: () => flattenRecursive,
654
- isEqualDeep: () => isEqualDeep,
655
- map: () => map,
656
- merge: () => merge,
657
- mergeArrayExclude: () => mergeArrayExclude,
658
- mergeIfExisted: () => mergeIfExisted,
659
- objectToString: () => objectToString,
660
- overwrite: () => overwrite,
661
- overwriteDeep: () => overwriteDeep,
662
- overwriteShallow: () => overwriteShallow,
663
- removeFromObject: () => removeFromObject,
664
- stringToObject: () => stringToObject
665
- });
666
- module2.exports = __toCommonJS2(object_exports);
667
- var import_globals2 = require_cjs2();
668
- var import_types = require_types();
669
- var import_array = require_array();
670
- var import_string = require_string();
671
- var exec = (param, element, state, context) => {
672
- if ((0, import_types.isFunction)(param)) {
673
- return param(
674
- element,
675
- state || element.state,
676
- context || element.context
677
- );
678
- }
679
- return param;
680
- };
681
- var map = (obj, extention, element) => {
682
- for (const e in extention) {
683
- obj[e] = exec(extention[e], element);
684
- }
685
- };
686
- var merge = (element, obj, excludeFrom = []) => {
687
- for (const e in obj) {
688
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
689
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
690
- continue;
691
- const elementProp = element[e];
692
- const objProp = obj[e];
693
- if (elementProp === void 0) {
694
- element[e] = objProp;
695
- }
696
- }
697
- return element;
698
- };
699
- var deepMerge2 = (element, extend, excludeFrom = []) => {
700
- for (const e in extend) {
701
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
702
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
703
- continue;
704
- const elementProp = element[e];
705
- const extendProp = extend[e];
706
- if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
707
- deepMerge2(elementProp, extendProp);
708
- } else if (elementProp === void 0) {
709
- element[e] = extendProp;
710
- }
711
- }
712
- return element;
713
- };
714
- var clone = (obj, excludeFrom = []) => {
715
- const o = {};
716
- for (const prop in obj) {
717
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
718
- if (!hasOwnProperty || excludeFrom.includes(prop) || prop.startsWith("__"))
719
- continue;
720
- o[prop] = obj[prop];
721
- }
722
- return o;
723
- };
724
- var deepCloneExclude = (obj, excludeFrom = []) => {
725
- if ((0, import_types.isArray)(obj)) {
726
- return obj.map((x) => deepCloneExclude(x, excludeFrom));
727
- }
728
- const o = {};
729
- for (const k in obj) {
730
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, k);
731
- if (!hasOwnProperty || excludeFrom.includes(k) || k.startsWith("__"))
732
- continue;
733
- let v = obj[k];
734
- if (k === "extend" && (0, import_types.isArray)(v)) {
735
- v = mergeArrayExclude(v, excludeFrom);
736
- }
737
- if ((0, import_types.isArray)(v)) {
738
- o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
739
- } else if ((0, import_types.isObject)(v)) {
740
- o[k] = deepCloneExclude(v, excludeFrom);
741
- } else
742
- o[k] = v;
743
- }
744
- return o;
745
- };
746
- var mergeArrayExclude = (arr, excl = []) => {
747
- return arr.reduce((acc, curr) => deepMerge2(acc, deepCloneExclude(curr, excl)), {});
748
- };
749
- var deepClone2 = (obj, excludeFrom = []) => {
750
- const o = (0, import_types.isArray)(obj) ? [] : {};
751
- for (const prop in obj) {
752
- if (prop === "__proto__")
753
- continue;
754
- if (excludeFrom.includes(prop) || prop.startsWith("__"))
755
- continue;
756
- let objProp = obj[prop];
757
- if (prop === "extend" && (0, import_types.isArray)(objProp)) {
758
- objProp = (0, import_array.mergeArray)(objProp);
759
- }
760
- if ((0, import_types.isObjectLike)(objProp)) {
761
- o[prop] = deepClone2(objProp, excludeFrom);
762
- } else
763
- o[prop] = objProp;
764
- }
765
- return o;
766
- };
767
- var deepStringify = (obj, stringified = {}) => {
768
- for (const prop in obj) {
769
- const objProp = obj[prop];
770
- if ((0, import_types.isFunction)(objProp)) {
771
- stringified[prop] = objProp.toString();
772
- } else if ((0, import_types.isObject)(objProp)) {
773
- stringified[prop] = {};
774
- deepStringify(objProp, stringified[prop]);
775
- } else if ((0, import_types.isArray)(objProp)) {
776
- stringified[prop] = [];
777
- objProp.forEach((v, i) => {
778
- if ((0, import_types.isObject)(v)) {
779
- stringified[prop][i] = {};
780
- deepStringify(v, stringified[prop][i]);
781
- } else if ((0, import_types.isFunction)(v)) {
782
- stringified[prop][i] = v.toString();
783
- } else {
784
- stringified[prop][i] = v;
785
- }
786
- });
787
- } else {
788
- stringified[prop] = objProp;
789
- }
790
- }
791
- return stringified;
792
- };
793
- var objectToString = (obj, indent = 0) => {
794
- const spaces = " ".repeat(indent);
795
- let str = "{\n";
796
- for (const [key, value] of Object.entries(obj)) {
797
- const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
798
- const stringedKey = keyAllowdChars ? `'${key}'` : key;
799
- str += `${spaces} ${stringedKey}: `;
800
- if ((0, import_types.isArray)(value)) {
801
- str += "[\n";
802
- for (const element of value) {
803
- if ((0, import_types.isObject)(element) && element !== null) {
804
- str += `${spaces} ${objectToString(element, indent + 2)},
805
- `;
806
- } else if ((0, import_types.isString)(element)) {
807
- str += `${spaces} '${element}',
808
- `;
809
- } else {
810
- str += `${spaces} ${element},
811
- `;
812
- }
813
- }
814
- str += `${spaces} ]`;
815
- } else if ((0, import_types.isObject)(value)) {
816
- str += objectToString(value, indent + 1);
817
- } else if ((0, import_types.isString)(value)) {
818
- str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
819
- } else {
820
- str += value;
821
- }
822
- str += ",\n";
823
- }
824
- str += `${spaces}}`;
825
- return str;
826
- };
827
- var detachFunctionsFromObject = (obj, detached = {}) => {
828
- for (const prop in obj) {
829
- const objProp = obj[prop];
830
- if ((0, import_types.isFunction)(objProp))
831
- continue;
832
- else if ((0, import_types.isObject)(objProp)) {
833
- detached[prop] = {};
834
- deepStringify(objProp, detached[prop]);
835
- } else if ((0, import_types.isArray)(objProp)) {
836
- detached[prop] = [];
837
- objProp.forEach((v, i) => {
838
- if ((0, import_types.isFunction)(v))
839
- return;
840
- if ((0, import_types.isObject)(v)) {
841
- detached[prop][i] = {};
842
- detachFunctionsFromObject(v, detached[prop][i]);
843
- } else {
844
- detached[prop][i] = v;
845
- }
846
- });
847
- } else {
848
- detached[prop] = objProp;
849
- }
850
- }
851
- return detached;
852
- };
853
- var deepDestringify = (obj, stringified = {}) => {
854
- for (const prop in obj) {
855
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
856
- if (!hasOwnProperty)
857
- continue;
858
- const objProp = obj[prop];
859
- if ((0, import_types.isString)(objProp)) {
860
- if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
861
- try {
862
- const evalProp = import_globals2.window.eval(`(${objProp})`);
863
- stringified[prop] = evalProp;
864
- } catch (e) {
865
- if (e)
866
- stringified[prop] = objProp;
867
- }
868
- } else {
869
- stringified[prop] = objProp;
870
- }
871
- } else if ((0, import_types.isArray)(objProp)) {
872
- stringified[prop] = [];
873
- objProp.forEach((arrProp) => {
874
- if ((0, import_types.isString)(arrProp)) {
875
- if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
876
- try {
877
- const evalProp = import_globals2.window.eval(`(${arrProp})`);
878
- stringified[prop].push(evalProp);
879
- } catch (e) {
880
- if (e)
881
- stringified[prop].push(arrProp);
882
- }
883
- } else {
884
- stringified[prop].push(arrProp);
885
- }
886
- } else if ((0, import_types.isObject)(arrProp)) {
887
- stringified[prop].push(deepDestringify(arrProp));
888
- } else {
889
- stringified[prop].push(arrProp);
890
- }
891
- });
892
- } else if ((0, import_types.isObject)(objProp)) {
893
- stringified[prop] = deepDestringify(objProp, stringified[prop]);
894
- } else {
895
- stringified[prop] = objProp;
896
- }
897
- }
898
- return stringified;
899
- };
900
- var stringToObject = (str) => {
901
- let obj;
902
- try {
903
- obj = import_globals2.window.eval("(" + str + ")");
904
- } catch (e) {
905
- console.warn(e);
906
- }
907
- if (obj)
908
- return obj;
909
- };
910
- var diffObjects = (original, objToDiff, cache) => {
911
- for (const e in objToDiff) {
912
- if (e === "ref")
913
- continue;
914
- const originalProp = original[e];
915
- const objToDiffProp = objToDiff[e];
916
- if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
917
- cache[e] = {};
918
- diff(originalProp, objToDiffProp, cache[e]);
919
- } else if (objToDiffProp !== void 0) {
920
- cache[e] = objToDiffProp;
921
- }
922
- }
923
- return cache;
924
- };
925
- var diffArrays = (original, objToDiff, cache) => {
926
- if (original.length !== objToDiff.length) {
927
- cache = objToDiff;
928
- } else {
929
- const diffArr = [];
930
- for (let i = 0; i < original.length; i++) {
931
- const diffObj = diff(original[i], objToDiff[i]);
932
- if (Object.keys(diffObj).length > 0) {
933
- diffArr.push(diffObj);
934
- }
935
- }
936
- if (diffArr.length > 0) {
937
- cache = diffArr;
938
- }
939
- }
940
- return cache;
941
- };
942
- var diff = (original, objToDiff, cache = {}) => {
943
- if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
944
- cache = [];
945
- diffArrays(original, objToDiff, cache);
946
- } else {
947
- diffObjects(original, objToDiff, cache);
948
- }
949
- return cache;
950
- };
951
- var overwrite = (element, params, excludeFrom = []) => {
952
- const { ref } = element;
953
- const changes = {};
954
- for (const e in params) {
955
- if (excludeFrom.includes(e) || e.startsWith("__"))
956
- continue;
957
- const elementProp = element[e];
958
- const paramsProp = params[e];
959
- if (paramsProp) {
960
- ref.__cache[e] = changes[e] = elementProp;
961
- ref[e] = paramsProp;
962
- }
963
- }
964
- return changes;
965
- };
966
- var overwriteShallow = (obj, params, excludeFrom = []) => {
967
- for (const e in params) {
968
- if (excludeFrom.includes(e) || e.startsWith("__"))
969
- continue;
970
- obj[e] = params[e];
971
- }
972
- return obj;
973
- };
974
- var overwriteDeep = (obj, params, excludeFrom = []) => {
975
- for (const e in params) {
976
- if (e === "__proto__")
977
- continue;
978
- if (excludeFrom.includes(e) || e.startsWith("__"))
979
- continue;
980
- const objProp = obj[e];
981
- const paramsProp = params[e];
982
- if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
983
- overwriteDeep(objProp, paramsProp);
984
- } else if (paramsProp !== void 0) {
985
- obj[e] = paramsProp;
986
- }
987
- }
988
- return obj;
989
- };
990
- var mergeIfExisted = (a, b) => {
991
- if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
992
- return deepMerge2(a, b);
993
- return a || b;
994
- };
995
- var flattenRecursive = (param, prop, stack = []) => {
996
- const objectized = (0, import_array.mergeAndCloneIfArray)(param);
997
- stack.push(objectized);
998
- const extendOfExtend = objectized[prop];
999
- if (extendOfExtend)
1000
- flattenRecursive(extendOfExtend, prop, stack);
1001
- delete objectized[prop];
1002
- return stack;
1003
- };
1004
- var isEqualDeep = (param, element) => {
1005
- if (param === element)
1006
- return true;
1007
- if (!param || !element)
1008
- return false;
1009
- for (const prop in param) {
1010
- const paramProp = param[prop];
1011
- const elementProp = element[prop];
1012
- if ((0, import_types.isObjectLike)(paramProp)) {
1013
- const isEqual = isEqualDeep(paramProp, elementProp);
1014
- if (!isEqual)
1015
- return false;
1016
- } else {
1017
- const isEqual = paramProp === elementProp;
1018
- if (!isEqual)
1019
- return false;
1020
- }
1021
- }
1022
- return true;
1023
- };
1024
- var removeFromObject = (obj, props) => {
1025
- if (props === void 0 || props === null)
1026
- return obj;
1027
- if ((0, import_types.is)(props)("string", "number")) {
1028
- delete obj[props];
1029
- } else if ((0, import_types.isArray)(props)) {
1030
- props.forEach((prop) => delete obj[prop]);
1031
- } else {
1032
- throw new Error("Invalid input: props must be a string or an array of strings");
1033
- }
1034
- return obj;
1035
- };
1036
- }
1037
- });
1038
-
1039
- // ../../node_modules/@domql/utils/dist/cjs/function.js
1040
- var require_function = __commonJS({
1041
- "../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
1042
- "use strict";
1043
- var __defProp2 = Object.defineProperty;
1044
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1045
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1046
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1047
- var __export2 = (target, all) => {
1048
- for (var name in all)
1049
- __defProp2(target, name, { get: all[name], enumerable: true });
1050
- };
1051
- var __copyProps2 = (to, from, except, desc) => {
1052
- if (from && typeof from === "object" || typeof from === "function") {
1053
- for (let key of __getOwnPropNames2(from))
1054
- if (!__hasOwnProp2.call(to, key) && key !== except)
1055
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1056
- }
1057
- return to;
1058
- };
1059
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1060
- var function_exports = {};
1061
- __export2(function_exports, {
1062
- debounce: () => debounce,
1063
- memoize: () => memoize
1064
- });
1065
- module2.exports = __toCommonJS2(function_exports);
1066
- var debounce = (element, func, timeout = 300) => {
1067
- let timer;
1068
- return (...args) => {
1069
- clearTimeout(timer);
1070
- timer = setTimeout(() => {
1071
- func.apply(element, args);
1072
- }, timeout);
1073
- };
1074
- };
1075
- var memoize = (fn) => {
1076
- const cache = {};
1077
- return (...args) => {
1078
- const n = args[0];
1079
- if (n in cache) {
1080
- return cache[n];
1081
- } else {
1082
- const result = fn(n);
1083
- cache[n] = result;
1084
- return result;
1085
- }
1086
- };
1087
- };
1088
- }
1089
- });
1090
-
1091
- // ../../node_modules/@domql/utils/dist/cjs/log.js
1092
- var require_log = __commonJS({
1093
- "../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
1094
- "use strict";
1095
- var __defProp2 = Object.defineProperty;
1096
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1097
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1098
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1099
- var __export2 = (target, all) => {
1100
- for (var name in all)
1101
- __defProp2(target, name, { get: all[name], enumerable: true });
1102
- };
1103
- var __copyProps2 = (to, from, except, desc) => {
1104
- if (from && typeof from === "object" || typeof from === "function") {
1105
- for (let key of __getOwnPropNames2(from))
1106
- if (!__hasOwnProp2.call(to, key) && key !== except)
1107
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1108
- }
1109
- return to;
1110
- };
1111
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1112
- var log_exports = {};
1113
- __export2(log_exports, {
1114
- logGroupIf: () => logGroupIf,
1115
- logIf: () => logIf
1116
- });
1117
- module2.exports = __toCommonJS2(log_exports);
1118
- var logIf = (bool, ...arg) => {
1119
- if (bool)
1120
- arg.map((v) => console.log(v));
1121
- };
1122
- var logGroupIf = (bool, key, ...arg) => {
1123
- if (bool) {
1124
- console.group(key);
1125
- arg.map((v) => console.log(v));
1126
- console.groupEnd(key);
1127
- }
1128
- };
1129
- }
1130
- });
1131
-
1132
- // ../../node_modules/@domql/utils/dist/cjs/globals.js
1133
- var require_globals = __commonJS({
1134
- "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
1135
- "use strict";
1136
- var __defProp2 = Object.defineProperty;
1137
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1138
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1139
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1140
- var __export2 = (target, all) => {
1141
- for (var name in all)
1142
- __defProp2(target, name, { get: all[name], enumerable: true });
1143
- };
1144
- var __copyProps2 = (to, from, except, desc) => {
1145
- if (from && typeof from === "object" || typeof from === "function") {
1146
- for (let key of __getOwnPropNames2(from))
1147
- if (!__hasOwnProp2.call(to, key) && key !== except)
1148
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1149
- }
1150
- return to;
1151
- };
1152
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1153
- var globals_exports = {};
1154
- __export2(globals_exports, {
1155
- document: () => document3,
1156
- global: () => global,
1157
- self: () => self,
1158
- window: () => window2
1159
- });
1160
- module2.exports = __toCommonJS2(globals_exports);
1161
- var global = globalThis;
1162
- var self = globalThis;
1163
- var window2 = globalThis;
1164
- var document3 = window2.document;
1165
- }
1166
- });
1167
-
1168
- // ../../node_modules/@domql/utils/dist/cjs/cookie.js
1169
- var require_cookie = __commonJS({
1170
- "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
1171
- "use strict";
1172
- var __defProp2 = Object.defineProperty;
1173
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1174
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1175
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1176
- var __export2 = (target, all) => {
1177
- for (var name in all)
1178
- __defProp2(target, name, { get: all[name], enumerable: true });
1179
- };
1180
- var __copyProps2 = (to, from, except, desc) => {
1181
- if (from && typeof from === "object" || typeof from === "function") {
1182
- for (let key of __getOwnPropNames2(from))
1183
- if (!__hasOwnProp2.call(to, key) && key !== except)
1184
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1185
- }
1186
- return to;
1187
- };
1188
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1189
- var cookie_exports = {};
1190
- __export2(cookie_exports, {
1191
- getCookie: () => getCookie,
1192
- isMobile: () => isMobile,
1193
- setCookie: () => setCookie
1194
- });
1195
- module2.exports = __toCommonJS2(cookie_exports);
1196
- var import_types = require_types();
1197
- var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
1198
- var setCookie = (cname, cvalue, exdays = 365) => {
1199
- if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
1200
- return;
1201
- const d = /* @__PURE__ */ new Date();
1202
- d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
1203
- const expires = `expires=${d.toUTCString()}`;
1204
- document.cookie = `${cname}=${cvalue};${expires};path=/`;
1205
- };
1206
- var getCookie = (cname) => {
1207
- if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
1208
- return;
1209
- const name = `${cname}=`;
1210
- const decodedCookie = decodeURIComponent(document.cookie);
1211
- const ca = decodedCookie.split(";");
1212
- for (let i = 0; i < ca.length; i++) {
1213
- let c = ca[i];
1214
- while (c.charAt(0) === " ")
1215
- c = c.substring(1);
1216
- if (c.indexOf(name) === 0)
1217
- return c.substring(name.length, c.length);
1218
- }
1219
- return "";
1220
- };
1221
- }
1222
- });
1223
-
1224
- // ../../node_modules/@domql/utils/dist/cjs/index.js
1225
- var require_cjs3 = __commonJS({
1226
- "../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
1227
- "use strict";
1228
- var __defProp2 = Object.defineProperty;
1229
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1230
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1231
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1232
- var __copyProps2 = (to, from, except, desc) => {
1233
- if (from && typeof from === "object" || typeof from === "function") {
1234
- for (let key of __getOwnPropNames2(from))
1235
- if (!__hasOwnProp2.call(to, key) && key !== except)
1236
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1237
- }
1238
- return to;
1239
- };
1240
- var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
1241
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1242
- var utils_exports = {};
1243
- module2.exports = __toCommonJS2(utils_exports);
1244
- __reExport(utils_exports, require_key(), module2.exports);
1245
- __reExport(utils_exports, require_env(), module2.exports);
1246
- __reExport(utils_exports, require_types(), module2.exports);
1247
- __reExport(utils_exports, require_object(), module2.exports);
1248
- __reExport(utils_exports, require_function(), module2.exports);
1249
- __reExport(utils_exports, require_array(), module2.exports);
1250
- __reExport(utils_exports, require_node(), module2.exports);
1251
- __reExport(utils_exports, require_log(), module2.exports);
1252
- __reExport(utils_exports, require_string(), module2.exports);
1253
- __reExport(utils_exports, require_globals(), module2.exports);
1254
- __reExport(utils_exports, require_cookie(), module2.exports);
1255
- }
1256
- });
1257
-
1258
- // src/system/color.js
1259
- var color_exports = {};
1260
- __export(color_exports, {
1261
- getColor: () => getColor,
1262
- getMediaColor: () => getMediaColor,
1263
- setColor: () => setColor,
1264
- setGradient: () => setGradient
1265
- });
1266
- module.exports = __toCommonJS(color_exports);
1267
-
1268
- // src/factory.js
1269
- var import_utils = __toESM(require_cjs3(), 1);
1270
-
1271
- // src/defaultConfig/index.js
1272
- var defaultConfig_exports = {};
1273
- __export(defaultConfig_exports, {
1274
- ANIMATION: () => ANIMATION,
1275
- BREAKPOINTS: () => BREAKPOINTS,
1276
- CASES: () => CASES,
1277
- COLOR: () => COLOR,
1278
- DEVICES: () => DEVICES,
1279
- DOCUMENT: () => DOCUMENT,
1280
- FONT: () => FONT,
1281
- FONT_FACE: () => FONT_FACE,
1282
- FONT_FAMILY: () => FONT_FAMILY,
1283
- FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
1284
- GRADIENT: () => GRADIENT,
1285
- ICONS: () => ICONS,
1286
- MEDIA: () => MEDIA,
1287
- RESET: () => RESET,
1288
- SEQUENCE: () => SEQUENCE,
1289
- SPACING: () => SPACING,
1290
- SVG: () => SVG,
1291
- SVG_DATA: () => SVG_DATA,
1292
- TEMPLATES: () => TEMPLATES,
1293
- THEME: () => THEME,
1294
- TIMING: () => TIMING,
1295
- TYPOGRAPHY: () => TYPOGRAPHY,
1296
- UNIT: () => UNIT
1297
- });
1298
-
1299
- // src/defaultConfig/sequence.js
1300
- var SEQUENCE = {
1301
- "minor-second": 1.067,
1302
- "major-second": 1.125,
1303
- "minor-third": 1.2,
1304
- "major-third": 1.25,
1305
- "perfect-fourth": 1.333,
1306
- "augmented-fourth": 1.414,
1307
- "perfect-fifth": 1.5,
1308
- "minor-sixth": 1.6,
1309
- phi: 1.618,
1310
- // golden-ratio
1311
- "major-sixth": 1.667,
1312
- "square-root-3": 1.732,
1313
- // theodorus
1314
- "minor-seventh": 1.778,
1315
- "major-seventh": 1.875,
1316
- octave: 2,
1317
- "square-root-5": 2.23,
1318
- // pythagoras
1319
- "major-tenth": 2.5,
1320
- "major-eleventh": 2.667,
1321
- "major-twelfth": 3,
1322
- pi: 3.14,
1323
- // archimedes
1324
- "double-octave": 4
1325
- };
1326
-
1327
- // src/defaultConfig/unit.js
1328
- var UNIT = {
1329
- default: "em"
1330
- };
1331
-
1332
- // src/defaultConfig/typography.js
1333
- var defaultProps = {
1334
- browserDefault: 16,
1335
- base: 16,
1336
- type: "font-size",
1337
- ratio: SEQUENCE["minor-third"],
1338
- range: [-3, 12],
1339
- h1Matches: 6,
1340
- lineHeight: 1.5,
1341
- subSequence: true,
1342
- unit: "em",
1343
- templates: {},
1344
- sequence: {},
1345
- scales: {},
1346
- vars: {}
1347
- };
1348
- var TYPOGRAPHY = defaultProps;
1349
-
1350
- // src/defaultConfig/font.js
1351
- var FONT = {};
1352
-
1353
- // src/defaultConfig/font-family.js
1354
- var FONT_FAMILY = {};
1355
- var FONT_FAMILY_TYPES = {
1356
- "sans-serif": "Helvetica, Arial, sans-serif, --system-default",
1357
- serif: "Times New Roman, Georgia, serif, --system-default",
1358
- monospace: "Courier New, monospace, --system-default"
1359
- };
1360
- var FONT_FACE = {};
1361
-
1362
- // src/defaultConfig/media.js
1363
- var MEDIA = {
1364
- tv: "(min-width: 2780px)",
1365
- screenL: "(max-width: 1920px)",
1366
- "screenL<": "(min-width: 1920px)",
1367
- screenM: "(max-width: 1680px)",
1368
- "screenM<": "(min-width: 1680px)",
1369
- screenS: "(max-width: 1440px)",
1370
- "screenS<": "(min-width: 1440px)",
1371
- tabletL: "(max-width: 1366px)",
1372
- "tabletL<": "(min-width: 1366px)",
1373
- tabletM: "(max-width: 1280px)",
1374
- "tabletM<": "(min-width: 1280px)",
1375
- tabletS: "(max-width: 1024px)",
1376
- "tabletS<": "(min-width: 1024px)",
1377
- mobileL: "(max-width: 768px)",
1378
- "mobileL<": "(min-width: 768px)",
1379
- mobileM: "(max-width: 560px)",
1380
- "mobileM<": "(min-width: 560px)",
1381
- mobileS: "(max-width: 480px)",
1382
- "mobileS<": "(min-width: 480px)",
1383
- mobileXS: "(max-width: 375px)",
1384
- "mobileXS<": "(min-width: 375px)",
1385
- light: "(prefers-color-scheme: light)",
1386
- dark: "(prefers-color-scheme: dark)",
1387
- print: "print"
1388
- };
1389
-
1390
- // src/defaultConfig/spacing.js
1391
- var defaultProps2 = {
1392
- base: TYPOGRAPHY.base,
1393
- type: "spacing",
1394
- ratio: SEQUENCE.phi,
1395
- range: [-5, 15],
1396
- subSequence: true,
1397
- unit: "em",
1398
- sequence: {},
1399
- scales: {},
1400
- vars: {}
1401
- };
1402
- var SPACING = defaultProps2;
1403
-
1404
- // src/defaultConfig/color.js
1405
- var COLOR = {};
1406
- var GRADIENT = {};
1407
-
1408
- // src/defaultConfig/theme.js
1409
- var THEME = {};
1410
-
1411
- // src/defaultConfig/icons.js
1412
- var ICONS = {};
1413
-
1414
- // src/defaultConfig/timing.js
1415
- var defaultProps3 = {
1416
- default: 150,
1417
- base: 150,
1418
- type: "timing",
1419
- ratio: SEQUENCE["perfect-fourth"],
1420
- range: [-3, 12],
1421
- unit: "ms",
1422
- sequence: {},
1423
- scales: {},
1424
- vars: {}
1425
- };
1426
- var TIMING = defaultProps3;
1427
-
1428
- // src/defaultConfig/document.js
1429
- var DOCUMENT = {};
1430
-
1431
- // src/defaultConfig/responsive.js
1432
- var BREAKPOINTS = {
1433
- screenL: 1920,
1434
- screenM: 1680,
1435
- screenS: 1440,
1436
- tabletL: 1366,
1437
- tabletM: 1280,
1438
- tabletS: 1024,
1439
- mobileL: 768,
1440
- mobileM: 560,
1441
- mobileS: 480,
1442
- mobileXS: 375
1443
- };
1444
- var DEVICES = {
1445
- screenL: [1920, 1024],
1446
- screenM: [1680, 1024],
1447
- screenS: [1440, 978],
1448
- tabletL: [1366, 926],
1449
- tabletM: [1280, 768],
1450
- tabletS: [1024, 768],
1451
- mobileL: [768, 375],
1452
- mobileM: [560, 768],
1453
- mobileS: [480, 768],
1454
- mobileXS: [375, 768]
1455
- };
1456
-
1457
- // src/defaultConfig/cases.js
1458
- var CASES = {};
1459
-
1460
- // src/defaultConfig/animation.js
1461
- var ANIMATION = {};
1462
-
1463
- // src/defaultConfig/svg.js
1464
- var SVG = {};
1465
- var SVG_DATA = {};
1466
-
1467
- // src/defaultConfig/templates.js
1468
- var TEMPLATES = {};
1469
-
1470
- // src/defaultConfig/index.js
1471
- var RESET = {};
1472
-
1473
- // src/factory.js
1474
- var CSS_VARS = {};
1475
- var CONFIG = {
1476
- verbose: false,
1477
- useVariable: true,
1478
- useReset: true,
1479
- CSS_VARS,
1480
- ...defaultConfig_exports
1481
- };
1482
- var cachedConfig = (0, import_utils.deepClone)(CONFIG);
1483
- var FACTORY = {
1484
- active: "0",
1485
- 0: CONFIG
1486
- };
1487
- var getActiveConfig = (def) => {
1488
- return FACTORY[def || FACTORY.active];
1489
- };
1490
-
1491
- // src/system/color.js
1492
- var import_utils9 = __toESM(require_cjs3(), 1);
1493
-
1494
- // src/utils/color.js
1495
- var import_globals = __toESM(require_cjs2(), 1);
1496
- var import_utils2 = __toESM(require_cjs3(), 1);
1497
- var colorStringToRgbaArray = (color) => {
1498
- if (color === "")
1499
- return;
1500
- if (color.toLowerCase() === "transparent")
1501
- return [0, 0, 0, 0];
1502
- if (color[0] === "#") {
1503
- if (color.length < 7) {
1504
- color = "#" + color[1] + color[1] + color[2] + color[2] + color[3] + color[3] + (color.length > 4 ? color[4] + color[4] : "");
1505
- }
1506
- return [
1507
- parseInt(color.substr(1, 2), 16),
1508
- parseInt(color.substr(3, 2), 16),
1509
- parseInt(color.substr(5, 2), 16),
1510
- color.length > 7 ? parseInt(color.substr(7, 2), 16) / 255 : 1
1511
- ];
1512
- }
1513
- if (color.indexOf("rgb") === -1) {
1514
- if (import_globals.document && import_globals.window) {
1515
- const elem = import_globals.document.body.appendChild(import_globals.document.createElement("fictum"));
1516
- const flag = "rgb(1, 2, 3)";
1517
- elem.style.color = flag;
1518
- if (elem.style.color !== flag)
1519
- return;
1520
- elem.style.color = color;
1521
- if (elem.style.color === flag || elem.style.color === "")
1522
- return;
1523
- color = import_globals.window.getComputedStyle(elem).color;
1524
- import_globals.document.body.removeChild(elem);
1525
- }
1526
- }
1527
- if (color.indexOf("rgb") === 0) {
1528
- if (color.indexOf("rgba") === -1)
1529
- color = `${color}, 1`;
1530
- return color.match(/[\.\d]+/g).map((a) => +a);
1531
- }
1532
- return [];
1533
- };
1534
- var hexToRgbArray = (hex, alpha = 1) => {
1535
- const [r, g, b] = hex.match(/\w\w/g).map((x) => parseInt(x, 16));
1536
- return [r, g, b];
1537
- };
1538
- var rgbArrayToHex = ([r, g, b]) => {
1539
- return ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
1540
- };
1541
- var rgbToHSL = (r, g, b) => {
1542
- const a = Math.max(r, g, b);
1543
- const n = a - Math.min(r, g, b);
1544
- const f = 1 - Math.abs(a + a - n - 1);
1545
- const h = n && (a == r ? (g - b) / n : a == g ? 2 + (b - r) / n : 4 + (r - g) / n);
1546
- return [60 * (h < 0 ? h + 6 : h), f ? n / f : 0, (a + a - n) / 2];
1547
- };
1548
- var hslToRgb = (h, s, l, a = s * Math.min(l, 1 - l), f = (n, k = (n + h / 30) % 12) => l - a * Math.max(
1549
- Math.min(k - 3, 9 - k, 1),
1550
- -1
1551
- )) => [f(0), f(8), f(4)];
1552
- var getColorShade = (col, amt) => {
1553
- const num = parseInt(col, 16);
1554
- let r = (num >> 16) + amt;
1555
- if (r > 255)
1556
- r = 255;
1557
- else if (r < 0)
1558
- r = 0;
1559
- let b = (num >> 8 & 255) + amt;
1560
- if (b > 255)
1561
- b = 255;
1562
- else if (b < 0)
1563
- b = 0;
1564
- let g = (num & 255) + amt;
1565
- if (g > 255)
1566
- g = 255;
1567
- else if (g < 0)
1568
- g = 0;
1569
- return ((g | b << 8 | r << 16) + 16777216).toString(16).slice(1);
1570
- };
1571
- var getRgbTone = (rgb, tone) => {
1572
- if ((0, import_utils2.isString)(rgb))
1573
- rgb = rgb.split(", ").map((v) => parseFloat(v));
1574
- if ((0, import_utils2.isNumber)(tone))
1575
- tone += "";
1576
- const toHex = rgbArrayToHex(rgb);
1577
- const abs = tone.slice(0, 1);
1578
- if (abs === "-" || abs === "+") {
1579
- const colorShade = getColorShade(toHex, parseFloat(tone));
1580
- return hexToRgbArray(colorShade).join(", ");
1581
- } else {
1582
- const [r, g, b] = rgb;
1583
- const hsl = rgbToHSL(r, g, b);
1584
- const [h, s, l] = hsl;
1585
- const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
1586
- return newRgb;
1587
- }
1588
- };
1589
-
1590
- // src/utils/sequence.js
1591
- var import_utils5 = __toESM(require_cjs3(), 1);
1592
-
1593
- // ../utils/src/index.js
1594
- var import_utils4 = __toESM(require_cjs3());
1595
-
1596
- // ../utils/src/scaling.js
1597
- var import_utils3 = __toESM(require_cjs3());
1598
-
1599
- // src/utils/var.js
1600
- var import_utils7 = __toESM(require_cjs3(), 1);
1601
-
1602
- // src/utils/sprite.js
1603
- var import_utils8 = __toESM(require_cjs3(), 1);
1604
-
1605
- // src/system/color.js
1606
- var getColor = (value, key, config) => {
1607
- const CONFIG2 = config || getActiveConfig();
1608
- if (!(0, import_utils9.isString)(value)) {
1609
- if (CONFIG2.verbose)
1610
- console.warn(value, "- type for color is not valid");
1611
- return;
1612
- }
1613
- if (value.slice(0, 2) === "--")
1614
- return `var(${value})`;
1615
- if (key && value[key])
1616
- value = value[key];
1617
- const [name, alpha, tone] = (0, import_utils9.isArray)(value) ? value : value.split(" ");
1618
- const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG2;
1619
- let val = COLOR2[name] || GRADIENT2[name];
1620
- if (!val) {
1621
- if (CONFIG2.verbose)
1622
- console.warn("Can't find color ", name);
1623
- return value;
1624
- }
1625
- if (key) {
1626
- if (val[key])
1627
- val = val[key];
1628
- else if (CONFIG2.verbose)
1629
- console.warn(value, " - does not have ", key);
1630
- }
1631
- let rgb = val.rgb;
1632
- if (!rgb) {
1633
- return CONFIG2.useVariable ? `var(${val.var})` : val.value;
1634
- }
1635
- if (tone && !val[tone]) {
1636
- rgb = getRgbTone(rgb, tone);
1637
- val[tone] = { rgb, var: `${val.var}-${tone}` };
1638
- }
1639
- if (val[tone])
1640
- rgb = val[tone].rgb;
1641
- if (alpha)
1642
- return `rgba(${rgb}, ${alpha})`;
1643
- return CONFIG2.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
1644
- };
1645
- var getMediaColor = (value, globalTheme, config) => {
1646
- const CONFIG2 = config || getActiveConfig();
1647
- if (!globalTheme)
1648
- globalTheme = CONFIG2.globalTheme;
1649
- if (!(0, import_utils9.isString)(value)) {
1650
- if (CONFIG2.verbose)
1651
- console.warn(value, "- type for color is not valid");
1652
- return;
1653
- }
1654
- if (value.slice(0, 2) === "--")
1655
- return `var(${value})`;
1656
- const [name] = (0, import_utils9.isArray)(value) ? value : value.split(" ");
1657
- const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG2;
1658
- const val = COLOR2[name] || GRADIENT2[name];
1659
- const isObj = (0, import_utils9.isObject)(val);
1660
- if (isObj && val.value)
1661
- return getColor(value, `@${globalTheme}`, config);
1662
- else if (isObj) {
1663
- if (globalTheme)
1664
- return getColor(value, `@${globalTheme}`, config);
1665
- else {
1666
- const obj = {};
1667
- for (const mediaName in val) {
1668
- const query = CONFIG2.MEDIA[mediaName.slice(1)];
1669
- const media = `@media screen and ${query}`;
1670
- obj[media] = getColor(value, mediaName, config);
1671
- }
1672
- return obj;
1673
- }
1674
- } else {
1675
- if (CONFIG2.verbose)
1676
- console.warn("Can't find color", value);
1677
- return value;
1678
- }
1679
- };
1680
- var setColor = (val, key, suffix) => {
1681
- const CONFIG2 = getActiveConfig();
1682
- if ((0, import_utils9.isString)(val) && val.slice(0, 2) === "--")
1683
- val = getColor(val.slice(2));
1684
- if ((0, import_utils9.isArray)(val)) {
1685
- return {
1686
- "@light": setColor(val[0], key, "light"),
1687
- "@dark": setColor(val[1], key, "dark")
1688
- };
1689
- }
1690
- if ((0, import_utils9.isObject)(val)) {
1691
- const obj = {};
1692
- for (const variant in val)
1693
- obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
1694
- return obj;
1695
- }
1696
- const CSSVar = `--color-${key}` + (suffix ? `-${suffix}` : "");
1697
- const [r, g, b, a = 1] = colorStringToRgbaArray(val.value || val);
1698
- const alpha = parseFloat(a.toFixed(2));
1699
- const rgb = `${r}, ${g}, ${b}`;
1700
- const value = `rgba(${rgb}, ${alpha})`;
1701
- if (CONFIG2.useVariable) {
1702
- CONFIG2.CSS_VARS[CSSVar] = value;
1703
- }
1704
- return {
1705
- var: CSSVar,
1706
- rgb,
1707
- alpha,
1708
- value
1709
- };
1710
- };
1711
- var setGradient = (val, key, suffix) => {
1712
- const CONFIG2 = getActiveConfig();
1713
- if ((0, import_utils9.isString)(val) && val.slice(0, 2) === "--")
1714
- val = getColor(val.slice(2));
1715
- if ((0, import_utils9.isArray)(val)) {
1716
- return {
1717
- "@light": setGradient(val[0], key, "light"),
1718
- "@dark": setGradient(val[0], key, "dark")
1719
- };
1720
- }
1721
- if ((0, import_utils9.isObject)(val)) {
1722
- const obj = {};
1723
- for (const variant in val)
1724
- obj[variant] = setGradient(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
1725
- return obj;
1726
- }
1727
- const CSSVar = `--gradient-${key}` + (suffix ? `-${suffix}` : "");
1728
- if (CONFIG2.useVariable) {
1729
- CONFIG2.CSS_VARS[CSSVar] = val.value || val;
1730
- }
1731
- return {
1732
- var: CSSVar,
1733
- value: val.value || val
1734
- };
1735
- };