@symbo.ls/scratch 3.0.1 → 3.0.2

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.
@@ -34,23 +34,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
34
34
  var require_cjs = __commonJS({
35
35
  "../utils/dist/cjs/index.js"(exports, module2) {
36
36
  "use strict";
37
- var __defProp3 = Object.defineProperty;
37
+ var __defProp2 = Object.defineProperty;
38
38
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39
39
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
40
- var __hasOwnProp3 = Object.prototype.hasOwnProperty;
40
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
41
41
  var __export2 = (target, all) => {
42
42
  for (var name in all)
43
- __defProp3(target, name, { get: all[name], enumerable: true });
43
+ __defProp2(target, name, { get: all[name], enumerable: true });
44
44
  };
45
45
  var __copyProps2 = (to, from, except, desc) => {
46
46
  if (from && typeof from === "object" || typeof from === "function") {
47
47
  for (let key of __getOwnPropNames2(from))
48
- if (!__hasOwnProp3.call(to, key) && key !== except)
49
- __defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
48
+ if (!__hasOwnProp2.call(to, key) && key !== except)
49
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
50
50
  }
51
51
  return to;
52
52
  };
53
- var __toCommonJS2 = (mod) => __copyProps2(__defProp3({}, "__esModule", { value: true }), mod);
53
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
54
54
  var index_exports = {};
55
55
  __export2(index_exports, {
56
56
  arrayzeValue: () => arrayzeValue,
@@ -83,6 +83,75 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
+ var STATE_METHODS2 = [
87
+ "update",
88
+ "parse",
89
+ "clean",
90
+ "create",
91
+ "destroy",
92
+ "add",
93
+ "toggle",
94
+ "remove",
95
+ "apply",
96
+ "set",
97
+ "reset",
98
+ "replace",
99
+ "quietReplace",
100
+ "quietUpdate",
101
+ "applyReplace",
102
+ "applyFunction",
103
+ "keys",
104
+ "values",
105
+ "ref",
106
+ "rootUpdate",
107
+ "parentUpdate",
108
+ "parent",
109
+ "__element",
110
+ "__depends",
111
+ "__ref",
112
+ "__children",
113
+ "root",
114
+ "setByPath",
115
+ "setPathCollection",
116
+ "removeByPath",
117
+ "removePathCollection",
118
+ "getByPath"
119
+ ];
120
+ var PROPS_METHODS2 = ["update", "__element"];
121
+ var METHODS2 = [
122
+ "set",
123
+ "reset",
124
+ "update",
125
+ "remove",
126
+ "updateContent",
127
+ "removeContent",
128
+ "lookup",
129
+ "lookdown",
130
+ "lookdownAll",
131
+ "getRef",
132
+ "getPath",
133
+ "setNodeStyles",
134
+ "spotByPath",
135
+ "keys",
136
+ "parse",
137
+ "setProps",
138
+ "parseDeep",
139
+ "variables",
140
+ "if",
141
+ "log",
142
+ "verbose",
143
+ "warn",
144
+ "error",
145
+ "call",
146
+ "nextElement",
147
+ "previousElement"
148
+ ];
149
+ var METHODS_EXL2 = [
150
+ ...["node", "context", "extends", "__element", "__ref"],
151
+ ...METHODS2,
152
+ ...STATE_METHODS2,
153
+ ...PROPS_METHODS2
154
+ ];
86
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
87
156
  async function toggleFullscreen(opts) {
88
157
  if (!document.fullscreenElement) {
@@ -264,16 +333,16 @@ __export(theme_exports, {
264
333
  });
265
334
  module.exports = __toCommonJS(theme_exports);
266
335
 
267
- // node_modules/@domql/utils/dist/esm/globals.js
336
+ // ../../node_modules/@domql/utils/globals.js
268
337
  var window2 = globalThis;
269
338
  var document2 = window2.document;
270
339
 
271
- // node_modules/@domql/utils/dist/esm/node.js
340
+ // ../../node_modules/@domql/utils/node.js
272
341
  var isDOMNode = (obj) => {
273
342
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
274
343
  };
275
344
 
276
- // node_modules/@domql/utils/dist/esm/types.js
345
+ // ../../node_modules/@domql/utils/types.js
277
346
  var isObject = (arg) => {
278
347
  if (arg === null) return false;
279
348
  return typeof arg === "object" && arg.constructor === Object;
@@ -291,35 +360,92 @@ var isUndefined = (arg) => {
291
360
  return arg === void 0;
292
361
  };
293
362
 
294
- // node_modules/@domql/utils/dist/esm/array.js
295
- var mergeArray = (arr, exclude = []) => {
296
- return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
297
- };
298
-
299
- // node_modules/@domql/utils/dist/esm/object.js
300
- var __defProp2 = Object.defineProperty;
301
- var __defProps = Object.defineProperties;
302
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
303
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
304
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
305
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
306
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
307
- var __spreadValues = (a, b) => {
308
- for (var prop in b || (b = {}))
309
- if (__hasOwnProp2.call(b, prop))
310
- __defNormalProp(a, prop, b[prop]);
311
- if (__getOwnPropSymbols)
312
- for (var prop of __getOwnPropSymbols(b)) {
313
- if (__propIsEnum.call(b, prop))
314
- __defNormalProp(a, prop, b[prop]);
315
- }
316
- return a;
363
+ // ../../node_modules/@domql/utils/array.js
364
+ var unstackArrayOfObjects = (arr, exclude = []) => {
365
+ return arr.reduce(
366
+ (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
367
+ {}
368
+ );
317
369
  };
318
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
319
- var deepMerge = (element, extend, excludeFrom = []) => {
370
+
371
+ // ../../node_modules/@domql/utils/keys.js
372
+ var STATE_METHODS = [
373
+ "update",
374
+ "parse",
375
+ "clean",
376
+ "create",
377
+ "destroy",
378
+ "add",
379
+ "toggle",
380
+ "remove",
381
+ "apply",
382
+ "set",
383
+ "reset",
384
+ "replace",
385
+ "quietReplace",
386
+ "quietUpdate",
387
+ "applyReplace",
388
+ "applyFunction",
389
+ "keys",
390
+ "values",
391
+ "ref",
392
+ "rootUpdate",
393
+ "parentUpdate",
394
+ "parent",
395
+ "__element",
396
+ "__depends",
397
+ "__ref",
398
+ "__children",
399
+ "root",
400
+ "setByPath",
401
+ "setPathCollection",
402
+ "removeByPath",
403
+ "removePathCollection",
404
+ "getByPath"
405
+ ];
406
+ var PROPS_METHODS = ["update", "__element"];
407
+ var METHODS = [
408
+ "set",
409
+ "reset",
410
+ "update",
411
+ "remove",
412
+ "updateContent",
413
+ "removeContent",
414
+ "lookup",
415
+ "lookdown",
416
+ "lookdownAll",
417
+ "getRef",
418
+ "getPath",
419
+ "setNodeStyles",
420
+ "spotByPath",
421
+ "keys",
422
+ "parse",
423
+ "setProps",
424
+ "parseDeep",
425
+ "variables",
426
+ "if",
427
+ "log",
428
+ "verbose",
429
+ "warn",
430
+ "error",
431
+ "call",
432
+ "nextElement",
433
+ "previousElement"
434
+ ];
435
+ var METHODS_EXL = [
436
+ ...["node", "context", "extends", "__element", "__ref"],
437
+ ...METHODS,
438
+ ...STATE_METHODS,
439
+ ...PROPS_METHODS
440
+ ];
441
+
442
+ // ../../node_modules/@domql/utils/object.js
443
+ var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
320
444
  for (const e in extend) {
321
- const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
322
- if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__")) continue;
445
+ const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
446
+ if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__")) {
447
+ continue;
448
+ }
323
449
  const elementProp = element[e];
324
450
  const extendProp = extend[e];
325
451
  if (isObjectLike(elementProp) && isObjectLike(extendProp)) {
@@ -337,7 +463,7 @@ var deepClone = (obj, options = {}) => {
337
463
  cleanNull = false,
338
464
  window: targetWindow,
339
465
  visited = /* @__PURE__ */ new WeakMap(),
340
- handleExtend = false
466
+ handleExtends = false
341
467
  } = options;
342
468
  if (!isObjectLike(obj) || isDOMNode(obj)) {
343
469
  return obj;
@@ -345,37 +471,42 @@ var deepClone = (obj, options = {}) => {
345
471
  if (visited.has(obj)) {
346
472
  return visited.get(obj);
347
473
  }
348
- const clone2 = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
349
- visited.set(obj, clone2);
474
+ const clone = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
475
+ visited.set(obj, clone);
350
476
  for (const key in obj) {
351
477
  if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
352
- if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") continue;
478
+ if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") {
479
+ continue;
480
+ }
353
481
  const value = obj[key];
354
- if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) continue;
482
+ if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) {
483
+ continue;
484
+ }
355
485
  if (isDOMNode(value)) {
356
- clone2[key] = value;
486
+ clone[key] = value;
357
487
  continue;
358
488
  }
359
- if (handleExtend && key === "extend" && isArray(value)) {
360
- clone2[key] = mergeArray(value, exclude);
489
+ if (handleExtends && key === "extends" && isArray(value)) {
490
+ clone[key] = unstackArrayOfObjects(value, exclude);
361
491
  continue;
362
492
  }
363
493
  if (isFunction(value) && targetWindow) {
364
- clone2[key] = targetWindow.eval("(" + value.toString() + ")");
494
+ clone[key] = targetWindow.eval("(" + value.toString() + ")");
365
495
  continue;
366
496
  }
367
497
  if (isObjectLike(value)) {
368
- clone2[key] = deepClone(value, __spreadProps(__spreadValues({}, options), {
498
+ clone[key] = deepClone(value, {
499
+ ...options,
369
500
  visited
370
- }));
501
+ });
371
502
  } else {
372
- clone2[key] = value;
503
+ clone[key] = value;
373
504
  }
374
505
  }
375
- return clone2;
506
+ return clone;
376
507
  };
377
508
 
378
- // node_modules/@domql/utils/dist/esm/cookie.js
509
+ // ../../node_modules/@domql/utils/cookie.js
379
510
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
380
511
 
381
512
  // src/defaultConfig/index.js
@@ -688,7 +819,7 @@ var getRgbTone = (rgb, tone) => {
688
819
  };
689
820
 
690
821
  // src/utils/sequence.js
691
- var import_utils4 = __toESM(require_cjs(), 1);
822
+ var import_utils6 = __toESM(require_cjs(), 1);
692
823
 
693
824
  // src/system/color.js
694
825
  var getColor = (value, key, config) => {
@@ -34,23 +34,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
34
34
  var require_cjs = __commonJS({
35
35
  "../utils/dist/cjs/index.js"(exports, module2) {
36
36
  "use strict";
37
- var __defProp3 = Object.defineProperty;
37
+ var __defProp2 = Object.defineProperty;
38
38
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39
39
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
40
- var __hasOwnProp3 = Object.prototype.hasOwnProperty;
40
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
41
41
  var __export2 = (target, all) => {
42
42
  for (var name in all)
43
- __defProp3(target, name, { get: all[name], enumerable: true });
43
+ __defProp2(target, name, { get: all[name], enumerable: true });
44
44
  };
45
45
  var __copyProps2 = (to, from, except, desc) => {
46
46
  if (from && typeof from === "object" || typeof from === "function") {
47
47
  for (let key of __getOwnPropNames2(from))
48
- if (!__hasOwnProp3.call(to, key) && key !== except)
49
- __defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
48
+ if (!__hasOwnProp2.call(to, key) && key !== except)
49
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
50
50
  }
51
51
  return to;
52
52
  };
53
- var __toCommonJS2 = (mod) => __copyProps2(__defProp3({}, "__esModule", { value: true }), mod);
53
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
54
54
  var index_exports = {};
55
55
  __export2(index_exports, {
56
56
  arrayzeValue: () => arrayzeValue,
@@ -83,6 +83,75 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
+ var STATE_METHODS2 = [
87
+ "update",
88
+ "parse",
89
+ "clean",
90
+ "create",
91
+ "destroy",
92
+ "add",
93
+ "toggle",
94
+ "remove",
95
+ "apply",
96
+ "set",
97
+ "reset",
98
+ "replace",
99
+ "quietReplace",
100
+ "quietUpdate",
101
+ "applyReplace",
102
+ "applyFunction",
103
+ "keys",
104
+ "values",
105
+ "ref",
106
+ "rootUpdate",
107
+ "parentUpdate",
108
+ "parent",
109
+ "__element",
110
+ "__depends",
111
+ "__ref",
112
+ "__children",
113
+ "root",
114
+ "setByPath",
115
+ "setPathCollection",
116
+ "removeByPath",
117
+ "removePathCollection",
118
+ "getByPath"
119
+ ];
120
+ var PROPS_METHODS2 = ["update", "__element"];
121
+ var METHODS2 = [
122
+ "set",
123
+ "reset",
124
+ "update",
125
+ "remove",
126
+ "updateContent",
127
+ "removeContent",
128
+ "lookup",
129
+ "lookdown",
130
+ "lookdownAll",
131
+ "getRef",
132
+ "getPath",
133
+ "setNodeStyles",
134
+ "spotByPath",
135
+ "keys",
136
+ "parse",
137
+ "setProps",
138
+ "parseDeep",
139
+ "variables",
140
+ "if",
141
+ "log",
142
+ "verbose",
143
+ "warn",
144
+ "error",
145
+ "call",
146
+ "nextElement",
147
+ "previousElement"
148
+ ];
149
+ var METHODS_EXL2 = [
150
+ ...["node", "context", "extends", "__element", "__ref"],
151
+ ...METHODS2,
152
+ ...STATE_METHODS2,
153
+ ...PROPS_METHODS2
154
+ ];
86
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
87
156
  async function toggleFullscreen(opts) {
88
157
  if (!document.fullscreenElement) {
@@ -262,18 +331,18 @@ __export(timing_exports, {
262
331
  getTimingFunction: () => getTimingFunction
263
332
  });
264
333
  module.exports = __toCommonJS(timing_exports);
265
- var import_utils7 = __toESM(require_cjs(), 1);
334
+ var import_utils9 = __toESM(require_cjs(), 1);
266
335
 
267
- // node_modules/@domql/utils/dist/esm/globals.js
336
+ // ../../node_modules/@domql/utils/globals.js
268
337
  var window2 = globalThis;
269
338
  var document2 = window2.document;
270
339
 
271
- // node_modules/@domql/utils/dist/esm/node.js
340
+ // ../../node_modules/@domql/utils/node.js
272
341
  var isDOMNode = (obj) => {
273
342
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
274
343
  };
275
344
 
276
- // node_modules/@domql/utils/dist/esm/types.js
345
+ // ../../node_modules/@domql/utils/types.js
277
346
  var isString = (arg) => typeof arg === "string";
278
347
  var isFunction = (arg) => typeof arg === "function";
279
348
  var isNull = (arg) => arg === null;
@@ -286,35 +355,92 @@ var isUndefined = (arg) => {
286
355
  return arg === void 0;
287
356
  };
288
357
 
289
- // node_modules/@domql/utils/dist/esm/array.js
290
- var mergeArray = (arr, exclude = []) => {
291
- return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
292
- };
293
-
294
- // node_modules/@domql/utils/dist/esm/object.js
295
- var __defProp2 = Object.defineProperty;
296
- var __defProps = Object.defineProperties;
297
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
298
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
299
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
300
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
301
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
302
- var __spreadValues = (a, b) => {
303
- for (var prop in b || (b = {}))
304
- if (__hasOwnProp2.call(b, prop))
305
- __defNormalProp(a, prop, b[prop]);
306
- if (__getOwnPropSymbols)
307
- for (var prop of __getOwnPropSymbols(b)) {
308
- if (__propIsEnum.call(b, prop))
309
- __defNormalProp(a, prop, b[prop]);
310
- }
311
- return a;
358
+ // ../../node_modules/@domql/utils/array.js
359
+ var unstackArrayOfObjects = (arr, exclude = []) => {
360
+ return arr.reduce(
361
+ (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
362
+ {}
363
+ );
312
364
  };
313
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
314
- var deepMerge = (element, extend, excludeFrom = []) => {
365
+
366
+ // ../../node_modules/@domql/utils/keys.js
367
+ var STATE_METHODS = [
368
+ "update",
369
+ "parse",
370
+ "clean",
371
+ "create",
372
+ "destroy",
373
+ "add",
374
+ "toggle",
375
+ "remove",
376
+ "apply",
377
+ "set",
378
+ "reset",
379
+ "replace",
380
+ "quietReplace",
381
+ "quietUpdate",
382
+ "applyReplace",
383
+ "applyFunction",
384
+ "keys",
385
+ "values",
386
+ "ref",
387
+ "rootUpdate",
388
+ "parentUpdate",
389
+ "parent",
390
+ "__element",
391
+ "__depends",
392
+ "__ref",
393
+ "__children",
394
+ "root",
395
+ "setByPath",
396
+ "setPathCollection",
397
+ "removeByPath",
398
+ "removePathCollection",
399
+ "getByPath"
400
+ ];
401
+ var PROPS_METHODS = ["update", "__element"];
402
+ var METHODS = [
403
+ "set",
404
+ "reset",
405
+ "update",
406
+ "remove",
407
+ "updateContent",
408
+ "removeContent",
409
+ "lookup",
410
+ "lookdown",
411
+ "lookdownAll",
412
+ "getRef",
413
+ "getPath",
414
+ "setNodeStyles",
415
+ "spotByPath",
416
+ "keys",
417
+ "parse",
418
+ "setProps",
419
+ "parseDeep",
420
+ "variables",
421
+ "if",
422
+ "log",
423
+ "verbose",
424
+ "warn",
425
+ "error",
426
+ "call",
427
+ "nextElement",
428
+ "previousElement"
429
+ ];
430
+ var METHODS_EXL = [
431
+ ...["node", "context", "extends", "__element", "__ref"],
432
+ ...METHODS,
433
+ ...STATE_METHODS,
434
+ ...PROPS_METHODS
435
+ ];
436
+
437
+ // ../../node_modules/@domql/utils/object.js
438
+ var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
315
439
  for (const e in extend) {
316
- const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
317
- if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__")) continue;
440
+ const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
441
+ if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__")) {
442
+ continue;
443
+ }
318
444
  const elementProp = element[e];
319
445
  const extendProp = extend[e];
320
446
  if (isObjectLike(elementProp) && isObjectLike(extendProp)) {
@@ -332,7 +458,7 @@ var deepClone = (obj, options = {}) => {
332
458
  cleanNull = false,
333
459
  window: targetWindow,
334
460
  visited = /* @__PURE__ */ new WeakMap(),
335
- handleExtend = false
461
+ handleExtends = false
336
462
  } = options;
337
463
  if (!isObjectLike(obj) || isDOMNode(obj)) {
338
464
  return obj;
@@ -340,37 +466,42 @@ var deepClone = (obj, options = {}) => {
340
466
  if (visited.has(obj)) {
341
467
  return visited.get(obj);
342
468
  }
343
- const clone2 = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
344
- visited.set(obj, clone2);
469
+ const clone = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
470
+ visited.set(obj, clone);
345
471
  for (const key in obj) {
346
472
  if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
347
- if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") continue;
473
+ if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") {
474
+ continue;
475
+ }
348
476
  const value = obj[key];
349
- if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) continue;
477
+ if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) {
478
+ continue;
479
+ }
350
480
  if (isDOMNode(value)) {
351
- clone2[key] = value;
481
+ clone[key] = value;
352
482
  continue;
353
483
  }
354
- if (handleExtend && key === "extend" && isArray(value)) {
355
- clone2[key] = mergeArray(value, exclude);
484
+ if (handleExtends && key === "extends" && isArray(value)) {
485
+ clone[key] = unstackArrayOfObjects(value, exclude);
356
486
  continue;
357
487
  }
358
488
  if (isFunction(value) && targetWindow) {
359
- clone2[key] = targetWindow.eval("(" + value.toString() + ")");
489
+ clone[key] = targetWindow.eval("(" + value.toString() + ")");
360
490
  continue;
361
491
  }
362
492
  if (isObjectLike(value)) {
363
- clone2[key] = deepClone(value, __spreadProps(__spreadValues({}, options), {
493
+ clone[key] = deepClone(value, {
494
+ ...options,
364
495
  visited
365
- }));
496
+ });
366
497
  } else {
367
- clone2[key] = value;
498
+ clone[key] = value;
368
499
  }
369
500
  }
370
- return clone2;
501
+ return clone;
371
502
  };
372
503
 
373
- // node_modules/@domql/utils/dist/esm/cookie.js
504
+ // ../../node_modules/@domql/utils/cookie.js
374
505
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
375
506
 
376
507
  // src/defaultConfig/index.js
@@ -600,7 +731,7 @@ var isScalingUnit = (unit) => {
600
731
  };
601
732
 
602
733
  // src/utils/sequence.js
603
- var import_utils4 = __toESM(require_cjs(), 1);
734
+ var import_utils6 = __toESM(require_cjs(), 1);
604
735
  var numToLetterMap = {
605
736
  "-6": "U",
606
737
  "-5": "V",
@@ -739,7 +870,7 @@ var getSequenceValue = (value = "A", sequenceProps) => {
739
870
  useVariable
740
871
  } = sequenceProps;
741
872
  if (isString(value) && value.slice(0, 2) === "--") return `var(${value})`;
742
- const prefix = `--${(0, import_utils4.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
873
+ const prefix = `--${(0, import_utils6.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
743
874
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
744
875
  const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value);
745
876
  if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || value.includes("var") || !startsWithDashOrLetter) return value;
@@ -841,7 +972,7 @@ var applyTimingSequence = () => {
841
972
  var getTimingFunction = (value) => {
842
973
  const CONFIG2 = getActiveConfig();
843
974
  const { TIMING: TIMING2 } = CONFIG2;
844
- return TIMING2[value] || TIMING2[(0, import_utils7.toCamelCase)(value)] || value;
975
+ return TIMING2[value] || TIMING2[(0, import_utils9.toCamelCase)(value)] || value;
845
976
  };
846
977
  var getTimingByKey = (value, property = "timing") => {
847
978
  const CONFIG2 = getActiveConfig();