@symbo.ls/create 2.11.475 → 2.11.476

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.
@@ -304,6 +304,7 @@ var require_array = __commonJS({
304
304
  addItemAfterEveryElement: () => addItemAfterEveryElement,
305
305
  arrayContainsOtherArray: () => arrayContainsOtherArray,
306
306
  arraysEqual: () => arraysEqual,
307
+ checkIfStringIsInArray: () => checkIfStringIsInArray,
307
308
  cutArrayAfterValue: () => cutArrayAfterValue,
308
309
  cutArrayBeforeValue: () => cutArrayBeforeValue,
309
310
  filterArrays: () => filterArrays,
@@ -423,6 +424,11 @@ var require_array = __commonJS({
423
424
  const excludeSet = new Set(excludeArr);
424
425
  return sourceArr.filter((item) => !excludeSet.has(item));
425
426
  };
427
+ var checkIfStringIsInArray = (string, arr) => {
428
+ if (!string)
429
+ return;
430
+ return arr.filter((v) => string.includes(v)).length;
431
+ };
426
432
  }
427
433
  });
428
434
 
@@ -1133,13 +1139,13 @@ var require_object = __commonJS({
1133
1139
  }
1134
1140
  return true;
1135
1141
  };
1136
- var removeFromObject = (obj, props5) => {
1137
- if (props5 === void 0 || props5 === null)
1142
+ var removeFromObject = (obj, props4) => {
1143
+ if (props4 === void 0 || props4 === null)
1138
1144
  return obj;
1139
- if ((0, import_types.is)(props5)("string", "number")) {
1140
- delete obj[props5];
1141
- } else if ((0, import_types.isArray)(props5)) {
1142
- props5.forEach((prop) => delete obj[prop]);
1145
+ if ((0, import_types.is)(props4)("string", "number")) {
1146
+ delete obj[props4];
1147
+ } else if ((0, import_types.isArray)(props4)) {
1148
+ props4.forEach((prop) => delete obj[prop]);
1143
1149
  } else {
1144
1150
  throw new Error("Invalid input: props must be a string or an array of strings");
1145
1151
  }
@@ -1655,6 +1661,7 @@ var require_component = __commonJS({
1655
1661
  checkIfKeyIsProperty: () => checkIfKeyIsProperty,
1656
1662
  checkIfSugar: () => checkIfSugar,
1657
1663
  extendizeByKey: () => extendizeByKey,
1664
+ extractComponentKeyFromKey: () => extractComponentKeyFromKey,
1658
1665
  getCapitalCaseKeys: () => getCapitalCaseKeys,
1659
1666
  getChildrenComponentsByKey: () => getChildrenComponentsByKey,
1660
1667
  getExtendsInElement: () => getExtendsInElement,
@@ -1692,7 +1699,7 @@ var require_component = __commonJS({
1692
1699
  var _a;
1693
1700
  const {
1694
1701
  extend,
1695
- props: props5,
1702
+ props: props4,
1696
1703
  childExtend,
1697
1704
  extends: extendProps,
1698
1705
  childExtends,
@@ -1703,7 +1710,7 @@ var require_component = __commonJS({
1703
1710
  $stateCollection,
1704
1711
  $propsCollection
1705
1712
  } = element;
1706
- const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
1713
+ const hasComponentAttrs = extend || childExtend || props4 || on2 || $collection || $stateCollection || $propsCollection;
1707
1714
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
1708
1715
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
1709
1716
  if (logErr)
@@ -1711,11 +1718,14 @@ var require_component = __commonJS({
1711
1718
  }
1712
1719
  return !hasComponentAttrs || childProps || extendProps || children || childExtends;
1713
1720
  };
1721
+ var extractComponentKeyFromKey = (key) => {
1722
+ return key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
1723
+ };
1714
1724
  var extendizeByKey = (element, parent, key) => {
1715
1725
  const { context } = parent;
1716
1726
  const { tag, extend, childExtends } = element;
1717
1727
  const isSugar = checkIfSugar(element, parent, key);
1718
- const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? [key.split("_")[0]] : key.includes(".") && !checkIfKeyIsComponent2(key.split(".")[1]) ? [key.split(".")[0]] : [key];
1728
+ const extendFromKey = extractComponentKeyFromKey(key);
1719
1729
  const isExtendKeyComponent = context && context.components[extendFromKey];
1720
1730
  if (element === isExtendKeyComponent)
1721
1731
  return element;
@@ -1806,8 +1816,8 @@ var require_component = __commonJS({
1806
1816
  return firstCharKey === ".";
1807
1817
  };
1808
1818
  var hasVariantProp = (element) => {
1809
- const { props: props5 } = element;
1810
- if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
1819
+ const { props: props4 } = element;
1820
+ if ((0, import__.isObject)(props4) && (0, import__.isString)(props4.variant))
1811
1821
  return true;
1812
1822
  };
1813
1823
  var getChildrenComponentsByKey = (key, el) => {
@@ -3053,13 +3063,13 @@ var require_cjs2 = __commonJS({
3053
3063
  }
3054
3064
  return true;
3055
3065
  };
3056
- var removeFromObject = (obj, props5) => {
3057
- if (props5 === void 0 || props5 === null)
3066
+ var removeFromObject = (obj, props4) => {
3067
+ if (props4 === void 0 || props4 === null)
3058
3068
  return obj;
3059
- if ((0, import_types.is)(props5)("string", "number")) {
3060
- delete obj[props5];
3061
- } else if ((0, import_types.isArray)(props5)) {
3062
- props5.forEach((prop) => delete obj[prop]);
3069
+ if ((0, import_types.is)(props4)("string", "number")) {
3070
+ delete obj[props4];
3071
+ } else if ((0, import_types.isArray)(props4)) {
3072
+ props4.forEach((prop) => delete obj[prop]);
3063
3073
  } else {
3064
3074
  throw new Error("Invalid input: props must be a string or an array of strings");
3065
3075
  }
@@ -3602,7 +3612,7 @@ var require_cjs2 = __commonJS({
3602
3612
  var _a;
3603
3613
  const {
3604
3614
  extend,
3605
- props: props5,
3615
+ props: props4,
3606
3616
  childExtend,
3607
3617
  extends: extendProps,
3608
3618
  childExtends,
@@ -3613,7 +3623,7 @@ var require_cjs2 = __commonJS({
3613
3623
  $stateCollection,
3614
3624
  $propsCollection
3615
3625
  } = element;
3616
- const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
3626
+ const hasComponentAttrs = extend || childExtend || props4 || on2 || $collection || $stateCollection || $propsCollection;
3617
3627
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
3618
3628
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
3619
3629
  if (logErr)
@@ -3716,8 +3726,8 @@ var require_cjs2 = __commonJS({
3716
3726
  return firstCharKey === ".";
3717
3727
  };
3718
3728
  var hasVariantProp = (element) => {
3719
- const { props: props5 } = element;
3720
- if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
3729
+ const { props: props4 } = element;
3730
+ if ((0, import__.isObject)(props4) && (0, import__.isString)(props4.variant))
3721
3731
  return true;
3722
3732
  };
3723
3733
  var getChildrenComponentsByKey = (key, el) => {
@@ -4925,13 +4935,13 @@ var require_cjs2 = __commonJS({
4925
4935
  }
4926
4936
  return true;
4927
4937
  };
4928
- var removeFromObject = (obj, props5) => {
4929
- if (props5 === void 0 || props5 === null)
4938
+ var removeFromObject = (obj, props4) => {
4939
+ if (props4 === void 0 || props4 === null)
4930
4940
  return obj;
4931
- if ((0, import_types.is)(props5)("string", "number")) {
4932
- delete obj[props5];
4933
- } else if ((0, import_types.isArray)(props5)) {
4934
- props5.forEach((prop) => delete obj[prop]);
4941
+ if ((0, import_types.is)(props4)("string", "number")) {
4942
+ delete obj[props4];
4943
+ } else if ((0, import_types.isArray)(props4)) {
4944
+ props4.forEach((prop) => delete obj[prop]);
4935
4945
  } else {
4936
4946
  throw new Error("Invalid input: props must be a string or an array of strings");
4937
4947
  }
@@ -5474,7 +5484,7 @@ var require_cjs2 = __commonJS({
5474
5484
  var _a;
5475
5485
  const {
5476
5486
  extend,
5477
- props: props5,
5487
+ props: props4,
5478
5488
  childExtend,
5479
5489
  extends: extendProps,
5480
5490
  childExtends,
@@ -5485,7 +5495,7 @@ var require_cjs2 = __commonJS({
5485
5495
  $stateCollection,
5486
5496
  $propsCollection
5487
5497
  } = element;
5488
- const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
5498
+ const hasComponentAttrs = extend || childExtend || props4 || on2 || $collection || $stateCollection || $propsCollection;
5489
5499
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
5490
5500
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
5491
5501
  if (logErr)
@@ -5588,8 +5598,8 @@ var require_cjs2 = __commonJS({
5588
5598
  return firstCharKey === ".";
5589
5599
  };
5590
5600
  var hasVariantProp = (element) => {
5591
- const { props: props5 } = element;
5592
- if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
5601
+ const { props: props4 } = element;
5602
+ if ((0, import__.isObject)(props4) && (0, import__.isString)(props4.variant))
5593
5603
  return true;
5594
5604
  };
5595
5605
  var getChildrenComponentsByKey = (key, el) => {
@@ -6481,8 +6491,8 @@ var require_cjs2 = __commonJS({
6481
6491
  18: "S",
6482
6492
  19: "T"
6483
6493
  };
6484
- var setSequenceValue = (props5, sequenceProps) => {
6485
- const { key, variable, value: value2, scaling, index, scalingVariable } = props5;
6494
+ var setSequenceValue = (props4, sequenceProps) => {
6495
+ const { key, variable, value: value2, scaling, index, scalingVariable } = props4;
6486
6496
  sequenceProps.sequence[key] = {
6487
6497
  key,
6488
6498
  decimal: ~~(value2 * 100) / 100,
@@ -6530,8 +6540,8 @@ var require_cjs2 = __commonJS({
6530
6540
  var getSubratio = (base, ratio) => {
6531
6541
  return getSubratioDifference(base, ratio).map((v) => v / base);
6532
6542
  };
6533
- var generateSubSequence = (props5, sequenceProps) => {
6534
- const { key, base, value: value2, ratio, variable, index } = props5;
6543
+ var generateSubSequence = (props4, sequenceProps) => {
6544
+ const { key, base, value: value2, ratio, variable, index } = props4;
6535
6545
  const next3 = value2 * ratio;
6536
6546
  const diffRounded = ~~next3 - ~~value2;
6537
6547
  let arr;
@@ -6570,7 +6580,7 @@ var require_cjs2 = __commonJS({
6570
6580
  const scaling = ~~(value2 / base * 100) / 100;
6571
6581
  const variable = prefix3 + letterKey;
6572
6582
  const scalingVariable = setScalingVar(key, sequenceProps);
6573
- const props5 = {
6583
+ const props4 = {
6574
6584
  key: letterKey,
6575
6585
  variable,
6576
6586
  value: value2,
@@ -6580,9 +6590,9 @@ var require_cjs2 = __commonJS({
6580
6590
  ratio,
6581
6591
  index: key
6582
6592
  };
6583
- setSequenceValue(props5, sequenceProps);
6593
+ setSequenceValue(props4, sequenceProps);
6584
6594
  if (subSequence)
6585
- generateSubSequence(props5, sequenceProps);
6595
+ generateSubSequence(props4, sequenceProps);
6586
6596
  }
6587
6597
  return sequenceProps;
6588
6598
  };
@@ -7259,20 +7269,20 @@ var require_cjs2 = __commonJS({
7259
7269
  applyMediaSequenceVars(FACTORY2, prop);
7260
7270
  }
7261
7271
  };
7262
- var applyHeadings = (props5) => {
7272
+ var applyHeadings = (props4) => {
7263
7273
  const CONFIG22 = getActiveConfig3();
7264
- if (props5.h1Matches) {
7265
- const unit = props5.unit;
7266
- const HEADINGS = findHeadings(props5);
7267
- const { templates } = props5;
7274
+ if (props4.h1Matches) {
7275
+ const unit = props4.unit;
7276
+ const HEADINGS = findHeadings(props4);
7277
+ const { templates } = props4;
7268
7278
  for (const k in HEADINGS) {
7269
7279
  const headerName = `h${parseInt(k) + 1}`;
7270
7280
  const headerStyle = templates[headerName];
7271
7281
  templates[headerName] = {
7272
7282
  fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
7273
7283
  margin: headerStyle ? headerStyle.margin : 0,
7274
- lineHeight: headerStyle ? headerStyle.lineHeight : props5.lineHeight,
7275
- letterSpacing: headerStyle ? headerStyle.letterSpacing : props5.letterSpacing,
7284
+ lineHeight: headerStyle ? headerStyle.lineHeight : props4.lineHeight,
7285
+ letterSpacing: headerStyle ? headerStyle.letterSpacing : props4.letterSpacing,
7276
7286
  fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
7277
7287
  };
7278
7288
  }
@@ -7376,11 +7386,11 @@ var require_cjs2 = __commonJS({
7376
7386
  sequence
7377
7387
  );
7378
7388
  };
7379
- var getSpacingBasedOnRatio4 = (props5, propertyName, val) => {
7389
+ var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
7380
7390
  const CONFIG22 = getActiveConfig3();
7381
7391
  const { SPACING: SPACING22 } = CONFIG22;
7382
- const { spacingRatio, unit } = props5;
7383
- const value2 = val || props5[propertyName];
7392
+ const { spacingRatio, unit } = props4;
7393
+ const value2 = val || props4[propertyName];
7384
7394
  if (spacingRatio) {
7385
7395
  let sequenceProps = SPACING22[spacingRatio];
7386
7396
  if (!sequenceProps) {
@@ -7750,7 +7760,7 @@ var require_cjs2 = __commonJS({
7750
7760
  return v;
7751
7761
  }).join(" ");
7752
7762
  };
7753
- var transformDuration2 = (duration, props5, propertyName) => {
7763
+ var transformDuration2 = (duration, props4, propertyName) => {
7754
7764
  if (!(0, import_utils252.isString)(duration))
7755
7765
  return;
7756
7766
  return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
@@ -7765,11 +7775,11 @@ var require_cjs2 = __commonJS({
7765
7775
  const prop = propertyName.toLowerCase();
7766
7776
  return (prop.includes("width") || prop.includes("height")) && !prop.includes("border");
7767
7777
  };
7768
- var transformSize2 = (propertyName, val, props5 = {}, opts = {}) => {
7769
- let value2 = val || props5[propertyName];
7778
+ var transformSize2 = (propertyName, val, props4 = {}, opts = {}) => {
7779
+ let value2 = val || props4[propertyName];
7770
7780
  if ((0, import_utils252.isUndefined)(value2) && (0, import_utils252.isNull)(value2))
7771
7781
  return;
7772
- const shouldScaleBoxSize = props5.scaleBoxSize;
7782
+ const shouldScaleBoxSize = props4.scaleBoxSize;
7773
7783
  const isBoxSize = checkIfBoxSize(propertyName);
7774
7784
  if (!shouldScaleBoxSize && isBoxSize && (0, import_utils252.isString)(value2)) {
7775
7785
  value2 = value2.split(" ").map((v) => {
@@ -7781,13 +7791,13 @@ var require_cjs2 = __commonJS({
7781
7791
  }).join(" ");
7782
7792
  }
7783
7793
  if (opts.ratio) {
7784
- return getSpacingBasedOnRatio4(props5, propertyName, value2);
7794
+ return getSpacingBasedOnRatio4(props4, propertyName, value2);
7785
7795
  } else {
7786
7796
  return getSpacingByKey3(value2, propertyName);
7787
7797
  }
7788
7798
  };
7789
- var transformSizeRatio2 = (propertyName, props5) => {
7790
- return transformSize2(propertyName, null, props5, {
7799
+ var transformSizeRatio2 = (propertyName, props4) => {
7800
+ return transformSize2(propertyName, null, props4, {
7791
7801
  ratio: true
7792
7802
  });
7793
7803
  };
@@ -7832,11 +7842,11 @@ var require_cjs2 = __commonJS({
7832
7842
  if (CONFIG22.verbose)
7833
7843
  console.warn("Can not find", factoryName, "method in scratch");
7834
7844
  };
7835
- var setEach = (factoryName, props5) => {
7845
+ var setEach = (factoryName, props4) => {
7836
7846
  const CONFIG22 = getActiveConfig3();
7837
7847
  const FACTORY_NAME = factoryName.toUpperCase();
7838
- const keys = Object.keys(props5);
7839
- keys.map((key) => setValue(FACTORY_NAME, props5[key], key));
7848
+ const keys = Object.keys(props4);
7849
+ keys.map((key) => setValue(FACTORY_NAME, props4[key], key));
7840
7850
  return CONFIG22[FACTORY_NAME];
7841
7851
  };
7842
7852
  var SET_OPTIONS2 = {};
@@ -9016,13 +9026,13 @@ var require_cjs3 = __commonJS({
9016
9026
  }
9017
9027
  return true;
9018
9028
  };
9019
- var removeFromObject = (obj, props5) => {
9020
- if (props5 === void 0 || props5 === null)
9029
+ var removeFromObject = (obj, props4) => {
9030
+ if (props4 === void 0 || props4 === null)
9021
9031
  return obj;
9022
- if ((0, import_types.is)(props5)("string", "number")) {
9023
- delete obj[props5];
9024
- } else if ((0, import_types.isArray)(props5)) {
9025
- props5.forEach((prop) => delete obj[prop]);
9032
+ if ((0, import_types.is)(props4)("string", "number")) {
9033
+ delete obj[props4];
9034
+ } else if ((0, import_types.isArray)(props4)) {
9035
+ props4.forEach((prop) => delete obj[prop]);
9026
9036
  } else {
9027
9037
  throw new Error("Invalid input: props must be a string or an array of strings");
9028
9038
  }
@@ -9565,7 +9575,7 @@ var require_cjs3 = __commonJS({
9565
9575
  var _a;
9566
9576
  const {
9567
9577
  extend,
9568
- props: props5,
9578
+ props: props4,
9569
9579
  childExtend,
9570
9580
  extends: extendProps,
9571
9581
  childExtends,
@@ -9576,7 +9586,7 @@ var require_cjs3 = __commonJS({
9576
9586
  $stateCollection,
9577
9587
  $propsCollection
9578
9588
  } = element;
9579
- const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
9589
+ const hasComponentAttrs = extend || childExtend || props4 || on2 || $collection || $stateCollection || $propsCollection;
9580
9590
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
9581
9591
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
9582
9592
  if (logErr)
@@ -9679,8 +9689,8 @@ var require_cjs3 = __commonJS({
9679
9689
  return firstCharKey === ".";
9680
9690
  };
9681
9691
  var hasVariantProp = (element) => {
9682
- const { props: props5 } = element;
9683
- if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
9692
+ const { props: props4 } = element;
9693
+ if ((0, import__.isObject)(props4) && (0, import__.isString)(props4.variant))
9684
9694
  return true;
9685
9695
  };
9686
9696
  var getChildrenComponentsByKey = (key, el) => {
@@ -10130,11 +10140,11 @@ var init_Utility = __esm({
10130
10140
  });
10131
10141
 
10132
10142
  // ../../node_modules/stylis/src/Tokenizer.js
10133
- function node(value2, root, parent, type, props5, children, length3) {
10134
- return { value: value2, root, parent, type, props: props5, children, line, column, length: length3, return: "" };
10143
+ function node(value2, root, parent, type, props4, children, length3) {
10144
+ return { value: value2, root, parent, type, props: props4, children, line, column, length: length3, return: "" };
10135
10145
  }
10136
- function copy(root, props5) {
10137
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
10146
+ function copy(root, props4) {
10147
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props4);
10138
10148
  }
10139
10149
  function char() {
10140
10150
  return character;
@@ -10277,7 +10287,7 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
10277
10287
  var ampersand = 1;
10278
10288
  var character3 = 0;
10279
10289
  var type = "";
10280
- var props5 = rules;
10290
+ var props4 = rules;
10281
10291
  var children = rulesets;
10282
10292
  var reference = rule;
10283
10293
  var characters3 = type;
@@ -10331,17 +10341,17 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
10331
10341
  case 59:
10332
10342
  characters3 += ";";
10333
10343
  default:
10334
- append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
10344
+ append(reference = ruleset(characters3, root, parent, index, offset, rules, points, type, props4 = [], children = [], length3), rulesets);
10335
10345
  if (character3 === 123)
10336
10346
  if (offset === 0)
10337
- parse(characters3, root, reference, reference, props5, rulesets, length3, points, children);
10347
+ parse(characters3, root, reference, reference, props4, rulesets, length3, points, children);
10338
10348
  else
10339
10349
  switch (atrule === 99 && charat(characters3, 3) === 110 ? 100 : atrule) {
10340
10350
  case 100:
10341
10351
  case 108:
10342
10352
  case 109:
10343
10353
  case 115:
10344
- parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
10354
+ parse(value2, reference, reference, rule && append(ruleset(value2, reference, reference, 0, 0, rules, points, type, rules, props4 = [], length3), children), rules, children, length3, points, rule ? props4 : children);
10345
10355
  break;
10346
10356
  default:
10347
10357
  parse(characters3, reference, reference, reference, [""], children, 0, points, children);
@@ -10377,15 +10387,15 @@ function parse(value2, root, parent, rule, rules, rulesets, pseudo, points, decl
10377
10387
  }
10378
10388
  return rulesets;
10379
10389
  }
10380
- function ruleset(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
10390
+ function ruleset(value2, root, parent, index, offset, rules, points, type, props4, children, length3) {
10381
10391
  var post = offset - 1;
10382
10392
  var rule = offset === 0 ? rules : [""];
10383
10393
  var size = sizeof(rule);
10384
10394
  for (var i = 0, j = 0, k = 0; i < index; ++i)
10385
10395
  for (var x = 0, y = substr(value2, post + 1, post = abs(j = points[i])), z = value2; x < size; ++x)
10386
10396
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
10387
- props5[k++] = z;
10388
- return node(value2, root, parent, offset === 0 ? RULESET : type, props5, children, length3);
10397
+ props4[k++] = z;
10398
+ return node(value2, root, parent, offset === 0 ? RULESET : type, props4, children, length3);
10389
10399
  }
10390
10400
  function comment(value2, root, parent) {
10391
10401
  return node(value2, root, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
@@ -11367,7 +11377,7 @@ var init_init = __esm({
11367
11377
  const emotion2 = options.emotion || emotion;
11368
11378
  emotion2.injectGlobal({ ":root": config.CSS_VARS });
11369
11379
  };
11370
- setClass = (props5, options = UPDATE_OPTIONS) => {
11380
+ setClass = (props4, options = UPDATE_OPTIONS) => {
11371
11381
  };
11372
11382
  }
11373
11383
  });
@@ -11522,9 +11532,9 @@ var require_on = __commonJS({
11522
11532
  }
11523
11533
  };
11524
11534
  var applyAnimationFrame = (element, options) => {
11525
- const { props: props5, on: on2, __ref: ref } = element;
11535
+ const { props: props4, on: on2, __ref: ref } = element;
11526
11536
  const { frameListeners } = ref.root.data;
11527
- if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props5 == null ? void 0 : props5.onFrame))) {
11537
+ if (frameListeners && ((on2 == null ? void 0 : on2.frame) || (props4 == null ? void 0 : props4.onFrame))) {
11528
11538
  const { registerFrameListener } = element.context.utils;
11529
11539
  if (registerFrameListener)
11530
11540
  registerFrameListener(element);
@@ -11841,132 +11851,132 @@ var init_Block = __esm({
11841
11851
  hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && {
11842
11852
  display: "none !important"
11843
11853
  },
11844
- height: ({ props: props5, deps }) => deps.transformSizeRatio("height", props5),
11845
- width: ({ props: props5, deps }) => deps.transformSizeRatio("width", props5),
11846
- boxSizing: ({ props: props5, deps }) => !deps.isUndefined(props5.boxSizing) ? { boxSizing: props5.boxSizing } : { boxSizing: "border-box" },
11847
- boxSize: ({ props: props5, deps }) => {
11848
- if (!deps.isString(props5.boxSize))
11854
+ height: ({ props: props4, deps }) => deps.transformSizeRatio("height", props4),
11855
+ width: ({ props: props4, deps }) => deps.transformSizeRatio("width", props4),
11856
+ boxSizing: ({ props: props4, deps }) => !deps.isUndefined(props4.boxSizing) ? { boxSizing: props4.boxSizing } : { boxSizing: "border-box" },
11857
+ boxSize: ({ props: props4, deps }) => {
11858
+ if (!deps.isString(props4.boxSize))
11849
11859
  return;
11850
- const [height, width] = props5.boxSize.split(" ");
11860
+ const [height, width] = props4.boxSize.split(" ");
11851
11861
  return {
11852
11862
  ...deps.transformSize("height", height),
11853
11863
  ...deps.transformSize("width", width || height)
11854
11864
  };
11855
11865
  },
11856
- inlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("inlineSize", props5),
11857
- blockSize: ({ props: props5, deps }) => deps.transformSizeRatio("blockSize", props5),
11858
- minWidth: ({ props: props5, deps }) => deps.transformSizeRatio("minWidth", props5),
11859
- maxWidth: ({ props: props5, deps }) => deps.transformSizeRatio("maxWidth", props5),
11860
- widthRange: ({ props: props5, deps }) => {
11861
- if (!deps.isString(props5.widthRange))
11866
+ inlineSize: ({ props: props4, deps }) => deps.transformSizeRatio("inlineSize", props4),
11867
+ blockSize: ({ props: props4, deps }) => deps.transformSizeRatio("blockSize", props4),
11868
+ minWidth: ({ props: props4, deps }) => deps.transformSizeRatio("minWidth", props4),
11869
+ maxWidth: ({ props: props4, deps }) => deps.transformSizeRatio("maxWidth", props4),
11870
+ widthRange: ({ props: props4, deps }) => {
11871
+ if (!deps.isString(props4.widthRange))
11862
11872
  return;
11863
- const [minWidth, maxWidth] = props5.widthRange.split(" ");
11873
+ const [minWidth, maxWidth] = props4.widthRange.split(" ");
11864
11874
  return {
11865
11875
  ...deps.transformSize("minWidth", minWidth),
11866
11876
  ...deps.transformSize("maxWidth", maxWidth || minWidth)
11867
11877
  };
11868
11878
  },
11869
- minHeight: ({ props: props5, deps }) => deps.transformSizeRatio("minHeight", props5),
11870
- maxHeight: ({ props: props5, deps }) => deps.transformSizeRatio("maxHeight", props5),
11871
- heightRange: ({ props: props5, deps }) => {
11872
- if (!deps.isString(props5.heightRange))
11879
+ minHeight: ({ props: props4, deps }) => deps.transformSizeRatio("minHeight", props4),
11880
+ maxHeight: ({ props: props4, deps }) => deps.transformSizeRatio("maxHeight", props4),
11881
+ heightRange: ({ props: props4, deps }) => {
11882
+ if (!deps.isString(props4.heightRange))
11873
11883
  return;
11874
- const [minHeight, maxHeight] = props5.heightRange.split(" ");
11884
+ const [minHeight, maxHeight] = props4.heightRange.split(" ");
11875
11885
  return {
11876
11886
  ...deps.transformSize("minHeight", minHeight),
11877
11887
  ...deps.transformSize("maxHeight", maxHeight || minHeight)
11878
11888
  };
11879
11889
  },
11880
- size: ({ props: props5, deps }) => {
11881
- if (!deps.isString(props5.size))
11890
+ size: ({ props: props4, deps }) => {
11891
+ if (!deps.isString(props4.size))
11882
11892
  return;
11883
- const [inlineSize, blockSize] = props5.size.split(" ");
11893
+ const [inlineSize, blockSize] = props4.size.split(" ");
11884
11894
  return {
11885
11895
  ...deps.transformSizeRatio("inlineSize", inlineSize),
11886
11896
  ...deps.transformSizeRatio("blockSize", blockSize || inlineSize)
11887
11897
  };
11888
11898
  },
11889
- minBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("minBlockSize", props5),
11890
- minInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("minInlineSize", props5),
11891
- maxBlockSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxBlockSize", props5),
11892
- maxInlineSize: ({ props: props5, deps }) => deps.transformSizeRatio("maxInlineSize", props5),
11893
- minSize: ({ props: props5, deps }) => {
11894
- if (!deps.isString(props5.minSize))
11899
+ minBlockSize: ({ props: props4, deps }) => deps.transformSizeRatio("minBlockSize", props4),
11900
+ minInlineSize: ({ props: props4, deps }) => deps.transformSizeRatio("minInlineSize", props4),
11901
+ maxBlockSize: ({ props: props4, deps }) => deps.transformSizeRatio("maxBlockSize", props4),
11902
+ maxInlineSize: ({ props: props4, deps }) => deps.transformSizeRatio("maxInlineSize", props4),
11903
+ minSize: ({ props: props4, deps }) => {
11904
+ if (!deps.isString(props4.minSize))
11895
11905
  return;
11896
- const [minInlineSize, minBlockSize] = props5.minSize.split(" ");
11906
+ const [minInlineSize, minBlockSize] = props4.minSize.split(" ");
11897
11907
  return {
11898
11908
  ...deps.transformSize("minInlineSize", minInlineSize),
11899
11909
  ...deps.transformSize("minBlockSize", minBlockSize || minInlineSize)
11900
11910
  };
11901
11911
  },
11902
- maxSize: ({ props: props5, deps }) => {
11903
- if (!deps.isString(props5.maxSize))
11912
+ maxSize: ({ props: props4, deps }) => {
11913
+ if (!deps.isString(props4.maxSize))
11904
11914
  return;
11905
- const [maxInlineSize, maxBlockSize] = props5.maxSize.split(" ");
11915
+ const [maxInlineSize, maxBlockSize] = props4.maxSize.split(" ");
11906
11916
  return {
11907
11917
  ...deps.transformSize("maxInlineSize", maxInlineSize),
11908
11918
  ...deps.transformSize("maxBlockSize", maxBlockSize || maxInlineSize)
11909
11919
  };
11910
11920
  },
11911
- borderWidth: ({ props: props5, deps }) => deps.transformSizeRatio("borderWidth", props5),
11912
- padding: ({ props: props5, deps }) => deps.transformSizeRatio("padding", props5),
11913
- scrollPadding: ({ props: props5, deps }) => deps.transformSizeRatio("scrollPadding", props5),
11914
- paddingInline: ({ props: props5, deps }) => {
11915
- if (!deps.isString(props5.paddingInline))
11921
+ borderWidth: ({ props: props4, deps }) => deps.transformSizeRatio("borderWidth", props4),
11922
+ padding: ({ props: props4, deps }) => deps.transformSizeRatio("padding", props4),
11923
+ scrollPadding: ({ props: props4, deps }) => deps.transformSizeRatio("scrollPadding", props4),
11924
+ paddingInline: ({ props: props4, deps }) => {
11925
+ if (!deps.isString(props4.paddingInline))
11916
11926
  return;
11917
- const [paddingInlineStart, paddingInlineEnd] = props5.paddingInline.split(" ");
11927
+ const [paddingInlineStart, paddingInlineEnd] = props4.paddingInline.split(" ");
11918
11928
  return {
11919
11929
  ...deps.transformSize("paddingInlineStart", paddingInlineStart),
11920
11930
  ...deps.transformSize("paddingInlineEnd", paddingInlineEnd || paddingInlineStart)
11921
11931
  };
11922
11932
  },
11923
- paddingBlock: ({ props: props5, deps }) => {
11924
- if (!deps.isString(props5.paddingBlock))
11933
+ paddingBlock: ({ props: props4, deps }) => {
11934
+ if (!deps.isString(props4.paddingBlock))
11925
11935
  return;
11926
- const [paddingBlockStart, paddingBlockEnd] = props5.paddingBlock.split(" ");
11936
+ const [paddingBlockStart, paddingBlockEnd] = props4.paddingBlock.split(" ");
11927
11937
  return {
11928
11938
  ...deps.transformSize("paddingBlockStart", paddingBlockStart),
11929
11939
  ...deps.transformSize("paddingBlockEnd", paddingBlockEnd || paddingBlockStart)
11930
11940
  };
11931
11941
  },
11932
- paddingInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineStart", props5),
11933
- paddingInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingInlineEnd", props5),
11934
- paddingBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockStart", props5),
11935
- paddingBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("paddingBlockEnd", props5),
11936
- margin: ({ props: props5, deps }) => deps.transformSizeRatio("margin", props5),
11937
- marginInline: ({ props: props5, deps }) => {
11938
- if (!deps.isString(props5.marginInline))
11942
+ paddingInlineStart: ({ props: props4, deps }) => deps.transformSizeRatio("paddingInlineStart", props4),
11943
+ paddingInlineEnd: ({ props: props4, deps }) => deps.transformSizeRatio("paddingInlineEnd", props4),
11944
+ paddingBlockStart: ({ props: props4, deps }) => deps.transformSizeRatio("paddingBlockStart", props4),
11945
+ paddingBlockEnd: ({ props: props4, deps }) => deps.transformSizeRatio("paddingBlockEnd", props4),
11946
+ margin: ({ props: props4, deps }) => deps.transformSizeRatio("margin", props4),
11947
+ marginInline: ({ props: props4, deps }) => {
11948
+ if (!deps.isString(props4.marginInline))
11939
11949
  return;
11940
- const [marginInlineStart, marginInlineEnd] = props5.marginInline.split(" ");
11950
+ const [marginInlineStart, marginInlineEnd] = props4.marginInline.split(" ");
11941
11951
  return {
11942
11952
  ...deps.transformSize("marginInlineStart", marginInlineStart),
11943
11953
  ...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
11944
11954
  };
11945
11955
  },
11946
- marginBlock: ({ props: props5, deps }) => {
11947
- if (!deps.isString(props5.marginBlock))
11956
+ marginBlock: ({ props: props4, deps }) => {
11957
+ if (!deps.isString(props4.marginBlock))
11948
11958
  return;
11949
- const [marginBlockStart, marginBlockEnd] = props5.marginBlock.split(" ");
11959
+ const [marginBlockStart, marginBlockEnd] = props4.marginBlock.split(" ");
11950
11960
  return {
11951
11961
  ...deps.transformSize("marginBlockStart", marginBlockStart),
11952
11962
  ...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
11953
11963
  };
11954
11964
  },
11955
- marginInlineStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineStart", props5),
11956
- marginInlineEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginInlineEnd", props5),
11957
- marginBlockStart: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockStart", props5),
11958
- marginBlockEnd: ({ props: props5, deps }) => deps.transformSizeRatio("marginBlockEnd", props5),
11959
- gap: ({ props: props5, deps }) => !deps.isUndefined(props5.gap) && {
11960
- gap: (0, import_scratch3.transfromGap)(props5.gap)
11965
+ marginInlineStart: ({ props: props4, deps }) => deps.transformSizeRatio("marginInlineStart", props4),
11966
+ marginInlineEnd: ({ props: props4, deps }) => deps.transformSizeRatio("marginInlineEnd", props4),
11967
+ marginBlockStart: ({ props: props4, deps }) => deps.transformSizeRatio("marginBlockStart", props4),
11968
+ marginBlockEnd: ({ props: props4, deps }) => deps.transformSizeRatio("marginBlockEnd", props4),
11969
+ gap: ({ props: props4, deps }) => !deps.isUndefined(props4.gap) && {
11970
+ gap: (0, import_scratch3.transfromGap)(props4.gap)
11961
11971
  },
11962
- columnGap: ({ props: props5, deps }) => !deps.isUndefined(props5.columnGap) ? deps.getSpacingBasedOnRatio(props5, "columnGap") : null,
11963
- rowGap: ({ props: props5, deps }) => !deps.isUndefined(props5.rowGap) ? deps.getSpacingBasedOnRatio(props5, "rowGap") : null,
11964
- flexWrap: ({ props: props5, deps }) => !deps.isUndefined(props5.flexWrap) && {
11972
+ columnGap: ({ props: props4, deps }) => !deps.isUndefined(props4.columnGap) ? deps.getSpacingBasedOnRatio(props4, "columnGap") : null,
11973
+ rowGap: ({ props: props4, deps }) => !deps.isUndefined(props4.rowGap) ? deps.getSpacingBasedOnRatio(props4, "rowGap") : null,
11974
+ flexWrap: ({ props: props4, deps }) => !deps.isUndefined(props4.flexWrap) && {
11965
11975
  display: "flex",
11966
- flexFlow: (props5.flexFlow || "row").split(" ")[0] + " " + props5.flexWrap
11976
+ flexFlow: (props4.flexFlow || "row").split(" ")[0] + " " + props4.flexWrap
11967
11977
  },
11968
- flexFlow: ({ props: props5, deps }) => {
11969
- const { flexFlow, reverse } = props5;
11978
+ flexFlow: ({ props: props4, deps }) => {
11979
+ const { flexFlow, reverse } = props4;
11970
11980
  if (!deps.isString(flexFlow))
11971
11981
  return;
11972
11982
  let [direction, wrap] = (flexFlow || "row").split(" ");
@@ -11979,10 +11989,10 @@ var init_Block = __esm({
11979
11989
  flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
11980
11990
  };
11981
11991
  },
11982
- flexAlign: ({ props: props5, deps }) => {
11983
- if (!deps.isString(props5.flexAlign))
11992
+ flexAlign: ({ props: props4, deps }) => {
11993
+ if (!deps.isString(props4.flexAlign))
11984
11994
  return;
11985
- const [alignItems, justifyContent] = props5.flexAlign.split(" ");
11995
+ const [alignItems, justifyContent] = props4.flexAlign.split(" ");
11986
11996
  return {
11987
11997
  display: "flex",
11988
11998
  alignItems,
@@ -12002,81 +12012,81 @@ var init_Block = __esm({
12002
12012
  },
12003
12013
  class: {
12004
12014
  ...props,
12005
- display: ({ props: props5, deps }) => !deps.isUndefined(props5.display) && {
12006
- display: props5.display
12015
+ display: ({ props: props4, deps }) => !deps.isUndefined(props4.display) && {
12016
+ display: props4.display
12007
12017
  },
12008
- direction: ({ props: props5, deps }) => !deps.isUndefined(props5.direction) && {
12009
- direction: props5.direction
12018
+ direction: ({ props: props4, deps }) => !deps.isUndefined(props4.direction) && {
12019
+ direction: props4.direction
12010
12020
  },
12011
- objectFit: ({ props: props5, deps }) => !deps.isUndefined(props5.objectFit) && {
12012
- objectFit: props5.objectFit
12021
+ objectFit: ({ props: props4, deps }) => !deps.isUndefined(props4.objectFit) && {
12022
+ objectFit: props4.objectFit
12013
12023
  },
12014
- aspectRatio: ({ props: props5, deps }) => !deps.isUndefined(props5.aspectRatio) && {
12015
- aspectRatio: props5.aspectRatio
12024
+ aspectRatio: ({ props: props4, deps }) => !deps.isUndefined(props4.aspectRatio) && {
12025
+ aspectRatio: props4.aspectRatio
12016
12026
  },
12017
- gridArea: ({ props: props5, deps }) => props5.gridArea && { gridArea: props5.gridArea },
12018
- float: ({ props: props5, deps }) => !deps.isUndefined(props5.float) && {
12019
- float: props5.float
12027
+ gridArea: ({ props: props4, deps }) => props4.gridArea && { gridArea: props4.gridArea },
12028
+ float: ({ props: props4, deps }) => !deps.isUndefined(props4.float) && {
12029
+ float: props4.float
12020
12030
  },
12021
- flex: ({ props: props5, deps }) => !deps.isUndefined(props5.flex) && {
12022
- flex: props5.flex
12031
+ flex: ({ props: props4, deps }) => !deps.isUndefined(props4.flex) && {
12032
+ flex: props4.flex
12023
12033
  },
12024
- flexDirection: ({ props: props5, deps }) => !deps.isUndefined(props5.flexDirection) && {
12025
- flexDirection: props5.flexDirection
12034
+ flexDirection: ({ props: props4, deps }) => !deps.isUndefined(props4.flexDirection) && {
12035
+ flexDirection: props4.flexDirection
12026
12036
  },
12027
- alignItems: ({ props: props5, deps }) => !deps.isUndefined(props5.alignItems) && {
12028
- alignItems: props5.alignItems
12037
+ alignItems: ({ props: props4, deps }) => !deps.isUndefined(props4.alignItems) && {
12038
+ alignItems: props4.alignItems
12029
12039
  },
12030
- alignContent: ({ props: props5, deps }) => !deps.isUndefined(props5.alignContent) && {
12031
- alignContent: props5.alignContent
12040
+ alignContent: ({ props: props4, deps }) => !deps.isUndefined(props4.alignContent) && {
12041
+ alignContent: props4.alignContent
12032
12042
  },
12033
- justifyContent: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyContent) && {
12034
- justifyContent: props5.justifyContent
12043
+ justifyContent: ({ props: props4, deps }) => !deps.isUndefined(props4.justifyContent) && {
12044
+ justifyContent: props4.justifyContent
12035
12045
  },
12036
- justifyItems: ({ props: props5, deps }) => !deps.isUndefined(props5.justifyItems) && {
12037
- justifyItems: props5.justifyItems
12046
+ justifyItems: ({ props: props4, deps }) => !deps.isUndefined(props4.justifyItems) && {
12047
+ justifyItems: props4.justifyItems
12038
12048
  },
12039
- alignSelf: ({ props: props5, deps }) => !deps.isUndefined(props5.alignSelf) && {
12040
- alignSelf: props5.alignSelf
12049
+ alignSelf: ({ props: props4, deps }) => !deps.isUndefined(props4.alignSelf) && {
12050
+ alignSelf: props4.alignSelf
12041
12051
  },
12042
- order: ({ props: props5, deps }) => !deps.isUndefined(props5.order) && {
12043
- order: props5.order
12052
+ order: ({ props: props4, deps }) => !deps.isUndefined(props4.order) && {
12053
+ order: props4.order
12044
12054
  },
12045
- gridColumn: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumn) && {
12046
- gridColumn: props5.gridColumn
12055
+ gridColumn: ({ props: props4, deps }) => !deps.isUndefined(props4.gridColumn) && {
12056
+ gridColumn: props4.gridColumn
12047
12057
  },
12048
- gridColumnStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridColumnStart) && {
12049
- gridColumnStart: props5.gridColumnStart
12058
+ gridColumnStart: ({ props: props4, deps }) => !deps.isUndefined(props4.gridColumnStart) && {
12059
+ gridColumnStart: props4.gridColumnStart
12050
12060
  },
12051
- gridRow: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRow) && {
12052
- gridRow: props5.gridRow
12061
+ gridRow: ({ props: props4, deps }) => !deps.isUndefined(props4.gridRow) && {
12062
+ gridRow: props4.gridRow
12053
12063
  },
12054
- gridRowStart: ({ props: props5, deps }) => !deps.isUndefined(props5.gridRowStart) && {
12055
- gridRowStart: props5.gridRowStart
12064
+ gridRowStart: ({ props: props4, deps }) => !deps.isUndefined(props4.gridRowStart) && {
12065
+ gridRowStart: props4.gridRowStart
12056
12066
  },
12057
- resize: ({ props: props5, deps }) => !deps.isUndefined(props5.resize) && {
12058
- resize: props5.resize
12067
+ resize: ({ props: props4, deps }) => !deps.isUndefined(props4.resize) && {
12068
+ resize: props4.resize
12059
12069
  },
12060
- verticalAlign: ({ props: props5, deps }) => !deps.isUndefined(props5.verticalAlign) && {
12061
- verticalAlign: props5.verticalAlign
12070
+ verticalAlign: ({ props: props4, deps }) => !deps.isUndefined(props4.verticalAlign) && {
12071
+ verticalAlign: props4.verticalAlign
12062
12072
  },
12063
- columns: ({ props: props5, deps }) => !deps.isUndefined(props5.columns) && {
12064
- columns: props5.columns
12073
+ columns: ({ props: props4, deps }) => !deps.isUndefined(props4.columns) && {
12074
+ columns: props4.columns
12065
12075
  },
12066
- columnRule: ({ props: props5, deps }) => !deps.isUndefined(props5.columnRule) && {
12067
- columnRule: props5.columnRule
12076
+ columnRule: ({ props: props4, deps }) => !deps.isUndefined(props4.columnRule) && {
12077
+ columnRule: props4.columnRule
12068
12078
  },
12069
- columnWidth: ({ props: props5, deps }) => !deps.isUndefined(props5.columnWidth) && {
12070
- columnWidth: props5.columnWidth
12079
+ columnWidth: ({ props: props4, deps }) => !deps.isUndefined(props4.columnWidth) && {
12080
+ columnWidth: props4.columnWidth
12071
12081
  },
12072
- columnSpan: ({ props: props5, deps }) => !deps.isUndefined(props5.columnSpan) && {
12073
- columnSpan: props5.columnSpan
12082
+ columnSpan: ({ props: props4, deps }) => !deps.isUndefined(props4.columnSpan) && {
12083
+ columnSpan: props4.columnSpan
12074
12084
  },
12075
- columnFill: ({ props: props5, deps }) => !deps.isUndefined(props5.columnFill) && {
12076
- columnFill: props5.columnFill
12085
+ columnFill: ({ props: props4, deps }) => !deps.isUndefined(props4.columnFill) && {
12086
+ columnFill: props4.columnFill
12077
12087
  },
12078
- columnCount: ({ props: props5, deps }) => !deps.isUndefined(props5.columnCount) && {
12079
- columnCount: props5.columnCount
12088
+ columnCount: ({ props: props4, deps }) => !deps.isUndefined(props4.columnCount) && {
12089
+ columnCount: props4.columnCount
12080
12090
  }
12081
12091
  }
12082
12092
  };
@@ -12114,7 +12124,7 @@ var init_Direction = __esm({
12114
12124
  direction: "ltr"
12115
12125
  },
12116
12126
  class: {
12117
- direction: ({ props: props5 }) => ({ direction: props5.direction })
12127
+ direction: ({ props: props4 }) => ({ direction: props4.direction })
12118
12128
  }
12119
12129
  };
12120
12130
  }
@@ -12131,8 +12141,8 @@ var init_Flex = __esm({
12131
12141
  display: "flex"
12132
12142
  },
12133
12143
  class: {
12134
- flow: ({ props: props5 }) => {
12135
- const { flow, reverse } = props5;
12144
+ flow: ({ props: props4 }) => {
12145
+ const { flow, reverse } = props4;
12136
12146
  if (!(0, import_utils4.isString)(flow))
12137
12147
  return;
12138
12148
  let [direction, wrap] = (flow || "row").split(" ");
@@ -12144,11 +12154,11 @@ var init_Flex = __esm({
12144
12154
  flexFlow: (direction || "") + (!direction.includes("-reverse") && reverse ? "-reverse" : "") + " " + (wrap || "")
12145
12155
  };
12146
12156
  },
12147
- wrap: ({ props: props5 }) => props5.wrap && { flexWrap: props5.wrap },
12148
- align: ({ props: props5 }) => {
12149
- if (!(0, import_utils4.isString)(props5.align))
12157
+ wrap: ({ props: props4 }) => props4.wrap && { flexWrap: props4.wrap },
12158
+ align: ({ props: props4 }) => {
12159
+ if (!(0, import_utils4.isString)(props4.align))
12150
12160
  return;
12151
- const [alignItems, justifyContent] = props5.align.split(" ");
12161
+ const [alignItems, justifyContent] = props4.align.split(" ");
12152
12162
  return { alignItems, justifyContent };
12153
12163
  }
12154
12164
  }
@@ -12166,20 +12176,20 @@ var init_Grid = __esm({
12166
12176
  deps: { getSpacingBasedOnRatio: import_scratch4.getSpacingBasedOnRatio },
12167
12177
  props: { display: "grid" },
12168
12178
  class: {
12169
- area: ({ props: props5 }) => props5.area ? { gridArea: props5.area } : null,
12170
- template: ({ props: props5 }) => props5.template ? { gridTemplate: props5.template } : null,
12171
- templateAreas: ({ props: props5 }) => props5.templateAreas ? { gridTemplateAreas: props5.templateAreas } : null,
12172
- column: ({ props: props5 }) => props5.column ? { gridColumn: props5.column } : null,
12173
- columns: ({ props: props5 }) => props5.columns ? { gridTemplateColumns: props5.columns } : null,
12174
- templateColumns: ({ props: props5 }) => props5.templateColumns ? { gridTemplateColumns: props5.templateColumns } : null,
12175
- autoColumns: ({ props: props5 }) => props5.autoColumns ? { gridAutoColumns: props5.autoColumns } : null,
12176
- columnStart: ({ props: props5 }) => props5.columnStart ? { gridColumnStart: props5.columnStart } : null,
12177
- row: ({ props: props5 }) => props5.row ? { gridRow: props5.row } : null,
12178
- rows: ({ props: props5 }) => props5.rows ? { gridTemplateRows: props5.rows } : null,
12179
- templateRows: ({ props: props5 }) => props5.templateRows ? { gridTemplateRows: props5.templateRows } : null,
12180
- autoRows: ({ props: props5 }) => props5.autoRows ? { gridAutoRows: props5.autoRows } : null,
12181
- rowStart: ({ props: props5 }) => props5.rowStart ? { gridRowStart: props5.rowStart } : null,
12182
- autoFlow: ({ props: props5 }) => props5.autoFlow ? { gridAutoFlow: props5.autoFlow } : null
12179
+ area: ({ props: props4 }) => props4.area ? { gridArea: props4.area } : null,
12180
+ template: ({ props: props4 }) => props4.template ? { gridTemplate: props4.template } : null,
12181
+ templateAreas: ({ props: props4 }) => props4.templateAreas ? { gridTemplateAreas: props4.templateAreas } : null,
12182
+ column: ({ props: props4 }) => props4.column ? { gridColumn: props4.column } : null,
12183
+ columns: ({ props: props4 }) => props4.columns ? { gridTemplateColumns: props4.columns } : null,
12184
+ templateColumns: ({ props: props4 }) => props4.templateColumns ? { gridTemplateColumns: props4.templateColumns } : null,
12185
+ autoColumns: ({ props: props4 }) => props4.autoColumns ? { gridAutoColumns: props4.autoColumns } : null,
12186
+ columnStart: ({ props: props4 }) => props4.columnStart ? { gridColumnStart: props4.columnStart } : null,
12187
+ row: ({ props: props4 }) => props4.row ? { gridRow: props4.row } : null,
12188
+ rows: ({ props: props4 }) => props4.rows ? { gridTemplateRows: props4.rows } : null,
12189
+ templateRows: ({ props: props4 }) => props4.templateRows ? { gridTemplateRows: props4.templateRows } : null,
12190
+ autoRows: ({ props: props4 }) => props4.autoRows ? { gridAutoRows: props4.autoRows } : null,
12191
+ rowStart: ({ props: props4 }) => props4.rowStart ? { gridRowStart: props4.rowStart } : null,
12192
+ autoFlow: ({ props: props4 }) => props4.autoFlow ? { gridAutoFlow: props4.autoFlow } : null
12183
12193
  }
12184
12194
  };
12185
12195
  }
@@ -12194,9 +12204,9 @@ var init_Img = __esm({
12194
12204
  tag: "img",
12195
12205
  attr: {
12196
12206
  src: (el) => {
12197
- const { props: props5, context } = el;
12207
+ const { props: props4, context } = el;
12198
12208
  const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
12199
- let src = (props5.preSrc || "") + exec7(props5.src, el);
12209
+ let src = (props4.preSrc || "") + exec7(props4.src, el);
12200
12210
  if (isString12(src) && src.includes("{{")) {
12201
12211
  src = replaceLiteralsWithObjectFields3(src, el.state);
12202
12212
  }
@@ -12211,8 +12221,8 @@ var init_Img = __esm({
12211
12221
  if (file)
12212
12222
  return file.content && file.content.src;
12213
12223
  },
12214
- alt: ({ props: props5 }) => props5.alt,
12215
- title: ({ props: props5 }) => props5.title || props5.alt
12224
+ alt: ({ props: props4 }) => props4.alt,
12225
+ title: ({ props: props4 }) => props4.title || props4.alt
12216
12226
  }
12217
12227
  };
12218
12228
  }
@@ -12226,9 +12236,9 @@ var init_Form = __esm({
12226
12236
  Form = {
12227
12237
  tag: "form",
12228
12238
  attr: {
12229
- action: ({ props: props5 }) => props5.action,
12230
- method: ({ props: props5 }) => props5.method,
12231
- enctype: ({ props: props5 }) => props5.enctype
12239
+ action: ({ props: props4 }) => props4.action,
12240
+ method: ({ props: props4 }) => props4.method,
12241
+ enctype: ({ props: props4 }) => props4.enctype
12232
12242
  }
12233
12243
  };
12234
12244
  }
@@ -12248,24 +12258,24 @@ var init_Timing = __esm({
12248
12258
  transformDuration: import_scratch5.transformDuration
12249
12259
  },
12250
12260
  class: {
12251
- transition: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transition) && {
12252
- transition: deps.splitTransition(props5.transition)
12261
+ transition: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.transition) && {
12262
+ transition: deps.splitTransition(props4.transition)
12253
12263
  },
12254
- willChange: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.willChange) && {
12255
- willChange: props5.willChange
12264
+ willChange: ({ props: props4 }) => !(0, import_utils5.isUndefined)(props4.willChange) && {
12265
+ willChange: props4.willChange
12256
12266
  },
12257
- transitionDuration: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDuration) && {
12258
- transitionDuration: deps.transformDuration(props5.transitionDuration)
12267
+ transitionDuration: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.transitionDuration) && {
12268
+ transitionDuration: deps.transformDuration(props4.transitionDuration)
12259
12269
  },
12260
- transitionDelay: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionDelay) && {
12261
- transitionDelay: deps.transformDuration(props5.transitionDelay)
12270
+ transitionDelay: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.transitionDelay) && {
12271
+ transitionDelay: deps.transformDuration(props4.transitionDelay)
12262
12272
  },
12263
- transitionTimingFunction: ({ props: props5, deps }) => !(0, import_utils5.isUndefined)(props5.transitionTimingFunction) && {
12264
- transitionTimingFunction: deps.getTimingFunction(props5.transitionTimingFunction)
12273
+ transitionTimingFunction: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.transitionTimingFunction) && {
12274
+ transitionTimingFunction: deps.getTimingFunction(props4.transitionTimingFunction)
12265
12275
  },
12266
- transitionProperty: ({ props: props5 }) => !(0, import_utils5.isUndefined)(props5.transitionProperty) && {
12267
- transitionProperty: props5.transitionProperty,
12268
- willChange: props5.transitionProperty
12276
+ transitionProperty: ({ props: props4 }) => !(0, import_utils5.isUndefined)(props4.transitionProperty) && {
12277
+ transitionProperty: props4.transitionProperty,
12278
+ willChange: props4.transitionProperty
12269
12279
  }
12270
12280
  }
12271
12281
  };
@@ -12288,11 +12298,11 @@ var init_style = __esm({
12288
12298
  26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG2.UNIT.default} 26${CONFIG2.UNIT.default}` },
12289
12299
  42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG2.UNIT.default} 42${CONFIG2.UNIT.default}` }
12290
12300
  };
12291
- getComputedBackgroundColor = ({ props: props5 }) => {
12292
- return (0, import_scratch6.getColor)(props5.shapeDirectionColor) || (0, import_scratch6.getColor)(props5.borderColor) || (0, import_scratch6.getColor)(props5.backgroundColor) || (0, import_scratch6.getColor)(props5.background);
12301
+ getComputedBackgroundColor = ({ props: props4 }) => {
12302
+ 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);
12293
12303
  };
12294
- inheritTransition = ({ props: props5, deps }) => {
12295
- const exec7 = Timing.class.transition({ props: props5, deps });
12304
+ inheritTransition = ({ props: props4, deps }) => {
12305
+ const exec7 = Timing.class.transition({ props: props4, deps });
12296
12306
  return exec7 && exec7.transition;
12297
12307
  };
12298
12308
  SHAPES = {
@@ -12302,16 +12312,16 @@ var init_style = __esm({
12302
12312
  tv: {
12303
12313
  borderRadius: "1.15em/2.5em"
12304
12314
  },
12305
- tooltip: ({ props: props5, deps }) => ({
12306
- position: props5.position || "relative",
12315
+ tooltip: ({ props: props4, deps }) => ({
12316
+ position: props4.position || "relative",
12307
12317
  "&:before": {
12308
12318
  content: '""',
12309
12319
  display: "block",
12310
12320
  width: "0px",
12311
12321
  height: "0px",
12312
12322
  border: ".35em solid",
12313
- borderColor: getComputedBackgroundColor({ props: props5, deps }),
12314
- transition: inheritTransition({ props: props5, deps }),
12323
+ borderColor: getComputedBackgroundColor({ props: props4, deps }),
12324
+ transition: inheritTransition({ props: props4, deps }),
12315
12325
  transitionProperty: "border-color",
12316
12326
  position: "absolute",
12317
12327
  borderRadius: ".15em"
@@ -12347,13 +12357,13 @@ var init_style = __esm({
12347
12357
  }
12348
12358
  }
12349
12359
  },
12350
- tag: ({ props: props5, deps }) => ({
12360
+ tag: ({ props: props4, deps }) => ({
12351
12361
  position: "relative",
12352
12362
  "&:before": {
12353
12363
  content: '""',
12354
12364
  display: "block",
12355
- background: getComputedBackgroundColor({ props: props5, deps }),
12356
- transition: inheritTransition({ props: props5, deps }),
12365
+ background: getComputedBackgroundColor({ props: props4, deps }),
12366
+ transition: inheritTransition({ props: props4, deps }),
12357
12367
  transitionProperty: "background",
12358
12368
  borderRadius: ".25em",
12359
12369
  position: "absolute",
@@ -12394,7 +12404,7 @@ var init_style = __esm({
12394
12404
  }
12395
12405
  }
12396
12406
  },
12397
- hexagon: ({ props: props5, deps }) => ({
12407
+ hexagon: ({ props: props4, deps }) => ({
12398
12408
  position: "relative",
12399
12409
  "&:before, &:after": {
12400
12410
  content: '""',
@@ -12406,8 +12416,8 @@ var init_style = __esm({
12406
12416
  top: "50%",
12407
12417
  transformOrigin: "50% 50%",
12408
12418
  height: "73%",
12409
- background: getComputedBackgroundColor({ props: props5, deps }),
12410
- transition: inheritTransition({ props: props5, deps }),
12419
+ background: getComputedBackgroundColor({ props: props4, deps }),
12420
+ transition: inheritTransition({ props: props4, deps }),
12411
12421
  transitionProperty: "background"
12412
12422
  },
12413
12423
  "&:before": {
@@ -12419,7 +12429,7 @@ var init_style = __esm({
12419
12429
  transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
12420
12430
  }
12421
12431
  }),
12422
- chevron: ({ props: props5, deps }) => ({
12432
+ chevron: ({ props: props4, deps }) => ({
12423
12433
  position: "relative",
12424
12434
  "&:before, &:after": {
12425
12435
  content: '""',
@@ -12429,14 +12439,14 @@ var init_style = __esm({
12429
12439
  aspectRatio: "1/1",
12430
12440
  top: "50%",
12431
12441
  transformOrigin: "50% 50%",
12432
- transition: inheritTransition({ props: props5, deps }),
12442
+ transition: inheritTransition({ props: props4, deps }),
12433
12443
  transitionProperty: "background"
12434
12444
  },
12435
12445
  "&:before": {
12436
- background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props5, deps })} 25%, transparent 25%)`
12446
+ background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props4, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props4, deps })} 25%, transparent 25%)`
12437
12447
  },
12438
12448
  "&:after": {
12439
- background: getComputedBackgroundColor({ props: props5, deps }),
12449
+ background: getComputedBackgroundColor({ props: props4, deps }),
12440
12450
  borderRadius: ".25em"
12441
12451
  }
12442
12452
  }),
@@ -12495,53 +12505,53 @@ var init_Theme = __esm({
12495
12505
  transformBackgroundImage: import_scratch7.transformBackgroundImage
12496
12506
  },
12497
12507
  class: {
12498
- depth: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.depth) && deps.depth[props5.depth],
12508
+ depth: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.depth) && deps.depth[props4.depth],
12499
12509
  theme: (element) => {
12500
- const { props: props5, deps } = element;
12510
+ const { props: props4, deps } = element;
12501
12511
  const globalTheme = deps.getSystemGlobalTheme(element);
12502
- if (!props5.theme)
12512
+ if (!props4.theme)
12503
12513
  return;
12504
- const hasSubtheme = props5.theme.includes(" ") && !props5.theme.includes("@");
12505
- const globalThemeForced = `@${props5.themeModifier || globalTheme}`;
12514
+ const hasSubtheme = props4.theme.includes(" ") && !props4.theme.includes("@");
12515
+ const globalThemeForced = `@${props4.themeModifier || globalTheme}`;
12506
12516
  if (hasSubtheme) {
12507
- const themeAppliedInVal = props5.theme.split(" ");
12517
+ const themeAppliedInVal = props4.theme.split(" ");
12508
12518
  themeAppliedInVal.splice(1, 0, globalThemeForced);
12509
12519
  return deps.getMediaTheme(themeAppliedInVal);
12510
- } else if (props5.theme.includes("@{globalTheme}"))
12511
- props5.theme.replace("@{globalTheme}", globalThemeForced);
12512
- return deps.getMediaTheme(props5.theme, `@${props5.themeModifier || globalTheme}`);
12520
+ } else if (props4.theme.includes("@{globalTheme}"))
12521
+ props4.theme.replace("@{globalTheme}", globalThemeForced);
12522
+ return deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
12513
12523
  },
12514
12524
  color: (element) => {
12515
- const { props: props5, deps } = element;
12525
+ const { props: props4, deps } = element;
12516
12526
  const globalTheme = deps.getSystemGlobalTheme(element);
12517
- if (!props5.color)
12527
+ if (!props4.color)
12518
12528
  return;
12519
12529
  return {
12520
- color: deps.getMediaColor(props5.color, globalTheme)
12530
+ color: deps.getMediaColor(props4.color, globalTheme)
12521
12531
  };
12522
12532
  },
12523
12533
  background: (element) => {
12524
- const { props: props5, deps } = element;
12534
+ const { props: props4, deps } = element;
12525
12535
  const globalTheme = deps.getSystemGlobalTheme(element);
12526
- if (!props5.background)
12536
+ if (!props4.background)
12527
12537
  return;
12528
12538
  return {
12529
- background: deps.getMediaColor(props5.background, globalTheme)
12539
+ background: deps.getMediaColor(props4.background, globalTheme)
12530
12540
  };
12531
12541
  },
12532
12542
  backgroundColor: (element) => {
12533
- const { props: props5, deps } = element;
12543
+ const { props: props4, deps } = element;
12534
12544
  const globalTheme = deps.getSystemGlobalTheme(element);
12535
- if (!props5.backgroundColor)
12545
+ if (!props4.backgroundColor)
12536
12546
  return;
12537
12547
  return {
12538
- backgroundColor: deps.getMediaColor(props5.backgroundColor, globalTheme)
12548
+ backgroundColor: deps.getMediaColor(props4.backgroundColor, globalTheme)
12539
12549
  };
12540
12550
  },
12541
12551
  backgroundImage: (element, s, context) => {
12542
- const { props: props5, deps } = element;
12552
+ const { props: props4, deps } = element;
12543
12553
  const globalTheme = deps.getSystemGlobalTheme(element);
12544
- let val = props5.backgroundImage;
12554
+ let val = props4.backgroundImage;
12545
12555
  if (!val)
12546
12556
  return;
12547
12557
  const file = context.files && context.files[val];
@@ -12551,98 +12561,98 @@ var init_Theme = __esm({
12551
12561
  backgroundImage: deps.transformBackgroundImage(val, globalTheme)
12552
12562
  };
12553
12563
  },
12554
- backgroundSize: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundSize) ? {
12555
- backgroundSize: props5.backgroundSize
12564
+ backgroundSize: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.backgroundSize) ? {
12565
+ backgroundSize: props4.backgroundSize
12556
12566
  } : null,
12557
- backgroundPosition: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundPosition) ? {
12558
- backgroundPosition: props5.backgroundPosition
12567
+ backgroundPosition: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.backgroundPosition) ? {
12568
+ backgroundPosition: props4.backgroundPosition
12559
12569
  } : null,
12560
- backgroundRepeat: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.backgroundRepeat) ? {
12561
- backgroundRepeat: props5.backgroundRepeat
12570
+ backgroundRepeat: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.backgroundRepeat) ? {
12571
+ backgroundRepeat: props4.backgroundRepeat
12562
12572
  } : null,
12563
- textStroke: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.textStroke) ? {
12564
- WebkitTextStroke: deps.transformTextStroke(props5.textStroke)
12573
+ textStroke: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.textStroke) ? {
12574
+ WebkitTextStroke: deps.transformTextStroke(props4.textStroke)
12565
12575
  } : null,
12566
- outline: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.outline) && {
12567
- outline: deps.transformBorder(props5.outline)
12576
+ outline: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.outline) && {
12577
+ outline: deps.transformBorder(props4.outline)
12568
12578
  },
12569
- outlineOffset: ({ props: props5, deps }) => deps.transformSizeRatio("outlineOffset", props5),
12570
- border: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.border) && {
12571
- border: deps.transformBorder(props5.border)
12579
+ outlineOffset: ({ props: props4, deps }) => deps.transformSizeRatio("outlineOffset", props4),
12580
+ border: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.border) && {
12581
+ border: deps.transformBorder(props4.border)
12572
12582
  },
12573
12583
  borderColor: (element) => {
12574
- const { props: props5, deps } = element;
12584
+ const { props: props4, deps } = element;
12575
12585
  const globalTheme = deps.getSystemGlobalTheme(element);
12576
- if (!props5.borderColor)
12586
+ if (!props4.borderColor)
12577
12587
  return;
12578
12588
  return {
12579
- borderColor: deps.getMediaColor(props5.borderColor, globalTheme)
12589
+ borderColor: deps.getMediaColor(props4.borderColor, globalTheme)
12580
12590
  };
12581
12591
  },
12582
- borderStyle: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.borderStyle) && {
12583
- borderStyle: props5.borderStyle
12592
+ borderStyle: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.borderStyle) && {
12593
+ borderStyle: props4.borderStyle
12584
12594
  },
12585
- borderLeft: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderLeft) && {
12586
- borderLeft: deps.transformBorder(props5.borderLeft)
12595
+ borderLeft: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.borderLeft) && {
12596
+ borderLeft: deps.transformBorder(props4.borderLeft)
12587
12597
  },
12588
- borderTop: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderTop) && {
12589
- borderTop: deps.transformBorder(props5.borderTop)
12598
+ borderTop: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.borderTop) && {
12599
+ borderTop: deps.transformBorder(props4.borderTop)
12590
12600
  },
12591
- borderRight: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderRight) && {
12592
- borderRight: deps.transformBorder(props5.borderRight)
12601
+ borderRight: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.borderRight) && {
12602
+ borderRight: deps.transformBorder(props4.borderRight)
12593
12603
  },
12594
- borderBottom: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.borderBottom) && {
12595
- borderBottom: deps.transformBorder(props5.borderBottom)
12604
+ borderBottom: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.borderBottom) && {
12605
+ borderBottom: deps.transformBorder(props4.borderBottom)
12596
12606
  },
12597
12607
  shadow: (element) => {
12598
- const { props: props5, deps } = element;
12608
+ const { props: props4, deps } = element;
12599
12609
  const globalTheme = deps.getSystemGlobalTheme(element);
12600
- if (!props5.backgroundImage)
12610
+ if (!props4.backgroundImage)
12601
12611
  return;
12602
12612
  return {
12603
- boxShadow: deps.transformShadow(props5.shadow, globalTheme)
12613
+ boxShadow: deps.transformShadow(props4.shadow, globalTheme)
12604
12614
  };
12605
12615
  },
12606
12616
  // boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
12607
12617
  // boxShadow: deps.transformBoxShadow(props.boxShadow)
12608
12618
  // }),
12609
12619
  boxShadow: (element, state, context) => {
12610
- const { props: props5, deps } = element;
12611
- if (!(0, import_utils6.isString)(props5.boxShadow))
12620
+ const { props: props4, deps } = element;
12621
+ if (!(0, import_utils6.isString)(props4.boxShadow))
12612
12622
  return;
12613
- const [val, hasImportant] = props5.boxShadow.split("!importan");
12623
+ const [val, hasImportant] = props4.boxShadow.split("!importan");
12614
12624
  const globalTheme = getSystemGlobalTheme(element);
12615
12625
  const important = hasImportant ? " !important" : "";
12616
12626
  return {
12617
12627
  boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
12618
12628
  };
12619
12629
  },
12620
- textShadow: ({ props: props5, deps, context }) => !(0, import_utils6.isUndefined)(props5.textShadow) && {
12621
- textShadow: deps.transformBoxShadow(props5.textShadow, context.designSystem.globalTheme)
12630
+ textShadow: ({ props: props4, deps, context }) => !(0, import_utils6.isUndefined)(props4.textShadow) && {
12631
+ textShadow: deps.transformBoxShadow(props4.textShadow, context.designSystem.globalTheme)
12622
12632
  },
12623
- backdropFilter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.backdropFilter) && {
12624
- backdropFilter: props5.backdropFilter
12633
+ backdropFilter: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.backdropFilter) && {
12634
+ backdropFilter: props4.backdropFilter
12625
12635
  },
12626
- caretColor: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.caretColor) && {
12627
- caretColor: props5.caretColor
12636
+ caretColor: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.caretColor) && {
12637
+ caretColor: props4.caretColor
12628
12638
  },
12629
- opacity: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.opacity) && {
12630
- opacity: props5.opacity
12639
+ opacity: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.opacity) && {
12640
+ opacity: props4.opacity
12631
12641
  },
12632
- visibility: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.visibility) && {
12633
- visibility: props5.visibility
12642
+ visibility: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.visibility) && {
12643
+ visibility: props4.visibility
12634
12644
  },
12635
- columnRule: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.columnRule) && {
12636
- columnRule: deps.transformBorder(props5.columnRule)
12645
+ columnRule: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.columnRule) && {
12646
+ columnRule: deps.transformBorder(props4.columnRule)
12637
12647
  },
12638
- filter: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.filter) && {
12639
- filter: props5.filter
12648
+ filter: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.filter) && {
12649
+ filter: props4.filter
12640
12650
  },
12641
- mixBlendMode: ({ props: props5, deps }) => !(0, import_utils6.isUndefined)(props5.mixBlendMode) && {
12642
- mixBlendMode: props5.mixBlendMode
12651
+ mixBlendMode: ({ props: props4, deps }) => !(0, import_utils6.isUndefined)(props4.mixBlendMode) && {
12652
+ mixBlendMode: props4.mixBlendMode
12643
12653
  },
12644
- appearance: ({ props: props5 }) => !(0, import_utils6.isUndefined)(props5.appearance) && {
12645
- appearance: props5.appearance
12654
+ appearance: ({ props: props4 }) => !(0, import_utils6.isUndefined)(props4.appearance) && {
12655
+ appearance: props4.appearance
12646
12656
  }
12647
12657
  }
12648
12658
  };
@@ -12657,86 +12667,86 @@ var init_Media = __esm({
12657
12667
  import_utils7 = __toESM(require_cjs());
12658
12668
  init_Theme();
12659
12669
  keySetters = {
12660
- "@": (key, props5, result, element, isSubtree) => applyMediaProps(
12670
+ "@": (key, props4, result, element, isSubtree) => applyMediaProps(
12661
12671
  key,
12662
- props5,
12672
+ props4,
12663
12673
  isSubtree ? result : result && result.media,
12664
12674
  element
12665
12675
  ),
12666
- ":": (key, props5, result, element, isSubtree) => applySelectorProps(
12676
+ ":": (key, props4, result, element, isSubtree) => applySelectorProps(
12667
12677
  key,
12668
- props5,
12678
+ props4,
12669
12679
  isSubtree ? result : result && result.selector,
12670
12680
  element
12671
12681
  ),
12672
- "[": (key, props5, result, element, isSubtree) => applySelectorProps(
12682
+ "[": (key, props4, result, element, isSubtree) => applySelectorProps(
12673
12683
  key,
12674
- props5,
12684
+ props4,
12675
12685
  isSubtree ? result : result && result.selector,
12676
12686
  element
12677
12687
  ),
12678
- "*": (key, props5, result, element, isSubtree) => applySelectorProps(
12688
+ "*": (key, props4, result, element, isSubtree) => applySelectorProps(
12679
12689
  key,
12680
- props5,
12690
+ props4,
12681
12691
  isSubtree ? result : result && result.selector,
12682
12692
  element
12683
12693
  ),
12684
- "+": (key, props5, result, element, isSubtree) => applySelectorProps(
12694
+ "+": (key, props4, result, element, isSubtree) => applySelectorProps(
12685
12695
  key,
12686
- props5,
12696
+ props4,
12687
12697
  isSubtree ? result : result && result.selector,
12688
12698
  element
12689
12699
  ),
12690
- "~": (key, props5, result, element, isSubtree) => applySelectorProps(
12700
+ "~": (key, props4, result, element, isSubtree) => applySelectorProps(
12691
12701
  key,
12692
- props5,
12702
+ props4,
12693
12703
  isSubtree ? result : result && result.selector,
12694
12704
  element
12695
12705
  ),
12696
- "&": (key, props5, result, element, isSubtree) => applyAndProps(
12706
+ "&": (key, props4, result, element, isSubtree) => applyAndProps(
12697
12707
  key,
12698
- props5,
12708
+ props4,
12699
12709
  isSubtree ? result : result && result.selector,
12700
12710
  element
12701
12711
  ),
12702
- ">": (key, props5, result, element, isSubtree) => applyAndProps(
12712
+ ">": (key, props4, result, element, isSubtree) => applyAndProps(
12703
12713
  key,
12704
- props5,
12714
+ props4,
12705
12715
  isSubtree ? result : result && result.selector,
12706
12716
  element
12707
12717
  ),
12708
- $: (key, props5, result, element, isSubtree) => applyCaseProps(
12718
+ $: (key, props4, result, element, isSubtree) => applyCaseProps(
12709
12719
  key,
12710
- props5,
12720
+ props4,
12711
12721
  isSubtree ? result : result && result.case,
12712
12722
  element
12713
12723
  ),
12714
- "-": (key, props5, result, element, isSubtree) => applyVariableProps(
12724
+ "-": (key, props4, result, element, isSubtree) => applyVariableProps(
12715
12725
  key,
12716
- props5,
12726
+ props4,
12717
12727
  isSubtree ? result : result && result.variable,
12718
12728
  element
12719
12729
  ),
12720
- ".": (key, props5, result, element, isSubtree) => applyConditionalCaseProps(
12730
+ ".": (key, props4, result, element, isSubtree) => applyConditionalCaseProps(
12721
12731
  key,
12722
- props5,
12732
+ props4,
12723
12733
  isSubtree ? result : result && result.case,
12724
12734
  element
12725
12735
  ),
12726
- "!": (key, props5, result, element, isSubtree) => applyConditionalFalsyProps(
12736
+ "!": (key, props4, result, element, isSubtree) => applyConditionalFalsyProps(
12727
12737
  key,
12728
- props5,
12738
+ props4,
12729
12739
  isSubtree ? result : result && result.case,
12730
12740
  element
12731
12741
  )
12732
12742
  };
12733
- execClass = (key, props5, result, element) => {
12743
+ execClass = (key, props4, result, element) => {
12734
12744
  const { class: className } = element;
12735
12745
  const classnameExec = className[key];
12736
12746
  if (typeof classnameExec !== "function")
12737
12747
  return;
12738
12748
  let classExec = classnameExec({
12739
- props: props5,
12749
+ props: props4,
12740
12750
  context: element.context,
12741
12751
  state: element.state,
12742
12752
  deps: element.deps
@@ -12748,27 +12758,27 @@ var init_Media = __esm({
12748
12758
  }
12749
12759
  return classExec;
12750
12760
  };
12751
- convertPropsToClass = (props5, result, element) => {
12761
+ convertPropsToClass = (props4, result, element) => {
12752
12762
  const propsClassObj = {};
12753
- for (const key in props5) {
12763
+ for (const key in props4) {
12754
12764
  const setter = keySetters[key.slice(0, 1)];
12755
12765
  if (setter) {
12756
- setter(key, props5[key], propsClassObj, element, true);
12766
+ setter(key, props4[key], propsClassObj, element, true);
12757
12767
  continue;
12758
12768
  } else {
12759
- execClass(key, props5, propsClassObj, element);
12769
+ execClass(key, props4, propsClassObj, element);
12760
12770
  }
12761
12771
  }
12762
12772
  return propsClassObj;
12763
12773
  };
12764
- applyMediaProps = (key, props5, result, element) => {
12774
+ applyMediaProps = (key, props4, result, element) => {
12765
12775
  const { context } = element;
12766
12776
  if (!context.designSystem || !context.designSystem.MEDIA)
12767
12777
  return;
12768
12778
  const globalTheme = getSystemGlobalTheme(element);
12769
12779
  const { MEDIA: MEDIA2 } = context.designSystem;
12770
12780
  const mediaValue = MEDIA2[key.slice(1)];
12771
- const generatedClass = convertPropsToClass(props5, result, element);
12781
+ const generatedClass = convertPropsToClass(props4, result, element);
12772
12782
  const name = key.slice(1);
12773
12783
  const isTheme = ["dark", "light"].includes(name);
12774
12784
  const matchesGlobal = name === globalTheme;
@@ -12782,43 +12792,43 @@ var init_Media = __esm({
12782
12792
  result[mediaKey] = generatedClass;
12783
12793
  return result[mediaKey];
12784
12794
  };
12785
- applyAndProps = (key, props5, result, element) => {
12786
- result[key] = convertPropsToClass(props5, result, element);
12795
+ applyAndProps = (key, props4, result, element) => {
12796
+ result[key] = convertPropsToClass(props4, result, element);
12787
12797
  return result[key];
12788
12798
  };
12789
- applySelectorProps = (key, props5, result, element) => {
12799
+ applySelectorProps = (key, props4, result, element) => {
12790
12800
  const selectorKey = `&${key}`;
12791
- result[selectorKey] = convertPropsToClass(props5, result, element);
12801
+ result[selectorKey] = convertPropsToClass(props4, result, element);
12792
12802
  return result[selectorKey];
12793
12803
  };
12794
- applyCaseProps = (key, props5, result, element) => {
12804
+ applyCaseProps = (key, props4, result, element) => {
12795
12805
  const { CASES } = element.context && element.context.designSystem;
12796
12806
  const caseKey = key.slice(1);
12797
12807
  const isPropTrue = element.props[caseKey];
12798
12808
  if (!CASES[caseKey] && !isPropTrue)
12799
12809
  return;
12800
- return (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
12810
+ return (0, import_utils7.merge)(result, convertPropsToClass(props4, result, element));
12801
12811
  };
12802
- applyVariableProps = (key, props5, result, element) => {
12803
- result[key] = props5;
12812
+ applyVariableProps = (key, props4, result, element) => {
12813
+ result[key] = props4;
12804
12814
  return result;
12805
12815
  };
12806
- applyConditionalCaseProps = (key, props5, result, element) => {
12816
+ applyConditionalCaseProps = (key, props4, result, element) => {
12807
12817
  const caseKey = key.slice(1);
12808
12818
  const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
12809
12819
  if (!isPropTrue)
12810
12820
  return;
12811
- return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
12821
+ return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props4, result, element));
12812
12822
  };
12813
- applyConditionalFalsyProps = (key, props5, result, element) => {
12823
+ applyConditionalFalsyProps = (key, props4, result, element) => {
12814
12824
  const caseKey = key.slice(1);
12815
12825
  const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
12816
12826
  if (!isPropTrue)
12817
- return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props5, result, element));
12827
+ return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props4, result, element));
12818
12828
  };
12819
- applyTrueProps = (props5, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props5, result, element));
12829
+ applyTrueProps = (props4, result, element) => (0, import_utils7.merge)(result, convertPropsToClass(props4, result, element));
12820
12830
  beforeClassAssign = (element, s) => {
12821
- const { props: props5, class: className, context } = element;
12831
+ const { props: props4, class: className, context } = element;
12822
12832
  const CLASS_NAMES = {
12823
12833
  media: {},
12824
12834
  selector: {},
@@ -12828,11 +12838,11 @@ var init_Media = __esm({
12828
12838
  if (!context)
12829
12839
  return;
12830
12840
  const globalTheme = context.designSystem.globalTheme;
12831
- for (const key in props5) {
12841
+ for (const key in props4) {
12832
12842
  const setter = keySetters[key.slice(0, 1)];
12833
12843
  if (globalTheme) {
12834
- if (key === "theme" && !props5.themeModifier) {
12835
- props5.update({
12844
+ if (key === "theme" && !props4.themeModifier) {
12845
+ props4.update({
12836
12846
  themeModifier: globalTheme
12837
12847
  }, {
12838
12848
  preventListeners: true,
@@ -12843,9 +12853,9 @@ var init_Media = __esm({
12843
12853
  }
12844
12854
  }
12845
12855
  if (setter)
12846
- setter(key, props5[key], CLASS_NAMES, element);
12856
+ setter(key, props4[key], CLASS_NAMES, element);
12847
12857
  else if (key === "true")
12848
- applyTrueProps(props5[key], CLASS_NAMES, element);
12858
+ applyTrueProps(props4[key], CLASS_NAMES, element);
12849
12859
  }
12850
12860
  const parentProps = element.parent && element.parent.props;
12851
12861
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
@@ -12887,15 +12897,15 @@ var init_Iframe = __esm({
12887
12897
  minHeight: "H"
12888
12898
  },
12889
12899
  attr: {
12890
- src: ({ props: props5 }) => props5.src,
12891
- srcdoc: ({ props: props5 }) => props5.srcdoc,
12892
- sandbox: ({ props: props5 }) => props5.sandbox,
12893
- seamless: ({ props: props5 }) => props5.seamless,
12894
- loading: ({ props: props5 }) => props5.loading,
12895
- allowfullscreen: ({ props: props5 }) => props5.allowfullscreen,
12896
- frameborder: ({ props: props5 }) => props5.frameborder,
12897
- allow: ({ props: props5 }) => props5.allow,
12898
- referrerpolicy: ({ props: props5 }) => props5.referrerpolicy
12900
+ src: ({ props: props4 }) => props4.src,
12901
+ srcdoc: ({ props: props4 }) => props4.srcdoc,
12902
+ sandbox: ({ props: props4 }) => props4.sandbox,
12903
+ seamless: ({ props: props4 }) => props4.seamless,
12904
+ loading: ({ props: props4 }) => props4.loading,
12905
+ allowfullscreen: ({ props: props4 }) => props4.allowfullscreen,
12906
+ frameborder: ({ props: props4 }) => props4.frameborder,
12907
+ allow: ({ props: props4 }) => props4.allow,
12908
+ referrerpolicy: ({ props: props4 }) => props4.referrerpolicy
12899
12909
  }
12900
12910
  };
12901
12911
  }
@@ -12908,8 +12918,8 @@ var init_Interaction = __esm({
12908
12918
  "use strict";
12909
12919
  Interaction = {
12910
12920
  class: {
12911
- userSelect: ({ props: props5 }) => props5.userSelect && { userSelect: props5.userSelect },
12912
- pointerEvents: ({ props: props5 }) => props5.pointerEvents && { pointerEvents: props5.pointerEvents },
12921
+ userSelect: ({ props: props4 }) => props4.userSelect && { userSelect: props4.userSelect },
12922
+ pointerEvents: ({ props: props4 }) => props4.pointerEvents && { pointerEvents: props4.pointerEvents },
12913
12923
  cursor: (el, s, ctx) => {
12914
12924
  let val = el.props.cursor;
12915
12925
  if (!val)
@@ -12977,8 +12987,8 @@ var init_InteractiveComponent = __esm({
12977
12987
  }
12978
12988
  },
12979
12989
  attr: {
12980
- placeholder: ({ props: props5 }) => props5.placeholder,
12981
- tabIndex: ({ props: props5 }) => props5.tabIndex
12990
+ placeholder: ({ props: props4 }) => props4.placeholder,
12991
+ tabIndex: ({ props: props4 }) => props4.tabIndex
12982
12992
  }
12983
12993
  };
12984
12994
  FocusableComponent = {
@@ -12995,7 +13005,7 @@ var init_InteractiveComponent = __esm({
12995
13005
  style
12996
13006
  },
12997
13007
  attr: {
12998
- type: ({ props: props5 }) => props5.type
13008
+ type: ({ props: props4 }) => props4.type
12999
13009
  }
13000
13010
  };
13001
13011
  }
@@ -13008,18 +13018,18 @@ var init_Overflow = __esm({
13008
13018
  "use strict";
13009
13019
  Overflow = {
13010
13020
  class: {
13011
- overflow: ({ props: props5, deps }) => !deps.isUndefined(props5.overflow) && {
13012
- overflow: props5.overflow,
13021
+ overflow: ({ props: props4, deps }) => !deps.isUndefined(props4.overflow) && {
13022
+ overflow: props4.overflow,
13013
13023
  scrollBehavior: "smooth"
13014
13024
  },
13015
- overflowX: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowX) && {
13016
- overflowX: props5.overflowX
13025
+ overflowX: ({ props: props4, deps }) => !deps.isUndefined(props4.overflowX) && {
13026
+ overflowX: props4.overflowX
13017
13027
  },
13018
- overflowY: ({ props: props5, deps }) => !deps.isUndefined(props5.overflowY) && {
13019
- overflowY: props5.overflowY
13028
+ overflowY: ({ props: props4, deps }) => !deps.isUndefined(props4.overflowY) && {
13029
+ overflowY: props4.overflowY
13020
13030
  },
13021
- overscrollBehavior: ({ props: props5, deps }) => !deps.isUndefined(props5.overscrollBehavior) && {
13022
- overscrollBehavior: props5.overscrollBehavior
13031
+ overscrollBehavior: ({ props: props4, deps }) => !deps.isUndefined(props4.overscrollBehavior) && {
13032
+ overscrollBehavior: props4.overscrollBehavior
13023
13033
  }
13024
13034
  }
13025
13035
  };
@@ -13632,8 +13642,8 @@ var require_create = __commonJS({
13632
13642
  return dependentState;
13633
13643
  };
13634
13644
  var checkForTypes = (element) => {
13635
- const { state: orig, props: props5, __ref: ref } = element;
13636
- const state = (props5 == null ? void 0 : props5.state) || orig;
13645
+ const { state: orig, props: props4, __ref: ref } = element;
13646
+ const state = (props4 == null ? void 0 : props4.state) || orig;
13637
13647
  if ((0, import_utils30.isFunction)(state)) {
13638
13648
  ref.__state = state;
13639
13649
  return (0, import_utils30.exec)(state, element);
@@ -13932,21 +13942,21 @@ var init_Position = __esm({
13932
13942
  Position = {
13933
13943
  deps: { getSpacingByKey: import_scratch8.getSpacingByKey },
13934
13944
  class: {
13935
- position: ({ props: props5 }) => props5.position && { position: props5.position },
13936
- inset: ({ props: props5, deps, context }) => {
13937
- const { inset } = props5;
13945
+ position: ({ props: props4 }) => props4.position && { position: props4.position },
13946
+ inset: ({ props: props4, deps, context }) => {
13947
+ const { inset } = props4;
13938
13948
  if (context.utils.isNumber(inset))
13939
13949
  return { inset };
13940
13950
  if (!context.utils.isString(inset))
13941
13951
  return;
13942
13952
  return { inset: inset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k).join(" ") };
13943
13953
  },
13944
- left: ({ props: props5, deps }) => deps.getSpacingByKey(props5.left, "left"),
13945
- top: ({ props: props5, deps }) => deps.getSpacingByKey(props5.top, "top"),
13946
- right: ({ props: props5, deps }) => deps.getSpacingByKey(props5.right, "right"),
13947
- bottom: ({ props: props5, deps }) => deps.getSpacingByKey(props5.bottom, "bottom"),
13948
- verticalInset: ({ props: props5, deps }) => {
13949
- const { verticalInset } = props5;
13954
+ left: ({ props: props4, deps }) => deps.getSpacingByKey(props4.left, "left"),
13955
+ top: ({ props: props4, deps }) => deps.getSpacingByKey(props4.top, "top"),
13956
+ right: ({ props: props4, deps }) => deps.getSpacingByKey(props4.right, "right"),
13957
+ bottom: ({ props: props4, deps }) => deps.getSpacingByKey(props4.bottom, "bottom"),
13958
+ verticalInset: ({ props: props4, deps }) => {
13959
+ const { verticalInset } = props4;
13950
13960
  if (typeof verticalInset !== "string")
13951
13961
  return;
13952
13962
  const vi = verticalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
@@ -13955,8 +13965,8 @@ var init_Position = __esm({
13955
13965
  bottom: vi[1] || vi[0]
13956
13966
  };
13957
13967
  },
13958
- horizontalInset: ({ props: props5, deps }) => {
13959
- const { horizontalInset } = props5;
13968
+ horizontalInset: ({ props: props4, deps }) => {
13969
+ const { horizontalInset } = props4;
13960
13970
  if (typeof horizontalInset !== "string")
13961
13971
  return;
13962
13972
  const vi = horizontalInset.split(" ").map((v) => deps.getSpacingByKey(v, "k").k);
@@ -13983,24 +13993,24 @@ var init_Picture = __esm({
13983
13993
  tag: "source",
13984
13994
  attr: {
13985
13995
  media: (element) => {
13986
- const { props: props5, key, context, deps } = element;
13996
+ const { props: props4, key, context, deps } = element;
13987
13997
  const { MEDIA: MEDIA2 } = context.designSystem;
13988
13998
  const globalTheme = deps.getSystemGlobalTheme(element);
13989
- const mediaName = (props5.media || key).slice(1);
13999
+ const mediaName = (props4.media || key).slice(1);
13990
14000
  if (mediaName === globalTheme)
13991
14001
  return "(min-width: 0px)";
13992
14002
  else if (mediaName === "dark" || mediaName === "light")
13993
14003
  return "(max-width: 0px)";
13994
14004
  return MEDIA2[mediaName];
13995
14005
  },
13996
- srcset: ({ props: props5 }) => props5.srcset
14006
+ srcset: ({ props: props4 }) => props4.srcset
13997
14007
  }
13998
14008
  },
13999
- Img: ({ props: props5 }) => ({
14009
+ Img: ({ props: props4 }) => ({
14000
14010
  width: "inherit",
14001
14011
  ignoreChildExtend: true,
14002
14012
  height: "inherit",
14003
- src: props5.src
14013
+ src: props4.src
14004
14014
  })
14005
14015
  };
14006
14016
  }
@@ -14013,7 +14023,7 @@ var init_Pseudo = __esm({
14013
14023
  "use strict";
14014
14024
  Pseudo = {
14015
14025
  class: {
14016
- content: ({ props: props5 }) => props5.content && { content: props5.content }
14026
+ content: ({ props: props4 }) => props4.content && { content: props4.content }
14017
14027
  }
14018
14028
  };
14019
14029
  }
@@ -14032,19 +14042,19 @@ var init_Svg = __esm({
14032
14042
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
14033
14043
  },
14034
14044
  html: (el) => {
14035
- const { props: props5, context } = el;
14036
- if (props5.semantic_symbols)
14045
+ const { props: props4, context } = el;
14046
+ if (props4.semantic_symbols)
14037
14047
  return;
14038
- if (props5.html)
14039
- return el.call("exec", props5.html, el);
14048
+ if (props4.html)
14049
+ return el.call("exec", props4.html, el);
14040
14050
  const { designSystem, utils: utils2 } = context;
14041
14051
  const SVG = designSystem && designSystem.SVG;
14042
- const useSvgSprite = props5.spriteId || context.designSystem && context.designSystem.useSvgSprite;
14043
- const src = el.call("exec", props5.src, el);
14052
+ const useSvgSprite = props4.spriteId || context.designSystem && context.designSystem.useSvgSprite;
14053
+ const src = el.call("exec", props4.src, el);
14044
14054
  if (!useSvgSprite && src)
14045
14055
  return src;
14046
14056
  const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
14047
- const spriteId = props5.spriteId;
14057
+ const spriteId = props4.spriteId;
14048
14058
  if (spriteId)
14049
14059
  return useSVGSymbol(spriteId);
14050
14060
  const symbolId = Symbol.for(src);
@@ -14075,37 +14085,37 @@ var init_Shape = __esm({
14075
14085
  init_style();
14076
14086
  import_scratch9 = __toESM(require_cjs2());
14077
14087
  init_Pseudo();
14078
- transformBorderRadius = (radius, props5, propertyName) => {
14088
+ transformBorderRadius = (radius, props4, propertyName) => {
14079
14089
  if (!(0, import_utils9.isString)(radius))
14080
14090
  return;
14081
14091
  return {
14082
- borderRadius: radius.split(" ").map((v, k) => (0, import_scratch9.getSpacingBasedOnRatio)(props5, propertyName, v)[propertyName]).join(" ")
14092
+ borderRadius: radius.split(" ").map((v, k) => (0, import_scratch9.getSpacingBasedOnRatio)(props4, propertyName, v)[propertyName]).join(" ")
14083
14093
  };
14084
14094
  };
14085
14095
  Shape = {
14086
14096
  extend: Pseudo,
14087
14097
  deps: { exec: import_utils9.exec, getSpacingBasedOnRatio: import_scratch9.getSpacingBasedOnRatio, getMediaColor: import_scratch9.getMediaColor, transformBorderRadius },
14088
14098
  class: {
14089
- shape: ({ props: props5, deps }) => {
14090
- const { shape } = props5;
14091
- return deps.exec(SHAPES[shape], { props: props5, deps });
14099
+ shape: ({ props: props4, deps }) => {
14100
+ const { shape } = props4;
14101
+ return deps.exec(SHAPES[shape], { props: props4, deps });
14092
14102
  },
14093
- shapeDirection: ({ props: props5 }) => {
14094
- const { shape, shapeDirection } = props5;
14103
+ shapeDirection: ({ props: props4 }) => {
14104
+ const { shape, shapeDirection } = props4;
14095
14105
  if (!shape || !shapeDirection)
14096
14106
  return;
14097
14107
  const shapeDir = SHAPES[shape + "Direction"];
14098
14108
  return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
14099
14109
  },
14100
- shapeDirectionColor: ({ props: props5, deps }) => {
14101
- const { background, backgroundColor } = props5;
14110
+ shapeDirectionColor: ({ props: props4, deps }) => {
14111
+ const { background, backgroundColor } = props4;
14102
14112
  const borderColor = {
14103
14113
  borderColor: deps.getMediaColor(background || backgroundColor)
14104
14114
  };
14105
- return props5.shapeDirection ? borderColor : null;
14115
+ return props4.shapeDirection ? borderColor : null;
14106
14116
  },
14107
- round: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.round || props5.borderRadius, props5, "round"),
14108
- borderRadius: ({ props: props5, key, deps, ...el }) => deps.transformBorderRadius(props5.borderRadius || props5.round, props5, "borderRadius")
14117
+ round: ({ props: props4, key, deps, ...el }) => deps.transformBorderRadius(props4.round || props4.borderRadius, props4, "round"),
14118
+ borderRadius: ({ props: props4, key, deps, ...el }) => deps.transformBorderRadius(props4.borderRadius || props4.round, props4, "borderRadius")
14109
14119
  }
14110
14120
  };
14111
14121
  }
@@ -14120,40 +14130,40 @@ var init_Text = __esm({
14120
14130
  import_scratch10 = __toESM(require_cjs2());
14121
14131
  props2 = {
14122
14132
  fontSize: (el) => {
14123
- const { props: props5, deps } = el;
14124
- return props5.fontSize ? deps.getFontSizeByKey(props5.fontSize) : null;
14133
+ const { props: props4, deps } = el;
14134
+ return props4.fontSize ? deps.getFontSizeByKey(props4.fontSize) : null;
14125
14135
  },
14126
- fontFamily: ({ props: props5, deps }) => ({
14127
- fontFamily: deps.getFontFamily(props5.fontFamily) || props5.fontFamily
14136
+ fontFamily: ({ props: props4, deps }) => ({
14137
+ fontFamily: deps.getFontFamily(props4.fontFamily) || props4.fontFamily
14128
14138
  }),
14129
- fontWeight: ({ props: props5 }) => ({
14130
- fontWeight: props5.fontWeight,
14131
- fontVariationSettings: '"wght" ' + props5.fontWeight
14139
+ fontWeight: ({ props: props4 }) => ({
14140
+ fontWeight: props4.fontWeight,
14141
+ fontVariationSettings: '"wght" ' + props4.fontWeight
14132
14142
  })
14133
14143
  };
14134
14144
  Text = {
14135
14145
  deps: { exec: import_utils10.exec, getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
14136
14146
  text: (el) => {
14137
- const { key, props: props5, state, deps } = el;
14138
- if (props5.text === true)
14139
- return state && state[key] || props5 && props5[key];
14140
- return deps.exec(props5.text, el);
14147
+ const { key, props: props4, state, deps } = el;
14148
+ if (props4.text === true)
14149
+ return state && state[key] || props4 && props4[key];
14150
+ return deps.exec(props4.text, el);
14141
14151
  },
14142
14152
  class: {
14143
- font: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.font) && { font: props5.font },
14144
- lineHeight: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.lineHeight) && { lineHeight: props5.lineHeight },
14153
+ font: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.font) && { font: props4.font },
14154
+ lineHeight: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.lineHeight) && { lineHeight: props4.lineHeight },
14145
14155
  // lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
14146
- textDecoration: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textDecoration) && { textDecoration: props5.textDecoration },
14147
- textTransform: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textTransform) && { textTransform: props5.textTransform },
14148
- wordBreak: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordBreak) && { wordBreak: props5.wordBreak },
14149
- whiteSpace: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.whiteSpace) && { whiteSpace: props5.whiteSpace },
14150
- wordWrap: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.wordWrap) && { wordWrap: props5.wordWrap },
14151
- letterSpacing: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.letterSpacing) && { letterSpacing: props5.letterSpacing },
14152
- textOverflow: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOverflow) && { textOverflow: props5.textOverflow },
14153
- textAlign: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textAlign) && { textAlign: props5.textAlign },
14154
- writingMode: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.writingMode) && { writingMode: props5.writingMode },
14155
- textOrientation: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textOrientation) && { textOrientation: props5.textOrientation },
14156
- textIndent: ({ props: props5 }) => !(0, import_utils10.isUndefined)(props5.textIndent) && { textIndent: props5.textIndent },
14156
+ textDecoration: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textDecoration) && { textDecoration: props4.textDecoration },
14157
+ textTransform: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textTransform) && { textTransform: props4.textTransform },
14158
+ wordBreak: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.wordBreak) && { wordBreak: props4.wordBreak },
14159
+ whiteSpace: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.whiteSpace) && { whiteSpace: props4.whiteSpace },
14160
+ wordWrap: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.wordWrap) && { wordWrap: props4.wordWrap },
14161
+ letterSpacing: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.letterSpacing) && { letterSpacing: props4.letterSpacing },
14162
+ textOverflow: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textOverflow) && { textOverflow: props4.textOverflow },
14163
+ textAlign: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textAlign) && { textAlign: props4.textAlign },
14164
+ writingMode: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.writingMode) && { writingMode: props4.writingMode },
14165
+ textOrientation: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textOrientation) && { textOrientation: props4.textOrientation },
14166
+ textIndent: ({ props: props4 }) => !(0, import_utils10.isUndefined)(props4.textIndent) && { textIndent: props4.textIndent },
14157
14167
  ...props2
14158
14168
  }
14159
14169
  };
@@ -14198,10 +14208,10 @@ var init_Transform = __esm({
14198
14208
  import_utils11 = __toESM(require_cjs());
14199
14209
  Transform = {
14200
14210
  class: {
14201
- zoom: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.zoom) && { zoom: props5.zoom },
14202
- transform: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transform) && { transform: props5.transform },
14203
- transformOrigin: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.transformOrigin) && { transformOrigin: props5.transformOrigin },
14204
- backfaceVisibility: ({ props: props5 }) => !(0, import_utils11.isUndefined)(props5.backfaceVisibility) && { backfaceVisibility: props5.backfaceVisibility }
14211
+ zoom: ({ props: props4 }) => !(0, import_utils11.isUndefined)(props4.zoom) && { zoom: props4.zoom },
14212
+ transform: ({ props: props4 }) => !(0, import_utils11.isUndefined)(props4.transform) && { transform: props4.transform },
14213
+ transformOrigin: ({ props: props4 }) => !(0, import_utils11.isUndefined)(props4.transformOrigin) && { transformOrigin: props4.transformOrigin },
14214
+ backfaceVisibility: ({ props: props4 }) => !(0, import_utils11.isUndefined)(props4.backfaceVisibility) && { backfaceVisibility: props4.backfaceVisibility }
14205
14215
  }
14206
14216
  };
14207
14217
  }
@@ -14215,9 +14225,9 @@ var init_XYZ = __esm({
14215
14225
  import_utils12 = __toESM(require_cjs());
14216
14226
  XYZ = {
14217
14227
  class: {
14218
- zIndex: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.zIndex) && { zIndex: props5.zIndex },
14219
- perspective: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspective) && { perspective: props5.perspective },
14220
- perspectiveOrigin: ({ props: props5 }) => !(0, import_utils12.isUndefined)(props5.perspectiveOrigin) && { perspectiveOrigin: props5.perspectiveOrigin }
14228
+ zIndex: ({ props: props4 }) => !(0, import_utils12.isUndefined)(props4.zIndex) && { zIndex: props4.zIndex },
14229
+ perspective: ({ props: props4 }) => !(0, import_utils12.isUndefined)(props4.perspective) && { perspective: props4.perspective },
14230
+ perspectiveOrigin: ({ props: props4 }) => !(0, import_utils12.isUndefined)(props4.perspectiveOrigin) && { perspectiveOrigin: props4.perspectiveOrigin }
14221
14231
  }
14222
14232
  };
14223
14233
  }
@@ -14253,31 +14263,31 @@ var init_Animation = __esm({
14253
14263
  animationName: (el) => el.props.animationName && {
14254
14264
  animationName: el.deps.applyAnimationProps(el.props.animationName, el)
14255
14265
  },
14256
- animationDuration: ({ props: props5, deps }) => props5.animationDuration && {
14257
- animationDuration: deps.getTimingByKey(props5.animationDuration).timing
14266
+ animationDuration: ({ props: props4, deps }) => props4.animationDuration && {
14267
+ animationDuration: deps.getTimingByKey(props4.animationDuration).timing
14258
14268
  },
14259
- animationDelay: ({ props: props5, deps }) => props5.animationDelay && {
14260
- animationDelay: deps.getTimingByKey(props5.animationDelay).timing
14269
+ animationDelay: ({ props: props4, deps }) => props4.animationDelay && {
14270
+ animationDelay: deps.getTimingByKey(props4.animationDelay).timing
14261
14271
  },
14262
- animationTimingFunction: ({ props: props5, deps }) => props5.animationTimingFunction && {
14263
- animationTimingFunction: deps.getTimingFunction(props5.animationTimingFunction)
14272
+ animationTimingFunction: ({ props: props4, deps }) => props4.animationTimingFunction && {
14273
+ animationTimingFunction: deps.getTimingFunction(props4.animationTimingFunction)
14264
14274
  }
14265
14275
  };
14266
14276
  Animation = {
14267
14277
  deps: { isObject: import_utils13.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
14268
14278
  class: {
14269
14279
  ...props3,
14270
- animationFillMode: ({ props: props5 }) => props5.animationFillMode && {
14271
- animationFillMode: props5.animationFillMode
14280
+ animationFillMode: ({ props: props4 }) => props4.animationFillMode && {
14281
+ animationFillMode: props4.animationFillMode
14272
14282
  },
14273
- animationPlayState: ({ props: props5 }) => props5.animationPlayState && {
14274
- animationPlayState: props5.animationPlayState
14283
+ animationPlayState: ({ props: props4 }) => props4.animationPlayState && {
14284
+ animationPlayState: props4.animationPlayState
14275
14285
  },
14276
- animationIterationCount: ({ props: props5 }) => props5.animationIterationCount && {
14277
- animationIterationCount: props5.animationIterationCount || 1
14286
+ animationIterationCount: ({ props: props4 }) => props4.animationIterationCount && {
14287
+ animationIterationCount: props4.animationIterationCount || 1
14278
14288
  },
14279
- animationDirection: ({ props: props5 }) => props5.animationDirection && {
14280
- animationDirection: props5.animationDirection
14289
+ animationDirection: ({ props: props4 }) => props4.animationDirection && {
14290
+ animationDirection: props4.animationDirection
14281
14291
  }
14282
14292
  }
14283
14293
  };
@@ -14322,7 +14332,7 @@ var init_Box = __esm({
14322
14332
  import_utils14 = __toESM(require_cjs());
14323
14333
  PropsCSS = {
14324
14334
  class: {
14325
- style: ({ props: props5 }) => props5 && props5.style
14335
+ style: ({ props: props4 }) => props4 && props4.style
14326
14336
  }
14327
14337
  };
14328
14338
  Box = {
@@ -14343,16 +14353,16 @@ var init_Box = __esm({
14343
14353
  ],
14344
14354
  deps: { isString: import_utils14.isString, isUndefined: import_utils14.isUndefined },
14345
14355
  attr: {
14346
- id: ({ props: props5, deps }) => deps.isString(props5.id) && props5.id,
14347
- title: ({ props: props5, deps }) => deps.isString(props5.title) && props5.title,
14348
- contentEditable: ({ props: props5 }) => props5.contentEditable || props5.contenteditable,
14349
- dir: ({ props: props5 }) => props5.dir,
14350
- draggable: ({ props: props5 }) => props5.draggable,
14351
- hidden: ({ props: props5 }) => props5.hidden,
14352
- lang: ({ props: props5 }) => props5.lang,
14353
- spellcheck: ({ props: props5 }) => props5.spellcheck,
14354
- tabindex: ({ props: props5 }) => props5.tabindex,
14355
- translate: ({ props: props5 }) => props5.translate
14356
+ id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
14357
+ title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
14358
+ contentEditable: ({ props: props4 }) => props4.contentEditable || props4.contenteditable,
14359
+ dir: ({ props: props4 }) => props4.dir,
14360
+ draggable: ({ props: props4 }) => props4.draggable,
14361
+ hidden: ({ props: props4 }) => props4.hidden,
14362
+ lang: ({ props: props4 }) => props4.lang,
14363
+ spellcheck: ({ props: props4 }) => props4.spellcheck,
14364
+ tabindex: ({ props: props4 }) => props4.tabindex,
14365
+ translate: ({ props: props4 }) => props4.translate
14356
14366
  }
14357
14367
  };
14358
14368
  Circle = {
@@ -14370,13 +14380,13 @@ var init_Icon = __esm({
14370
14380
  "use strict";
14371
14381
  import_utils15 = __toESM(require_cjs());
14372
14382
  inheritFromIsActive = (el) => {
14373
- const { props: props5 } = el;
14374
- const propsActive = props5[".isActive"];
14383
+ const { props: props4 } = el;
14384
+ const propsActive = props4[".isActive"];
14375
14385
  return el.call("exec", propsActive.name || propsActive.icon);
14376
14386
  };
14377
14387
  getIconName = (el, s) => {
14378
- const { key, props: props5 } = el;
14379
- let icon = el.call("exec", props5.name || props5.icon || key, el);
14388
+ const { key, props: props4 } = el;
14389
+ let icon = el.call("exec", props4.name || props4.icon || key, el);
14380
14390
  if ((0, import_utils15.isString)(icon) && icon.includes("{{")) {
14381
14391
  icon = el.call("replaceLiteralsWithObjectFields", icon, s);
14382
14392
  }
@@ -14386,7 +14396,7 @@ var init_Icon = __esm({
14386
14396
  extend: "Svg",
14387
14397
  deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
14388
14398
  props: (el, s, ctx) => {
14389
- const { props: props5, parent, deps } = el;
14399
+ const { props: props4, parent, deps } = el;
14390
14400
  const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem;
14391
14401
  const { toCamelCase } = ctx && ctx.utils;
14392
14402
  const iconName = getIconName(el, s);
@@ -14396,7 +14406,7 @@ var init_Icon = __esm({
14396
14406
  if (semanticIcon)
14397
14407
  return semanticIcon;
14398
14408
  let activeIconName;
14399
- if (props5.isActive)
14409
+ if (props4.isActive)
14400
14410
  activeIconName = inheritFromIsActive(el);
14401
14411
  const parentProps = parent.props;
14402
14412
  const parentPropsActive = parentProps[".isActive"];
@@ -14423,7 +14433,7 @@ var init_Icon = __esm({
14423
14433
  el.warn("Can't find icon:", iconName, iconInContext);
14424
14434
  }
14425
14435
  const iconFromLibrary = ICONS[iconInContext];
14426
- const directSrc = parent && parent.props && parent.props.src || props5.src;
14436
+ const directSrc = parent && parent.props && parent.props.src || props4.src;
14427
14437
  return {
14428
14438
  width: "A",
14429
14439
  height: "A",
@@ -14449,16 +14459,16 @@ var init_Icon = __esm({
14449
14459
  },
14450
14460
  Icon: {
14451
14461
  if: (el) => {
14452
- const { parent, props: props5 } = el;
14462
+ const { parent, props: props4 } = el;
14453
14463
  return el.call(
14454
14464
  "exec",
14455
- parent.props.icon || parent.props.Icon || props5.name || props5.icon || props5.sfSymbols || parent.props.sfSymbols,
14465
+ parent.props.icon || parent.props.Icon || props4.name || props4.icon || props4.sfSymbols || parent.props.sfSymbols,
14456
14466
  el
14457
14467
  );
14458
14468
  },
14459
14469
  icon: (el) => el.call("exec", el.parent.props.icon, el.parent)
14460
14470
  },
14461
- text: ({ props: props5 }) => props5.text
14471
+ text: ({ props: props4 }) => props4.text
14462
14472
  };
14463
14473
  FileIcon = {
14464
14474
  extend: "Flex",
@@ -14840,16 +14850,16 @@ var init_Link = __esm({
14840
14850
  }
14841
14851
  return href;
14842
14852
  },
14843
- target: ({ props: props5 }) => props5.target,
14844
- "aria-label": ({ props: props5 }) => props5.aria ? props5.aria.label : props5.text,
14845
- draggable: ({ props: props5 }) => props5.draggable
14853
+ target: ({ props: props4 }) => props4.target,
14854
+ "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
14855
+ draggable: ({ props: props4 }) => props4.draggable
14846
14856
  }
14847
14857
  };
14848
14858
  RouterLink = {
14849
14859
  on: {
14850
14860
  click: (event, el, s) => {
14851
- const { props: props5, context: ctx } = el;
14852
- const { href: h, scrollToTop, stopPropagation } = props5;
14861
+ const { props: props4, context: ctx } = el;
14862
+ const { href: h, scrollToTop, stopPropagation } = props4;
14853
14863
  const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
14854
14864
  let href = exec7(h, el, s);
14855
14865
  if (isString12(href) && href.includes("{{")) {
@@ -14859,16 +14869,16 @@ var init_Link = __esm({
14859
14869
  event.stopPropagation();
14860
14870
  if (!href)
14861
14871
  return;
14862
- const { utils: utils2, snippets, routerOptions } = ctx;
14872
+ const { utils: utils2, snippets, functions, routerOptions } = ctx;
14863
14873
  const root = el.__ref.root;
14864
14874
  const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
14865
14875
  if (href && !linkIsExternal) {
14866
14876
  try {
14867
- (snippets.router || utils2.router || import_router.router)(href, root, {}, {
14877
+ (functions.router || snippets.router || utils2.router || import_router.router)(href, root, {}, {
14868
14878
  scrollToOptions: { behaviour: "instant" },
14869
14879
  scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
14870
14880
  ...routerOptions,
14871
- ...props5.routerOptions
14881
+ ...props4.routerOptions
14872
14882
  });
14873
14883
  event.preventDefault();
14874
14884
  } catch (e) {
@@ -14894,23 +14904,23 @@ var init_Video = __esm({
14894
14904
  childExtend: {
14895
14905
  tag: "source",
14896
14906
  attr: {
14897
- src: ({ props: props5 }) => props5.src,
14898
- type: ({ props: props5 }) => props5.type,
14899
- controls: ({ props: props5 }) => props5.controls
14907
+ src: ({ props: props4 }) => props4.src,
14908
+ type: ({ props: props4 }) => props4.type,
14909
+ controls: ({ props: props4 }) => props4.controls
14900
14910
  }
14901
14911
  },
14902
14912
  props: {
14903
14913
  controls: true
14904
14914
  },
14905
14915
  attr: {
14906
- src: ({ props: props5 }) => props5.src,
14907
- playsinline: ({ props: props5 }) => props5.playsinline,
14908
- autoplay: ({ props: props5 }) => props5.autoplay,
14909
- loop: ({ props: props5 }) => props5.loop,
14910
- poster: ({ props: props5 }) => props5.poster,
14911
- muted: ({ props: props5 }) => props5.muted,
14912
- preload: ({ props: props5 }) => props5.preload,
14913
- controls: ({ props: props5 }) => props5.controls
14916
+ src: ({ props: props4 }) => props4.src,
14917
+ playsinline: ({ props: props4 }) => props4.playsinline,
14918
+ autoplay: ({ props: props4 }) => props4.autoplay,
14919
+ loop: ({ props: props4 }) => props4.loop,
14920
+ poster: ({ props: props4 }) => props4.poster,
14921
+ muted: ({ props: props4 }) => props4.muted,
14922
+ preload: ({ props: props4 }) => props4.preload,
14923
+ controls: ({ props: props4 }) => props4.controls
14914
14924
  }
14915
14925
  };
14916
14926
  }
@@ -14966,26 +14976,26 @@ var init_Input = __esm({
14966
14976
  padding: "Z2 B"
14967
14977
  },
14968
14978
  attr: {
14969
- pattern: ({ props: props5 }) => props5.pattern,
14970
- minLength: ({ props: props5 }) => props5.minlength,
14971
- maxLength: ({ props: props5 }) => props5.maxlength,
14972
- name: ({ props: props5 }) => props5.name,
14973
- autocomplete: ({ props: props5 }) => props5.autocomplete,
14974
- placeholder: ({ props: props5 }) => props5.placeholder,
14979
+ pattern: ({ props: props4 }) => props4.pattern,
14980
+ minLength: ({ props: props4 }) => props4.minlength,
14981
+ maxLength: ({ props: props4 }) => props4.maxlength,
14982
+ name: ({ props: props4 }) => props4.name,
14983
+ autocomplete: ({ props: props4 }) => props4.autocomplete,
14984
+ placeholder: ({ props: props4 }) => props4.placeholder,
14975
14985
  value: (el, s) => {
14976
- const { props: props5, state, deps } = el;
14986
+ const { props: props4, state, deps } = el;
14977
14987
  const { isString: isString12, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
14978
- const val = exec7(props5.value, el);
14988
+ const val = exec7(props4.value, el);
14979
14989
  if (isString12(val) && val.includes("{{")) {
14980
14990
  return replaceLiteralsWithObjectFields3(val, state);
14981
14991
  }
14982
14992
  return val;
14983
14993
  },
14984
14994
  checked: (el) => el.call("exec", el.props.checked, el),
14985
- disabled: ({ props: props5 }) => props5.disabled || null,
14986
- readonly: ({ props: props5 }) => props5.readonly,
14987
- required: ({ props: props5 }) => props5.required,
14988
- type: ({ props: props5 }) => props5.type
14995
+ disabled: ({ props: props4 }) => props4.disabled || null,
14996
+ readonly: ({ props: props4 }) => props4.readonly,
14997
+ required: ({ props: props4 }) => props4.required,
14998
+ type: ({ props: props4 }) => props4.type
14989
14999
  }
14990
15000
  };
14991
15001
  }
@@ -15015,9 +15025,9 @@ var init_NumberInput = __esm({
15015
15025
  }
15016
15026
  },
15017
15027
  attr: {
15018
- step: ({ props: props5 }) => props5.step,
15019
- min: ({ props: props5 }) => props5.min,
15020
- max: ({ props: props5 }) => props5.max
15028
+ step: ({ props: props4 }) => props4.step,
15029
+ min: ({ props: props4 }) => props4.min,
15030
+ max: ({ props: props4 }) => props4.max
15021
15031
  }
15022
15032
  };
15023
15033
  }
@@ -15251,9 +15261,8 @@ var Select;
15251
15261
  var init_Select = __esm({
15252
15262
  "../uikit/Select/index.js"() {
15253
15263
  "use strict";
15254
- init_Atoms();
15255
15264
  Select = {
15256
- extend: Focusable,
15265
+ extend: "Focusable",
15257
15266
  tag: "select",
15258
15267
  props: {
15259
15268
  fontSize: "A",
@@ -15270,14 +15279,14 @@ var init_Select = __esm({
15270
15279
  disabled: ""
15271
15280
  },
15272
15281
  attr: {
15273
- value: ({ props: props5 }) => props5.value,
15274
- selected: ({ props: props5 }) => props5.selected,
15275
- disabled: ({ props: props5 }) => props5.disabled
15282
+ value: ({ props: props4 }) => props4.value,
15283
+ selected: ({ props: props4 }) => props4.selected,
15284
+ disabled: ({ props: props4 }) => props4.disabled
15276
15285
  }
15277
15286
  },
15278
15287
  attr: {
15279
- name: ({ props: props5 }) => props5.name,
15280
- disabled: ({ props: props5 }) => props5.disabled
15288
+ name: ({ props: props4 }) => props4.name,
15289
+ disabled: ({ props: props4 }) => props4.disabled
15281
15290
  }
15282
15291
  };
15283
15292
  }
@@ -15571,7 +15580,7 @@ var init_Button = __esm({
15571
15580
  round: "C2"
15572
15581
  },
15573
15582
  attr: {
15574
- type: ({ props: props5 }) => props5.type
15583
+ type: ({ props: props4 }) => props4.type
15575
15584
  }
15576
15585
  };
15577
15586
  SquareButton = {
@@ -15729,9 +15738,9 @@ var init_ProgressLine = __esm({
15729
15738
  }
15730
15739
  },
15731
15740
  attr: {
15732
- max: ({ props: props5 }) => props5.max,
15733
- progress: ({ props: props5 }) => props5.progress,
15734
- value: ({ props: props5 }) => props5.value
15741
+ max: ({ props: props4 }) => props4.max,
15742
+ progress: ({ props: props4 }) => props4.progress,
15743
+ value: ({ props: props4 }) => props4.value
15735
15744
  }
15736
15745
  };
15737
15746
  ProgressLineWithUnitValue = {
@@ -15783,9 +15792,9 @@ var init_ProgressCircle = __esm({
15783
15792
  }
15784
15793
  },
15785
15794
  attr: {
15786
- max: ({ props: props5 }) => props5.max,
15787
- progress: ({ props: props5 }) => props5.progress,
15788
- value: ({ props: props5 }) => props5.value
15795
+ max: ({ props: props4 }) => props4.max,
15796
+ progress: ({ props: props4 }) => props4.progress,
15797
+ value: ({ props: props4 }) => props4.value
15789
15798
  }
15790
15799
  }
15791
15800
  };
@@ -15842,78 +15851,88 @@ var init_Progress = __esm({
15842
15851
  });
15843
15852
 
15844
15853
  // ../uikit/Range/index.js
15845
- var import_utils17, import_scratch12, props4, returnPropertyValue, Range, RangeWithButtons;
15854
+ var import_utils17, import_scratch12, returnPropertyValue, Range, RangeWithButtons;
15846
15855
  var init_Range = __esm({
15847
15856
  "../uikit/Range/index.js"() {
15848
15857
  "use strict";
15849
15858
  import_utils17 = __toESM(require_cjs());
15850
15859
  import_scratch12 = __toESM(require_cjs2());
15851
- props4 = {
15852
- appearance: "none",
15853
- width: "100%",
15854
- height: "2px",
15855
- outline: "none",
15856
- flex: 1,
15857
- onInput: (ev, el, s) => s.update({ value: el.node.value }),
15858
- onChange: (ev, el, s) => s.update({ value: el.node.value }),
15859
- style: {
15860
- appearance: "none"
15861
- },
15862
- "::-webkit-slider-thumb": {
15863
- boxSizing: "content-box",
15864
- width: "8px",
15865
- height: "8px",
15866
- borderWidth: "2px",
15867
- borderStyle: "solid",
15868
- borderRadius: "100%",
15869
- opacity: ".8",
15870
- style: {
15871
- appearance: "none"
15872
- }
15873
- },
15874
- "::-webkit-slider-runnable-track": {},
15875
- "@dark": {
15876
- background: "white 0.2",
15877
- "::-webkit-slider-thumb": {
15878
- background: "#232526",
15879
- borderColor: (0, import_scratch12.opacify)("#454646", 0.75)
15880
- },
15881
- ":hover": {
15882
- "::-webkit-slider-thumb": {
15883
- borderColor: (0, import_scratch12.opacify)("#fff", 0.35)
15860
+ returnPropertyValue = (el, property, def) => {
15861
+ const val = el.props && el.props[property];
15862
+ const r = (0, import_utils17.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15863
+ return r + "";
15864
+ };
15865
+ Range = {
15866
+ props: {
15867
+ appearance: "none",
15868
+ width: "100%",
15869
+ height: "2px",
15870
+ outline: "none",
15871
+ flex: 1,
15872
+ onInput: (ev, el, s) => {
15873
+ const props4 = el.props;
15874
+ if ((0, import_utils17.isFunction)(props4.onInput)) {
15875
+ props4.onInput(ev, el, s);
15876
+ } else {
15877
+ s.update({ value: parseFloat(el.node.value) });
15884
15878
  }
15885
15879
  },
15886
- ":focus": {
15887
- "::-webkit-slider-thumb": {
15888
- borderColor: "#3C6AC0"
15880
+ onChange: (ev, el, s) => {
15881
+ const props4 = el.props;
15882
+ if ((0, import_utils17.isFunction)(props4.onChange)) {
15883
+ props4.onChange(ev, el, s);
15884
+ } else {
15885
+ s.update({ value: parseFloat(el.node.value) });
15889
15886
  }
15890
- }
15891
- },
15892
- "@light": {
15893
- background: "gray9",
15887
+ },
15894
15888
  "::-webkit-slider-thumb": {
15895
- background: "white",
15896
- borderColor: "gray9"
15889
+ boxSizing: "content-box",
15890
+ width: "8px",
15891
+ height: "8px",
15892
+ borderWidth: "2px",
15893
+ borderStyle: "solid",
15894
+ borderRadius: "100%",
15895
+ opacity: ".8",
15896
+ style: {
15897
+ appearance: "none"
15898
+ }
15897
15899
  },
15898
- ":hover": {
15900
+ "::-webkit-slider-runnable-track": {},
15901
+ "@dark": {
15902
+ background: "white 0.2",
15899
15903
  "::-webkit-slider-thumb": {
15900
- borderColor: "gray7"
15904
+ background: "#232526",
15905
+ borderColor: (0, import_scratch12.opacify)("#454646", 0.75)
15906
+ },
15907
+ ":hover": {
15908
+ "::-webkit-slider-thumb": {
15909
+ borderColor: (0, import_scratch12.opacify)("#fff", 0.35)
15910
+ }
15911
+ },
15912
+ ":focus": {
15913
+ "::-webkit-slider-thumb": {
15914
+ borderColor: "#3C6AC0"
15915
+ }
15901
15916
  }
15902
15917
  },
15903
- ":focus": {
15918
+ "@light": {
15919
+ background: "gray9",
15904
15920
  "::-webkit-slider-thumb": {
15905
- borderColor: "blue"
15921
+ background: "white",
15922
+ borderColor: "gray9"
15923
+ },
15924
+ ":hover": {
15925
+ "::-webkit-slider-thumb": {
15926
+ borderColor: "gray7"
15927
+ }
15928
+ },
15929
+ ":focus": {
15930
+ "::-webkit-slider-thumb": {
15931
+ borderColor: "blue"
15932
+ }
15906
15933
  }
15907
15934
  }
15908
- }
15909
- };
15910
- returnPropertyValue = (el, property, def) => {
15911
- const val = el.props && el.props[property];
15912
- const r = (0, import_utils17.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15913
- return r + "";
15914
- };
15915
- Range = {
15916
- props: props4,
15935
+ },
15917
15936
  tag: "input",
15918
15937
  attr: {
15919
15938
  type: "range",
@@ -15921,96 +15940,71 @@ var init_Range = __esm({
15921
15940
  min: (el, s) => returnPropertyValue(el, "min", 0),
15922
15941
  max: (el, s) => returnPropertyValue(el, "max", 100),
15923
15942
  step: (el, s) => returnPropertyValue(el, "step", 1)
15924
- },
15925
- on: {
15926
- input: (ev, el, s) => {
15927
- const props5 = el.props;
15928
- if ((0, import_utils17.isFunction)(props5.onInput)) {
15929
- props5.onInput(ev, el, s);
15930
- } else {
15931
- s.update({ value: parseFloat(el.node.value) });
15932
- }
15933
- },
15934
- change: (ev, el, s) => {
15935
- const props5 = el.props;
15936
- if ((0, import_utils17.isFunction)(props5.onChange)) {
15937
- props5.onChange(ev, el, s);
15938
- } else {
15939
- s.update({ value: parseFloat(el.node.value) });
15940
- }
15941
- }
15942
15943
  }
15943
15944
  };
15944
15945
  RangeWithButtons = {
15945
- minus: {
15946
- extend: "SquareButton",
15947
- props: { theme: "field", icon: "minus" },
15948
- on: {
15949
- click: (ev, el, s) => {
15950
- const parentProps = el.parent.props;
15951
- if ((0, import_utils17.isFunction)(parentProps.onDecrease)) {
15952
- parentProps.onDecrease(ev, el.parent, s);
15953
- } else {
15954
- const value2 = parseFloat(s.value);
15955
- const min = returnPropertyValue(el.parent, "min", 1);
15956
- const step = returnPropertyValue(el.parent, "step", 1);
15957
- if (value2 > min) {
15958
- s.update({ value: value2 - step });
15959
- }
15946
+ SquareButton_minus: {
15947
+ icon: "minus",
15948
+ theme: "field",
15949
+ onClick: (ev, el, s) => {
15950
+ const parentProps = el.parent.props;
15951
+ if ((0, import_utils17.isFunction)(parentProps.onDecrease)) {
15952
+ parentProps.onDecrease(ev, el.parent, s);
15953
+ } else {
15954
+ const value2 = parseFloat(s.value);
15955
+ const min = returnPropertyValue(el.parent, "min", 1);
15956
+ const step = returnPropertyValue(el.parent, "step", 1);
15957
+ if (value2 > min) {
15958
+ s.update({ value: value2 - step });
15960
15959
  }
15961
15960
  }
15962
15961
  }
15963
15962
  },
15964
- value: {
15965
- props: { width: "4ch" },
15963
+ Value: {
15966
15964
  tag: "span",
15965
+ width: "4ch",
15967
15966
  text: ({ state, parent }) => {
15968
15967
  const unit = returnPropertyValue(parent, "unit", "");
15969
15968
  return "" + (state.value || state.defaultValue || 0) + unit;
15970
15969
  }
15971
15970
  },
15972
- input: {
15973
- extend: Range,
15971
+ Range: {
15974
15972
  attr: {
15975
15973
  value: (el, s) => parseFloat(s.value || s.defaultValue),
15976
15974
  min: (el, s) => returnPropertyValue(el.parent, "min", 0),
15977
15975
  max: (el, s) => returnPropertyValue(el.parent, "max", 100),
15978
15976
  step: (el, s) => returnPropertyValue(el.parent, "step", 1)
15979
15977
  },
15980
- on: {
15981
- input: (ev, el, s) => {
15982
- const parentProps = el.parent.props;
15983
- if ((0, import_utils17.isFunction)(parentProps.onInput)) {
15984
- parentProps.onInput(ev, el, s);
15985
- } else {
15986
- s.update({ value: parseFloat(el.node.value) });
15987
- }
15988
- },
15989
- change: (ev, el, s) => {
15990
- const parentProps = el.parent.props;
15991
- if ((0, import_utils17.isFunction)(parentProps.onChange)) {
15992
- parentProps.onChange(ev, el, s);
15993
- } else {
15994
- s.update({ value: parseFloat(el.node.value) });
15995
- }
15978
+ onInput: (ev, el, s) => {
15979
+ const parentProps = el.parent.props;
15980
+ if ((0, import_utils17.isFunction)(parentProps.onInput)) {
15981
+ parentProps.onInput(ev, el, s);
15982
+ } else {
15983
+ s.update({ value: parseFloat(el.node.value) });
15984
+ }
15985
+ },
15986
+ onChange: (ev, el, s) => {
15987
+ const parentProps = el.parent.props;
15988
+ if ((0, import_utils17.isFunction)(parentProps.onChange)) {
15989
+ parentProps.onChange(ev, el, s);
15990
+ } else {
15991
+ s.update({ value: parseFloat(el.node.value) });
15996
15992
  }
15997
15993
  }
15998
15994
  },
15999
- plus: {
16000
- extend: "SquareButton",
16001
- props: { theme: "field", icon: "plus" },
16002
- on: {
16003
- click: (ev, el, s) => {
16004
- const parentProps = el.parent.props;
16005
- if ((0, import_utils17.isFunction)(parentProps.onIncrease)) {
16006
- parentProps.onIncrease(ev, el.parent, s);
16007
- } else {
16008
- const value2 = parseFloat(s.value);
16009
- const max = returnPropertyValue(el.parent, "max", 1);
16010
- const step = returnPropertyValue(el.parent, "step", 1);
16011
- if (value2 < max) {
16012
- s.update({ value: value2 + step });
16013
- }
15995
+ SquareButton_plus: {
15996
+ theme: "field",
15997
+ icon: "plus",
15998
+ onClick: (ev, el, s) => {
15999
+ const parentProps = el.parent.props;
16000
+ if ((0, import_utils17.isFunction)(parentProps.onIncrease)) {
16001
+ parentProps.onIncrease(ev, el.parent, s);
16002
+ } else {
16003
+ const value2 = parseFloat(s.value);
16004
+ const max = returnPropertyValue(el.parent, "max", 1);
16005
+ const step = returnPropertyValue(el.parent, "step", 1);
16006
+ if (value2 < max) {
16007
+ s.update({ value: value2 + step });
16014
16008
  }
16015
16009
  }
16016
16010
  }
@@ -16063,8 +16057,8 @@ var init_Slider = __esm({
16063
16057
  click: (ev, el, s) => {
16064
16058
  el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
16065
16059
  const input = el.parent.input;
16066
- const props5 = input.props;
16067
- const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
16060
+ const props4 = input.props;
16061
+ const value2 = (0, import_utils18.isFunction)(props4.value) ? props4.value() : props4.value;
16068
16062
  input.node.value = value2;
16069
16063
  }
16070
16064
  }
@@ -16100,8 +16094,8 @@ var init_Slider = __esm({
16100
16094
  click: (ev, el, s) => {
16101
16095
  el.props && (0, import_utils18.isFunction)(el.props.click) && el.props.click(ev, el, s);
16102
16096
  const input = el.parent.input;
16103
- const props5 = input.props;
16104
- const value2 = (0, import_utils18.isFunction)(props5.value) ? props5.value() : props5.value;
16097
+ const props4 = input.props;
16098
+ const value2 = (0, import_utils18.isFunction)(props4.value) ? props4.value() : props4.value;
16105
16099
  input.node.value = value2;
16106
16100
  }
16107
16101
  }
@@ -16165,13 +16159,13 @@ var init_Avatar = __esm({
16165
16159
  "use strict";
16166
16160
  Avatar = {
16167
16161
  extend: "Img",
16168
- props: ({ key, props: props5 }) => ({
16162
+ props: {
16169
16163
  display: "block",
16170
16164
  avatarType: "adventurer-neutral",
16171
16165
  borderRadius: "100%",
16172
16166
  boxSize: "C+X C+X",
16173
- src: `https://api.dicebear.com/7.x/${props5.avatarType || "initials"}/svg?seed=${props5.key || key || "no-avatar"}`
16174
- })
16167
+ src: (el) => `https://api.dicebear.com/7.x/${el.props.avatarType || "initials"}/svg?seed=${el.props.key || el.key || "no-avatar"}`
16168
+ }
16175
16169
  };
16176
16170
  }
16177
16171
  });
@@ -16220,7 +16214,7 @@ var init_AvatarBundle = __esm({
16220
16214
  }
16221
16215
  },
16222
16216
  childExtend: Avatar,
16223
- $propsCollection: ({ props: props5 }) => props5.options
16217
+ $propsCollection: ({ props: props4 }) => props4.options
16224
16218
  };
16225
16219
  }
16226
16220
  });
@@ -16383,14 +16377,14 @@ var init_Tooltip = __esm({
16383
16377
  },
16384
16378
  attr: { tooltip: true },
16385
16379
  Title: {
16386
- if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.title) || props5.text,
16380
+ if: ({ parent, props: props4 }) => (0, import_utils19.isDefined)(parent.props.title) || props4.text,
16387
16381
  width: "fit-content",
16388
16382
  fontWeight: 500,
16389
16383
  color: "gray12",
16390
16384
  text: ({ parent }) => parent.props.title
16391
16385
  },
16392
16386
  P: {
16393
- if: ({ parent, props: props5 }) => (0, import_utils19.isDefined)(parent.props.description) || props5.text,
16387
+ if: ({ parent, props: props4 }) => (0, import_utils19.isDefined)(parent.props.description) || props4.text,
16394
16388
  width: "fit-content",
16395
16389
  fontSize: "Z2",
16396
16390
  margin: "0",
@@ -16401,13 +16395,13 @@ var init_Tooltip = __esm({
16401
16395
  };
16402
16396
  TooltipHidden = {
16403
16397
  extend: "Tooltip",
16404
- props: ({ props: props5 }) => ({
16398
+ props: ({ props: props4 }) => ({
16405
16399
  position: "absolute",
16406
16400
  pointerEvents: "none",
16407
16401
  opacity: "0",
16408
16402
  visibility: "hidden",
16409
16403
  transition: "C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",
16410
- ...props5.shapeDirection === "top" ? {
16404
+ ...props4.shapeDirection === "top" ? {
16411
16405
  top: "112%",
16412
16406
  left: "50%",
16413
16407
  transform: "translate3d(-50%,10%,0)",
@@ -16416,7 +16410,7 @@ var init_Tooltip = __esm({
16416
16410
  opacity: 1,
16417
16411
  visibility: "visible"
16418
16412
  }
16419
- } : props5.shapeDirection === "right" ? {
16413
+ } : props4.shapeDirection === "right" ? {
16420
16414
  transform: "translate3d(10%,-50%,0)",
16421
16415
  right: "112%",
16422
16416
  top: "50%",
@@ -16425,7 +16419,7 @@ var init_Tooltip = __esm({
16425
16419
  opacity: 1,
16426
16420
  visibility: "visible"
16427
16421
  }
16428
- } : props5.shapeDirection === "bottom" ? {
16422
+ } : props4.shapeDirection === "bottom" ? {
16429
16423
  transform: "translate3d(-50%,-10%,0)",
16430
16424
  bottom: "112%",
16431
16425
  left: "50%",
@@ -16496,7 +16490,7 @@ var init_Pills = __esm({
16496
16490
  }
16497
16491
  }
16498
16492
  },
16499
- $propsCollection: ({ props: props5, state }) => new Array(props5.qty).fill({})
16493
+ $propsCollection: ({ props: props4, state }) => new Array(props4.qty).fill({})
16500
16494
  };
16501
16495
  }
16502
16496
  });
@@ -17355,7 +17349,7 @@ var init_Dropdown = __esm({
17355
17349
  style: { listStyleType: "none" },
17356
17350
  transition: "B defaultBezier",
17357
17351
  transitionProperty: "transform, opacity, visibility",
17358
- children: ({ props: props5 }) => props5.options || [],
17352
+ children: ({ props: props4 }) => props4.options || [],
17359
17353
  childrenAs: "props",
17360
17354
  ".hidden": {
17361
17355
  transform: "translate3d(0,10%,0)",
@@ -17462,6 +17456,7 @@ var init_UploadImage = __esm({
17462
17456
  opacity: ".22",
17463
17457
  margin: "0",
17464
17458
  Span: {
17459
+ order: -1,
17465
17460
  text: "Drag and drop your font file",
17466
17461
  display: "block"
17467
17462
  }
@@ -18388,14 +18383,14 @@ var require_cache = __commonJS({
18388
18383
  }
18389
18384
  };
18390
18385
  var detectTag = (element) => {
18391
- let { tag, key, props: props5 } = element;
18386
+ let { tag, key, props: props4 } = element;
18392
18387
  tag = (0, import_utils30.exec)(tag, element);
18393
18388
  if (tag === true)
18394
18389
  tag = key;
18395
- if ((0, import_utils30.isObject)(props5) && (0, import_utils30.isString)(props5.tag)) {
18396
- const tagExists = (0, import_utils30.isValidHtmlTag)(props5.tag);
18390
+ if ((0, import_utils30.isObject)(props4) && (0, import_utils30.isString)(props4.tag)) {
18391
+ const tagExists = (0, import_utils30.isValidHtmlTag)(props4.tag);
18397
18392
  if (tagExists)
18398
- return props5.tag;
18393
+ return props4.tag;
18399
18394
  }
18400
18395
  if ((0, import_utils30.isString)(tag)) {
18401
18396
  if ((0, import_utils30.isValidHtmlTag)(tag))
@@ -18638,27 +18633,27 @@ var require_create3 = __commonJS({
18638
18633
  var import_ignore = require_ignore2();
18639
18634
  var import_inherit = require_inherit2();
18640
18635
  var createPropsStack = (element, parent) => {
18641
- const { props: props5, __ref: ref } = element;
18636
+ const { props: props4, __ref: ref } = element;
18642
18637
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
18643
- if ((0, import_utils30.isObject)(props5))
18644
- propsStack.push(props5);
18645
- else if (props5 === "inherit" && parent.props)
18638
+ if ((0, import_utils30.isObject)(props4))
18639
+ propsStack.push(props4);
18640
+ else if (props4 === "inherit" && parent.props)
18646
18641
  propsStack.push(parent.props);
18647
- else if (props5)
18648
- propsStack.push(props5);
18642
+ else if (props4)
18643
+ propsStack.push(props4);
18649
18644
  if ((0, import_utils30.isArray)(ref.__extend)) {
18650
18645
  ref.__extend.forEach((extend) => {
18651
- if (extend.props && extend.props !== props5)
18646
+ if (extend.props && extend.props !== props4)
18652
18647
  propsStack.push(extend.props);
18653
18648
  });
18654
18649
  }
18655
18650
  ref.__props = propsStack;
18656
18651
  return propsStack;
18657
18652
  };
18658
- var syncProps = (props5, element, opts) => {
18653
+ var syncProps = (props4, element, opts) => {
18659
18654
  element.props = {};
18660
18655
  const mergedProps = {};
18661
- props5.forEach((v) => {
18656
+ props4.forEach((v) => {
18662
18657
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
18663
18658
  return;
18664
18659
  let execProps;
@@ -18704,9 +18699,9 @@ var require_create3 = __commonJS({
18704
18699
  Object.setPrototypeOf(element.props, methods);
18705
18700
  return element;
18706
18701
  };
18707
- function update(props5, options) {
18702
+ function update(props4, options) {
18708
18703
  const element = this.__element;
18709
- element.update({ props: props5 }, options);
18704
+ element.update({ props: props4 }, options);
18710
18705
  }
18711
18706
  }
18712
18707
  });
@@ -19142,8 +19137,8 @@ var require_extend = __commonJS({
19142
19137
  var applyExtend = (element, parent, options = {}) => {
19143
19138
  if ((0, import_utils30.isFunction)(element))
19144
19139
  element = (0, import_utils30.exec)(element, parent);
19145
- const { props: props5, __ref } = element;
19146
- let extend = (props5 == null ? void 0 : props5.extends) || element.extends || element.extend;
19140
+ const { props: props4, __ref } = element;
19141
+ let extend = (props4 == null ? void 0 : props4.extends) || element.extends || element.extend;
19147
19142
  const context = element.context || parent.context;
19148
19143
  extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
19149
19144
  const extendStack = (0, import_utils210.getExtendStack)(extend, context);
@@ -19152,9 +19147,9 @@ var require_extend = __commonJS({
19152
19147
  let childExtendStack = [];
19153
19148
  if (parent) {
19154
19149
  element.parent = parent;
19155
- if (!options.ignoreChildExtend && !(props5 && props5.ignoreChildExtend)) {
19150
+ if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
19156
19151
  childExtendStack = (0, import_utils210.getExtendStack)(parent.childExtend, context);
19157
- const ignoreChildExtendRecursive = props5 && props5.ignoreChildExtendRecursive;
19152
+ const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
19158
19153
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
19159
19154
  const canExtendRecursive = element.key !== "__text";
19160
19155
  if (canExtendRecursive) {
@@ -19262,28 +19257,28 @@ var require_component2 = __commonJS({
19262
19257
  let variantElement = element[variant];
19263
19258
  if (!variantElement)
19264
19259
  return;
19265
- const props5 = (0, import_utils30.isObject)(variantProps) ? variantProps : {};
19260
+ const props4 = (0, import_utils30.isObject)(variantProps) ? variantProps : {};
19266
19261
  if ((0, import_utils30.isString)(variantElement)) {
19267
19262
  variantElement = {
19268
- extend: [{ props: props5 }, variantElement]
19263
+ extend: [{ props: props4 }, variantElement]
19269
19264
  };
19270
19265
  } else if (variantElement.extend) {
19271
- variantElement = (0, import_utils30.addAdditionalExtend)({ props: props5 }, variantElement);
19266
+ variantElement = (0, import_utils30.addAdditionalExtend)({ props: props4 }, variantElement);
19272
19267
  }
19273
19268
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
19274
19269
  const { parent, ...rest } = extendedVariant;
19275
19270
  return (0, import_utils30.overwriteDeep)(element, rest);
19276
19271
  };
19277
19272
  var applyVariant = (element) => {
19278
- const { props: props5 } = element;
19273
+ const { props: props4 } = element;
19279
19274
  if (!(0, import_utils30.hasVariantProp)(element))
19280
19275
  return element;
19281
- const { variant } = props5;
19276
+ const { variant } = props4;
19282
19277
  overwriteVariant(element, `.${variant}`);
19283
19278
  const elKeys = Object.keys(element).filter((key) => (0, import_utils30.isVariant)(key));
19284
19279
  elKeys.forEach((variant2) => {
19285
19280
  const slicedVariantElementKey = variant2.slice(1);
19286
- const variantElementProps = props5[slicedVariantElementKey];
19281
+ const variantElementProps = props4[slicedVariantElementKey];
19287
19282
  if (variantElementProps)
19288
19283
  overwriteVariant(element, variant2, variantElementProps);
19289
19284
  });
@@ -19349,13 +19344,13 @@ var require_attr = __commonJS({
19349
19344
  var import_report = require_cjs5();
19350
19345
  var import_utils210 = require_utils();
19351
19346
  function attr(params, element, node3) {
19352
- const { __ref: ref, props: props5 } = element;
19347
+ const { __ref: ref, props: props4 } = element;
19353
19348
  const { __attr } = ref;
19354
19349
  if ((0, import_utils30.isNot)("object"))
19355
19350
  (0, import_report.report)("HTMLInvalidAttr", params);
19356
19351
  if (params) {
19357
- if (props5.attr)
19358
- (0, import_utils210.deepMerge)(params, props5.attr);
19352
+ if (props4.attr)
19353
+ (0, import_utils210.deepMerge)(params, props4.attr);
19359
19354
  for (const attr2 in params) {
19360
19355
  const val = (0, import_utils30.exec)(params[attr2], element);
19361
19356
  if (val !== false && !(0, import_utils30.isUndefined)(val) && !(0, import_utils30.isNull)(val) && node3.setAttribute)
@@ -19561,12 +19556,12 @@ var require_set = __commonJS({
19561
19556
  return;
19562
19557
  }
19563
19558
  if (params) {
19564
- const { childExtend, childProps, props: props5 } = params;
19559
+ const { childExtend, childProps, props: props4 } = params;
19565
19560
  if (!childExtend && element.childExtend)
19566
19561
  params.childExtend = element.childExtend;
19567
19562
  if (!childProps && element.childProps)
19568
19563
  params.childProps = element.childProps;
19569
- if (!(props5 == null ? void 0 : props5.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
19564
+ if (!(props4 == null ? void 0 : props4.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
19570
19565
  params.props.childProps = element.props.childProps;
19571
19566
  }
19572
19567
  if (lazyLoad) {
@@ -20307,8 +20302,8 @@ var require_methods2 = __commonJS({
20307
20302
  return;
20308
20303
  obj[v] = JSON.parse(JSON.stringify(val || {}));
20309
20304
  } else if (v === "props") {
20310
- const { __element, update, ...props5 } = element[v];
20311
- obj[v] = props5;
20305
+ const { __element, update, ...props4 } = element[v];
20306
+ obj[v] = props4;
20312
20307
  } else if ((0, import_utils30.isDefined)(val) && Object.hasOwnProperty.call(element, v))
20313
20308
  obj[v] = val;
20314
20309
  });
@@ -20521,15 +20516,15 @@ var require_iterate = __commonJS({
20521
20516
  };
20522
20517
  var throughExecProps = (element) => {
20523
20518
  const { __ref: ref } = element;
20524
- const { props: props5 } = element;
20525
- for (const k in props5) {
20519
+ const { props: props4 } = element;
20520
+ for (const k in props4) {
20526
20521
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
20527
20522
  const cachedExecProp = ref.__execProps[k];
20528
20523
  if ((0, import_utils30.isFunction)(cachedExecProp)) {
20529
- props5[k] = (0, import_utils30.exec)(cachedExecProp, element);
20530
- } else if (isDefine && (0, import_utils30.isFunction)(props5[k])) {
20531
- ref.__execProps[k] = props5[k];
20532
- props5[k] = (0, import_utils30.exec)(props5[k], element);
20524
+ props4[k] = (0, import_utils30.exec)(cachedExecProp, element);
20525
+ } else if (isDefine && (0, import_utils30.isFunction)(props4[k])) {
20526
+ ref.__execProps[k] = props4[k];
20527
+ props4[k] = (0, import_utils30.exec)(props4[k], element);
20533
20528
  }
20534
20529
  }
20535
20530
  };
@@ -20658,12 +20653,12 @@ var require_propEvents = __commonJS({
20658
20653
  module2.exports = __toCommonJS2(propEvents_exports);
20659
20654
  var import_utils30 = require_cjs();
20660
20655
  var propagateEventsFromProps = (element) => {
20661
- const { props: props5, on: on2 } = element;
20662
- const eventKeysFromProps = Object.keys(props5).filter((key) => key.startsWith("on"));
20656
+ const { props: props4, on: on2 } = element;
20657
+ const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
20663
20658
  eventKeysFromProps.forEach((v) => {
20664
20659
  const eventName = (0, import_utils30.lowercaseFirstLetter)(v.split("on")[1]);
20665
20660
  const origEvent = on2[eventName];
20666
- const funcFromProps = props5[v];
20661
+ const funcFromProps = props4[v];
20667
20662
  if ((0, import_utils30.isFunction)(origEvent)) {
20668
20663
  on2[eventName] = (...args) => {
20669
20664
  const originalEventRetunrs = origEvent(...args);
@@ -20858,9 +20853,9 @@ var require_update2 = __commonJS({
20858
20853
  if (ref.__if && !options.preventPropsUpdate) {
20859
20854
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
20860
20855
  const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils30.isFunction)(v));
20861
- const props5 = params.props || hasParentProps || hasFunctionInProps.length;
20862
- if (props5)
20863
- (0, import_props.updateProps)(props5, element, parent);
20856
+ const props4 = params.props || hasParentProps || hasFunctionInProps.length;
20857
+ if (props4)
20858
+ (0, import_props.updateProps)(props4, element, parent);
20864
20859
  }
20865
20860
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
20866
20861
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
@@ -21437,13 +21432,13 @@ var require_create4 = __commonJS({
21437
21432
  };
21438
21433
  var checkIfMedia = (key) => key.slice(0, 1) === "@";
21439
21434
  var applyMediaProps2 = (element, parent, key) => {
21440
- const { props: props5 } = element;
21441
- if (props5) {
21442
- props5.display = "none";
21443
- if (props5[key])
21444
- props5[key].display = props5.display;
21435
+ const { props: props4 } = element;
21436
+ if (props4) {
21437
+ props4.display = "none";
21438
+ if (props4[key])
21439
+ props4[key].display = props4.display;
21445
21440
  else
21446
- props5[key] = { display: props5.display || "block" };
21441
+ props4[key] = { display: props4.display || "block" };
21447
21442
  return element;
21448
21443
  } else {
21449
21444
  return {
@@ -25665,7 +25660,7 @@ var require_cjs14 = __commonJS({
25665
25660
  const obj = JSON.parse(data);
25666
25661
  if (!(obj == null ? void 0 : obj.DATA))
25667
25662
  return;
25668
- const { state, designSystem, pages, components, snippets } = obj.DATA;
25663
+ const { state, designSystem, pages, components, snippets, functions } = obj.DATA;
25669
25664
  const { utils: utils2 } = ctx;
25670
25665
  if (pages) {
25671
25666
  (0, import_utils30.overwriteShallow)(ctx.pages, pages);
@@ -25673,6 +25668,9 @@ var require_cjs14 = __commonJS({
25673
25668
  if (components) {
25674
25669
  (0, import_utils30.overwriteShallow)(ctx.components, components);
25675
25670
  }
25671
+ if (functions) {
25672
+ (0, import_utils30.overwriteShallow)(ctx.functions, functions);
25673
+ }
25676
25674
  if (snippets) {
25677
25675
  (0, import_utils30.overwriteShallow)(ctx.snippets, snippets);
25678
25676
  }
@@ -25680,10 +25678,10 @@ var require_cjs14 = __commonJS({
25680
25678
  const route = state.route;
25681
25679
  if (route)
25682
25680
  (utils2.router || import_router5.router)(route.replace("/state", "") || "/", el, {});
25683
- else if (!(snippets && components && pages))
25681
+ else if (!(snippets && functions && components && pages))
25684
25682
  s.update(state);
25685
25683
  }
25686
- if (snippets || components || pages) {
25684
+ if (snippets || functions || components || pages) {
25687
25685
  const { pathname, search, hash: hash3 } = ctx.window.location;
25688
25686
  (utils2.router || import_router5.router)(pathname + search + hash3, el, {});
25689
25687
  }
@@ -26839,13 +26837,13 @@ var require_object3 = __commonJS({
26839
26837
  }
26840
26838
  return true;
26841
26839
  };
26842
- var removeFromObject = (obj, props5) => {
26843
- if (props5 === void 0 || props5 === null)
26840
+ var removeFromObject = (obj, props4) => {
26841
+ if (props4 === void 0 || props4 === null)
26844
26842
  return obj;
26845
- if ((0, import_types.is)(props5)("string", "number")) {
26846
- delete obj[props5];
26847
- } else if ((0, import_types.isArray)(props5)) {
26848
- props5.forEach((prop) => delete obj[prop]);
26843
+ if ((0, import_types.is)(props4)("string", "number")) {
26844
+ delete obj[props4];
26845
+ } else if ((0, import_types.isArray)(props4)) {
26846
+ props4.forEach((prop) => delete obj[prop]);
26849
26847
  } else {
26850
26848
  throw new Error("Invalid input: props must be a string or an array of strings");
26851
26849
  }
@@ -27398,7 +27396,7 @@ var require_component3 = __commonJS({
27398
27396
  var _a;
27399
27397
  const {
27400
27398
  extend,
27401
- props: props5,
27399
+ props: props4,
27402
27400
  childExtend,
27403
27401
  extends: extendProps,
27404
27402
  childExtends,
@@ -27409,7 +27407,7 @@ var require_component3 = __commonJS({
27409
27407
  $stateCollection,
27410
27408
  $propsCollection
27411
27409
  } = element;
27412
- const hasComponentAttrs = extend || childExtend || props5 || on2 || $collection || $stateCollection || $propsCollection;
27410
+ const hasComponentAttrs = extend || childExtend || props4 || on2 || $collection || $stateCollection || $propsCollection;
27413
27411
  if (hasComponentAttrs && (childProps || extendProps || children || childExtends)) {
27414
27412
  const logErr = (_a = parent || element) == null ? void 0 : _a.error;
27415
27413
  if (logErr)
@@ -27512,8 +27510,8 @@ var require_component3 = __commonJS({
27512
27510
  return firstCharKey === ".";
27513
27511
  };
27514
27512
  var hasVariantProp = (element) => {
27515
- const { props: props5 } = element;
27516
- if ((0, import__.isObject)(props5) && (0, import__.isString)(props5.variant))
27513
+ const { props: props4 } = element;
27514
+ if ((0, import__.isObject)(props4) && (0, import__.isString)(props4.variant))
27517
27515
  return true;
27518
27516
  };
27519
27517
  var getChildrenComponentsByKey = (key, el) => {
@@ -27910,7 +27908,7 @@ var initRouter = (element, context) => {
27910
27908
  else
27911
27909
  (0, import_utils20.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
27912
27910
  const routerOptions = context.router;
27913
- const router = context.snippets && context.snippets.router ? context.snippets.router : import_router2.router;
27911
+ const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
27914
27912
  const onRouterRenderDefault = (el, s) => {
27915
27913
  const { pathname, search, hash: hash3 } = import_utils20.window.location;
27916
27914
  const url2 = pathname + search + hash3;
@@ -27938,7 +27936,7 @@ var popStateRouter = (element, context) => {
27938
27936
  const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
27939
27937
  if (!routerOptions.popState)
27940
27938
  return;
27941
- const router = context.snippets && context.snippets.router ? context.snippets.router : import_router2.router;
27939
+ const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
27942
27940
  import_utils20.window.onpopstate = (e) => {
27943
27941
  const { pathname, search, hash: hash3 } = import_utils20.window.location;
27944
27942
  const url2 = pathname + search + hash3;
@@ -28262,11 +28260,11 @@ var length2 = 0;
28262
28260
  var position2 = 0;
28263
28261
  var character2 = 0;
28264
28262
  var characters2 = "";
28265
- function node2(value2, root, parent, type, props5, children, length3) {
28266
- return { value: value2, root, parent, type, props: props5, children, line: line2, column: column2, length: length3, return: "" };
28263
+ function node2(value2, root, parent, type, props4, children, length3) {
28264
+ return { value: value2, root, parent, type, props: props4, children, line: line2, column: column2, length: length3, return: "" };
28267
28265
  }
28268
- function copy2(root, props5) {
28269
- return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length }, props5);
28266
+ function copy2(root, props4) {
28267
+ return assign2(node2("", null, null, "", null, null, 0), root, { length: -root.length }, props4);
28270
28268
  }
28271
28269
  function char2() {
28272
28270
  return character2;
@@ -28397,7 +28395,7 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28397
28395
  var ampersand = 1;
28398
28396
  var character3 = 0;
28399
28397
  var type = "";
28400
- var props5 = rules;
28398
+ var props4 = rules;
28401
28399
  var children = rulesets;
28402
28400
  var reference = rule;
28403
28401
  var characters3 = type;
@@ -28451,17 +28449,17 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28451
28449
  case 59:
28452
28450
  characters3 += ";";
28453
28451
  default:
28454
- append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type, props5 = [], children = [], length3), rulesets);
28452
+ append2(reference = ruleset2(characters3, root, parent, index, offset, rules, points, type, props4 = [], children = [], length3), rulesets);
28455
28453
  if (character3 === 123)
28456
28454
  if (offset === 0)
28457
- parse3(characters3, root, reference, reference, props5, rulesets, length3, points, children);
28455
+ parse3(characters3, root, reference, reference, props4, rulesets, length3, points, children);
28458
28456
  else
28459
28457
  switch (atrule === 99 && charat2(characters3, 3) === 110 ? 100 : atrule) {
28460
28458
  case 100:
28461
28459
  case 108:
28462
28460
  case 109:
28463
28461
  case 115:
28464
- parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules, props5 = [], length3), children), rules, children, length3, points, rule ? props5 : children);
28462
+ parse3(value2, reference, reference, rule && append2(ruleset2(value2, reference, reference, 0, 0, rules, points, type, rules, props4 = [], length3), children), rules, children, length3, points, rule ? props4 : children);
28465
28463
  break;
28466
28464
  default:
28467
28465
  parse3(characters3, reference, reference, reference, [""], children, 0, points, children);
@@ -28497,15 +28495,15 @@ function parse3(value2, root, parent, rule, rules, rulesets, pseudo, points, dec
28497
28495
  }
28498
28496
  return rulesets;
28499
28497
  }
28500
- function ruleset2(value2, root, parent, index, offset, rules, points, type, props5, children, length3) {
28498
+ function ruleset2(value2, root, parent, index, offset, rules, points, type, props4, children, length3) {
28501
28499
  var post = offset - 1;
28502
28500
  var rule = offset === 0 ? rules : [""];
28503
28501
  var size = sizeof2(rule);
28504
28502
  for (var i = 0, j = 0, k = 0; i < index; ++i)
28505
28503
  for (var x = 0, y = substr2(value2, post + 1, post = abs2(j = points[i])), z = value2; x < size; ++x)
28506
28504
  if (z = trim2(j > 0 ? rule[x] + " " + y : replace2(y, /&\f/g, rule[x])))
28507
- props5[k++] = z;
28508
- return node2(value2, root, parent, offset === 0 ? RULESET2 : type, props5, children, length3);
28505
+ props4[k++] = z;
28506
+ return node2(value2, root, parent, offset === 0 ? RULESET2 : type, props4, children, length3);
28509
28507
  }
28510
28508
  function comment2(value2, root, parent) {
28511
28509
  return node2(value2, root, parent, COMMENT2, from2(char2()), substr2(value2, 2, -2), 0);
@@ -29956,7 +29954,7 @@ var prepareComponents = (context) => {
29956
29954
  return context.components ? { ...UIkitWithPrefix(), ...context.components } : UIkitWithPrefix();
29957
29955
  };
29958
29956
  var prepareUtils = (context) => {
29959
- return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...context.snippets || context.utils || context.functions || {} };
29957
+ return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
29960
29958
  };
29961
29959
  var prepareMethods = (context) => {
29962
29960
  return {
@@ -29965,7 +29963,7 @@ var prepareMethods = (context) => {
29965
29963
  requireOnDemand: context.utils.requireOnDemand,
29966
29964
  call: function(fnKey, ...args) {
29967
29965
  var _a;
29968
- return (_a = context.utils[fnKey] || context.methods[fnKey]) == null ? void 0 : _a.call(this, ...args);
29966
+ return (_a = context.utils[fnKey] || context.functions[fnKey] || context.methods[fnKey] || context.snippets[fnKey]) == null ? void 0 : _a.call(this, ...args);
29969
29967
  }
29970
29968
  };
29971
29969
  };
@@ -30088,9 +30086,8 @@ var initAnimationFrame = () => {
30088
30086
  };
30089
30087
 
30090
30088
  // src/createDomql.js
30091
- var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
30092
30089
  var prepareContext = (app, context = {}) => {
30093
- const key = context.key = context.key || SYMBOLS_KEY || ((0, import_utils28.isString)(app) ? app : "smblsapp");
30090
+ const key = context.key = context.key || ((0, import_utils28.isString)(app) ? app : "smblsapp");
30094
30091
  context.define = context.define || defaultDefine;
30095
30092
  context.window = prepareWindow(context);
30096
30093
  const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(key, context);
@@ -30102,7 +30099,6 @@ var prepareContext = (app, context = {}) => {
30102
30099
  context.pages = preparePages(app, context);
30103
30100
  context.components = prepareComponents(context);
30104
30101
  context.utils = prepareUtils(context);
30105
- context.snippets = context.utils;
30106
30102
  context.dependencies = prepareDependencies(context);
30107
30103
  context.methods = prepareMethods(context);
30108
30104
  context.routerOptions = initRouter(app, context);
@@ -30131,8 +30127,8 @@ var createDomqlElement = (app, ctx) => {
30131
30127
  app.data = app.data || {};
30132
30128
  app.data.frameListeners = initAnimationFrame();
30133
30129
  prepareRequire({
30134
- functions: ctx.snippets,
30135
- utils: ctx.snippets,
30130
+ functions: ctx.functions,
30131
+ utils: ctx.utils,
30136
30132
  snippets: ctx.snippets,
30137
30133
  ...ctx.files
30138
30134
  }, ctx);
@@ -30149,7 +30145,6 @@ var createDomqlElement = (app, ctx) => {
30149
30145
  };
30150
30146
 
30151
30147
  // src/index.js
30152
- var SYMBOLS_KEY2 = process.env.SYMBOLS_KEY;
30153
30148
  var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils29.deepMerge)(
30154
30149
  options,
30155
30150
  (0, import_utils29.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
@@ -30165,13 +30160,13 @@ var create = (App, options = options_default, optionsExternalFile) => {
30165
30160
  var createAsync = (App, options = options_default, optionsExternalFile) => {
30166
30161
  const domqlApp = create(App, options, optionsExternalFile);
30167
30162
  const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
30168
- const key = redefinedOptions.key || SYMBOLS_KEY2;
30163
+ const key = redefinedOptions.key;
30169
30164
  fetchAsync(domqlApp, key, { utils: utilImports_exports, ...redefinedOptions });
30170
30165
  return domqlApp;
30171
30166
  };
30172
30167
  var createSync = async (App, options = options_default, optionsExternalFile) => {
30173
30168
  const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
30174
- const key = options.key || SYMBOLS_KEY2;
30169
+ const key = options.key;
30175
30170
  await fetchSync(key, redefinedOptions);
30176
30171
  const domqlApp = createDomqlElement(App, redefinedOptions);
30177
30172
  if (redefinedOptions.on && redefinedOptions.on.create)