@symbo.ls/create 2.11.488 → 2.11.493

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.
@@ -223,8 +223,8 @@ var require_types = __commonJS({
223
223
  isNumber: () => isNumber3,
224
224
  isObject: () => isObject11,
225
225
  isObjectLike: () => isObjectLike4,
226
- isString: () => isString10,
227
- isUndefined: () => isUndefined11
226
+ isString: () => isString9,
227
+ isUndefined: () => isUndefined10
228
228
  });
229
229
  module2.exports = __toCommonJS2(types_exports);
230
230
  var import_node = require_node();
@@ -233,7 +233,7 @@ var require_types = __commonJS({
233
233
  return false;
234
234
  return typeof arg === "object" && arg.constructor === Object;
235
235
  };
236
- var isString10 = (arg) => typeof arg === "string";
236
+ var isString9 = (arg) => typeof arg === "string";
237
237
  var isNumber3 = (arg) => typeof arg === "number";
238
238
  var isFunction2 = (arg) => typeof arg === "function";
239
239
  var isBoolean2 = (arg) => arg === true || arg === false;
@@ -246,16 +246,16 @@ var require_types = __commonJS({
246
246
  return typeof arg === "object";
247
247
  };
248
248
  var isDefined2 = (arg) => {
249
- return isObject11(arg) || isObjectLike4(arg) || isString10(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
249
+ return isObject11(arg) || isObjectLike4(arg) || isString9(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
250
250
  };
251
- var isUndefined11 = (arg) => {
251
+ var isUndefined10 = (arg) => {
252
252
  return arg === void 0;
253
253
  };
254
254
  var TYPES = {
255
255
  boolean: isBoolean2,
256
256
  array: isArray4,
257
257
  object: isObject11,
258
- string: isString10,
258
+ string: isString9,
259
259
  date: isDate,
260
260
  number: isNumber3,
261
261
  null: isNull,
@@ -483,14 +483,15 @@ var require_string = __commonJS({
483
483
  2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
484
484
  3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
485
485
  };
486
- var replaceLiteralsWithObjectFields = (str, state, options = {}) => {
486
+ function replaceLiteralsWithObjectFields(str, options = {}, forcedState) {
487
487
  if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
488
488
  return str;
489
489
  const reg = brackRegex[options.bracketsLength || 2];
490
+ const obj = forcedState || this.state || {};
490
491
  return str.replace(reg, (_, parentPath, variable) => {
491
492
  if (parentPath) {
492
493
  const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
493
- let parentState = state;
494
+ let parentState = obj;
494
495
  for (let i = 0; i < parentLevels; i++) {
495
496
  parentState = parentState.parent;
496
497
  if (!parentState) {
@@ -500,11 +501,11 @@ var require_string = __commonJS({
500
501
  const value2 = parentState[variable.trim()];
501
502
  return value2 !== void 0 ? `${value2}` : "";
502
503
  } else {
503
- const value2 = state[variable.trim()];
504
+ const value2 = obj[variable.trim()];
504
505
  return value2 !== void 0 ? `${value2}` : "";
505
506
  }
506
507
  });
507
- };
508
+ }
508
509
  var lowercaseFirstLetter = (inputString) => {
509
510
  return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
510
511
  };
@@ -1405,21 +1406,21 @@ var require_cookie = __commonJS({
1405
1406
  });
1406
1407
  module2.exports = __toCommonJS2(cookie_exports);
1407
1408
  var import_types = require_types();
1408
- var import_utils25 = require_cjs();
1409
+ var import_utils24 = require_cjs();
1409
1410
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
1410
1411
  var setCookie = (cname, cvalue, exdays = 365) => {
1411
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1412
+ if ((0, import_types.isUndefined)(import_utils24.document) || (0, import_types.isUndefined)(import_utils24.document.cookie))
1412
1413
  return;
1413
1414
  const d = /* @__PURE__ */ new Date();
1414
1415
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
1415
1416
  const expires = `expires=${d.toUTCString()}`;
1416
- import_utils25.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1417
+ import_utils24.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1417
1418
  };
1418
1419
  var getCookie = (cname) => {
1419
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1420
+ if ((0, import_types.isUndefined)(import_utils24.document) || (0, import_types.isUndefined)(import_utils24.document.cookie))
1420
1421
  return;
1421
1422
  const name = `${cname}=`;
1422
- const decodedCookie = decodeURIComponent(import_utils25.document.cookie);
1423
+ const decodedCookie = decodeURIComponent(import_utils24.document.cookie);
1423
1424
  const ca = decodedCookie.split(";");
1424
1425
  for (let i = 0; i < ca.length; i++) {
1425
1426
  let c = ca[i];
@@ -1431,9 +1432,9 @@ var require_cookie = __commonJS({
1431
1432
  return "";
1432
1433
  };
1433
1434
  var removeCookie = (cname) => {
1434
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1435
+ if ((0, import_types.isUndefined)(import_utils24.document) || (0, import_types.isUndefined)(import_utils24.document.cookie))
1435
1436
  return;
1436
- import_utils25.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1437
+ import_utils24.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1437
1438
  };
1438
1439
  function getLocalStorage(key) {
1439
1440
  let savedJSON;
@@ -1845,7 +1846,7 @@ var require_component = __commonJS({
1845
1846
  if (checkIfKeyIsComponent2(key)) {
1846
1847
  result.push(key);
1847
1848
  }
1848
- if (key === "extend") {
1849
+ if (key === "extend" || key === "extends") {
1849
1850
  if (typeof o[key] === "string") {
1850
1851
  result.push(o[key]);
1851
1852
  } else if (Array.isArray(o[key])) {
@@ -2159,7 +2160,7 @@ var require_cjs2 = __commonJS({
2159
2160
  isNumber: () => isNumber22,
2160
2161
  isObject: () => isObject72,
2161
2162
  isObjectLike: () => isObjectLike32,
2162
- isString: () => isString92,
2163
+ isString: () => isString9,
2163
2164
  isUndefined: () => isUndefined22
2164
2165
  });
2165
2166
  module22.exports = __toCommonJS3(types_exports);
@@ -2169,7 +2170,7 @@ var require_cjs2 = __commonJS({
2169
2170
  return false;
2170
2171
  return typeof arg === "object" && arg.constructor === Object;
2171
2172
  };
2172
- var isString92 = (arg) => typeof arg === "string";
2173
+ var isString9 = (arg) => typeof arg === "string";
2173
2174
  var isNumber22 = (arg) => typeof arg === "number";
2174
2175
  var isFunction2 = (arg) => typeof arg === "function";
2175
2176
  var isBoolean2 = (arg) => arg === true || arg === false;
@@ -2182,7 +2183,7 @@ var require_cjs2 = __commonJS({
2182
2183
  return typeof arg === "object";
2183
2184
  };
2184
2185
  var isDefined2 = (arg) => {
2185
- return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber22(arg) || isFunction2(arg) || isArray7(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2186
+ return isObject72(arg) || isObjectLike32(arg) || isString9(arg) || isNumber22(arg) || isFunction2(arg) || isArray7(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2186
2187
  };
2187
2188
  var isUndefined22 = (arg) => {
2188
2189
  return arg === void 0;
@@ -2191,7 +2192,7 @@ var require_cjs2 = __commonJS({
2191
2192
  boolean: isBoolean2,
2192
2193
  array: isArray7,
2193
2194
  object: isObject72,
2194
- string: isString92,
2195
+ string: isString9,
2195
2196
  date: isDate,
2196
2197
  number: isNumber22,
2197
2198
  null: isNull2,
@@ -2415,14 +2416,15 @@ var require_cjs2 = __commonJS({
2415
2416
  2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
2416
2417
  3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
2417
2418
  };
2418
- var replaceLiteralsWithObjectFields = (str, state, options = {}) => {
2419
+ function replaceLiteralsWithObjectFields(str, options = {}, forcedState) {
2419
2420
  if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
2420
2421
  return str;
2421
2422
  const reg = brackRegex[options.bracketsLength || 2];
2423
+ const obj = forcedState || this.state || {};
2422
2424
  return str.replace(reg, (_, parentPath, variable) => {
2423
2425
  if (parentPath) {
2424
2426
  const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
2425
- let parentState = state;
2427
+ let parentState = obj;
2426
2428
  for (let i = 0; i < parentLevels; i++) {
2427
2429
  parentState = parentState.parent;
2428
2430
  if (!parentState) {
@@ -2432,11 +2434,11 @@ var require_cjs2 = __commonJS({
2432
2434
  const value2 = parentState[variable.trim()];
2433
2435
  return value2 !== void 0 ? `${value2}` : "";
2434
2436
  } else {
2435
- const value2 = state[variable.trim()];
2437
+ const value2 = obj[variable.trim()];
2436
2438
  return value2 !== void 0 ? `${value2}` : "";
2437
2439
  }
2438
2440
  });
2439
- };
2441
+ }
2440
2442
  var lowercaseFirstLetter = (inputString) => {
2441
2443
  return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
2442
2444
  };
@@ -3765,7 +3767,7 @@ var require_cjs2 = __commonJS({
3765
3767
  if (checkIfKeyIsComponent2(key)) {
3766
3768
  result.push(key);
3767
3769
  }
3768
- if (key === "extend") {
3770
+ if (key === "extend" || key === "extends") {
3769
3771
  if (typeof o[key] === "string") {
3770
3772
  result.push(o[key]);
3771
3773
  } else if (Array.isArray(o[key])) {
@@ -4004,7 +4006,7 @@ var require_cjs2 = __commonJS({
4004
4006
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
4005
4007
  };
4006
4008
  var import_globals = __toESM2(require_cjs15(), 1);
4007
- var import_utils25 = __toESM2(require_cjs22(), 1);
4009
+ var import_utils24 = __toESM2(require_cjs22(), 1);
4008
4010
  var ENV3 = "development";
4009
4011
  var colorStringToRgbaArray = (color) => {
4010
4012
  if (color === "")
@@ -4136,11 +4138,11 @@ var require_cjs2 = __commonJS({
4136
4138
  return `rgba(${arr})`;
4137
4139
  };
4138
4140
  var getRgbTone = (rgb, tone) => {
4139
- if ((0, import_utils25.isString)(rgb) && rgb.includes("rgb"))
4141
+ if ((0, import_utils24.isString)(rgb) && rgb.includes("rgb"))
4140
4142
  rgb = colorStringToRgbaArray(rgb).join(", ");
4141
- if ((0, import_utils25.isString)(rgb))
4143
+ if ((0, import_utils24.isString)(rgb))
4142
4144
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
4143
- if ((0, import_utils25.isNumber)(tone))
4145
+ if ((0, import_utils24.isNumber)(tone))
4144
4146
  tone += "";
4145
4147
  const toHex = rgbArrayToHex(rgb);
4146
4148
  const abs2 = tone.slice(0, 1);
@@ -4670,14 +4672,15 @@ var require_cjs2 = __commonJS({
4670
4672
  2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
4671
4673
  3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
4672
4674
  };
4673
- var replaceLiteralsWithObjectFields = (str, state, options = {}) => {
4675
+ function replaceLiteralsWithObjectFields(str, options = {}, forcedState) {
4674
4676
  if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
4675
4677
  return str;
4676
4678
  const reg = brackRegex[options.bracketsLength || 2];
4679
+ const obj = forcedState || this.state || {};
4677
4680
  return str.replace(reg, (_, parentPath, variable) => {
4678
4681
  if (parentPath) {
4679
4682
  const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
4680
- let parentState = state;
4683
+ let parentState = obj;
4681
4684
  for (let i = 0; i < parentLevels; i++) {
4682
4685
  parentState = parentState.parent;
4683
4686
  if (!parentState) {
@@ -4687,11 +4690,11 @@ var require_cjs2 = __commonJS({
4687
4690
  const value2 = parentState[variable.trim()];
4688
4691
  return value2 !== void 0 ? `${value2}` : "";
4689
4692
  } else {
4690
- const value2 = state[variable.trim()];
4693
+ const value2 = obj[variable.trim()];
4691
4694
  return value2 !== void 0 ? `${value2}` : "";
4692
4695
  }
4693
4696
  });
4694
- };
4697
+ }
4695
4698
  var lowercaseFirstLetter = (inputString) => {
4696
4699
  return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
4697
4700
  };
@@ -6020,7 +6023,7 @@ var require_cjs2 = __commonJS({
6020
6023
  if (checkIfKeyIsComponent2(key)) {
6021
6024
  result.push(key);
6022
6025
  }
6023
- if (key === "extend") {
6026
+ if (key === "extend" || key === "extends") {
6024
6027
  if (typeof o[key] === "string") {
6025
6028
  result.push(o[key]);
6026
6029
  } else if (Array.isArray(o[key])) {
@@ -6107,7 +6110,7 @@ var require_cjs2 = __commonJS({
6107
6110
  toggleFullscreen: () => toggleFullscreen
6108
6111
  });
6109
6112
  module2.exports = __toCommonJS22(src_exports3);
6110
- var import_utils26 = __toESM22(require_cjs32(), 1);
6113
+ var import_utils25 = __toESM22(require_cjs32(), 1);
6111
6114
  var toggleFullscreen = async (el) => {
6112
6115
  if (!document.fullscreenElement) {
6113
6116
  try {
@@ -6282,13 +6285,13 @@ var require_cjs2 = __commonJS({
6282
6285
  return result.charAt(0).toUpperCase() + result.slice(1);
6283
6286
  };
6284
6287
  var arrayzeValue = (val) => {
6285
- if ((0, import_utils26.isArray)(val))
6288
+ if ((0, import_utils25.isArray)(val))
6286
6289
  return val;
6287
- if ((0, import_utils26.isString)(val))
6290
+ if ((0, import_utils25.isString)(val))
6288
6291
  return val.split(" ");
6289
- if ((0, import_utils26.isObject)(val))
6292
+ if ((0, import_utils25.isObject)(val))
6290
6293
  return Object.values(val);
6291
- if ((0, import_utils26.isNumber)(val))
6294
+ if ((0, import_utils25.isNumber)(val))
6292
6295
  return [val];
6293
6296
  };
6294
6297
  var import_utils42 = __toESM2(require_cjs22(), 1);
@@ -7618,7 +7621,7 @@ var require_cjs2 = __commonJS({
7618
7621
  }
7619
7622
  }
7620
7623
  };
7621
- var import_utils262 = __toESM2(require_cjs22(), 1);
7624
+ var import_utils26 = __toESM2(require_cjs22(), 1);
7622
7625
  var applyReset = (reset = {}) => {
7623
7626
  const CONFIG22 = getActiveConfig3();
7624
7627
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
@@ -7640,8 +7643,8 @@ var require_cjs2 = __commonJS({
7640
7643
  const { body, ...templates } = TYPOGRAPHY22.templates;
7641
7644
  const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
7642
7645
  if (RESET2.html)
7643
- (0, import_utils262.overwriteDeep)(RESET2.html, globalTheme);
7644
- return (0, import_utils262.deepMerge)((0, import_utils262.merge)(RESET2, reset), {
7646
+ (0, import_utils26.overwriteDeep)(RESET2.html, globalTheme);
7647
+ return (0, import_utils26.deepMerge)((0, import_utils26.merge)(RESET2, reset), {
7645
7648
  html: {
7646
7649
  position: "absolute",
7647
7650
  // overflow: 'hidden',
@@ -8134,7 +8137,7 @@ var require_cjs3 = __commonJS({
8134
8137
  isObject: () => isObject32,
8135
8138
  isObjectLike: () => isObjectLike4,
8136
8139
  isString: () => isString22,
8137
- isUndefined: () => isUndefined11
8140
+ isUndefined: () => isUndefined10
8138
8141
  });
8139
8142
  module22.exports = __toCommonJS22(types_exports);
8140
8143
  var import_node = require_node3();
@@ -8158,7 +8161,7 @@ var require_cjs3 = __commonJS({
8158
8161
  var isDefined2 = (arg) => {
8159
8162
  return isObject32(arg) || isObjectLike4(arg) || isString22(arg) || isNumber22(arg) || isFunction2(arg) || isArray32(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
8160
8163
  };
8161
- var isUndefined11 = (arg) => {
8164
+ var isUndefined10 = (arg) => {
8162
8165
  return arg === void 0;
8163
8166
  };
8164
8167
  var TYPES = {
@@ -8389,14 +8392,15 @@ var require_cjs3 = __commonJS({
8389
8392
  2: /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g,
8390
8393
  3: /\{\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}\}/g
8391
8394
  };
8392
- var replaceLiteralsWithObjectFields = (str, state, options = {}) => {
8395
+ function replaceLiteralsWithObjectFields(str, options = {}, forcedState) {
8393
8396
  if (!str.includes(options.bracketsLength === 3 ? "{{{" : "{{"))
8394
8397
  return str;
8395
8398
  const reg = brackRegex[options.bracketsLength || 2];
8399
+ const obj = forcedState || this.state || {};
8396
8400
  return str.replace(reg, (_, parentPath, variable) => {
8397
8401
  if (parentPath) {
8398
8402
  const parentLevels = parentPath.match(options.bracketsLength === 3 ? /\.\.\.\//g : /\.\.\//g).length;
8399
- let parentState = state;
8403
+ let parentState = obj;
8400
8404
  for (let i = 0; i < parentLevels; i++) {
8401
8405
  parentState = parentState.parent;
8402
8406
  if (!parentState) {
@@ -8406,11 +8410,11 @@ var require_cjs3 = __commonJS({
8406
8410
  const value2 = parentState[variable.trim()];
8407
8411
  return value2 !== void 0 ? `${value2}` : "";
8408
8412
  } else {
8409
- const value2 = state[variable.trim()];
8413
+ const value2 = obj[variable.trim()];
8410
8414
  return value2 !== void 0 ? `${value2}` : "";
8411
8415
  }
8412
8416
  });
8413
- };
8417
+ }
8414
8418
  var lowercaseFirstLetter = (inputString) => {
8415
8419
  return `${inputString.charAt(0).toLowerCase()}${inputString.slice(1)}`;
8416
8420
  };
@@ -9739,7 +9743,7 @@ var require_cjs3 = __commonJS({
9739
9743
  if (checkIfKeyIsComponent2(key)) {
9740
9744
  result.push(key);
9741
9745
  }
9742
- if (key === "extend") {
9746
+ if (key === "extend" || key === "extends") {
9743
9747
  if (typeof o[key] === "string") {
9744
9748
  result.push(o[key]);
9745
9749
  } else if (Array.isArray(o[key])) {
@@ -9826,7 +9830,7 @@ var require_cjs3 = __commonJS({
9826
9830
  toggleFullscreen: () => toggleFullscreen
9827
9831
  });
9828
9832
  module2.exports = __toCommonJS2(src_exports2);
9829
- var import_utils25 = __toESM2(require_cjs15(), 1);
9833
+ var import_utils24 = __toESM2(require_cjs15(), 1);
9830
9834
  var toggleFullscreen = async (el) => {
9831
9835
  if (!document.fullscreenElement) {
9832
9836
  try {
@@ -9838,15 +9842,15 @@ var require_cjs3 = __commonJS({
9838
9842
  await document.exitFullscreen();
9839
9843
  }
9840
9844
  };
9841
- var import_utils26 = __toESM2(require_cjs15(), 1);
9845
+ var import_utils25 = __toESM2(require_cjs15(), 1);
9842
9846
  var findClosestNumber = (number, arr) => {
9843
- return ((0, import_utils26.isArray)(arr) ? arr : Object.values(arr)).reduce((prev2, curr) => {
9847
+ return ((0, import_utils25.isArray)(arr) ? arr : Object.values(arr)).reduce((prev2, curr) => {
9844
9848
  return Math.abs(curr - number) < Math.abs(prev2 - number) ? curr : prev2;
9845
9849
  });
9846
9850
  };
9847
9851
  var findClosestNumberInFactory = (val, factory) => {
9848
9852
  val = parseFloat(val);
9849
- if ((0, import_utils26.isObject)(factory))
9853
+ if ((0, import_utils25.isObject)(factory))
9850
9854
  factory = Object.values(factory);
9851
9855
  return findClosestNumber(val, factory);
9852
9856
  };
@@ -10001,13 +10005,13 @@ var require_cjs3 = __commonJS({
10001
10005
  return result.charAt(0).toUpperCase() + result.slice(1);
10002
10006
  };
10003
10007
  var arrayzeValue = (val) => {
10004
- if ((0, import_utils25.isArray)(val))
10008
+ if ((0, import_utils24.isArray)(val))
10005
10009
  return val;
10006
- if ((0, import_utils25.isString)(val))
10010
+ if ((0, import_utils24.isString)(val))
10007
10011
  return val.split(" ");
10008
- if ((0, import_utils25.isObject)(val))
10012
+ if ((0, import_utils24.isObject)(val))
10009
10013
  return Object.values(val);
10010
- if ((0, import_utils25.isNumber)(val))
10014
+ if ((0, import_utils24.isNumber)(val))
10011
10015
  return [val];
10012
10016
  };
10013
10017
  }
@@ -11531,13 +11535,13 @@ var require_on = __commonJS({
11531
11535
  triggerEventOnUpdate: () => triggerEventOnUpdate
11532
11536
  });
11533
11537
  module2.exports = __toCommonJS2(on_exports);
11534
- var import_utils25 = require_cjs();
11538
+ var import_utils24 = require_cjs();
11535
11539
  var applyEvent = (param, element, state, context, options) => {
11536
11540
  return param.call(element, element, state || element.state, context || element.context, options);
11537
11541
  };
11538
11542
  var triggerEventOn = (param, element, options) => {
11539
11543
  var _a;
11540
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
11544
+ if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
11541
11545
  const { state, context } = element;
11542
11546
  return applyEvent(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), element, state, context, options);
11543
11547
  }
@@ -11547,7 +11551,7 @@ var require_on = __commonJS({
11547
11551
  };
11548
11552
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
11549
11553
  var _a;
11550
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
11554
+ if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
11551
11555
  const { state, context } = element;
11552
11556
  return applyEventUpdate(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), updatedObj, element, state, context, options);
11553
11557
  }
@@ -11568,7 +11572,7 @@ var require_on = __commonJS({
11568
11572
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "beforeStateUpdate" || param === "stateUpdate" || param === "beforeUpdate" || param === "done" || param === "create" || param === "complete" || param === "frame" || param === "update")
11569
11573
  continue;
11570
11574
  const appliedFunction = element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]);
11571
- if ((0, import_utils25.isFunction)(appliedFunction)) {
11575
+ if ((0, import_utils24.isFunction)(appliedFunction)) {
11572
11576
  node2.addEventListener(param, (event) => {
11573
11577
  const { state, context } = element;
11574
11578
  appliedFunction.call(element, event, element, state, context, options);
@@ -11606,9 +11610,9 @@ var require_can = __commonJS({
11606
11610
  });
11607
11611
  module2.exports = __toCommonJS2(can_exports);
11608
11612
  var import_report = require_cjs4();
11609
- var import_utils25 = require_cjs();
11613
+ var import_utils24 = require_cjs();
11610
11614
  var canRenderTag = (tag) => {
11611
- return (0, import_utils25.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11615
+ return (0, import_utils24.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11612
11616
  };
11613
11617
  }
11614
11618
  });
@@ -11669,8 +11673,8 @@ var require_cjs6 = __commonJS({
11669
11673
  });
11670
11674
  module2.exports = __toCommonJS2(router_exports);
11671
11675
  var import_event = require_cjs5();
11672
- var import_utils25 = require_cjs();
11673
- var getActiveRoute = (level = 0, route = import_utils25.window.location.pathname) => {
11676
+ var import_utils24 = require_cjs();
11677
+ var getActiveRoute = (level = 0, route = import_utils24.window.location.pathname) => {
11674
11678
  const routeArray = route.split("/");
11675
11679
  const activeRoute = routeArray[level + 1];
11676
11680
  if (activeRoute)
@@ -11684,7 +11688,7 @@ var require_cjs6 = __commonJS({
11684
11688
  initialRender: false,
11685
11689
  scrollToTop: true,
11686
11690
  scrollToNode: false,
11687
- scrollNode: import_utils25.document && import_utils25.document.documentElement,
11691
+ scrollNode: import_utils24.document && import_utils24.document.documentElement,
11688
11692
  scrollBody: false,
11689
11693
  useFragment: false,
11690
11694
  updateState: true,
@@ -11693,15 +11697,15 @@ var require_cjs6 = __commonJS({
11693
11697
  scrollToOptions: { behavior: "smooth" }
11694
11698
  };
11695
11699
  var router = (path, element, state = {}, options = {}) => {
11696
- const win = element.context.window || import_utils25.window;
11697
- const doc = element.context.document || import_utils25.document;
11700
+ const win = element.context.window || import_utils24.window;
11701
+ const doc = element.context.document || import_utils24.document;
11698
11702
  const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
11699
11703
  lastLevel = opts.lastLevel;
11700
11704
  const ref = element.__ref;
11701
11705
  if (opts.contentElementKey !== "content" && opts.contentElementKey !== ref.contentElementKey || !ref.contentElementKey) {
11702
11706
  ref.contentElementKey = opts.contentElementKey || "content";
11703
11707
  }
11704
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
11708
+ const contentElementKey = (0, import_utils24.setContentKey)(element, opts);
11705
11709
  const urlObj = new win.URL(win.location.origin + path);
11706
11710
  const { pathname, search, hash: hash2 } = urlObj;
11707
11711
  const rootNode = element.node;
@@ -12129,10 +12133,9 @@ var init_Img = __esm({
12129
12133
  attr: {
12130
12134
  src: (el) => {
12131
12135
  const { props: props4, context } = el;
12132
- const { exec: exec6, isString: isString10, replaceLiteralsWithObjectFields } = context.utils;
12133
- let src = (props4.preSrc || "") + exec6(props4.src, el);
12134
- if (isString10(src) && src.includes("{{")) {
12135
- src = replaceLiteralsWithObjectFields(src, el.state);
12136
+ let src = (props4.preSrc || "") + el.call("exec", props4.src, el);
12137
+ if (el.call("isString", src) && src.includes("{{")) {
12138
+ src = el.call("replaceLiteralsWithObjectFields", src);
12136
12139
  }
12137
12140
  let isUrl;
12138
12141
  try {
@@ -12821,7 +12824,19 @@ var init_Iframe = __esm({
12821
12824
  minHeight: "H"
12822
12825
  },
12823
12826
  attr: {
12824
- src: ({ props: props4 }) => props4.src,
12827
+ src: (el, s) => {
12828
+ let src = el.call("exec", el.props.src, el);
12829
+ if (el.call("isString", src) && src.includes("{{")) {
12830
+ src = el.call("replaceLiteralsWithObjectFields", src);
12831
+ }
12832
+ let isUrl;
12833
+ try {
12834
+ isUrl = new URL(src);
12835
+ } catch (e) {
12836
+ }
12837
+ if (isUrl)
12838
+ return src;
12839
+ },
12825
12840
  srcdoc: ({ props: props4 }) => props4.srcdoc,
12826
12841
  sandbox: ({ props: props4 }) => props4.sandbox,
12827
12842
  seamless: ({ props: props4 }) => props4.seamless,
@@ -13061,11 +13076,11 @@ var require_methods = __commonJS({
13061
13076
  values: () => values
13062
13077
  });
13063
13078
  module2.exports = __toCommonJS2(methods_exports);
13064
- var import_utils25 = require_cjs();
13079
+ var import_utils24 = require_cjs();
13065
13080
  var import_ignore = require_ignore();
13066
13081
  var parse3 = function() {
13067
13082
  const state = this;
13068
- if ((0, import_utils25.isObject)(state)) {
13083
+ if ((0, import_utils24.isObject)(state)) {
13069
13084
  const obj = {};
13070
13085
  for (const param in state) {
13071
13086
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -13073,7 +13088,7 @@ var require_methods = __commonJS({
13073
13088
  }
13074
13089
  }
13075
13090
  return obj;
13076
- } else if ((0, import_utils25.isArray)(state)) {
13091
+ } else if ((0, import_utils24.isArray)(state)) {
13077
13092
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
13078
13093
  }
13079
13094
  };
@@ -13093,7 +13108,7 @@ var require_methods = __commonJS({
13093
13108
  const state = this;
13094
13109
  const element = state.__element;
13095
13110
  const stateKey = element.__ref.__state;
13096
- if ((0, import_utils25.isString)(stateKey)) {
13111
+ if ((0, import_utils24.isString)(stateKey)) {
13097
13112
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
13098
13113
  return element.state;
13099
13114
  }
@@ -13106,7 +13121,7 @@ var require_methods = __commonJS({
13106
13121
  for (const key in state.__children) {
13107
13122
  const child = state.__children[key];
13108
13123
  if (child.state) {
13109
- if ((0, import_utils25.isArray)(child.state)) {
13124
+ if ((0, import_utils24.isArray)(child.state)) {
13110
13125
  Object.defineProperty(child.state, "parent", {
13111
13126
  value: state.parent,
13112
13127
  enumerable: false,
@@ -13140,10 +13155,10 @@ var require_methods = __commonJS({
13140
13155
  };
13141
13156
  var add = function(value2, options = {}) {
13142
13157
  const state = this;
13143
- if ((0, import_utils25.isArray)(state)) {
13158
+ if ((0, import_utils24.isArray)(state)) {
13144
13159
  state.push(value2);
13145
13160
  state.update(state.parse(), { overwrite: true, ...options });
13146
- } else if ((0, import_utils25.isObject)(state)) {
13161
+ } else if ((0, import_utils24.isObject)(state)) {
13147
13162
  const key = Object.keys(state).length;
13148
13163
  state.update({ [key]: value2 }, options);
13149
13164
  }
@@ -13154,41 +13169,41 @@ var require_methods = __commonJS({
13154
13169
  };
13155
13170
  var remove = function(key, options = {}) {
13156
13171
  const state = this;
13157
- if ((0, import_utils25.isArray)(state))
13158
- (0, import_utils25.removeFromArray)(state, key);
13159
- if ((0, import_utils25.isObject)(state))
13160
- (0, import_utils25.removeFromObject)(state, key);
13172
+ if ((0, import_utils24.isArray)(state))
13173
+ (0, import_utils24.removeFromArray)(state, key);
13174
+ if ((0, import_utils24.isObject)(state))
13175
+ (0, import_utils24.removeFromObject)(state, key);
13161
13176
  if (options.applyReset)
13162
13177
  return state.set(state.parse(), { replace: true, ...options });
13163
13178
  return state.update();
13164
13179
  };
13165
13180
  var set3 = function(val, options = {}) {
13166
13181
  const state = this;
13167
- const value2 = (0, import_utils25.deepClone)(val);
13182
+ const value2 = (0, import_utils24.deepClone)(val);
13168
13183
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
13169
13184
  };
13170
13185
  var reset = function(options = {}) {
13171
13186
  const state = this;
13172
- const value2 = (0, import_utils25.deepClone)(state.parse());
13187
+ const value2 = (0, import_utils24.deepClone)(state.parse());
13173
13188
  return state.set(value2, { replace: true, ...options });
13174
13189
  };
13175
13190
  var apply = function(func, options = {}) {
13176
13191
  const state = this;
13177
- if ((0, import_utils25.isFunction)(func)) {
13192
+ if ((0, import_utils24.isFunction)(func)) {
13178
13193
  const value2 = func(state);
13179
13194
  return state.update(value2, { replace: true, ...options });
13180
13195
  }
13181
13196
  };
13182
13197
  var applyReplace = function(func, options = {}) {
13183
13198
  const state = this;
13184
- if ((0, import_utils25.isFunction)(func)) {
13199
+ if ((0, import_utils24.isFunction)(func)) {
13185
13200
  const value2 = func(state);
13186
13201
  return state.replace(value2, options);
13187
13202
  }
13188
13203
  };
13189
13204
  var applyFunction = function(func, options = {}) {
13190
13205
  const state = this;
13191
- if ((0, import_utils25.isFunction)(func)) {
13206
+ if ((0, import_utils24.isFunction)(func)) {
13192
13207
  func(state);
13193
13208
  return state.update(state.parse(), { replace: true, ...options });
13194
13209
  }
@@ -13252,7 +13267,7 @@ var require_inherit = __commonJS({
13252
13267
  isState: () => isState2
13253
13268
  });
13254
13269
  module2.exports = __toCommonJS2(inherit_exports);
13255
- var import_utils25 = require_cjs();
13270
+ var import_utils24 = require_cjs();
13256
13271
  var import_ignore = require_ignore();
13257
13272
  var getRootStateInKey = (stateKey, parentState) => {
13258
13273
  if (!stateKey.includes("~/"))
@@ -13317,11 +13332,11 @@ var require_inherit = __commonJS({
13317
13332
  var createInheritedState = (element, parent) => {
13318
13333
  const ref = element.__ref;
13319
13334
  const inheritedState = findInheritedState(element, parent);
13320
- if ((0, import_utils25.isUndefined)(inheritedState))
13335
+ if ((0, import_utils24.isUndefined)(inheritedState))
13321
13336
  return element.state;
13322
- if ((0, import_utils25.is)(inheritedState)("object", "array")) {
13323
- return (0, import_utils25.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13324
- } else if ((0, import_utils25.is)(inheritedState)("string", "number", "boolean")) {
13337
+ if ((0, import_utils24.is)(inheritedState)("object", "array")) {
13338
+ return (0, import_utils24.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13339
+ } else if ((0, import_utils24.is)(inheritedState)("string", "number", "boolean")) {
13325
13340
  ref.__stateType = typeof inheritedState;
13326
13341
  return { value: inheritedState };
13327
13342
  }
@@ -13330,12 +13345,12 @@ var require_inherit = __commonJS({
13330
13345
  var checkIfInherits = (element) => {
13331
13346
  const ref = element.__ref;
13332
13347
  const stateKey = ref.__state;
13333
- if (stateKey && (0, import_utils25.is)(stateKey)("number", "string", "boolean"))
13348
+ if (stateKey && (0, import_utils24.is)(stateKey)("number", "string", "boolean"))
13334
13349
  return true;
13335
13350
  return false;
13336
13351
  };
13337
13352
  var isState2 = function(state) {
13338
- if (!(0, import_utils25.isObjectLike)(state))
13353
+ if (!(0, import_utils24.isObjectLike)(state))
13339
13354
  return false;
13340
13355
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.keys && state.values && state.toggle && state.replace && state.quietUpdate && state.quietReplace && state.add && state.apply && state.applyReplace && state.applyFunction && state.__element && state.__children;
13341
13356
  };
@@ -13384,7 +13399,7 @@ var require_updateState = __commonJS({
13384
13399
  var import_report = require_cjs4();
13385
13400
  var import_event = require_cjs5();
13386
13401
  var import_ignore = require_ignore();
13387
- var import_utils25 = require_cjs();
13402
+ var import_utils24 = require_cjs();
13388
13403
  var import_inherit = require_inherit();
13389
13404
  var STATE_UPDATE_OPTIONS = {
13390
13405
  overwrite: true,
@@ -13399,7 +13414,7 @@ var require_updateState = __commonJS({
13399
13414
  if (options.onEach)
13400
13415
  options.onEach(element, state, element.context, options);
13401
13416
  if (!options.updateByState)
13402
- (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
13417
+ (0, import_utils24.merge)(options, STATE_UPDATE_OPTIONS);
13403
13418
  if (!state.__element)
13404
13419
  (0, import_report.report)("ElementOnStateIsNotDefined");
13405
13420
  if (options.preventInheritAtCurrentState === true) {
@@ -13429,10 +13444,10 @@ var require_updateState = __commonJS({
13429
13444
  const shallow = overwrite === "shallow" || overwrite === "shallow-once";
13430
13445
  const merge22 = overwrite === "merge";
13431
13446
  if (merge22) {
13432
- (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13447
+ (0, import_utils24.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13433
13448
  return;
13434
13449
  }
13435
- const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
13450
+ const overwriteFunc = shallow ? import_utils24.overwriteShallow : import_utils24.overwriteDeep;
13436
13451
  if (options.overwrite === "shallow-once")
13437
13452
  options.overwrite = true;
13438
13453
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
@@ -13457,7 +13472,7 @@ var require_updateState = __commonJS({
13457
13472
  const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
13458
13473
  const targetParent = findRootState || findGrandParentState || parent.state;
13459
13474
  if (options.replace)
13460
- (0, import_utils25.overwriteDeep)(targetParent, changesValue || value2);
13475
+ (0, import_utils24.overwriteDeep)(targetParent, changesValue || value2);
13461
13476
  targetParent.update(changesValue, {
13462
13477
  execStateFunction: false,
13463
13478
  isHoisted: true,
@@ -13526,7 +13541,7 @@ var require_create = __commonJS({
13526
13541
  });
13527
13542
  module2.exports = __toCommonJS2(create_exports);
13528
13543
  var import_event = require_cjs5();
13529
- var import_utils25 = require_cjs();
13544
+ var import_utils24 = require_cjs();
13530
13545
  var import_ignore = require_ignore();
13531
13546
  var import_methods = require_methods();
13532
13547
  var import_updateState = require_updateState();
@@ -13546,7 +13561,7 @@ var require_create = __commonJS({
13546
13561
  return element.state;
13547
13562
  if ((0, import_inherit.checkIfInherits)(element)) {
13548
13563
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
13549
- element.state = (0, import_utils25.isUndefined)(inheritedState) ? {} : inheritedState;
13564
+ element.state = (0, import_utils24.isUndefined)(inheritedState) ? {} : inheritedState;
13550
13565
  }
13551
13566
  const dependentState = applyDependentState(element, element.state || parent.state || {});
13552
13567
  if (dependentState)
@@ -13557,12 +13572,12 @@ var require_create = __commonJS({
13557
13572
  };
13558
13573
  var applyDependentState = (element, state) => {
13559
13574
  const { __ref, ref, __element } = state;
13560
- const origState = (0, import_utils25.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13575
+ const origState = (0, import_utils24.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13561
13576
  if (!origState)
13562
13577
  return;
13563
- const dependentState = (0, import_utils25.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13578
+ const dependentState = (0, import_utils24.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13564
13579
  const newDepends = { [element.key]: dependentState };
13565
- const __depends = (0, import_utils25.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13580
+ const __depends = (0, import_utils24.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13566
13581
  if (Array.isArray(origState)) {
13567
13582
  addProtoToArray(origState, { ...Object.getPrototypeOf(origState), __depends });
13568
13583
  } else {
@@ -13573,10 +13588,10 @@ var require_create = __commonJS({
13573
13588
  var checkForTypes = (element) => {
13574
13589
  const { state: orig, props: props4, __ref: ref } = element;
13575
13590
  const state = (props4 == null ? void 0 : props4.state) || orig;
13576
- if ((0, import_utils25.isFunction)(state)) {
13591
+ if ((0, import_utils24.isFunction)(state)) {
13577
13592
  ref.__state = state;
13578
- return (0, import_utils25.exec)(state, element);
13579
- } else if ((0, import_utils25.is)(state)("string", "number")) {
13593
+ return (0, import_utils24.exec)(state, element);
13594
+ } else if ((0, import_utils24.is)(state)("string", "number")) {
13580
13595
  ref.__state = state;
13581
13596
  return { value: state };
13582
13597
  } else if (state === true) {
@@ -13631,7 +13646,7 @@ var require_create = __commonJS({
13631
13646
  __children: {},
13632
13647
  root: ref.root ? ref.root.state : state
13633
13648
  };
13634
- if ((0, import_utils25.isArray)(state)) {
13649
+ if ((0, import_utils24.isArray)(state)) {
13635
13650
  addProtoToArray(state, proto);
13636
13651
  } else {
13637
13652
  Object.setPrototypeOf(state, proto);
@@ -14254,14 +14269,13 @@ var init_Atoms = __esm({
14254
14269
  });
14255
14270
 
14256
14271
  // ../uikit/Box/index.js
14257
- var import_utils14, PropsCSS, Box, Circle;
14272
+ var PropsCSS, Box, Circle;
14258
14273
  var init_Box = __esm({
14259
14274
  "../uikit/Box/index.js"() {
14260
14275
  "use strict";
14261
- import_utils14 = __toESM(require_cjs());
14262
14276
  PropsCSS = {
14263
14277
  class: {
14264
- style: ({ props: props4 }) => props4 && props4.style
14278
+ style: (el) => el.props && el.props.style
14265
14279
  }
14266
14280
  };
14267
14281
  Box = {
@@ -14280,18 +14294,17 @@ var init_Box = __esm({
14280
14294
  "XYZ",
14281
14295
  "Animation"
14282
14296
  ],
14283
- deps: { isString: import_utils14.isString, isUndefined: import_utils14.isUndefined },
14284
14297
  attr: {
14285
- id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
14286
- title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
14287
- contentEditable: ({ props: props4 }) => props4.contentEditable || props4.contenteditable,
14288
- dir: ({ props: props4 }) => props4.dir,
14289
- draggable: ({ props: props4 }) => props4.draggable,
14290
- hidden: ({ props: props4 }) => props4.hidden,
14291
- lang: ({ props: props4 }) => props4.lang,
14292
- spellcheck: ({ props: props4 }) => props4.spellcheck,
14293
- tabindex: ({ props: props4 }) => props4.tabindex,
14294
- translate: ({ props: props4 }) => props4.translate
14298
+ id: (el) => el.call("isString", el.props.id) && el.props.id,
14299
+ title: (el) => el.call("isString", el.props.title) && el.props.title,
14300
+ contentEditable: (el) => el.props.contentEditable || el.props.contenteditable,
14301
+ dir: (el) => el.props.dir,
14302
+ draggable: (el) => el.props.draggable,
14303
+ hidden: (el) => el.props.hidden,
14304
+ lang: (el) => el.props.lang,
14305
+ spellcheck: (el) => el.props.spellcheck,
14306
+ tabindex: (el) => el.props.tabindex,
14307
+ translate: (el) => el.props.translate
14295
14308
  }
14296
14309
  };
14297
14310
  Circle = {
@@ -14316,14 +14329,14 @@ var init_Icon = __esm({
14316
14329
  const { key, props: props4 } = el;
14317
14330
  let icon = el.call("exec", props4.name || props4.icon || key, el);
14318
14331
  if (el.call("isString", icon) && icon.includes("{{")) {
14319
- icon = el.call("replaceLiteralsWithObjectFields", icon, s);
14332
+ icon = el.call("replaceLiteralsWithObjectFields", icon);
14320
14333
  }
14321
14334
  return el.call("isString", icon) ? icon : key;
14322
14335
  };
14323
14336
  Icon = {
14324
14337
  extend: "Svg",
14325
14338
  props: (el, s, ctx) => {
14326
- const { props: props4, parent, deps } = el;
14339
+ const { props: props4, parent } = el;
14327
14340
  const { ICONS, useIconSprite, verbose } = ctx && ctx.designSystem;
14328
14341
  const { toCamelCase } = ctx && ctx.utils;
14329
14342
  const iconName = getIconName(el, s);
@@ -14345,7 +14358,7 @@ var init_Icon = __esm({
14345
14358
  );
14346
14359
  }
14347
14360
  if (el.call("isString", activeIconName) && activeIconName.includes("{{")) {
14348
- activeIconName = deps.replaceLiteralsWithObjectFields(activeIconName, s);
14361
+ activeIconName = el.call("replaceLiteralsWithObjectFields", activeIconName);
14349
14362
  }
14350
14363
  let iconInContext;
14351
14364
  if (ICONS[activeIconName])
@@ -14464,10 +14477,10 @@ var init_Link = __esm({
14464
14477
  },
14465
14478
  attr: {
14466
14479
  href: (el, s, ctx) => {
14467
- const { isString: isString10, exec: exec6, replaceLiteralsWithObjectFields } = ctx.utils;
14468
- const href = exec6(el.props.href, el) || exec6(exec6(el.props, el).href, el);
14469
- if (isString10(href) && href.includes("{{")) {
14470
- return replaceLiteralsWithObjectFields(href, s);
14480
+ const props4 = el.props;
14481
+ const href = el.call("exec", props4.href, el) || el.call("exec", el.call("exec", props4, el).href, el);
14482
+ if (el.call("isString", href) && href.includes("{{")) {
14483
+ return el.call("replaceLiteralsWithObjectFields", href);
14471
14484
  }
14472
14485
  return href;
14473
14486
  },
@@ -14481,10 +14494,9 @@ var init_Link = __esm({
14481
14494
  click: (event, el, s) => {
14482
14495
  const { props: props4, context: ctx } = el;
14483
14496
  const { href: h, scrollToTop, stopPropagation } = props4;
14484
- const { exec: exec6, isString: isString10, replaceLiteralsWithObjectFields, isDefined: isDefined2 } = ctx.utils;
14485
- let href = exec6(h, el, s);
14486
- if (isString10(href) && href.includes("{{")) {
14487
- href = replaceLiteralsWithObjectFields(href, s);
14497
+ let href = el.call("exec", h, el);
14498
+ if (el.call("isString", href) && href.includes("{{")) {
14499
+ href = el.call("replaceLiteralsWithObjectFields", href);
14488
14500
  }
14489
14501
  if (stopPropagation)
14490
14502
  event.stopPropagation();
@@ -14497,7 +14509,7 @@ var init_Link = __esm({
14497
14509
  try {
14498
14510
  (functions.router || snippets.router || utils2.router || import_router.router)(href, root, {}, {
14499
14511
  scrollToOptions: { behaviour: "instant" },
14500
- scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
14512
+ scrollToTop: el.call("isDefined", scrollToTop) ? scrollToTop : true,
14501
14513
  ...routerOptions,
14502
14514
  ...props4.routerOptions
14503
14515
  });
@@ -14571,10 +14583,12 @@ var init_Input = __esm({
14571
14583
  name: ({ props: props4 }) => props4.name,
14572
14584
  autocomplete: ({ props: props4 }) => props4.autocomplete,
14573
14585
  placeholder: ({ props: props4 }) => props4.placeholder,
14574
- value: (el, s) => {
14586
+ value: (el) => {
14587
+ if (!el.props || !el.props.value)
14588
+ return;
14575
14589
  const val = el.call("exec", el.props.value, el);
14576
14590
  if (el.call("isString", val) && val.includes("{{")) {
14577
- return el.call("replaceLiteralsWithObjectFields", val, s);
14591
+ return el.call("replaceLiteralsWithObjectFields", val);
14578
14592
  }
14579
14593
  return val;
14580
14594
  },
@@ -14836,19 +14850,17 @@ var init_Select = __esm({
14836
14850
  border: "none",
14837
14851
  boxSizing: "border-box",
14838
14852
  theme: "field",
14839
- cursor: "pointer"
14840
- },
14841
- childExtend: {
14842
- tag: "option",
14843
- props: {
14853
+ cursor: "pointer",
14854
+ childProps: {
14855
+ tag: "option",
14844
14856
  value: "",
14845
14857
  selected: "",
14846
- disabled: ""
14847
- },
14848
- attr: {
14849
- value: ({ props: props4 }) => props4.value,
14850
- selected: ({ props: props4 }) => props4.selected,
14851
- disabled: ({ props: props4 }) => props4.disabled
14858
+ disabled: "",
14859
+ attr: {
14860
+ value: ({ props: props4 }) => props4.value,
14861
+ selected: ({ props: props4 }) => props4.selected,
14862
+ disabled: ({ props: props4 }) => props4.disabled
14863
+ }
14852
14864
  }
14853
14865
  },
14854
14866
  attr: {
@@ -14999,11 +15011,11 @@ var init_Dialog = __esm({
14999
15011
  });
15000
15012
 
15001
15013
  // ../uikit/Tooltip/index.js
15002
- var import_utils15, Tooltip, TooltipHidden, TooltipParent;
15014
+ var import_utils14, Tooltip, TooltipHidden, TooltipParent;
15003
15015
  var init_Tooltip = __esm({
15004
15016
  "../uikit/Tooltip/index.js"() {
15005
15017
  "use strict";
15006
- import_utils15 = __toESM(require_cjs());
15018
+ import_utils14 = __toESM(require_cjs());
15007
15019
  Tooltip = {
15008
15020
  extend: "Flex",
15009
15021
  props: {
@@ -15022,7 +15034,7 @@ var init_Tooltip = __esm({
15022
15034
  },
15023
15035
  attr: { tooltip: true },
15024
15036
  Title: {
15025
- if: ({ parent, props: props4 }) => (0, import_utils15.isDefined)(parent.props.title) || props4.text,
15037
+ if: ({ parent, props: props4 }) => (0, import_utils14.isDefined)(parent.props.title) || props4.text,
15026
15038
  width: "fit-content",
15027
15039
  fontWeight: 500,
15028
15040
  color: "gray12",
@@ -15040,57 +15052,50 @@ var init_Tooltip = __esm({
15040
15052
  };
15041
15053
  TooltipHidden = {
15042
15054
  extend: "Tooltip",
15043
- props: {
15055
+ props: ({ props: props4 }) => ({
15044
15056
  position: "absolute",
15045
15057
  pointerEvents: "none",
15046
15058
  opacity: "0",
15047
15059
  visibility: "hidden",
15048
15060
  transition: "C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",
15049
- isTop: ({ props: props4 }) => !props4.shapeDirection || props4.shapeDirection === "top",
15050
- ".isTop": {
15061
+ ...!props4.shapeDirection || props4.shapeDirection === "top" ? {
15051
15062
  top: "112%",
15052
15063
  left: "50%",
15053
15064
  transform: "translate3d(-50%,10%,0)",
15054
- ".active": {
15065
+ ".isActive": {
15055
15066
  transform: "translate3d(-50%,0,0)",
15056
15067
  opacity: 1,
15057
15068
  visibility: "visible"
15058
15069
  }
15059
- },
15060
- isRight: ({ props: props4 }) => props4.shapeDirection === "right",
15061
- ".isRight": {
15070
+ } : props4.shapeDirection === "right" ? {
15062
15071
  transform: "translate3d(10%,-50%,0)",
15063
15072
  left: "112%",
15064
15073
  top: "50%",
15065
- ".active": {
15074
+ ".isActive": {
15066
15075
  transform: "translate3d(0%,-50%,0)",
15067
15076
  opacity: 1,
15068
15077
  visibility: "visible"
15069
15078
  }
15070
- },
15071
- isBottom: ({ props: props4 }) => props4.shapeDirection === "bottom",
15072
- ".isBottom": {
15079
+ } : ({ props: props5 }) => props5.shapeDirection === "bottom" ? {
15073
15080
  transform: "translate3d(-50%,-10%,0)",
15074
15081
  bottom: "112%",
15075
15082
  left: "50%",
15076
- ".active": {
15083
+ ".isActive": {
15077
15084
  transform: "translate3d(-50%,0,0)",
15078
15085
  opacity: 1,
15079
15086
  visibility: "visible"
15080
15087
  }
15081
- },
15082
- isLeft: ({ props: props4 }) => props4.shapeDirection === "left",
15083
- ".isLeft": {
15088
+ } : props5.shapeDirection === "left" ? {
15084
15089
  transform: "translate3d(10%,-50%,0)",
15085
15090
  right: "112%",
15086
15091
  top: "50%",
15087
- ".active": {
15092
+ ".isActive": {
15088
15093
  transform: "translate3d(0%,-50%,0)",
15089
15094
  opacity: 1,
15090
15095
  visibility: "visible"
15091
15096
  }
15092
- }
15093
- }
15097
+ } : {}
15098
+ })
15094
15099
  };
15095
15100
  TooltipParent = {
15096
15101
  props: (el) => {
@@ -15098,14 +15103,14 @@ var init_Tooltip = __esm({
15098
15103
  const TooltipElem = Tooltip2 || TooltipHidden2;
15099
15104
  if (!TooltipElem)
15100
15105
  return;
15101
- const TooltipActive = TooltipElem && TooltipElem.props && TooltipElem.props[".active"];
15106
+ const TooltipActive = TooltipElem && TooltipElem.props && TooltipElem.props[".isActive"];
15102
15107
  return {
15103
15108
  position: "relative",
15104
15109
  zIndex: 999,
15105
15110
  ":hover, &:focus-visible": {
15106
15111
  zIndex: 1e3,
15107
15112
  "& [tooltip]": TooltipActive || {
15108
- transform: "translate3d(-50%,0,0)",
15113
+ transform: "translate3d(-50%, 0, 0)",
15109
15114
  opacity: 1,
15110
15115
  visibility: "visible"
15111
15116
  }
@@ -15213,7 +15218,7 @@ var init_Range = __esm({
15213
15218
  },
15214
15219
  deps: {
15215
15220
  returnPropertyValue: (el, property, def) => {
15216
- const val = el.props && el.props[property];
15221
+ const val = el.props && el.call("exec", el.props[property], el);
15217
15222
  const r = el.call("isFunction", val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15218
15223
  return r + "";
15219
15224
  }
@@ -15640,11 +15645,11 @@ var require_tree = __commonJS({
15640
15645
  TREE: () => TREE
15641
15646
  });
15642
15647
  module2.exports = __toCommonJS2(tree_exports);
15643
- var import_utils25 = require_cjs();
15648
+ var import_utils24 = require_cjs();
15644
15649
  var import_report = require_cjs4();
15645
15650
  var ROOT = {
15646
15651
  key: ":root",
15647
- node: import_utils25.document ? import_utils25.document.body : (0, import_report.report)("DocumentNotDefined", import_utils25.document)
15652
+ node: import_utils24.document ? import_utils24.document.body : (0, import_report.report)("DocumentNotDefined", import_utils24.document)
15648
15653
  };
15649
15654
  var TREE = ROOT;
15650
15655
  }
@@ -15711,10 +15716,10 @@ var require_cache = __commonJS({
15711
15716
  module2.exports = __toCommonJS2(cache_exports);
15712
15717
  var import_report = require_cjs4();
15713
15718
  var import_event = require_cjs5();
15714
- var import_utils25 = require_cjs();
15719
+ var import_utils24 = require_cjs();
15715
15720
  var createHTMLNode = (element) => {
15716
15721
  const { tag, context } = element;
15717
- const doc = context.document || import_utils25.document;
15722
+ const doc = context.document || import_utils24.document;
15718
15723
  if (tag) {
15719
15724
  if (tag === "string")
15720
15725
  return doc.createTextNode(element.text);
@@ -15730,16 +15735,16 @@ var require_cache = __commonJS({
15730
15735
  };
15731
15736
  var detectTag = (element) => {
15732
15737
  let { tag, key, props: props4 } = element;
15733
- tag = (0, import_utils25.exec)(tag, element);
15738
+ tag = (0, import_utils24.exec)(tag, element);
15734
15739
  if (tag === true)
15735
15740
  tag = key;
15736
- if ((0, import_utils25.isObject)(props4) && (0, import_utils25.isString)(props4.tag)) {
15737
- const tagExists = (0, import_utils25.isValidHtmlTag)(props4.tag);
15741
+ if ((0, import_utils24.isObject)(props4) && (0, import_utils24.isString)(props4.tag)) {
15742
+ const tagExists = (0, import_utils24.isValidHtmlTag)(props4.tag);
15738
15743
  if (tagExists)
15739
15744
  return props4.tag;
15740
15745
  }
15741
- if ((0, import_utils25.isString)(tag)) {
15742
- if ((0, import_utils25.isValidHtmlTag)(tag))
15746
+ if ((0, import_utils24.isString)(tag)) {
15747
+ if ((0, import_utils24.isValidHtmlTag)(tag))
15743
15748
  return tag;
15744
15749
  } else {
15745
15750
  let keyAsTag = key.toLowerCase();
@@ -15747,7 +15752,7 @@ var require_cache = __commonJS({
15747
15752
  keyAsTag = keyAsTag.split(".")[0];
15748
15753
  if (keyAsTag.includes("_"))
15749
15754
  keyAsTag = keyAsTag.split("_")[0];
15750
- if ((0, import_utils25.isValidHtmlTag)(keyAsTag))
15755
+ if ((0, import_utils24.isValidHtmlTag)(keyAsTag))
15751
15756
  return keyAsTag;
15752
15757
  }
15753
15758
  return "div";
@@ -15915,9 +15920,9 @@ var require_inherit2 = __commonJS({
15915
15920
  inheritParentProps: () => inheritParentProps
15916
15921
  });
15917
15922
  module2.exports = __toCommonJS2(inherit_exports);
15918
- var import_utils25 = require_cjs();
15923
+ var import_utils24 = require_cjs();
15919
15924
  var objectizeStringProperty = (propValue) => {
15920
- if ((0, import_utils25.is)(propValue)("string", "number")) {
15925
+ if ((0, import_utils24.is)(propValue)("string", "number")) {
15921
15926
  return { inheritedString: propValue };
15922
15927
  }
15923
15928
  return propValue;
@@ -15925,9 +15930,9 @@ var require_inherit2 = __commonJS({
15925
15930
  var inheritParentProps = (element, parent) => {
15926
15931
  var _a;
15927
15932
  let propsStack = [];
15928
- const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
15933
+ const parentProps = (0, import_utils24.exec)(parent, parent.state).props;
15929
15934
  const matchParent = parent.props && parentProps[element.key];
15930
- const matchParentIsString = (0, import_utils25.isString)(matchParent);
15935
+ const matchParentIsString = (0, import_utils24.isString)(matchParent);
15931
15936
  const matchParentChildProps = parentProps && parentProps.childProps;
15932
15937
  if (matchParent) {
15933
15938
  if (matchParentIsString) {
@@ -15975,19 +15980,19 @@ var require_create3 = __commonJS({
15975
15980
  syncProps: () => syncProps
15976
15981
  });
15977
15982
  module2.exports = __toCommonJS2(create_exports);
15978
- var import_utils25 = require_cjs();
15983
+ var import_utils24 = require_cjs();
15979
15984
  var import_ignore = require_ignore2();
15980
15985
  var import_inherit = require_inherit2();
15981
15986
  var createPropsStack = (element, parent) => {
15982
15987
  const { props: props4, __ref: ref } = element;
15983
15988
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
15984
- if ((0, import_utils25.isObject)(props4))
15989
+ if ((0, import_utils24.isObject)(props4))
15985
15990
  propsStack.push(props4);
15986
15991
  else if (props4 === "inherit" && parent.props)
15987
15992
  propsStack.push(parent.props);
15988
15993
  else if (props4)
15989
15994
  propsStack.push(props4);
15990
- if ((0, import_utils25.isArray)(ref.__extend)) {
15995
+ if ((0, import_utils24.isArray)(ref.__extend)) {
15991
15996
  ref.__extend.forEach((extend) => {
15992
15997
  if (extend.props && extend.props !== props4)
15993
15998
  propsStack.push(extend.props);
@@ -16004,13 +16009,13 @@ var require_create3 = __commonJS({
16004
16009
  return;
16005
16010
  let execProps;
16006
16011
  try {
16007
- execProps = (0, import_utils25.exec)(v, element);
16012
+ execProps = (0, import_utils24.exec)(v, element);
16008
16013
  } catch (e) {
16009
16014
  element.error(e, opts);
16010
16015
  }
16011
- element.props = (0, import_utils25.deepMerge)(
16016
+ element.props = (0, import_utils24.deepMerge)(
16012
16017
  mergedProps,
16013
- (0, import_utils25.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
16018
+ (0, import_utils24.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
16014
16019
  import_ignore.IGNORE_PROPS_PARAMS
16015
16020
  );
16016
16021
  });
@@ -16158,7 +16163,7 @@ var require_object2 = __commonJS({
16158
16163
  overwriteShallow: () => overwriteShallow2
16159
16164
  });
16160
16165
  module2.exports = __toCommonJS2(object_exports);
16161
- var import_utils25 = require_cjs();
16166
+ var import_utils24 = require_cjs();
16162
16167
  var import_props = require_props();
16163
16168
  var IGNORE_STATE_PARAMS = [
16164
16169
  "update",
@@ -16210,7 +16215,7 @@ var require_object2 = __commonJS({
16210
16215
  "nextElement",
16211
16216
  "previousElement"
16212
16217
  ];
16213
- var METHODS_EXL = (0, import_utils25.joinArrays)(
16218
+ var METHODS_EXL = (0, import_utils24.joinArrays)(
16214
16219
  ["node", "state", "context", "extend", "__element"],
16215
16220
  METHODS,
16216
16221
  IGNORE_STATE_PARAMS,
@@ -16224,7 +16229,7 @@ var require_object2 = __commonJS({
16224
16229
  const extendProp = extend[e];
16225
16230
  if (elementProp === void 0) {
16226
16231
  element[e] = extendProp;
16227
- } else if ((0, import_utils25.isObjectLike)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
16232
+ } else if ((0, import_utils24.isObjectLike)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
16228
16233
  deepMerge7(elementProp, extendProp);
16229
16234
  }
16230
16235
  }
@@ -16271,7 +16276,7 @@ var require_object2 = __commonJS({
16271
16276
  continue;
16272
16277
  const objProp = obj[e];
16273
16278
  const paramsProp = params[e];
16274
- if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
16279
+ if ((0, import_utils24.isObjectLike)(objProp) && (0, import_utils24.isObjectLike)(paramsProp)) {
16275
16280
  overwriteDeep2(objProp, paramsProp);
16276
16281
  } else if (paramsProp !== void 0) {
16277
16282
  obj[e] = paramsProp;
@@ -16280,15 +16285,15 @@ var require_object2 = __commonJS({
16280
16285
  return obj;
16281
16286
  };
16282
16287
  var mergeIfExisted = (a, b) => {
16283
- if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
16288
+ if ((0, import_utils24.isObjectLike)(a) && (0, import_utils24.isObjectLike)(b))
16284
16289
  return deepMerge7(a, b);
16285
16290
  return a || b;
16286
16291
  };
16287
16292
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
16288
- return arr.reduce((a, c) => deepMerge7(a, (0, import_utils25.deepClone)(c, { exclude })), {});
16293
+ return arr.reduce((a, c) => deepMerge7(a, (0, import_utils24.deepClone)(c, { exclude })), {});
16289
16294
  };
16290
16295
  var mergeAndCloneIfArray = (obj) => {
16291
- return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : (0, import_utils25.deepClone)(obj);
16296
+ return (0, import_utils24.isArray)(obj) ? mergeArray(obj) : (0, import_utils24.deepClone)(obj);
16292
16297
  };
16293
16298
  var flattenRecursive = (param, prop, stack = []) => {
16294
16299
  const objectized = mergeAndCloneIfArray(param);
@@ -16342,7 +16347,7 @@ var require_extendUtils = __commonJS({
16342
16347
  setHashedExtend: () => setHashedExtend
16343
16348
  });
16344
16349
  module2.exports = __toCommonJS2(extendUtils_exports);
16345
- var import_utils25 = require_cjs();
16350
+ var import_utils24 = require_cjs();
16346
16351
  var ENV3 = "development";
16347
16352
  var generateHash = () => Math.random().toString(36).substring(2);
16348
16353
  var extendStackRegistry = {};
@@ -16352,7 +16357,7 @@ var require_extendUtils = __commonJS({
16352
16357
  };
16353
16358
  var setHashedExtend = (extend, stack) => {
16354
16359
  const hash2 = generateHash();
16355
- if (!(0, import_utils25.isString)(extend)) {
16360
+ if (!(0, import_utils24.isString)(extend)) {
16356
16361
  extend.__hash = hash2;
16357
16362
  }
16358
16363
  extendStackRegistry[hash2] = stack;
@@ -16378,9 +16383,9 @@ var require_extendUtils = __commonJS({
16378
16383
  var flattenExtend = (extend, stack, context) => {
16379
16384
  if (!extend)
16380
16385
  return stack;
16381
- if ((0, import_utils25.isArray)(extend))
16386
+ if ((0, import_utils24.isArray)(extend))
16382
16387
  return extractArrayExtend(extend, stack, context);
16383
- if ((0, import_utils25.isString)(extend))
16388
+ if ((0, import_utils24.isString)(extend))
16384
16389
  extend = fallbackStringExtend(extend, context);
16385
16390
  stack.push(extend);
16386
16391
  if (extend.extend)
@@ -16395,14 +16400,14 @@ var require_extendUtils = __commonJS({
16395
16400
  const extendProp = extend[e];
16396
16401
  if (elementProp === void 0) {
16397
16402
  element[e] = extendProp;
16398
- } else if ((0, import_utils25.isObject)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
16403
+ } else if ((0, import_utils24.isObject)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
16399
16404
  deepMergeExtend(elementProp, extendProp);
16400
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isArray)(extendProp)) {
16405
+ } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isArray)(extendProp)) {
16401
16406
  element[e] = elementProp.concat(extendProp);
16402
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
16407
+ } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
16403
16408
  const obj = deepMergeExtend({}, elementProp);
16404
16409
  element[e] = deepMergeExtend(obj, extendProp);
16405
- } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
16410
+ } else if (elementProp === void 0 && (0, import_utils24.isFunction)(extendProp)) {
16406
16411
  element[e] = extendProp;
16407
16412
  }
16408
16413
  }
@@ -16410,13 +16415,13 @@ var require_extendUtils = __commonJS({
16410
16415
  };
16411
16416
  var cloneAndMergeArrayExtend = (stack) => {
16412
16417
  return stack.reduce((a, c) => {
16413
- return deepMergeExtend(a, (0, import_utils25.deepClone)(c));
16418
+ return deepMergeExtend(a, (0, import_utils24.deepClone)(c));
16414
16419
  }, {});
16415
16420
  };
16416
16421
  var fallbackStringExtend = (extend, context, options = {}) => {
16417
16422
  const COMPONENTS = context && context.components || options.components;
16418
16423
  const PAGES = context && context.pages || options.pages;
16419
- if ((0, import_utils25.isString)(extend)) {
16424
+ if ((0, import_utils24.isString)(extend)) {
16420
16425
  const componentExists = COMPONENTS && (COMPONENTS[extend] || COMPONENTS["smbls." + extend]);
16421
16426
  const pageExists = PAGES && extend.startsWith("/") && PAGES[extend];
16422
16427
  if (componentExists)
@@ -16476,30 +16481,30 @@ var require_extend = __commonJS({
16476
16481
  applyExtend: () => applyExtend
16477
16482
  });
16478
16483
  module2.exports = __toCommonJS2(extend_exports);
16479
- var import_utils25 = require_cjs();
16480
- var import_utils26 = require_utils();
16484
+ var import_utils24 = require_cjs();
16485
+ var import_utils25 = require_utils();
16481
16486
  var ENV3 = "development";
16482
16487
  var mainExtend;
16483
16488
  var applyExtend = (element, parent, options = {}) => {
16484
- if ((0, import_utils25.isFunction)(element))
16485
- element = (0, import_utils25.exec)(element, parent);
16489
+ if ((0, import_utils24.isFunction)(element))
16490
+ element = (0, import_utils24.exec)(element, parent);
16486
16491
  const { props: props4, __ref } = element;
16487
16492
  let extend = (props4 == null ? void 0 : props4.extends) || element.extends || element.extend;
16488
16493
  const context = element.context || parent.context;
16489
- extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
16490
- const extendStack = (0, import_utils26.getExtendStack)(extend, context);
16494
+ extend = (0, import_utils25.fallbackStringExtend)(extend, context, options);
16495
+ const extendStack = (0, import_utils25.getExtendStack)(extend, context);
16491
16496
  if (ENV3 !== "test" || ENV3 !== "development")
16492
16497
  delete element.extend;
16493
16498
  let childExtendStack = [];
16494
16499
  if (parent) {
16495
16500
  element.parent = parent;
16496
16501
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
16497
- childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend, context);
16502
+ childExtendStack = (0, import_utils25.getExtendStack)(parent.childExtend, context);
16498
16503
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
16499
16504
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
16500
16505
  const canExtendRecursive = element.key !== "__text";
16501
16506
  if (canExtendRecursive) {
16502
- const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive, context);
16507
+ const childExtendRecursiveStack = (0, import_utils25.getExtendStack)(parent.childExtendRecursive, context);
16503
16508
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
16504
16509
  element.childExtendRecursive = parent.childExtendRecursive;
16505
16510
  }
@@ -16510,7 +16515,7 @@ var require_extend = __commonJS({
16510
16515
  const childExtendLength = childExtendStack.length;
16511
16516
  let stack = [];
16512
16517
  if (extendLength && childExtendLength) {
16513
- stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
16518
+ stack = (0, import_utils25.jointStacks)(extendStack, childExtendStack);
16514
16519
  } else if (extendLength) {
16515
16520
  stack = extendStack;
16516
16521
  } else if (childExtendLength) {
@@ -16519,22 +16524,22 @@ var require_extend = __commonJS({
16519
16524
  return element;
16520
16525
  if (context.defaultExtends) {
16521
16526
  if (!mainExtend) {
16522
- const defaultOptionsExtend = (0, import_utils26.getExtendStack)(context.defaultExtends, context);
16523
- mainExtend = (0, import_utils26.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16527
+ const defaultOptionsExtend = (0, import_utils25.getExtendStack)(context.defaultExtends, context);
16528
+ mainExtend = (0, import_utils25.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16524
16529
  delete mainExtend.extend;
16525
16530
  }
16526
16531
  stack = [].concat(stack, mainExtend);
16527
16532
  }
16528
16533
  if (__ref)
16529
16534
  __ref.__extend = stack;
16530
- let mergedExtend = (0, import_utils26.cloneAndMergeArrayExtend)(stack);
16535
+ let mergedExtend = (0, import_utils25.cloneAndMergeArrayExtend)(stack);
16531
16536
  const COMPONENTS = context && context.components || options.components;
16532
- const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
16537
+ const component = (0, import_utils24.exec)(element.component || mergedExtend.component, element);
16533
16538
  if (component && COMPONENTS && COMPONENTS[component]) {
16534
- const componentExtend = (0, import_utils26.cloneAndMergeArrayExtend)((0, import_utils26.getExtendStack)(COMPONENTS[component]));
16535
- mergedExtend = (0, import_utils26.deepMergeExtend)(componentExtend, mergedExtend);
16539
+ const componentExtend = (0, import_utils25.cloneAndMergeArrayExtend)((0, import_utils25.getExtendStack)(COMPONENTS[component]));
16540
+ mergedExtend = (0, import_utils25.deepMergeExtend)(componentExtend, mergedExtend);
16536
16541
  }
16537
- const merged = (0, import_utils26.deepMergeExtend)(element, mergedExtend);
16542
+ const merged = (0, import_utils25.deepMergeExtend)(element, mergedExtend);
16538
16543
  return merged;
16539
16544
  };
16540
16545
  }
@@ -16568,7 +16573,7 @@ var require_component2 = __commonJS({
16568
16573
  overwriteVariant: () => overwriteVariant
16569
16574
  });
16570
16575
  module2.exports = __toCommonJS2(component_exports);
16571
- var import_utils25 = require_cjs();
16576
+ var import_utils24 = require_cjs();
16572
16577
  var import_extend = require_extend();
16573
16578
  var import_mixins = require_mixins();
16574
16579
  var replaceOnKeys = (key) => key.replace(/on\w+/g, (match2) => match2.substring(2));
@@ -16589,7 +16594,7 @@ var require_component2 = __commonJS({
16589
16594
  if (isDefine) {
16590
16595
  newElem.define[k] = prop;
16591
16596
  }
16592
- const isComponent = (0, import_utils25.checkIfKeyIsComponent)(k);
16597
+ const isComponent = (0, import_utils24.checkIfKeyIsComponent)(k);
16593
16598
  const isRegistry = import_mixins.REGISTRY[k];
16594
16599
  if (isComponent || isRegistry) {
16595
16600
  newElem[k] = prop;
@@ -16603,25 +16608,25 @@ var require_component2 = __commonJS({
16603
16608
  let variantElement = element[variant];
16604
16609
  if (!variantElement)
16605
16610
  return;
16606
- const props4 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
16607
- if ((0, import_utils25.isString)(variantElement)) {
16611
+ const props4 = (0, import_utils24.isObject)(variantProps) ? variantProps : {};
16612
+ if ((0, import_utils24.isString)(variantElement)) {
16608
16613
  variantElement = {
16609
16614
  extend: [{ props: props4 }, variantElement]
16610
16615
  };
16611
16616
  } else if (variantElement.extend) {
16612
- variantElement = (0, import_utils25.addAdditionalExtend)({ props: props4 }, variantElement);
16617
+ variantElement = (0, import_utils24.addAdditionalExtend)({ props: props4 }, variantElement);
16613
16618
  }
16614
16619
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
16615
16620
  const { parent, ...rest } = extendedVariant;
16616
- return (0, import_utils25.overwriteDeep)(element, rest);
16621
+ return (0, import_utils24.overwriteDeep)(element, rest);
16617
16622
  };
16618
16623
  var applyVariant = (element) => {
16619
16624
  const { props: props4 } = element;
16620
- if (!(0, import_utils25.hasVariantProp)(element))
16625
+ if (!(0, import_utils24.hasVariantProp)(element))
16621
16626
  return element;
16622
16627
  const { variant } = props4;
16623
16628
  overwriteVariant(element, `.${variant}`);
16624
- const elKeys = Object.keys(element).filter((key) => (0, import_utils25.isVariant)(key));
16629
+ const elKeys = Object.keys(element).filter((key) => (0, import_utils24.isVariant)(key));
16625
16630
  elKeys.forEach((variant2) => {
16626
16631
  const slicedVariantElementKey = variant2.slice(1);
16627
16632
  const variantElementProps = props4[slicedVariantElementKey];
@@ -16686,20 +16691,20 @@ var require_attr = __commonJS({
16686
16691
  default: () => attr_default
16687
16692
  });
16688
16693
  module2.exports = __toCommonJS2(attr_exports);
16689
- var import_utils25 = require_cjs();
16694
+ var import_utils24 = require_cjs();
16690
16695
  var import_report = require_cjs4();
16691
- var import_utils26 = require_utils();
16696
+ var import_utils25 = require_utils();
16692
16697
  function attr(params, element, node2) {
16693
16698
  const { __ref: ref, props: props4 } = element;
16694
16699
  const { __attr } = ref;
16695
- if ((0, import_utils25.isNot)("object"))
16700
+ if ((0, import_utils24.isNot)("object"))
16696
16701
  (0, import_report.report)("HTMLInvalidAttr", params);
16697
16702
  if (params) {
16698
16703
  if (props4.attr)
16699
- (0, import_utils26.deepMerge)(params, props4.attr);
16704
+ (0, import_utils25.deepMerge)(params, props4.attr);
16700
16705
  for (const attr2 in params) {
16701
- const val = (0, import_utils25.exec)(params[attr2], element);
16702
- if (val !== false && !(0, import_utils25.isUndefined)(val) && !(0, import_utils25.isNull)(val) && node2.setAttribute)
16706
+ const val = (0, import_utils24.exec)(params[attr2], element);
16707
+ if (val !== false && !(0, import_utils24.isUndefined)(val) && !(0, import_utils24.isNull)(val) && node2.setAttribute)
16703
16708
  node2.setAttribute(attr2, val);
16704
16709
  else if (node2.removeAttribute)
16705
16710
  node2.removeAttribute(attr2);
@@ -16742,7 +16747,7 @@ var require_classList = __commonJS({
16742
16747
  default: () => classList_default
16743
16748
  });
16744
16749
  module2.exports = __toCommonJS2(classList_exports);
16745
- var import_utils25 = require_cjs();
16750
+ var import_utils24 = require_cjs();
16746
16751
  var assignKeyAsClassname = (element) => {
16747
16752
  const { key } = element;
16748
16753
  if (element.class === true)
@@ -16760,7 +16765,7 @@ var require_classList = __commonJS({
16760
16765
  else if (typeof param === "string")
16761
16766
  className += ` ${param}`;
16762
16767
  else if (typeof param === "function") {
16763
- className += ` ${(0, import_utils25.exec)(param, element)}`;
16768
+ className += ` ${(0, import_utils24.exec)(param, element)}`;
16764
16769
  }
16765
16770
  }
16766
16771
  return className;
@@ -16771,9 +16776,9 @@ var require_classList = __commonJS({
16771
16776
  const { key } = element;
16772
16777
  if (params === true)
16773
16778
  params = element.class = { key };
16774
- if ((0, import_utils25.isString)(params))
16779
+ if ((0, import_utils24.isString)(params))
16775
16780
  params = element.class = { default: params };
16776
- if ((0, import_utils25.isObject)(params))
16781
+ if ((0, import_utils24.isObject)(params))
16777
16782
  params = classify2(params, element);
16778
16783
  const className = params.replace(/\s+/g, " ").trim();
16779
16784
  if (element.ref)
@@ -16853,7 +16858,7 @@ var require_set = __commonJS({
16853
16858
  set: () => set3
16854
16859
  });
16855
16860
  module2.exports = __toCommonJS2(set_exports);
16856
- var import_utils25 = require_cjs();
16861
+ var import_utils24 = require_cjs();
16857
16862
  var import_options3 = require_options();
16858
16863
  var import_create = require_create4();
16859
16864
  var import_mixins = require_mixins();
@@ -16883,13 +16888,13 @@ var require_set = __commonJS({
16883
16888
  var _a;
16884
16889
  const element = el || this;
16885
16890
  const { __ref: ref } = element;
16886
- const content = (0, import_utils25.setContentKey)(element, options);
16891
+ const content = (0, import_utils24.setContentKey)(element, options);
16887
16892
  const __contentRef = content && content.__ref;
16888
16893
  const lazyLoad = element.props && element.props.lazyLoad;
16889
16894
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
16890
16895
  if (options.preventContentUpdate === true && !hasCollection)
16891
16896
  return;
16892
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils25.deepContains)(params, content)) {
16897
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils24.deepContains)(params, content)) {
16893
16898
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
16894
16899
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
16895
16900
  if (beforeUpdateReturns === false)
@@ -16950,7 +16955,7 @@ var require_content = __commonJS({
16950
16955
  updateContent: () => updateContent
16951
16956
  });
16952
16957
  module2.exports = __toCommonJS2(content_exports);
16953
- var import_utils25 = require_cjs();
16958
+ var import_utils24 = require_cjs();
16954
16959
  var import_set = require_set();
16955
16960
  var updateContent = function(params, options) {
16956
16961
  const element = this;
@@ -16964,7 +16969,7 @@ var require_content = __commonJS({
16964
16969
  var removeContent = function(el, opts = {}) {
16965
16970
  const element = el || this;
16966
16971
  const { __ref: ref } = element;
16967
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
16972
+ const contentElementKey = (0, import_utils24.setContentKey)(element, opts);
16968
16973
  if (opts.contentElementKey !== "content")
16969
16974
  opts.contentElementKey = "content";
16970
16975
  if (element[contentElementKey]) {
@@ -16981,14 +16986,14 @@ var require_content = __commonJS({
16981
16986
  if (__cached && __cached[contentElementKey]) {
16982
16987
  if (__cached[contentElementKey].tag === "fragment")
16983
16988
  __cached[contentElementKey].parent.node.innerHTML = "";
16984
- else if (__cached[contentElementKey] && (0, import_utils25.isFunction)(__cached[contentElementKey].remove))
16989
+ else if (__cached[contentElementKey] && (0, import_utils24.isFunction)(__cached[contentElementKey].remove))
16985
16990
  __cached[contentElementKey].remove();
16986
16991
  }
16987
16992
  delete element[contentElementKey];
16988
16993
  }
16989
16994
  };
16990
16995
  function setContent(param, element, node2, opts) {
16991
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
16996
+ const contentElementKey = (0, import_utils24.setContentKey)(element, opts);
16992
16997
  if (param && element) {
16993
16998
  if (element[contentElementKey].update) {
16994
16999
  element[contentElementKey].update({}, opts);
@@ -17028,18 +17033,18 @@ var require_data = __commonJS({
17028
17033
  default: () => data_default
17029
17034
  });
17030
17035
  module2.exports = __toCommonJS2(data_exports);
17031
- var import_utils25 = require_cjs();
17036
+ var import_utils24 = require_cjs();
17032
17037
  var import_report = require_cjs4();
17033
17038
  function data(params, element, node2) {
17034
17039
  if (params) {
17035
17040
  if (element.props.data)
17036
- (0, import_utils25.deepMerge)(params, element.props.data);
17041
+ (0, import_utils24.deepMerge)(params, element.props.data);
17037
17042
  if (params.showOnNode) {
17038
- if (!(0, import_utils25.isObject)(params))
17043
+ if (!(0, import_utils24.isObject)(params))
17039
17044
  (0, import_report.report)("HTMLInvalidData", params);
17040
17045
  for (const dataset in params) {
17041
17046
  if (dataset !== "showOnNode") {
17042
- node2.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
17047
+ node2.dataset[dataset] = (0, import_utils24.exec)(params[dataset], element);
17043
17048
  }
17044
17049
  }
17045
17050
  }
@@ -17076,10 +17081,10 @@ var require_html = __commonJS({
17076
17081
  html: () => html
17077
17082
  });
17078
17083
  module2.exports = __toCommonJS2(html_exports);
17079
- var import_utils25 = require_cjs();
17084
+ var import_utils24 = require_cjs();
17080
17085
  function html(param, element, node2) {
17081
17086
  var _a;
17082
- const prop = (0, import_utils25.exec)(param, element) || (0, import_utils25.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
17087
+ const prop = (0, import_utils24.exec)(param, element) || (0, import_utils24.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
17083
17088
  const { __ref } = element;
17084
17089
  if (prop !== __ref.__html) {
17085
17090
  if (node2.nodeName === "SVG")
@@ -17120,12 +17125,12 @@ var require_style = __commonJS({
17120
17125
  style: () => style2
17121
17126
  });
17122
17127
  module2.exports = __toCommonJS2(style_exports);
17123
- var import_utils25 = require_cjs();
17128
+ var import_utils24 = require_cjs();
17124
17129
  var import_report = require_cjs4();
17125
17130
  function style2(params, element, node2) {
17126
17131
  if (params) {
17127
- if ((0, import_utils25.isObject)(params))
17128
- (0, import_utils25.map)(node2.style, params, element);
17132
+ if ((0, import_utils24.isObject)(params))
17133
+ (0, import_utils24.map)(node2.style, params, element);
17129
17134
  else
17130
17135
  (0, import_report.report)("HTMLInvalidStyles", params);
17131
17136
  }
@@ -17162,11 +17167,11 @@ var require_text = __commonJS({
17162
17167
  });
17163
17168
  module2.exports = __toCommonJS2(text_exports);
17164
17169
  var import_create = require_create4();
17165
- var import_utils25 = require_cjs();
17170
+ var import_utils24 = require_cjs();
17166
17171
  function text(param, element, node2) {
17167
- let prop = (0, import_utils25.exec)(param, element);
17168
- if ((0, import_utils25.isString)(prop) && prop.includes("{{")) {
17169
- prop = (0, import_utils25.replaceLiteralsWithObjectFields)(prop, element.state);
17172
+ let prop = (0, import_utils24.exec)(param, element);
17173
+ if ((0, import_utils24.isString)(prop) && prop.includes("{{")) {
17174
+ prop = element.call("replaceLiteralsWithObjectFields", prop);
17170
17175
  }
17171
17176
  if (element.tag === "string") {
17172
17177
  node2.nodeValue = prop;
@@ -17213,10 +17218,10 @@ var require_state = __commonJS({
17213
17218
  });
17214
17219
  module2.exports = __toCommonJS2(state_exports);
17215
17220
  var import_state2 = require_cjs7();
17216
- var import_utils25 = require_cjs();
17221
+ var import_utils24 = require_cjs();
17217
17222
  function state(params, element, node2) {
17218
- const state2 = (0, import_utils25.exec)(params, element);
17219
- if ((0, import_utils25.isObject)(state2)) {
17223
+ const state2 = (0, import_utils24.exec)(params, element);
17224
+ if ((0, import_utils24.isObject)(state2)) {
17220
17225
  for (const param in state2) {
17221
17226
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
17222
17227
  continue;
@@ -17257,13 +17262,13 @@ var require_scope = __commonJS({
17257
17262
  scope: () => scope
17258
17263
  });
17259
17264
  module2.exports = __toCommonJS2(scope_exports);
17260
- var import_utils25 = require_cjs();
17265
+ var import_utils24 = require_cjs();
17261
17266
  function scope(params, element, node2) {
17262
- if (!(0, import_utils25.isObject)(params))
17267
+ if (!(0, import_utils24.isObject)(params))
17263
17268
  return;
17264
17269
  for (const scopeItem in params) {
17265
17270
  const value2 = params[scopeItem];
17266
- if ((0, import_utils25.isFunction)(value2)) {
17271
+ if ((0, import_utils24.isFunction)(value2)) {
17267
17272
  element.scope[scopeItem] = value2.bind(element);
17268
17273
  } else {
17269
17274
  element.scope[scopeItem] = value2;
@@ -17492,7 +17497,7 @@ var require_methods2 = __commonJS({
17492
17497
  warn: () => warn
17493
17498
  });
17494
17499
  module2.exports = __toCommonJS2(methods_exports);
17495
- var import_utils25 = require_cjs();
17500
+ var import_utils24 = require_cjs();
17496
17501
  var import_tree = require_tree();
17497
17502
  var import_mixins = require_mixins();
17498
17503
  var ENV3 = "development";
@@ -17515,7 +17520,7 @@ var require_methods2 = __commonJS({
17515
17520
  function lookup3(param) {
17516
17521
  const el = this;
17517
17522
  let { parent } = el;
17518
- if ((0, import_utils25.isFunction)(param)) {
17523
+ if ((0, import_utils24.isFunction)(param)) {
17519
17524
  if (parent.state && param(parent, parent.state, parent.context))
17520
17525
  return parent;
17521
17526
  else if (parent.parent)
@@ -17544,7 +17549,7 @@ var require_methods2 = __commonJS({
17544
17549
  const childElem = el[v];
17545
17550
  if (v === param)
17546
17551
  return childElem;
17547
- else if ((0, import_utils25.isFunction)(param)) {
17552
+ else if ((0, import_utils24.isFunction)(param)) {
17548
17553
  const exec6 = param(childElem, childElem.state, childElem.context);
17549
17554
  if (childElem.state && exec6) {
17550
17555
  return childElem;
@@ -17565,7 +17570,7 @@ var require_methods2 = __commonJS({
17565
17570
  const childElem = el[v];
17566
17571
  if (v === param)
17567
17572
  results.push(childElem);
17568
- else if ((0, import_utils25.isFunction)(param)) {
17573
+ else if ((0, import_utils24.isFunction)(param)) {
17569
17574
  const exec6 = param(childElem, childElem.state, childElem.context);
17570
17575
  if (childElem.state && exec6)
17571
17576
  results.push(childElem);
@@ -17582,7 +17587,7 @@ var require_methods2 = __commonJS({
17582
17587
  for (const param in params) {
17583
17588
  const value2 = params[param];
17584
17589
  const childElem = el[param];
17585
- if ((0, import_utils25.isObject)(value2) && childElem)
17590
+ if ((0, import_utils24.isObject)(value2) && childElem)
17586
17591
  setNodeStyles.call(childElem, value2);
17587
17592
  else
17588
17593
  el.node.style[param] = value2;
@@ -17591,15 +17596,15 @@ var require_methods2 = __commonJS({
17591
17596
  }
17592
17597
  function remove() {
17593
17598
  const element = this;
17594
- if ((0, import_utils25.isFunction)(element.node.remove))
17599
+ if ((0, import_utils24.isFunction)(element.node.remove))
17595
17600
  element.node.remove();
17596
- else if (!(0, import_utils25.isProduction)()) {
17601
+ else if (!(0, import_utils24.isProduction)()) {
17597
17602
  console.warn("This item cant be removed");
17598
17603
  element.log();
17599
17604
  }
17600
17605
  delete element.parent[element.key];
17601
17606
  if (element.parent.__ref)
17602
- element.parent.__ref.__children = (0, import_utils25.removeValueFromArray)(element.parent.__ref.__children, element.key);
17607
+ element.parent.__ref.__children = (0, import_utils24.removeValueFromArray)(element.parent.__ref.__children, element.key);
17603
17608
  }
17604
17609
  function get(param) {
17605
17610
  const element = this;
@@ -17641,8 +17646,8 @@ var require_methods2 = __commonJS({
17641
17646
  if (v === "state") {
17642
17647
  if (element.__ref && !element.__ref.__hasRootState)
17643
17648
  return;
17644
- const parsedVal = (0, import_utils25.isFunction)(val && val.parse) ? val.parse() : val;
17645
- obj[v] = (0, import_utils25.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17649
+ const parsedVal = (0, import_utils24.isFunction)(val && val.parse) ? val.parse() : val;
17650
+ obj[v] = (0, import_utils24.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17646
17651
  } else if (v === "scope") {
17647
17652
  if (element.__ref && !element.__ref.__hasRootScope)
17648
17653
  return;
@@ -17650,7 +17655,7 @@ var require_methods2 = __commonJS({
17650
17655
  } else if (v === "props") {
17651
17656
  const { __element, update, ...props4 } = element[v];
17652
17657
  obj[v] = props4;
17653
- } else if ((0, import_utils25.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17658
+ } else if ((0, import_utils24.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17654
17659
  obj[v] = val;
17655
17660
  });
17656
17661
  return obj;
@@ -17661,7 +17666,7 @@ var require_methods2 = __commonJS({
17661
17666
  for (const v in obj) {
17662
17667
  if (excl.includes(v))
17663
17668
  return;
17664
- if ((0, import_utils25.isObjectLike)(obj[v])) {
17669
+ if ((0, import_utils24.isObjectLike)(obj[v])) {
17665
17670
  obj[v] = parseDeep.call(obj[v], excl);
17666
17671
  }
17667
17672
  }
@@ -17741,7 +17746,7 @@ var require_methods2 = __commonJS({
17741
17746
  changed: (cb) => {
17742
17747
  if (!changed)
17743
17748
  return;
17744
- const returns = cb(changes, (0, import_utils25.deepClone)(varCaches));
17749
+ const returns = cb(changes, (0, import_utils24.deepClone)(varCaches));
17745
17750
  for (const key in changes) {
17746
17751
  varCaches[key] = changes[key];
17747
17752
  }
@@ -17821,8 +17826,8 @@ var require_iterate = __commonJS({
17821
17826
  throughUpdatedExec: () => throughUpdatedExec
17822
17827
  });
17823
17828
  module2.exports = __toCommonJS2(iterate_exports);
17824
- var import_utils25 = require_cjs();
17825
- var import_utils26 = require_utils();
17829
+ var import_utils24 = require_cjs();
17830
+ var import_utils25 = require_utils();
17826
17831
  var import_methods = require_methods2();
17827
17832
  var throughInitialExec = (element, exclude = {}) => {
17828
17833
  const { __ref: ref } = element;
@@ -17830,13 +17835,13 @@ var require_iterate = __commonJS({
17830
17835
  if (exclude[param])
17831
17836
  continue;
17832
17837
  const prop = element[param];
17833
- if ((0, import_utils25.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils25.isVariant)(param)) {
17838
+ if ((0, import_utils24.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils24.isVariant)(param)) {
17834
17839
  ref.__exec[param] = prop;
17835
17840
  element[param] = prop(element, element.state, element.context);
17836
17841
  }
17837
17842
  }
17838
17843
  };
17839
- var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
17844
+ var throughUpdatedExec = (element, options = { excludes: import_utils25.METHODS_EXL }) => {
17840
17845
  const { __ref: ref } = element;
17841
17846
  const changes = {};
17842
17847
  for (const param in ref.__exec) {
@@ -17845,13 +17850,13 @@ var require_iterate = __commonJS({
17845
17850
  if (isDefinedParam)
17846
17851
  continue;
17847
17852
  const newExec = ref.__exec[param](element, element.state, element.context);
17848
- const execReturnsString = (0, import_utils25.isString)(newExec) || (0, import_utils25.isNumber)(newExec);
17853
+ const execReturnsString = (0, import_utils24.isString)(newExec) || (0, import_utils24.isNumber)(newExec);
17849
17854
  if (prop && prop.node && execReturnsString) {
17850
- (0, import_utils26.overwrite)(prop, { text: newExec }, options);
17855
+ (0, import_utils25.overwrite)(prop, { text: newExec }, options);
17851
17856
  } else if (newExec !== prop) {
17852
- if ((0, import_utils25.checkIfKeyIsComponent)(param)) {
17853
- const { extend, ...newElem } = (0, import_utils25.extendizeByKey)(newExec, element, param);
17854
- (0, import_utils26.overwrite)(prop, newElem, options);
17857
+ if ((0, import_utils24.checkIfKeyIsComponent)(param)) {
17858
+ const { extend, ...newElem } = (0, import_utils24.extendizeByKey)(newExec, element, param);
17859
+ (0, import_utils25.overwrite)(prop, newElem, options);
17855
17860
  } else {
17856
17861
  ref.__cached[param] = changes[param] = prop;
17857
17862
  element[param] = newExec;
@@ -17866,27 +17871,27 @@ var require_iterate = __commonJS({
17866
17871
  for (const k in props4) {
17867
17872
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
17868
17873
  const cachedExecProp = ref.__execProps[k];
17869
- if ((0, import_utils25.isFunction)(cachedExecProp)) {
17870
- props4[k] = (0, import_utils25.exec)(cachedExecProp, element);
17871
- } else if (isDefine && (0, import_utils25.isFunction)(props4[k])) {
17874
+ if ((0, import_utils24.isFunction)(cachedExecProp)) {
17875
+ props4[k] = (0, import_utils24.exec)(cachedExecProp, element);
17876
+ } else if (isDefine && (0, import_utils24.isFunction)(props4[k])) {
17872
17877
  ref.__execProps[k] = props4[k];
17873
- props4[k] = (0, import_utils25.exec)(props4[k], element);
17878
+ props4[k] = (0, import_utils24.exec)(props4[k], element);
17874
17879
  }
17875
17880
  }
17876
17881
  };
17877
17882
  var throughInitialDefine = (element) => {
17878
17883
  const { define, context, __ref: ref } = element;
17879
17884
  let defineObj = {};
17880
- const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
17881
- if ((0, import_utils25.isObject)(define))
17885
+ const hasGlobalDefine = context && (0, import_utils24.isObject)(context.define);
17886
+ if ((0, import_utils24.isObject)(define))
17882
17887
  defineObj = { ...define };
17883
17888
  if (hasGlobalDefine)
17884
17889
  defineObj = { ...defineObj, ...context.define };
17885
17890
  for (const param in defineObj) {
17886
17891
  let elementProp = element[param];
17887
- if ((0, import_utils25.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils25.isVariant)(param)) {
17892
+ if ((0, import_utils24.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils24.isVariant)(param)) {
17888
17893
  ref.__exec[param] = elementProp;
17889
- const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
17894
+ const execParam2 = elementProp = (0, import_utils24.exec)(elementProp, element);
17890
17895
  if (execParam2) {
17891
17896
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
17892
17897
  ref.__defineCache[param] = elementProp;
@@ -17902,15 +17907,15 @@ var require_iterate = __commonJS({
17902
17907
  const { context, define, __ref: ref } = element;
17903
17908
  const changes = {};
17904
17909
  let obj = {};
17905
- if ((0, import_utils25.isObject)(define))
17910
+ if ((0, import_utils24.isObject)(define))
17906
17911
  obj = { ...define };
17907
- if ((0, import_utils25.isObject)(context && context.define))
17912
+ if ((0, import_utils24.isObject)(context && context.define))
17908
17913
  obj = { ...obj, ...context.define };
17909
17914
  for (const param in obj) {
17910
17915
  const execParam = ref.__exec[param];
17911
17916
  if (execParam)
17912
17917
  ref.__defineCache[param] = execParam(element, element.state, element.context);
17913
- const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
17918
+ const cached = (0, import_utils24.exec)(ref.__defineCache[param], element);
17914
17919
  const newExecParam = obj[param](cached, element, element.state, element.context);
17915
17920
  if (newExecParam)
17916
17921
  element[param] = newExecParam;
@@ -17946,7 +17951,7 @@ var require_applyParam = __commonJS({
17946
17951
  applyParam: () => applyParam
17947
17952
  });
17948
17953
  module2.exports = __toCommonJS2(applyParam_exports);
17949
- var import_utils25 = require_cjs();
17954
+ var import_utils24 = require_cjs();
17950
17955
  var import_mixins = require_mixins();
17951
17956
  var applyParam = (param, element, options) => {
17952
17957
  const { node: node2, context, __ref: ref } = element;
@@ -17961,7 +17966,7 @@ var require_applyParam = __commonJS({
17961
17966
  return;
17962
17967
  const hasOnlyUpdate = onlyUpdate ? onlyUpdate === param || element.lookup(onlyUpdate) : true;
17963
17968
  if (isGlobalTransformer && !hasContextDefine && hasOnlyUpdate) {
17964
- if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
17969
+ if ((0, import_utils24.isFunction)(isGlobalTransformer)) {
17965
17970
  isGlobalTransformer(prop, element, node2, options);
17966
17971
  return;
17967
17972
  }
@@ -17997,15 +18002,15 @@ var require_propEvents = __commonJS({
17997
18002
  propagateEventsFromProps: () => propagateEventsFromProps
17998
18003
  });
17999
18004
  module2.exports = __toCommonJS2(propEvents_exports);
18000
- var import_utils25 = require_cjs();
18005
+ var import_utils24 = require_cjs();
18001
18006
  var propagateEventsFromProps = (element) => {
18002
18007
  const { props: props4, on: on2 } = element;
18003
18008
  const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
18004
18009
  eventKeysFromProps.forEach((v) => {
18005
- const eventName = (0, import_utils25.lowercaseFirstLetter)(v.split("on")[1]);
18010
+ const eventName = (0, import_utils24.lowercaseFirstLetter)(v.split("on")[1]);
18006
18011
  const origEvent = on2[eventName];
18007
18012
  const funcFromProps = props4[v];
18008
- if ((0, import_utils25.isFunction)(origEvent)) {
18013
+ if ((0, import_utils24.isFunction)(origEvent)) {
18009
18014
  on2[eventName] = (...args) => {
18010
18015
  const originalEventRetunrs = origEvent(...args);
18011
18016
  if (originalEventRetunrs !== false)
@@ -18055,7 +18060,7 @@ var require_node2 = __commonJS({
18055
18060
  default: () => node_default
18056
18061
  });
18057
18062
  module2.exports = __toCommonJS2(node_exports);
18058
- var import_utils25 = require_cjs();
18063
+ var import_utils24 = require_cjs();
18059
18064
  var import_event = require_cjs5();
18060
18065
  var import_render = require_cjs10();
18061
18066
  var import_methods = require_methods2();
@@ -18080,7 +18085,7 @@ var require_node2 = __commonJS({
18080
18085
  }
18081
18086
  if (ENV3 === "test" || ENV3 === "development" || options.alowRefReference) {
18082
18087
  node2.ref = element;
18083
- if ((0, import_utils25.isFunction)(node2.setAttribute))
18088
+ if ((0, import_utils24.isFunction)(node2.setAttribute))
18084
18089
  node2.setAttribute("key", element.key);
18085
18090
  }
18086
18091
  (0, import_iterate.throughExecProps)(element);
@@ -18089,7 +18094,7 @@ var require_node2 = __commonJS({
18089
18094
  if (element.tag !== "string" && element.tag !== "fragment") {
18090
18095
  (0, import_propEvents.propagateEventsFromProps)(element);
18091
18096
  (0, import_event.applyAnimationFrame)(element, options);
18092
- if (isNewNode && (0, import_utils25.isObject)(element.on)) {
18097
+ if (isNewNode && (0, import_utils24.isObject)(element.on)) {
18093
18098
  (0, import_event.applyEventsOnNode)(element, options);
18094
18099
  }
18095
18100
  }
@@ -18097,14 +18102,14 @@ var require_node2 = __commonJS({
18097
18102
  const value2 = element[param];
18098
18103
  if (!Object.hasOwnProperty.call(element, param))
18099
18104
  continue;
18100
- if ((0, import_utils25.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils25.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.REGISTRY[param]))
18105
+ if ((0, import_utils24.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils24.isVariant)(param) || (0, import_utils24.isObject)(import_mixins.REGISTRY[param]))
18101
18106
  continue;
18102
18107
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
18103
18108
  if (isElement) {
18104
18109
  const { hasDefine, hasContextDefine } = isElement;
18105
18110
  if (element[param] && !hasDefine && !hasContextDefine) {
18106
18111
  const createAsync2 = () => {
18107
- (0, import_create.default)((0, import_utils25.exec)(value2, element), element, param, options);
18112
+ (0, import_create.default)((0, import_utils24.exec)(value2, element), element, param, options);
18108
18113
  };
18109
18114
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
18110
18115
  window.requestAnimationFrame(() => createAsync2());
@@ -18146,7 +18151,7 @@ var require_update2 = __commonJS({
18146
18151
  update: () => update
18147
18152
  });
18148
18153
  module2.exports = __toCommonJS2(update_exports);
18149
- var import_utils25 = require_cjs();
18154
+ var import_utils24 = require_cjs();
18150
18155
  var import_event = require_cjs5();
18151
18156
  var import_methods = require_methods2();
18152
18157
  var import_props = require_props();
@@ -18156,9 +18161,9 @@ var require_update2 = __commonJS({
18156
18161
  var import_mixins = require_mixins();
18157
18162
  var import_applyParam = require_applyParam();
18158
18163
  var import_options3 = require_options();
18159
- var import_utils26 = require_utils();
18164
+ var import_utils25 = require_utils();
18160
18165
  var snapshot = {
18161
- snapshotId: import_utils25.createSnapshotId
18166
+ snapshotId: import_utils24.createSnapshotId
18162
18167
  };
18163
18168
  var UPDATE_DEFAULT_OPTIONS = {
18164
18169
  stackChanges: false,
@@ -18166,11 +18171,11 @@ var require_update2 = __commonJS({
18166
18171
  preventRecursive: false,
18167
18172
  currentSnapshot: false,
18168
18173
  calleeElement: false,
18169
- excludes: import_utils26.METHODS_EXL
18174
+ excludes: import_utils25.METHODS_EXL
18170
18175
  };
18171
18176
  var update = function(params = {}, opts) {
18172
18177
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
18173
- const options = (0, import_utils25.deepClone)((0, import_utils25.isObject)(opts) ? (0, import_utils26.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18178
+ const options = (0, import_utils24.deepClone)((0, import_utils24.isObject)(opts) ? (0, import_utils25.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18174
18179
  options.calleeElement = calleeElementCache;
18175
18180
  const element = this;
18176
18181
  const { parent, node: node2, key } = element;
@@ -18186,8 +18191,8 @@ var require_update2 = __commonJS({
18186
18191
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
18187
18192
  return;
18188
18193
  if (!excludes)
18189
- (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
18190
- if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
18194
+ (0, import_utils24.merge)(options, UPDATE_DEFAULT_OPTIONS);
18195
+ if ((0, import_utils24.isString)(params) || (0, import_utils24.isNumber)(params)) {
18191
18196
  params = { text: params };
18192
18197
  }
18193
18198
  const inheritState = inheritStateUpdates(element, options);
@@ -18198,7 +18203,7 @@ var require_update2 = __commonJS({
18198
18203
  return;
18199
18204
  if (ref.__if && !options.preventPropsUpdate) {
18200
18205
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
18201
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
18206
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils24.isFunction)(v));
18202
18207
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
18203
18208
  if (props4)
18204
18209
  (0, import_props.updateProps)(props4, element, parent);
@@ -18208,7 +18213,7 @@ var require_update2 = __commonJS({
18208
18213
  if (beforeUpdateReturns === false)
18209
18214
  return element;
18210
18215
  }
18211
- (0, import_utils25.overwriteDeep)(element, params, { exclude: import_utils26.METHODS_EXL });
18216
+ (0, import_utils24.overwriteDeep)(element, params, { exclude: import_utils25.METHODS_EXL });
18212
18217
  (0, import_iterate.throughExecProps)(element);
18213
18218
  (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
18214
18219
  (0, import_iterate.throughUpdatedDefine)(element);
@@ -18231,7 +18236,7 @@ var require_update2 = __commonJS({
18231
18236
  preventUpdateAfterCount
18232
18237
  } = options;
18233
18238
  if (preventUpdateAfter) {
18234
- if ((0, import_utils25.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18239
+ if ((0, import_utils24.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18235
18240
  return;
18236
18241
  else if (options.preventUpdateAfterCount === void 0)
18237
18242
  options.preventUpdateAfterCount = 1;
@@ -18245,17 +18250,17 @@ var require_update2 = __commonJS({
18245
18250
  }
18246
18251
  if (!Object.hasOwnProperty.call(element, param))
18247
18252
  continue;
18248
- const isInPreventUpdate = (0, import_utils25.isArray)(preventUpdate) && preventUpdate.includes(param);
18249
- const isInPreventDefineUpdate = (0, import_utils25.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18253
+ const isInPreventUpdate = (0, import_utils24.isArray)(preventUpdate) && preventUpdate.includes(param);
18254
+ const isInPreventDefineUpdate = (0, import_utils24.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18250
18255
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
18251
- if ((0, import_utils25.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils25.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils25.isVariant)(param))
18256
+ if ((0, import_utils24.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils24.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils24.isVariant)(param))
18252
18257
  continue;
18253
18258
  if (preventStateUpdate === "once")
18254
18259
  options.preventStateUpdate = false;
18255
18260
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
18256
18261
  if (isElement) {
18257
18262
  const { hasDefine, hasContextDefine } = isElement;
18258
- const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18263
+ const canUpdate = (0, import_utils24.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18259
18264
  if (!canUpdate)
18260
18265
  continue;
18261
18266
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -18267,7 +18272,7 @@ var require_update2 = __commonJS({
18267
18272
  currentSnapshot: snapshotOnCallee,
18268
18273
  calleeElement
18269
18274
  });
18270
- lazyLoad ? import_utils25.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18275
+ lazyLoad ? import_utils24.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18271
18276
  }
18272
18277
  }
18273
18278
  if (!preventUpdateListener)
@@ -18290,7 +18295,7 @@ var require_update2 = __commonJS({
18290
18295
  };
18291
18296
  var checkIfOnUpdate = (element, parent, options) => {
18292
18297
  var _a, _b, _c;
18293
- if (!(0, import_utils25.isFunction)(element.if) && !(0, import_utils25.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18298
+ if (!(0, import_utils24.isFunction)(element.if) && !(0, import_utils24.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18294
18299
  return;
18295
18300
  const ref = element.__ref;
18296
18301
  const ifPassed = (element.if || ((_b = element.props) == null ? void 0 : _b.if))(element, element.state, element.context, options);
@@ -18331,7 +18336,7 @@ var require_update2 = __commonJS({
18331
18336
  delete element.__ref;
18332
18337
  delete element.parent;
18333
18338
  const createdElement = (0, import_create.create)(element, parent, element.key, import_options3.OPTIONS.create, attachOptions);
18334
- if (options.preventUpdate !== true && element.on && (0, import_utils25.isFunction)(element.on.update)) {
18339
+ if (options.preventUpdate !== true && element.on && (0, import_utils24.isFunction)(element.on.update)) {
18335
18340
  (0, import_event.applyEvent)(element.on.update, createdElement, createdElement.state);
18336
18341
  }
18337
18342
  return createdElement;
@@ -18352,9 +18357,9 @@ var require_update2 = __commonJS({
18352
18357
  element.state = parent && parent.state || {};
18353
18358
  return;
18354
18359
  }
18355
- const shouldForceFunctionState = (0, import_utils25.isFunction)(stateKey) && !isHoisted && execStateFunction;
18360
+ const shouldForceFunctionState = (0, import_utils24.isFunction)(stateKey) && !isHoisted && execStateFunction;
18356
18361
  if (shouldForceFunctionState) {
18357
- const execState = (0, import_utils25.exec)(stateKey, element);
18362
+ const execState = (0, import_utils24.exec)(stateKey, element);
18358
18363
  state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
18359
18364
  return;
18360
18365
  }
@@ -18412,7 +18417,7 @@ var require_set2 = __commonJS({
18412
18417
  addMethods: () => addMethods
18413
18418
  });
18414
18419
  module2.exports = __toCommonJS2(set_exports);
18415
- var import_utils25 = require_cjs();
18420
+ var import_utils24 = require_cjs();
18416
18421
  var import_set = require_set();
18417
18422
  var import_update = require_update2();
18418
18423
  var import__ = require_methods2();
@@ -18445,7 +18450,7 @@ var require_set2 = __commonJS({
18445
18450
  error: import__.error
18446
18451
  };
18447
18452
  if (element.context.methods)
18448
- (options.strict ? import_utils25.merge : import_utils25.overwrite)(proto, element.context.methods);
18453
+ (options.strict ? import_utils24.merge : import_utils24.overwrite)(proto, element.context.methods);
18449
18454
  Object.setPrototypeOf(element, proto);
18450
18455
  };
18451
18456
  }
@@ -18490,7 +18495,7 @@ var require_create4 = __commonJS({
18490
18495
  module2.exports = __toCommonJS2(create_exports);
18491
18496
  var import_node = __toESM2(require_node2(), 1);
18492
18497
  var import_tree = require_tree();
18493
- var import_utils25 = require_cjs();
18498
+ var import_utils24 = require_cjs();
18494
18499
  var import_event = require_cjs5();
18495
18500
  var import_render = require_cjs10();
18496
18501
  var import_state2 = require_cjs7();
@@ -18513,9 +18518,9 @@ var require_create4 = __commonJS({
18513
18518
  parent = redefineParent(element, parent, key);
18514
18519
  key = createKey(element, parent, key);
18515
18520
  const ref = addRef(element, parent, key);
18516
- ref.__initialProps = (0, import_utils25.deepClone)(element.props);
18521
+ ref.__initialProps = (0, import_utils24.deepClone)(element.props);
18517
18522
  applyContext(element, parent, options);
18518
- (0, import_utils25.applyComponentFromContext)(element, parent, options);
18523
+ (0, import_utils24.applyComponentFromContext)(element, parent, options);
18519
18524
  if (!ref.__skipCreate) {
18520
18525
  (0, import_extend.applyExtend)(element, parent, options);
18521
18526
  }
@@ -18544,7 +18549,7 @@ var require_create4 = __commonJS({
18544
18549
  return element;
18545
18550
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
18546
18551
  (0, import_classList.assignKeyAsClassname)(element);
18547
- (0, import_utils25.addChildrenIfNotInOriginal)(element, parent, key);
18552
+ (0, import_utils24.addChildrenIfNotInOriginal)(element, parent, key);
18548
18553
  renderElement(element, parent, options, attachOptions);
18549
18554
  addElementIntoParentChildren(element, parent);
18550
18555
  (0, import_event.triggerEventOn)("complete", element, options);
@@ -18557,7 +18562,7 @@ var require_create4 = __commonJS({
18557
18562
  }
18558
18563
  return {};
18559
18564
  }
18560
- if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
18565
+ if ((0, import_utils24.isString)(key) && key.slice(0, 2 === "__")) {
18561
18566
  if (ENV3 === "test" || ENV3 === "development") {
18562
18567
  console.warn(key, "seems like to be in __ref");
18563
18568
  }
@@ -18579,8 +18584,8 @@ var require_create4 = __commonJS({
18579
18584
  else
18580
18585
  element.syntaxv3 = true;
18581
18586
  return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options);
18582
- } else if ((0, import_utils25.checkIfKeyIsComponent)(key)) {
18583
- return (0, import_utils25.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18587
+ } else if ((0, import_utils24.checkIfKeyIsComponent)(key)) {
18588
+ return (0, import_utils24.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18584
18589
  }
18585
18590
  if (checkIfMedia(key)) {
18586
18591
  return applyMediaProps2(elementWrapper, parent, key);
@@ -18590,7 +18595,7 @@ var require_create4 = __commonJS({
18590
18595
  var redefineParent = (element, parent, key, options) => {
18591
18596
  if (!parent)
18592
18597
  return import_tree.ROOT;
18593
- if ((0, import_utils25.isNode)(parent)) {
18598
+ if ((0, import_utils24.isNode)(parent)) {
18594
18599
  const parentNodeWrapper = { key: ":root", node: parent };
18595
18600
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
18596
18601
  return parentNodeWrapper;
@@ -18604,7 +18609,7 @@ var require_create4 = __commonJS({
18604
18609
  }
18605
18610
  };
18606
18611
  var createKey = (element, parent, key) => {
18607
- return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
18612
+ return ((0, import_utils24.exec)(key, element) || key || element.key || (0, import_utils24.generateKey)()).toString();
18608
18613
  };
18609
18614
  var addRef = (element, parent) => {
18610
18615
  if (element.__ref)
@@ -18634,7 +18639,7 @@ var require_create4 = __commonJS({
18634
18639
  visitedElements.set(element, true);
18635
18640
  const { __ref: ref, key } = element;
18636
18641
  try {
18637
- const isInfiniteLoopDetected = (0, import_utils25.detectInfiniteLoop)(ref.path);
18642
+ const isInfiniteLoopDetected = (0, import_utils24.detectInfiniteLoop)(ref.path);
18638
18643
  if (ref.__uniqId || isInfiniteLoopDetected)
18639
18644
  return;
18640
18645
  (0, import_node.default)(element, options);
@@ -18666,12 +18671,12 @@ var require_create4 = __commonJS({
18666
18671
  (0, import_event.triggerEventOn)("done", element, options);
18667
18672
  (0, import_event.triggerEventOn)("create", element, options);
18668
18673
  };
18669
- var checkIfPrimitive = (element) => (0, import_utils25.is)(element)("string", "number");
18674
+ var checkIfPrimitive = (element) => (0, import_utils24.is)(element)("string", "number");
18670
18675
  var applyValueAsText = (element, parent, key) => {
18671
18676
  const extendTag = element.extend && element.extend.tag;
18672
18677
  const childExtendTag = parent.childExtend && parent.childExtend.tag;
18673
18678
  const childPropsTag = parent.props.childProps && parent.props.childProps.tag;
18674
- const isKeyValidHTMLTag = import_utils25.HTML_TAGS.body.indexOf(key) > -1 && key;
18679
+ const isKeyValidHTMLTag = import_utils24.HTML_TAGS.body.indexOf(key) > -1 && key;
18675
18680
  return {
18676
18681
  text: element,
18677
18682
  tag: extendTag || childExtendTag || childPropsTag || isKeyValidHTMLTag || "string"
@@ -18691,7 +18696,7 @@ var require_create4 = __commonJS({
18691
18696
  };
18692
18697
  var createIfConditionFlag = (element, parent) => {
18693
18698
  const { __ref: ref } = element;
18694
- if ((0, import_utils25.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18699
+ if ((0, import_utils24.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18695
18700
  delete ref.__if;
18696
18701
  } else
18697
18702
  ref.__if = true;
@@ -18719,7 +18724,7 @@ var require_create4 = __commonJS({
18719
18724
  ref.__changes = [];
18720
18725
  if (!ref.__children)
18721
18726
  ref.__children = [];
18722
- if ((0, import_utils25.checkIfKeyIsComponent)(key))
18727
+ if ((0, import_utils24.checkIfKeyIsComponent)(key))
18723
18728
  ref.__componentKey = key.split("_")[0].split(".")[0].split("+")[0];
18724
18729
  const hasRoot = parent && parent.key === ":root";
18725
18730
  if (!ref.root)
@@ -18755,7 +18760,7 @@ var require_create4 = __commonJS({
18755
18760
  (0, import_iterate.throughInitialDefine)(element);
18756
18761
  (0, import_iterate.throughInitialExec)(element);
18757
18762
  for (const k in element) {
18758
- if ((0, import_utils25.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils25.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils25.isVariant)(k))
18763
+ if ((0, import_utils24.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils24.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils24.isVariant)(k))
18759
18764
  continue;
18760
18765
  const hasDefine = element.define && element.define[k];
18761
18766
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -18763,7 +18768,7 @@ var require_create4 = __commonJS({
18763
18768
  if (!ref.__skipCreate && import_mixins.REGISTRY[k] && !optionsHasDefine) {
18764
18769
  continue;
18765
18770
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
18766
- create2((0, import_utils25.exec)(element[k], element), element, k, options);
18771
+ create2((0, import_utils24.exec)(element[k], element), element, k, options);
18767
18772
  }
18768
18773
  }
18769
18774
  }
@@ -22764,10 +22769,10 @@ var require_Inspect = __commonJS({
22764
22769
  });
22765
22770
  module2.exports = __toCommonJS2(Inspect_exports);
22766
22771
  var smblsUI = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
22767
- var import_utils25 = require_cjs();
22772
+ var import_utils24 = require_cjs();
22768
22773
  var import_client = (init_client(), __toCommonJS(client_exports));
22769
22774
  function returnStringExtend(extend) {
22770
- return (0, import_utils25.isString)(extend) ? extend : (0, import_utils25.isArray)(extend) ? extend.find((extItem) => (0, import_utils25.isString)(extItem)) : "";
22775
+ return (0, import_utils24.isString)(extend) ? extend : (0, import_utils24.isArray)(extend) ? extend.find((extItem) => (0, import_utils24.isString)(extItem)) : "";
22771
22776
  }
22772
22777
  function getComponentKey(el) {
22773
22778
  if (!el)
@@ -22854,7 +22859,7 @@ var require_Inspect = __commonJS({
22854
22859
  on: {
22855
22860
  init: ({ context }) => {
22856
22861
  const { components } = context;
22857
- if ((0, import_utils25.isObject)(components)) {
22862
+ if ((0, import_utils24.isObject)(components)) {
22858
22863
  const { Content, ...rest } = components;
22859
22864
  for (const key in rest) {
22860
22865
  if (smblsUI[key])
@@ -22985,7 +22990,7 @@ var require_cjs13 = __commonJS({
22985
22990
  var import_init3 = (init_init(), __toCommonJS(init_exports));
22986
22991
  var import_client = (init_client(), __toCommonJS(client_exports));
22987
22992
  var import_globals = require_cjs8();
22988
- var import_utils25 = require_cjs();
22993
+ var import_utils24 = require_cjs();
22989
22994
  var import_Notifications = require_Notifications();
22990
22995
  var import_Inspect = require_Inspect();
22991
22996
  __reExport2(sync_exports, require_DefaultSyncApp(), module2.exports);
@@ -23009,16 +23014,16 @@ var require_cjs13 = __commonJS({
23009
23014
  const { state, designSystem, pages, components, snippets, functions } = obj.DATA;
23010
23015
  const { utils: utils2 } = ctx;
23011
23016
  if (pages) {
23012
- (0, import_utils25.overwriteShallow)(ctx.pages, pages);
23017
+ (0, import_utils24.overwriteShallow)(ctx.pages, pages);
23013
23018
  }
23014
23019
  if (components) {
23015
- (0, import_utils25.overwriteShallow)(ctx.components, components);
23020
+ (0, import_utils24.overwriteShallow)(ctx.components, components);
23016
23021
  }
23017
23022
  if (functions) {
23018
- (0, import_utils25.overwriteShallow)(ctx.functions, functions);
23023
+ (0, import_utils24.overwriteShallow)(ctx.functions, functions);
23019
23024
  }
23020
23025
  if (snippets) {
23021
- (0, import_utils25.overwriteShallow)(ctx.snippets, snippets);
23026
+ (0, import_utils24.overwriteShallow)(ctx.snippets, snippets);
23022
23027
  }
23023
23028
  if (state) {
23024
23029
  const route = state.route;
@@ -23327,7 +23332,7 @@ __export(src_exports, {
23327
23332
  default: () => src_default
23328
23333
  });
23329
23334
  module.exports = __toCommonJS(src_exports);
23330
- var import_utils24 = __toESM(require_cjs(), 1);
23335
+ var import_utils23 = __toESM(require_cjs(), 1);
23331
23336
 
23332
23337
  // src/utilImports.js
23333
23338
  var utilImports_exports = {};
@@ -23348,7 +23353,7 @@ __reExport(utilImports_exports, __toESM(require_cjs6(), 1));
23348
23353
 
23349
23354
  // src/router.js
23350
23355
  var import_router2 = __toESM(require_cjs6(), 1);
23351
- var import_utils16 = __toESM(require_cjs(), 1);
23356
+ var import_utils15 = __toESM(require_cjs(), 1);
23352
23357
  init_uikit();
23353
23358
  var DEFAULT_ROUTING_OPTIONS = {
23354
23359
  initRouter: true,
@@ -23361,16 +23366,16 @@ var initRouter = (element, context) => {
23361
23366
  else if (context.router === true)
23362
23367
  context.router = DEFAULT_ROUTING_OPTIONS;
23363
23368
  else
23364
- (0, import_utils16.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
23369
+ (0, import_utils15.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
23365
23370
  const routerOptions = context.router;
23366
23371
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
23367
23372
  const onRouterRenderDefault = (el, s) => {
23368
- const { pathname, search, hash: hash2 } = import_utils16.window.location;
23373
+ const { pathname, search, hash: hash2 } = import_utils15.window.location;
23369
23374
  const url2 = pathname + search + hash2;
23370
23375
  if (el.routes)
23371
23376
  router(url2, el, {}, { initialRender: true });
23372
23377
  };
23373
- const hasRenderRouter = element.on && !(0, import_utils16.isUndefined)(element.on.renderRouter);
23378
+ const hasRenderRouter = element.on && !(0, import_utils15.isUndefined)(element.on.renderRouter);
23374
23379
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
23375
23380
  if (element.on) {
23376
23381
  element.on.renderRouter = onRouterRenderDefault;
@@ -23392,20 +23397,20 @@ var popStateRouter = (element, context) => {
23392
23397
  if (!routerOptions.popState)
23393
23398
  return;
23394
23399
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
23395
- import_utils16.window.onpopstate = (e) => {
23396
- const { pathname, search, hash: hash2 } = import_utils16.window.location;
23400
+ import_utils15.window.onpopstate = (e) => {
23401
+ const { pathname, search, hash: hash2 } = import_utils15.window.location;
23397
23402
  const url2 = pathname + search + hash2;
23398
23403
  router(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
23399
23404
  };
23400
23405
  };
23401
23406
  var injectRouterInLinkComponent = (routerOptions) => {
23402
23407
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
23403
- return (0, import_utils16.deepMerge)(Link, RouterLink);
23408
+ return (0, import_utils15.deepMerge)(Link, RouterLink);
23404
23409
  }
23405
23410
  };
23406
23411
 
23407
23412
  // src/ferchOnCreate.js
23408
- var import_utils17 = __toESM(require_cjs(), 1);
23413
+ var import_utils16 = __toESM(require_cjs(), 1);
23409
23414
  var import_fetch = __toESM(require_cjs9(), 1);
23410
23415
  var fetchSync = async (key, options) => {
23411
23416
  if (key && options.editor) {
@@ -23422,10 +23427,10 @@ var fetchAsync = (app, key, options, callback) => {
23422
23427
  try {
23423
23428
  if (options.editor.async) {
23424
23429
  (0, import_fetch.fetchProjectAsync)(key, options, callback || ((data) => {
23425
- if ((0, import_utils17.isObject)(data.designsystem)) {
23430
+ if ((0, import_utils16.isObject)(data.designsystem)) {
23426
23431
  options.utils.init(data.designsystem);
23427
23432
  }
23428
- if ((0, import_utils17.isObject)(data.state)) {
23433
+ if ((0, import_utils16.isObject)(data.state)) {
23429
23434
  app.state.set(data.state);
23430
23435
  }
23431
23436
  }));
@@ -23490,19 +23495,19 @@ init_dynamic();
23490
23495
  // src/createDomql.js
23491
23496
  var import_domql = __toESM(require_cjs12(), 1);
23492
23497
  init_uikit();
23493
- var import_utils23 = __toESM(require_cjs(), 1);
23498
+ var import_utils22 = __toESM(require_cjs(), 1);
23494
23499
 
23495
23500
  // src/syncExtend.js
23496
- var import_utils18 = __toESM(require_cjs(), 1);
23501
+ var import_utils17 = __toESM(require_cjs(), 1);
23497
23502
  var import_sync = __toESM(require_cjs13(), 1);
23498
23503
  var initializeExtend = (app, ctx) => {
23499
- return (0, import_utils18.isObjectLike)(app.extend) ? app.extend : [];
23504
+ return (0, import_utils17.isObjectLike)(app.extend) ? app.extend : [];
23500
23505
  };
23501
23506
  var initializeSync = (app, ctx) => {
23502
23507
  const { editor } = ctx;
23503
23508
  if (!editor)
23504
23509
  return;
23505
- const liveSync = (0, import_utils18.isUndefined)(editor.liveSync) ? (0, import_utils18.isDevelopment)() : editor.liveSync;
23510
+ const liveSync = (0, import_utils17.isUndefined)(editor.liveSync) ? (0, import_utils17.isDevelopment)() : editor.liveSync;
23506
23511
  if (liveSync)
23507
23512
  app.extend.push(import_sync.SyncComponent);
23508
23513
  };
@@ -23510,7 +23515,7 @@ var initializeInspect = (app, ctx) => {
23510
23515
  const { editor } = ctx;
23511
23516
  if (!editor)
23512
23517
  return;
23513
- const inspect = (0, import_utils18.isUndefined)(editor.inspect) ? (0, import_utils18.isDevelopment)() : editor.inspect;
23518
+ const inspect = (0, import_utils17.isUndefined)(editor.inspect) ? (0, import_utils17.isDevelopment)() : editor.inspect;
23514
23519
  if (inspect)
23515
23520
  app.extend.push(import_sync.Inspect);
23516
23521
  };
@@ -23518,19 +23523,19 @@ var initializeNotifications = (app, ctx) => {
23518
23523
  const { editor } = ctx;
23519
23524
  if (!editor)
23520
23525
  return;
23521
- const verbose = (0, import_utils18.isUndefined)(editor.verbose) ? (0, import_utils18.isDevelopment)() || ctx.verbose : editor.verbose;
23526
+ const verbose = (0, import_utils17.isUndefined)(editor.verbose) ? (0, import_utils17.isDevelopment)() || ctx.verbose : editor.verbose;
23522
23527
  if (verbose)
23523
23528
  app.extend.push(import_sync.Notifications);
23524
23529
  };
23525
23530
 
23526
23531
  // src/prepare.js
23527
- var import_utils22 = __toESM(require_cjs(), 1);
23532
+ var import_utils21 = __toESM(require_cjs(), 1);
23528
23533
 
23529
23534
  // ../../node_modules/@domql/emotion/index.js
23530
- var import_utils20 = __toESM(require_cjs());
23535
+ var import_utils19 = __toESM(require_cjs());
23531
23536
 
23532
23537
  // ../../node_modules/@domql/classlist/index.js
23533
- var import_utils19 = __toESM(require_cjs());
23538
+ var import_utils18 = __toESM(require_cjs());
23534
23539
  var classify = (obj, element) => {
23535
23540
  let className = "";
23536
23541
  for (const item in obj) {
@@ -23540,7 +23545,7 @@ var classify = (obj, element) => {
23540
23545
  else if (typeof param === "string")
23541
23546
  className += ` ${param}`;
23542
23547
  else if (typeof param === "function") {
23543
- className += ` ${(0, import_utils19.exec)(param, element)}`;
23548
+ className += ` ${(0, import_utils18.exec)(param, element)}`;
23544
23549
  }
23545
23550
  }
23546
23551
  return className;
@@ -23551,9 +23556,9 @@ var classList = (params, element) => {
23551
23556
  const { key } = element;
23552
23557
  if (params === true)
23553
23558
  params = element.class = { key };
23554
- if ((0, import_utils19.isString)(params))
23559
+ if ((0, import_utils18.isString)(params))
23555
23560
  params = element.class = { default: params };
23556
- if ((0, import_utils19.isObject)(params))
23561
+ if ((0, import_utils18.isObject)(params))
23557
23562
  params = classify(params, element);
23558
23563
  const className = params.replace(/\s+/g, " ").trim();
23559
23564
  if (element.ref)
@@ -23570,9 +23575,9 @@ var applyClassListOnNode = (params, element, node2) => {
23570
23575
  init_emotion_css_create_instance_esm();
23571
23576
  var transformEmotionStyle = (emotion2) => {
23572
23577
  return (params, element, state) => {
23573
- const execParams = (0, import_utils20.exec)(params, element);
23578
+ const execParams = (0, import_utils19.exec)(params, element);
23574
23579
  if (params) {
23575
- if ((0, import_utils20.isObjectLike)(element.class))
23580
+ if ((0, import_utils19.isObjectLike)(element.class))
23576
23581
  element.class.elementStyle = execParams;
23577
23582
  else
23578
23583
  element.class = { elementStyle: execParams };
@@ -23586,7 +23591,7 @@ var transformEmotionClass = (emotion2) => {
23586
23591
  return;
23587
23592
  const { __ref } = element;
23588
23593
  const { __class, __classNames } = __ref;
23589
- if (!(0, import_utils20.isObjectLike)(params))
23594
+ if (!(0, import_utils19.isObjectLike)(params))
23590
23595
  return;
23591
23596
  if (element.props.class) {
23592
23597
  __classNames.classProps = element.props.class;
@@ -23595,20 +23600,20 @@ var transformEmotionClass = (emotion2) => {
23595
23600
  __classNames.class = element.attr.class;
23596
23601
  }
23597
23602
  for (const key in params) {
23598
- const prop = (0, import_utils20.exec)(params[key], element);
23603
+ const prop = (0, import_utils19.exec)(params[key], element);
23599
23604
  if (!prop) {
23600
23605
  delete __class[key];
23601
23606
  delete __classNames[key];
23602
23607
  continue;
23603
23608
  }
23604
- const isEqual = (0, import_utils20.isEqualDeep)(__class[key], prop);
23609
+ const isEqual = (0, import_utils19.isEqualDeep)(__class[key], prop);
23605
23610
  if (!isEqual) {
23606
- if (!(0, import_utils20.isProduction)() && (0, import_utils20.isObject)(prop))
23611
+ if (!(0, import_utils19.isProduction)() && (0, import_utils19.isObject)(prop))
23607
23612
  prop.label = key || element.key;
23608
23613
  let className;
23609
- if ((0, import_utils20.isString)(prop) || (0, import_utils20.isNumber)(prop))
23614
+ if ((0, import_utils19.isString)(prop) || (0, import_utils19.isNumber)(prop))
23610
23615
  className = prop;
23611
- else if ((0, import_utils20.isBoolean)(prop))
23616
+ else if ((0, import_utils19.isBoolean)(prop))
23612
23617
  className = element.key;
23613
23618
  else
23614
23619
  className = emotion2.css(prop);
@@ -23631,7 +23636,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
23631
23636
  // src/initEmotion.js
23632
23637
  init_emotion();
23633
23638
  init_init();
23634
- var import_utils21 = __toESM(require_cjs(), 1);
23639
+ var import_utils20 = __toESM(require_cjs(), 1);
23635
23640
 
23636
23641
  // ../default-config/src/index.js
23637
23642
  var import_default_icons = __toESM(require_cjs14());
@@ -24025,7 +24030,7 @@ var initEmotion = (key, options = {}) => {
24025
24030
  if (!initOptions.emotion)
24026
24031
  initOptions.emotion = emotion;
24027
24032
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
24028
- const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils21.deepMerge)(options.designSystem, (0, import_utils21.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils21.deepClone)(DEFAULT_CONFIG);
24033
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils20.deepMerge)(options.designSystem, (0, import_utils20.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils20.deepClone)(DEFAULT_CONFIG);
24029
24034
  const scratchSystem2 = init(designSystem, {
24030
24035
  key,
24031
24036
  emotion: emotion2,
@@ -24058,7 +24063,7 @@ var UIkitWithPrefix = () => {
24058
24063
  const newObj = {};
24059
24064
  for (const key in uikit_exports) {
24060
24065
  if (Object.prototype.hasOwnProperty.call(uikit_exports, key)) {
24061
- if ((0, import_utils22.checkIfKeyIsComponent)(key)) {
24066
+ if ((0, import_utils21.checkIfKeyIsComponent)(key)) {
24062
24067
  newObj[`smbls.${key}`] = uikit_exports[key];
24063
24068
  } else {
24064
24069
  newObj[key] = uikit_exports[key];
@@ -24145,7 +24150,7 @@ var prepareRequire = (packages, ctx) => {
24145
24150
  return windowOpts2.require(key);
24146
24151
  };
24147
24152
  if (windowOpts.packages) {
24148
- windowOpts.packages = (0, import_utils22.merge)(windowOpts.packages, packages);
24153
+ windowOpts.packages = (0, import_utils21.merge)(windowOpts.packages, packages);
24149
24154
  } else {
24150
24155
  windowOpts.packages = packages;
24151
24156
  }
@@ -24167,12 +24172,12 @@ var prepareState = (app, context) => {
24167
24172
  if (context.state)
24168
24173
  utilImports_exports.deepMerge(state, context.state);
24169
24174
  if (app && app.state)
24170
- (0, import_utils22.deepMerge)(state, app.state);
24171
- return (0, import_utils22.deepClone)(state);
24175
+ (0, import_utils21.deepMerge)(state, app.state);
24176
+ return (0, import_utils21.deepClone)(state);
24172
24177
  };
24173
24178
  var preparePages = (app, context) => {
24174
- if ((0, import_utils22.isObject)(app.routes) && (0, import_utils22.isObject)(context.pages)) {
24175
- (0, import_utils22.merge)(app.routes, context.pages);
24179
+ if ((0, import_utils21.isObject)(app.routes) && (0, import_utils21.isObject)(context.pages)) {
24180
+ (0, import_utils21.merge)(app.routes, context.pages);
24176
24181
  }
24177
24182
  const pages = app.routes || context.pages || {};
24178
24183
  return Object.keys(pages).filter((v) => !v.startsWith("/")).reduce((pages2, v) => {
@@ -24204,7 +24209,7 @@ var initAnimationFrame = () => {
24204
24209
 
24205
24210
  // src/createDomql.js
24206
24211
  var prepareContext = (app, context = {}) => {
24207
- const key = context.key = context.key || ((0, import_utils23.isString)(app) ? app : "smblsapp");
24212
+ const key = context.key = context.key || ((0, import_utils22.isString)(app) ? app : "smblsapp");
24208
24213
  context.define = context.define || defaultDefine;
24209
24214
  context.window = prepareWindow(context);
24210
24215
  const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(key, context);
@@ -24223,17 +24228,17 @@ var prepareContext = (app, context = {}) => {
24223
24228
  return context;
24224
24229
  };
24225
24230
  var createDomqlElement = (app, ctx) => {
24226
- if (!(0, import_utils23.isObject)(ctx))
24231
+ if (!(0, import_utils22.isObject)(ctx))
24227
24232
  ctx = {};
24228
- if ((0, import_utils23.isNode)(app)) {
24233
+ if ((0, import_utils22.isNode)(app)) {
24229
24234
  app = {};
24230
24235
  ctx.parent = app;
24231
24236
  }
24232
- if ((0, import_utils23.isString)(app)) {
24237
+ if ((0, import_utils22.isString)(app)) {
24233
24238
  app = {};
24234
24239
  ctx.key = app;
24235
24240
  }
24236
- if (!(0, import_utils23.isObject)(app)) {
24241
+ if (!(0, import_utils22.isObject)(app)) {
24237
24242
  app = {};
24238
24243
  }
24239
24244
  prepareContext(app, ctx);
@@ -24262,9 +24267,9 @@ var createDomqlElement = (app, ctx) => {
24262
24267
  };
24263
24268
 
24264
24269
  // src/index.js
24265
- var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils24.deepMerge)(
24270
+ var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils23.deepMerge)(
24266
24271
  options,
24267
- (0, import_utils24.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
24272
+ (0, import_utils23.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
24268
24273
  );
24269
24274
  var create = (App, options = options_default, optionsExternalFile) => {
24270
24275
  const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
@@ -24293,10 +24298,10 @@ var createSync = async (App, options = options_default, optionsExternalFile) =>
24293
24298
  var createSkeleton = (App = {}, options = options_default, optionsExternalFile) => {
24294
24299
  return create(
24295
24300
  {
24296
- deps: { isUndefined: import_utils24.isUndefined },
24301
+ deps: { isUndefined: import_utils23.isUndefined },
24297
24302
  ...App
24298
24303
  },
24299
- (0, import_utils24.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
24304
+ (0, import_utils23.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
24300
24305
  optionsExternalFile
24301
24306
  );
24302
24307
  };