@symbo.ls/create 2.11.203 → 2.11.208

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.
@@ -206,51 +206,51 @@ var require_types = __commonJS({
206
206
  __export2(types_exports, {
207
207
  TYPES: () => TYPES,
208
208
  is: () => is,
209
- isArray: () => isArray6,
209
+ isArray: () => isArray8,
210
210
  isBoolean: () => isBoolean,
211
211
  isDefined: () => isDefined,
212
212
  isFunction: () => isFunction4,
213
- isNot: () => isNot2,
213
+ isNot: () => isNot3,
214
214
  isNull: () => isNull,
215
215
  isNumber: () => isNumber,
216
- isObject: () => isObject12,
217
- isObjectLike: () => isObjectLike3,
218
- isString: () => isString8,
216
+ isObject: () => isObject14,
217
+ isObjectLike: () => isObjectLike4,
218
+ isString: () => isString10,
219
219
  isUndefined: () => isUndefined3
220
220
  });
221
221
  module2.exports = __toCommonJS2(types_exports);
222
222
  var import_node = require_node();
223
- var isObject12 = (arg) => {
223
+ var isObject14 = (arg) => {
224
224
  if (arg === null)
225
225
  return false;
226
226
  return typeof arg === "object" && arg.constructor === Object;
227
227
  };
228
- var isString8 = (arg) => typeof arg === "string";
228
+ var isString10 = (arg) => typeof arg === "string";
229
229
  var isNumber = (arg) => typeof arg === "number";
230
230
  var isFunction4 = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray6 = (arg) => Array.isArray(arg);
234
- var isObjectLike3 = (arg) => {
233
+ var isArray8 = (arg) => Array.isArray(arg);
234
+ var isObjectLike4 = (arg) => {
235
235
  if (arg === null)
236
236
  return false;
237
237
  return typeof arg === "object";
238
238
  };
239
239
  var isDefined = (arg) => {
240
- return isObject12(arg) || isObjectLike3(arg) || isString8(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
240
+ return isObject14(arg) || isObjectLike4(arg) || isString10(arg) || isNumber(arg) || isFunction4(arg) || isArray8(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
241
241
  };
242
242
  var isUndefined3 = (arg) => {
243
243
  return arg === void 0;
244
244
  };
245
245
  var TYPES = {
246
246
  boolean: isBoolean,
247
- array: isArray6,
248
- object: isObject12,
249
- string: isString8,
247
+ array: isArray8,
248
+ object: isObject14,
249
+ string: isString10,
250
250
  number: isNumber,
251
251
  null: isNull,
252
252
  function: isFunction4,
253
- objectLike: isObjectLike3,
253
+ objectLike: isObjectLike4,
254
254
  node: import_node.isNode,
255
255
  htmlElement: import_node.isHtmlElement,
256
256
  defined: isDefined
@@ -260,7 +260,7 @@ var require_types = __commonJS({
260
260
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
261
261
  };
262
262
  };
263
- var isNot2 = (arg) => {
263
+ var isNot3 = (arg) => {
264
264
  return (...args) => {
265
265
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
266
266
  };
@@ -451,26 +451,26 @@ var require_object = __commonJS({
451
451
  var object_exports = {};
452
452
  __export2(object_exports, {
453
453
  clone: () => clone,
454
- deepClone: () => deepClone3,
454
+ deepClone: () => deepClone5,
455
455
  deepCloneExclude: () => deepCloneExclude,
456
456
  deepDestringify: () => deepDestringify,
457
457
  deepMerge: () => deepMerge4,
458
458
  deepStringify: () => deepStringify,
459
459
  detachFunctionsFromObject: () => detachFunctionsFromObject,
460
- diff: () => diff2,
460
+ diff: () => diff3,
461
461
  diffArrays: () => diffArrays,
462
462
  diffObjects: () => diffObjects,
463
- exec: () => exec4,
463
+ exec: () => exec5,
464
464
  flattenRecursive: () => flattenRecursive,
465
465
  isEqualDeep: () => isEqualDeep2,
466
466
  map: () => map2,
467
- merge: () => merge4,
467
+ merge: () => merge5,
468
468
  mergeArrayExclude: () => mergeArrayExclude,
469
469
  mergeIfExisted: () => mergeIfExisted,
470
470
  objectToString: () => objectToString,
471
471
  overwrite: () => overwrite,
472
472
  overwriteDeep: () => overwriteDeep,
473
- overwriteShallow: () => overwriteShallow2,
473
+ overwriteShallow: () => overwriteShallow3,
474
474
  removeFromObject: () => removeFromObject,
475
475
  stringToObject: () => stringToObject
476
476
  });
@@ -479,7 +479,7 @@ var require_object = __commonJS({
479
479
  var import_types = require_types();
480
480
  var import_array = require_array();
481
481
  var import_string = require_string();
482
- var exec4 = (param, element, state, context) => {
482
+ var exec5 = (param, element, state, context) => {
483
483
  if ((0, import_types.isFunction)(param)) {
484
484
  return param(
485
485
  element,
@@ -491,10 +491,10 @@ var require_object = __commonJS({
491
491
  };
492
492
  var map2 = (obj, extention, element) => {
493
493
  for (const e in extention) {
494
- obj[e] = exec4(extention[e], element);
494
+ obj[e] = exec5(extention[e], element);
495
495
  }
496
496
  };
497
- var merge4 = (element, obj, excludeFrom = []) => {
497
+ var merge5 = (element, obj, excludeFrom = []) => {
498
498
  for (const e in obj) {
499
499
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
500
500
  if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
@@ -557,7 +557,7 @@ var require_object = __commonJS({
557
557
  var mergeArrayExclude = (arr, excl = []) => {
558
558
  return arr.reduce((acc, curr) => deepMerge4(acc, deepCloneExclude(curr, excl)), {});
559
559
  };
560
- var deepClone3 = (obj, excludeFrom = []) => {
560
+ var deepClone5 = (obj, excludeFrom = []) => {
561
561
  const o = (0, import_types.isArray)(obj) ? [] : {};
562
562
  for (const prop in obj) {
563
563
  if (prop === "__proto__")
@@ -569,7 +569,7 @@ var require_object = __commonJS({
569
569
  objProp = (0, import_array.mergeArray)(objProp);
570
570
  }
571
571
  if ((0, import_types.isObjectLike)(objProp)) {
572
- o[prop] = deepClone3(objProp, excludeFrom);
572
+ o[prop] = deepClone5(objProp, excludeFrom);
573
573
  } else
574
574
  o[prop] = objProp;
575
575
  }
@@ -726,7 +726,7 @@ var require_object = __commonJS({
726
726
  const objToDiffProp = objToDiff[e];
727
727
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
728
728
  cache2[e] = {};
729
- diff2(originalProp, objToDiffProp, cache2[e]);
729
+ diff3(originalProp, objToDiffProp, cache2[e]);
730
730
  } else if (objToDiffProp !== void 0) {
731
731
  cache2[e] = objToDiffProp;
732
732
  }
@@ -739,7 +739,7 @@ var require_object = __commonJS({
739
739
  } else {
740
740
  const diffArr = [];
741
741
  for (let i2 = 0; i2 < original.length; i2++) {
742
- const diffObj = diff2(original[i2], objToDiff[i2]);
742
+ const diffObj = diff3(original[i2], objToDiff[i2]);
743
743
  if (Object.keys(diffObj).length > 0) {
744
744
  diffArr.push(diffObj);
745
745
  }
@@ -750,7 +750,7 @@ var require_object = __commonJS({
750
750
  }
751
751
  return cache2;
752
752
  };
753
- var diff2 = (original, objToDiff, cache2 = {}) => {
753
+ var diff3 = (original, objToDiff, cache2 = {}) => {
754
754
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
755
755
  cache2 = [];
756
756
  diffArrays(original, objToDiff, cache2);
@@ -774,7 +774,7 @@ var require_object = __commonJS({
774
774
  }
775
775
  return changes;
776
776
  };
777
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
777
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
778
778
  for (const e in params) {
779
779
  if (excludeFrom.includes(e) || e.startsWith("__"))
780
780
  continue;
@@ -812,22 +812,28 @@ var require_object = __commonJS({
812
812
  delete objectized[prop];
813
813
  return stack;
814
814
  };
815
- var isEqualDeep2 = (param, element) => {
816
- if (param === element)
815
+ var isEqualDeep2 = (param, element, visited = /* @__PURE__ */ new Set()) => {
816
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
817
+ return param === element;
818
+ }
819
+ if (visited.has(param) || visited.has(element)) {
817
820
  return true;
818
- if (!param || !element)
821
+ }
822
+ visited.add(param);
823
+ visited.add(element);
824
+ const keysParam = Object.keys(param);
825
+ const keysElement = Object.keys(element);
826
+ if (keysParam.length !== keysElement.length) {
819
827
  return false;
820
- for (const prop in param) {
821
- const paramProp = param[prop];
822
- const elementProp = element[prop];
823
- if ((0, import_types.isObjectLike)(paramProp)) {
824
- const isEqual = isEqualDeep2(paramProp, elementProp);
825
- if (!isEqual)
826
- return false;
827
- } else {
828
- const isEqual = paramProp === elementProp;
829
- if (!isEqual)
830
- return false;
828
+ }
829
+ for (const key of keysParam) {
830
+ if (!keysElement.includes(key)) {
831
+ return false;
832
+ }
833
+ const paramProp = param[key];
834
+ const elementProp = element[key];
835
+ if (!isEqualDeep2(paramProp, elementProp, visited)) {
836
+ return false;
831
837
  }
832
838
  }
833
839
  return true;
@@ -871,6 +877,7 @@ var require_function = __commonJS({
871
877
  var function_exports = {};
872
878
  __export2(function_exports, {
873
879
  debounce: () => debounce,
880
+ isStringFunction: () => isStringFunction,
874
881
  memoize: () => memoize2
875
882
  });
876
883
  module2.exports = __toCommonJS2(function_exports);
@@ -896,6 +903,10 @@ var require_function = __commonJS({
896
903
  }
897
904
  };
898
905
  };
906
+ var isStringFunction = (inputString) => {
907
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
908
+ return functionRegex.test(inputString);
909
+ };
899
910
  }
900
911
  });
901
912
 
@@ -1320,11 +1331,11 @@ var require_tree = __commonJS({
1320
1331
  TREE: () => TREE
1321
1332
  });
1322
1333
  module2.exports = __toCommonJS2(tree_exports);
1323
- var import_utils20 = require_cjs();
1334
+ var import_utils25 = require_cjs();
1324
1335
  var import_report = require_cjs2();
1325
1336
  var ROOT = {
1326
1337
  key: ":root",
1327
- node: import_utils20.document ? import_utils20.document.body : (0, import_report.report)("DocumentNotDefined", import_utils20.document)
1338
+ node: import_utils25.document ? import_utils25.document.body : (0, import_report.report)("DocumentNotDefined", import_utils25.document)
1328
1339
  };
1329
1340
  var TREE = ROOT;
1330
1341
  }
@@ -1360,12 +1371,12 @@ var require_on = __commonJS({
1360
1371
  triggerEventOnUpdate: () => triggerEventOnUpdate
1361
1372
  });
1362
1373
  module2.exports = __toCommonJS2(on_exports);
1363
- var import_utils20 = require_cjs();
1374
+ var import_utils25 = require_cjs();
1364
1375
  var applyEvent = (param, element, state, context, options) => {
1365
1376
  return param(element, state || element.state, context || element.context, options);
1366
1377
  };
1367
1378
  var triggerEventOn = (param, element, options) => {
1368
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1379
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1369
1380
  const { state, context } = element;
1370
1381
  return applyEvent(element.on[param], element, state, context, options);
1371
1382
  }
@@ -1374,7 +1385,7 @@ var require_on = __commonJS({
1374
1385
  return param(updatedObj, element, state || element.state, context || element.context, options);
1375
1386
  };
1376
1387
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1377
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1388
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1378
1389
  const { state, context } = element;
1379
1390
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1380
1391
  }
@@ -1385,7 +1396,7 @@ var require_on = __commonJS({
1385
1396
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1386
1397
  continue;
1387
1398
  const appliedFunction = element.on[param];
1388
- if ((0, import_utils20.isFunction)(appliedFunction)) {
1399
+ if ((0, import_utils25.isFunction)(appliedFunction)) {
1389
1400
  const { state, context } = element;
1390
1401
  node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
1391
1402
  }
@@ -1421,10 +1432,10 @@ var require_can = __commonJS({
1421
1432
  });
1422
1433
  module2.exports = __toCommonJS2(can_exports);
1423
1434
  var import_report = require_cjs2();
1424
- var import_utils20 = require_cjs();
1435
+ var import_utils25 = require_cjs();
1425
1436
  var canRender = (element) => {
1426
1437
  const tag = element.tag || "div";
1427
- return (0, import_utils20.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1438
+ return (0, import_utils25.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1428
1439
  };
1429
1440
  }
1430
1441
  });
@@ -1515,7 +1526,7 @@ var require_cache = __commonJS({
1515
1526
  module2.exports = __toCommonJS2(cache_exports);
1516
1527
  var import_report = require_cjs2();
1517
1528
  var import_event = require_cjs3();
1518
- var import_utils20 = require_cjs();
1529
+ var import_utils25 = require_cjs();
1519
1530
  var cache2 = {};
1520
1531
  var createHTMLNode = (element) => {
1521
1532
  const { tag } = element;
@@ -1534,15 +1545,15 @@ var require_cache = __commonJS({
1534
1545
  };
1535
1546
  var detectTag = (element) => {
1536
1547
  let { tag, key } = element;
1537
- tag = (0, import_utils20.exec)(tag, element);
1548
+ tag = (0, import_utils25.exec)(tag, element);
1538
1549
  if (tag === true)
1539
1550
  tag = key;
1540
- if ((0, import_utils20.isString)(tag)) {
1541
- const tagExists = (0, import_utils20.isValidHtmlTag)(tag);
1551
+ if ((0, import_utils25.isString)(tag)) {
1552
+ const tagExists = (0, import_utils25.isValidHtmlTag)(tag);
1542
1553
  if (tagExists)
1543
1554
  return tag;
1544
1555
  } else {
1545
- const isKeyATag = (0, import_utils20.isValidHtmlTag)(key);
1556
+ const isKeyATag = (0, import_utils25.isValidHtmlTag)(key);
1546
1557
  if (isKeyATag)
1547
1558
  return key;
1548
1559
  }
@@ -1661,16 +1672,16 @@ var require_attr = __commonJS({
1661
1672
  default: () => attr_default
1662
1673
  });
1663
1674
  module2.exports = __toCommonJS2(attr_exports);
1664
- var import_utils20 = require_cjs();
1675
+ var import_utils25 = require_cjs();
1665
1676
  var import_report = require_cjs2();
1666
1677
  var attr_default = (params, element, node2) => {
1667
1678
  const { __ref } = element;
1668
1679
  const { __attr } = __ref;
1669
- if ((0, import_utils20.isNot)("object"))
1680
+ if ((0, import_utils25.isNot)("object"))
1670
1681
  (0, import_report.report)("HTMLInvalidAttr", params);
1671
1682
  if (params) {
1672
1683
  for (const attr in params) {
1673
- const val = (0, import_utils20.exec)(params[attr], element);
1684
+ const val = (0, import_utils25.exec)(params[attr], element);
1674
1685
  if (val && node2.setAttribute)
1675
1686
  node2.setAttribute(attr, val);
1676
1687
  else if (node2.removeAttribute)
@@ -1713,7 +1724,7 @@ var require_classList = __commonJS({
1713
1724
  default: () => classList_default
1714
1725
  });
1715
1726
  module2.exports = __toCommonJS2(classList_exports);
1716
- var import_utils20 = require_cjs();
1727
+ var import_utils25 = require_cjs();
1717
1728
  var assignKeyAsClassname = (element) => {
1718
1729
  const { key } = element;
1719
1730
  if (element.class === true)
@@ -1731,7 +1742,7 @@ var require_classList = __commonJS({
1731
1742
  else if (typeof param === "string")
1732
1743
  className += ` ${param}`;
1733
1744
  else if (typeof param === "function") {
1734
- className += ` ${(0, import_utils20.exec)(param, element)}`;
1745
+ className += ` ${(0, import_utils25.exec)(param, element)}`;
1735
1746
  }
1736
1747
  }
1737
1748
  return className;
@@ -1742,9 +1753,9 @@ var require_classList = __commonJS({
1742
1753
  const { key } = element;
1743
1754
  if (params === true)
1744
1755
  params = element.class = { key };
1745
- if ((0, import_utils20.isString)(params))
1756
+ if ((0, import_utils25.isString)(params))
1746
1757
  params = element.class = { default: params };
1747
- if ((0, import_utils20.isObject)(params))
1758
+ if ((0, import_utils25.isObject)(params))
1748
1759
  params = classify2(params, element);
1749
1760
  const className = params.replace(/\s+/g, " ").trim();
1750
1761
  if (element.ref)
@@ -1828,7 +1839,7 @@ var require_set = __commonJS({
1828
1839
  default: () => set_default
1829
1840
  });
1830
1841
  module2.exports = __toCommonJS2(set_exports);
1831
- var import_utils20 = require_cjs();
1842
+ var import_utils25 = require_cjs();
1832
1843
  var import_create = __toESM2(require_create4(), 1);
1833
1844
  var import_options3 = __toESM2(require_options(), 1);
1834
1845
  var import_mixins = require_mixins();
@@ -1836,7 +1847,7 @@ var require_set = __commonJS({
1836
1847
  var set5 = function(params, options = {}, el) {
1837
1848
  const element = el || this;
1838
1849
  const __contentRef = element.content && element.content.__ref;
1839
- if (__contentRef && __contentRef.__cached && (0, import_utils20.isEqualDeep)(params, element.content)) {
1850
+ if (__contentRef && __contentRef.__cached && (0, import_utils25.isEqualDeep)(params, element.content)) {
1840
1851
  return element;
1841
1852
  }
1842
1853
  (0, import_content.removeContent)(element);
@@ -1896,7 +1907,7 @@ var require_content = __commonJS({
1896
1907
  updateContent: () => updateContent
1897
1908
  });
1898
1909
  module2.exports = __toCommonJS2(content_exports);
1899
- var import_utils20 = require_cjs();
1910
+ var import_utils25 = require_cjs();
1900
1911
  var import_set = __toESM2(require_set(), 1);
1901
1912
  var updateContent = function(params, options) {
1902
1913
  const element = this;
@@ -1919,7 +1930,7 @@ var require_content = __commonJS({
1919
1930
  if (__cached && __cached.content) {
1920
1931
  if (__cached.content.tag === "fragment")
1921
1932
  __cached.content.parent.node.innerHTML = "";
1922
- else if (__cached.content && (0, import_utils20.isFunction)(__cached.content.remove))
1933
+ else if (__cached.content && (0, import_utils25.isFunction)(__cached.content.remove))
1923
1934
  __cached.content.remove();
1924
1935
  }
1925
1936
  delete element.content;
@@ -1964,15 +1975,15 @@ var require_data = __commonJS({
1964
1975
  default: () => data_default
1965
1976
  });
1966
1977
  module2.exports = __toCommonJS2(data_exports);
1967
- var import_utils20 = require_cjs();
1978
+ var import_utils25 = require_cjs();
1968
1979
  var import_report = require_cjs2();
1969
1980
  var data_default = (params, element, node2) => {
1970
1981
  if (params && params.showOnNode) {
1971
- if (!(0, import_utils20.isObject)(params))
1982
+ if (!(0, import_utils25.isObject)(params))
1972
1983
  (0, import_report.report)("HTMLInvalidData", params);
1973
1984
  for (const dataset in params) {
1974
1985
  if (dataset !== "showOnNode") {
1975
- node2.dataset[dataset] = (0, import_utils20.exec)(params[dataset], element);
1986
+ node2.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
1976
1987
  }
1977
1988
  }
1978
1989
  }
@@ -2006,9 +2017,9 @@ var require_html = __commonJS({
2006
2017
  default: () => html_default
2007
2018
  });
2008
2019
  module2.exports = __toCommonJS2(html_exports);
2009
- var import_utils20 = require_cjs();
2020
+ var import_utils25 = require_cjs();
2010
2021
  var html_default = (param, element, node2) => {
2011
- const prop = (0, import_utils20.exec)(param, element);
2022
+ const prop = (0, import_utils25.exec)(param, element);
2012
2023
  const { __ref } = element;
2013
2024
  if (prop !== __ref.__html) {
2014
2025
  if (node2.nodeName === "SVG")
@@ -2047,12 +2058,12 @@ var require_style = __commonJS({
2047
2058
  default: () => style_default2
2048
2059
  });
2049
2060
  module2.exports = __toCommonJS2(style_exports);
2050
- var import_utils20 = require_cjs();
2061
+ var import_utils25 = require_cjs();
2051
2062
  var import_report = require_cjs2();
2052
2063
  var style_default2 = (params, element, node2) => {
2053
2064
  if (params) {
2054
- if ((0, import_utils20.isObject)(params))
2055
- (0, import_utils20.map)(node2.style, params, element);
2065
+ if ((0, import_utils25.isObject)(params))
2066
+ (0, import_utils25.map)(node2.style, params, element);
2056
2067
  else
2057
2068
  (0, import_report.report)("HTMLInvalidStyles", params);
2058
2069
  }
@@ -2088,9 +2099,9 @@ var require_text = __commonJS({
2088
2099
  });
2089
2100
  module2.exports = __toCommonJS2(text_exports);
2090
2101
  var import__ = require_cjs7();
2091
- var import_utils20 = require_cjs();
2102
+ var import_utils25 = require_cjs();
2092
2103
  var asd = (param, element, node2) => {
2093
- const prop = (0, import_utils20.exec)(param, element);
2104
+ const prop = (0, import_utils25.exec)(param, element);
2094
2105
  if (element.tag === "string") {
2095
2106
  node2.nodeValue = prop;
2096
2107
  } else if (param !== void 0 || param !== null) {
@@ -2104,9 +2115,9 @@ var require_text = __commonJS({
2104
2115
  }
2105
2116
  };
2106
2117
  var text_default = (param, element, node2) => {
2107
- let prop = (0, import_utils20.exec)(param, element);
2108
- if ((0, import_utils20.isString)(prop) && prop.includes("{{")) {
2109
- prop = (0, import_utils20.replaceLiteralsWithObjectFields)(prop, element.state);
2118
+ let prop = (0, import_utils25.exec)(param, element);
2119
+ if ((0, import_utils25.isString)(prop) && prop.includes("{{")) {
2120
+ prop = (0, import_utils25.replaceLiteralsWithObjectFields)(prop, element.state);
2110
2121
  }
2111
2122
  if (element.tag === "string") {
2112
2123
  if (element.text === prop)
@@ -2210,11 +2221,11 @@ var require_methods = __commonJS({
2210
2221
  toggle: () => toggle
2211
2222
  });
2212
2223
  module2.exports = __toCommonJS2(methods_exports);
2213
- var import_utils20 = require_cjs();
2224
+ var import_utils25 = require_cjs();
2214
2225
  var import_ignore = require_ignore();
2215
2226
  var parse3 = function() {
2216
2227
  const state = this;
2217
- if ((0, import_utils20.isObject)(state)) {
2228
+ if ((0, import_utils25.isObject)(state)) {
2218
2229
  const obj = {};
2219
2230
  for (const param in state) {
2220
2231
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2222,7 +2233,7 @@ var require_methods = __commonJS({
2222
2233
  }
2223
2234
  }
2224
2235
  return obj;
2225
- } else if ((0, import_utils20.isArray)(state)) {
2236
+ } else if ((0, import_utils25.isArray)(state)) {
2226
2237
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2227
2238
  }
2228
2239
  };
@@ -2242,7 +2253,7 @@ var require_methods = __commonJS({
2242
2253
  const state = this;
2243
2254
  const element = state.__element;
2244
2255
  const stateKey = element.__ref.__state;
2245
- if ((0, import_utils20.isString)(stateKey)) {
2256
+ if ((0, import_utils25.isString)(stateKey)) {
2246
2257
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2247
2258
  return element.state;
2248
2259
  }
@@ -2277,10 +2288,10 @@ var require_methods = __commonJS({
2277
2288
  };
2278
2289
  var add = function(value2, options = {}) {
2279
2290
  const state = this;
2280
- if ((0, import_utils20.isArray)(state)) {
2291
+ if ((0, import_utils25.isArray)(state)) {
2281
2292
  state.push(value2);
2282
2293
  state.update(state.parse(), { overwrite: "replace", ...options });
2283
- } else if ((0, import_utils20.isObject)(state)) {
2294
+ } else if ((0, import_utils25.isObject)(state)) {
2284
2295
  const key = Object.keys(state).length;
2285
2296
  state.update({ [key]: value2 }, options);
2286
2297
  }
@@ -2291,10 +2302,10 @@ var require_methods = __commonJS({
2291
2302
  };
2292
2303
  var remove = function(key, options = {}) {
2293
2304
  const state = this;
2294
- if ((0, import_utils20.isArray)(state))
2295
- (0, import_utils20.removeFromArray)(state, key);
2296
- if ((0, import_utils20.isObject)(state))
2297
- (0, import_utils20.removeFromObject)(state, key);
2305
+ if ((0, import_utils25.isArray)(state))
2306
+ (0, import_utils25.removeFromArray)(state, key);
2307
+ if ((0, import_utils25.isObject)(state))
2308
+ (0, import_utils25.removeFromObject)(state, key);
2298
2309
  return state.update(state.parse(), { replace: true, ...options });
2299
2310
  };
2300
2311
  var set5 = function(value2, options = {}) {
@@ -2303,7 +2314,7 @@ var require_methods = __commonJS({
2303
2314
  };
2304
2315
  var apply = function(func, options = {}) {
2305
2316
  const state = this;
2306
- if ((0, import_utils20.isFunction)(func)) {
2317
+ if ((0, import_utils25.isFunction)(func)) {
2307
2318
  func(state);
2308
2319
  return state.update(state, { replace: true, ...options });
2309
2320
  }
@@ -2338,12 +2349,12 @@ var require_inherit = __commonJS({
2338
2349
  createChangesByKey: () => createChangesByKey,
2339
2350
  createInheritedState: () => createInheritedState,
2340
2351
  findInheritedState: () => findInheritedState,
2341
- getChildStateInKey: () => getChildStateInKey2,
2352
+ getChildStateInKey: () => getChildStateInKey3,
2342
2353
  getParentStateInKey: () => getParentStateInKey,
2343
- isState: () => isState2
2354
+ isState: () => isState3
2344
2355
  });
2345
2356
  module2.exports = __toCommonJS2(inherit_exports);
2346
- var import_utils20 = require_cjs();
2357
+ var import_utils25 = require_cjs();
2347
2358
  var import_ignore = require_ignore();
2348
2359
  var getParentStateInKey = (stateKey, parentState) => {
2349
2360
  if (!stateKey.includes("../"))
@@ -2357,7 +2368,7 @@ var require_inherit = __commonJS({
2357
2368
  }
2358
2369
  return parentState;
2359
2370
  };
2360
- var getChildStateInKey2 = (stateKey, parentState, options = {}) => {
2371
+ var getChildStateInKey3 = (stateKey, parentState, options = {}) => {
2361
2372
  const arr = stateKey.split("/");
2362
2373
  const arrLength = arr.length - 1;
2363
2374
  for (let i2 = 0; i2 < arrLength; i2++) {
@@ -2390,16 +2401,16 @@ var require_inherit = __commonJS({
2390
2401
  }
2391
2402
  if (!parentState)
2392
2403
  return;
2393
- return getChildStateInKey2(stateKey, parentState, options);
2404
+ return getChildStateInKey3(stateKey, parentState, options);
2394
2405
  };
2395
2406
  var createInheritedState = (element, parent) => {
2396
2407
  const ref = element.__ref;
2397
2408
  const inheritedState = findInheritedState(element, parent);
2398
2409
  if (!inheritedState)
2399
2410
  return element.state;
2400
- if ((0, import_utils20.is)(inheritedState)("object", "array")) {
2401
- return (0, import_utils20.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2402
- } else if ((0, import_utils20.is)(inheritedState)("string", "number")) {
2411
+ if ((0, import_utils25.is)(inheritedState)("object", "array")) {
2412
+ return (0, import_utils25.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2413
+ } else if ((0, import_utils25.is)(inheritedState)("string", "number")) {
2403
2414
  ref.__stateType = "string";
2404
2415
  return { value: inheritedState };
2405
2416
  }
@@ -2408,12 +2419,12 @@ var require_inherit = __commonJS({
2408
2419
  var checkIfInherits = (element) => {
2409
2420
  const ref = element.__ref;
2410
2421
  const stateKey = ref.__state;
2411
- if (!stateKey || (0, import_utils20.isNot)(stateKey)("number", "string"))
2422
+ if (!stateKey || (0, import_utils25.isNot)(stateKey)("number", "string"))
2412
2423
  return false;
2413
2424
  return true;
2414
2425
  };
2415
- var isState2 = function(state) {
2416
- if (!(0, import_utils20.isObjectLike)(state))
2426
+ var isState3 = function(state) {
2427
+ if (!(0, import_utils25.isObjectLike)(state))
2417
2428
  return false;
2418
2429
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
2419
2430
  };
@@ -2462,7 +2473,7 @@ var require_updateState = __commonJS({
2462
2473
  var import_report = require_cjs2();
2463
2474
  var import_event = require_cjs3();
2464
2475
  var import_ignore = require_ignore();
2465
- var import_utils20 = require_cjs();
2476
+ var import_utils25 = require_cjs();
2466
2477
  var import_inherit = require_inherit();
2467
2478
  var STATE_UPDATE_OPTIONS = {
2468
2479
  overwrite: true,
@@ -2476,7 +2487,7 @@ var require_updateState = __commonJS({
2476
2487
  const state = this;
2477
2488
  const element = state.__element;
2478
2489
  if (!options.updateByState)
2479
- (0, import_utils20.merge)(options, STATE_UPDATE_OPTIONS);
2490
+ (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
2480
2491
  if (!state.__element)
2481
2492
  (0, import_report.report)("ElementOnStateIsNotDefined");
2482
2493
  if (options.preventInheritAtCurrentState === true) {
@@ -2506,10 +2517,10 @@ var require_updateState = __commonJS({
2506
2517
  const shallow = overwrite === "shallow";
2507
2518
  const merge22 = overwrite === "merge";
2508
2519
  if (merge22) {
2509
- (0, import_utils20.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2520
+ (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2510
2521
  return;
2511
2522
  }
2512
- const overwriteFunc = shallow ? import_utils20.overwriteShallow : import_utils20.overwriteDeep;
2523
+ const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
2513
2524
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2514
2525
  };
2515
2526
  var hoistStateUpdate = (state, obj, options) => {
@@ -2600,7 +2611,7 @@ var require_create2 = __commonJS({
2600
2611
  });
2601
2612
  module2.exports = __toCommonJS2(create_exports);
2602
2613
  var import_event = require_cjs3();
2603
- var import_utils20 = require_cjs();
2614
+ var import_utils25 = require_cjs();
2604
2615
  var import_ignore = require_ignore();
2605
2616
  var import_methods = require_methods();
2606
2617
  var import_updateState = require_updateState();
@@ -2614,7 +2625,7 @@ var require_create2 = __commonJS({
2614
2625
  if (objectizeState === false)
2615
2626
  return parent.state || {};
2616
2627
  else
2617
- element.state = (0, import_utils20.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2628
+ element.state = (0, import_utils25.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2618
2629
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2619
2630
  if (whatInitReturns === false)
2620
2631
  return element.state;
@@ -2633,17 +2644,17 @@ var require_create2 = __commonJS({
2633
2644
  const { __ref: ref } = state;
2634
2645
  if (!ref)
2635
2646
  return;
2636
- const dependentState = (0, import_utils20.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2647
+ const dependentState = (0, import_utils25.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2637
2648
  const newDepends = { [element.key]: dependentState };
2638
- ref.__depends = (0, import_utils20.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2649
+ ref.__depends = (0, import_utils25.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2639
2650
  return dependentState;
2640
2651
  };
2641
2652
  var checkForTypes = (element) => {
2642
2653
  const { state, __ref: ref } = element;
2643
- if ((0, import_utils20.isFunction)(state)) {
2654
+ if ((0, import_utils25.isFunction)(state)) {
2644
2655
  ref.__state = state;
2645
- return (0, import_utils20.exec)(state, element);
2646
- } else if ((0, import_utils20.is)(state)("string", "number")) {
2656
+ return (0, import_utils25.exec)(state, element);
2657
+ } else if ((0, import_utils25.is)(state)("string", "number")) {
2647
2658
  ref.__state = state;
2648
2659
  return {};
2649
2660
  } else if (state === true) {
@@ -2690,7 +2701,7 @@ var require_create2 = __commonJS({
2690
2701
  __children: {},
2691
2702
  __root: ref.__root ? ref.__root.state : state
2692
2703
  };
2693
- if ((0, import_utils20.isArray)(state)) {
2704
+ if ((0, import_utils25.isArray)(state)) {
2694
2705
  addProtoToArray(state, proto);
2695
2706
  } else {
2696
2707
  Object.setPrototypeOf(state, proto);
@@ -2757,17 +2768,17 @@ var require_state = __commonJS({
2757
2768
  state: () => state
2758
2769
  });
2759
2770
  module2.exports = __toCommonJS2(state_exports);
2760
- var import_state2 = require_cjs5();
2761
- var import_utils20 = require_cjs();
2771
+ var import_state3 = require_cjs5();
2772
+ var import_utils25 = require_cjs();
2762
2773
  var state = (params, element, node2) => {
2763
- const state2 = (0, import_utils20.exec)(params, element);
2764
- if ((0, import_utils20.isObject)(state2)) {
2774
+ const state2 = (0, import_utils25.exec)(params, element);
2775
+ if ((0, import_utils25.isObject)(state2)) {
2765
2776
  for (const param in state2) {
2766
- if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2777
+ if (import_state3.IGNORE_STATE_PARAMS.includes(param))
2767
2778
  continue;
2768
2779
  if (!Object.hasOwnProperty.call(state2, param))
2769
2780
  continue;
2770
- element.state[param] = (0, import_utils20.exec)(state2[param], element);
2781
+ element.state[param] = (0, import_utils25.exec)(state2[param], element);
2771
2782
  }
2772
2783
  }
2773
2784
  return element;
@@ -2913,8 +2924,8 @@ var require_mixins = __commonJS({
2913
2924
  data: () => import_data.default,
2914
2925
  html: () => import_html.default,
2915
2926
  registry: () => import_registry.default,
2916
- state: () => import_state2.default,
2917
- style: () => import_style4.default,
2927
+ state: () => import_state3.default,
2928
+ style: () => import_style6.default,
2918
2929
  text: () => import_text.default
2919
2930
  });
2920
2931
  module2.exports = __toCommonJS2(mixins_exports);
@@ -2923,9 +2934,9 @@ var require_mixins = __commonJS({
2923
2934
  var import_content = __toESM2(require_content(), 1);
2924
2935
  var import_data = __toESM2(require_data(), 1);
2925
2936
  var import_html = __toESM2(require_html(), 1);
2926
- var import_style4 = __toESM2(require_style(), 1);
2937
+ var import_style6 = __toESM2(require_style(), 1);
2927
2938
  var import_text = __toESM2(require_text(), 1);
2928
- var import_state2 = __toESM2(require_state(), 1);
2939
+ var import_state3 = __toESM2(require_state(), 1);
2929
2940
  var import_registry = __toESM2(require_registry(), 1);
2930
2941
  __reExport2(mixins_exports, require_registry(), module2.exports);
2931
2942
  }
@@ -2970,7 +2981,7 @@ var require_methods2 = __commonJS({
2970
2981
  spotByPath: () => spotByPath
2971
2982
  });
2972
2983
  module2.exports = __toCommonJS2(methods_exports);
2973
- var import_utils20 = require_cjs();
2984
+ var import_utils25 = require_cjs();
2974
2985
  var import_tree = require_tree();
2975
2986
  var import_mixins = require_mixins();
2976
2987
  var spotByPath = function(path) {
@@ -3003,9 +3014,9 @@ var require_methods2 = __commonJS({
3003
3014
  };
3004
3015
  var remove = function(params) {
3005
3016
  const element = this;
3006
- if ((0, import_utils20.isFunction)(element.node.remove))
3017
+ if ((0, import_utils25.isFunction)(element.node.remove))
3007
3018
  element.node.remove();
3008
- else if (!(0, import_utils20.isProduction)()) {
3019
+ else if (!(0, import_utils25.isProduction)()) {
3009
3020
  console.warn("This item cant be removed");
3010
3021
  element.log();
3011
3022
  }
@@ -3045,12 +3056,12 @@ var require_methods2 = __commonJS({
3045
3056
  if (v === "state") {
3046
3057
  if (element.__ref && element.__ref.__hasRootState)
3047
3058
  return;
3048
- if ((0, import_utils20.isFunction)(val && val.parse))
3059
+ if ((0, import_utils25.isFunction)(val && val.parse))
3049
3060
  val = val.parse();
3050
3061
  } else if (v === "props") {
3051
3062
  const { __element, update, ...props4 } = element[v];
3052
3063
  obj[v] = props4;
3053
- } else if ((0, import_utils20.isDefined)(val))
3064
+ } else if ((0, import_utils25.isDefined)(val))
3054
3065
  obj[v] = val;
3055
3066
  });
3056
3067
  return obj;
@@ -3061,7 +3072,7 @@ var require_methods2 = __commonJS({
3061
3072
  for (const v in obj) {
3062
3073
  if (excl.includes(v))
3063
3074
  return;
3064
- if ((0, import_utils20.isObjectLike)(obj[v])) {
3075
+ if ((0, import_utils25.isObjectLike)(obj[v])) {
3065
3076
  obj[v] = parseDeep.call(obj[v], excl);
3066
3077
  }
3067
3078
  }
@@ -3179,18 +3190,18 @@ var require_inherit2 = __commonJS({
3179
3190
  inheritParentProps: () => inheritParentProps
3180
3191
  });
3181
3192
  module2.exports = __toCommonJS2(inherit_exports);
3182
- var import_utils20 = require_cjs();
3193
+ var import_utils25 = require_cjs();
3183
3194
  var objectizeStringProperty = (propValue) => {
3184
- if ((0, import_utils20.is)(propValue)("string", "number")) {
3195
+ if ((0, import_utils25.is)(propValue)("string", "number")) {
3185
3196
  return { inheritedString: propValue };
3186
3197
  }
3187
3198
  return propValue;
3188
3199
  };
3189
3200
  var inheritParentProps = (element, parent) => {
3190
3201
  let propsStack = [];
3191
- const parentProps = (0, import_utils20.exec)(parent, parent.state).props;
3202
+ const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
3192
3203
  const matchParent = parent.props && parentProps[element.key];
3193
- const matchParentIsString = (0, import_utils20.isString)(matchParent);
3204
+ const matchParentIsString = (0, import_utils25.isString)(matchParent);
3194
3205
  const matchParentChildProps = parentProps && parentProps.childProps;
3195
3206
  if (matchParent) {
3196
3207
  if (matchParentIsString) {
@@ -3238,19 +3249,19 @@ var require_create3 = __commonJS({
3238
3249
  syncProps: () => syncProps
3239
3250
  });
3240
3251
  module2.exports = __toCommonJS2(create_exports);
3241
- var import_utils20 = require_cjs();
3252
+ var import_utils25 = require_cjs();
3242
3253
  var import_ignore = require_ignore2();
3243
3254
  var import_inherit = require_inherit2();
3244
3255
  var createPropsStack = (element, parent) => {
3245
3256
  const { props: props4, __ref } = element;
3246
3257
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3247
- if ((0, import_utils20.isObject)(props4))
3258
+ if ((0, import_utils25.isObject)(props4))
3248
3259
  propsStack.push(props4);
3249
3260
  else if (props4 === "inherit" && parent.props)
3250
3261
  propsStack.push(parent.props);
3251
3262
  else if (props4)
3252
3263
  propsStack.push(props4);
3253
- if ((0, import_utils20.isArray)(__ref.__extend)) {
3264
+ if ((0, import_utils25.isArray)(__ref.__extend)) {
3254
3265
  __ref.__extend.forEach((extend) => {
3255
3266
  if (extend.props)
3256
3267
  propsStack.push(extend.props);
@@ -3265,12 +3276,12 @@ var require_create3 = __commonJS({
3265
3276
  props4.forEach((v) => {
3266
3277
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3267
3278
  return;
3268
- const execProps = (0, import_utils20.exec)(v, element);
3269
- if ((0, import_utils20.isObject)(execProps) && execProps.__element)
3279
+ const execProps = (0, import_utils25.exec)(v, element);
3280
+ if ((0, import_utils25.isObject)(execProps) && execProps.__element)
3270
3281
  return;
3271
- element.props = (0, import_utils20.deepMerge)(
3282
+ element.props = (0, import_utils25.deepMerge)(
3272
3283
  mergedProps,
3273
- (0, import_utils20.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3284
+ (0, import_utils25.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3274
3285
  import_ignore.IGNORE_PROPS_PARAMS
3275
3286
  );
3276
3287
  });
@@ -3391,7 +3402,7 @@ var require_object2 = __commonJS({
3391
3402
  __export2(object_exports, {
3392
3403
  METHODS_EXL: () => METHODS_EXL,
3393
3404
  clone: () => clone,
3394
- deepClone: () => deepClone3,
3405
+ deepClone: () => deepClone5,
3395
3406
  deepMerge: () => deepMerge4,
3396
3407
  flattenRecursive: () => flattenRecursive,
3397
3408
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
@@ -3399,17 +3410,17 @@ var require_object2 = __commonJS({
3399
3410
  mergeIfExisted: () => mergeIfExisted,
3400
3411
  overwrite: () => overwrite,
3401
3412
  overwriteDeep: () => overwriteDeep,
3402
- overwriteShallow: () => overwriteShallow2
3413
+ overwriteShallow: () => overwriteShallow3
3403
3414
  });
3404
3415
  module2.exports = __toCommonJS2(object_exports);
3405
- var import_utils20 = require_cjs();
3406
- var import_state2 = require_cjs5();
3416
+ var import_utils25 = require_cjs();
3417
+ var import_state3 = require_cjs5();
3407
3418
  var import_props = require_props();
3408
3419
  var import_methods = require_methods2();
3409
- var METHODS_EXL = (0, import_utils20.joinArrays)(
3420
+ var METHODS_EXL = (0, import_utils25.joinArrays)(
3410
3421
  ["node", "state", "context", "extend"],
3411
3422
  import_methods.METHODS,
3412
- import_state2.IGNORE_STATE_PARAMS,
3423
+ import_state3.IGNORE_STATE_PARAMS,
3413
3424
  import_props.IGNORE_PROPS_PARAMS
3414
3425
  );
3415
3426
  var deepMerge4 = (element, extend, exclude = METHODS_EXL) => {
@@ -3420,7 +3431,7 @@ var require_object2 = __commonJS({
3420
3431
  const extendProp = extend[e];
3421
3432
  if (elementProp === void 0) {
3422
3433
  element[e] = extendProp;
3423
- } else if ((0, import_utils20.isObjectLike)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3434
+ } else if ((0, import_utils25.isObjectLike)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3424
3435
  deepMerge4(elementProp, extendProp);
3425
3436
  }
3426
3437
  }
@@ -3435,17 +3446,17 @@ var require_object2 = __commonJS({
3435
3446
  }
3436
3447
  return o;
3437
3448
  };
3438
- var deepClone3 = (obj, exclude = METHODS_EXL) => {
3439
- const o = (0, import_utils20.isArray)(obj) ? [] : {};
3449
+ var deepClone5 = (obj, exclude = METHODS_EXL) => {
3450
+ const o = (0, import_utils25.isArray)(obj) ? [] : {};
3440
3451
  for (const e in obj) {
3441
3452
  if (exclude.includes(e))
3442
3453
  continue;
3443
3454
  let objProp = obj[e];
3444
- if (e === "extend" && (0, import_utils20.isArray)(objProp)) {
3455
+ if (e === "extend" && (0, import_utils25.isArray)(objProp)) {
3445
3456
  objProp = mergeArray(objProp, exclude);
3446
3457
  }
3447
- if ((0, import_utils20.isObjectLike)(objProp)) {
3448
- o[e] = deepClone3(objProp, exclude);
3458
+ if ((0, import_utils25.isObjectLike)(objProp)) {
3459
+ o[e] = deepClone5(objProp, exclude);
3449
3460
  } else
3450
3461
  o[e] = objProp;
3451
3462
  }
@@ -3469,7 +3480,7 @@ var require_object2 = __commonJS({
3469
3480
  }
3470
3481
  return changes;
3471
3482
  };
3472
- var overwriteShallow2 = (obj, params, exclude = METHODS_EXL) => {
3483
+ var overwriteShallow3 = (obj, params, exclude = METHODS_EXL) => {
3473
3484
  for (const e in params) {
3474
3485
  if (exclude.includes(e))
3475
3486
  continue;
@@ -3483,7 +3494,7 @@ var require_object2 = __commonJS({
3483
3494
  continue;
3484
3495
  const objProp = obj[e];
3485
3496
  const paramsProp = params[e];
3486
- if ((0, import_utils20.isObjectLike)(objProp) && (0, import_utils20.isObjectLike)(paramsProp)) {
3497
+ if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
3487
3498
  overwriteDeep(objProp, paramsProp);
3488
3499
  } else if (paramsProp !== void 0) {
3489
3500
  obj[e] = paramsProp;
@@ -3492,15 +3503,15 @@ var require_object2 = __commonJS({
3492
3503
  return obj;
3493
3504
  };
3494
3505
  var mergeIfExisted = (a, b) => {
3495
- if ((0, import_utils20.isObjectLike)(a) && (0, import_utils20.isObjectLike)(b))
3506
+ if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
3496
3507
  return deepMerge4(a, b);
3497
3508
  return a || b;
3498
3509
  };
3499
3510
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
3500
- return arr.reduce((a, c) => deepMerge4(a, deepClone3(c, exclude)), {});
3511
+ return arr.reduce((a, c) => deepMerge4(a, deepClone5(c, exclude)), {});
3501
3512
  };
3502
3513
  var mergeAndCloneIfArray = (obj) => {
3503
- return (0, import_utils20.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
3514
+ return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : deepClone5(obj);
3504
3515
  };
3505
3516
  var flattenRecursive = (param, prop, stack = []) => {
3506
3517
  const objectized = mergeAndCloneIfArray(param);
@@ -3556,7 +3567,7 @@ var require_extendUtils = __commonJS({
3556
3567
  setHashedExtend: () => setHashedExtend
3557
3568
  });
3558
3569
  module2.exports = __toCommonJS2(extendUtils_exports);
3559
- var import_utils20 = require_cjs();
3570
+ var import_utils25 = require_cjs();
3560
3571
  var ENV2 = "development";
3561
3572
  var generateHash = () => Math.random().toString(36).substring(2);
3562
3573
  var extendStackRegistry = {};
@@ -3566,7 +3577,7 @@ var require_extendUtils = __commonJS({
3566
3577
  };
3567
3578
  var setHashedExtend = (extend, stack) => {
3568
3579
  const hash2 = generateHash();
3569
- if (!(0, import_utils20.isString)(extend)) {
3580
+ if (!(0, import_utils25.isString)(extend)) {
3570
3581
  extend.__hash = hash2;
3571
3582
  }
3572
3583
  extendStackRegistry[hash2] = stack;
@@ -3592,7 +3603,7 @@ var require_extendUtils = __commonJS({
3592
3603
  var flattenExtend = (extend, stack) => {
3593
3604
  if (!extend)
3594
3605
  return stack;
3595
- if ((0, import_utils20.isArray)(extend))
3606
+ if ((0, import_utils25.isArray)(extend))
3596
3607
  return extractArrayExtend(extend, stack);
3597
3608
  stack.push(extend);
3598
3609
  if (extend.extend)
@@ -3605,9 +3616,9 @@ var require_extendUtils = __commonJS({
3605
3616
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3606
3617
  continue;
3607
3618
  const objProp = obj[prop];
3608
- if ((0, import_utils20.isObject)(objProp)) {
3619
+ if ((0, import_utils25.isObject)(objProp)) {
3609
3620
  o[prop] = deepCloneExtend(objProp);
3610
- } else if ((0, import_utils20.isArray)(objProp)) {
3621
+ } else if ((0, import_utils25.isArray)(objProp)) {
3611
3622
  o[prop] = objProp.map((x) => x);
3612
3623
  } else
3613
3624
  o[prop] = objProp;
@@ -3622,14 +3633,14 @@ var require_extendUtils = __commonJS({
3622
3633
  const extendProp = extend[e];
3623
3634
  if (elementProp === void 0) {
3624
3635
  element[e] = extendProp;
3625
- } else if ((0, import_utils20.isObject)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3636
+ } else if ((0, import_utils25.isObject)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3626
3637
  deepMergeExtend(elementProp, extendProp);
3627
- } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isArray)(extendProp)) {
3638
+ } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isArray)(extendProp)) {
3628
3639
  element[e] = elementProp.concat(extendProp);
3629
- } else if ((0, import_utils20.isArray)(elementProp) && (0, import_utils20.isObject)(extendProp)) {
3640
+ } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
3630
3641
  const obj = deepMergeExtend({}, elementProp);
3631
3642
  element[e] = deepMergeExtend(obj, extendProp);
3632
- } else if (elementProp === void 0 && (0, import_utils20.isFunction)(extendProp)) {
3643
+ } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
3633
3644
  element[e] = extendProp;
3634
3645
  }
3635
3646
  }
@@ -3642,7 +3653,7 @@ var require_extendUtils = __commonJS({
3642
3653
  };
3643
3654
  var fallbackStringExtend = (extend, context, options) => {
3644
3655
  const COMPONENTS = context && context.components || options.components;
3645
- if ((0, import_utils20.isString)(extend)) {
3656
+ if ((0, import_utils25.isString)(extend)) {
3646
3657
  console.log("extend", extend);
3647
3658
  console.log(COMPONENTS[extend]);
3648
3659
  if (COMPONENTS && COMPONENTS[extend]) {
@@ -3674,11 +3685,11 @@ var require_extendUtils = __commonJS({
3674
3685
  var replaceStringsWithComponents = (stack, context, options) => {
3675
3686
  const COMPONENTS = context && context.components || options.components;
3676
3687
  return stack.map((v) => {
3677
- if ((0, import_utils20.isString)(v)) {
3688
+ if ((0, import_utils25.isString)(v)) {
3678
3689
  const component = COMPONENTS[v];
3679
3690
  return component;
3680
3691
  }
3681
- if ((0, import_utils20.isString)(v.extend)) {
3692
+ if ((0, import_utils25.isString)(v.extend)) {
3682
3693
  v.extend = COMPONENTS[v.extend];
3683
3694
  return { ...getExtendMerged(v.extend), ...v };
3684
3695
  }
@@ -3714,15 +3725,15 @@ var require_extend = __commonJS({
3714
3725
  applyExtend: () => applyExtend
3715
3726
  });
3716
3727
  module2.exports = __toCommonJS2(extend_exports);
3717
- var import_utils20 = require_cjs();
3718
- var import_utils22 = require_utils();
3728
+ var import_utils25 = require_cjs();
3729
+ var import_utils26 = require_utils();
3719
3730
  var ENV2 = "development";
3720
3731
  var applyExtend = (element, parent, options = {}) => {
3721
- if ((0, import_utils20.isFunction)(element))
3722
- element = (0, import_utils20.exec)(element, parent);
3732
+ if ((0, import_utils25.isFunction)(element))
3733
+ element = (0, import_utils25.exec)(element, parent);
3723
3734
  let { extend, props: props4, context, __ref } = element;
3724
- extend = (0, import_utils22.fallbackStringExtend)(extend, context, options);
3725
- const extendStack = (0, import_utils22.getExtendStack)(extend);
3735
+ extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
3736
+ const extendStack = (0, import_utils26.getExtendStack)(extend);
3726
3737
  if (ENV2 !== "test" || ENV2 !== "development")
3727
3738
  delete element.extend;
3728
3739
  let childExtendStack = [];
@@ -3731,12 +3742,12 @@ var require_extend = __commonJS({
3731
3742
  if (!options.ignoreChildExtend) {
3732
3743
  if (props4 && props4.ignoreChildExtend)
3733
3744
  return;
3734
- childExtendStack = (0, import_utils22.getExtendStack)(parent.childExtend);
3745
+ childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend);
3735
3746
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3736
3747
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3737
3748
  const canExtendRecursive = element.key !== "__text";
3738
3749
  if (canExtendRecursive) {
3739
- const childExtendRecursiveStack = (0, import_utils22.getExtendStack)(parent.childExtendRecursive);
3750
+ const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive);
3740
3751
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3741
3752
  element.childExtendRecursive = parent.childExtendRecursive;
3742
3753
  }
@@ -3747,7 +3758,7 @@ var require_extend = __commonJS({
3747
3758
  const childExtendLength = childExtendStack.length;
3748
3759
  let stack = [];
3749
3760
  if (extendLength && childExtendLength) {
3750
- stack = (0, import_utils22.jointStacks)(extendStack, childExtendStack);
3761
+ stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
3751
3762
  } else if (extendLength) {
3752
3763
  stack = extendStack;
3753
3764
  } else if (childExtendLength) {
@@ -3755,20 +3766,20 @@ var require_extend = __commonJS({
3755
3766
  } else if (!options.extend)
3756
3767
  return element;
3757
3768
  if (options.extend) {
3758
- const defaultOptionsExtend = (0, import_utils22.getExtendStack)(options.extend);
3769
+ const defaultOptionsExtend = (0, import_utils26.getExtendStack)(options.extend);
3759
3770
  stack = [].concat(stack, defaultOptionsExtend);
3760
3771
  }
3761
3772
  if (__ref)
3762
3773
  __ref.__extend = stack;
3763
- const findAndReplaceStrings = (0, import_utils22.replaceStringsWithComponents)(stack, context, options);
3764
- let mergedExtend = (0, import_utils22.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3774
+ const findAndReplaceStrings = (0, import_utils26.replaceStringsWithComponents)(stack, context, options);
3775
+ let mergedExtend = (0, import_utils26.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3765
3776
  const COMPONENTS = context && context.components || options.components;
3766
- const component = (0, import_utils20.exec)(element.component || mergedExtend.component, element);
3777
+ const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
3767
3778
  if (component && COMPONENTS && COMPONENTS[component]) {
3768
- const componentExtend = (0, import_utils22.cloneAndMergeArrayExtend)((0, import_utils22.getExtendStack)(COMPONENTS[component]));
3769
- mergedExtend = (0, import_utils22.deepMergeExtend)(componentExtend, mergedExtend);
3779
+ const componentExtend = (0, import_utils26.cloneAndMergeArrayExtend)((0, import_utils26.getExtendStack)(COMPONENTS[component]));
3780
+ mergedExtend = (0, import_utils26.deepMergeExtend)(componentExtend, mergedExtend);
3770
3781
  }
3771
- return (0, import_utils22.deepMergeExtend)(element, mergedExtend);
3782
+ return (0, import_utils26.deepMergeExtend)(element, mergedExtend);
3772
3783
  };
3773
3784
  }
3774
3785
  });
@@ -3807,11 +3818,11 @@ var require_component = __commonJS({
3807
3818
  overwriteVariant: () => overwriteVariant
3808
3819
  });
3809
3820
  module2.exports = __toCommonJS2(component_exports);
3810
- var import_utils20 = require_cjs();
3821
+ var import_utils25 = require_cjs();
3811
3822
  var import_extend = require_extend();
3812
3823
  var ENV2 = "development";
3813
3824
  var checkIfKeyIsComponent = (key) => {
3814
- const isFirstKeyString = (0, import_utils20.isString)(key);
3825
+ const isFirstKeyString = (0, import_utils25.isString)(key);
3815
3826
  if (!isFirstKeyString)
3816
3827
  return;
3817
3828
  const firstCharKey = key.slice(0, 1);
@@ -3819,7 +3830,7 @@ var require_component = __commonJS({
3819
3830
  };
3820
3831
  var addAdditionalExtend = (newExtend, element) => {
3821
3832
  const { extend } = element;
3822
- const preserveExtend = (0, import_utils20.isArray)(extend) ? extend : [extend];
3833
+ const preserveExtend = (0, import_utils25.isArray)(extend) ? extend : [extend];
3823
3834
  return {
3824
3835
  ...element,
3825
3836
  extend: [newExtend].concat(preserveExtend)
@@ -3842,10 +3853,10 @@ var require_component = __commonJS({
3842
3853
  };
3843
3854
  } else if (extend) {
3844
3855
  addAdditionalExtend(extendKey, element);
3845
- } else if ((0, import_utils20.isFunction)(element)) {
3856
+ } else if ((0, import_utils25.isFunction)(element)) {
3846
3857
  return {
3847
3858
  extend: extendKey,
3848
- props: { ...(0, import_utils20.exec)(element, parent) }
3859
+ props: { ...(0, import_utils25.exec)(element, parent) }
3849
3860
  };
3850
3861
  }
3851
3862
  };
@@ -3858,8 +3869,8 @@ var require_component = __commonJS({
3858
3869
  return;
3859
3870
  const { components } = context;
3860
3871
  const { extend } = element;
3861
- const execExtend = (0, import_utils20.exec)(extend, element);
3862
- if ((0, import_utils20.isString)(execExtend)) {
3872
+ const execExtend = (0, import_utils25.exec)(extend, element);
3873
+ if ((0, import_utils25.isString)(execExtend)) {
3863
3874
  if (components[execExtend])
3864
3875
  element.extend = components[execExtend];
3865
3876
  else {
@@ -3872,29 +3883,29 @@ var require_component = __commonJS({
3872
3883
  }
3873
3884
  };
3874
3885
  var isVariant = (param) => {
3875
- if (!(0, import_utils20.isString)(param))
3886
+ if (!(0, import_utils25.isString)(param))
3876
3887
  return;
3877
3888
  const firstCharKey = param.slice(0, 1);
3878
3889
  return firstCharKey === ".";
3879
3890
  };
3880
3891
  var hasVariantProp = (element) => {
3881
3892
  const { props: props4 } = element;
3882
- if ((0, import_utils20.isObject)(props4) && (0, import_utils20.isString)(props4.variant))
3893
+ if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.variant))
3883
3894
  return true;
3884
3895
  };
3885
3896
  var overwriteVariant = (element, variant, variantProps) => {
3886
3897
  let variantElement = element[variant];
3887
3898
  if (!variantElement)
3888
3899
  return;
3889
- const props4 = (0, import_utils20.isObject)(variantProps) ? variantProps : {};
3890
- if ((0, import_utils20.isString)(variantElement)) {
3900
+ const props4 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
3901
+ if ((0, import_utils25.isString)(variantElement)) {
3891
3902
  variantElement = {
3892
3903
  extend: [{ props: props4 }, variantElement]
3893
3904
  };
3894
3905
  } else if (variantElement.extend) {
3895
3906
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
3896
3907
  }
3897
- return (0, import_utils20.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3908
+ return (0, import_utils25.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3898
3909
  };
3899
3910
  var applyVariant = (element) => {
3900
3911
  const { props: props4 } = element;
@@ -3969,8 +3980,8 @@ var require_iterate = __commonJS({
3969
3980
  throughUpdatedExec: () => throughUpdatedExec
3970
3981
  });
3971
3982
  module2.exports = __toCommonJS2(iterate_exports);
3972
- var import_utils20 = require_cjs();
3973
- var import_utils22 = require_utils();
3983
+ var import_utils25 = require_cjs();
3984
+ var import_utils26 = require_utils();
3974
3985
  var import_methods = require_methods2();
3975
3986
  var throughInitialExec = (element, exclude = {}) => {
3976
3987
  const { __ref: ref } = element;
@@ -3978,13 +3989,13 @@ var require_iterate = __commonJS({
3978
3989
  if (exclude[param])
3979
3990
  continue;
3980
3991
  const prop = element[param];
3981
- if ((0, import_utils20.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
3992
+ if ((0, import_utils25.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
3982
3993
  ref.__exec[param] = prop;
3983
3994
  element[param] = prop(element, element.state);
3984
3995
  }
3985
3996
  }
3986
3997
  };
3987
- var throughUpdatedExec = (element, options = { excludes: import_utils22.METHODS_EXL }) => {
3998
+ var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
3988
3999
  const { __ref: ref } = element;
3989
4000
  const changes = {};
3990
4001
  for (const param in ref.__exec) {
@@ -3993,13 +4004,13 @@ var require_iterate = __commonJS({
3993
4004
  if (isDefinedParam)
3994
4005
  continue;
3995
4006
  const newExec = ref.__exec[param](element, element.state, element.context);
3996
- const execReturnsString = (0, import_utils20.isString)(newExec) || (0, import_utils20.isNumber)(newExec);
4007
+ const execReturnsString = (0, import_utils25.isString)(newExec) || (0, import_utils25.isNumber)(newExec);
3997
4008
  if (prop && prop.node && execReturnsString) {
3998
- (0, import_utils22.overwrite)(prop, { text: newExec }, options);
4009
+ (0, import_utils26.overwrite)(prop, { text: newExec }, options);
3999
4010
  } else if (newExec !== prop) {
4000
- if ((0, import_utils22.checkIfKeyIsComponent)(param)) {
4001
- const { extend, ...newElem } = (0, import_utils22.extendizeByKey)(newExec, element, param);
4002
- (0, import_utils22.overwrite)(prop, newElem, options);
4011
+ if ((0, import_utils26.checkIfKeyIsComponent)(param)) {
4012
+ const { extend, ...newElem } = (0, import_utils26.extendizeByKey)(newExec, element, param);
4013
+ (0, import_utils26.overwrite)(prop, newElem, options);
4003
4014
  } else {
4004
4015
  ref.__cached[param] = changes[param] = prop;
4005
4016
  element[param] = newExec;
@@ -4011,16 +4022,16 @@ var require_iterate = __commonJS({
4011
4022
  var throughInitialDefine = (element) => {
4012
4023
  const { define, context, __ref: ref } = element;
4013
4024
  let defineObj = {};
4014
- const hasGlobalDefine = context && (0, import_utils20.isObject)(context.define);
4015
- if ((0, import_utils20.isObject)(define))
4025
+ const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
4026
+ if ((0, import_utils25.isObject)(define))
4016
4027
  defineObj = { ...define };
4017
4028
  if (hasGlobalDefine)
4018
4029
  defineObj = { ...defineObj, ...context.define };
4019
4030
  for (const param in defineObj) {
4020
4031
  let elementProp = element[param];
4021
- if ((0, import_utils20.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils22.isVariant)(param)) {
4032
+ if ((0, import_utils25.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils26.isVariant)(param)) {
4022
4033
  ref.__exec[param] = elementProp;
4023
- const execParam2 = elementProp = (0, import_utils20.exec)(elementProp, element);
4034
+ const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
4024
4035
  if (execParam2) {
4025
4036
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4026
4037
  ref.__defineCache[param] = elementProp;
@@ -4036,15 +4047,15 @@ var require_iterate = __commonJS({
4036
4047
  const { context, define, __ref: ref } = element;
4037
4048
  const changes = {};
4038
4049
  let obj = {};
4039
- if ((0, import_utils20.isObject)(define))
4050
+ if ((0, import_utils25.isObject)(define))
4040
4051
  obj = { ...define };
4041
- if ((0, import_utils20.isObject)(context && context.define))
4052
+ if ((0, import_utils25.isObject)(context && context.define))
4042
4053
  obj = { ...obj, ...context.define };
4043
4054
  for (const param in obj) {
4044
4055
  const execParam = ref.__exec[param];
4045
4056
  if (execParam)
4046
4057
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4047
- const cached = (0, import_utils20.exec)(ref.__defineCache[param], element);
4058
+ const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
4048
4059
  const newExecParam = obj[param](cached, element, element.state, element.context);
4049
4060
  if (newExecParam)
4050
4061
  element[param] = newExecParam;
@@ -4080,7 +4091,7 @@ var require_applyParam = __commonJS({
4080
4091
  applyParam: () => applyParam
4081
4092
  });
4082
4093
  module2.exports = __toCommonJS2(applyParam_exports);
4083
- var import_utils20 = require_cjs();
4094
+ var import_utils25 = require_cjs();
4084
4095
  var import_mixins = require_mixins();
4085
4096
  var applyParam = (param, element, options) => {
4086
4097
  const { node: node2, context, __ref: ref } = element;
@@ -4093,7 +4104,7 @@ var require_applyParam = __commonJS({
4093
4104
  if (!ref.__if)
4094
4105
  return;
4095
4106
  if (isGlobalTransformer && !hasContextDefine) {
4096
- if ((0, import_utils20.isFunction)(isGlobalTransformer)) {
4107
+ if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
4097
4108
  isGlobalTransformer(prop, element, node2, options);
4098
4109
  return;
4099
4110
  }
@@ -4140,7 +4151,7 @@ var require_node2 = __commonJS({
4140
4151
  default: () => node_default
4141
4152
  });
4142
4153
  module2.exports = __toCommonJS2(node_exports);
4143
- var import_utils20 = require_cjs();
4154
+ var import_utils25 = require_cjs();
4144
4155
  var import_event = require_cjs3();
4145
4156
  var import_render = require_cjs4();
4146
4157
  var import_methods = require_methods2();
@@ -4148,7 +4159,7 @@ var require_node2 = __commonJS({
4148
4159
  var import_iterate = require_iterate();
4149
4160
  var import_mixins = require_mixins();
4150
4161
  var import_applyParam = require_applyParam();
4151
- var import_utils22 = require_utils();
4162
+ var import_utils26 = require_utils();
4152
4163
  var ENV2 = "development";
4153
4164
  var createNode = (element, options) => {
4154
4165
  let { node: node2, tag, __ref: ref } = element;
@@ -4165,23 +4176,27 @@ var require_node2 = __commonJS({
4165
4176
  }
4166
4177
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4167
4178
  node2.ref = element;
4168
- if ((0, import_utils20.isFunction)(node2.setAttribute))
4179
+ if ((0, import_utils25.isFunction)(node2.setAttribute))
4169
4180
  node2.setAttribute("key", element.key);
4170
4181
  }
4171
4182
  if (element.tag !== "string" || element.tag !== "fragment") {
4172
4183
  (0, import_iterate.throughInitialDefine)(element);
4173
4184
  (0, import_iterate.throughInitialExec)(element);
4174
- if (isNewNode && (0, import_utils20.isObject)(element.on))
4185
+ if (isNewNode && (0, import_utils25.isObject)(element.on))
4175
4186
  (0, import_event.applyEventsOnNode)(element);
4176
4187
  for (const param in element) {
4177
4188
  const prop = element[param];
4178
- if ((0, import_utils20.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils22.isVariant)(param) || (0, import_utils20.isObject)(import_mixins.registry[param]))
4189
+ if ((0, import_utils25.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils26.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]))
4179
4190
  continue;
4180
4191
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4181
4192
  if (isElement) {
4182
4193
  const { hasDefine, hasContextDefine } = isElement;
4183
4194
  if (element[param] && !hasDefine && !hasContextDefine) {
4184
- (0, import_create.default)((0, import_utils20.exec)(prop, element), element, param, options);
4195
+ const createAsync = () => (0, import_create.default)((0, import_utils25.exec)(prop, element), element, param, options);
4196
+ if (element.props && element.props.lazyLoad || options.lazyLoad) {
4197
+ window.requestAnimationFrame(() => createAsync());
4198
+ } else
4199
+ createAsync();
4185
4200
  }
4186
4201
  }
4187
4202
  }
@@ -4218,7 +4233,7 @@ var require_methods3 = __commonJS({
4218
4233
  DEFAULT_METHODS: () => DEFAULT_METHODS
4219
4234
  });
4220
4235
  module2.exports = __toCommonJS2(methods_exports);
4221
- var import_utils20 = require_cjs();
4236
+ var import_utils25 = require_cjs();
4222
4237
  var DEFAULT_METHODS = {
4223
4238
  key: {},
4224
4239
  tag: {},
@@ -4239,7 +4254,7 @@ var require_methods3 = __commonJS({
4239
4254
  text: (element, state) => {
4240
4255
  element.ref.text = {
4241
4256
  tag: "text",
4242
- text: (0, import_utils20.exec)(element.text, element, state)
4257
+ text: (0, import_utils25.exec)(element.text, element, state)
4243
4258
  };
4244
4259
  },
4245
4260
  innerHTML: {},
@@ -4476,19 +4491,19 @@ var require_update2 = __commonJS({
4476
4491
  default: () => update_default
4477
4492
  });
4478
4493
  module2.exports = __toCommonJS2(update_exports);
4479
- var import_utils20 = require_cjs();
4494
+ var import_utils25 = require_cjs();
4480
4495
  var import_event = require_cjs3();
4481
4496
  var import_methods = require_methods2();
4482
4497
  var import_props = require_props();
4483
- var import_state2 = require_cjs5();
4484
- var import_utils22 = require_utils();
4498
+ var import_state3 = require_cjs5();
4499
+ var import_utils26 = require_utils();
4485
4500
  var import_create = __toESM2(require_create4(), 1);
4486
4501
  var import_iterate = require_iterate();
4487
4502
  var import_mixins = require_mixins();
4488
4503
  var import_applyParam = require_applyParam();
4489
4504
  var import_options3 = __toESM2(require_options(), 1);
4490
4505
  var snapshot = {
4491
- snapshotId: import_utils20.createSnapshotId
4506
+ snapshotId: import_utils25.createSnapshotId
4492
4507
  };
4493
4508
  var UPDATE_DEFAULT_OPTIONS = {
4494
4509
  stackChanges: false,
@@ -4496,7 +4511,7 @@ var require_update2 = __commonJS({
4496
4511
  preventRecursive: false,
4497
4512
  currentSnapshot: false,
4498
4513
  calleeElement: false,
4499
- excludes: import_utils22.METHODS_EXL
4514
+ excludes: import_utils26.METHODS_EXL
4500
4515
  };
4501
4516
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
4502
4517
  const element = this;
@@ -4505,14 +4520,14 @@ var require_update2 = __commonJS({
4505
4520
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
4506
4521
  return;
4507
4522
  if (!excludes)
4508
- (0, import_utils20.merge)(options, UPDATE_DEFAULT_OPTIONS);
4523
+ (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
4509
4524
  let ref = element.__ref;
4510
4525
  if (!ref)
4511
4526
  ref = element.__ref = {};
4512
4527
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
4513
4528
  if (snapshotHasUpdated)
4514
4529
  return;
4515
- if ((0, import_utils20.isString)(params) || (0, import_utils20.isNumber)(params)) {
4530
+ if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
4516
4531
  params = { text: params };
4517
4532
  }
4518
4533
  const ifFails = checkIfOnUpdate(element, parent, options);
@@ -4523,7 +4538,7 @@ var require_update2 = __commonJS({
4523
4538
  return;
4524
4539
  if (ref.__if && !options.preventPropsUpdate) {
4525
4540
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
4526
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils20.isFunction)(v));
4541
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
4527
4542
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
4528
4543
  if (props4)
4529
4544
  (0, import_props.updateProps)(props4, element, parent);
@@ -4536,11 +4551,11 @@ var require_update2 = __commonJS({
4536
4551
  if (initUpdateReturns === false)
4537
4552
  return element;
4538
4553
  }
4539
- const overwriteChanges = (0, import_utils20.overwriteDeep)(element, params, import_utils22.METHODS_EXL);
4554
+ const overwriteChanges = (0, import_utils25.overwriteDeep)(element, params, import_utils26.METHODS_EXL);
4540
4555
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
4541
4556
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
4542
4557
  if (options.stackChanges && element.__stackChanges) {
4543
- const stackChanges = (0, import_utils20.merge)(definedChanges, (0, import_utils20.merge)(execChanges, overwriteChanges));
4558
+ const stackChanges = (0, import_utils25.merge)(definedChanges, (0, import_utils25.merge)(execChanges, overwriteChanges));
4544
4559
  element.__stackChanges.push(stackChanges);
4545
4560
  }
4546
4561
  if (!ref.__if)
@@ -4551,16 +4566,16 @@ var require_update2 = __commonJS({
4551
4566
  for (const param in element) {
4552
4567
  const prop = element[param];
4553
4568
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
4554
- const isInPreventUpdate = (0, import_utils20.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4555
- const isInPreventDefineUpdate = (0, import_utils20.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4556
- if ((0, import_utils20.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils20.isObject)(import_mixins.registry[param]) || (0, import_utils22.isVariant)(param))
4569
+ const isInPreventUpdate = (0, import_utils25.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4570
+ const isInPreventDefineUpdate = (0, import_utils25.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4571
+ if ((0, import_utils25.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]) || (0, import_utils26.isVariant)(param))
4557
4572
  continue;
4558
4573
  if (options.preventStateUpdate === "once")
4559
4574
  options.preventStateUpdate = false;
4560
4575
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4561
4576
  if (isElement) {
4562
4577
  const { hasDefine, hasContextDefine } = isElement;
4563
- const canUpdate = (0, import_utils20.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4578
+ const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4564
4579
  if (!canUpdate)
4565
4580
  continue;
4566
4581
  const childUpdateCall = () => update.call(prop, params[prop], {
@@ -4569,7 +4584,7 @@ var require_update2 = __commonJS({
4569
4584
  calleeElement
4570
4585
  });
4571
4586
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4572
- import_utils20.window.requestAnimationFrame(() => childUpdateCall());
4587
+ import_utils25.window.requestAnimationFrame(() => childUpdateCall());
4573
4588
  } else
4574
4589
  childUpdateCall();
4575
4590
  }
@@ -4593,7 +4608,7 @@ var require_update2 = __commonJS({
4593
4608
  return [snapshotOnCallee, calleeElement];
4594
4609
  };
4595
4610
  var checkIfOnUpdate = (element, parent, options) => {
4596
- if (!(0, import_utils20.isFunction)(element.if) || !element.state || !parent)
4611
+ if (!(0, import_utils25.isFunction)(element.if) || !element.state || !parent)
4597
4612
  return;
4598
4613
  const ref = element.__ref;
4599
4614
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -4610,7 +4625,7 @@ var require_update2 = __commonJS({
4610
4625
  element.state = ref.__state;
4611
4626
  }
4612
4627
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
4613
- if (options.preventUpdate !== true && element.on && (0, import_utils20.isFunction)(element.on.update)) {
4628
+ if (options.preventUpdate !== true && element.on && (0, import_utils25.isFunction)(element.on.update)) {
4614
4629
  (0, import_event.applyEvent)(element.on.update, created, created.state);
4615
4630
  }
4616
4631
  return created;
@@ -4631,9 +4646,9 @@ var require_update2 = __commonJS({
4631
4646
  return;
4632
4647
  }
4633
4648
  const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
4634
- const shouldForceStateUpdate = (0, import_utils20.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4649
+ const shouldForceStateUpdate = (0, import_utils25.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4635
4650
  if (shouldForceStateUpdate) {
4636
- const execState = (0, import_utils20.exec)(stateKey, element);
4651
+ const execState = (0, import_utils25.exec)(stateKey, element);
4637
4652
  state.set(execState, {
4638
4653
  ...options,
4639
4654
  preventUpdate: true
@@ -4656,7 +4671,7 @@ var require_update2 = __commonJS({
4656
4671
  };
4657
4672
  var createStateUpdate = (element, parent, options) => {
4658
4673
  const __stateChildren = element.state.__children;
4659
- const newState = (0, import_state2.createState)(element, parent);
4674
+ const newState = (0, import_state3.createState)(element, parent);
4660
4675
  element.state = newState;
4661
4676
  for (const child in __stateChildren) {
4662
4677
  if (newState[child])
@@ -4705,7 +4720,7 @@ var require_set2 = __commonJS({
4705
4720
  addMethods: () => addMethods
4706
4721
  });
4707
4722
  module2.exports = __toCommonJS2(set_exports);
4708
- var import_utils20 = require_cjs();
4723
+ var import_utils25 = require_cjs();
4709
4724
  var import_set = __toESM2(require_set(), 1);
4710
4725
  var import_update = __toESM2(require_update2(), 1);
4711
4726
  var import__ = require_methods2();
@@ -4726,7 +4741,7 @@ var require_set2 = __commonJS({
4726
4741
  nextElement: import__.nextElement.bind(element),
4727
4742
  previousElement: import__.previousElement.bind(element)
4728
4743
  };
4729
- if ((0, import_utils20.isDevelopment)())
4744
+ if ((0, import_utils25.isDevelopment)())
4730
4745
  proto.log = import__.log.bind(element);
4731
4746
  Object.setPrototypeOf(element, proto);
4732
4747
  };
@@ -4774,7 +4789,7 @@ var require_create4 = __commonJS({
4774
4789
  var import_registry = require_cjs6();
4775
4790
  var import_event = require_cjs3();
4776
4791
  var import_render = require_cjs4();
4777
- var import_state2 = require_cjs5();
4792
+ var import_state3 = require_cjs5();
4778
4793
  var import_methods = require_methods2();
4779
4794
  var import_props = require_props();
4780
4795
  var import_extend = require_extend();
@@ -4782,7 +4797,7 @@ var require_create4 = __commonJS({
4782
4797
  var import_set = require_set2();
4783
4798
  var import_classList = require_classList();
4784
4799
  var import_iterate = require_iterate();
4785
- var import_utils20 = require_cjs();
4800
+ var import_utils25 = require_cjs();
4786
4801
  var import_options3 = __toESM2(require_options(), 1);
4787
4802
  var import_component = require_component();
4788
4803
  var ENV2 = "development";
@@ -4795,7 +4810,7 @@ var require_create4 = __commonJS({
4795
4810
  parent = redefineParent(element, parent, key);
4796
4811
  key = createKey(element, parent, key);
4797
4812
  const ref = addRef(element, parent, key);
4798
- ref.__initialProps = (0, import_utils20.deepClone)(element.props, []);
4813
+ ref.__initialProps = (0, import_utils25.deepClone)(element.props, []);
4799
4814
  applyContext(element, parent, options);
4800
4815
  (0, import_component.applyComponentFromContext)(element, parent, options);
4801
4816
  (0, import_extend.applyExtend)(element, parent, options);
@@ -4806,7 +4821,7 @@ var require_create4 = __commonJS({
4806
4821
  replaceOptions(element, parent, options);
4807
4822
  addCaching(element, parent);
4808
4823
  (0, import_set.addMethods)(element, parent);
4809
- (0, import_state2.createState)(element, parent);
4824
+ (0, import_state3.createState)(element, parent);
4810
4825
  createIfConditionFlag(element, parent);
4811
4826
  if (element.node && ref.__if) {
4812
4827
  return (0, import_render.assignNode)(element, parent, key);
@@ -4830,7 +4845,7 @@ var require_create4 = __commonJS({
4830
4845
  }
4831
4846
  return {};
4832
4847
  }
4833
- if ((0, import_utils20.isString)(key) && key.slice(0, 2 === "__")) {
4848
+ if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
4834
4849
  if (ENV2 === "test" || ENV2 === "development") {
4835
4850
  console.warn(key, "seems like to be in __ref");
4836
4851
  }
@@ -4857,7 +4872,7 @@ var require_create4 = __commonJS({
4857
4872
  var redefineParent = (element, parent, key, options) => {
4858
4873
  if (!parent)
4859
4874
  return import_tree.ROOT;
4860
- if ((0, import_utils20.isNode)(parent)) {
4875
+ if ((0, import_utils25.isNode)(parent)) {
4861
4876
  const parentNodeWrapper = { key: ":root", node: parent };
4862
4877
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
4863
4878
  return parentNodeWrapper;
@@ -4871,7 +4886,7 @@ var require_create4 = __commonJS({
4871
4886
  }
4872
4887
  };
4873
4888
  var createKey = (element, parent, key) => {
4874
- return (key || element.key || (0, import_utils20.generateKey)()).toString();
4889
+ return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
4875
4890
  };
4876
4891
  var addRef = (element, parent) => {
4877
4892
  if (element.__ref)
@@ -4901,7 +4916,7 @@ var require_create4 = __commonJS({
4901
4916
  (0, import_event.triggerEventOn)("render", element, options);
4902
4917
  };
4903
4918
  var checkIfPrimitive = (element) => {
4904
- return (0, import_utils20.is)(element)("string", "number");
4919
+ return (0, import_utils25.is)(element)("string", "number");
4905
4920
  };
4906
4921
  var applyValueAsText = (element, parent, key) => {
4907
4922
  const extendTag = element.extend && element.extend.tag;
@@ -4920,7 +4935,7 @@ var require_create4 = __commonJS({
4920
4935
  };
4921
4936
  var createIfConditionFlag = (element, parent) => {
4922
4937
  const { __ref: ref } = element;
4923
- if ((0, import_utils20.isFunction)(element.if)) {
4938
+ if ((0, import_utils25.isFunction)(element.if)) {
4924
4939
  const ifPassed = element.if(element, element.state);
4925
4940
  if (!ifPassed) {
4926
4941
  const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
@@ -4987,9 +5002,9 @@ var require_create4 = __commonJS({
4987
5002
  ref2.__children = [];
4988
5003
  }
4989
5004
  (0, import_set.addMethods)(element, parent);
4990
- (0, import_state2.createState)(element, parent);
5005
+ (0, import_state3.createState)(element, parent);
4991
5006
  const ref = __ref;
4992
- if ((0, import_utils20.isFunction)(element.if)) {
5007
+ if ((0, import_utils25.isFunction)(element.if)) {
4993
5008
  const ifPassed = element.if(element, element.state);
4994
5009
  if (!ifPassed) {
4995
5010
  delete ref.__if;
@@ -5008,7 +5023,7 @@ var require_create4 = __commonJS({
5008
5023
  (0, import_iterate.throughInitialDefine)(element);
5009
5024
  (0, import_iterate.throughInitialExec)(element);
5010
5025
  for (const k in element) {
5011
- if ((0, import_utils20.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils20.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5026
+ if ((0, import_utils25.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils25.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5012
5027
  continue;
5013
5028
  const hasDefine = element.define && element.define[k];
5014
5029
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -5016,7 +5031,7 @@ var require_create4 = __commonJS({
5016
5031
  if (import_mixins.registry[k] && !optionsHasDefine) {
5017
5032
  continue;
5018
5033
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
5019
- create2((0, import_utils20.exec)(element[k], element), element, k, options);
5034
+ create2((0, import_utils25.exec)(element[k], element), element, k, options);
5020
5035
  }
5021
5036
  }
5022
5037
  }
@@ -5414,16 +5429,16 @@ var require_cjs9 = __commonJS({
5414
5429
  __export22(types_exports, {
5415
5430
  TYPES: () => TYPES,
5416
5431
  is: () => is,
5417
- isArray: () => isArray6,
5432
+ isArray: () => isArray62,
5418
5433
  isBoolean: () => isBoolean,
5419
5434
  isDefined: () => isDefined2,
5420
5435
  isFunction: () => isFunction22,
5421
- isNot: () => isNot2,
5436
+ isNot: () => isNot3,
5422
5437
  isNull: () => isNull,
5423
5438
  isNumber: () => isNumber2,
5424
5439
  isObject: () => isObject72,
5425
- isObjectLike: () => isObjectLike3,
5426
- isString: () => isString9,
5440
+ isObjectLike: () => isObjectLike32,
5441
+ isString: () => isString92,
5427
5442
  isUndefined: () => isUndefined3
5428
5443
  });
5429
5444
  module22.exports = __toCommonJS22(types_exports);
@@ -5433,32 +5448,32 @@ var require_cjs9 = __commonJS({
5433
5448
  return false;
5434
5449
  return typeof arg === "object" && arg.constructor === Object;
5435
5450
  };
5436
- var isString9 = (arg) => typeof arg === "string";
5451
+ var isString92 = (arg) => typeof arg === "string";
5437
5452
  var isNumber2 = (arg) => typeof arg === "number";
5438
5453
  var isFunction22 = (arg) => typeof arg === "function";
5439
5454
  var isBoolean = (arg) => arg === true || arg === false;
5440
5455
  var isNull = (arg) => arg === null;
5441
- var isArray6 = (arg) => Array.isArray(arg);
5442
- var isObjectLike3 = (arg) => {
5456
+ var isArray62 = (arg) => Array.isArray(arg);
5457
+ var isObjectLike32 = (arg) => {
5443
5458
  if (arg === null)
5444
5459
  return false;
5445
5460
  return typeof arg === "object";
5446
5461
  };
5447
5462
  var isDefined2 = (arg) => {
5448
- return isObject72(arg) || isObjectLike3(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
5463
+ return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber2(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
5449
5464
  };
5450
5465
  var isUndefined3 = (arg) => {
5451
5466
  return arg === void 0;
5452
5467
  };
5453
5468
  var TYPES = {
5454
5469
  boolean: isBoolean,
5455
- array: isArray6,
5470
+ array: isArray62,
5456
5471
  object: isObject72,
5457
- string: isString9,
5472
+ string: isString92,
5458
5473
  number: isNumber2,
5459
5474
  null: isNull,
5460
5475
  function: isFunction22,
5461
- objectLike: isObjectLike3,
5476
+ objectLike: isObjectLike32,
5462
5477
  node: import_node.isNode,
5463
5478
  htmlElement: import_node.isHtmlElement,
5464
5479
  defined: isDefined2
@@ -5468,7 +5483,7 @@ var require_cjs9 = __commonJS({
5468
5483
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
5469
5484
  };
5470
5485
  };
5471
- var isNot2 = (arg) => {
5486
+ var isNot3 = (arg) => {
5472
5487
  return (...args) => {
5473
5488
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
5474
5489
  };
@@ -5659,10 +5674,10 @@ var require_cjs9 = __commonJS({
5659
5674
  deepMerge: () => deepMerge32,
5660
5675
  deepStringify: () => deepStringify,
5661
5676
  detachFunctionsFromObject: () => detachFunctionsFromObject,
5662
- diff: () => diff2,
5677
+ diff: () => diff3,
5663
5678
  diffArrays: () => diffArrays,
5664
5679
  diffObjects: () => diffObjects,
5665
- exec: () => exec4,
5680
+ exec: () => exec5,
5666
5681
  flattenRecursive: () => flattenRecursive,
5667
5682
  isEqualDeep: () => isEqualDeep2,
5668
5683
  map: () => map2,
@@ -5672,7 +5687,7 @@ var require_cjs9 = __commonJS({
5672
5687
  objectToString: () => objectToString,
5673
5688
  overwrite: () => overwrite,
5674
5689
  overwriteDeep: () => overwriteDeep2,
5675
- overwriteShallow: () => overwriteShallow2,
5690
+ overwriteShallow: () => overwriteShallow3,
5676
5691
  removeFromObject: () => removeFromObject,
5677
5692
  stringToObject: () => stringToObject
5678
5693
  });
@@ -5681,7 +5696,7 @@ var require_cjs9 = __commonJS({
5681
5696
  var import_types = require_types2();
5682
5697
  var import_array = require_array2();
5683
5698
  var import_string = require_string2();
5684
- var exec4 = (param, element, state, context) => {
5699
+ var exec5 = (param, element, state, context) => {
5685
5700
  if ((0, import_types.isFunction)(param)) {
5686
5701
  return param(
5687
5702
  element,
@@ -5693,7 +5708,7 @@ var require_cjs9 = __commonJS({
5693
5708
  };
5694
5709
  var map2 = (obj, extention, element) => {
5695
5710
  for (const e in extention) {
5696
- obj[e] = exec4(extention[e], element);
5711
+ obj[e] = exec5(extention[e], element);
5697
5712
  }
5698
5713
  };
5699
5714
  var merge5 = (element, obj, excludeFrom = []) => {
@@ -5928,7 +5943,7 @@ var require_cjs9 = __commonJS({
5928
5943
  const objToDiffProp = objToDiff[e];
5929
5944
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
5930
5945
  cache2[e] = {};
5931
- diff2(originalProp, objToDiffProp, cache2[e]);
5946
+ diff3(originalProp, objToDiffProp, cache2[e]);
5932
5947
  } else if (objToDiffProp !== void 0) {
5933
5948
  cache2[e] = objToDiffProp;
5934
5949
  }
@@ -5941,7 +5956,7 @@ var require_cjs9 = __commonJS({
5941
5956
  } else {
5942
5957
  const diffArr = [];
5943
5958
  for (let i2 = 0; i2 < original.length; i2++) {
5944
- const diffObj = diff2(original[i2], objToDiff[i2]);
5959
+ const diffObj = diff3(original[i2], objToDiff[i2]);
5945
5960
  if (Object.keys(diffObj).length > 0) {
5946
5961
  diffArr.push(diffObj);
5947
5962
  }
@@ -5952,7 +5967,7 @@ var require_cjs9 = __commonJS({
5952
5967
  }
5953
5968
  return cache2;
5954
5969
  };
5955
- var diff2 = (original, objToDiff, cache2 = {}) => {
5970
+ var diff3 = (original, objToDiff, cache2 = {}) => {
5956
5971
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
5957
5972
  cache2 = [];
5958
5973
  diffArrays(original, objToDiff, cache2);
@@ -5976,7 +5991,7 @@ var require_cjs9 = __commonJS({
5976
5991
  }
5977
5992
  return changes;
5978
5993
  };
5979
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
5994
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
5980
5995
  for (const e in params) {
5981
5996
  if (excludeFrom.includes(e) || e.startsWith("__"))
5982
5997
  continue;
@@ -6014,22 +6029,28 @@ var require_cjs9 = __commonJS({
6014
6029
  delete objectized[prop];
6015
6030
  return stack;
6016
6031
  };
6017
- var isEqualDeep2 = (param, element) => {
6018
- if (param === element)
6032
+ var isEqualDeep2 = (param, element, visited = /* @__PURE__ */ new Set()) => {
6033
+ if (typeof param !== "object" || typeof element !== "object" || param === null || element === null) {
6034
+ return param === element;
6035
+ }
6036
+ if (visited.has(param) || visited.has(element)) {
6019
6037
  return true;
6020
- if (!param || !element)
6038
+ }
6039
+ visited.add(param);
6040
+ visited.add(element);
6041
+ const keysParam = Object.keys(param);
6042
+ const keysElement = Object.keys(element);
6043
+ if (keysParam.length !== keysElement.length) {
6021
6044
  return false;
6022
- for (const prop in param) {
6023
- const paramProp = param[prop];
6024
- const elementProp = element[prop];
6025
- if ((0, import_types.isObjectLike)(paramProp)) {
6026
- const isEqual = isEqualDeep2(paramProp, elementProp);
6027
- if (!isEqual)
6028
- return false;
6029
- } else {
6030
- const isEqual = paramProp === elementProp;
6031
- if (!isEqual)
6032
- return false;
6045
+ }
6046
+ for (const key of keysParam) {
6047
+ if (!keysElement.includes(key)) {
6048
+ return false;
6049
+ }
6050
+ const paramProp = param[key];
6051
+ const elementProp = element[key];
6052
+ if (!isEqualDeep2(paramProp, elementProp, visited)) {
6053
+ return false;
6033
6054
  }
6034
6055
  }
6035
6056
  return true;
@@ -6071,6 +6092,7 @@ var require_cjs9 = __commonJS({
6071
6092
  var function_exports = {};
6072
6093
  __export22(function_exports, {
6073
6094
  debounce: () => debounce,
6095
+ isStringFunction: () => isStringFunction,
6074
6096
  memoize: () => memoize2
6075
6097
  });
6076
6098
  module22.exports = __toCommonJS22(function_exports);
@@ -6096,6 +6118,10 @@ var require_cjs9 = __commonJS({
6096
6118
  }
6097
6119
  };
6098
6120
  };
6121
+ var isStringFunction = (inputString) => {
6122
+ const functionRegex = /^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/;
6123
+ return functionRegex.test(inputString);
6124
+ };
6099
6125
  }
6100
6126
  });
6101
6127
  var require_log2 = __commonJS2({
@@ -6392,28 +6418,28 @@ var require_cjs9 = __commonJS({
6392
6418
  ANIMATION: () => ANIMATION2,
6393
6419
  BREAKPOINTS: () => BREAKPOINTS,
6394
6420
  CASES: () => CASES,
6395
- COLOR: () => COLOR2,
6396
- CONFIG: () => CONFIG3,
6421
+ COLOR: () => COLOR3,
6422
+ CONFIG: () => CONFIG4,
6397
6423
  CSS_VARS: () => CSS_VARS,
6398
6424
  DEVICES: () => DEVICES,
6399
6425
  DOCUMENT: () => DOCUMENT,
6400
6426
  FACTORY: () => FACTORY,
6401
- FONT: () => FONT,
6427
+ FONT: () => FONT2,
6402
6428
  FONT_FACE: () => FONT_FACE,
6403
- FONT_FAMILY: () => FONT_FAMILY,
6429
+ FONT_FAMILY: () => FONT_FAMILY2,
6404
6430
  FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
6405
- GRADIENT: () => GRADIENT,
6431
+ GRADIENT: () => GRADIENT2,
6406
6432
  ICONS: () => ICONS,
6407
6433
  MEDIA: () => MEDIA,
6408
6434
  RESET: () => RESET,
6409
6435
  SEQUENCE: () => SEQUENCE,
6410
- SPACING: () => SPACING,
6436
+ SPACING: () => SPACING2,
6411
6437
  SVG: () => SVG,
6412
6438
  SVG_DATA: () => SVG_DATA,
6413
6439
  TEMPLATES: () => TEMPLATES,
6414
- THEME: () => THEME,
6440
+ THEME: () => THEME2,
6415
6441
  TIMING: () => TIMING,
6416
- TYPOGRAPHY: () => TYPOGRAPHY,
6442
+ TYPOGRAPHY: () => TYPOGRAPHY2,
6417
6443
  UNIT: () => UNIT,
6418
6444
  VALUE_TRANSFORMERS: () => VALUE_TRANSFORMERS,
6419
6445
  activateConfig: () => activateConfig,
@@ -6434,27 +6460,27 @@ var require_cjs9 = __commonJS({
6434
6460
  generateSequence: () => generateSequence,
6435
6461
  generateSprite: () => generateSprite,
6436
6462
  generateSubSequence: () => generateSubSequence,
6437
- getActiveConfig: () => getActiveConfig3,
6438
- getColor: () => getColor2,
6463
+ getActiveConfig: () => getActiveConfig4,
6464
+ getColor: () => getColor3,
6439
6465
  getColorShade: () => getColorShade,
6440
6466
  getDefaultOrFirstKey: () => getDefaultOrFirstKey,
6441
6467
  getFontFace: () => getFontFace,
6442
6468
  getFontFaceEach: () => getFontFaceEach,
6443
6469
  getFontFaceEachString: () => getFontFaceEachString,
6444
6470
  getFontFaceString: () => getFontFaceString2,
6445
- getFontFamily: () => getFontFamily2,
6471
+ getFontFamily: () => getFontFamily3,
6446
6472
  getFontFormat: () => getFontFormat,
6447
- getFontSizeByKey: () => getFontSizeByKey2,
6448
- getMediaColor: () => getMediaColor3,
6449
- getMediaTheme: () => getMediaTheme2,
6473
+ getFontSizeByKey: () => getFontSizeByKey3,
6474
+ getMediaColor: () => getMediaColor5,
6475
+ getMediaTheme: () => getMediaTheme3,
6450
6476
  getRgbTone: () => getRgbTone,
6451
6477
  getSequenceValue: () => getSequenceValue,
6452
6478
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
6453
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
6454
- getSpacingByKey: () => getSpacingByKey3,
6479
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
6480
+ getSpacingByKey: () => getSpacingByKey5,
6455
6481
  getTheme: () => getTheme,
6456
- getTimingByKey: () => getTimingByKey2,
6457
- getTimingFunction: () => getTimingFunction3,
6482
+ getTimingByKey: () => getTimingByKey3,
6483
+ getTimingFunction: () => getTimingFunction5,
6458
6484
  hexToRgb: () => hexToRgb,
6459
6485
  hexToRgbArray: () => hexToRgbArray,
6460
6486
  hexToRgba: () => hexToRgba,
@@ -6487,14 +6513,14 @@ var require_cjs9 = __commonJS({
6487
6513
  setTheme: () => setTheme,
6488
6514
  setValue: () => setValue,
6489
6515
  setVariables: () => setVariables,
6490
- splitTransition: () => splitTransition2,
6491
- transformBackgroundImage: () => transformBackgroundImage2,
6492
- transformBorder: () => transformBorder2,
6493
- transformDuration: () => transformDuration2,
6494
- transformShadow: () => transformShadow2,
6495
- transformTextStroke: () => transformTextStroke2,
6516
+ splitTransition: () => splitTransition3,
6517
+ transformBackgroundImage: () => transformBackgroundImage3,
6518
+ transformBorder: () => transformBorder3,
6519
+ transformDuration: () => transformDuration3,
6520
+ transformShadow: () => transformShadow3,
6521
+ transformTextStroke: () => transformTextStroke3,
6496
6522
  transformTransition: () => transformTransition,
6497
- transfromGap: () => transfromGap2
6523
+ transfromGap: () => transfromGap3
6498
6524
  });
6499
6525
  module2.exports = __toCommonJS2(src_exports2);
6500
6526
  var utils_exports = {};
@@ -6537,7 +6563,7 @@ var require_cjs9 = __commonJS({
6537
6563
  setVariables: () => setVariables
6538
6564
  });
6539
6565
  var import_globals2 = __toESM2(require_cjs13(), 1);
6540
- var import_utils20 = __toESM2(require_cjs22(), 1);
6566
+ var import_utils25 = __toESM2(require_cjs22(), 1);
6541
6567
  var ENV2 = "development";
6542
6568
  var colorStringToRgbaArray = (color) => {
6543
6569
  if (color === "")
@@ -6665,9 +6691,9 @@ var require_cjs9 = __commonJS({
6665
6691
  return `rgba(${arr})`;
6666
6692
  };
6667
6693
  var getRgbTone = (rgb, tone) => {
6668
- if ((0, import_utils20.isString)(rgb))
6694
+ if ((0, import_utils25.isString)(rgb))
6669
6695
  rgb = rgb.split(", ").map((v) => parseFloat(v));
6670
- if ((0, import_utils20.isNumber)(tone))
6696
+ if ((0, import_utils25.isNumber)(tone))
6671
6697
  tone += "";
6672
6698
  const toHex = rgbArrayToHex(rgb);
6673
6699
  const abs2 = tone.slice(0, 1);
@@ -6732,7 +6758,7 @@ var require_cjs9 = __commonJS({
6732
6758
  };
6733
6759
  var import_utils52 = __toESM2(require_cjs22(), 1);
6734
6760
  var import_utils32 = __toESM2(require_cjs22());
6735
- var import_utils22 = __toESM2(require_cjs22());
6761
+ var import_utils26 = __toESM2(require_cjs22());
6736
6762
  var toCamelCase2 = (str) => {
6737
6763
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
6738
6764
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -6753,25 +6779,25 @@ var require_cjs9 = __commonJS({
6753
6779
  ANIMATION: () => ANIMATION2,
6754
6780
  BREAKPOINTS: () => BREAKPOINTS,
6755
6781
  CASES: () => CASES,
6756
- COLOR: () => COLOR2,
6782
+ COLOR: () => COLOR3,
6757
6783
  DEVICES: () => DEVICES,
6758
6784
  DOCUMENT: () => DOCUMENT,
6759
- FONT: () => FONT,
6785
+ FONT: () => FONT2,
6760
6786
  FONT_FACE: () => FONT_FACE,
6761
- FONT_FAMILY: () => FONT_FAMILY,
6787
+ FONT_FAMILY: () => FONT_FAMILY2,
6762
6788
  FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
6763
- GRADIENT: () => GRADIENT,
6789
+ GRADIENT: () => GRADIENT2,
6764
6790
  ICONS: () => ICONS,
6765
6791
  MEDIA: () => MEDIA,
6766
6792
  RESET: () => RESET,
6767
6793
  SEQUENCE: () => SEQUENCE,
6768
- SPACING: () => SPACING,
6794
+ SPACING: () => SPACING2,
6769
6795
  SVG: () => SVG,
6770
6796
  SVG_DATA: () => SVG_DATA,
6771
6797
  TEMPLATES: () => TEMPLATES,
6772
- THEME: () => THEME,
6798
+ THEME: () => THEME2,
6773
6799
  TIMING: () => TIMING,
6774
- TYPOGRAPHY: () => TYPOGRAPHY,
6800
+ TYPOGRAPHY: () => TYPOGRAPHY2,
6775
6801
  UNIT: () => UNIT
6776
6802
  });
6777
6803
  var SEQUENCE = {
@@ -6818,9 +6844,9 @@ var require_cjs9 = __commonJS({
6818
6844
  scales: {},
6819
6845
  vars: {}
6820
6846
  };
6821
- var TYPOGRAPHY = defaultProps;
6822
- var FONT = {};
6823
- var FONT_FAMILY = {};
6847
+ var TYPOGRAPHY2 = defaultProps;
6848
+ var FONT2 = {};
6849
+ var FONT_FAMILY2 = {};
6824
6850
  var FONT_FAMILY_TYPES = {
6825
6851
  "sans-serif": "Helvetica, Arial, sans-serif, --system-default",
6826
6852
  serif: "Times New Roman, Georgia, serif, --system-default",
@@ -6854,7 +6880,7 @@ var require_cjs9 = __commonJS({
6854
6880
  print: "print"
6855
6881
  };
6856
6882
  var defaultProps2 = {
6857
- base: TYPOGRAPHY.base,
6883
+ base: TYPOGRAPHY2.base,
6858
6884
  type: "spacing",
6859
6885
  ratio: SEQUENCE.phi,
6860
6886
  range: [-5, 15],
@@ -6864,10 +6890,10 @@ var require_cjs9 = __commonJS({
6864
6890
  scales: {},
6865
6891
  vars: {}
6866
6892
  };
6867
- var SPACING = defaultProps2;
6868
- var COLOR2 = {};
6869
- var GRADIENT = {};
6870
- var THEME = {};
6893
+ var SPACING2 = defaultProps2;
6894
+ var COLOR3 = {};
6895
+ var GRADIENT2 = {};
6896
+ var THEME2 = {};
6871
6897
  var ICONS = {};
6872
6898
  var defaultProps3 = {
6873
6899
  default: 150,
@@ -6913,17 +6939,17 @@ var require_cjs9 = __commonJS({
6913
6939
  var TEMPLATES = {};
6914
6940
  var RESET = {};
6915
6941
  var CSS_VARS = {};
6916
- var CONFIG3 = {
6942
+ var CONFIG4 = {
6917
6943
  verbose: false,
6918
6944
  useVariable: true,
6919
6945
  useReset: true,
6920
6946
  CSS_VARS,
6921
6947
  ...defaultConfig_exports
6922
6948
  };
6923
- var cachedConfig = (0, import_utils42.deepClone)(CONFIG3);
6949
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
6924
6950
  var FACTORY = {
6925
6951
  active: "0",
6926
- 0: CONFIG3
6952
+ 0: CONFIG4
6927
6953
  };
6928
6954
  var activateConfig = (def) => {
6929
6955
  if ((0, import_utils42.isDefined)(def)) {
@@ -6931,7 +6957,7 @@ var require_cjs9 = __commonJS({
6931
6957
  }
6932
6958
  return FACTORY[def || FACTORY.active];
6933
6959
  };
6934
- var getActiveConfig3 = (def) => {
6960
+ var getActiveConfig4 = (def) => {
6935
6961
  return FACTORY[def || FACTORY.active];
6936
6962
  };
6937
6963
  var setActiveConfig = (newConfig) => {
@@ -6985,8 +7011,8 @@ var require_cjs9 = __commonJS({
6985
7011
  var generateSubSequence = (props4, sequenceProps) => {
6986
7012
  const { key, base, value: value2, ratio, variable, index } = props4;
6987
7013
  const next2 = value2 * ratio;
6988
- const diff2 = next2 - value2;
6989
- const smallscale = diff2 / 1.618;
7014
+ const diff3 = next2 - value2;
7015
+ const smallscale = diff3 / 1.618;
6990
7016
  const valueRounded = ~~value2;
6991
7017
  const nextRounded = ~~next2;
6992
7018
  const diffRounded = nextRounded - valueRounded;
@@ -7040,7 +7066,7 @@ var require_cjs9 = __commonJS({
7040
7066
  return sequenceProps;
7041
7067
  };
7042
7068
  var getSequenceValue = (value2 = "A", sequenceProps) => {
7043
- const CONFIG22 = getActiveConfig3();
7069
+ const CONFIG22 = getActiveConfig4();
7044
7070
  const { UNIT: UNIT2 } = CONFIG22;
7045
7071
  const {
7046
7072
  sequence,
@@ -7110,7 +7136,7 @@ var require_cjs9 = __commonJS({
7110
7136
  };
7111
7137
  var import_utils72 = __toESM2(require_cjs22(), 1);
7112
7138
  var setVariables = (result, key) => {
7113
- const CONFIG22 = getActiveConfig3();
7139
+ const CONFIG22 = getActiveConfig4();
7114
7140
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7115
7141
  if ((0, import_utils72.isObjectLike)(result.value)) {
7116
7142
  } else {
@@ -7118,7 +7144,7 @@ var require_cjs9 = __commonJS({
7118
7144
  }
7119
7145
  };
7120
7146
  var applySequenceVars = (props4, mediaName, options = {}) => {
7121
- const CONFIG22 = getActiveConfig3();
7147
+ const CONFIG22 = getActiveConfig4();
7122
7148
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
7123
7149
  const unit = props4.unit || UNIT2.default;
7124
7150
  const { sequence, scales } = props4;
@@ -7148,7 +7174,7 @@ var require_cjs9 = __commonJS({
7148
7174
  };
7149
7175
  var import_utils82 = __toESM2(require_cjs22(), 1);
7150
7176
  var generateSprite = (icons) => {
7151
- const CONFIG22 = getActiveConfig3();
7177
+ const CONFIG22 = getActiveConfig4();
7152
7178
  let sprite = "";
7153
7179
  for (const key in icons) {
7154
7180
  if (CONFIG22.__svg_cache[key])
@@ -7213,16 +7239,16 @@ var require_cjs9 = __commonJS({
7213
7239
  applySpacingSequence: () => applySpacingSequence,
7214
7240
  applyTimingSequence: () => applyTimingSequence,
7215
7241
  applyTypographySequence: () => applyTypographySequence,
7216
- getColor: () => getColor2,
7217
- getFontFamily: () => getFontFamily2,
7218
- getFontSizeByKey: () => getFontSizeByKey2,
7219
- getMediaColor: () => getMediaColor3,
7220
- getMediaTheme: () => getMediaTheme2,
7221
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
7222
- getSpacingByKey: () => getSpacingByKey3,
7242
+ getColor: () => getColor3,
7243
+ getFontFamily: () => getFontFamily3,
7244
+ getFontSizeByKey: () => getFontSizeByKey3,
7245
+ getMediaColor: () => getMediaColor5,
7246
+ getMediaTheme: () => getMediaTheme3,
7247
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
7248
+ getSpacingByKey: () => getSpacingByKey5,
7223
7249
  getTheme: () => getTheme,
7224
- getTimingByKey: () => getTimingByKey2,
7225
- getTimingFunction: () => getTimingFunction3,
7250
+ getTimingByKey: () => getTimingByKey3,
7251
+ getTimingFunction: () => getTimingFunction5,
7226
7252
  runThroughMedia: () => runThroughMedia,
7227
7253
  setColor: () => setColor,
7228
7254
  setFont: () => setFont,
@@ -7234,8 +7260,8 @@ var require_cjs9 = __commonJS({
7234
7260
  setTheme: () => setTheme
7235
7261
  });
7236
7262
  var import_utils92 = __toESM2(require_cjs22(), 1);
7237
- var getColor2 = (value2, key, config) => {
7238
- const CONFIG22 = config || getActiveConfig3();
7263
+ var getColor3 = (value2, key, config) => {
7264
+ const CONFIG22 = config || getActiveConfig4();
7239
7265
  if (!(0, import_utils92.isString)(value2)) {
7240
7266
  if (CONFIG22.verbose)
7241
7267
  console.warn(value2, "- type for color is not valid");
@@ -7246,8 +7272,8 @@ var require_cjs9 = __commonJS({
7246
7272
  if (key && value2[key])
7247
7273
  value2 = value2[key];
7248
7274
  const [name, alpha, tone] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
7249
- const { COLOR: COLOR22, GRADIENT: GRADIENT2 } = CONFIG22;
7250
- let val = COLOR22[name] || GRADIENT2[name];
7275
+ const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
7276
+ let val = COLOR22[name] || GRADIENT22[name];
7251
7277
  if (!val) {
7252
7278
  if (CONFIG22.verbose)
7253
7279
  console.warn("Can't find color ", name);
@@ -7273,8 +7299,8 @@ var require_cjs9 = __commonJS({
7273
7299
  return `rgba(${rgb}, ${alpha})`;
7274
7300
  return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
7275
7301
  };
7276
- var getMediaColor3 = (value2, globalTheme, config) => {
7277
- const CONFIG22 = config || getActiveConfig3();
7302
+ var getMediaColor5 = (value2, globalTheme, config) => {
7303
+ const CONFIG22 = config || getActiveConfig4();
7278
7304
  if (!globalTheme)
7279
7305
  globalTheme = CONFIG22.globalTheme;
7280
7306
  if (!(0, import_utils92.isString)(value2)) {
@@ -7285,20 +7311,20 @@ var require_cjs9 = __commonJS({
7285
7311
  if (value2.slice(0, 2) === "--")
7286
7312
  return `var(${value2})`;
7287
7313
  const [name] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
7288
- const { COLOR: COLOR22, GRADIENT: GRADIENT2 } = CONFIG22;
7289
- const val = COLOR22[name] || GRADIENT2[name];
7314
+ const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
7315
+ const val = COLOR22[name] || GRADIENT22[name];
7290
7316
  const isObj = (0, import_utils92.isObject)(val);
7291
7317
  if (isObj && val.value)
7292
- return getColor2(value2, `@${globalTheme}`, config);
7318
+ return getColor3(value2, `@${globalTheme}`, config);
7293
7319
  else if (isObj) {
7294
7320
  if (globalTheme)
7295
- return getColor2(value2, `@${globalTheme}`, config);
7321
+ return getColor3(value2, `@${globalTheme}`, config);
7296
7322
  else {
7297
7323
  const obj = {};
7298
7324
  for (const mediaName in val) {
7299
7325
  const query = CONFIG22.MEDIA[mediaName.slice(1)];
7300
7326
  const media = `@media screen and ${query}`;
7301
- obj[media] = getColor2(value2, mediaName, config);
7327
+ obj[media] = getColor3(value2, mediaName, config);
7302
7328
  }
7303
7329
  return obj;
7304
7330
  }
@@ -7309,9 +7335,9 @@ var require_cjs9 = __commonJS({
7309
7335
  }
7310
7336
  };
7311
7337
  var setColor = (val, key, suffix) => {
7312
- const CONFIG22 = getActiveConfig3();
7338
+ const CONFIG22 = getActiveConfig4();
7313
7339
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7314
- val = getColor2(val.slice(2));
7340
+ val = getColor3(val.slice(2));
7315
7341
  if ((0, import_utils92.isArray)(val)) {
7316
7342
  return {
7317
7343
  "@light": setColor(val[0], key, "light"),
@@ -7340,9 +7366,9 @@ var require_cjs9 = __commonJS({
7340
7366
  };
7341
7367
  };
7342
7368
  var setGradient = (val, key, suffix) => {
7343
- const CONFIG22 = getActiveConfig3();
7369
+ const CONFIG22 = getActiveConfig4();
7344
7370
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7345
- val = getColor2(val.slice(2));
7371
+ val = getColor3(val.slice(2));
7346
7372
  if ((0, import_utils92.isArray)(val)) {
7347
7373
  return {
7348
7374
  "@light": setGradient(val[0], key, "light"),
@@ -7372,7 +7398,7 @@ var require_cjs9 = __commonJS({
7372
7398
  keys.map((key) => {
7373
7399
  const conditions = ["color", "Color", "background", "border"];
7374
7400
  const isColor = conditions.some((k) => key.includes(k));
7375
- return value2[key] = isColor ? getColor2(theme[key]) : theme[key];
7401
+ return value2[key] = isColor ? getColor3(theme[key]) : theme[key];
7376
7402
  });
7377
7403
  return value2;
7378
7404
  };
@@ -7383,13 +7409,13 @@ var require_cjs9 = __commonJS({
7383
7409
  return theme.value;
7384
7410
  };
7385
7411
  var getTheme = (value2, modifier) => {
7386
- const CONFIG22 = getActiveConfig3();
7412
+ const CONFIG22 = getActiveConfig4();
7387
7413
  if (CONFIG22.useVariable)
7388
- return getMediaTheme2(value2, modifier);
7389
- const { THEME: THEME2 } = CONFIG22;
7414
+ return getMediaTheme3(value2, modifier);
7415
+ const { THEME: THEME22 } = CONFIG22;
7390
7416
  if ((0, import_utils112.isString)(value2)) {
7391
7417
  const [theme, subtheme] = value2.split(" ");
7392
- const isOurTheme = THEME2[theme];
7418
+ const isOurTheme = THEME22[theme];
7393
7419
  if (isOurTheme) {
7394
7420
  if (!subtheme && !modifier)
7395
7421
  return getThemeValue(isOurTheme);
@@ -7399,7 +7425,7 @@ var require_cjs9 = __commonJS({
7399
7425
  if ((0, import_utils112.isObjectLike)(value2) && value2[1]) {
7400
7426
  const themeName = value2[0];
7401
7427
  const subThemeName = value2[1];
7402
- const { helpers, media, state } = THEME2[themeName];
7428
+ const { helpers, media, state } = THEME22[themeName];
7403
7429
  if (media && media[subThemeName])
7404
7430
  return getThemeValue(media[subThemeName]);
7405
7431
  if (helpers && helpers[subThemeName])
@@ -7462,7 +7488,7 @@ var require_cjs9 = __commonJS({
7462
7488
  return theme;
7463
7489
  };
7464
7490
  var setHelpers = (theme, value2) => {
7465
- const CONFIG22 = getActiveConfig3();
7491
+ const CONFIG22 = getActiveConfig4();
7466
7492
  const { helpers } = theme;
7467
7493
  if (!helpers)
7468
7494
  return;
@@ -7478,7 +7504,7 @@ var require_cjs9 = __commonJS({
7478
7504
  return theme;
7479
7505
  };
7480
7506
  var setTheme = (val, key) => {
7481
- const CONFIG22 = getActiveConfig3();
7507
+ const CONFIG22 = getActiveConfig4();
7482
7508
  if (CONFIG22.useVariable)
7483
7509
  return setMediaTheme(val, key);
7484
7510
  const { state, media, helpers } = val;
@@ -7490,7 +7516,7 @@ var require_cjs9 = __commonJS({
7490
7516
  return { var: CSSvar, value: value2, state, media, helpers };
7491
7517
  };
7492
7518
  var setMediaTheme = (val, key, suffix, prefers) => {
7493
- const CONFIG22 = getActiveConfig3();
7519
+ const CONFIG22 = getActiveConfig4();
7494
7520
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7495
7521
  const theme = { value: val };
7496
7522
  if ((0, import_utils112.isObjectLike)(val)) {
@@ -7501,7 +7527,7 @@ var require_cjs9 = __commonJS({
7501
7527
  const hasPrefers = symb === "@" && param;
7502
7528
  theme[param] = setMediaTheme(value2, key, param, prefers || hasPrefers);
7503
7529
  } else {
7504
- const color = getColor2(value2, prefers);
7530
+ const color = getColor3(value2, prefers);
7505
7531
  const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
7506
7532
  const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
7507
7533
  const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
@@ -7522,15 +7548,15 @@ var require_cjs9 = __commonJS({
7522
7548
  }
7523
7549
  }
7524
7550
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
7525
- const { THEME: THEME2 } = CONFIG22;
7526
- const value2 = THEME2[val.slice(2)];
7527
- const getReferenced = getMediaTheme2(value2, prefers);
7551
+ const { THEME: THEME22 } = CONFIG22;
7552
+ const value2 = THEME22[val.slice(2)];
7553
+ const getReferenced = getMediaTheme3(value2, prefers);
7528
7554
  return getReferenced;
7529
7555
  }
7530
7556
  return theme;
7531
7557
  };
7532
7558
  var recursiveTheme = (val) => {
7533
- const CONFIG22 = getActiveConfig3();
7559
+ const CONFIG22 = getActiveConfig4();
7534
7560
  const obj = {};
7535
7561
  for (const param in val) {
7536
7562
  const symb = param.slice(0, 1);
@@ -7561,10 +7587,10 @@ var require_cjs9 = __commonJS({
7561
7587
  else
7562
7588
  return val;
7563
7589
  };
7564
- var getMediaTheme2 = (val, mod) => {
7565
- const CONFIG22 = getActiveConfig3();
7590
+ var getMediaTheme3 = (val, mod) => {
7591
+ const CONFIG22 = getActiveConfig4();
7566
7592
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
7567
- val = getMediaTheme2(val.slice(2));
7593
+ val = getMediaTheme3(val.slice(2));
7568
7594
  if (!val || !(0, import_utils112.isString)(val)) {
7569
7595
  if (CONFIG22.verbose)
7570
7596
  console.warn(val, "- theme is not string");
@@ -7584,17 +7610,17 @@ var require_cjs9 = __commonJS({
7584
7610
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
7585
7611
  return { var: CSSvar, value: val, fontFace };
7586
7612
  };
7587
- var getFontFamily2 = (key, factory) => {
7588
- const CONFIG22 = getActiveConfig3();
7589
- const { FONT_FAMILY: FONT_FAMILY2 } = CONFIG22;
7590
- return getDefaultOrFirstKey(factory || FONT_FAMILY2, key);
7613
+ var getFontFamily3 = (key, factory) => {
7614
+ const CONFIG22 = getActiveConfig4();
7615
+ const { FONT_FAMILY: FONT_FAMILY22 } = CONFIG22;
7616
+ return getDefaultOrFirstKey(factory || FONT_FAMILY22, key);
7591
7617
  };
7592
7618
  var setFontFamily = (val, key) => {
7593
- const CONFIG22 = getActiveConfig3();
7594
- const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
7619
+ const CONFIG22 = getActiveConfig4();
7620
+ const { FONT_FAMILY: FONT_FAMILY22, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
7595
7621
  let { value: value2, type } = val;
7596
7622
  if (val.isDefault)
7597
- FONT_FAMILY2.default = key;
7623
+ FONT_FAMILY22.default = key;
7598
7624
  if ((0, import_utils122.isObject)(value2))
7599
7625
  value2 = arrayzeValue2(value2);
7600
7626
  const CSSvar = `--font-family-${key}`;
@@ -7603,8 +7629,8 @@ var require_cjs9 = __commonJS({
7603
7629
  };
7604
7630
  var import_utils152 = __toESM2(require_cjs22(), 1);
7605
7631
  var runThroughMedia = (props4) => {
7606
- const CONFIG22 = getActiveConfig3();
7607
- const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
7632
+ const CONFIG22 = getActiveConfig4();
7633
+ const { TYPOGRAPHY: TYPOGRAPHY22, MEDIA: MEDIA2 } = CONFIG22;
7608
7634
  for (const prop in props4) {
7609
7635
  const mediaProps = props4[prop];
7610
7636
  if (prop.slice(0, 1) === "@") {
@@ -7626,14 +7652,14 @@ var require_cjs9 = __commonJS({
7626
7652
  const mediaName = prop.slice(1);
7627
7653
  applySequenceVars(mediaProps, mediaName);
7628
7654
  const query = MEDIA2[mediaName];
7629
- TYPOGRAPHY2.templates[`@media screen and ${query}`] = {
7630
- fontSize: mediaProps.base / TYPOGRAPHY2.browserDefault + unit
7655
+ TYPOGRAPHY22.templates[`@media screen and ${query}`] = {
7656
+ fontSize: mediaProps.base / TYPOGRAPHY22.browserDefault + unit
7631
7657
  };
7632
7658
  }
7633
7659
  }
7634
7660
  };
7635
7661
  var applyHeadings = (props4) => {
7636
- const CONFIG22 = getActiveConfig3();
7662
+ const CONFIG22 = getActiveConfig4();
7637
7663
  if (props4.h1Matches) {
7638
7664
  const unit = props4.unit;
7639
7665
  const HEADINGS = findHeadings(props4);
@@ -7652,20 +7678,20 @@ var require_cjs9 = __commonJS({
7652
7678
  }
7653
7679
  };
7654
7680
  var applyTypographySequence = () => {
7655
- const CONFIG22 = getActiveConfig3();
7656
- const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7657
- generateSequence(TYPOGRAPHY2);
7658
- applyHeadings(TYPOGRAPHY2);
7659
- applySequenceVars(TYPOGRAPHY2);
7660
- runThroughMedia(TYPOGRAPHY2);
7661
- };
7662
- var getFontSizeByKey2 = (value2) => {
7663
- const CONFIG22 = getActiveConfig3();
7664
- const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7681
+ const CONFIG22 = getActiveConfig4();
7682
+ const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
7683
+ generateSequence(TYPOGRAPHY22);
7684
+ applyHeadings(TYPOGRAPHY22);
7685
+ applySequenceVars(TYPOGRAPHY22);
7686
+ runThroughMedia(TYPOGRAPHY22);
7687
+ };
7688
+ var getFontSizeByKey3 = (value2) => {
7689
+ const CONFIG22 = getActiveConfig4();
7690
+ const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
7665
7691
  return getSequenceValuePropertyPair(
7666
7692
  value2,
7667
7693
  "fontSize",
7668
- TYPOGRAPHY2
7694
+ TYPOGRAPHY22
7669
7695
  );
7670
7696
  };
7671
7697
  var import_utils182 = __toESM2(require_cjs22(), 1);
@@ -7694,21 +7720,21 @@ var require_cjs9 = __commonJS({
7694
7720
  }
7695
7721
  };
7696
7722
  var applySpacingSequence = () => {
7697
- const CONFIG22 = getActiveConfig3();
7698
- const { SPACING: SPACING2 } = CONFIG22;
7699
- generateSequence(SPACING2);
7700
- applySequenceVars(SPACING2);
7701
- runThroughMedia2(SPACING2);
7723
+ const CONFIG22 = getActiveConfig4();
7724
+ const { SPACING: SPACING22 } = CONFIG22;
7725
+ generateSequence(SPACING22);
7726
+ applySequenceVars(SPACING22);
7727
+ runThroughMedia2(SPACING22);
7702
7728
  };
7703
7729
  var getSequence = (sequenceProps) => {
7704
- const CONFIG22 = getActiveConfig3();
7705
- const { SPACING: SPACING2 } = CONFIG22;
7730
+ const CONFIG22 = getActiveConfig4();
7731
+ const { SPACING: SPACING22 } = CONFIG22;
7706
7732
  if (!sequenceProps)
7707
- return SPACING2;
7733
+ return SPACING22;
7708
7734
  const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
7709
7735
  return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
7710
7736
  };
7711
- var getSpacingByKey3 = (value2, propertyName = "padding", sequenceProps) => {
7737
+ var getSpacingByKey5 = (value2, propertyName = "padding", sequenceProps) => {
7712
7738
  const sequence = getSequence(sequenceProps);
7713
7739
  const stack = arrayzeValue2(value2);
7714
7740
  if (!stack)
@@ -7740,16 +7766,16 @@ var require_cjs9 = __commonJS({
7740
7766
  sequence
7741
7767
  );
7742
7768
  };
7743
- var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
7744
- const CONFIG22 = getActiveConfig3();
7745
- const { SPACING: SPACING2 } = CONFIG22;
7769
+ var getSpacingBasedOnRatio7 = (props4, propertyName, val) => {
7770
+ const CONFIG22 = getActiveConfig4();
7771
+ const { SPACING: SPACING22 } = CONFIG22;
7746
7772
  const { spacingRatio, unit } = props4;
7747
7773
  const value2 = val || props4[propertyName];
7748
7774
  if (spacingRatio) {
7749
- let sequenceProps = SPACING2[spacingRatio];
7775
+ let sequenceProps = SPACING22[spacingRatio];
7750
7776
  if (!sequenceProps) {
7751
- const { type, base, range, subSequence } = SPACING2;
7752
- sequenceProps = SPACING2[spacingRatio] = (0, import_utils182.merge)({
7777
+ const { type, base, range, subSequence } = SPACING22;
7778
+ sequenceProps = SPACING22[spacingRatio] = (0, import_utils182.merge)({
7753
7779
  ratio: spacingRatio,
7754
7780
  type: type + "-" + spacingRatio,
7755
7781
  unit,
@@ -7761,28 +7787,28 @@ var require_cjs9 = __commonJS({
7761
7787
  base,
7762
7788
  range,
7763
7789
  subSequence,
7764
- ratio: SPACING2.ratio,
7765
- unit: SPACING2.unit
7790
+ ratio: SPACING22.ratio,
7791
+ unit: SPACING22.unit
7766
7792
  });
7767
7793
  }
7768
7794
  applySequenceVars(sequenceProps, null, { useDefault: false });
7769
- return getSpacingByKey3(value2, propertyName, sequenceProps);
7795
+ return getSpacingByKey5(value2, propertyName, sequenceProps);
7770
7796
  }
7771
- return getSpacingByKey3(value2, propertyName);
7797
+ return getSpacingByKey5(value2, propertyName);
7772
7798
  };
7773
7799
  var applyTimingSequence = () => {
7774
- const CONFIG22 = getActiveConfig3();
7800
+ const CONFIG22 = getActiveConfig4();
7775
7801
  const { TIMING: TIMING2 } = CONFIG22;
7776
7802
  generateSequence(TIMING2);
7777
7803
  applySequenceVars(TIMING2);
7778
7804
  };
7779
- var getTimingFunction3 = (value2) => {
7780
- const CONFIG22 = getActiveConfig3();
7805
+ var getTimingFunction5 = (value2) => {
7806
+ const CONFIG22 = getActiveConfig4();
7781
7807
  const { TIMING: TIMING2 } = CONFIG22;
7782
7808
  return TIMING2[value2] || TIMING2[toCamelCase2(value2)] || value2;
7783
7809
  };
7784
- var getTimingByKey2 = (value2, property = "timing") => {
7785
- const CONFIG22 = getActiveConfig3();
7810
+ var getTimingByKey3 = (value2, property = "timing") => {
7811
+ const CONFIG22 = getActiveConfig4();
7786
7812
  const { TIMING: TIMING2 } = CONFIG22;
7787
7813
  return getSequenceValuePropertyPair(
7788
7814
  value2,
@@ -7792,13 +7818,13 @@ var require_cjs9 = __commonJS({
7792
7818
  };
7793
7819
  var import_utils222 = __toESM2(require_cjs22(), 1);
7794
7820
  var applyDocument = () => {
7795
- const CONFIG22 = getActiveConfig3();
7796
- const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7821
+ const CONFIG22 = getActiveConfig4();
7822
+ const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY22, THEME: THEME22, TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
7797
7823
  return (0, import_utils222.merge)(DOCUMENT2, {
7798
- theme: THEME2.document,
7799
- fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
7800
- fontSize: TYPOGRAPHY2.base,
7801
- lineHeight: TYPOGRAPHY2.lineHeight
7824
+ theme: THEME22.document,
7825
+ fontFamily: getDefaultOrFirstKey(FONT_FAMILY22),
7826
+ fontSize: TYPOGRAPHY22.base,
7827
+ lineHeight: TYPOGRAPHY22.lineHeight
7802
7828
  });
7803
7829
  };
7804
7830
  var import_globals22 = __toESM2(require_cjs13(), 1);
@@ -7806,7 +7832,7 @@ var require_cjs9 = __commonJS({
7806
7832
  document: import_globals22.document
7807
7833
  };
7808
7834
  var setSVG = (val, key) => {
7809
- const CONFIG22 = getActiveConfig3();
7835
+ const CONFIG22 = getActiveConfig4();
7810
7836
  if (!val) {
7811
7837
  if (CONFIG22.verbose)
7812
7838
  console.warn("setSVG: val is not defined", key);
@@ -7818,21 +7844,21 @@ var require_cjs9 = __commonJS({
7818
7844
  return val;
7819
7845
  };
7820
7846
  var appendSVGSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7821
- const CONFIG22 = getActiveConfig3();
7847
+ const CONFIG22 = getActiveConfig4();
7822
7848
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
7823
7849
  for (const key in LIBRARY)
7824
7850
  lib[key] = CONFIG22.SVG[key];
7825
7851
  appendSVG(lib, options);
7826
7852
  };
7827
7853
  var setIcon = (val, key) => {
7828
- const CONFIG22 = getActiveConfig3();
7854
+ const CONFIG22 = getActiveConfig4();
7829
7855
  if (CONFIG22.useIconSprite) {
7830
7856
  return setSVG(val, key);
7831
7857
  }
7832
7858
  return val;
7833
7859
  };
7834
7860
  var appendIconsSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7835
- const CONFIG22 = getActiveConfig3();
7861
+ const CONFIG22 = getActiveConfig4();
7836
7862
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
7837
7863
  for (const key in LIBRARY)
7838
7864
  lib[key] = CONFIG22.ICONS[key];
@@ -7852,7 +7878,7 @@ var require_cjs9 = __commonJS({
7852
7878
  return svgElem;
7853
7879
  };
7854
7880
  var appendSVG = (lib, options = DEF_OPTIONS) => {
7855
- const CONFIG22 = getActiveConfig3();
7881
+ const CONFIG22 = getActiveConfig4();
7856
7882
  const doc = options.document || import_globals22.document;
7857
7883
  if (!doc || !doc.documentElement) {
7858
7884
  if (CONFIG22.verbose) {
@@ -7874,16 +7900,16 @@ var require_cjs9 = __commonJS({
7874
7900
  }
7875
7901
  }
7876
7902
  };
7877
- var import_utils25 = __toESM2(require_cjs22(), 1);
7903
+ var import_utils252 = __toESM2(require_cjs22(), 1);
7878
7904
  var applyReset = (reset = {}) => {
7879
- const CONFIG22 = getActiveConfig3();
7880
- const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
7905
+ const CONFIG22 = getActiveConfig4();
7906
+ const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
7881
7907
  if (RESET2) {
7882
7908
  if (RESET2[":root"]) {
7883
7909
  const configReset = RESET2;
7884
- const configTemplates = TYPOGRAPHY2.templates;
7910
+ const configTemplates = TYPOGRAPHY22.templates;
7885
7911
  configReset.body = {
7886
- ...CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {},
7912
+ ...CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {},
7887
7913
  ...configTemplates.body
7888
7914
  };
7889
7915
  configReset.h1 = configTemplates.h1;
@@ -7893,11 +7919,11 @@ var require_cjs9 = __commonJS({
7893
7919
  configReset.h5 = configTemplates.h5;
7894
7920
  configReset.h6 = configTemplates.h6;
7895
7921
  }
7896
- const { body, ...templates } = TYPOGRAPHY2.templates;
7897
- const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
7922
+ const { body, ...templates } = TYPOGRAPHY22.templates;
7923
+ const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {};
7898
7924
  if (RESET2.html)
7899
- (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
7900
- return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
7925
+ (0, import_utils252.overwriteDeep)(RESET2.html, globalTheme);
7926
+ return (0, import_utils252.deepMerge)((0, import_utils252.merge)(RESET2, reset), {
7901
7927
  html: {
7902
7928
  position: "absolute",
7903
7929
  // overflow: 'hidden',
@@ -7909,7 +7935,7 @@ var require_cjs9 = __commonJS({
7909
7935
  WebkitFontSmoothing: "subpixel-antialiased",
7910
7936
  scrollBehavior: "smooth",
7911
7937
  ...globalTheme,
7912
- fontSize: TYPOGRAPHY2.browserDefault + "px",
7938
+ fontSize: TYPOGRAPHY22.browserDefault + "px",
7913
7939
  fontFamily: DOCUMENT2.fontFamily,
7914
7940
  lineHeight: DOCUMENT2.lineHeight
7915
7941
  },
@@ -7918,7 +7944,7 @@ var require_cjs9 = __commonJS({
7918
7944
  height: "100%",
7919
7945
  margin: 0,
7920
7946
  fontFamily: DOCUMENT2.fontFamily,
7921
- fontSize: TYPOGRAPHY2.base / TYPOGRAPHY2.browserDefault + CONFIG22.UNIT.default,
7947
+ fontSize: TYPOGRAPHY22.base / TYPOGRAPHY22.browserDefault + CONFIG22.UNIT.default,
7922
7948
  ...templates,
7923
7949
  ...body
7924
7950
  },
@@ -7934,7 +7960,7 @@ var require_cjs9 = __commonJS({
7934
7960
  });
7935
7961
  }
7936
7962
  };
7937
- var import_utils26 = __toESM2(require_cjs22(), 1);
7963
+ var import_utils262 = __toESM2(require_cjs22(), 1);
7938
7964
  var isBorderStyle = (str) => [
7939
7965
  "none",
7940
7966
  "hidden",
@@ -7948,7 +7974,7 @@ var require_cjs9 = __commonJS({
7948
7974
  "outset",
7949
7975
  "initial"
7950
7976
  ].some((v) => str.includes(v));
7951
- var transformBorder2 = (border) => {
7977
+ var transformBorder3 = (border) => {
7952
7978
  const arr = border.split(", ");
7953
7979
  return arr.map((v) => {
7954
7980
  v = v.trim();
@@ -7958,39 +7984,39 @@ var require_cjs9 = __commonJS({
7958
7984
  return v || "solid";
7959
7985
  else if (v.slice(-2) === "px" || v.slice(-2) === "em")
7960
7986
  return v;
7961
- else if (getColor2(v).length > 2)
7962
- return getColor2(v);
7963
- return getSpacingByKey3(v, "border").border;
7987
+ else if (getColor3(v).length > 2)
7988
+ return getColor3(v);
7989
+ return getSpacingByKey5(v, "border").border;
7964
7990
  }).join(" ");
7965
7991
  };
7966
- var transformTextStroke2 = (stroke) => {
7992
+ var transformTextStroke3 = (stroke) => {
7967
7993
  return stroke.split(", ").map((v) => {
7968
7994
  if (v.slice(0, 2) === "--")
7969
7995
  return `var(${v})`;
7970
7996
  if (v.includes("px"))
7971
7997
  return v;
7972
- else if (getColor2(v))
7973
- return getColor2(v);
7998
+ else if (getColor3(v))
7999
+ return getColor3(v);
7974
8000
  return v;
7975
8001
  }).join(" ");
7976
8002
  };
7977
- var transformShadow2 = (shadows) => shadows.split("|").map((shadow) => {
8003
+ var transformShadow3 = (shadows) => shadows.split("|").map((shadow) => {
7978
8004
  return shadow.split(", ").map((v) => {
7979
8005
  v = v.trim();
7980
8006
  if (v.slice(0, 2) === "--")
7981
8007
  return `var(${v})`;
7982
- if (getColor2(v).length > 2)
7983
- return getColor2(v);
8008
+ if (getColor3(v).length > 2)
8009
+ return getColor3(v);
7984
8010
  if (v.includes("px") || v.slice(-2) === "em")
7985
8011
  return v;
7986
8012
  const arr = v.split(" ");
7987
8013
  if (!arr.length)
7988
8014
  return v;
7989
- return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
8015
+ return arr.map((v2) => getSpacingByKey5(v2, "shadow").shadow).join(" ");
7990
8016
  }).join(" ");
7991
8017
  }).join(",");
7992
- var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
7993
- const CONFIG22 = getActiveConfig3();
8018
+ var transformBackgroundImage3 = (backgroundImage, globalTheme) => {
8019
+ const CONFIG22 = getActiveConfig4();
7994
8020
  return backgroundImage.split(", ").map((v) => {
7995
8021
  if (v.slice(0, 2) === "--")
7996
8022
  return `var(${v})`;
@@ -7998,14 +8024,14 @@ var require_cjs9 = __commonJS({
7998
8024
  return v;
7999
8025
  else if (CONFIG22.GRADIENT[backgroundImage]) {
8000
8026
  return {
8001
- backgroundImage: getMediaColor3(backgroundImage, globalTheme || CONFIG22.globalTheme)
8027
+ backgroundImage: getMediaColor5(backgroundImage, globalTheme || CONFIG22.globalTheme)
8002
8028
  };
8003
8029
  } else if (v.includes("/") || v.includes("http"))
8004
8030
  return `url(${v})`;
8005
8031
  return v;
8006
8032
  }).join(" ");
8007
8033
  };
8008
- var transfromGap2 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
8034
+ var transfromGap3 = (gap) => (0, import_utils262.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey5(v, "gap").gap).join(" ");
8009
8035
  var transformTransition = (transition) => {
8010
8036
  const arr = transition.split(" ");
8011
8037
  if (!arr.length)
@@ -8014,20 +8040,20 @@ var require_cjs9 = __commonJS({
8014
8040
  if (v.slice(0, 2) === "--")
8015
8041
  return `var(${v})`;
8016
8042
  if (v.length < 3 || v.includes("ms")) {
8017
- const mapWithSequence = getTimingByKey2(v);
8043
+ const mapWithSequence = getTimingByKey3(v);
8018
8044
  return mapWithSequence.timing || v;
8019
8045
  }
8020
- if (getTimingFunction3(v))
8021
- return getTimingFunction3(v);
8046
+ if (getTimingFunction5(v))
8047
+ return getTimingFunction5(v);
8022
8048
  return v;
8023
8049
  }).join(" ");
8024
8050
  };
8025
- var transformDuration2 = (duration, props4, propertyName) => {
8026
- if (!(0, import_utils26.isString)(duration))
8051
+ var transformDuration3 = (duration, props4, propertyName) => {
8052
+ if (!(0, import_utils262.isString)(duration))
8027
8053
  return;
8028
- return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
8054
+ return duration.split(",").map((v) => getTimingByKey3(v).timing || v).join(",");
8029
8055
  };
8030
- var splitTransition2 = (transition) => {
8056
+ var splitTransition3 = (transition) => {
8031
8057
  const arr = transition.split(",");
8032
8058
  if (!arr.length)
8033
8059
  return;
@@ -8059,7 +8085,7 @@ var require_cjs9 = __commonJS({
8059
8085
  animation: setSameValue
8060
8086
  };
8061
8087
  var setValue = (FACTORY_NAME, value2, key) => {
8062
- const CONFIG22 = getActiveConfig3();
8088
+ const CONFIG22 = getActiveConfig4();
8063
8089
  const factoryName = FACTORY_NAME.toLowerCase();
8064
8090
  const FACTORY2 = CONFIG22[FACTORY_NAME];
8065
8091
  if (VALUE_TRANSFORMERS[factoryName]) {
@@ -8071,7 +8097,7 @@ var require_cjs9 = __commonJS({
8071
8097
  console.warn("Can not find", factoryName, "method in scratch");
8072
8098
  };
8073
8099
  var setEach = (factoryName, props4) => {
8074
- const CONFIG22 = getActiveConfig3();
8100
+ const CONFIG22 = getActiveConfig4();
8075
8101
  const FACTORY_NAME = factoryName.toUpperCase();
8076
8102
  const keys = Object.keys(props4);
8077
8103
  keys.map((key) => setValue(FACTORY_NAME, props4[key], key));
@@ -8079,7 +8105,7 @@ var require_cjs9 = __commonJS({
8079
8105
  };
8080
8106
  var SET_OPTIONS2 = {};
8081
8107
  var set5 = (recivedConfig, options = SET_OPTIONS2) => {
8082
- let CONFIG22 = getActiveConfig3();
8108
+ let CONFIG22 = getActiveConfig4();
8083
8109
  const {
8084
8110
  version,
8085
8111
  verbose,
@@ -8157,8 +8183,8 @@ var require_cjs10 = __commonJS({
8157
8183
  router: () => router2
8158
8184
  });
8159
8185
  module2.exports = __toCommonJS2(router_exports);
8160
- var import_utils20 = require_cjs();
8161
- var getActiveRoute = (level = 0, route = import_utils20.window.location.pathname) => {
8186
+ var import_utils25 = require_cjs();
8187
+ var getActiveRoute = (level = 0, route = import_utils25.window.location.pathname) => {
8162
8188
  const routeArray = route.split("/");
8163
8189
  const activeRoute = routeArray[level + 1];
8164
8190
  if (activeRoute)
@@ -8172,7 +8198,7 @@ var require_cjs10 = __commonJS({
8172
8198
  initialRender: false,
8173
8199
  scrollToTop: true,
8174
8200
  scrollToNode: false,
8175
- scrollNode: import_utils20.document && import_utils20.document.documentElement,
8201
+ scrollNode: import_utils25.document && import_utils25.document.documentElement,
8176
8202
  scrollBody: false,
8177
8203
  useFragment: false,
8178
8204
  updateState: true,
@@ -8187,13 +8213,13 @@ var require_cjs10 = __commonJS({
8187
8213
  const route = getActiveRoute(options.level, pathname);
8188
8214
  const content = element.routes[route || "/"] || element.routes["/*"];
8189
8215
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
8190
- const hashChanged = hash2 && hash2 !== import_utils20.window.location.hash.slice(1);
8216
+ const hashChanged = hash2 && hash2 !== import_utils25.window.location.hash.slice(1);
8191
8217
  const pathChanged = pathname !== lastPathname;
8192
8218
  lastPathname = pathname;
8193
8219
  if (!content)
8194
8220
  return;
8195
8221
  if (options.pushState) {
8196
- import_utils20.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8222
+ import_utils25.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8197
8223
  }
8198
8224
  if (pathChanged || !hashChanged) {
8199
8225
  if (options.updateState) {
@@ -8219,7 +8245,7 @@ var require_cjs10 = __commonJS({
8219
8245
  });
8220
8246
  }
8221
8247
  if (hash2) {
8222
- const activeNode = import_utils20.document.getElementById(hash2);
8248
+ const activeNode = import_utils25.document.getElementById(hash2);
8223
8249
  if (activeNode) {
8224
8250
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8225
8251
  scrollNode.scrollTo({
@@ -8371,16 +8397,250 @@ var require_cjs12 = __commonJS({
8371
8397
  }
8372
8398
  });
8373
8399
 
8400
+ // node_modules/@symbo.ls/default-icons/src/logo.svg
8401
+ var require_logo = __commonJS({
8402
+ "node_modules/@symbo.ls/default-icons/src/logo.svg"() {
8403
+ }
8404
+ });
8405
+
8406
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-circle.svg
8407
+ var require_arrow_down_circle = __commonJS({
8408
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-circle.svg"() {
8409
+ }
8410
+ });
8411
+
8412
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-left.svg
8413
+ var require_arrow_down_left = __commonJS({
8414
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-left.svg"() {
8415
+ }
8416
+ });
8417
+
8418
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-right.svg
8419
+ var require_arrow_down_right = __commonJS({
8420
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-right.svg"() {
8421
+ }
8422
+ });
8423
+
8424
+ // node_modules/@symbo.ls/default-icons/src/arrow-down.svg
8425
+ var require_arrow_down = __commonJS({
8426
+ "node_modules/@symbo.ls/default-icons/src/arrow-down.svg"() {
8427
+ }
8428
+ });
8429
+
8430
+ // node_modules/@symbo.ls/default-icons/src/arrow-left-circle.svg
8431
+ var require_arrow_left_circle = __commonJS({
8432
+ "node_modules/@symbo.ls/default-icons/src/arrow-left-circle.svg"() {
8433
+ }
8434
+ });
8435
+
8436
+ // node_modules/@symbo.ls/default-icons/src/arrow-left.svg
8437
+ var require_arrow_left = __commonJS({
8438
+ "node_modules/@symbo.ls/default-icons/src/arrow-left.svg"() {
8439
+ }
8440
+ });
8441
+
8442
+ // node_modules/@symbo.ls/default-icons/src/arrow-right.svg
8443
+ var require_arrow_right = __commonJS({
8444
+ "node_modules/@symbo.ls/default-icons/src/arrow-right.svg"() {
8445
+ }
8446
+ });
8447
+
8448
+ // node_modules/@symbo.ls/default-icons/src/arrow-right-circle.svg
8449
+ var require_arrow_right_circle = __commonJS({
8450
+ "node_modules/@symbo.ls/default-icons/src/arrow-right-circle.svg"() {
8451
+ }
8452
+ });
8453
+
8454
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-circle.svg
8455
+ var require_arrow_up_circle = __commonJS({
8456
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-circle.svg"() {
8457
+ }
8458
+ });
8459
+
8460
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-left.svg
8461
+ var require_arrow_up_left = __commonJS({
8462
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-left.svg"() {
8463
+ }
8464
+ });
8465
+
8466
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-right.svg
8467
+ var require_arrow_up_right = __commonJS({
8468
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-right.svg"() {
8469
+ }
8470
+ });
8471
+
8472
+ // node_modules/@symbo.ls/default-icons/src/arrow-up.svg
8473
+ var require_arrow_up = __commonJS({
8474
+ "node_modules/@symbo.ls/default-icons/src/arrow-up.svg"() {
8475
+ }
8476
+ });
8477
+
8478
+ // node_modules/@symbo.ls/default-icons/src/check-circle.svg
8479
+ var require_check_circle = __commonJS({
8480
+ "node_modules/@symbo.ls/default-icons/src/check-circle.svg"() {
8481
+ }
8482
+ });
8483
+
8484
+ // node_modules/@symbo.ls/default-icons/src/check.svg
8485
+ var require_check = __commonJS({
8486
+ "node_modules/@symbo.ls/default-icons/src/check.svg"() {
8487
+ }
8488
+ });
8489
+
8490
+ // node_modules/@symbo.ls/default-icons/src/chevron-down.svg
8491
+ var require_chevron_down = __commonJS({
8492
+ "node_modules/@symbo.ls/default-icons/src/chevron-down.svg"() {
8493
+ }
8494
+ });
8495
+
8496
+ // node_modules/@symbo.ls/default-icons/src/chevron-left.svg
8497
+ var require_chevron_left = __commonJS({
8498
+ "node_modules/@symbo.ls/default-icons/src/chevron-left.svg"() {
8499
+ }
8500
+ });
8501
+
8502
+ // node_modules/@symbo.ls/default-icons/src/chevron-right.svg
8503
+ var require_chevron_right = __commonJS({
8504
+ "node_modules/@symbo.ls/default-icons/src/chevron-right.svg"() {
8505
+ }
8506
+ });
8507
+
8508
+ // node_modules/@symbo.ls/default-icons/src/chevron-up.svg
8509
+ var require_chevron_up = __commonJS({
8510
+ "node_modules/@symbo.ls/default-icons/src/chevron-up.svg"() {
8511
+ }
8512
+ });
8513
+
8514
+ // node_modules/@symbo.ls/default-icons/src/copy.svg
8515
+ var require_copy = __commonJS({
8516
+ "node_modules/@symbo.ls/default-icons/src/copy.svg"() {
8517
+ }
8518
+ });
8519
+
8520
+ // node_modules/@symbo.ls/default-icons/src/dribbble.svg
8521
+ var require_dribbble = __commonJS({
8522
+ "node_modules/@symbo.ls/default-icons/src/dribbble.svg"() {
8523
+ }
8524
+ });
8525
+
8526
+ // node_modules/@symbo.ls/default-icons/src/eye-off.svg
8527
+ var require_eye_off = __commonJS({
8528
+ "node_modules/@symbo.ls/default-icons/src/eye-off.svg"() {
8529
+ }
8530
+ });
8531
+
8532
+ // node_modules/@symbo.ls/default-icons/src/eye.svg
8533
+ var require_eye = __commonJS({
8534
+ "node_modules/@symbo.ls/default-icons/src/eye.svg"() {
8535
+ }
8536
+ });
8537
+
8538
+ // node_modules/@symbo.ls/default-icons/src/file.svg
8539
+ var require_file = __commonJS({
8540
+ "node_modules/@symbo.ls/default-icons/src/file.svg"() {
8541
+ }
8542
+ });
8543
+
8544
+ // node_modules/@symbo.ls/default-icons/src/info.svg
8545
+ var require_info = __commonJS({
8546
+ "node_modules/@symbo.ls/default-icons/src/info.svg"() {
8547
+ }
8548
+ });
8549
+
8550
+ // node_modules/@symbo.ls/default-icons/src/minus.svg
8551
+ var require_minus = __commonJS({
8552
+ "node_modules/@symbo.ls/default-icons/src/minus.svg"() {
8553
+ }
8554
+ });
8555
+
8556
+ // node_modules/@symbo.ls/default-icons/src/moon.svg
8557
+ var require_moon = __commonJS({
8558
+ "node_modules/@symbo.ls/default-icons/src/moon.svg"() {
8559
+ }
8560
+ });
8561
+
8562
+ // node_modules/@symbo.ls/default-icons/src/more-horizontal.svg
8563
+ var require_more_horizontal = __commonJS({
8564
+ "node_modules/@symbo.ls/default-icons/src/more-horizontal.svg"() {
8565
+ }
8566
+ });
8567
+
8568
+ // node_modules/@symbo.ls/default-icons/src/more-vertical.svg
8569
+ var require_more_vertical = __commonJS({
8570
+ "node_modules/@symbo.ls/default-icons/src/more-vertical.svg"() {
8571
+ }
8572
+ });
8573
+
8574
+ // node_modules/@symbo.ls/default-icons/src/sun.svg
8575
+ var require_sun = __commonJS({
8576
+ "node_modules/@symbo.ls/default-icons/src/sun.svg"() {
8577
+ }
8578
+ });
8579
+
8580
+ // node_modules/@symbo.ls/default-icons/src/send.svg
8581
+ var require_send = __commonJS({
8582
+ "node_modules/@symbo.ls/default-icons/src/send.svg"() {
8583
+ }
8584
+ });
8585
+
8586
+ // node_modules/@symbo.ls/default-icons/src/smile.svg
8587
+ var require_smile = __commonJS({
8588
+ "node_modules/@symbo.ls/default-icons/src/smile.svg"() {
8589
+ }
8590
+ });
8591
+
8592
+ // node_modules/@symbo.ls/default-icons/src/search.svg
8593
+ var require_search = __commonJS({
8594
+ "node_modules/@symbo.ls/default-icons/src/search.svg"() {
8595
+ }
8596
+ });
8597
+
8598
+ // node_modules/@symbo.ls/default-icons/src/phone.svg
8599
+ var require_phone = __commonJS({
8600
+ "node_modules/@symbo.ls/default-icons/src/phone.svg"() {
8601
+ }
8602
+ });
8603
+
8604
+ // node_modules/@symbo.ls/default-icons/src/twitch.svg
8605
+ var require_twitch = __commonJS({
8606
+ "node_modules/@symbo.ls/default-icons/src/twitch.svg"() {
8607
+ }
8608
+ });
8609
+
8610
+ // node_modules/@symbo.ls/default-icons/src/upload.svg
8611
+ var require_upload = __commonJS({
8612
+ "node_modules/@symbo.ls/default-icons/src/upload.svg"() {
8613
+ }
8614
+ });
8615
+
8616
+ // node_modules/@symbo.ls/default-icons/src/video.svg
8617
+ var require_video = __commonJS({
8618
+ "node_modules/@symbo.ls/default-icons/src/video.svg"() {
8619
+ }
8620
+ });
8621
+
8622
+ // node_modules/@symbo.ls/default-icons/src/x.svg
8623
+ var require_x = __commonJS({
8624
+ "node_modules/@symbo.ls/default-icons/src/x.svg"() {
8625
+ }
8626
+ });
8627
+
8628
+ // node_modules/@symbo.ls/default-icons/src/plus.svg
8629
+ var require_plus = __commonJS({
8630
+ "node_modules/@symbo.ls/default-icons/src/plus.svg"() {
8631
+ }
8632
+ });
8633
+
8374
8634
  // src/index.js
8375
8635
  var src_exports = {};
8376
8636
  __export(src_exports, {
8377
8637
  create: () => create,
8378
8638
  createSync: () => createSync,
8379
- default: () => src_default
8639
+ default: () => src_default2
8380
8640
  });
8381
8641
  module.exports = __toCommonJS(src_exports);
8382
8642
  var import_domql = __toESM(require_cjs8(), 1);
8383
- var import_utils19 = __toESM(require_cjs(), 1);
8643
+ var import_utils24 = __toESM(require_cjs(), 1);
8384
8644
 
8385
8645
  // src/utilImports.js
8386
8646
  var utilImports_exports = {};
@@ -9837,7 +10097,7 @@ var SET_OPTIONS = {
9837
10097
  useSvgSprite: true
9838
10098
  };
9839
10099
  var init = (config, options = SET_OPTIONS) => {
9840
- const emotion2 = options.emotion || emotion;
10100
+ const emotion4 = options.emotion || emotion;
9841
10101
  const resultConfig = mergeWithLocalFile(config || {});
9842
10102
  const conf = (0, import_scratch.set)({
9843
10103
  verbose: options.verbose,
@@ -9858,11 +10118,11 @@ var init = (config, options = SET_OPTIONS) => {
9858
10118
  const useIconSprite = conf.useIconSprite;
9859
10119
  const hasIcons = config.icons || config.ICONS;
9860
10120
  if (useFontImport)
9861
- emotion2.injectGlobal(FontFace);
10121
+ emotion4.injectGlobal(FontFace);
9862
10122
  if (useVariable)
9863
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
10123
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
9864
10124
  if (useReset)
9865
- emotion2.injectGlobal(conf.RESET);
10125
+ emotion4.injectGlobal(conf.RESET);
9866
10126
  if (hasSvgs)
9867
10127
  (0, import_scratch.appendSVGSprite)(hasSvgs, { document: options.document });
9868
10128
  else if (useSvgSprite)
@@ -9877,14 +10137,14 @@ var UPDATE_OPTIONS = {
9877
10137
  emotion
9878
10138
  };
9879
10139
  var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
9880
- const emotion2 = options.emotion || emotion;
10140
+ const emotion4 = options.emotion || emotion;
9881
10141
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE);
9882
10142
  const conf = (0, import_scratch.set)({
9883
10143
  verbose: false,
9884
10144
  ...resultConfig
9885
10145
  });
9886
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
9887
- emotion2.injectGlobal(conf.RESET);
10146
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
10147
+ emotion4.injectGlobal(conf.RESET);
9888
10148
  };
9889
10149
 
9890
10150
  // src/utilImports.js
@@ -9897,6 +10157,7 @@ __export(domql_exports, {
9897
10157
  Animation: () => Animation,
9898
10158
  Avatar: () => Avatar,
9899
10159
  AvatarBundle: () => AvatarBundle,
10160
+ AvatarChooser: () => AvatarChooser,
9900
10161
  AvatarIndicator: () => AvatarIndicator,
9901
10162
  BalanceCard: () => BalanceCard,
9902
10163
  Block: () => Block,
@@ -10223,10 +10484,12 @@ var Block = {
10223
10484
  };
10224
10485
  },
10225
10486
  columns: ({ props: props4 }) => props4.columns && { columns: props4.columns },
10487
+ columnRule: ({ props: props4 }) => props4.columnRule && { columnRule: props4.columnRule },
10488
+ columnWidth: ({ props: props4 }) => props4.columnWidth && { columnWidth: props4.columnWidth },
10226
10489
  columnGap: ({ props: props4, deps }) => props4.columnGap ? deps.getSpacingBasedOnRatio(props4, "columnGap") : null,
10227
- columnSpan: ({ props: props4 }) => props4.columnSpan && { columns: props4.columnSpan },
10228
- columnFill: ({ props: props4 }) => props4.columnFill && { columns: props4.columnFill },
10229
- columnCount: ({ props: props4 }) => props4.columnCount && { columns: props4.columnCount }
10490
+ columnSpan: ({ props: props4 }) => props4.columnSpan && { columnSpan: props4.columnSpan },
10491
+ columnFill: ({ props: props4 }) => props4.columnFill && { columnFill: props4.columnFill },
10492
+ columnCount: ({ props: props4 }) => props4.columnCount && { columnCount: props4.columnCount }
10230
10493
  }
10231
10494
  };
10232
10495
  var Hr = {
@@ -10389,8 +10652,8 @@ var getComputedBackgroundColor = ({ props: props4 }) => {
10389
10652
  return (0, import_scratch6.getColor)(props4.shapeDirectionColor) || (0, import_scratch6.getColor)(props4.borderColor) || (0, import_scratch6.getColor)(props4.backgroundColor) || (0, import_scratch6.getColor)(props4.background);
10390
10653
  };
10391
10654
  var inheritTransition = ({ props: props4, deps }) => {
10392
- const exec4 = Timing.class.transition({ props: props4, deps });
10393
- return exec4 && exec4.transition;
10655
+ const exec5 = Timing.class.transition({ props: props4, deps });
10656
+ return exec5 && exec5.transition;
10394
10657
  };
10395
10658
  var SHAPES = {
10396
10659
  rectangle: {},
@@ -10588,8 +10851,8 @@ var Theme = {
10588
10851
  const globalTheme = deps.getSystemTheme(element);
10589
10852
  if (!props4.theme)
10590
10853
  return;
10591
- const getMediaTheme2 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
10592
- return getMediaTheme2;
10854
+ const getMediaTheme3 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
10855
+ return getMediaTheme3;
10593
10856
  },
10594
10857
  color: (element) => {
10595
10858
  const { props: props4, deps } = element;
@@ -10878,6 +11141,8 @@ var Iframe = {
10878
11141
  src: ({ props: props4 }) => props4.src,
10879
11142
  loading: ({ props: props4 }) => props4.loading,
10880
11143
  allowfullscreen: ({ props: props4 }) => props4.allowfullscreen,
11144
+ frameborder: ({ props: props4 }) => props4.frameborder,
11145
+ allow: ({ props: props4 }) => props4.allow,
10881
11146
  referrerpolicy: ({ props: props4 }) => props4.referrerpolicy
10882
11147
  }
10883
11148
  };
@@ -11350,7 +11615,7 @@ var Icon = {
11350
11615
  const { toCamelCase: toCamelCase2 } = context && context.utils;
11351
11616
  const iconName = props4.inheritedString || props4.name || props4.icon || key;
11352
11617
  const camelCase = toCamelCase2(iconName);
11353
- const isArray6 = camelCase.split(/([a-z])([A-Z])/g);
11618
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
11354
11619
  let activeIconName;
11355
11620
  if (props4.active) {
11356
11621
  activeIconName = props4[".active"].name || props4[".active"].icon;
@@ -11363,10 +11628,10 @@ var Icon = {
11363
11628
  validIconName = activeIconName;
11364
11629
  if (ICONS[camelCase])
11365
11630
  validIconName = camelCase;
11366
- else if (ICONS[isArray6[0] + isArray6[1]])
11367
- validIconName = isArray6[0] + isArray6[1];
11368
- else if (ICONS[isArray6[0]])
11369
- validIconName = isArray6[0];
11631
+ else if (ICONS[isArray8[0] + isArray8[1]])
11632
+ validIconName = isArray8[0] + isArray8[1];
11633
+ else if (ICONS[isArray8[0]])
11634
+ validIconName = isArray8[0];
11370
11635
  else {
11371
11636
  if (verbose)
11372
11637
  console.warn("Can't find icon:", iconName, validIconName);
@@ -11666,8 +11931,8 @@ var Link = {
11666
11931
  attr: {
11667
11932
  href: (el) => {
11668
11933
  const { context: ctx } = el;
11669
- const { exec: exec4 } = ctx.utils;
11670
- return exec4(el.props.href, el) || exec4(el.props, el).href;
11934
+ const { exec: exec5 } = ctx.utils;
11935
+ return exec5(el.props.href, el) || exec5(el.props, el).href;
11671
11936
  },
11672
11937
  target: ({ props: props4 }) => props4.target,
11673
11938
  "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
@@ -11771,8 +12036,8 @@ var Input = {
11771
12036
  autocomplete: ({ props: props4 }) => props4.autocomplete,
11772
12037
  placeholder: ({ props: props4 }) => props4.placeholder,
11773
12038
  value: ({ props: props4, state, deps }) => {
11774
- const { isString: isString8, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
11775
- if (isString8(props4.value) && props4.value.includes("{{")) {
12039
+ const { isString: isString10, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
12040
+ if (isString10(props4.value) && props4.value.includes("{{")) {
11776
12041
  return replaceLiteralsWithObjectFields2(props4.value, state);
11777
12042
  }
11778
12043
  return props4.value;
@@ -12701,16 +12966,14 @@ var CardLabel = {
12701
12966
  // ../../uikit/domql/Avatar/Avatar.js
12702
12967
  var Avatar = {
12703
12968
  extend: Img,
12704
- props: {
12969
+ props: ({ key, props: props4 }) => ({
12705
12970
  display: "block",
12706
12971
  avatarType: "initials",
12707
12972
  borderRadius: "100%",
12708
12973
  boxSize: "C+X C+X",
12709
- cursor: "pointer"
12710
- },
12711
- attr: {
12712
- src: ({ key, props: props4 }) => props4.src || `https://avatars.dicebear.com/api/${props4.avatarType || "adventurer-neutral"}/${props4.key || key}.svg`
12713
- }
12974
+ cursor: "pointer",
12975
+ src: `https://api.dicebear.com/7.x/${props4.avatarType || "adventurer-neutral"}/svg?seed=${props4.key || key}`
12976
+ })
12714
12977
  };
12715
12978
 
12716
12979
  // ../../uikit/domql/Avatar/AvatarIndicator.js
@@ -12743,6 +13006,62 @@ var AvatarBundle = {
12743
13006
  ...[{}, {}, {}, {}]
12744
13007
  };
12745
13008
 
13009
+ // ../../uikit/domql/Avatar/AvatarChooser.js
13010
+ var AvatarChooser = {
13011
+ extend: Button,
13012
+ tag: "label",
13013
+ props: {
13014
+ round: "C",
13015
+ gap: "Y",
13016
+ padding: "W2 A W2 W2",
13017
+ theme: "tertiary",
13018
+ position: "relative",
13019
+ cursor: "pointer"
13020
+ },
13021
+ Avatar: {
13022
+ props: ({ state }) => ({
13023
+ key: state.key,
13024
+ boxSize: "B1",
13025
+ pointerEvents: "none"
13026
+ })
13027
+ },
13028
+ Select: {
13029
+ props: {
13030
+ outline: "none",
13031
+ pointerEvents: "all",
13032
+ appearance: "none",
13033
+ border: "none",
13034
+ width: "100%",
13035
+ height: "100%",
13036
+ background: "none",
13037
+ color: "currentColor",
13038
+ fontSize: "A",
13039
+ lineHeight: 1,
13040
+ margin: "0 0 0 -B1+X",
13041
+ padding: "0 A 0 B1+X",
13042
+ ":focus-visible": {
13043
+ outline: "none"
13044
+ }
13045
+ },
13046
+ childExtend: { tag: "option" },
13047
+ $setPropsCollection: ({ parent, state }) => {
13048
+ if (!parent.props.options)
13049
+ return [];
13050
+ return parent.props.options.map((v) => {
13051
+ if (v.text === state.key)
13052
+ return { ...v, selected: true };
13053
+ return v;
13054
+ });
13055
+ },
13056
+ on: {
13057
+ change: (ev, { state }) => {
13058
+ state.update({ key: ev.target.value });
13059
+ console.log(state.key);
13060
+ }
13061
+ }
13062
+ }
13063
+ };
13064
+
12746
13065
  // ../../uikit/domql/Notification/index.js
12747
13066
  var Notification = {
12748
13067
  extend: Flex,
@@ -13856,6 +14175,137 @@ var TimePickerItem = {
13856
14175
  Button_minus: { icon: "minus" }
13857
14176
  };
13858
14177
 
14178
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/icon/index.js
14179
+ var Icon2 = {
14180
+ extend: Svg,
14181
+ props: ({ key, props: props4, parent, context }) => {
14182
+ const { ICONS, useIconSprite, verbose } = context && context.designSystem;
14183
+ const { toCamelCase: toCamelCase2 } = context && context.utils;
14184
+ const iconName = props4.inheritedString || props4.name || props4.icon || key;
14185
+ const camelCase = toCamelCase2(iconName);
14186
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
14187
+ let activeIconName;
14188
+ if (props4.active) {
14189
+ activeIconName = props4[".active"].name || props4[".active"].icon;
14190
+ }
14191
+ if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
14192
+ activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
14193
+ }
14194
+ let validIconName;
14195
+ if (ICONS[activeIconName])
14196
+ validIconName = activeIconName;
14197
+ if (ICONS[camelCase])
14198
+ validIconName = camelCase;
14199
+ else if (ICONS[isArray8[0] + isArray8[1]])
14200
+ validIconName = isArray8[0] + isArray8[1];
14201
+ else if (ICONS[isArray8[0]])
14202
+ validIconName = isArray8[0];
14203
+ else {
14204
+ if (verbose)
14205
+ console.warn("Can't find icon:", iconName, validIconName);
14206
+ }
14207
+ const iconFromLibrary = ICONS[validIconName];
14208
+ const directSrc = parent && parent.props && parent.props.src || props4.src;
14209
+ return {
14210
+ width: "A",
14211
+ height: "A",
14212
+ display: "inline-block",
14213
+ spriteId: useIconSprite && validIconName,
14214
+ src: iconFromLibrary || directSrc || ICONS.noIcon,
14215
+ style: { fill: "currentColor" }
14216
+ };
14217
+ },
14218
+ attr: { viewBox: "0 0 24 24" }
14219
+ };
14220
+ var IconText2 = {
14221
+ extend: Flex,
14222
+ props: {
14223
+ align: "center center",
14224
+ lineHeight: 1
14225
+ },
14226
+ // TODO: remove this variant
14227
+ icon: {
14228
+ extend: Icon2,
14229
+ if: ({ parent }) => parent.props.icon
14230
+ },
14231
+ Icon: {
14232
+ props: {},
14233
+ if: ({ props: props4 }) => props4.name || props4.icon
14234
+ },
14235
+ text: ({ props: props4 }) => props4.text,
14236
+ ".reversed": {
14237
+ props: { flow: "row-reverse" }
14238
+ },
14239
+ ".vertical": {
14240
+ props: { flow: "column" }
14241
+ }
14242
+ };
14243
+
14244
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/button/index.js
14245
+ var Button2 = {
14246
+ extend: [FocusableComponent, IconText2],
14247
+ tag: "button",
14248
+ props: {
14249
+ fontSize: "A",
14250
+ type: "button",
14251
+ border: "none",
14252
+ display: "inline-flex",
14253
+ align: "center center",
14254
+ textDecoration: "none",
14255
+ lineHeight: "1",
14256
+ whiteSpace: "nowrap",
14257
+ padding: "Z A1",
14258
+ fontFamily: "inherit",
14259
+ round: "C2"
14260
+ },
14261
+ attr: {
14262
+ type: ({ props: props4 }) => props4.type
14263
+ }
14264
+ };
14265
+ var CommonButton2 = {
14266
+ extend: Button2,
14267
+ props: {
14268
+ color: "white",
14269
+ background: "blue",
14270
+ boxSize: "fit-content",
14271
+ padding: "A A2",
14272
+ round: "Z2",
14273
+ gap: "Y2",
14274
+ position: "relative"
14275
+ },
14276
+ icon: {
14277
+ props: { fontSize: "C" }
14278
+ },
14279
+ Caption: {
14280
+ props: {
14281
+ text: "Button",
14282
+ line_height: "1em"
14283
+ }
14284
+ }
14285
+ };
14286
+ var CancelConfirmButtons2 = {
14287
+ extend: Flex,
14288
+ childExtend: {
14289
+ extend: CommonButton2,
14290
+ props: {
14291
+ minWidth: "D2",
14292
+ ":first-child": {
14293
+ background: "transparent",
14294
+ border: "1px solid #20202B"
14295
+ },
14296
+ ":last-child": {}
14297
+ }
14298
+ },
14299
+ ...[
14300
+ { Caption: { text: "No" } },
14301
+ { Caption: { text: "Yes" } }
14302
+ ],
14303
+ props: {
14304
+ gap: "Z",
14305
+ maxWidth: "fit-content"
14306
+ }
14307
+ };
14308
+
13859
14309
  // ../../uikit/domql/TimePicker/TimeSwitcher.js
13860
14310
  var props3 = {
13861
14311
  boxSize: "C B2",
@@ -13868,7 +14318,7 @@ var TimeSwitcher = {
13868
14318
  props: props3,
13869
14319
  extend: Flex,
13870
14320
  childExtend: {
13871
- extend: Button,
14321
+ extend: Button2,
13872
14322
  props: ({ state, key }) => ({
13873
14323
  active: state.activeShift === key,
13874
14324
  padding: "0",
@@ -15338,7 +15788,7 @@ var applyClassListOnNode = (params, element, node2) => {
15338
15788
  };
15339
15789
 
15340
15790
  // ../../node_modules/@domql/emotion/index.js
15341
- var transformEmotionStyle = (emotion2) => {
15791
+ var transformEmotionStyle = (emotion4) => {
15342
15792
  return (params, element, state) => {
15343
15793
  const execParams = (0, import_utils16.exec)(params, element);
15344
15794
  if (params) {
@@ -15347,10 +15797,10 @@ var transformEmotionStyle = (emotion2) => {
15347
15797
  else
15348
15798
  element.class = { elementStyle: execParams };
15349
15799
  }
15350
- transformEmotionClass(emotion2)(element.class, element, state, true);
15800
+ transformEmotionClass(emotion4)(element.class, element, element.state, true);
15351
15801
  };
15352
15802
  };
15353
- var transformEmotionClass = (emotion2) => {
15803
+ var transformEmotionClass = (emotion4) => {
15354
15804
  return (params, element, state, flag) => {
15355
15805
  if (element.style && !flag)
15356
15806
  return;
@@ -15369,7 +15819,7 @@ var transformEmotionClass = (emotion2) => {
15369
15819
  if (!isEqual) {
15370
15820
  if (!(0, import_utils16.isProduction)() && (0, import_utils16.isObject)(prop))
15371
15821
  prop.label = key || element.key;
15372
- const CSSed = emotion2.css(prop);
15822
+ const CSSed = emotion4.css(prop);
15373
15823
  __class[key] = prop;
15374
15824
  __classNames[key] = CSSed;
15375
15825
  }
@@ -15377,20 +15827,31 @@ var transformEmotionClass = (emotion2) => {
15377
15827
  applyClassListOnNode(__classNames, element, element.node);
15378
15828
  };
15379
15829
  };
15380
- var transformDOMQLEmotion = (emotion2, options) => {
15381
- if (!emotion2)
15382
- emotion2 = createEmotion(options || { key: "smbls" });
15830
+ var transformDOMQLEmotion = (emotion4, options) => {
15831
+ if (!emotion4)
15832
+ emotion4 = createEmotion(options || { key: "smbls" });
15383
15833
  return {
15384
- style: transformEmotionStyle(emotion2),
15385
- class: transformEmotionClass(emotion2)
15834
+ style: transformEmotionStyle(emotion4),
15835
+ class: transformEmotionClass(emotion4)
15386
15836
  };
15387
15837
  };
15388
15838
 
15839
+ // node_modules/@symbo.ls/emotion/index.js
15840
+ var createEmotion4 = (key = "smbls", container) => {
15841
+ const cleanKey = key.replaceAll(/\./g, "-");
15842
+ return createEmotion({ key: cleanKey, container });
15843
+ };
15844
+ var emotion2 = createEmotion4();
15845
+
15846
+ // src/initEmotion.js
15847
+ var import_utils17 = __toESM(require_cjs(), 1);
15848
+
15389
15849
  // src/options.js
15390
15850
  var options_default = {
15391
15851
  editor: {},
15392
15852
  state: {},
15393
15853
  pages: {},
15854
+ defaultConfig: true,
15394
15855
  designSystem: {
15395
15856
  useReset: true,
15396
15857
  useVariable: true,
@@ -15401,7 +15862,7 @@ var options_default = {
15401
15862
  },
15402
15863
  components: {},
15403
15864
  initOptions: {
15404
- emotion
15865
+ emotion: emotion2
15405
15866
  },
15406
15867
  router: {
15407
15868
  initRouter: true,
@@ -15411,28 +15872,323 @@ var options_default = {
15411
15872
  define: defaultDefine
15412
15873
  };
15413
15874
 
15875
+ // node_modules/@symbo.ls/default-icons/index.js
15876
+ var default_icons_default = {
15877
+ symbols: require_logo(),
15878
+ arrowDownCircle: require_arrow_down_circle(),
15879
+ arrowDownLeft: require_arrow_down_left(),
15880
+ arrowDownRight: require_arrow_down_right(),
15881
+ arrowDown: require_arrow_down(),
15882
+ arrowLeftCircle: require_arrow_left_circle(),
15883
+ arrowLeft: require_arrow_left(),
15884
+ arrowRight: require_arrow_right(),
15885
+ arrowRightCircle: require_arrow_right_circle(),
15886
+ arrowUpCircle: require_arrow_up_circle(),
15887
+ arrowUpLeft: require_arrow_up_left(),
15888
+ arrowUpRight: require_arrow_up_right(),
15889
+ arrowUp: require_arrow_up(),
15890
+ checkCircle: require_check_circle(),
15891
+ check: require_check(),
15892
+ chevronDown: require_chevron_down(),
15893
+ chevronLeft: require_chevron_left(),
15894
+ chevronRight: require_chevron_right(),
15895
+ chevronUp: require_chevron_up(),
15896
+ copy: require_copy(),
15897
+ dribbble: require_dribbble(),
15898
+ eyeOff: require_eye_off(),
15899
+ eye: require_eye(),
15900
+ file: require_file(),
15901
+ info: require_info(),
15902
+ logo: require_logo(),
15903
+ minus: require_minus(),
15904
+ moon: require_moon(),
15905
+ moreHorizontal: require_more_horizontal(),
15906
+ moreVertical: require_more_vertical(),
15907
+ sun: require_sun(),
15908
+ send: require_send(),
15909
+ smile: require_smile(),
15910
+ search: require_search(),
15911
+ phone: require_phone(),
15912
+ twitch: require_twitch(),
15913
+ upload: require_upload(),
15914
+ video: require_video(),
15915
+ x: require_x(),
15916
+ plus: require_plus()
15917
+ };
15918
+
15919
+ // node_modules/@symbo.ls/default-config/src/color.js
15920
+ var COLOR = {
15921
+ transparent: "rgba(0, 0, 0, 0)",
15922
+ black: "black",
15923
+ gray: "#141416",
15924
+ blue: "#0e80fd",
15925
+ indigo: "#50E1FF",
15926
+ green: "#59AC56",
15927
+ red: "#FE5B47",
15928
+ yellow: "#EDCB38",
15929
+ orange: "#E2862F",
15930
+ brown: "#7D6755",
15931
+ pink: "#FD8ABF",
15932
+ purple: "#7345AF",
15933
+ white: "white",
15934
+ green2: "#04F214",
15935
+ blue2: "#0474F2",
15936
+ gray2: "#A3A3A8",
15937
+ gray3: "#1C1C1F",
15938
+ gray4: "#BDBDC1"
15939
+ };
15940
+ var GRADIENT = {
15941
+ "gradient-blue": `linear-gradient(to right,
15942
+ rgba(4, 116, 242, 1),
15943
+ rgba(0, 48, 103, 1)
15944
+ )`,
15945
+ "gradient-dark": `linear-gradient(0deg,
15946
+ rgba(0,0,0,0.06) 0%,
15947
+ rgba(0,0,0,0.07) 100%
15948
+ )`,
15949
+ "gradient-dark-active": `linear-gradient(0deg,
15950
+ rgba(0,0,0,0.09) 0%,
15951
+ rgba(0,0,0,0.1) 100%
15952
+ )`,
15953
+ "gradient-light": `linear-gradient(
15954
+ 0deg,
15955
+ rgba(255,255,255,0.05) 0%,
15956
+ rgba(255,255,255,0.06) 100%
15957
+ )`,
15958
+ "gradient-light-active": `linear-gradient(
15959
+ 0deg,
15960
+ rgba(255,255,255,0.09) 0%,
15961
+ rgba(255,255,255,0.10) 100%
15962
+ )`,
15963
+ "gradient-colorful": `linear-gradient(60deg,
15964
+ #00A2E7 0%,
15965
+ #185DF3 31%,
15966
+ #1E54F0 36%,
15967
+ #8B4CCA 69%,
15968
+ #C66894 100%
15969
+ )`
15970
+ };
15971
+
15972
+ // node_modules/@symbo.ls/default-config/src/theme.js
15973
+ var PRIORITIES = {
15974
+ primary: {
15975
+ "@dark": {
15976
+ color: "white",
15977
+ background: "blue",
15978
+ ".color-only": {
15979
+ color: "blue"
15980
+ },
15981
+ ".inactive": {
15982
+ background: "gray 1 +16"
15983
+ },
15984
+ ".gradient": {
15985
+ color: "white",
15986
+ background: "gradient-blue"
15987
+ }
15988
+ },
15989
+ "@light": {
15990
+ color: "white",
15991
+ background: "gradient-blue",
15992
+ ".color-only": {
15993
+ color: "blue"
15994
+ },
15995
+ ".gradient": {
15996
+ color: "white",
15997
+ background: "gradient-colorful"
15998
+ }
15999
+ }
16000
+ },
16001
+ secondary: {
16002
+ "@dark": {
16003
+ color: "white",
16004
+ background: "white .1"
16005
+ },
16006
+ "@light": {
16007
+ color: "white",
16008
+ background: "blue"
16009
+ },
16010
+ ".child": "--primary"
16011
+ },
16012
+ tertiary: {
16013
+ "@dark": {
16014
+ color: "white",
16015
+ background: "gray .92 +8"
16016
+ },
16017
+ "@light": {
16018
+ background: "gray .1"
16019
+ }
16020
+ },
16021
+ quaternary: {
16022
+ "@light": {
16023
+ color: "white",
16024
+ background: "gradient-light"
16025
+ },
16026
+ "@dark": {
16027
+ color: "white",
16028
+ background: "gradient-dark-active"
16029
+ }
16030
+ },
16031
+ quinary: {
16032
+ "@dark": {
16033
+ color: "gray 1 90",
16034
+ background: "gradient-light",
16035
+ ":hover": {
16036
+ color: "gray 1 95",
16037
+ background: "gradient-light-active"
16038
+ },
16039
+ ":focus": {
16040
+ color: "gray 1 120",
16041
+ background: "gradient-light-active"
16042
+ },
16043
+ ":active": {
16044
+ color: "gray 1 120",
16045
+ background: "gradient-light-active"
16046
+ },
16047
+ ".active": {
16048
+ color: "gray 1 120",
16049
+ background: "gradient-light-active"
16050
+ }
16051
+ },
16052
+ "@light": {
16053
+ color: "gray3",
16054
+ background: "gradient-dark",
16055
+ ":hover": {
16056
+ color: "gray1",
16057
+ background: "gradient-dark-active"
16058
+ },
16059
+ ":active": {
16060
+ color: "gray1",
16061
+ background: "gradient-dark-active"
16062
+ },
16063
+ ".active": {
16064
+ color: "gray1",
16065
+ background: "gradient-dark-active"
16066
+ }
16067
+ }
16068
+ },
16069
+ alert: {
16070
+ "@dark": {
16071
+ color: "white",
16072
+ background: "red"
16073
+ }
16074
+ },
16075
+ warning: {
16076
+ "@dark": {
16077
+ color: "black",
16078
+ background: "yellow"
16079
+ }
16080
+ },
16081
+ success: {
16082
+ background: "transparent",
16083
+ color: "green2",
16084
+ border: "2.8px solid #04F214"
16085
+ }
16086
+ };
16087
+ var THEME = {
16088
+ document: {
16089
+ "@light": {
16090
+ color: "black",
16091
+ background: "white"
16092
+ },
16093
+ "@dark": {
16094
+ color: "white",
16095
+ background: "black"
16096
+ }
16097
+ },
16098
+ ...PRIORITIES,
16099
+ none: {
16100
+ color: "none",
16101
+ background: "none"
16102
+ },
16103
+ transparent: {
16104
+ color: "transparent",
16105
+ background: "transparent"
16106
+ }
16107
+ };
16108
+
16109
+ // node_modules/@symbo.ls/default-config/src/typography.js
16110
+ var TYPOGRAPHY = {
16111
+ base: 16,
16112
+ ratio: 1.125,
16113
+ subSequence: true,
16114
+ templates: {}
16115
+ };
16116
+
16117
+ // node_modules/@symbo.ls/default-config/src/spacing.js
16118
+ var SPACING = {
16119
+ base: 16,
16120
+ ratio: 1.618,
16121
+ subSequence: true
16122
+ };
16123
+
16124
+ // node_modules/@symbo.ls/default-config/src/font.js
16125
+ var FONT = {};
16126
+ var FONT_FAMILY = {
16127
+ system: {
16128
+ isDefault: true,
16129
+ value: ['"Helvetica Neue"', "Helvetica", "Arial"],
16130
+ type: "sans-serif"
16131
+ }
16132
+ };
16133
+
16134
+ // node_modules/@symbo.ls/default-config/src/index.js
16135
+ var DEFAULT_CONFIG = {
16136
+ version: "0.0.1",
16137
+ COLOR,
16138
+ GRADIENT,
16139
+ THEME,
16140
+ TYPOGRAPHY,
16141
+ SPACING,
16142
+ FONT,
16143
+ FONT_FAMILY,
16144
+ TIMING: {},
16145
+ ICONS: default_icons_default,
16146
+ MEDIA: {
16147
+ tv: "(min-width: 2780px)",
16148
+ screenL: "(max-width: 1920px)",
16149
+ screenM: "(max-width: 1680px)",
16150
+ screenS: "(max-width: 1440px)",
16151
+ tabletL: "(max-width: 1366px)",
16152
+ tabletM: "(max-width: 1280px)",
16153
+ tabletS: "(max-width: 1024px)",
16154
+ mobileL: "(max-width: 768px)",
16155
+ mobileM: "(max-width: 560px)",
16156
+ mobileS: "(max-width: 480px)",
16157
+ mobileXS: "(max-width: 375px)",
16158
+ light: "(prefers-color-scheme: light)",
16159
+ dark: "(prefers-color-scheme: dark)",
16160
+ print: "print"
16161
+ },
16162
+ DEVICES: {},
16163
+ CASES: {},
16164
+ SVG: {}
16165
+ // TODO: Check with @nikoloza on this
16166
+ };
16167
+ var src_default = DEFAULT_CONFIG;
16168
+
15414
16169
  // src/initEmotion.js
15415
16170
  var initEmotion = (key, options = options_default) => {
15416
16171
  const doc = options.parent || options.document || document;
15417
16172
  const initOptions = options.initOptions || {};
15418
- const emotion2 = initOptions.emotion || emotion;
16173
+ const emotion4 = initOptions.emotion || emotion2;
15419
16174
  if (!initOptions.emotion)
15420
- initOptions.emotion = emotion2;
16175
+ initOptions.emotion = emotion4;
15421
16176
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
15422
- const scratchSystem2 = init(options.designSystem || {}, {
16177
+ const designSystem = options.designSystem || (options.defaultConfig ? (0, import_utils17.deepClone)(src_default) : {});
16178
+ const scratchSystem2 = init(designSystem, {
15423
16179
  key,
15424
- emotion: emotion2,
16180
+ emotion: emotion4,
15425
16181
  verbose: options.verbose,
15426
16182
  document: doc,
15427
16183
  ...options_default.designSystem,
15428
16184
  ...initOptions
15429
16185
  });
15430
- return [scratchSystem2, emotion2, registry];
16186
+ return [scratchSystem2, emotion4, registry];
15431
16187
  };
15432
16188
 
15433
16189
  // ../socket-ui/byld-socket.js
15434
16190
  var import_router3 = __toESM(require_cjs10());
15435
- var import_scratch14 = __toESM(require_cjs9());
16191
+ var import_scratch23 = __toESM(require_cjs9());
15436
16192
 
15437
16193
  // ../socket/client.js
15438
16194
  var utils = __toESM(require_cjs(), 1);
@@ -18831,11 +19587,121 @@ function send(event = "change", changes, options) {
18831
19587
  this.emit(event, changes, { ...options, ...defautlOpts });
18832
19588
  }
18833
19589
 
19590
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Block.js
19591
+ var import_scratch14 = __toESM(require_cjs9());
19592
+
19593
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Flex.js
19594
+ var Flex2 = {
19595
+ props: {
19596
+ display: "flex"
19597
+ },
19598
+ class: {
19599
+ flow: ({ props: props4 }) => props4.flow && { flexFlow: props4.flow },
19600
+ wrap: ({ props: props4 }) => props4.wrap && { flexWrap: props4.wrap },
19601
+ align: ({ props: props4 }) => {
19602
+ if (typeof props4.align !== "string")
19603
+ return;
19604
+ const [alignItems, justifyContent] = props4.align.split(" ");
19605
+ return { alignItems, justifyContent };
19606
+ }
19607
+ }
19608
+ };
19609
+
19610
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Grid.js
19611
+ var import_scratch15 = __toESM(require_cjs9());
19612
+
19613
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Media.js
19614
+ var import_utils18 = __toESM(require_cjs());
19615
+
19616
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Theme.js
19617
+ var import_scratch18 = __toESM(require_cjs9());
19618
+
19619
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
19620
+ var import_scratch17 = __toESM(require_cjs9());
19621
+
19622
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Timing.js
19623
+ var import_scratch16 = __toESM(require_cjs9());
19624
+
19625
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
19626
+ var CONFIG3 = (0, import_scratch17.getActiveConfig)();
19627
+ var depth2 = {
19628
+ 4: { boxShadow: `rgba(0,0,0,.10) 0 2${CONFIG3.UNIT.default} 4${CONFIG3.UNIT.default}` },
19629
+ 6: { boxShadow: `rgba(0,0,0,.10) 0 3${CONFIG3.UNIT.default} 6${CONFIG3.UNIT.default}` },
19630
+ 10: { boxShadow: `rgba(0,0,0,.10) 0 4${CONFIG3.UNIT.default} 10${CONFIG3.UNIT.default}` },
19631
+ 16: { boxShadow: `rgba(0,0,0,.10) 0 8${CONFIG3.UNIT.default} 16${CONFIG3.UNIT.default}` },
19632
+ 26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG3.UNIT.default} 26${CONFIG3.UNIT.default}` },
19633
+ 42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG3.UNIT.default} 42${CONFIG3.UNIT.default}` }
19634
+ };
19635
+
19636
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Collection.js
19637
+ var import_state2 = __toESM(require_cjs5());
19638
+ var import_utils19 = __toESM(require_cjs());
19639
+
19640
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Position.js
19641
+ var import_scratch19 = __toESM(require_cjs9());
19642
+
19643
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/index.js
19644
+ var import_utils20 = __toESM(require_cjs());
19645
+ var import_scratch20 = __toESM(require_cjs9());
19646
+
19647
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Text.js
19648
+ var import_scratch21 = __toESM(require_cjs9());
19649
+
19650
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Animation.js
19651
+ var import_scratch22 = __toESM(require_cjs9());
19652
+ var import_utils21 = __toESM(require_cjs());
19653
+
19654
+ // ../socket-ui/node_modules/@symbo.ls/emotion/index.js
19655
+ var createEmotion5 = (key = "smbls", container) => {
19656
+ const cleanKey = key.replaceAll(/\./g, "-");
19657
+ return createEmotion({ key: cleanKey, container });
19658
+ };
19659
+ var emotion3 = createEmotion5();
19660
+
19661
+ // ../socket-ui/node_modules/@symbo.ls/notification/index.js
19662
+ var Notification2 = {
19663
+ extend: Flex2,
19664
+ props: {
19665
+ theme: "alert",
19666
+ padding: "Z1 B Z A",
19667
+ round: "A A A Y2",
19668
+ gap: "X2",
19669
+ cursor: "pointer",
19670
+ align: "flex-start center"
19671
+ },
19672
+ IconText: {
19673
+ props: {
19674
+ icon: "info outline"
19675
+ }
19676
+ },
19677
+ Flex: {
19678
+ props: {
19679
+ flow: "column",
19680
+ align: "flex-start",
19681
+ gap: "X2"
19682
+ },
19683
+ Title: {
19684
+ props: {
19685
+ fontWeight: "600",
19686
+ lineHeight: "1em",
19687
+ text: "Notification"
19688
+ }
19689
+ },
19690
+ P: {
19691
+ props: {
19692
+ fontSize: "Z",
19693
+ margin: "0",
19694
+ text: "is not always a distraction"
19695
+ }
19696
+ }
19697
+ }
19698
+ };
19699
+
18834
19700
  // ../socket-ui/byld-socket.js
18835
19701
  var import_globals = __toESM(require_cjs11());
18836
19702
 
18837
19703
  // ../socket-ui/devFocus.js
18838
- var import_utils17 = __toESM(require_cjs());
19704
+ var import_utils22 = __toESM(require_cjs());
18839
19705
  var DevFocus = {
18840
19706
  props: {
18841
19707
  ".preventSelect": {
@@ -18889,7 +19755,7 @@ var DevFocus = {
18889
19755
  on: {
18890
19756
  init: ({ context }) => {
18891
19757
  const { components } = context;
18892
- if ((0, import_utils17.isObject)(components)) {
19758
+ if ((0, import_utils22.isObject)(components)) {
18893
19759
  const { Content, ...rest } = components;
18894
19760
  for (const key in rest) {
18895
19761
  if (domql_exports[key])
@@ -18994,12 +19860,12 @@ var ANIMATION = {
18994
19860
  }
18995
19861
  }
18996
19862
  };
18997
- var COLOR = {
19863
+ var COLOR2 = {
18998
19864
  black: "#000000",
18999
19865
  blue: "#3686F7"
19000
19866
  };
19001
- (0, import_scratch14.set)({
19002
- COLOR,
19867
+ (0, import_scratch23.set)({
19868
+ COLOR: COLOR2,
19003
19869
  ANIMATION
19004
19870
  });
19005
19871
  var connectedToSymbols = (clients, element, state) => {
@@ -19076,7 +19942,7 @@ var Notifications = {
19076
19942
  zIndex: "999"
19077
19943
  },
19078
19944
  childExtend: {
19079
- extend: [Notification],
19945
+ extend: [Notification2],
19080
19946
  props: ({ state }) => ({
19081
19947
  animation: "fadeInUp",
19082
19948
  animationDuration: "C",
@@ -19111,13 +19977,13 @@ var Sync = {
19111
19977
  };
19112
19978
 
19113
19979
  // src/syncExtend.js
19114
- var import_utils18 = __toESM(require_cjs(), 1);
19980
+ var import_utils23 = __toESM(require_cjs(), 1);
19115
19981
  var applySyncDebug = (extend, options) => {
19116
19982
  const { editor } = options;
19117
19983
  if (!editor)
19118
19984
  return extend;
19119
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
19120
- const liveSync = (0, import_utils18.isUndefined)(editor.liveSync) ? (0, import_utils18.isDevelopment)() : editor.liveSync;
19985
+ const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
19986
+ const liveSync = (0, import_utils23.isUndefined)(editor.liveSync) ? (0, import_utils23.isDevelopment)() : editor.liveSync;
19121
19987
  if (inspect)
19122
19988
  extend.push(DevFocus);
19123
19989
  if (liveSync)
@@ -19128,7 +19994,7 @@ var applyInspectListener = (root, options) => {
19128
19994
  const { editor } = options;
19129
19995
  if (!editor)
19130
19996
  return;
19131
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
19997
+ const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
19132
19998
  if (inspect)
19133
19999
  inspectOnKey(root);
19134
20000
  };
@@ -19136,12 +20002,12 @@ var applyInspectListener = (root, options) => {
19136
20002
  // src/index.js
19137
20003
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
19138
20004
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
19139
- const rcfile = (0, import_utils19.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
19140
- return (0, import_utils19.deepMerge)(options, rcfile);
20005
+ const rcfile = (0, import_utils24.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
20006
+ return (0, import_utils24.deepMerge)(options, rcfile);
19141
20007
  };
19142
20008
  var create = async (App, options = options_default, optionsExternalFile) => {
19143
- const appIsKey = (0, import_utils19.isString)(App);
19144
- options = mergeWithLocalFile2(options, optionsExternalFile);
20009
+ const appIsKey = (0, import_utils24.isString)(App);
20010
+ options = (0, import_utils24.deepMerge)(mergeWithLocalFile2(options, optionsExternalFile), options_default);
19145
20011
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19146
20012
  if (appIsKey)
19147
20013
  App = {};
@@ -19154,7 +20020,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19154
20020
  document = window.document;
19155
20021
  }
19156
20022
  const doc = options.parent || options.document || document;
19157
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
20023
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
19158
20024
  let state;
19159
20025
  if (options.state)
19160
20026
  state = options.state;
@@ -19183,7 +20049,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19183
20049
  utils: snippets,
19184
20050
  define,
19185
20051
  registry,
19186
- emotion: emotion2,
20052
+ emotion: emotion4,
19187
20053
  routerOptions,
19188
20054
  document: doc
19189
20055
  }
@@ -19203,7 +20069,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19203
20069
  return domqlApp;
19204
20070
  };
19205
20071
  var createSync = (App, options = options_default, optionsExternalFile) => {
19206
- const appIsKey = (0, import_utils19.isString)(App);
20072
+ const appIsKey = (0, import_utils24.isString)(App);
19207
20073
  options = mergeWithLocalFile2(options, optionsExternalFile);
19208
20074
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19209
20075
  if (appIsKey)
@@ -19222,7 +20088,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19222
20088
  parent = options.document;
19223
20089
  else
19224
20090
  parent = document.body;
19225
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
20091
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
19226
20092
  let state;
19227
20093
  if (options.state)
19228
20094
  state = options.state;
@@ -19250,7 +20116,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19250
20116
  utils: snippets,
19251
20117
  define,
19252
20118
  registry,
19253
- emotion: emotion2,
20119
+ emotion: emotion4,
19254
20120
  // routerOptions,
19255
20121
  document
19256
20122
  }
@@ -19261,4 +20127,4 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19261
20127
  });
19262
20128
  return domqlApp;
19263
20129
  };
19264
- var src_default = create;
20130
+ var src_default2 = create;