@symbo.ls/scratch 2.11.236 → 2.11.239

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.
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
package/dist/cjs/index.js CHANGED
@@ -443,7 +443,8 @@ var require_string = __commonJS({
443
443
  var string_exports = {};
444
444
  __export2(string_exports, {
445
445
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
446
- stringIncludesAny: () => stringIncludesAny
446
+ stringIncludesAny: () => stringIncludesAny,
447
+ trimStringFromSymbols: () => trimStringFromSymbols
447
448
  });
448
449
  module2.exports = __toCommonJS2(string_exports);
449
450
  var stringIncludesAny = (str, characters) => {
@@ -454,6 +455,10 @@ var require_string = __commonJS({
454
455
  }
455
456
  return false;
456
457
  };
458
+ var trimStringFromSymbols = (str, characters) => {
459
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
460
+ return str.replace(pattern, "");
461
+ };
457
462
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
458
463
  var replaceLiteralsWithObjectFields = (str, state) => {
459
464
  if (!str.includes("{{"))
@@ -505,6 +510,7 @@ var require_object = __commonJS({
505
510
  clone: () => clone,
506
511
  deepClone: () => deepClone2,
507
512
  deepCloneExclude: () => deepCloneExclude,
513
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
508
514
  deepContains: () => deepContains,
509
515
  deepDestringify: () => deepDestringify,
510
516
  deepDiff: () => deepDiff,
@@ -635,6 +641,23 @@ var require_object = __commonJS({
635
641
  }
636
642
  return o;
637
643
  };
644
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
645
+ const o = (0, import_types.isArray)(obj) ? [] : {};
646
+ for (const prop in obj) {
647
+ if (prop === "__proto__")
648
+ continue;
649
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
650
+ continue;
651
+ const objProp = obj[prop];
652
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
653
+ continue;
654
+ if ((0, import_types.isObjectLike)(objProp)) {
655
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
656
+ } else
657
+ o[prop] = objProp;
658
+ }
659
+ return o;
660
+ };
638
661
  var deepStringify = (obj, stringified = {}) => {
639
662
  for (const prop in obj) {
640
663
  const objProp = obj[prop];
@@ -665,7 +688,7 @@ var require_object = __commonJS({
665
688
  const spaces = " ".repeat(indent);
666
689
  let str = "{\n";
667
690
  for (const [key, value] of Object.entries(obj)) {
668
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
669
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
670
693
  str += `${spaces} ${stringedKey}: `;
671
694
  if ((0, import_types.isArray)(value)) {
@@ -3387,6 +3410,8 @@ var set = (recivedConfig, options = SET_OPTIONS) => {
3387
3410
  CONFIG2.useDocumentTheme = useDocumentTheme;
3388
3411
  if (globalTheme !== void 0)
3389
3412
  CONFIG2.globalTheme = globalTheme;
3413
+ if (useDefaultConfig !== void 0)
3414
+ CONFIG2.useDefaultConfig = useDefaultConfig;
3390
3415
  if (CONFIG2.verbose)
3391
3416
  console.log(CONFIG2);
3392
3417
  if (!CONFIG2.__svg_cache)
package/dist/cjs/set.js CHANGED
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -2796,6 +2819,8 @@ var set = (recivedConfig, options = SET_OPTIONS) => {
2796
2819
  CONFIG2.useDocumentTheme = useDocumentTheme;
2797
2820
  if (globalTheme !== void 0)
2798
2821
  CONFIG2.globalTheme = globalTheme;
2822
+ if (useDefaultConfig !== void 0)
2823
+ CONFIG2.useDefaultConfig = useDefaultConfig;
2799
2824
  if (CONFIG2.verbose)
2800
2825
  console.log(CONFIG2);
2801
2826
  if (!CONFIG2.__svg_cache)
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -443,7 +443,8 @@ var require_string = __commonJS({
443
443
  var string_exports = {};
444
444
  __export2(string_exports, {
445
445
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
446
- stringIncludesAny: () => stringIncludesAny
446
+ stringIncludesAny: () => stringIncludesAny,
447
+ trimStringFromSymbols: () => trimStringFromSymbols
447
448
  });
448
449
  module2.exports = __toCommonJS2(string_exports);
449
450
  var stringIncludesAny = (str, characters) => {
@@ -454,6 +455,10 @@ var require_string = __commonJS({
454
455
  }
455
456
  return false;
456
457
  };
458
+ var trimStringFromSymbols = (str, characters) => {
459
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
460
+ return str.replace(pattern, "");
461
+ };
457
462
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
458
463
  var replaceLiteralsWithObjectFields = (str, state) => {
459
464
  if (!str.includes("{{"))
@@ -505,6 +510,7 @@ var require_object = __commonJS({
505
510
  clone: () => clone,
506
511
  deepClone: () => deepClone2,
507
512
  deepCloneExclude: () => deepCloneExclude,
513
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
508
514
  deepContains: () => deepContains,
509
515
  deepDestringify: () => deepDestringify,
510
516
  deepDiff: () => deepDiff,
@@ -635,6 +641,23 @@ var require_object = __commonJS({
635
641
  }
636
642
  return o;
637
643
  };
644
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
645
+ const o = (0, import_types.isArray)(obj) ? [] : {};
646
+ for (const prop in obj) {
647
+ if (prop === "__proto__")
648
+ continue;
649
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
650
+ continue;
651
+ const objProp = obj[prop];
652
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
653
+ continue;
654
+ if ((0, import_types.isObjectLike)(objProp)) {
655
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
656
+ } else
657
+ o[prop] = objProp;
658
+ }
659
+ return o;
660
+ };
638
661
  var deepStringify = (obj, stringified = {}) => {
639
662
  for (const prop in obj) {
640
663
  const objProp = obj[prop];
@@ -665,7 +688,7 @@ var require_object = __commonJS({
665
688
  const spaces = " ".repeat(indent);
666
689
  let str = "{\n";
667
690
  for (const [key, value] of Object.entries(obj)) {
668
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
669
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
670
693
  str += `${spaces} ${stringedKey}: `;
671
694
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -443,7 +443,8 @@ var require_string = __commonJS({
443
443
  var string_exports = {};
444
444
  __export2(string_exports, {
445
445
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
446
- stringIncludesAny: () => stringIncludesAny
446
+ stringIncludesAny: () => stringIncludesAny,
447
+ trimStringFromSymbols: () => trimStringFromSymbols
447
448
  });
448
449
  module2.exports = __toCommonJS2(string_exports);
449
450
  var stringIncludesAny = (str, characters) => {
@@ -454,6 +455,10 @@ var require_string = __commonJS({
454
455
  }
455
456
  return false;
456
457
  };
458
+ var trimStringFromSymbols = (str, characters) => {
459
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
460
+ return str.replace(pattern, "");
461
+ };
457
462
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
458
463
  var replaceLiteralsWithObjectFields = (str, state) => {
459
464
  if (!str.includes("{{"))
@@ -505,6 +510,7 @@ var require_object = __commonJS({
505
510
  clone: () => clone,
506
511
  deepClone: () => deepClone,
507
512
  deepCloneExclude: () => deepCloneExclude,
513
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
508
514
  deepContains: () => deepContains,
509
515
  deepDestringify: () => deepDestringify,
510
516
  deepDiff: () => deepDiff,
@@ -635,6 +641,23 @@ var require_object = __commonJS({
635
641
  }
636
642
  return o;
637
643
  };
644
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
645
+ const o = (0, import_types.isArray)(obj) ? [] : {};
646
+ for (const prop in obj) {
647
+ if (prop === "__proto__")
648
+ continue;
649
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
650
+ continue;
651
+ const objProp = obj[prop];
652
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
653
+ continue;
654
+ if ((0, import_types.isObjectLike)(objProp)) {
655
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
656
+ } else
657
+ o[prop] = objProp;
658
+ }
659
+ return o;
660
+ };
638
661
  var deepStringify = (obj, stringified = {}) => {
639
662
  for (const prop in obj) {
640
663
  const objProp = obj[prop];
@@ -665,7 +688,7 @@ var require_object = __commonJS({
665
688
  const spaces = " ".repeat(indent);
666
689
  let str = "{\n";
667
690
  for (const [key, value] of Object.entries(obj)) {
668
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
669
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
670
693
  str += `${spaces} ${stringedKey}: `;
671
694
  if ((0, import_types.isArray)(value)) {
@@ -443,7 +443,8 @@ var require_string = __commonJS({
443
443
  var string_exports = {};
444
444
  __export2(string_exports, {
445
445
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
446
- stringIncludesAny: () => stringIncludesAny
446
+ stringIncludesAny: () => stringIncludesAny,
447
+ trimStringFromSymbols: () => trimStringFromSymbols
447
448
  });
448
449
  module2.exports = __toCommonJS2(string_exports);
449
450
  var stringIncludesAny = (str, characters) => {
@@ -454,6 +455,10 @@ var require_string = __commonJS({
454
455
  }
455
456
  return false;
456
457
  };
458
+ var trimStringFromSymbols = (str, characters) => {
459
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
460
+ return str.replace(pattern, "");
461
+ };
457
462
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
458
463
  var replaceLiteralsWithObjectFields = (str, state) => {
459
464
  if (!str.includes("{{"))
@@ -505,6 +510,7 @@ var require_object = __commonJS({
505
510
  clone: () => clone,
506
511
  deepClone: () => deepClone2,
507
512
  deepCloneExclude: () => deepCloneExclude,
513
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
508
514
  deepContains: () => deepContains,
509
515
  deepDestringify: () => deepDestringify,
510
516
  deepDiff: () => deepDiff,
@@ -635,6 +641,23 @@ var require_object = __commonJS({
635
641
  }
636
642
  return o;
637
643
  };
644
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
645
+ const o = (0, import_types.isArray)(obj) ? [] : {};
646
+ for (const prop in obj) {
647
+ if (prop === "__proto__")
648
+ continue;
649
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
650
+ continue;
651
+ const objProp = obj[prop];
652
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
653
+ continue;
654
+ if ((0, import_types.isObjectLike)(objProp)) {
655
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
656
+ } else
657
+ o[prop] = objProp;
658
+ }
659
+ return o;
660
+ };
638
661
  var deepStringify = (obj, stringified = {}) => {
639
662
  for (const prop in obj) {
640
663
  const objProp = obj[prop];
@@ -665,7 +688,7 @@ var require_object = __commonJS({
665
688
  const spaces = " ".repeat(indent);
666
689
  let str = "{\n";
667
690
  for (const [key, value] of Object.entries(obj)) {
668
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
669
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
670
693
  str += `${spaces} ${stringedKey}: `;
671
694
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
@@ -407,7 +407,8 @@ var require_string = __commonJS({
407
407
  var string_exports = {};
408
408
  __export2(string_exports, {
409
409
  replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
410
- stringIncludesAny: () => stringIncludesAny
410
+ stringIncludesAny: () => stringIncludesAny,
411
+ trimStringFromSymbols: () => trimStringFromSymbols
411
412
  });
412
413
  module2.exports = __toCommonJS2(string_exports);
413
414
  var stringIncludesAny = (str, characters) => {
@@ -418,6 +419,10 @@ var require_string = __commonJS({
418
419
  }
419
420
  return false;
420
421
  };
422
+ var trimStringFromSymbols = (str, characters) => {
423
+ const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
424
+ return str.replace(pattern, "");
425
+ };
421
426
  var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
422
427
  var replaceLiteralsWithObjectFields = (str, state) => {
423
428
  if (!str.includes("{{"))
@@ -469,6 +474,7 @@ var require_object = __commonJS({
469
474
  clone: () => clone,
470
475
  deepClone: () => deepClone2,
471
476
  deepCloneExclude: () => deepCloneExclude,
477
+ deepCloneWithExtnd: () => deepCloneWithExtnd,
472
478
  deepContains: () => deepContains,
473
479
  deepDestringify: () => deepDestringify,
474
480
  deepDiff: () => deepDiff,
@@ -599,6 +605,23 @@ var require_object = __commonJS({
599
605
  }
600
606
  return o;
601
607
  };
608
+ var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
609
+ const o = (0, import_types.isArray)(obj) ? [] : {};
610
+ for (const prop in obj) {
611
+ if (prop === "__proto__")
612
+ continue;
613
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
614
+ continue;
615
+ const objProp = obj[prop];
616
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
617
+ continue;
618
+ if ((0, import_types.isObjectLike)(objProp)) {
619
+ o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
620
+ } else
621
+ o[prop] = objProp;
622
+ }
623
+ return o;
624
+ };
602
625
  var deepStringify = (obj, stringified = {}) => {
603
626
  for (const prop in obj) {
604
627
  const objProp = obj[prop];
@@ -629,7 +652,7 @@ var require_object = __commonJS({
629
652
  const spaces = " ".repeat(indent);
630
653
  let str = "{\n";
631
654
  for (const [key, value] of Object.entries(obj)) {
632
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
633
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
634
657
  str += `${spaces} ${stringedKey}: `;
635
658
  if ((0, import_types.isArray)(value)) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.11.236",
5
+ "version": "2.11.239",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -29,5 +29,5 @@
29
29
  "@symbo.ls/utils": "latest",
30
30
  "color-contrast-checker": "^1.5.0"
31
31
  },
32
- "gitHead": "d2a083322de551a55d184ccd6d3933ab465c209e"
32
+ "gitHead": "41a7706e6ed0e20fce89aa1a0ed4975f7aa92aac"
33
33
  }
package/src/set.js CHANGED
@@ -106,6 +106,7 @@ export const set = (recivedConfig, options = SET_OPTIONS) => {
106
106
  if (useIconSprite !== undefined) CONFIG.useIconSprite = useIconSprite
107
107
  if (useDocumentTheme !== undefined) CONFIG.useDocumentTheme = useDocumentTheme
108
108
  if (globalTheme !== undefined) CONFIG.globalTheme = globalTheme
109
+ if (useDefaultConfig !== undefined) CONFIG.useDefaultConfig = useDefaultConfig
109
110
  if (CONFIG.verbose) console.log(CONFIG)
110
111
 
111
112
  if (!CONFIG.__svg_cache) CONFIG.__svg_cache = {}