@symbo.ls/create 2.11.204 → 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;
@@ -1331,11 +1331,11 @@ var require_tree = __commonJS({
1331
1331
  TREE: () => TREE
1332
1332
  });
1333
1333
  module2.exports = __toCommonJS2(tree_exports);
1334
- var import_utils20 = require_cjs();
1334
+ var import_utils25 = require_cjs();
1335
1335
  var import_report = require_cjs2();
1336
1336
  var ROOT = {
1337
1337
  key: ":root",
1338
- 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)
1339
1339
  };
1340
1340
  var TREE = ROOT;
1341
1341
  }
@@ -1371,12 +1371,12 @@ var require_on = __commonJS({
1371
1371
  triggerEventOnUpdate: () => triggerEventOnUpdate
1372
1372
  });
1373
1373
  module2.exports = __toCommonJS2(on_exports);
1374
- var import_utils20 = require_cjs();
1374
+ var import_utils25 = require_cjs();
1375
1375
  var applyEvent = (param, element, state, context, options) => {
1376
1376
  return param(element, state || element.state, context || element.context, options);
1377
1377
  };
1378
1378
  var triggerEventOn = (param, element, options) => {
1379
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1379
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1380
1380
  const { state, context } = element;
1381
1381
  return applyEvent(element.on[param], element, state, context, options);
1382
1382
  }
@@ -1385,7 +1385,7 @@ var require_on = __commonJS({
1385
1385
  return param(updatedObj, element, state || element.state, context || element.context, options);
1386
1386
  };
1387
1387
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1388
- if (element.on && (0, import_utils20.isFunction)(element.on[param])) {
1388
+ if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
1389
1389
  const { state, context } = element;
1390
1390
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1391
1391
  }
@@ -1396,7 +1396,7 @@ var require_on = __commonJS({
1396
1396
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1397
1397
  continue;
1398
1398
  const appliedFunction = element.on[param];
1399
- if ((0, import_utils20.isFunction)(appliedFunction)) {
1399
+ if ((0, import_utils25.isFunction)(appliedFunction)) {
1400
1400
  const { state, context } = element;
1401
1401
  node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
1402
1402
  }
@@ -1432,10 +1432,10 @@ var require_can = __commonJS({
1432
1432
  });
1433
1433
  module2.exports = __toCommonJS2(can_exports);
1434
1434
  var import_report = require_cjs2();
1435
- var import_utils20 = require_cjs();
1435
+ var import_utils25 = require_cjs();
1436
1436
  var canRender = (element) => {
1437
1437
  const tag = element.tag || "div";
1438
- return (0, import_utils20.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1438
+ return (0, import_utils25.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1439
1439
  };
1440
1440
  }
1441
1441
  });
@@ -1526,7 +1526,7 @@ var require_cache = __commonJS({
1526
1526
  module2.exports = __toCommonJS2(cache_exports);
1527
1527
  var import_report = require_cjs2();
1528
1528
  var import_event = require_cjs3();
1529
- var import_utils20 = require_cjs();
1529
+ var import_utils25 = require_cjs();
1530
1530
  var cache2 = {};
1531
1531
  var createHTMLNode = (element) => {
1532
1532
  const { tag } = element;
@@ -1545,15 +1545,15 @@ var require_cache = __commonJS({
1545
1545
  };
1546
1546
  var detectTag = (element) => {
1547
1547
  let { tag, key } = element;
1548
- tag = (0, import_utils20.exec)(tag, element);
1548
+ tag = (0, import_utils25.exec)(tag, element);
1549
1549
  if (tag === true)
1550
1550
  tag = key;
1551
- if ((0, import_utils20.isString)(tag)) {
1552
- const tagExists = (0, import_utils20.isValidHtmlTag)(tag);
1551
+ if ((0, import_utils25.isString)(tag)) {
1552
+ const tagExists = (0, import_utils25.isValidHtmlTag)(tag);
1553
1553
  if (tagExists)
1554
1554
  return tag;
1555
1555
  } else {
1556
- const isKeyATag = (0, import_utils20.isValidHtmlTag)(key);
1556
+ const isKeyATag = (0, import_utils25.isValidHtmlTag)(key);
1557
1557
  if (isKeyATag)
1558
1558
  return key;
1559
1559
  }
@@ -1672,16 +1672,16 @@ var require_attr = __commonJS({
1672
1672
  default: () => attr_default
1673
1673
  });
1674
1674
  module2.exports = __toCommonJS2(attr_exports);
1675
- var import_utils20 = require_cjs();
1675
+ var import_utils25 = require_cjs();
1676
1676
  var import_report = require_cjs2();
1677
1677
  var attr_default = (params, element, node2) => {
1678
1678
  const { __ref } = element;
1679
1679
  const { __attr } = __ref;
1680
- if ((0, import_utils20.isNot)("object"))
1680
+ if ((0, import_utils25.isNot)("object"))
1681
1681
  (0, import_report.report)("HTMLInvalidAttr", params);
1682
1682
  if (params) {
1683
1683
  for (const attr in params) {
1684
- const val = (0, import_utils20.exec)(params[attr], element);
1684
+ const val = (0, import_utils25.exec)(params[attr], element);
1685
1685
  if (val && node2.setAttribute)
1686
1686
  node2.setAttribute(attr, val);
1687
1687
  else if (node2.removeAttribute)
@@ -1724,7 +1724,7 @@ var require_classList = __commonJS({
1724
1724
  default: () => classList_default
1725
1725
  });
1726
1726
  module2.exports = __toCommonJS2(classList_exports);
1727
- var import_utils20 = require_cjs();
1727
+ var import_utils25 = require_cjs();
1728
1728
  var assignKeyAsClassname = (element) => {
1729
1729
  const { key } = element;
1730
1730
  if (element.class === true)
@@ -1742,7 +1742,7 @@ var require_classList = __commonJS({
1742
1742
  else if (typeof param === "string")
1743
1743
  className += ` ${param}`;
1744
1744
  else if (typeof param === "function") {
1745
- className += ` ${(0, import_utils20.exec)(param, element)}`;
1745
+ className += ` ${(0, import_utils25.exec)(param, element)}`;
1746
1746
  }
1747
1747
  }
1748
1748
  return className;
@@ -1753,9 +1753,9 @@ var require_classList = __commonJS({
1753
1753
  const { key } = element;
1754
1754
  if (params === true)
1755
1755
  params = element.class = { key };
1756
- if ((0, import_utils20.isString)(params))
1756
+ if ((0, import_utils25.isString)(params))
1757
1757
  params = element.class = { default: params };
1758
- if ((0, import_utils20.isObject)(params))
1758
+ if ((0, import_utils25.isObject)(params))
1759
1759
  params = classify2(params, element);
1760
1760
  const className = params.replace(/\s+/g, " ").trim();
1761
1761
  if (element.ref)
@@ -1839,7 +1839,7 @@ var require_set = __commonJS({
1839
1839
  default: () => set_default
1840
1840
  });
1841
1841
  module2.exports = __toCommonJS2(set_exports);
1842
- var import_utils20 = require_cjs();
1842
+ var import_utils25 = require_cjs();
1843
1843
  var import_create = __toESM2(require_create4(), 1);
1844
1844
  var import_options3 = __toESM2(require_options(), 1);
1845
1845
  var import_mixins = require_mixins();
@@ -1847,7 +1847,7 @@ var require_set = __commonJS({
1847
1847
  var set5 = function(params, options = {}, el) {
1848
1848
  const element = el || this;
1849
1849
  const __contentRef = element.content && element.content.__ref;
1850
- if (__contentRef && __contentRef.__cached && (0, import_utils20.isEqualDeep)(params, element.content)) {
1850
+ if (__contentRef && __contentRef.__cached && (0, import_utils25.isEqualDeep)(params, element.content)) {
1851
1851
  return element;
1852
1852
  }
1853
1853
  (0, import_content.removeContent)(element);
@@ -1907,7 +1907,7 @@ var require_content = __commonJS({
1907
1907
  updateContent: () => updateContent
1908
1908
  });
1909
1909
  module2.exports = __toCommonJS2(content_exports);
1910
- var import_utils20 = require_cjs();
1910
+ var import_utils25 = require_cjs();
1911
1911
  var import_set = __toESM2(require_set(), 1);
1912
1912
  var updateContent = function(params, options) {
1913
1913
  const element = this;
@@ -1930,7 +1930,7 @@ var require_content = __commonJS({
1930
1930
  if (__cached && __cached.content) {
1931
1931
  if (__cached.content.tag === "fragment")
1932
1932
  __cached.content.parent.node.innerHTML = "";
1933
- else if (__cached.content && (0, import_utils20.isFunction)(__cached.content.remove))
1933
+ else if (__cached.content && (0, import_utils25.isFunction)(__cached.content.remove))
1934
1934
  __cached.content.remove();
1935
1935
  }
1936
1936
  delete element.content;
@@ -1975,15 +1975,15 @@ var require_data = __commonJS({
1975
1975
  default: () => data_default
1976
1976
  });
1977
1977
  module2.exports = __toCommonJS2(data_exports);
1978
- var import_utils20 = require_cjs();
1978
+ var import_utils25 = require_cjs();
1979
1979
  var import_report = require_cjs2();
1980
1980
  var data_default = (params, element, node2) => {
1981
1981
  if (params && params.showOnNode) {
1982
- if (!(0, import_utils20.isObject)(params))
1982
+ if (!(0, import_utils25.isObject)(params))
1983
1983
  (0, import_report.report)("HTMLInvalidData", params);
1984
1984
  for (const dataset in params) {
1985
1985
  if (dataset !== "showOnNode") {
1986
- node2.dataset[dataset] = (0, import_utils20.exec)(params[dataset], element);
1986
+ node2.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
1987
1987
  }
1988
1988
  }
1989
1989
  }
@@ -2017,9 +2017,9 @@ var require_html = __commonJS({
2017
2017
  default: () => html_default
2018
2018
  });
2019
2019
  module2.exports = __toCommonJS2(html_exports);
2020
- var import_utils20 = require_cjs();
2020
+ var import_utils25 = require_cjs();
2021
2021
  var html_default = (param, element, node2) => {
2022
- const prop = (0, import_utils20.exec)(param, element);
2022
+ const prop = (0, import_utils25.exec)(param, element);
2023
2023
  const { __ref } = element;
2024
2024
  if (prop !== __ref.__html) {
2025
2025
  if (node2.nodeName === "SVG")
@@ -2058,12 +2058,12 @@ var require_style = __commonJS({
2058
2058
  default: () => style_default2
2059
2059
  });
2060
2060
  module2.exports = __toCommonJS2(style_exports);
2061
- var import_utils20 = require_cjs();
2061
+ var import_utils25 = require_cjs();
2062
2062
  var import_report = require_cjs2();
2063
2063
  var style_default2 = (params, element, node2) => {
2064
2064
  if (params) {
2065
- if ((0, import_utils20.isObject)(params))
2066
- (0, import_utils20.map)(node2.style, params, element);
2065
+ if ((0, import_utils25.isObject)(params))
2066
+ (0, import_utils25.map)(node2.style, params, element);
2067
2067
  else
2068
2068
  (0, import_report.report)("HTMLInvalidStyles", params);
2069
2069
  }
@@ -2099,9 +2099,9 @@ var require_text = __commonJS({
2099
2099
  });
2100
2100
  module2.exports = __toCommonJS2(text_exports);
2101
2101
  var import__ = require_cjs7();
2102
- var import_utils20 = require_cjs();
2102
+ var import_utils25 = require_cjs();
2103
2103
  var asd = (param, element, node2) => {
2104
- const prop = (0, import_utils20.exec)(param, element);
2104
+ const prop = (0, import_utils25.exec)(param, element);
2105
2105
  if (element.tag === "string") {
2106
2106
  node2.nodeValue = prop;
2107
2107
  } else if (param !== void 0 || param !== null) {
@@ -2115,9 +2115,9 @@ var require_text = __commonJS({
2115
2115
  }
2116
2116
  };
2117
2117
  var text_default = (param, element, node2) => {
2118
- let prop = (0, import_utils20.exec)(param, element);
2119
- if ((0, import_utils20.isString)(prop) && prop.includes("{{")) {
2120
- 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);
2121
2121
  }
2122
2122
  if (element.tag === "string") {
2123
2123
  if (element.text === prop)
@@ -2221,11 +2221,11 @@ var require_methods = __commonJS({
2221
2221
  toggle: () => toggle
2222
2222
  });
2223
2223
  module2.exports = __toCommonJS2(methods_exports);
2224
- var import_utils20 = require_cjs();
2224
+ var import_utils25 = require_cjs();
2225
2225
  var import_ignore = require_ignore();
2226
2226
  var parse3 = function() {
2227
2227
  const state = this;
2228
- if ((0, import_utils20.isObject)(state)) {
2228
+ if ((0, import_utils25.isObject)(state)) {
2229
2229
  const obj = {};
2230
2230
  for (const param in state) {
2231
2231
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2233,7 +2233,7 @@ var require_methods = __commonJS({
2233
2233
  }
2234
2234
  }
2235
2235
  return obj;
2236
- } else if ((0, import_utils20.isArray)(state)) {
2236
+ } else if ((0, import_utils25.isArray)(state)) {
2237
2237
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2238
2238
  }
2239
2239
  };
@@ -2253,7 +2253,7 @@ var require_methods = __commonJS({
2253
2253
  const state = this;
2254
2254
  const element = state.__element;
2255
2255
  const stateKey = element.__ref.__state;
2256
- if ((0, import_utils20.isString)(stateKey)) {
2256
+ if ((0, import_utils25.isString)(stateKey)) {
2257
2257
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2258
2258
  return element.state;
2259
2259
  }
@@ -2288,10 +2288,10 @@ var require_methods = __commonJS({
2288
2288
  };
2289
2289
  var add = function(value2, options = {}) {
2290
2290
  const state = this;
2291
- if ((0, import_utils20.isArray)(state)) {
2291
+ if ((0, import_utils25.isArray)(state)) {
2292
2292
  state.push(value2);
2293
2293
  state.update(state.parse(), { overwrite: "replace", ...options });
2294
- } else if ((0, import_utils20.isObject)(state)) {
2294
+ } else if ((0, import_utils25.isObject)(state)) {
2295
2295
  const key = Object.keys(state).length;
2296
2296
  state.update({ [key]: value2 }, options);
2297
2297
  }
@@ -2302,10 +2302,10 @@ var require_methods = __commonJS({
2302
2302
  };
2303
2303
  var remove = function(key, options = {}) {
2304
2304
  const state = this;
2305
- if ((0, import_utils20.isArray)(state))
2306
- (0, import_utils20.removeFromArray)(state, key);
2307
- if ((0, import_utils20.isObject)(state))
2308
- (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);
2309
2309
  return state.update(state.parse(), { replace: true, ...options });
2310
2310
  };
2311
2311
  var set5 = function(value2, options = {}) {
@@ -2314,7 +2314,7 @@ var require_methods = __commonJS({
2314
2314
  };
2315
2315
  var apply = function(func, options = {}) {
2316
2316
  const state = this;
2317
- if ((0, import_utils20.isFunction)(func)) {
2317
+ if ((0, import_utils25.isFunction)(func)) {
2318
2318
  func(state);
2319
2319
  return state.update(state, { replace: true, ...options });
2320
2320
  }
@@ -2349,12 +2349,12 @@ var require_inherit = __commonJS({
2349
2349
  createChangesByKey: () => createChangesByKey,
2350
2350
  createInheritedState: () => createInheritedState,
2351
2351
  findInheritedState: () => findInheritedState,
2352
- getChildStateInKey: () => getChildStateInKey2,
2352
+ getChildStateInKey: () => getChildStateInKey3,
2353
2353
  getParentStateInKey: () => getParentStateInKey,
2354
- isState: () => isState2
2354
+ isState: () => isState3
2355
2355
  });
2356
2356
  module2.exports = __toCommonJS2(inherit_exports);
2357
- var import_utils20 = require_cjs();
2357
+ var import_utils25 = require_cjs();
2358
2358
  var import_ignore = require_ignore();
2359
2359
  var getParentStateInKey = (stateKey, parentState) => {
2360
2360
  if (!stateKey.includes("../"))
@@ -2368,7 +2368,7 @@ var require_inherit = __commonJS({
2368
2368
  }
2369
2369
  return parentState;
2370
2370
  };
2371
- var getChildStateInKey2 = (stateKey, parentState, options = {}) => {
2371
+ var getChildStateInKey3 = (stateKey, parentState, options = {}) => {
2372
2372
  const arr = stateKey.split("/");
2373
2373
  const arrLength = arr.length - 1;
2374
2374
  for (let i2 = 0; i2 < arrLength; i2++) {
@@ -2401,16 +2401,16 @@ var require_inherit = __commonJS({
2401
2401
  }
2402
2402
  if (!parentState)
2403
2403
  return;
2404
- return getChildStateInKey2(stateKey, parentState, options);
2404
+ return getChildStateInKey3(stateKey, parentState, options);
2405
2405
  };
2406
2406
  var createInheritedState = (element, parent) => {
2407
2407
  const ref = element.__ref;
2408
2408
  const inheritedState = findInheritedState(element, parent);
2409
2409
  if (!inheritedState)
2410
2410
  return element.state;
2411
- if ((0, import_utils20.is)(inheritedState)("object", "array")) {
2412
- return (0, import_utils20.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2413
- } 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")) {
2414
2414
  ref.__stateType = "string";
2415
2415
  return { value: inheritedState };
2416
2416
  }
@@ -2419,12 +2419,12 @@ var require_inherit = __commonJS({
2419
2419
  var checkIfInherits = (element) => {
2420
2420
  const ref = element.__ref;
2421
2421
  const stateKey = ref.__state;
2422
- if (!stateKey || (0, import_utils20.isNot)(stateKey)("number", "string"))
2422
+ if (!stateKey || (0, import_utils25.isNot)(stateKey)("number", "string"))
2423
2423
  return false;
2424
2424
  return true;
2425
2425
  };
2426
- var isState2 = function(state) {
2427
- if (!(0, import_utils20.isObjectLike)(state))
2426
+ var isState3 = function(state) {
2427
+ if (!(0, import_utils25.isObjectLike)(state))
2428
2428
  return false;
2429
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;
2430
2430
  };
@@ -2473,7 +2473,7 @@ var require_updateState = __commonJS({
2473
2473
  var import_report = require_cjs2();
2474
2474
  var import_event = require_cjs3();
2475
2475
  var import_ignore = require_ignore();
2476
- var import_utils20 = require_cjs();
2476
+ var import_utils25 = require_cjs();
2477
2477
  var import_inherit = require_inherit();
2478
2478
  var STATE_UPDATE_OPTIONS = {
2479
2479
  overwrite: true,
@@ -2487,7 +2487,7 @@ var require_updateState = __commonJS({
2487
2487
  const state = this;
2488
2488
  const element = state.__element;
2489
2489
  if (!options.updateByState)
2490
- (0, import_utils20.merge)(options, STATE_UPDATE_OPTIONS);
2490
+ (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
2491
2491
  if (!state.__element)
2492
2492
  (0, import_report.report)("ElementOnStateIsNotDefined");
2493
2493
  if (options.preventInheritAtCurrentState === true) {
@@ -2517,10 +2517,10 @@ var require_updateState = __commonJS({
2517
2517
  const shallow = overwrite === "shallow";
2518
2518
  const merge22 = overwrite === "merge";
2519
2519
  if (merge22) {
2520
- (0, import_utils20.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2520
+ (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2521
2521
  return;
2522
2522
  }
2523
- const overwriteFunc = shallow ? import_utils20.overwriteShallow : import_utils20.overwriteDeep;
2523
+ const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
2524
2524
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2525
2525
  };
2526
2526
  var hoistStateUpdate = (state, obj, options) => {
@@ -2611,7 +2611,7 @@ var require_create2 = __commonJS({
2611
2611
  });
2612
2612
  module2.exports = __toCommonJS2(create_exports);
2613
2613
  var import_event = require_cjs3();
2614
- var import_utils20 = require_cjs();
2614
+ var import_utils25 = require_cjs();
2615
2615
  var import_ignore = require_ignore();
2616
2616
  var import_methods = require_methods();
2617
2617
  var import_updateState = require_updateState();
@@ -2625,7 +2625,7 @@ var require_create2 = __commonJS({
2625
2625
  if (objectizeState === false)
2626
2626
  return parent.state || {};
2627
2627
  else
2628
- 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);
2629
2629
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2630
2630
  if (whatInitReturns === false)
2631
2631
  return element.state;
@@ -2644,17 +2644,17 @@ var require_create2 = __commonJS({
2644
2644
  const { __ref: ref } = state;
2645
2645
  if (!ref)
2646
2646
  return;
2647
- 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);
2648
2648
  const newDepends = { [element.key]: dependentState };
2649
- 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;
2650
2650
  return dependentState;
2651
2651
  };
2652
2652
  var checkForTypes = (element) => {
2653
2653
  const { state, __ref: ref } = element;
2654
- if ((0, import_utils20.isFunction)(state)) {
2654
+ if ((0, import_utils25.isFunction)(state)) {
2655
2655
  ref.__state = state;
2656
- return (0, import_utils20.exec)(state, element);
2657
- } 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")) {
2658
2658
  ref.__state = state;
2659
2659
  return {};
2660
2660
  } else if (state === true) {
@@ -2701,7 +2701,7 @@ var require_create2 = __commonJS({
2701
2701
  __children: {},
2702
2702
  __root: ref.__root ? ref.__root.state : state
2703
2703
  };
2704
- if ((0, import_utils20.isArray)(state)) {
2704
+ if ((0, import_utils25.isArray)(state)) {
2705
2705
  addProtoToArray(state, proto);
2706
2706
  } else {
2707
2707
  Object.setPrototypeOf(state, proto);
@@ -2768,17 +2768,17 @@ var require_state = __commonJS({
2768
2768
  state: () => state
2769
2769
  });
2770
2770
  module2.exports = __toCommonJS2(state_exports);
2771
- var import_state2 = require_cjs5();
2772
- var import_utils20 = require_cjs();
2771
+ var import_state3 = require_cjs5();
2772
+ var import_utils25 = require_cjs();
2773
2773
  var state = (params, element, node2) => {
2774
- const state2 = (0, import_utils20.exec)(params, element);
2775
- if ((0, import_utils20.isObject)(state2)) {
2774
+ const state2 = (0, import_utils25.exec)(params, element);
2775
+ if ((0, import_utils25.isObject)(state2)) {
2776
2776
  for (const param in state2) {
2777
- if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2777
+ if (import_state3.IGNORE_STATE_PARAMS.includes(param))
2778
2778
  continue;
2779
2779
  if (!Object.hasOwnProperty.call(state2, param))
2780
2780
  continue;
2781
- element.state[param] = (0, import_utils20.exec)(state2[param], element);
2781
+ element.state[param] = (0, import_utils25.exec)(state2[param], element);
2782
2782
  }
2783
2783
  }
2784
2784
  return element;
@@ -2924,8 +2924,8 @@ var require_mixins = __commonJS({
2924
2924
  data: () => import_data.default,
2925
2925
  html: () => import_html.default,
2926
2926
  registry: () => import_registry.default,
2927
- state: () => import_state2.default,
2928
- style: () => import_style4.default,
2927
+ state: () => import_state3.default,
2928
+ style: () => import_style6.default,
2929
2929
  text: () => import_text.default
2930
2930
  });
2931
2931
  module2.exports = __toCommonJS2(mixins_exports);
@@ -2934,9 +2934,9 @@ var require_mixins = __commonJS({
2934
2934
  var import_content = __toESM2(require_content(), 1);
2935
2935
  var import_data = __toESM2(require_data(), 1);
2936
2936
  var import_html = __toESM2(require_html(), 1);
2937
- var import_style4 = __toESM2(require_style(), 1);
2937
+ var import_style6 = __toESM2(require_style(), 1);
2938
2938
  var import_text = __toESM2(require_text(), 1);
2939
- var import_state2 = __toESM2(require_state(), 1);
2939
+ var import_state3 = __toESM2(require_state(), 1);
2940
2940
  var import_registry = __toESM2(require_registry(), 1);
2941
2941
  __reExport2(mixins_exports, require_registry(), module2.exports);
2942
2942
  }
@@ -2981,7 +2981,7 @@ var require_methods2 = __commonJS({
2981
2981
  spotByPath: () => spotByPath
2982
2982
  });
2983
2983
  module2.exports = __toCommonJS2(methods_exports);
2984
- var import_utils20 = require_cjs();
2984
+ var import_utils25 = require_cjs();
2985
2985
  var import_tree = require_tree();
2986
2986
  var import_mixins = require_mixins();
2987
2987
  var spotByPath = function(path) {
@@ -3014,9 +3014,9 @@ var require_methods2 = __commonJS({
3014
3014
  };
3015
3015
  var remove = function(params) {
3016
3016
  const element = this;
3017
- if ((0, import_utils20.isFunction)(element.node.remove))
3017
+ if ((0, import_utils25.isFunction)(element.node.remove))
3018
3018
  element.node.remove();
3019
- else if (!(0, import_utils20.isProduction)()) {
3019
+ else if (!(0, import_utils25.isProduction)()) {
3020
3020
  console.warn("This item cant be removed");
3021
3021
  element.log();
3022
3022
  }
@@ -3056,12 +3056,12 @@ var require_methods2 = __commonJS({
3056
3056
  if (v === "state") {
3057
3057
  if (element.__ref && element.__ref.__hasRootState)
3058
3058
  return;
3059
- if ((0, import_utils20.isFunction)(val && val.parse))
3059
+ if ((0, import_utils25.isFunction)(val && val.parse))
3060
3060
  val = val.parse();
3061
3061
  } else if (v === "props") {
3062
3062
  const { __element, update, ...props4 } = element[v];
3063
3063
  obj[v] = props4;
3064
- } else if ((0, import_utils20.isDefined)(val))
3064
+ } else if ((0, import_utils25.isDefined)(val))
3065
3065
  obj[v] = val;
3066
3066
  });
3067
3067
  return obj;
@@ -3072,7 +3072,7 @@ var require_methods2 = __commonJS({
3072
3072
  for (const v in obj) {
3073
3073
  if (excl.includes(v))
3074
3074
  return;
3075
- if ((0, import_utils20.isObjectLike)(obj[v])) {
3075
+ if ((0, import_utils25.isObjectLike)(obj[v])) {
3076
3076
  obj[v] = parseDeep.call(obj[v], excl);
3077
3077
  }
3078
3078
  }
@@ -3190,18 +3190,18 @@ var require_inherit2 = __commonJS({
3190
3190
  inheritParentProps: () => inheritParentProps
3191
3191
  });
3192
3192
  module2.exports = __toCommonJS2(inherit_exports);
3193
- var import_utils20 = require_cjs();
3193
+ var import_utils25 = require_cjs();
3194
3194
  var objectizeStringProperty = (propValue) => {
3195
- if ((0, import_utils20.is)(propValue)("string", "number")) {
3195
+ if ((0, import_utils25.is)(propValue)("string", "number")) {
3196
3196
  return { inheritedString: propValue };
3197
3197
  }
3198
3198
  return propValue;
3199
3199
  };
3200
3200
  var inheritParentProps = (element, parent) => {
3201
3201
  let propsStack = [];
3202
- const parentProps = (0, import_utils20.exec)(parent, parent.state).props;
3202
+ const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
3203
3203
  const matchParent = parent.props && parentProps[element.key];
3204
- const matchParentIsString = (0, import_utils20.isString)(matchParent);
3204
+ const matchParentIsString = (0, import_utils25.isString)(matchParent);
3205
3205
  const matchParentChildProps = parentProps && parentProps.childProps;
3206
3206
  if (matchParent) {
3207
3207
  if (matchParentIsString) {
@@ -3249,19 +3249,19 @@ var require_create3 = __commonJS({
3249
3249
  syncProps: () => syncProps
3250
3250
  });
3251
3251
  module2.exports = __toCommonJS2(create_exports);
3252
- var import_utils20 = require_cjs();
3252
+ var import_utils25 = require_cjs();
3253
3253
  var import_ignore = require_ignore2();
3254
3254
  var import_inherit = require_inherit2();
3255
3255
  var createPropsStack = (element, parent) => {
3256
3256
  const { props: props4, __ref } = element;
3257
3257
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3258
- if ((0, import_utils20.isObject)(props4))
3258
+ if ((0, import_utils25.isObject)(props4))
3259
3259
  propsStack.push(props4);
3260
3260
  else if (props4 === "inherit" && parent.props)
3261
3261
  propsStack.push(parent.props);
3262
3262
  else if (props4)
3263
3263
  propsStack.push(props4);
3264
- if ((0, import_utils20.isArray)(__ref.__extend)) {
3264
+ if ((0, import_utils25.isArray)(__ref.__extend)) {
3265
3265
  __ref.__extend.forEach((extend) => {
3266
3266
  if (extend.props)
3267
3267
  propsStack.push(extend.props);
@@ -3276,12 +3276,12 @@ var require_create3 = __commonJS({
3276
3276
  props4.forEach((v) => {
3277
3277
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3278
3278
  return;
3279
- const execProps = (0, import_utils20.exec)(v, element);
3280
- 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)
3281
3281
  return;
3282
- element.props = (0, import_utils20.deepMerge)(
3282
+ element.props = (0, import_utils25.deepMerge)(
3283
3283
  mergedProps,
3284
- (0, import_utils20.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3284
+ (0, import_utils25.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3285
3285
  import_ignore.IGNORE_PROPS_PARAMS
3286
3286
  );
3287
3287
  });
@@ -3402,7 +3402,7 @@ var require_object2 = __commonJS({
3402
3402
  __export2(object_exports, {
3403
3403
  METHODS_EXL: () => METHODS_EXL,
3404
3404
  clone: () => clone,
3405
- deepClone: () => deepClone3,
3405
+ deepClone: () => deepClone5,
3406
3406
  deepMerge: () => deepMerge4,
3407
3407
  flattenRecursive: () => flattenRecursive,
3408
3408
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
@@ -3410,17 +3410,17 @@ var require_object2 = __commonJS({
3410
3410
  mergeIfExisted: () => mergeIfExisted,
3411
3411
  overwrite: () => overwrite,
3412
3412
  overwriteDeep: () => overwriteDeep,
3413
- overwriteShallow: () => overwriteShallow2
3413
+ overwriteShallow: () => overwriteShallow3
3414
3414
  });
3415
3415
  module2.exports = __toCommonJS2(object_exports);
3416
- var import_utils20 = require_cjs();
3417
- var import_state2 = require_cjs5();
3416
+ var import_utils25 = require_cjs();
3417
+ var import_state3 = require_cjs5();
3418
3418
  var import_props = require_props();
3419
3419
  var import_methods = require_methods2();
3420
- var METHODS_EXL = (0, import_utils20.joinArrays)(
3420
+ var METHODS_EXL = (0, import_utils25.joinArrays)(
3421
3421
  ["node", "state", "context", "extend"],
3422
3422
  import_methods.METHODS,
3423
- import_state2.IGNORE_STATE_PARAMS,
3423
+ import_state3.IGNORE_STATE_PARAMS,
3424
3424
  import_props.IGNORE_PROPS_PARAMS
3425
3425
  );
3426
3426
  var deepMerge4 = (element, extend, exclude = METHODS_EXL) => {
@@ -3431,7 +3431,7 @@ var require_object2 = __commonJS({
3431
3431
  const extendProp = extend[e];
3432
3432
  if (elementProp === void 0) {
3433
3433
  element[e] = extendProp;
3434
- } 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)) {
3435
3435
  deepMerge4(elementProp, extendProp);
3436
3436
  }
3437
3437
  }
@@ -3446,17 +3446,17 @@ var require_object2 = __commonJS({
3446
3446
  }
3447
3447
  return o;
3448
3448
  };
3449
- var deepClone3 = (obj, exclude = METHODS_EXL) => {
3450
- const o = (0, import_utils20.isArray)(obj) ? [] : {};
3449
+ var deepClone5 = (obj, exclude = METHODS_EXL) => {
3450
+ const o = (0, import_utils25.isArray)(obj) ? [] : {};
3451
3451
  for (const e in obj) {
3452
3452
  if (exclude.includes(e))
3453
3453
  continue;
3454
3454
  let objProp = obj[e];
3455
- if (e === "extend" && (0, import_utils20.isArray)(objProp)) {
3455
+ if (e === "extend" && (0, import_utils25.isArray)(objProp)) {
3456
3456
  objProp = mergeArray(objProp, exclude);
3457
3457
  }
3458
- if ((0, import_utils20.isObjectLike)(objProp)) {
3459
- o[e] = deepClone3(objProp, exclude);
3458
+ if ((0, import_utils25.isObjectLike)(objProp)) {
3459
+ o[e] = deepClone5(objProp, exclude);
3460
3460
  } else
3461
3461
  o[e] = objProp;
3462
3462
  }
@@ -3480,7 +3480,7 @@ var require_object2 = __commonJS({
3480
3480
  }
3481
3481
  return changes;
3482
3482
  };
3483
- var overwriteShallow2 = (obj, params, exclude = METHODS_EXL) => {
3483
+ var overwriteShallow3 = (obj, params, exclude = METHODS_EXL) => {
3484
3484
  for (const e in params) {
3485
3485
  if (exclude.includes(e))
3486
3486
  continue;
@@ -3494,7 +3494,7 @@ var require_object2 = __commonJS({
3494
3494
  continue;
3495
3495
  const objProp = obj[e];
3496
3496
  const paramsProp = params[e];
3497
- if ((0, import_utils20.isObjectLike)(objProp) && (0, import_utils20.isObjectLike)(paramsProp)) {
3497
+ if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
3498
3498
  overwriteDeep(objProp, paramsProp);
3499
3499
  } else if (paramsProp !== void 0) {
3500
3500
  obj[e] = paramsProp;
@@ -3503,15 +3503,15 @@ var require_object2 = __commonJS({
3503
3503
  return obj;
3504
3504
  };
3505
3505
  var mergeIfExisted = (a, b) => {
3506
- if ((0, import_utils20.isObjectLike)(a) && (0, import_utils20.isObjectLike)(b))
3506
+ if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
3507
3507
  return deepMerge4(a, b);
3508
3508
  return a || b;
3509
3509
  };
3510
3510
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
3511
- return arr.reduce((a, c) => deepMerge4(a, deepClone3(c, exclude)), {});
3511
+ return arr.reduce((a, c) => deepMerge4(a, deepClone5(c, exclude)), {});
3512
3512
  };
3513
3513
  var mergeAndCloneIfArray = (obj) => {
3514
- return (0, import_utils20.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
3514
+ return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : deepClone5(obj);
3515
3515
  };
3516
3516
  var flattenRecursive = (param, prop, stack = []) => {
3517
3517
  const objectized = mergeAndCloneIfArray(param);
@@ -3567,7 +3567,7 @@ var require_extendUtils = __commonJS({
3567
3567
  setHashedExtend: () => setHashedExtend
3568
3568
  });
3569
3569
  module2.exports = __toCommonJS2(extendUtils_exports);
3570
- var import_utils20 = require_cjs();
3570
+ var import_utils25 = require_cjs();
3571
3571
  var ENV2 = "development";
3572
3572
  var generateHash = () => Math.random().toString(36).substring(2);
3573
3573
  var extendStackRegistry = {};
@@ -3577,7 +3577,7 @@ var require_extendUtils = __commonJS({
3577
3577
  };
3578
3578
  var setHashedExtend = (extend, stack) => {
3579
3579
  const hash2 = generateHash();
3580
- if (!(0, import_utils20.isString)(extend)) {
3580
+ if (!(0, import_utils25.isString)(extend)) {
3581
3581
  extend.__hash = hash2;
3582
3582
  }
3583
3583
  extendStackRegistry[hash2] = stack;
@@ -3603,7 +3603,7 @@ var require_extendUtils = __commonJS({
3603
3603
  var flattenExtend = (extend, stack) => {
3604
3604
  if (!extend)
3605
3605
  return stack;
3606
- if ((0, import_utils20.isArray)(extend))
3606
+ if ((0, import_utils25.isArray)(extend))
3607
3607
  return extractArrayExtend(extend, stack);
3608
3608
  stack.push(extend);
3609
3609
  if (extend.extend)
@@ -3616,9 +3616,9 @@ var require_extendUtils = __commonJS({
3616
3616
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3617
3617
  continue;
3618
3618
  const objProp = obj[prop];
3619
- if ((0, import_utils20.isObject)(objProp)) {
3619
+ if ((0, import_utils25.isObject)(objProp)) {
3620
3620
  o[prop] = deepCloneExtend(objProp);
3621
- } else if ((0, import_utils20.isArray)(objProp)) {
3621
+ } else if ((0, import_utils25.isArray)(objProp)) {
3622
3622
  o[prop] = objProp.map((x) => x);
3623
3623
  } else
3624
3624
  o[prop] = objProp;
@@ -3633,14 +3633,14 @@ var require_extendUtils = __commonJS({
3633
3633
  const extendProp = extend[e];
3634
3634
  if (elementProp === void 0) {
3635
3635
  element[e] = extendProp;
3636
- } 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)) {
3637
3637
  deepMergeExtend(elementProp, extendProp);
3638
- } 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)) {
3639
3639
  element[e] = elementProp.concat(extendProp);
3640
- } 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)) {
3641
3641
  const obj = deepMergeExtend({}, elementProp);
3642
3642
  element[e] = deepMergeExtend(obj, extendProp);
3643
- } else if (elementProp === void 0 && (0, import_utils20.isFunction)(extendProp)) {
3643
+ } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
3644
3644
  element[e] = extendProp;
3645
3645
  }
3646
3646
  }
@@ -3653,7 +3653,7 @@ var require_extendUtils = __commonJS({
3653
3653
  };
3654
3654
  var fallbackStringExtend = (extend, context, options) => {
3655
3655
  const COMPONENTS = context && context.components || options.components;
3656
- if ((0, import_utils20.isString)(extend)) {
3656
+ if ((0, import_utils25.isString)(extend)) {
3657
3657
  console.log("extend", extend);
3658
3658
  console.log(COMPONENTS[extend]);
3659
3659
  if (COMPONENTS && COMPONENTS[extend]) {
@@ -3685,11 +3685,11 @@ var require_extendUtils = __commonJS({
3685
3685
  var replaceStringsWithComponents = (stack, context, options) => {
3686
3686
  const COMPONENTS = context && context.components || options.components;
3687
3687
  return stack.map((v) => {
3688
- if ((0, import_utils20.isString)(v)) {
3688
+ if ((0, import_utils25.isString)(v)) {
3689
3689
  const component = COMPONENTS[v];
3690
3690
  return component;
3691
3691
  }
3692
- if ((0, import_utils20.isString)(v.extend)) {
3692
+ if ((0, import_utils25.isString)(v.extend)) {
3693
3693
  v.extend = COMPONENTS[v.extend];
3694
3694
  return { ...getExtendMerged(v.extend), ...v };
3695
3695
  }
@@ -3725,15 +3725,15 @@ var require_extend = __commonJS({
3725
3725
  applyExtend: () => applyExtend
3726
3726
  });
3727
3727
  module2.exports = __toCommonJS2(extend_exports);
3728
- var import_utils20 = require_cjs();
3729
- var import_utils22 = require_utils();
3728
+ var import_utils25 = require_cjs();
3729
+ var import_utils26 = require_utils();
3730
3730
  var ENV2 = "development";
3731
3731
  var applyExtend = (element, parent, options = {}) => {
3732
- if ((0, import_utils20.isFunction)(element))
3733
- element = (0, import_utils20.exec)(element, parent);
3732
+ if ((0, import_utils25.isFunction)(element))
3733
+ element = (0, import_utils25.exec)(element, parent);
3734
3734
  let { extend, props: props4, context, __ref } = element;
3735
- extend = (0, import_utils22.fallbackStringExtend)(extend, context, options);
3736
- const extendStack = (0, import_utils22.getExtendStack)(extend);
3735
+ extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
3736
+ const extendStack = (0, import_utils26.getExtendStack)(extend);
3737
3737
  if (ENV2 !== "test" || ENV2 !== "development")
3738
3738
  delete element.extend;
3739
3739
  let childExtendStack = [];
@@ -3742,12 +3742,12 @@ var require_extend = __commonJS({
3742
3742
  if (!options.ignoreChildExtend) {
3743
3743
  if (props4 && props4.ignoreChildExtend)
3744
3744
  return;
3745
- childExtendStack = (0, import_utils22.getExtendStack)(parent.childExtend);
3745
+ childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend);
3746
3746
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3747
3747
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3748
3748
  const canExtendRecursive = element.key !== "__text";
3749
3749
  if (canExtendRecursive) {
3750
- const childExtendRecursiveStack = (0, import_utils22.getExtendStack)(parent.childExtendRecursive);
3750
+ const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive);
3751
3751
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3752
3752
  element.childExtendRecursive = parent.childExtendRecursive;
3753
3753
  }
@@ -3758,7 +3758,7 @@ var require_extend = __commonJS({
3758
3758
  const childExtendLength = childExtendStack.length;
3759
3759
  let stack = [];
3760
3760
  if (extendLength && childExtendLength) {
3761
- stack = (0, import_utils22.jointStacks)(extendStack, childExtendStack);
3761
+ stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
3762
3762
  } else if (extendLength) {
3763
3763
  stack = extendStack;
3764
3764
  } else if (childExtendLength) {
@@ -3766,20 +3766,20 @@ var require_extend = __commonJS({
3766
3766
  } else if (!options.extend)
3767
3767
  return element;
3768
3768
  if (options.extend) {
3769
- const defaultOptionsExtend = (0, import_utils22.getExtendStack)(options.extend);
3769
+ const defaultOptionsExtend = (0, import_utils26.getExtendStack)(options.extend);
3770
3770
  stack = [].concat(stack, defaultOptionsExtend);
3771
3771
  }
3772
3772
  if (__ref)
3773
3773
  __ref.__extend = stack;
3774
- const findAndReplaceStrings = (0, import_utils22.replaceStringsWithComponents)(stack, context, options);
3775
- 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);
3776
3776
  const COMPONENTS = context && context.components || options.components;
3777
- const component = (0, import_utils20.exec)(element.component || mergedExtend.component, element);
3777
+ const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
3778
3778
  if (component && COMPONENTS && COMPONENTS[component]) {
3779
- const componentExtend = (0, import_utils22.cloneAndMergeArrayExtend)((0, import_utils22.getExtendStack)(COMPONENTS[component]));
3780
- 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);
3781
3781
  }
3782
- return (0, import_utils22.deepMergeExtend)(element, mergedExtend);
3782
+ return (0, import_utils26.deepMergeExtend)(element, mergedExtend);
3783
3783
  };
3784
3784
  }
3785
3785
  });
@@ -3818,11 +3818,11 @@ var require_component = __commonJS({
3818
3818
  overwriteVariant: () => overwriteVariant
3819
3819
  });
3820
3820
  module2.exports = __toCommonJS2(component_exports);
3821
- var import_utils20 = require_cjs();
3821
+ var import_utils25 = require_cjs();
3822
3822
  var import_extend = require_extend();
3823
3823
  var ENV2 = "development";
3824
3824
  var checkIfKeyIsComponent = (key) => {
3825
- const isFirstKeyString = (0, import_utils20.isString)(key);
3825
+ const isFirstKeyString = (0, import_utils25.isString)(key);
3826
3826
  if (!isFirstKeyString)
3827
3827
  return;
3828
3828
  const firstCharKey = key.slice(0, 1);
@@ -3830,7 +3830,7 @@ var require_component = __commonJS({
3830
3830
  };
3831
3831
  var addAdditionalExtend = (newExtend, element) => {
3832
3832
  const { extend } = element;
3833
- const preserveExtend = (0, import_utils20.isArray)(extend) ? extend : [extend];
3833
+ const preserveExtend = (0, import_utils25.isArray)(extend) ? extend : [extend];
3834
3834
  return {
3835
3835
  ...element,
3836
3836
  extend: [newExtend].concat(preserveExtend)
@@ -3853,10 +3853,10 @@ var require_component = __commonJS({
3853
3853
  };
3854
3854
  } else if (extend) {
3855
3855
  addAdditionalExtend(extendKey, element);
3856
- } else if ((0, import_utils20.isFunction)(element)) {
3856
+ } else if ((0, import_utils25.isFunction)(element)) {
3857
3857
  return {
3858
3858
  extend: extendKey,
3859
- props: { ...(0, import_utils20.exec)(element, parent) }
3859
+ props: { ...(0, import_utils25.exec)(element, parent) }
3860
3860
  };
3861
3861
  }
3862
3862
  };
@@ -3869,8 +3869,8 @@ var require_component = __commonJS({
3869
3869
  return;
3870
3870
  const { components } = context;
3871
3871
  const { extend } = element;
3872
- const execExtend = (0, import_utils20.exec)(extend, element);
3873
- if ((0, import_utils20.isString)(execExtend)) {
3872
+ const execExtend = (0, import_utils25.exec)(extend, element);
3873
+ if ((0, import_utils25.isString)(execExtend)) {
3874
3874
  if (components[execExtend])
3875
3875
  element.extend = components[execExtend];
3876
3876
  else {
@@ -3883,29 +3883,29 @@ var require_component = __commonJS({
3883
3883
  }
3884
3884
  };
3885
3885
  var isVariant = (param) => {
3886
- if (!(0, import_utils20.isString)(param))
3886
+ if (!(0, import_utils25.isString)(param))
3887
3887
  return;
3888
3888
  const firstCharKey = param.slice(0, 1);
3889
3889
  return firstCharKey === ".";
3890
3890
  };
3891
3891
  var hasVariantProp = (element) => {
3892
3892
  const { props: props4 } = element;
3893
- 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))
3894
3894
  return true;
3895
3895
  };
3896
3896
  var overwriteVariant = (element, variant, variantProps) => {
3897
3897
  let variantElement = element[variant];
3898
3898
  if (!variantElement)
3899
3899
  return;
3900
- const props4 = (0, import_utils20.isObject)(variantProps) ? variantProps : {};
3901
- if ((0, import_utils20.isString)(variantElement)) {
3900
+ const props4 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
3901
+ if ((0, import_utils25.isString)(variantElement)) {
3902
3902
  variantElement = {
3903
3903
  extend: [{ props: props4 }, variantElement]
3904
3904
  };
3905
3905
  } else if (variantElement.extend) {
3906
3906
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
3907
3907
  }
3908
- return (0, import_utils20.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3908
+ return (0, import_utils25.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3909
3909
  };
3910
3910
  var applyVariant = (element) => {
3911
3911
  const { props: props4 } = element;
@@ -3980,8 +3980,8 @@ var require_iterate = __commonJS({
3980
3980
  throughUpdatedExec: () => throughUpdatedExec
3981
3981
  });
3982
3982
  module2.exports = __toCommonJS2(iterate_exports);
3983
- var import_utils20 = require_cjs();
3984
- var import_utils22 = require_utils();
3983
+ var import_utils25 = require_cjs();
3984
+ var import_utils26 = require_utils();
3985
3985
  var import_methods = require_methods2();
3986
3986
  var throughInitialExec = (element, exclude = {}) => {
3987
3987
  const { __ref: ref } = element;
@@ -3989,13 +3989,13 @@ var require_iterate = __commonJS({
3989
3989
  if (exclude[param])
3990
3990
  continue;
3991
3991
  const prop = element[param];
3992
- 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)) {
3993
3993
  ref.__exec[param] = prop;
3994
3994
  element[param] = prop(element, element.state);
3995
3995
  }
3996
3996
  }
3997
3997
  };
3998
- var throughUpdatedExec = (element, options = { excludes: import_utils22.METHODS_EXL }) => {
3998
+ var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
3999
3999
  const { __ref: ref } = element;
4000
4000
  const changes = {};
4001
4001
  for (const param in ref.__exec) {
@@ -4004,13 +4004,13 @@ var require_iterate = __commonJS({
4004
4004
  if (isDefinedParam)
4005
4005
  continue;
4006
4006
  const newExec = ref.__exec[param](element, element.state, element.context);
4007
- 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);
4008
4008
  if (prop && prop.node && execReturnsString) {
4009
- (0, import_utils22.overwrite)(prop, { text: newExec }, options);
4009
+ (0, import_utils26.overwrite)(prop, { text: newExec }, options);
4010
4010
  } else if (newExec !== prop) {
4011
- if ((0, import_utils22.checkIfKeyIsComponent)(param)) {
4012
- const { extend, ...newElem } = (0, import_utils22.extendizeByKey)(newExec, element, param);
4013
- (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);
4014
4014
  } else {
4015
4015
  ref.__cached[param] = changes[param] = prop;
4016
4016
  element[param] = newExec;
@@ -4022,16 +4022,16 @@ var require_iterate = __commonJS({
4022
4022
  var throughInitialDefine = (element) => {
4023
4023
  const { define, context, __ref: ref } = element;
4024
4024
  let defineObj = {};
4025
- const hasGlobalDefine = context && (0, import_utils20.isObject)(context.define);
4026
- if ((0, import_utils20.isObject)(define))
4025
+ const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
4026
+ if ((0, import_utils25.isObject)(define))
4027
4027
  defineObj = { ...define };
4028
4028
  if (hasGlobalDefine)
4029
4029
  defineObj = { ...defineObj, ...context.define };
4030
4030
  for (const param in defineObj) {
4031
4031
  let elementProp = element[param];
4032
- 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)) {
4033
4033
  ref.__exec[param] = elementProp;
4034
- const execParam2 = elementProp = (0, import_utils20.exec)(elementProp, element);
4034
+ const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
4035
4035
  if (execParam2) {
4036
4036
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4037
4037
  ref.__defineCache[param] = elementProp;
@@ -4047,15 +4047,15 @@ var require_iterate = __commonJS({
4047
4047
  const { context, define, __ref: ref } = element;
4048
4048
  const changes = {};
4049
4049
  let obj = {};
4050
- if ((0, import_utils20.isObject)(define))
4050
+ if ((0, import_utils25.isObject)(define))
4051
4051
  obj = { ...define };
4052
- if ((0, import_utils20.isObject)(context && context.define))
4052
+ if ((0, import_utils25.isObject)(context && context.define))
4053
4053
  obj = { ...obj, ...context.define };
4054
4054
  for (const param in obj) {
4055
4055
  const execParam = ref.__exec[param];
4056
4056
  if (execParam)
4057
4057
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4058
- const cached = (0, import_utils20.exec)(ref.__defineCache[param], element);
4058
+ const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
4059
4059
  const newExecParam = obj[param](cached, element, element.state, element.context);
4060
4060
  if (newExecParam)
4061
4061
  element[param] = newExecParam;
@@ -4091,7 +4091,7 @@ var require_applyParam = __commonJS({
4091
4091
  applyParam: () => applyParam
4092
4092
  });
4093
4093
  module2.exports = __toCommonJS2(applyParam_exports);
4094
- var import_utils20 = require_cjs();
4094
+ var import_utils25 = require_cjs();
4095
4095
  var import_mixins = require_mixins();
4096
4096
  var applyParam = (param, element, options) => {
4097
4097
  const { node: node2, context, __ref: ref } = element;
@@ -4104,7 +4104,7 @@ var require_applyParam = __commonJS({
4104
4104
  if (!ref.__if)
4105
4105
  return;
4106
4106
  if (isGlobalTransformer && !hasContextDefine) {
4107
- if ((0, import_utils20.isFunction)(isGlobalTransformer)) {
4107
+ if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
4108
4108
  isGlobalTransformer(prop, element, node2, options);
4109
4109
  return;
4110
4110
  }
@@ -4151,7 +4151,7 @@ var require_node2 = __commonJS({
4151
4151
  default: () => node_default
4152
4152
  });
4153
4153
  module2.exports = __toCommonJS2(node_exports);
4154
- var import_utils20 = require_cjs();
4154
+ var import_utils25 = require_cjs();
4155
4155
  var import_event = require_cjs3();
4156
4156
  var import_render = require_cjs4();
4157
4157
  var import_methods = require_methods2();
@@ -4159,7 +4159,7 @@ var require_node2 = __commonJS({
4159
4159
  var import_iterate = require_iterate();
4160
4160
  var import_mixins = require_mixins();
4161
4161
  var import_applyParam = require_applyParam();
4162
- var import_utils22 = require_utils();
4162
+ var import_utils26 = require_utils();
4163
4163
  var ENV2 = "development";
4164
4164
  var createNode = (element, options) => {
4165
4165
  let { node: node2, tag, __ref: ref } = element;
@@ -4176,23 +4176,23 @@ var require_node2 = __commonJS({
4176
4176
  }
4177
4177
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4178
4178
  node2.ref = element;
4179
- if ((0, import_utils20.isFunction)(node2.setAttribute))
4179
+ if ((0, import_utils25.isFunction)(node2.setAttribute))
4180
4180
  node2.setAttribute("key", element.key);
4181
4181
  }
4182
4182
  if (element.tag !== "string" || element.tag !== "fragment") {
4183
4183
  (0, import_iterate.throughInitialDefine)(element);
4184
4184
  (0, import_iterate.throughInitialExec)(element);
4185
- if (isNewNode && (0, import_utils20.isObject)(element.on))
4185
+ if (isNewNode && (0, import_utils25.isObject)(element.on))
4186
4186
  (0, import_event.applyEventsOnNode)(element);
4187
4187
  for (const param in element) {
4188
4188
  const prop = element[param];
4189
- 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]))
4190
4190
  continue;
4191
4191
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4192
4192
  if (isElement) {
4193
4193
  const { hasDefine, hasContextDefine } = isElement;
4194
4194
  if (element[param] && !hasDefine && !hasContextDefine) {
4195
- const createAsync = () => (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
4196
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4197
4197
  window.requestAnimationFrame(() => createAsync());
4198
4198
  } else
@@ -4233,7 +4233,7 @@ var require_methods3 = __commonJS({
4233
4233
  DEFAULT_METHODS: () => DEFAULT_METHODS
4234
4234
  });
4235
4235
  module2.exports = __toCommonJS2(methods_exports);
4236
- var import_utils20 = require_cjs();
4236
+ var import_utils25 = require_cjs();
4237
4237
  var DEFAULT_METHODS = {
4238
4238
  key: {},
4239
4239
  tag: {},
@@ -4254,7 +4254,7 @@ var require_methods3 = __commonJS({
4254
4254
  text: (element, state) => {
4255
4255
  element.ref.text = {
4256
4256
  tag: "text",
4257
- text: (0, import_utils20.exec)(element.text, element, state)
4257
+ text: (0, import_utils25.exec)(element.text, element, state)
4258
4258
  };
4259
4259
  },
4260
4260
  innerHTML: {},
@@ -4491,19 +4491,19 @@ var require_update2 = __commonJS({
4491
4491
  default: () => update_default
4492
4492
  });
4493
4493
  module2.exports = __toCommonJS2(update_exports);
4494
- var import_utils20 = require_cjs();
4494
+ var import_utils25 = require_cjs();
4495
4495
  var import_event = require_cjs3();
4496
4496
  var import_methods = require_methods2();
4497
4497
  var import_props = require_props();
4498
- var import_state2 = require_cjs5();
4499
- var import_utils22 = require_utils();
4498
+ var import_state3 = require_cjs5();
4499
+ var import_utils26 = require_utils();
4500
4500
  var import_create = __toESM2(require_create4(), 1);
4501
4501
  var import_iterate = require_iterate();
4502
4502
  var import_mixins = require_mixins();
4503
4503
  var import_applyParam = require_applyParam();
4504
4504
  var import_options3 = __toESM2(require_options(), 1);
4505
4505
  var snapshot = {
4506
- snapshotId: import_utils20.createSnapshotId
4506
+ snapshotId: import_utils25.createSnapshotId
4507
4507
  };
4508
4508
  var UPDATE_DEFAULT_OPTIONS = {
4509
4509
  stackChanges: false,
@@ -4511,7 +4511,7 @@ var require_update2 = __commonJS({
4511
4511
  preventRecursive: false,
4512
4512
  currentSnapshot: false,
4513
4513
  calleeElement: false,
4514
- excludes: import_utils22.METHODS_EXL
4514
+ excludes: import_utils26.METHODS_EXL
4515
4515
  };
4516
4516
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
4517
4517
  const element = this;
@@ -4520,14 +4520,14 @@ var require_update2 = __commonJS({
4520
4520
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
4521
4521
  return;
4522
4522
  if (!excludes)
4523
- (0, import_utils20.merge)(options, UPDATE_DEFAULT_OPTIONS);
4523
+ (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
4524
4524
  let ref = element.__ref;
4525
4525
  if (!ref)
4526
4526
  ref = element.__ref = {};
4527
4527
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
4528
4528
  if (snapshotHasUpdated)
4529
4529
  return;
4530
- if ((0, import_utils20.isString)(params) || (0, import_utils20.isNumber)(params)) {
4530
+ if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
4531
4531
  params = { text: params };
4532
4532
  }
4533
4533
  const ifFails = checkIfOnUpdate(element, parent, options);
@@ -4538,7 +4538,7 @@ var require_update2 = __commonJS({
4538
4538
  return;
4539
4539
  if (ref.__if && !options.preventPropsUpdate) {
4540
4540
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
4541
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils20.isFunction)(v));
4541
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
4542
4542
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
4543
4543
  if (props4)
4544
4544
  (0, import_props.updateProps)(props4, element, parent);
@@ -4551,11 +4551,11 @@ var require_update2 = __commonJS({
4551
4551
  if (initUpdateReturns === false)
4552
4552
  return element;
4553
4553
  }
4554
- 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);
4555
4555
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
4556
4556
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
4557
4557
  if (options.stackChanges && element.__stackChanges) {
4558
- 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));
4559
4559
  element.__stackChanges.push(stackChanges);
4560
4560
  }
4561
4561
  if (!ref.__if)
@@ -4566,16 +4566,16 @@ var require_update2 = __commonJS({
4566
4566
  for (const param in element) {
4567
4567
  const prop = element[param];
4568
4568
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
4569
- const isInPreventUpdate = (0, import_utils20.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4570
- const isInPreventDefineUpdate = (0, import_utils20.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4571
- 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))
4572
4572
  continue;
4573
4573
  if (options.preventStateUpdate === "once")
4574
4574
  options.preventStateUpdate = false;
4575
4575
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4576
4576
  if (isElement) {
4577
4577
  const { hasDefine, hasContextDefine } = isElement;
4578
- const canUpdate = (0, import_utils20.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4578
+ const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4579
4579
  if (!canUpdate)
4580
4580
  continue;
4581
4581
  const childUpdateCall = () => update.call(prop, params[prop], {
@@ -4584,7 +4584,7 @@ var require_update2 = __commonJS({
4584
4584
  calleeElement
4585
4585
  });
4586
4586
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
4587
- import_utils20.window.requestAnimationFrame(() => childUpdateCall());
4587
+ import_utils25.window.requestAnimationFrame(() => childUpdateCall());
4588
4588
  } else
4589
4589
  childUpdateCall();
4590
4590
  }
@@ -4608,7 +4608,7 @@ var require_update2 = __commonJS({
4608
4608
  return [snapshotOnCallee, calleeElement];
4609
4609
  };
4610
4610
  var checkIfOnUpdate = (element, parent, options) => {
4611
- if (!(0, import_utils20.isFunction)(element.if) || !element.state || !parent)
4611
+ if (!(0, import_utils25.isFunction)(element.if) || !element.state || !parent)
4612
4612
  return;
4613
4613
  const ref = element.__ref;
4614
4614
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -4625,7 +4625,7 @@ var require_update2 = __commonJS({
4625
4625
  element.state = ref.__state;
4626
4626
  }
4627
4627
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
4628
- 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)) {
4629
4629
  (0, import_event.applyEvent)(element.on.update, created, created.state);
4630
4630
  }
4631
4631
  return created;
@@ -4646,9 +4646,9 @@ var require_update2 = __commonJS({
4646
4646
  return;
4647
4647
  }
4648
4648
  const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
4649
- const shouldForceStateUpdate = (0, import_utils20.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4649
+ const shouldForceStateUpdate = (0, import_utils25.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4650
4650
  if (shouldForceStateUpdate) {
4651
- const execState = (0, import_utils20.exec)(stateKey, element);
4651
+ const execState = (0, import_utils25.exec)(stateKey, element);
4652
4652
  state.set(execState, {
4653
4653
  ...options,
4654
4654
  preventUpdate: true
@@ -4671,7 +4671,7 @@ var require_update2 = __commonJS({
4671
4671
  };
4672
4672
  var createStateUpdate = (element, parent, options) => {
4673
4673
  const __stateChildren = element.state.__children;
4674
- const newState = (0, import_state2.createState)(element, parent);
4674
+ const newState = (0, import_state3.createState)(element, parent);
4675
4675
  element.state = newState;
4676
4676
  for (const child in __stateChildren) {
4677
4677
  if (newState[child])
@@ -4720,7 +4720,7 @@ var require_set2 = __commonJS({
4720
4720
  addMethods: () => addMethods
4721
4721
  });
4722
4722
  module2.exports = __toCommonJS2(set_exports);
4723
- var import_utils20 = require_cjs();
4723
+ var import_utils25 = require_cjs();
4724
4724
  var import_set = __toESM2(require_set(), 1);
4725
4725
  var import_update = __toESM2(require_update2(), 1);
4726
4726
  var import__ = require_methods2();
@@ -4741,7 +4741,7 @@ var require_set2 = __commonJS({
4741
4741
  nextElement: import__.nextElement.bind(element),
4742
4742
  previousElement: import__.previousElement.bind(element)
4743
4743
  };
4744
- if ((0, import_utils20.isDevelopment)())
4744
+ if ((0, import_utils25.isDevelopment)())
4745
4745
  proto.log = import__.log.bind(element);
4746
4746
  Object.setPrototypeOf(element, proto);
4747
4747
  };
@@ -4789,7 +4789,7 @@ var require_create4 = __commonJS({
4789
4789
  var import_registry = require_cjs6();
4790
4790
  var import_event = require_cjs3();
4791
4791
  var import_render = require_cjs4();
4792
- var import_state2 = require_cjs5();
4792
+ var import_state3 = require_cjs5();
4793
4793
  var import_methods = require_methods2();
4794
4794
  var import_props = require_props();
4795
4795
  var import_extend = require_extend();
@@ -4797,7 +4797,7 @@ var require_create4 = __commonJS({
4797
4797
  var import_set = require_set2();
4798
4798
  var import_classList = require_classList();
4799
4799
  var import_iterate = require_iterate();
4800
- var import_utils20 = require_cjs();
4800
+ var import_utils25 = require_cjs();
4801
4801
  var import_options3 = __toESM2(require_options(), 1);
4802
4802
  var import_component = require_component();
4803
4803
  var ENV2 = "development";
@@ -4810,7 +4810,7 @@ var require_create4 = __commonJS({
4810
4810
  parent = redefineParent(element, parent, key);
4811
4811
  key = createKey(element, parent, key);
4812
4812
  const ref = addRef(element, parent, key);
4813
- ref.__initialProps = (0, import_utils20.deepClone)(element.props, []);
4813
+ ref.__initialProps = (0, import_utils25.deepClone)(element.props, []);
4814
4814
  applyContext(element, parent, options);
4815
4815
  (0, import_component.applyComponentFromContext)(element, parent, options);
4816
4816
  (0, import_extend.applyExtend)(element, parent, options);
@@ -4821,7 +4821,7 @@ var require_create4 = __commonJS({
4821
4821
  replaceOptions(element, parent, options);
4822
4822
  addCaching(element, parent);
4823
4823
  (0, import_set.addMethods)(element, parent);
4824
- (0, import_state2.createState)(element, parent);
4824
+ (0, import_state3.createState)(element, parent);
4825
4825
  createIfConditionFlag(element, parent);
4826
4826
  if (element.node && ref.__if) {
4827
4827
  return (0, import_render.assignNode)(element, parent, key);
@@ -4845,7 +4845,7 @@ var require_create4 = __commonJS({
4845
4845
  }
4846
4846
  return {};
4847
4847
  }
4848
- if ((0, import_utils20.isString)(key) && key.slice(0, 2 === "__")) {
4848
+ if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
4849
4849
  if (ENV2 === "test" || ENV2 === "development") {
4850
4850
  console.warn(key, "seems like to be in __ref");
4851
4851
  }
@@ -4872,7 +4872,7 @@ var require_create4 = __commonJS({
4872
4872
  var redefineParent = (element, parent, key, options) => {
4873
4873
  if (!parent)
4874
4874
  return import_tree.ROOT;
4875
- if ((0, import_utils20.isNode)(parent)) {
4875
+ if ((0, import_utils25.isNode)(parent)) {
4876
4876
  const parentNodeWrapper = { key: ":root", node: parent };
4877
4877
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
4878
4878
  return parentNodeWrapper;
@@ -4886,7 +4886,7 @@ var require_create4 = __commonJS({
4886
4886
  }
4887
4887
  };
4888
4888
  var createKey = (element, parent, key) => {
4889
- return ((0, import_utils20.exec)(key, element) || key || element.key || (0, import_utils20.generateKey)()).toString();
4889
+ return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
4890
4890
  };
4891
4891
  var addRef = (element, parent) => {
4892
4892
  if (element.__ref)
@@ -4916,7 +4916,7 @@ var require_create4 = __commonJS({
4916
4916
  (0, import_event.triggerEventOn)("render", element, options);
4917
4917
  };
4918
4918
  var checkIfPrimitive = (element) => {
4919
- return (0, import_utils20.is)(element)("string", "number");
4919
+ return (0, import_utils25.is)(element)("string", "number");
4920
4920
  };
4921
4921
  var applyValueAsText = (element, parent, key) => {
4922
4922
  const extendTag = element.extend && element.extend.tag;
@@ -4935,7 +4935,7 @@ var require_create4 = __commonJS({
4935
4935
  };
4936
4936
  var createIfConditionFlag = (element, parent) => {
4937
4937
  const { __ref: ref } = element;
4938
- if ((0, import_utils20.isFunction)(element.if)) {
4938
+ if ((0, import_utils25.isFunction)(element.if)) {
4939
4939
  const ifPassed = element.if(element, element.state);
4940
4940
  if (!ifPassed) {
4941
4941
  const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
@@ -5002,9 +5002,9 @@ var require_create4 = __commonJS({
5002
5002
  ref2.__children = [];
5003
5003
  }
5004
5004
  (0, import_set.addMethods)(element, parent);
5005
- (0, import_state2.createState)(element, parent);
5005
+ (0, import_state3.createState)(element, parent);
5006
5006
  const ref = __ref;
5007
- if ((0, import_utils20.isFunction)(element.if)) {
5007
+ if ((0, import_utils25.isFunction)(element.if)) {
5008
5008
  const ifPassed = element.if(element, element.state);
5009
5009
  if (!ifPassed) {
5010
5010
  delete ref.__if;
@@ -5023,7 +5023,7 @@ var require_create4 = __commonJS({
5023
5023
  (0, import_iterate.throughInitialDefine)(element);
5024
5024
  (0, import_iterate.throughInitialExec)(element);
5025
5025
  for (const k in element) {
5026
- 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))
5027
5027
  continue;
5028
5028
  const hasDefine = element.define && element.define[k];
5029
5029
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -5031,7 +5031,7 @@ var require_create4 = __commonJS({
5031
5031
  if (import_mixins.registry[k] && !optionsHasDefine) {
5032
5032
  continue;
5033
5033
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
5034
- create2((0, import_utils20.exec)(element[k], element), element, k, options);
5034
+ create2((0, import_utils25.exec)(element[k], element), element, k, options);
5035
5035
  }
5036
5036
  }
5037
5037
  }
@@ -5429,16 +5429,16 @@ var require_cjs9 = __commonJS({
5429
5429
  __export22(types_exports, {
5430
5430
  TYPES: () => TYPES,
5431
5431
  is: () => is,
5432
- isArray: () => isArray6,
5432
+ isArray: () => isArray62,
5433
5433
  isBoolean: () => isBoolean,
5434
5434
  isDefined: () => isDefined2,
5435
5435
  isFunction: () => isFunction22,
5436
- isNot: () => isNot2,
5436
+ isNot: () => isNot3,
5437
5437
  isNull: () => isNull,
5438
5438
  isNumber: () => isNumber2,
5439
5439
  isObject: () => isObject72,
5440
- isObjectLike: () => isObjectLike3,
5441
- isString: () => isString9,
5440
+ isObjectLike: () => isObjectLike32,
5441
+ isString: () => isString92,
5442
5442
  isUndefined: () => isUndefined3
5443
5443
  });
5444
5444
  module22.exports = __toCommonJS22(types_exports);
@@ -5448,32 +5448,32 @@ var require_cjs9 = __commonJS({
5448
5448
  return false;
5449
5449
  return typeof arg === "object" && arg.constructor === Object;
5450
5450
  };
5451
- var isString9 = (arg) => typeof arg === "string";
5451
+ var isString92 = (arg) => typeof arg === "string";
5452
5452
  var isNumber2 = (arg) => typeof arg === "number";
5453
5453
  var isFunction22 = (arg) => typeof arg === "function";
5454
5454
  var isBoolean = (arg) => arg === true || arg === false;
5455
5455
  var isNull = (arg) => arg === null;
5456
- var isArray6 = (arg) => Array.isArray(arg);
5457
- var isObjectLike3 = (arg) => {
5456
+ var isArray62 = (arg) => Array.isArray(arg);
5457
+ var isObjectLike32 = (arg) => {
5458
5458
  if (arg === null)
5459
5459
  return false;
5460
5460
  return typeof arg === "object";
5461
5461
  };
5462
5462
  var isDefined2 = (arg) => {
5463
- 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);
5464
5464
  };
5465
5465
  var isUndefined3 = (arg) => {
5466
5466
  return arg === void 0;
5467
5467
  };
5468
5468
  var TYPES = {
5469
5469
  boolean: isBoolean,
5470
- array: isArray6,
5470
+ array: isArray62,
5471
5471
  object: isObject72,
5472
- string: isString9,
5472
+ string: isString92,
5473
5473
  number: isNumber2,
5474
5474
  null: isNull,
5475
5475
  function: isFunction22,
5476
- objectLike: isObjectLike3,
5476
+ objectLike: isObjectLike32,
5477
5477
  node: import_node.isNode,
5478
5478
  htmlElement: import_node.isHtmlElement,
5479
5479
  defined: isDefined2
@@ -5483,7 +5483,7 @@ var require_cjs9 = __commonJS({
5483
5483
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
5484
5484
  };
5485
5485
  };
5486
- var isNot2 = (arg) => {
5486
+ var isNot3 = (arg) => {
5487
5487
  return (...args) => {
5488
5488
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
5489
5489
  };
@@ -5674,10 +5674,10 @@ var require_cjs9 = __commonJS({
5674
5674
  deepMerge: () => deepMerge32,
5675
5675
  deepStringify: () => deepStringify,
5676
5676
  detachFunctionsFromObject: () => detachFunctionsFromObject,
5677
- diff: () => diff2,
5677
+ diff: () => diff3,
5678
5678
  diffArrays: () => diffArrays,
5679
5679
  diffObjects: () => diffObjects,
5680
- exec: () => exec4,
5680
+ exec: () => exec5,
5681
5681
  flattenRecursive: () => flattenRecursive,
5682
5682
  isEqualDeep: () => isEqualDeep2,
5683
5683
  map: () => map2,
@@ -5687,7 +5687,7 @@ var require_cjs9 = __commonJS({
5687
5687
  objectToString: () => objectToString,
5688
5688
  overwrite: () => overwrite,
5689
5689
  overwriteDeep: () => overwriteDeep2,
5690
- overwriteShallow: () => overwriteShallow2,
5690
+ overwriteShallow: () => overwriteShallow3,
5691
5691
  removeFromObject: () => removeFromObject,
5692
5692
  stringToObject: () => stringToObject
5693
5693
  });
@@ -5696,7 +5696,7 @@ var require_cjs9 = __commonJS({
5696
5696
  var import_types = require_types2();
5697
5697
  var import_array = require_array2();
5698
5698
  var import_string = require_string2();
5699
- var exec4 = (param, element, state, context) => {
5699
+ var exec5 = (param, element, state, context) => {
5700
5700
  if ((0, import_types.isFunction)(param)) {
5701
5701
  return param(
5702
5702
  element,
@@ -5708,7 +5708,7 @@ var require_cjs9 = __commonJS({
5708
5708
  };
5709
5709
  var map2 = (obj, extention, element) => {
5710
5710
  for (const e in extention) {
5711
- obj[e] = exec4(extention[e], element);
5711
+ obj[e] = exec5(extention[e], element);
5712
5712
  }
5713
5713
  };
5714
5714
  var merge5 = (element, obj, excludeFrom = []) => {
@@ -5943,7 +5943,7 @@ var require_cjs9 = __commonJS({
5943
5943
  const objToDiffProp = objToDiff[e];
5944
5944
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
5945
5945
  cache2[e] = {};
5946
- diff2(originalProp, objToDiffProp, cache2[e]);
5946
+ diff3(originalProp, objToDiffProp, cache2[e]);
5947
5947
  } else if (objToDiffProp !== void 0) {
5948
5948
  cache2[e] = objToDiffProp;
5949
5949
  }
@@ -5956,7 +5956,7 @@ var require_cjs9 = __commonJS({
5956
5956
  } else {
5957
5957
  const diffArr = [];
5958
5958
  for (let i2 = 0; i2 < original.length; i2++) {
5959
- const diffObj = diff2(original[i2], objToDiff[i2]);
5959
+ const diffObj = diff3(original[i2], objToDiff[i2]);
5960
5960
  if (Object.keys(diffObj).length > 0) {
5961
5961
  diffArr.push(diffObj);
5962
5962
  }
@@ -5967,7 +5967,7 @@ var require_cjs9 = __commonJS({
5967
5967
  }
5968
5968
  return cache2;
5969
5969
  };
5970
- var diff2 = (original, objToDiff, cache2 = {}) => {
5970
+ var diff3 = (original, objToDiff, cache2 = {}) => {
5971
5971
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
5972
5972
  cache2 = [];
5973
5973
  diffArrays(original, objToDiff, cache2);
@@ -5991,7 +5991,7 @@ var require_cjs9 = __commonJS({
5991
5991
  }
5992
5992
  return changes;
5993
5993
  };
5994
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
5994
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
5995
5995
  for (const e in params) {
5996
5996
  if (excludeFrom.includes(e) || e.startsWith("__"))
5997
5997
  continue;
@@ -6418,28 +6418,28 @@ var require_cjs9 = __commonJS({
6418
6418
  ANIMATION: () => ANIMATION2,
6419
6419
  BREAKPOINTS: () => BREAKPOINTS,
6420
6420
  CASES: () => CASES,
6421
- COLOR: () => COLOR2,
6422
- CONFIG: () => CONFIG3,
6421
+ COLOR: () => COLOR3,
6422
+ CONFIG: () => CONFIG4,
6423
6423
  CSS_VARS: () => CSS_VARS,
6424
6424
  DEVICES: () => DEVICES,
6425
6425
  DOCUMENT: () => DOCUMENT,
6426
6426
  FACTORY: () => FACTORY,
6427
- FONT: () => FONT,
6427
+ FONT: () => FONT2,
6428
6428
  FONT_FACE: () => FONT_FACE,
6429
- FONT_FAMILY: () => FONT_FAMILY,
6429
+ FONT_FAMILY: () => FONT_FAMILY2,
6430
6430
  FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
6431
- GRADIENT: () => GRADIENT,
6431
+ GRADIENT: () => GRADIENT2,
6432
6432
  ICONS: () => ICONS,
6433
6433
  MEDIA: () => MEDIA,
6434
6434
  RESET: () => RESET,
6435
6435
  SEQUENCE: () => SEQUENCE,
6436
- SPACING: () => SPACING,
6436
+ SPACING: () => SPACING2,
6437
6437
  SVG: () => SVG,
6438
6438
  SVG_DATA: () => SVG_DATA,
6439
6439
  TEMPLATES: () => TEMPLATES,
6440
- THEME: () => THEME,
6440
+ THEME: () => THEME2,
6441
6441
  TIMING: () => TIMING,
6442
- TYPOGRAPHY: () => TYPOGRAPHY,
6442
+ TYPOGRAPHY: () => TYPOGRAPHY2,
6443
6443
  UNIT: () => UNIT,
6444
6444
  VALUE_TRANSFORMERS: () => VALUE_TRANSFORMERS,
6445
6445
  activateConfig: () => activateConfig,
@@ -6460,27 +6460,27 @@ var require_cjs9 = __commonJS({
6460
6460
  generateSequence: () => generateSequence,
6461
6461
  generateSprite: () => generateSprite,
6462
6462
  generateSubSequence: () => generateSubSequence,
6463
- getActiveConfig: () => getActiveConfig3,
6464
- getColor: () => getColor2,
6463
+ getActiveConfig: () => getActiveConfig4,
6464
+ getColor: () => getColor3,
6465
6465
  getColorShade: () => getColorShade,
6466
6466
  getDefaultOrFirstKey: () => getDefaultOrFirstKey,
6467
6467
  getFontFace: () => getFontFace,
6468
6468
  getFontFaceEach: () => getFontFaceEach,
6469
6469
  getFontFaceEachString: () => getFontFaceEachString,
6470
6470
  getFontFaceString: () => getFontFaceString2,
6471
- getFontFamily: () => getFontFamily2,
6471
+ getFontFamily: () => getFontFamily3,
6472
6472
  getFontFormat: () => getFontFormat,
6473
- getFontSizeByKey: () => getFontSizeByKey2,
6474
- getMediaColor: () => getMediaColor3,
6475
- getMediaTheme: () => getMediaTheme2,
6473
+ getFontSizeByKey: () => getFontSizeByKey3,
6474
+ getMediaColor: () => getMediaColor5,
6475
+ getMediaTheme: () => getMediaTheme3,
6476
6476
  getRgbTone: () => getRgbTone,
6477
6477
  getSequenceValue: () => getSequenceValue,
6478
6478
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
6479
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
6480
- getSpacingByKey: () => getSpacingByKey3,
6479
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
6480
+ getSpacingByKey: () => getSpacingByKey5,
6481
6481
  getTheme: () => getTheme,
6482
- getTimingByKey: () => getTimingByKey2,
6483
- getTimingFunction: () => getTimingFunction3,
6482
+ getTimingByKey: () => getTimingByKey3,
6483
+ getTimingFunction: () => getTimingFunction5,
6484
6484
  hexToRgb: () => hexToRgb,
6485
6485
  hexToRgbArray: () => hexToRgbArray,
6486
6486
  hexToRgba: () => hexToRgba,
@@ -6513,14 +6513,14 @@ var require_cjs9 = __commonJS({
6513
6513
  setTheme: () => setTheme,
6514
6514
  setValue: () => setValue,
6515
6515
  setVariables: () => setVariables,
6516
- splitTransition: () => splitTransition2,
6517
- transformBackgroundImage: () => transformBackgroundImage2,
6518
- transformBorder: () => transformBorder2,
6519
- transformDuration: () => transformDuration2,
6520
- transformShadow: () => transformShadow2,
6521
- transformTextStroke: () => transformTextStroke2,
6516
+ splitTransition: () => splitTransition3,
6517
+ transformBackgroundImage: () => transformBackgroundImage3,
6518
+ transformBorder: () => transformBorder3,
6519
+ transformDuration: () => transformDuration3,
6520
+ transformShadow: () => transformShadow3,
6521
+ transformTextStroke: () => transformTextStroke3,
6522
6522
  transformTransition: () => transformTransition,
6523
- transfromGap: () => transfromGap2
6523
+ transfromGap: () => transfromGap3
6524
6524
  });
6525
6525
  module2.exports = __toCommonJS2(src_exports2);
6526
6526
  var utils_exports = {};
@@ -6563,7 +6563,7 @@ var require_cjs9 = __commonJS({
6563
6563
  setVariables: () => setVariables
6564
6564
  });
6565
6565
  var import_globals2 = __toESM2(require_cjs13(), 1);
6566
- var import_utils20 = __toESM2(require_cjs22(), 1);
6566
+ var import_utils25 = __toESM2(require_cjs22(), 1);
6567
6567
  var ENV2 = "development";
6568
6568
  var colorStringToRgbaArray = (color) => {
6569
6569
  if (color === "")
@@ -6691,9 +6691,9 @@ var require_cjs9 = __commonJS({
6691
6691
  return `rgba(${arr})`;
6692
6692
  };
6693
6693
  var getRgbTone = (rgb, tone) => {
6694
- if ((0, import_utils20.isString)(rgb))
6694
+ if ((0, import_utils25.isString)(rgb))
6695
6695
  rgb = rgb.split(", ").map((v) => parseFloat(v));
6696
- if ((0, import_utils20.isNumber)(tone))
6696
+ if ((0, import_utils25.isNumber)(tone))
6697
6697
  tone += "";
6698
6698
  const toHex = rgbArrayToHex(rgb);
6699
6699
  const abs2 = tone.slice(0, 1);
@@ -6758,7 +6758,7 @@ var require_cjs9 = __commonJS({
6758
6758
  };
6759
6759
  var import_utils52 = __toESM2(require_cjs22(), 1);
6760
6760
  var import_utils32 = __toESM2(require_cjs22());
6761
- var import_utils22 = __toESM2(require_cjs22());
6761
+ var import_utils26 = __toESM2(require_cjs22());
6762
6762
  var toCamelCase2 = (str) => {
6763
6763
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
6764
6764
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -6779,25 +6779,25 @@ var require_cjs9 = __commonJS({
6779
6779
  ANIMATION: () => ANIMATION2,
6780
6780
  BREAKPOINTS: () => BREAKPOINTS,
6781
6781
  CASES: () => CASES,
6782
- COLOR: () => COLOR2,
6782
+ COLOR: () => COLOR3,
6783
6783
  DEVICES: () => DEVICES,
6784
6784
  DOCUMENT: () => DOCUMENT,
6785
- FONT: () => FONT,
6785
+ FONT: () => FONT2,
6786
6786
  FONT_FACE: () => FONT_FACE,
6787
- FONT_FAMILY: () => FONT_FAMILY,
6787
+ FONT_FAMILY: () => FONT_FAMILY2,
6788
6788
  FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
6789
- GRADIENT: () => GRADIENT,
6789
+ GRADIENT: () => GRADIENT2,
6790
6790
  ICONS: () => ICONS,
6791
6791
  MEDIA: () => MEDIA,
6792
6792
  RESET: () => RESET,
6793
6793
  SEQUENCE: () => SEQUENCE,
6794
- SPACING: () => SPACING,
6794
+ SPACING: () => SPACING2,
6795
6795
  SVG: () => SVG,
6796
6796
  SVG_DATA: () => SVG_DATA,
6797
6797
  TEMPLATES: () => TEMPLATES,
6798
- THEME: () => THEME,
6798
+ THEME: () => THEME2,
6799
6799
  TIMING: () => TIMING,
6800
- TYPOGRAPHY: () => TYPOGRAPHY,
6800
+ TYPOGRAPHY: () => TYPOGRAPHY2,
6801
6801
  UNIT: () => UNIT
6802
6802
  });
6803
6803
  var SEQUENCE = {
@@ -6844,9 +6844,9 @@ var require_cjs9 = __commonJS({
6844
6844
  scales: {},
6845
6845
  vars: {}
6846
6846
  };
6847
- var TYPOGRAPHY = defaultProps;
6848
- var FONT = {};
6849
- var FONT_FAMILY = {};
6847
+ var TYPOGRAPHY2 = defaultProps;
6848
+ var FONT2 = {};
6849
+ var FONT_FAMILY2 = {};
6850
6850
  var FONT_FAMILY_TYPES = {
6851
6851
  "sans-serif": "Helvetica, Arial, sans-serif, --system-default",
6852
6852
  serif: "Times New Roman, Georgia, serif, --system-default",
@@ -6880,7 +6880,7 @@ var require_cjs9 = __commonJS({
6880
6880
  print: "print"
6881
6881
  };
6882
6882
  var defaultProps2 = {
6883
- base: TYPOGRAPHY.base,
6883
+ base: TYPOGRAPHY2.base,
6884
6884
  type: "spacing",
6885
6885
  ratio: SEQUENCE.phi,
6886
6886
  range: [-5, 15],
@@ -6890,10 +6890,10 @@ var require_cjs9 = __commonJS({
6890
6890
  scales: {},
6891
6891
  vars: {}
6892
6892
  };
6893
- var SPACING = defaultProps2;
6894
- var COLOR2 = {};
6895
- var GRADIENT = {};
6896
- var THEME = {};
6893
+ var SPACING2 = defaultProps2;
6894
+ var COLOR3 = {};
6895
+ var GRADIENT2 = {};
6896
+ var THEME2 = {};
6897
6897
  var ICONS = {};
6898
6898
  var defaultProps3 = {
6899
6899
  default: 150,
@@ -6939,17 +6939,17 @@ var require_cjs9 = __commonJS({
6939
6939
  var TEMPLATES = {};
6940
6940
  var RESET = {};
6941
6941
  var CSS_VARS = {};
6942
- var CONFIG3 = {
6942
+ var CONFIG4 = {
6943
6943
  verbose: false,
6944
6944
  useVariable: true,
6945
6945
  useReset: true,
6946
6946
  CSS_VARS,
6947
6947
  ...defaultConfig_exports
6948
6948
  };
6949
- var cachedConfig = (0, import_utils42.deepClone)(CONFIG3);
6949
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
6950
6950
  var FACTORY = {
6951
6951
  active: "0",
6952
- 0: CONFIG3
6952
+ 0: CONFIG4
6953
6953
  };
6954
6954
  var activateConfig = (def) => {
6955
6955
  if ((0, import_utils42.isDefined)(def)) {
@@ -6957,7 +6957,7 @@ var require_cjs9 = __commonJS({
6957
6957
  }
6958
6958
  return FACTORY[def || FACTORY.active];
6959
6959
  };
6960
- var getActiveConfig3 = (def) => {
6960
+ var getActiveConfig4 = (def) => {
6961
6961
  return FACTORY[def || FACTORY.active];
6962
6962
  };
6963
6963
  var setActiveConfig = (newConfig) => {
@@ -7011,8 +7011,8 @@ var require_cjs9 = __commonJS({
7011
7011
  var generateSubSequence = (props4, sequenceProps) => {
7012
7012
  const { key, base, value: value2, ratio, variable, index } = props4;
7013
7013
  const next2 = value2 * ratio;
7014
- const diff2 = next2 - value2;
7015
- const smallscale = diff2 / 1.618;
7014
+ const diff3 = next2 - value2;
7015
+ const smallscale = diff3 / 1.618;
7016
7016
  const valueRounded = ~~value2;
7017
7017
  const nextRounded = ~~next2;
7018
7018
  const diffRounded = nextRounded - valueRounded;
@@ -7066,7 +7066,7 @@ var require_cjs9 = __commonJS({
7066
7066
  return sequenceProps;
7067
7067
  };
7068
7068
  var getSequenceValue = (value2 = "A", sequenceProps) => {
7069
- const CONFIG22 = getActiveConfig3();
7069
+ const CONFIG22 = getActiveConfig4();
7070
7070
  const { UNIT: UNIT2 } = CONFIG22;
7071
7071
  const {
7072
7072
  sequence,
@@ -7136,7 +7136,7 @@ var require_cjs9 = __commonJS({
7136
7136
  };
7137
7137
  var import_utils72 = __toESM2(require_cjs22(), 1);
7138
7138
  var setVariables = (result, key) => {
7139
- const CONFIG22 = getActiveConfig3();
7139
+ const CONFIG22 = getActiveConfig4();
7140
7140
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7141
7141
  if ((0, import_utils72.isObjectLike)(result.value)) {
7142
7142
  } else {
@@ -7144,7 +7144,7 @@ var require_cjs9 = __commonJS({
7144
7144
  }
7145
7145
  };
7146
7146
  var applySequenceVars = (props4, mediaName, options = {}) => {
7147
- const CONFIG22 = getActiveConfig3();
7147
+ const CONFIG22 = getActiveConfig4();
7148
7148
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
7149
7149
  const unit = props4.unit || UNIT2.default;
7150
7150
  const { sequence, scales } = props4;
@@ -7174,7 +7174,7 @@ var require_cjs9 = __commonJS({
7174
7174
  };
7175
7175
  var import_utils82 = __toESM2(require_cjs22(), 1);
7176
7176
  var generateSprite = (icons) => {
7177
- const CONFIG22 = getActiveConfig3();
7177
+ const CONFIG22 = getActiveConfig4();
7178
7178
  let sprite = "";
7179
7179
  for (const key in icons) {
7180
7180
  if (CONFIG22.__svg_cache[key])
@@ -7239,16 +7239,16 @@ var require_cjs9 = __commonJS({
7239
7239
  applySpacingSequence: () => applySpacingSequence,
7240
7240
  applyTimingSequence: () => applyTimingSequence,
7241
7241
  applyTypographySequence: () => applyTypographySequence,
7242
- getColor: () => getColor2,
7243
- getFontFamily: () => getFontFamily2,
7244
- getFontSizeByKey: () => getFontSizeByKey2,
7245
- getMediaColor: () => getMediaColor3,
7246
- getMediaTheme: () => getMediaTheme2,
7247
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
7248
- getSpacingByKey: () => getSpacingByKey3,
7242
+ getColor: () => getColor3,
7243
+ getFontFamily: () => getFontFamily3,
7244
+ getFontSizeByKey: () => getFontSizeByKey3,
7245
+ getMediaColor: () => getMediaColor5,
7246
+ getMediaTheme: () => getMediaTheme3,
7247
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
7248
+ getSpacingByKey: () => getSpacingByKey5,
7249
7249
  getTheme: () => getTheme,
7250
- getTimingByKey: () => getTimingByKey2,
7251
- getTimingFunction: () => getTimingFunction3,
7250
+ getTimingByKey: () => getTimingByKey3,
7251
+ getTimingFunction: () => getTimingFunction5,
7252
7252
  runThroughMedia: () => runThroughMedia,
7253
7253
  setColor: () => setColor,
7254
7254
  setFont: () => setFont,
@@ -7260,8 +7260,8 @@ var require_cjs9 = __commonJS({
7260
7260
  setTheme: () => setTheme
7261
7261
  });
7262
7262
  var import_utils92 = __toESM2(require_cjs22(), 1);
7263
- var getColor2 = (value2, key, config) => {
7264
- const CONFIG22 = config || getActiveConfig3();
7263
+ var getColor3 = (value2, key, config) => {
7264
+ const CONFIG22 = config || getActiveConfig4();
7265
7265
  if (!(0, import_utils92.isString)(value2)) {
7266
7266
  if (CONFIG22.verbose)
7267
7267
  console.warn(value2, "- type for color is not valid");
@@ -7272,8 +7272,8 @@ var require_cjs9 = __commonJS({
7272
7272
  if (key && value2[key])
7273
7273
  value2 = value2[key];
7274
7274
  const [name, alpha, tone] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
7275
- const { COLOR: COLOR22, GRADIENT: GRADIENT2 } = CONFIG22;
7276
- let val = COLOR22[name] || GRADIENT2[name];
7275
+ const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
7276
+ let val = COLOR22[name] || GRADIENT22[name];
7277
7277
  if (!val) {
7278
7278
  if (CONFIG22.verbose)
7279
7279
  console.warn("Can't find color ", name);
@@ -7299,8 +7299,8 @@ var require_cjs9 = __commonJS({
7299
7299
  return `rgba(${rgb}, ${alpha})`;
7300
7300
  return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
7301
7301
  };
7302
- var getMediaColor3 = (value2, globalTheme, config) => {
7303
- const CONFIG22 = config || getActiveConfig3();
7302
+ var getMediaColor5 = (value2, globalTheme, config) => {
7303
+ const CONFIG22 = config || getActiveConfig4();
7304
7304
  if (!globalTheme)
7305
7305
  globalTheme = CONFIG22.globalTheme;
7306
7306
  if (!(0, import_utils92.isString)(value2)) {
@@ -7311,20 +7311,20 @@ var require_cjs9 = __commonJS({
7311
7311
  if (value2.slice(0, 2) === "--")
7312
7312
  return `var(${value2})`;
7313
7313
  const [name] = (0, import_utils92.isArray)(value2) ? value2 : value2.split(" ");
7314
- const { COLOR: COLOR22, GRADIENT: GRADIENT2 } = CONFIG22;
7315
- const val = COLOR22[name] || GRADIENT2[name];
7314
+ const { COLOR: COLOR22, GRADIENT: GRADIENT22 } = CONFIG22;
7315
+ const val = COLOR22[name] || GRADIENT22[name];
7316
7316
  const isObj = (0, import_utils92.isObject)(val);
7317
7317
  if (isObj && val.value)
7318
- return getColor2(value2, `@${globalTheme}`, config);
7318
+ return getColor3(value2, `@${globalTheme}`, config);
7319
7319
  else if (isObj) {
7320
7320
  if (globalTheme)
7321
- return getColor2(value2, `@${globalTheme}`, config);
7321
+ return getColor3(value2, `@${globalTheme}`, config);
7322
7322
  else {
7323
7323
  const obj = {};
7324
7324
  for (const mediaName in val) {
7325
7325
  const query = CONFIG22.MEDIA[mediaName.slice(1)];
7326
7326
  const media = `@media screen and ${query}`;
7327
- obj[media] = getColor2(value2, mediaName, config);
7327
+ obj[media] = getColor3(value2, mediaName, config);
7328
7328
  }
7329
7329
  return obj;
7330
7330
  }
@@ -7335,9 +7335,9 @@ var require_cjs9 = __commonJS({
7335
7335
  }
7336
7336
  };
7337
7337
  var setColor = (val, key, suffix) => {
7338
- const CONFIG22 = getActiveConfig3();
7338
+ const CONFIG22 = getActiveConfig4();
7339
7339
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7340
- val = getColor2(val.slice(2));
7340
+ val = getColor3(val.slice(2));
7341
7341
  if ((0, import_utils92.isArray)(val)) {
7342
7342
  return {
7343
7343
  "@light": setColor(val[0], key, "light"),
@@ -7366,9 +7366,9 @@ var require_cjs9 = __commonJS({
7366
7366
  };
7367
7367
  };
7368
7368
  var setGradient = (val, key, suffix) => {
7369
- const CONFIG22 = getActiveConfig3();
7369
+ const CONFIG22 = getActiveConfig4();
7370
7370
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7371
- val = getColor2(val.slice(2));
7371
+ val = getColor3(val.slice(2));
7372
7372
  if ((0, import_utils92.isArray)(val)) {
7373
7373
  return {
7374
7374
  "@light": setGradient(val[0], key, "light"),
@@ -7398,7 +7398,7 @@ var require_cjs9 = __commonJS({
7398
7398
  keys.map((key) => {
7399
7399
  const conditions = ["color", "Color", "background", "border"];
7400
7400
  const isColor = conditions.some((k) => key.includes(k));
7401
- return value2[key] = isColor ? getColor2(theme[key]) : theme[key];
7401
+ return value2[key] = isColor ? getColor3(theme[key]) : theme[key];
7402
7402
  });
7403
7403
  return value2;
7404
7404
  };
@@ -7409,13 +7409,13 @@ var require_cjs9 = __commonJS({
7409
7409
  return theme.value;
7410
7410
  };
7411
7411
  var getTheme = (value2, modifier) => {
7412
- const CONFIG22 = getActiveConfig3();
7412
+ const CONFIG22 = getActiveConfig4();
7413
7413
  if (CONFIG22.useVariable)
7414
- return getMediaTheme2(value2, modifier);
7415
- const { THEME: THEME2 } = CONFIG22;
7414
+ return getMediaTheme3(value2, modifier);
7415
+ const { THEME: THEME22 } = CONFIG22;
7416
7416
  if ((0, import_utils112.isString)(value2)) {
7417
7417
  const [theme, subtheme] = value2.split(" ");
7418
- const isOurTheme = THEME2[theme];
7418
+ const isOurTheme = THEME22[theme];
7419
7419
  if (isOurTheme) {
7420
7420
  if (!subtheme && !modifier)
7421
7421
  return getThemeValue(isOurTheme);
@@ -7425,7 +7425,7 @@ var require_cjs9 = __commonJS({
7425
7425
  if ((0, import_utils112.isObjectLike)(value2) && value2[1]) {
7426
7426
  const themeName = value2[0];
7427
7427
  const subThemeName = value2[1];
7428
- const { helpers, media, state } = THEME2[themeName];
7428
+ const { helpers, media, state } = THEME22[themeName];
7429
7429
  if (media && media[subThemeName])
7430
7430
  return getThemeValue(media[subThemeName]);
7431
7431
  if (helpers && helpers[subThemeName])
@@ -7488,7 +7488,7 @@ var require_cjs9 = __commonJS({
7488
7488
  return theme;
7489
7489
  };
7490
7490
  var setHelpers = (theme, value2) => {
7491
- const CONFIG22 = getActiveConfig3();
7491
+ const CONFIG22 = getActiveConfig4();
7492
7492
  const { helpers } = theme;
7493
7493
  if (!helpers)
7494
7494
  return;
@@ -7504,7 +7504,7 @@ var require_cjs9 = __commonJS({
7504
7504
  return theme;
7505
7505
  };
7506
7506
  var setTheme = (val, key) => {
7507
- const CONFIG22 = getActiveConfig3();
7507
+ const CONFIG22 = getActiveConfig4();
7508
7508
  if (CONFIG22.useVariable)
7509
7509
  return setMediaTheme(val, key);
7510
7510
  const { state, media, helpers } = val;
@@ -7516,7 +7516,7 @@ var require_cjs9 = __commonJS({
7516
7516
  return { var: CSSvar, value: value2, state, media, helpers };
7517
7517
  };
7518
7518
  var setMediaTheme = (val, key, suffix, prefers) => {
7519
- const CONFIG22 = getActiveConfig3();
7519
+ const CONFIG22 = getActiveConfig4();
7520
7520
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7521
7521
  const theme = { value: val };
7522
7522
  if ((0, import_utils112.isObjectLike)(val)) {
@@ -7527,7 +7527,7 @@ var require_cjs9 = __commonJS({
7527
7527
  const hasPrefers = symb === "@" && param;
7528
7528
  theme[param] = setMediaTheme(value2, key, param, prefers || hasPrefers);
7529
7529
  } else {
7530
- const color = getColor2(value2, prefers);
7530
+ const color = getColor3(value2, prefers);
7531
7531
  const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
7532
7532
  const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
7533
7533
  const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
@@ -7548,15 +7548,15 @@ var require_cjs9 = __commonJS({
7548
7548
  }
7549
7549
  }
7550
7550
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
7551
- const { THEME: THEME2 } = CONFIG22;
7552
- const value2 = THEME2[val.slice(2)];
7553
- const getReferenced = getMediaTheme2(value2, prefers);
7551
+ const { THEME: THEME22 } = CONFIG22;
7552
+ const value2 = THEME22[val.slice(2)];
7553
+ const getReferenced = getMediaTheme3(value2, prefers);
7554
7554
  return getReferenced;
7555
7555
  }
7556
7556
  return theme;
7557
7557
  };
7558
7558
  var recursiveTheme = (val) => {
7559
- const CONFIG22 = getActiveConfig3();
7559
+ const CONFIG22 = getActiveConfig4();
7560
7560
  const obj = {};
7561
7561
  for (const param in val) {
7562
7562
  const symb = param.slice(0, 1);
@@ -7587,10 +7587,10 @@ var require_cjs9 = __commonJS({
7587
7587
  else
7588
7588
  return val;
7589
7589
  };
7590
- var getMediaTheme2 = (val, mod) => {
7591
- const CONFIG22 = getActiveConfig3();
7590
+ var getMediaTheme3 = (val, mod) => {
7591
+ const CONFIG22 = getActiveConfig4();
7592
7592
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
7593
- val = getMediaTheme2(val.slice(2));
7593
+ val = getMediaTheme3(val.slice(2));
7594
7594
  if (!val || !(0, import_utils112.isString)(val)) {
7595
7595
  if (CONFIG22.verbose)
7596
7596
  console.warn(val, "- theme is not string");
@@ -7610,17 +7610,17 @@ var require_cjs9 = __commonJS({
7610
7610
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
7611
7611
  return { var: CSSvar, value: val, fontFace };
7612
7612
  };
7613
- var getFontFamily2 = (key, factory) => {
7614
- const CONFIG22 = getActiveConfig3();
7615
- const { FONT_FAMILY: FONT_FAMILY2 } = CONFIG22;
7616
- 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);
7617
7617
  };
7618
7618
  var setFontFamily = (val, key) => {
7619
- const CONFIG22 = getActiveConfig3();
7620
- 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;
7621
7621
  let { value: value2, type } = val;
7622
7622
  if (val.isDefault)
7623
- FONT_FAMILY2.default = key;
7623
+ FONT_FAMILY22.default = key;
7624
7624
  if ((0, import_utils122.isObject)(value2))
7625
7625
  value2 = arrayzeValue2(value2);
7626
7626
  const CSSvar = `--font-family-${key}`;
@@ -7629,8 +7629,8 @@ var require_cjs9 = __commonJS({
7629
7629
  };
7630
7630
  var import_utils152 = __toESM2(require_cjs22(), 1);
7631
7631
  var runThroughMedia = (props4) => {
7632
- const CONFIG22 = getActiveConfig3();
7633
- const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
7632
+ const CONFIG22 = getActiveConfig4();
7633
+ const { TYPOGRAPHY: TYPOGRAPHY22, MEDIA: MEDIA2 } = CONFIG22;
7634
7634
  for (const prop in props4) {
7635
7635
  const mediaProps = props4[prop];
7636
7636
  if (prop.slice(0, 1) === "@") {
@@ -7652,14 +7652,14 @@ var require_cjs9 = __commonJS({
7652
7652
  const mediaName = prop.slice(1);
7653
7653
  applySequenceVars(mediaProps, mediaName);
7654
7654
  const query = MEDIA2[mediaName];
7655
- TYPOGRAPHY2.templates[`@media screen and ${query}`] = {
7656
- fontSize: mediaProps.base / TYPOGRAPHY2.browserDefault + unit
7655
+ TYPOGRAPHY22.templates[`@media screen and ${query}`] = {
7656
+ fontSize: mediaProps.base / TYPOGRAPHY22.browserDefault + unit
7657
7657
  };
7658
7658
  }
7659
7659
  }
7660
7660
  };
7661
7661
  var applyHeadings = (props4) => {
7662
- const CONFIG22 = getActiveConfig3();
7662
+ const CONFIG22 = getActiveConfig4();
7663
7663
  if (props4.h1Matches) {
7664
7664
  const unit = props4.unit;
7665
7665
  const HEADINGS = findHeadings(props4);
@@ -7678,20 +7678,20 @@ var require_cjs9 = __commonJS({
7678
7678
  }
7679
7679
  };
7680
7680
  var applyTypographySequence = () => {
7681
- const CONFIG22 = getActiveConfig3();
7682
- const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
7683
- generateSequence(TYPOGRAPHY2);
7684
- applyHeadings(TYPOGRAPHY2);
7685
- applySequenceVars(TYPOGRAPHY2);
7686
- runThroughMedia(TYPOGRAPHY2);
7687
- };
7688
- var getFontSizeByKey2 = (value2) => {
7689
- const CONFIG22 = getActiveConfig3();
7690
- 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;
7691
7691
  return getSequenceValuePropertyPair(
7692
7692
  value2,
7693
7693
  "fontSize",
7694
- TYPOGRAPHY2
7694
+ TYPOGRAPHY22
7695
7695
  );
7696
7696
  };
7697
7697
  var import_utils182 = __toESM2(require_cjs22(), 1);
@@ -7720,21 +7720,21 @@ var require_cjs9 = __commonJS({
7720
7720
  }
7721
7721
  };
7722
7722
  var applySpacingSequence = () => {
7723
- const CONFIG22 = getActiveConfig3();
7724
- const { SPACING: SPACING2 } = CONFIG22;
7725
- generateSequence(SPACING2);
7726
- applySequenceVars(SPACING2);
7727
- runThroughMedia2(SPACING2);
7723
+ const CONFIG22 = getActiveConfig4();
7724
+ const { SPACING: SPACING22 } = CONFIG22;
7725
+ generateSequence(SPACING22);
7726
+ applySequenceVars(SPACING22);
7727
+ runThroughMedia2(SPACING22);
7728
7728
  };
7729
7729
  var getSequence = (sequenceProps) => {
7730
- const CONFIG22 = getActiveConfig3();
7731
- const { SPACING: SPACING2 } = CONFIG22;
7730
+ const CONFIG22 = getActiveConfig4();
7731
+ const { SPACING: SPACING22 } = CONFIG22;
7732
7732
  if (!sequenceProps)
7733
- return SPACING2;
7733
+ return SPACING22;
7734
7734
  const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
7735
7735
  return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
7736
7736
  };
7737
- var getSpacingByKey3 = (value2, propertyName = "padding", sequenceProps) => {
7737
+ var getSpacingByKey5 = (value2, propertyName = "padding", sequenceProps) => {
7738
7738
  const sequence = getSequence(sequenceProps);
7739
7739
  const stack = arrayzeValue2(value2);
7740
7740
  if (!stack)
@@ -7766,16 +7766,16 @@ var require_cjs9 = __commonJS({
7766
7766
  sequence
7767
7767
  );
7768
7768
  };
7769
- var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
7770
- const CONFIG22 = getActiveConfig3();
7771
- const { SPACING: SPACING2 } = CONFIG22;
7769
+ var getSpacingBasedOnRatio7 = (props4, propertyName, val) => {
7770
+ const CONFIG22 = getActiveConfig4();
7771
+ const { SPACING: SPACING22 } = CONFIG22;
7772
7772
  const { spacingRatio, unit } = props4;
7773
7773
  const value2 = val || props4[propertyName];
7774
7774
  if (spacingRatio) {
7775
- let sequenceProps = SPACING2[spacingRatio];
7775
+ let sequenceProps = SPACING22[spacingRatio];
7776
7776
  if (!sequenceProps) {
7777
- const { type, base, range, subSequence } = SPACING2;
7778
- sequenceProps = SPACING2[spacingRatio] = (0, import_utils182.merge)({
7777
+ const { type, base, range, subSequence } = SPACING22;
7778
+ sequenceProps = SPACING22[spacingRatio] = (0, import_utils182.merge)({
7779
7779
  ratio: spacingRatio,
7780
7780
  type: type + "-" + spacingRatio,
7781
7781
  unit,
@@ -7787,28 +7787,28 @@ var require_cjs9 = __commonJS({
7787
7787
  base,
7788
7788
  range,
7789
7789
  subSequence,
7790
- ratio: SPACING2.ratio,
7791
- unit: SPACING2.unit
7790
+ ratio: SPACING22.ratio,
7791
+ unit: SPACING22.unit
7792
7792
  });
7793
7793
  }
7794
7794
  applySequenceVars(sequenceProps, null, { useDefault: false });
7795
- return getSpacingByKey3(value2, propertyName, sequenceProps);
7795
+ return getSpacingByKey5(value2, propertyName, sequenceProps);
7796
7796
  }
7797
- return getSpacingByKey3(value2, propertyName);
7797
+ return getSpacingByKey5(value2, propertyName);
7798
7798
  };
7799
7799
  var applyTimingSequence = () => {
7800
- const CONFIG22 = getActiveConfig3();
7800
+ const CONFIG22 = getActiveConfig4();
7801
7801
  const { TIMING: TIMING2 } = CONFIG22;
7802
7802
  generateSequence(TIMING2);
7803
7803
  applySequenceVars(TIMING2);
7804
7804
  };
7805
- var getTimingFunction3 = (value2) => {
7806
- const CONFIG22 = getActiveConfig3();
7805
+ var getTimingFunction5 = (value2) => {
7806
+ const CONFIG22 = getActiveConfig4();
7807
7807
  const { TIMING: TIMING2 } = CONFIG22;
7808
7808
  return TIMING2[value2] || TIMING2[toCamelCase2(value2)] || value2;
7809
7809
  };
7810
- var getTimingByKey2 = (value2, property = "timing") => {
7811
- const CONFIG22 = getActiveConfig3();
7810
+ var getTimingByKey3 = (value2, property = "timing") => {
7811
+ const CONFIG22 = getActiveConfig4();
7812
7812
  const { TIMING: TIMING2 } = CONFIG22;
7813
7813
  return getSequenceValuePropertyPair(
7814
7814
  value2,
@@ -7818,13 +7818,13 @@ var require_cjs9 = __commonJS({
7818
7818
  };
7819
7819
  var import_utils222 = __toESM2(require_cjs22(), 1);
7820
7820
  var applyDocument = () => {
7821
- const CONFIG22 = getActiveConfig3();
7822
- 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;
7823
7823
  return (0, import_utils222.merge)(DOCUMENT2, {
7824
- theme: THEME2.document,
7825
- fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
7826
- fontSize: TYPOGRAPHY2.base,
7827
- lineHeight: TYPOGRAPHY2.lineHeight
7824
+ theme: THEME22.document,
7825
+ fontFamily: getDefaultOrFirstKey(FONT_FAMILY22),
7826
+ fontSize: TYPOGRAPHY22.base,
7827
+ lineHeight: TYPOGRAPHY22.lineHeight
7828
7828
  });
7829
7829
  };
7830
7830
  var import_globals22 = __toESM2(require_cjs13(), 1);
@@ -7832,7 +7832,7 @@ var require_cjs9 = __commonJS({
7832
7832
  document: import_globals22.document
7833
7833
  };
7834
7834
  var setSVG = (val, key) => {
7835
- const CONFIG22 = getActiveConfig3();
7835
+ const CONFIG22 = getActiveConfig4();
7836
7836
  if (!val) {
7837
7837
  if (CONFIG22.verbose)
7838
7838
  console.warn("setSVG: val is not defined", key);
@@ -7844,21 +7844,21 @@ var require_cjs9 = __commonJS({
7844
7844
  return val;
7845
7845
  };
7846
7846
  var appendSVGSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7847
- const CONFIG22 = getActiveConfig3();
7847
+ const CONFIG22 = getActiveConfig4();
7848
7848
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
7849
7849
  for (const key in LIBRARY)
7850
7850
  lib[key] = CONFIG22.SVG[key];
7851
7851
  appendSVG(lib, options);
7852
7852
  };
7853
7853
  var setIcon = (val, key) => {
7854
- const CONFIG22 = getActiveConfig3();
7854
+ const CONFIG22 = getActiveConfig4();
7855
7855
  if (CONFIG22.useIconSprite) {
7856
7856
  return setSVG(val, key);
7857
7857
  }
7858
7858
  return val;
7859
7859
  };
7860
7860
  var appendIconsSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
7861
- const CONFIG22 = getActiveConfig3();
7861
+ const CONFIG22 = getActiveConfig4();
7862
7862
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
7863
7863
  for (const key in LIBRARY)
7864
7864
  lib[key] = CONFIG22.ICONS[key];
@@ -7878,7 +7878,7 @@ var require_cjs9 = __commonJS({
7878
7878
  return svgElem;
7879
7879
  };
7880
7880
  var appendSVG = (lib, options = DEF_OPTIONS) => {
7881
- const CONFIG22 = getActiveConfig3();
7881
+ const CONFIG22 = getActiveConfig4();
7882
7882
  const doc = options.document || import_globals22.document;
7883
7883
  if (!doc || !doc.documentElement) {
7884
7884
  if (CONFIG22.verbose) {
@@ -7900,16 +7900,16 @@ var require_cjs9 = __commonJS({
7900
7900
  }
7901
7901
  }
7902
7902
  };
7903
- var import_utils25 = __toESM2(require_cjs22(), 1);
7903
+ var import_utils252 = __toESM2(require_cjs22(), 1);
7904
7904
  var applyReset = (reset = {}) => {
7905
- const CONFIG22 = getActiveConfig3();
7906
- const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
7905
+ const CONFIG22 = getActiveConfig4();
7906
+ const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
7907
7907
  if (RESET2) {
7908
7908
  if (RESET2[":root"]) {
7909
7909
  const configReset = RESET2;
7910
- const configTemplates = TYPOGRAPHY2.templates;
7910
+ const configTemplates = TYPOGRAPHY22.templates;
7911
7911
  configReset.body = {
7912
- ...CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {},
7912
+ ...CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {},
7913
7913
  ...configTemplates.body
7914
7914
  };
7915
7915
  configReset.h1 = configTemplates.h1;
@@ -7919,11 +7919,11 @@ var require_cjs9 = __commonJS({
7919
7919
  configReset.h5 = configTemplates.h5;
7920
7920
  configReset.h6 = configTemplates.h6;
7921
7921
  }
7922
- const { body, ...templates } = TYPOGRAPHY2.templates;
7923
- const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
7922
+ const { body, ...templates } = TYPOGRAPHY22.templates;
7923
+ const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {};
7924
7924
  if (RESET2.html)
7925
- (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
7926
- 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), {
7927
7927
  html: {
7928
7928
  position: "absolute",
7929
7929
  // overflow: 'hidden',
@@ -7935,7 +7935,7 @@ var require_cjs9 = __commonJS({
7935
7935
  WebkitFontSmoothing: "subpixel-antialiased",
7936
7936
  scrollBehavior: "smooth",
7937
7937
  ...globalTheme,
7938
- fontSize: TYPOGRAPHY2.browserDefault + "px",
7938
+ fontSize: TYPOGRAPHY22.browserDefault + "px",
7939
7939
  fontFamily: DOCUMENT2.fontFamily,
7940
7940
  lineHeight: DOCUMENT2.lineHeight
7941
7941
  },
@@ -7944,7 +7944,7 @@ var require_cjs9 = __commonJS({
7944
7944
  height: "100%",
7945
7945
  margin: 0,
7946
7946
  fontFamily: DOCUMENT2.fontFamily,
7947
- fontSize: TYPOGRAPHY2.base / TYPOGRAPHY2.browserDefault + CONFIG22.UNIT.default,
7947
+ fontSize: TYPOGRAPHY22.base / TYPOGRAPHY22.browserDefault + CONFIG22.UNIT.default,
7948
7948
  ...templates,
7949
7949
  ...body
7950
7950
  },
@@ -7960,7 +7960,7 @@ var require_cjs9 = __commonJS({
7960
7960
  });
7961
7961
  }
7962
7962
  };
7963
- var import_utils26 = __toESM2(require_cjs22(), 1);
7963
+ var import_utils262 = __toESM2(require_cjs22(), 1);
7964
7964
  var isBorderStyle = (str) => [
7965
7965
  "none",
7966
7966
  "hidden",
@@ -7974,7 +7974,7 @@ var require_cjs9 = __commonJS({
7974
7974
  "outset",
7975
7975
  "initial"
7976
7976
  ].some((v) => str.includes(v));
7977
- var transformBorder2 = (border) => {
7977
+ var transformBorder3 = (border) => {
7978
7978
  const arr = border.split(", ");
7979
7979
  return arr.map((v) => {
7980
7980
  v = v.trim();
@@ -7984,39 +7984,39 @@ var require_cjs9 = __commonJS({
7984
7984
  return v || "solid";
7985
7985
  else if (v.slice(-2) === "px" || v.slice(-2) === "em")
7986
7986
  return v;
7987
- else if (getColor2(v).length > 2)
7988
- return getColor2(v);
7989
- return getSpacingByKey3(v, "border").border;
7987
+ else if (getColor3(v).length > 2)
7988
+ return getColor3(v);
7989
+ return getSpacingByKey5(v, "border").border;
7990
7990
  }).join(" ");
7991
7991
  };
7992
- var transformTextStroke2 = (stroke) => {
7992
+ var transformTextStroke3 = (stroke) => {
7993
7993
  return stroke.split(", ").map((v) => {
7994
7994
  if (v.slice(0, 2) === "--")
7995
7995
  return `var(${v})`;
7996
7996
  if (v.includes("px"))
7997
7997
  return v;
7998
- else if (getColor2(v))
7999
- return getColor2(v);
7998
+ else if (getColor3(v))
7999
+ return getColor3(v);
8000
8000
  return v;
8001
8001
  }).join(" ");
8002
8002
  };
8003
- var transformShadow2 = (shadows) => shadows.split("|").map((shadow) => {
8003
+ var transformShadow3 = (shadows) => shadows.split("|").map((shadow) => {
8004
8004
  return shadow.split(", ").map((v) => {
8005
8005
  v = v.trim();
8006
8006
  if (v.slice(0, 2) === "--")
8007
8007
  return `var(${v})`;
8008
- if (getColor2(v).length > 2)
8009
- return getColor2(v);
8008
+ if (getColor3(v).length > 2)
8009
+ return getColor3(v);
8010
8010
  if (v.includes("px") || v.slice(-2) === "em")
8011
8011
  return v;
8012
8012
  const arr = v.split(" ");
8013
8013
  if (!arr.length)
8014
8014
  return v;
8015
- return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
8015
+ return arr.map((v2) => getSpacingByKey5(v2, "shadow").shadow).join(" ");
8016
8016
  }).join(" ");
8017
8017
  }).join(",");
8018
- var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
8019
- const CONFIG22 = getActiveConfig3();
8018
+ var transformBackgroundImage3 = (backgroundImage, globalTheme) => {
8019
+ const CONFIG22 = getActiveConfig4();
8020
8020
  return backgroundImage.split(", ").map((v) => {
8021
8021
  if (v.slice(0, 2) === "--")
8022
8022
  return `var(${v})`;
@@ -8024,14 +8024,14 @@ var require_cjs9 = __commonJS({
8024
8024
  return v;
8025
8025
  else if (CONFIG22.GRADIENT[backgroundImage]) {
8026
8026
  return {
8027
- backgroundImage: getMediaColor3(backgroundImage, globalTheme || CONFIG22.globalTheme)
8027
+ backgroundImage: getMediaColor5(backgroundImage, globalTheme || CONFIG22.globalTheme)
8028
8028
  };
8029
8029
  } else if (v.includes("/") || v.includes("http"))
8030
8030
  return `url(${v})`;
8031
8031
  return v;
8032
8032
  }).join(" ");
8033
8033
  };
8034
- 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(" ");
8035
8035
  var transformTransition = (transition) => {
8036
8036
  const arr = transition.split(" ");
8037
8037
  if (!arr.length)
@@ -8040,20 +8040,20 @@ var require_cjs9 = __commonJS({
8040
8040
  if (v.slice(0, 2) === "--")
8041
8041
  return `var(${v})`;
8042
8042
  if (v.length < 3 || v.includes("ms")) {
8043
- const mapWithSequence = getTimingByKey2(v);
8043
+ const mapWithSequence = getTimingByKey3(v);
8044
8044
  return mapWithSequence.timing || v;
8045
8045
  }
8046
- if (getTimingFunction3(v))
8047
- return getTimingFunction3(v);
8046
+ if (getTimingFunction5(v))
8047
+ return getTimingFunction5(v);
8048
8048
  return v;
8049
8049
  }).join(" ");
8050
8050
  };
8051
- var transformDuration2 = (duration, props4, propertyName) => {
8052
- if (!(0, import_utils26.isString)(duration))
8051
+ var transformDuration3 = (duration, props4, propertyName) => {
8052
+ if (!(0, import_utils262.isString)(duration))
8053
8053
  return;
8054
- return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
8054
+ return duration.split(",").map((v) => getTimingByKey3(v).timing || v).join(",");
8055
8055
  };
8056
- var splitTransition2 = (transition) => {
8056
+ var splitTransition3 = (transition) => {
8057
8057
  const arr = transition.split(",");
8058
8058
  if (!arr.length)
8059
8059
  return;
@@ -8085,7 +8085,7 @@ var require_cjs9 = __commonJS({
8085
8085
  animation: setSameValue
8086
8086
  };
8087
8087
  var setValue = (FACTORY_NAME, value2, key) => {
8088
- const CONFIG22 = getActiveConfig3();
8088
+ const CONFIG22 = getActiveConfig4();
8089
8089
  const factoryName = FACTORY_NAME.toLowerCase();
8090
8090
  const FACTORY2 = CONFIG22[FACTORY_NAME];
8091
8091
  if (VALUE_TRANSFORMERS[factoryName]) {
@@ -8097,7 +8097,7 @@ var require_cjs9 = __commonJS({
8097
8097
  console.warn("Can not find", factoryName, "method in scratch");
8098
8098
  };
8099
8099
  var setEach = (factoryName, props4) => {
8100
- const CONFIG22 = getActiveConfig3();
8100
+ const CONFIG22 = getActiveConfig4();
8101
8101
  const FACTORY_NAME = factoryName.toUpperCase();
8102
8102
  const keys = Object.keys(props4);
8103
8103
  keys.map((key) => setValue(FACTORY_NAME, props4[key], key));
@@ -8105,7 +8105,7 @@ var require_cjs9 = __commonJS({
8105
8105
  };
8106
8106
  var SET_OPTIONS2 = {};
8107
8107
  var set5 = (recivedConfig, options = SET_OPTIONS2) => {
8108
- let CONFIG22 = getActiveConfig3();
8108
+ let CONFIG22 = getActiveConfig4();
8109
8109
  const {
8110
8110
  version,
8111
8111
  verbose,
@@ -8183,8 +8183,8 @@ var require_cjs10 = __commonJS({
8183
8183
  router: () => router2
8184
8184
  });
8185
8185
  module2.exports = __toCommonJS2(router_exports);
8186
- var import_utils20 = require_cjs();
8187
- 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) => {
8188
8188
  const routeArray = route.split("/");
8189
8189
  const activeRoute = routeArray[level + 1];
8190
8190
  if (activeRoute)
@@ -8198,7 +8198,7 @@ var require_cjs10 = __commonJS({
8198
8198
  initialRender: false,
8199
8199
  scrollToTop: true,
8200
8200
  scrollToNode: false,
8201
- scrollNode: import_utils20.document && import_utils20.document.documentElement,
8201
+ scrollNode: import_utils25.document && import_utils25.document.documentElement,
8202
8202
  scrollBody: false,
8203
8203
  useFragment: false,
8204
8204
  updateState: true,
@@ -8213,13 +8213,13 @@ var require_cjs10 = __commonJS({
8213
8213
  const route = getActiveRoute(options.level, pathname);
8214
8214
  const content = element.routes[route || "/"] || element.routes["/*"];
8215
8215
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
8216
- const hashChanged = hash2 && hash2 !== import_utils20.window.location.hash.slice(1);
8216
+ const hashChanged = hash2 && hash2 !== import_utils25.window.location.hash.slice(1);
8217
8217
  const pathChanged = pathname !== lastPathname;
8218
8218
  lastPathname = pathname;
8219
8219
  if (!content)
8220
8220
  return;
8221
8221
  if (options.pushState) {
8222
- import_utils20.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8222
+ import_utils25.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8223
8223
  }
8224
8224
  if (pathChanged || !hashChanged) {
8225
8225
  if (options.updateState) {
@@ -8245,7 +8245,7 @@ var require_cjs10 = __commonJS({
8245
8245
  });
8246
8246
  }
8247
8247
  if (hash2) {
8248
- const activeNode = import_utils20.document.getElementById(hash2);
8248
+ const activeNode = import_utils25.document.getElementById(hash2);
8249
8249
  if (activeNode) {
8250
8250
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8251
8251
  scrollNode.scrollTo({
@@ -8397,16 +8397,250 @@ var require_cjs12 = __commonJS({
8397
8397
  }
8398
8398
  });
8399
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
+
8400
8634
  // src/index.js
8401
8635
  var src_exports = {};
8402
8636
  __export(src_exports, {
8403
8637
  create: () => create,
8404
8638
  createSync: () => createSync,
8405
- default: () => src_default
8639
+ default: () => src_default2
8406
8640
  });
8407
8641
  module.exports = __toCommonJS(src_exports);
8408
8642
  var import_domql = __toESM(require_cjs8(), 1);
8409
- var import_utils19 = __toESM(require_cjs(), 1);
8643
+ var import_utils24 = __toESM(require_cjs(), 1);
8410
8644
 
8411
8645
  // src/utilImports.js
8412
8646
  var utilImports_exports = {};
@@ -9863,7 +10097,7 @@ var SET_OPTIONS = {
9863
10097
  useSvgSprite: true
9864
10098
  };
9865
10099
  var init = (config, options = SET_OPTIONS) => {
9866
- const emotion2 = options.emotion || emotion;
10100
+ const emotion4 = options.emotion || emotion;
9867
10101
  const resultConfig = mergeWithLocalFile(config || {});
9868
10102
  const conf = (0, import_scratch.set)({
9869
10103
  verbose: options.verbose,
@@ -9884,11 +10118,11 @@ var init = (config, options = SET_OPTIONS) => {
9884
10118
  const useIconSprite = conf.useIconSprite;
9885
10119
  const hasIcons = config.icons || config.ICONS;
9886
10120
  if (useFontImport)
9887
- emotion2.injectGlobal(FontFace);
10121
+ emotion4.injectGlobal(FontFace);
9888
10122
  if (useVariable)
9889
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
10123
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
9890
10124
  if (useReset)
9891
- emotion2.injectGlobal(conf.RESET);
10125
+ emotion4.injectGlobal(conf.RESET);
9892
10126
  if (hasSvgs)
9893
10127
  (0, import_scratch.appendSVGSprite)(hasSvgs, { document: options.document });
9894
10128
  else if (useSvgSprite)
@@ -9903,14 +10137,14 @@ var UPDATE_OPTIONS = {
9903
10137
  emotion
9904
10138
  };
9905
10139
  var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
9906
- const emotion2 = options.emotion || emotion;
10140
+ const emotion4 = options.emotion || emotion;
9907
10141
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE);
9908
10142
  const conf = (0, import_scratch.set)({
9909
10143
  verbose: false,
9910
10144
  ...resultConfig
9911
10145
  });
9912
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
9913
- emotion2.injectGlobal(conf.RESET);
10146
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
10147
+ emotion4.injectGlobal(conf.RESET);
9914
10148
  };
9915
10149
 
9916
10150
  // src/utilImports.js
@@ -10250,10 +10484,12 @@ var Block = {
10250
10484
  };
10251
10485
  },
10252
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 },
10253
10489
  columnGap: ({ props: props4, deps }) => props4.columnGap ? deps.getSpacingBasedOnRatio(props4, "columnGap") : null,
10254
- columnSpan: ({ props: props4 }) => props4.columnSpan && { columns: props4.columnSpan },
10255
- columnFill: ({ props: props4 }) => props4.columnFill && { columns: props4.columnFill },
10256
- 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 }
10257
10493
  }
10258
10494
  };
10259
10495
  var Hr = {
@@ -10416,8 +10652,8 @@ var getComputedBackgroundColor = ({ props: props4 }) => {
10416
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);
10417
10653
  };
10418
10654
  var inheritTransition = ({ props: props4, deps }) => {
10419
- const exec4 = Timing.class.transition({ props: props4, deps });
10420
- return exec4 && exec4.transition;
10655
+ const exec5 = Timing.class.transition({ props: props4, deps });
10656
+ return exec5 && exec5.transition;
10421
10657
  };
10422
10658
  var SHAPES = {
10423
10659
  rectangle: {},
@@ -10615,8 +10851,8 @@ var Theme = {
10615
10851
  const globalTheme = deps.getSystemTheme(element);
10616
10852
  if (!props4.theme)
10617
10853
  return;
10618
- const getMediaTheme2 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
10619
- return getMediaTheme2;
10854
+ const getMediaTheme3 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
10855
+ return getMediaTheme3;
10620
10856
  },
10621
10857
  color: (element) => {
10622
10858
  const { props: props4, deps } = element;
@@ -10905,6 +11141,8 @@ var Iframe = {
10905
11141
  src: ({ props: props4 }) => props4.src,
10906
11142
  loading: ({ props: props4 }) => props4.loading,
10907
11143
  allowfullscreen: ({ props: props4 }) => props4.allowfullscreen,
11144
+ frameborder: ({ props: props4 }) => props4.frameborder,
11145
+ allow: ({ props: props4 }) => props4.allow,
10908
11146
  referrerpolicy: ({ props: props4 }) => props4.referrerpolicy
10909
11147
  }
10910
11148
  };
@@ -11377,7 +11615,7 @@ var Icon = {
11377
11615
  const { toCamelCase: toCamelCase2 } = context && context.utils;
11378
11616
  const iconName = props4.inheritedString || props4.name || props4.icon || key;
11379
11617
  const camelCase = toCamelCase2(iconName);
11380
- const isArray6 = camelCase.split(/([a-z])([A-Z])/g);
11618
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
11381
11619
  let activeIconName;
11382
11620
  if (props4.active) {
11383
11621
  activeIconName = props4[".active"].name || props4[".active"].icon;
@@ -11390,10 +11628,10 @@ var Icon = {
11390
11628
  validIconName = activeIconName;
11391
11629
  if (ICONS[camelCase])
11392
11630
  validIconName = camelCase;
11393
- else if (ICONS[isArray6[0] + isArray6[1]])
11394
- validIconName = isArray6[0] + isArray6[1];
11395
- else if (ICONS[isArray6[0]])
11396
- 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];
11397
11635
  else {
11398
11636
  if (verbose)
11399
11637
  console.warn("Can't find icon:", iconName, validIconName);
@@ -11693,8 +11931,8 @@ var Link = {
11693
11931
  attr: {
11694
11932
  href: (el) => {
11695
11933
  const { context: ctx } = el;
11696
- const { exec: exec4 } = ctx.utils;
11697
- 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;
11698
11936
  },
11699
11937
  target: ({ props: props4 }) => props4.target,
11700
11938
  "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
@@ -11798,8 +12036,8 @@ var Input = {
11798
12036
  autocomplete: ({ props: props4 }) => props4.autocomplete,
11799
12037
  placeholder: ({ props: props4 }) => props4.placeholder,
11800
12038
  value: ({ props: props4, state, deps }) => {
11801
- const { isString: isString8, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
11802
- if (isString8(props4.value) && props4.value.includes("{{")) {
12039
+ const { isString: isString10, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
12040
+ if (isString10(props4.value) && props4.value.includes("{{")) {
11803
12041
  return replaceLiteralsWithObjectFields2(props4.value, state);
11804
12042
  }
11805
12043
  return props4.value;
@@ -12768,7 +13006,7 @@ var AvatarBundle = {
12768
13006
  ...[{}, {}, {}, {}]
12769
13007
  };
12770
13008
 
12771
- // ../../uikit/domql/Avatar/index.js
13009
+ // ../../uikit/domql/Avatar/AvatarChooser.js
12772
13010
  var AvatarChooser = {
12773
13011
  extend: Button,
12774
13012
  tag: "label",
@@ -12807,6 +13045,8 @@ var AvatarChooser = {
12807
13045
  },
12808
13046
  childExtend: { tag: "option" },
12809
13047
  $setPropsCollection: ({ parent, state }) => {
13048
+ if (!parent.props.options)
13049
+ return [];
12810
13050
  return parent.props.options.map((v) => {
12811
13051
  if (v.text === state.key)
12812
13052
  return { ...v, selected: true };
@@ -13935,6 +14175,137 @@ var TimePickerItem = {
13935
14175
  Button_minus: { icon: "minus" }
13936
14176
  };
13937
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
+
13938
14309
  // ../../uikit/domql/TimePicker/TimeSwitcher.js
13939
14310
  var props3 = {
13940
14311
  boxSize: "C B2",
@@ -13947,7 +14318,7 @@ var TimeSwitcher = {
13947
14318
  props: props3,
13948
14319
  extend: Flex,
13949
14320
  childExtend: {
13950
- extend: Button,
14321
+ extend: Button2,
13951
14322
  props: ({ state, key }) => ({
13952
14323
  active: state.activeShift === key,
13953
14324
  padding: "0",
@@ -15417,7 +15788,7 @@ var applyClassListOnNode = (params, element, node2) => {
15417
15788
  };
15418
15789
 
15419
15790
  // ../../node_modules/@domql/emotion/index.js
15420
- var transformEmotionStyle = (emotion2) => {
15791
+ var transformEmotionStyle = (emotion4) => {
15421
15792
  return (params, element, state) => {
15422
15793
  const execParams = (0, import_utils16.exec)(params, element);
15423
15794
  if (params) {
@@ -15426,10 +15797,10 @@ var transformEmotionStyle = (emotion2) => {
15426
15797
  else
15427
15798
  element.class = { elementStyle: execParams };
15428
15799
  }
15429
- transformEmotionClass(emotion2)(element.class, element, element.state, true);
15800
+ transformEmotionClass(emotion4)(element.class, element, element.state, true);
15430
15801
  };
15431
15802
  };
15432
- var transformEmotionClass = (emotion2) => {
15803
+ var transformEmotionClass = (emotion4) => {
15433
15804
  return (params, element, state, flag) => {
15434
15805
  if (element.style && !flag)
15435
15806
  return;
@@ -15448,7 +15819,7 @@ var transformEmotionClass = (emotion2) => {
15448
15819
  if (!isEqual) {
15449
15820
  if (!(0, import_utils16.isProduction)() && (0, import_utils16.isObject)(prop))
15450
15821
  prop.label = key || element.key;
15451
- const CSSed = emotion2.css(prop);
15822
+ const CSSed = emotion4.css(prop);
15452
15823
  __class[key] = prop;
15453
15824
  __classNames[key] = CSSed;
15454
15825
  }
@@ -15456,20 +15827,31 @@ var transformEmotionClass = (emotion2) => {
15456
15827
  applyClassListOnNode(__classNames, element, element.node);
15457
15828
  };
15458
15829
  };
15459
- var transformDOMQLEmotion = (emotion2, options) => {
15460
- if (!emotion2)
15461
- emotion2 = createEmotion(options || { key: "smbls" });
15830
+ var transformDOMQLEmotion = (emotion4, options) => {
15831
+ if (!emotion4)
15832
+ emotion4 = createEmotion(options || { key: "smbls" });
15462
15833
  return {
15463
- style: transformEmotionStyle(emotion2),
15464
- class: transformEmotionClass(emotion2)
15834
+ style: transformEmotionStyle(emotion4),
15835
+ class: transformEmotionClass(emotion4)
15465
15836
  };
15466
15837
  };
15467
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
+
15468
15849
  // src/options.js
15469
15850
  var options_default = {
15470
15851
  editor: {},
15471
15852
  state: {},
15472
15853
  pages: {},
15854
+ defaultConfig: true,
15473
15855
  designSystem: {
15474
15856
  useReset: true,
15475
15857
  useVariable: true,
@@ -15480,7 +15862,7 @@ var options_default = {
15480
15862
  },
15481
15863
  components: {},
15482
15864
  initOptions: {
15483
- emotion
15865
+ emotion: emotion2
15484
15866
  },
15485
15867
  router: {
15486
15868
  initRouter: true,
@@ -15490,28 +15872,323 @@ var options_default = {
15490
15872
  define: defaultDefine
15491
15873
  };
15492
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
+
15493
16169
  // src/initEmotion.js
15494
16170
  var initEmotion = (key, options = options_default) => {
15495
16171
  const doc = options.parent || options.document || document;
15496
16172
  const initOptions = options.initOptions || {};
15497
- const emotion2 = initOptions.emotion || emotion;
16173
+ const emotion4 = initOptions.emotion || emotion2;
15498
16174
  if (!initOptions.emotion)
15499
- initOptions.emotion = emotion2;
16175
+ initOptions.emotion = emotion4;
15500
16176
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
15501
- const scratchSystem2 = init(options.designSystem || {}, {
16177
+ const designSystem = options.designSystem || (options.defaultConfig ? (0, import_utils17.deepClone)(src_default) : {});
16178
+ const scratchSystem2 = init(designSystem, {
15502
16179
  key,
15503
- emotion: emotion2,
16180
+ emotion: emotion4,
15504
16181
  verbose: options.verbose,
15505
16182
  document: doc,
15506
16183
  ...options_default.designSystem,
15507
16184
  ...initOptions
15508
16185
  });
15509
- return [scratchSystem2, emotion2, registry];
16186
+ return [scratchSystem2, emotion4, registry];
15510
16187
  };
15511
16188
 
15512
16189
  // ../socket-ui/byld-socket.js
15513
16190
  var import_router3 = __toESM(require_cjs10());
15514
- var import_scratch14 = __toESM(require_cjs9());
16191
+ var import_scratch23 = __toESM(require_cjs9());
15515
16192
 
15516
16193
  // ../socket/client.js
15517
16194
  var utils = __toESM(require_cjs(), 1);
@@ -18910,11 +19587,121 @@ function send(event = "change", changes, options) {
18910
19587
  this.emit(event, changes, { ...options, ...defautlOpts });
18911
19588
  }
18912
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
+
18913
19700
  // ../socket-ui/byld-socket.js
18914
19701
  var import_globals = __toESM(require_cjs11());
18915
19702
 
18916
19703
  // ../socket-ui/devFocus.js
18917
- var import_utils17 = __toESM(require_cjs());
19704
+ var import_utils22 = __toESM(require_cjs());
18918
19705
  var DevFocus = {
18919
19706
  props: {
18920
19707
  ".preventSelect": {
@@ -18968,7 +19755,7 @@ var DevFocus = {
18968
19755
  on: {
18969
19756
  init: ({ context }) => {
18970
19757
  const { components } = context;
18971
- if ((0, import_utils17.isObject)(components)) {
19758
+ if ((0, import_utils22.isObject)(components)) {
18972
19759
  const { Content, ...rest } = components;
18973
19760
  for (const key in rest) {
18974
19761
  if (domql_exports[key])
@@ -19073,12 +19860,12 @@ var ANIMATION = {
19073
19860
  }
19074
19861
  }
19075
19862
  };
19076
- var COLOR = {
19863
+ var COLOR2 = {
19077
19864
  black: "#000000",
19078
19865
  blue: "#3686F7"
19079
19866
  };
19080
- (0, import_scratch14.set)({
19081
- COLOR,
19867
+ (0, import_scratch23.set)({
19868
+ COLOR: COLOR2,
19082
19869
  ANIMATION
19083
19870
  });
19084
19871
  var connectedToSymbols = (clients, element, state) => {
@@ -19155,7 +19942,7 @@ var Notifications = {
19155
19942
  zIndex: "999"
19156
19943
  },
19157
19944
  childExtend: {
19158
- extend: [Notification],
19945
+ extend: [Notification2],
19159
19946
  props: ({ state }) => ({
19160
19947
  animation: "fadeInUp",
19161
19948
  animationDuration: "C",
@@ -19190,13 +19977,13 @@ var Sync = {
19190
19977
  };
19191
19978
 
19192
19979
  // src/syncExtend.js
19193
- var import_utils18 = __toESM(require_cjs(), 1);
19980
+ var import_utils23 = __toESM(require_cjs(), 1);
19194
19981
  var applySyncDebug = (extend, options) => {
19195
19982
  const { editor } = options;
19196
19983
  if (!editor)
19197
19984
  return extend;
19198
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
19199
- 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;
19200
19987
  if (inspect)
19201
19988
  extend.push(DevFocus);
19202
19989
  if (liveSync)
@@ -19207,7 +19994,7 @@ var applyInspectListener = (root, options) => {
19207
19994
  const { editor } = options;
19208
19995
  if (!editor)
19209
19996
  return;
19210
- 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;
19211
19998
  if (inspect)
19212
19999
  inspectOnKey(root);
19213
20000
  };
@@ -19215,12 +20002,12 @@ var applyInspectListener = (root, options) => {
19215
20002
  // src/index.js
19216
20003
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
19217
20004
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
19218
- const rcfile = (0, import_utils19.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
19219
- 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);
19220
20007
  };
19221
20008
  var create = async (App, options = options_default, optionsExternalFile) => {
19222
- const appIsKey = (0, import_utils19.isString)(App);
19223
- options = mergeWithLocalFile2(options, optionsExternalFile);
20009
+ const appIsKey = (0, import_utils24.isString)(App);
20010
+ options = (0, import_utils24.deepMerge)(mergeWithLocalFile2(options, optionsExternalFile), options_default);
19224
20011
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19225
20012
  if (appIsKey)
19226
20013
  App = {};
@@ -19233,7 +20020,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19233
20020
  document = window.document;
19234
20021
  }
19235
20022
  const doc = options.parent || options.document || document;
19236
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
20023
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
19237
20024
  let state;
19238
20025
  if (options.state)
19239
20026
  state = options.state;
@@ -19262,7 +20049,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19262
20049
  utils: snippets,
19263
20050
  define,
19264
20051
  registry,
19265
- emotion: emotion2,
20052
+ emotion: emotion4,
19266
20053
  routerOptions,
19267
20054
  document: doc
19268
20055
  }
@@ -19282,7 +20069,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
19282
20069
  return domqlApp;
19283
20070
  };
19284
20071
  var createSync = (App, options = options_default, optionsExternalFile) => {
19285
- const appIsKey = (0, import_utils19.isString)(App);
20072
+ const appIsKey = (0, import_utils24.isString)(App);
19286
20073
  options = mergeWithLocalFile2(options, optionsExternalFile);
19287
20074
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
19288
20075
  if (appIsKey)
@@ -19301,7 +20088,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19301
20088
  parent = options.document;
19302
20089
  else
19303
20090
  parent = document.body;
19304
- const [scratchSystem2, emotion2, registry] = initEmotion(key, options);
20091
+ const [scratchSystem2, emotion4, registry] = initEmotion(key, options);
19305
20092
  let state;
19306
20093
  if (options.state)
19307
20094
  state = options.state;
@@ -19329,7 +20116,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19329
20116
  utils: snippets,
19330
20117
  define,
19331
20118
  registry,
19332
- emotion: emotion2,
20119
+ emotion: emotion4,
19333
20120
  // routerOptions,
19334
20121
  document
19335
20122
  }
@@ -19340,4 +20127,4 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
19340
20127
  });
19341
20128
  return domqlApp;
19342
20129
  };
19343
- var src_default = create;
20130
+ var src_default2 = create;