@symbo.ls/create 2.11.482 → 2.11.483

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.
@@ -217,7 +217,7 @@ var require_types = __commonJS({
217
217
  isBoolean: () => isBoolean2,
218
218
  isDate: () => isDate,
219
219
  isDefined: () => isDefined2,
220
- isFunction: () => isFunction2,
220
+ isFunction: () => isFunction3,
221
221
  isNot: () => isNot2,
222
222
  isNull: () => isNull,
223
223
  isNumber: () => isNumber3,
@@ -235,7 +235,7 @@ var require_types = __commonJS({
235
235
  };
236
236
  var isString11 = (arg) => typeof arg === "string";
237
237
  var isNumber3 = (arg) => typeof arg === "number";
238
- var isFunction2 = (arg) => typeof arg === "function";
238
+ var isFunction3 = (arg) => typeof arg === "function";
239
239
  var isBoolean2 = (arg) => arg === true || arg === false;
240
240
  var isNull = (arg) => arg === null;
241
241
  var isArray4 = (arg) => Array.isArray(arg);
@@ -246,7 +246,7 @@ var require_types = __commonJS({
246
246
  return typeof arg === "object";
247
247
  };
248
248
  var isDefined2 = (arg) => {
249
- return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
249
+ return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction3(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
250
250
  };
251
251
  var isUndefined11 = (arg) => {
252
252
  return arg === void 0;
@@ -259,7 +259,7 @@ var require_types = __commonJS({
259
259
  date: isDate,
260
260
  number: isNumber3,
261
261
  null: isNull,
262
- function: isFunction2,
262
+ function: isFunction3,
263
263
  objectLike: isObjectLike4,
264
264
  node: import_node.isNode,
265
265
  htmlElement: import_node.isHtmlElement,
@@ -1405,21 +1405,21 @@ var require_cookie = __commonJS({
1405
1405
  });
1406
1406
  module2.exports = __toCommonJS2(cookie_exports);
1407
1407
  var import_types = require_types();
1408
- var import_utils27 = require_cjs();
1408
+ var import_utils28 = require_cjs();
1409
1409
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
1410
1410
  var setCookie = (cname, cvalue, exdays = 365) => {
1411
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1411
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1412
1412
  return;
1413
1413
  const d = /* @__PURE__ */ new Date();
1414
1414
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
1415
1415
  const expires = `expires=${d.toUTCString()}`;
1416
- import_utils27.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1416
+ import_utils28.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1417
1417
  };
1418
1418
  var getCookie = (cname) => {
1419
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1419
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1420
1420
  return;
1421
1421
  const name = `${cname}=`;
1422
- const decodedCookie = decodeURIComponent(import_utils27.document.cookie);
1422
+ const decodedCookie = decodeURIComponent(import_utils28.document.cookie);
1423
1423
  const ca = decodedCookie.split(";");
1424
1424
  for (let i = 0; i < ca.length; i++) {
1425
1425
  let c = ca[i];
@@ -1431,9 +1431,9 @@ var require_cookie = __commonJS({
1431
1431
  return "";
1432
1432
  };
1433
1433
  var removeCookie = (cname) => {
1434
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
1434
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
1435
1435
  return;
1436
- import_utils27.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1436
+ import_utils28.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1437
1437
  };
1438
1438
  function getLocalStorage(key) {
1439
1439
  let savedJSON;
@@ -2153,7 +2153,7 @@ var require_cjs2 = __commonJS({
2153
2153
  isBoolean: () => isBoolean2,
2154
2154
  isDate: () => isDate,
2155
2155
  isDefined: () => isDefined2,
2156
- isFunction: () => isFunction2,
2156
+ isFunction: () => isFunction22,
2157
2157
  isNot: () => isNot2,
2158
2158
  isNull: () => isNull2,
2159
2159
  isNumber: () => isNumber22,
@@ -2171,7 +2171,7 @@ var require_cjs2 = __commonJS({
2171
2171
  };
2172
2172
  var isString92 = (arg) => typeof arg === "string";
2173
2173
  var isNumber22 = (arg) => typeof arg === "number";
2174
- var isFunction2 = (arg) => typeof arg === "function";
2174
+ var isFunction22 = (arg) => typeof arg === "function";
2175
2175
  var isBoolean2 = (arg) => arg === true || arg === false;
2176
2176
  var isNull2 = (arg) => arg === null;
2177
2177
  var isArray7 = (arg) => Array.isArray(arg);
@@ -2182,7 +2182,7 @@ var require_cjs2 = __commonJS({
2182
2182
  return typeof arg === "object";
2183
2183
  };
2184
2184
  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);
2185
+ return isObject72(arg) || isObjectLike32(arg) || isString92(arg) || isNumber22(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2186
2186
  };
2187
2187
  var isUndefined22 = (arg) => {
2188
2188
  return arg === void 0;
@@ -2195,7 +2195,7 @@ var require_cjs2 = __commonJS({
2195
2195
  date: isDate,
2196
2196
  number: isNumber22,
2197
2197
  null: isNull2,
2198
- function: isFunction2,
2198
+ function: isFunction22,
2199
2199
  objectLike: isObjectLike32,
2200
2200
  node: import_node.isNode,
2201
2201
  htmlElement: import_node.isHtmlElement,
@@ -3329,21 +3329,21 @@ var require_cjs2 = __commonJS({
3329
3329
  });
3330
3330
  module22.exports = __toCommonJS3(cookie_exports);
3331
3331
  var import_types = require_types3();
3332
- var import_utils29 = require_cjs22();
3332
+ var import_utils292 = require_cjs22();
3333
3333
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
3334
3334
  var setCookie = (cname, cvalue, exdays = 365) => {
3335
- if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3335
+ if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3336
3336
  return;
3337
3337
  const d = /* @__PURE__ */ new Date();
3338
3338
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
3339
3339
  const expires = `expires=${d.toUTCString()}`;
3340
- import_utils29.document.cookie = `${cname}=${cvalue};${expires};path=/`;
3340
+ import_utils292.document.cookie = `${cname}=${cvalue};${expires};path=/`;
3341
3341
  };
3342
3342
  var getCookie = (cname) => {
3343
- if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3343
+ if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3344
3344
  return;
3345
3345
  const name = `${cname}=`;
3346
- const decodedCookie = decodeURIComponent(import_utils29.document.cookie);
3346
+ const decodedCookie = decodeURIComponent(import_utils292.document.cookie);
3347
3347
  const ca = decodedCookie.split(";");
3348
3348
  for (let i = 0; i < ca.length; i++) {
3349
3349
  let c = ca[i];
@@ -3355,9 +3355,9 @@ var require_cjs2 = __commonJS({
3355
3355
  return "";
3356
3356
  };
3357
3357
  var removeCookie = (cname) => {
3358
- if ((0, import_types.isUndefined)(import_utils29.document) || (0, import_types.isUndefined)(import_utils29.document.cookie))
3358
+ if ((0, import_types.isUndefined)(import_utils292.document) || (0, import_types.isUndefined)(import_utils292.document.cookie))
3359
3359
  return;
3360
- import_utils29.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
3360
+ import_utils292.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
3361
3361
  };
3362
3362
  function getLocalStorage(key) {
3363
3363
  let savedJSON;
@@ -3914,7 +3914,7 @@ var require_cjs2 = __commonJS({
3914
3914
  mixTwoRgb: () => mixTwoRgb,
3915
3915
  mixTwoRgba: () => mixTwoRgba,
3916
3916
  numToLetterMap: () => numToLetterMap,
3917
- opacify: () => opacify,
3917
+ opacify: () => opacify2,
3918
3918
  returnSubThemeOrDefault: () => returnSubThemeOrDefault,
3919
3919
  rgbArrayToHex: () => rgbArrayToHex,
3920
3920
  rgbToHSL: () => rgbToHSL,
@@ -3988,7 +3988,7 @@ var require_cjs2 = __commonJS({
3988
3988
  mixTwoRgb: () => mixTwoRgb,
3989
3989
  mixTwoRgba: () => mixTwoRgba,
3990
3990
  numToLetterMap: () => numToLetterMap,
3991
- opacify: () => opacify,
3991
+ opacify: () => opacify2,
3992
3992
  returnSubThemeOrDefault: () => returnSubThemeOrDefault,
3993
3993
  rgbArrayToHex: () => rgbArrayToHex,
3994
3994
  rgbToHSL: () => rgbToHSL,
@@ -4004,7 +4004,7 @@ var require_cjs2 = __commonJS({
4004
4004
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
4005
4005
  };
4006
4006
  var import_globals = __toESM2(require_cjs17(), 1);
4007
- var import_utils27 = __toESM2(require_cjs22(), 1);
4007
+ var import_utils28 = __toESM2(require_cjs22(), 1);
4008
4008
  var ENV3 = "development";
4009
4009
  var colorStringToRgbaArray = (color) => {
4010
4010
  if (color === "")
@@ -4125,7 +4125,7 @@ var require_cjs2 = __commonJS({
4125
4125
  }
4126
4126
  return `rgba(${arr})`;
4127
4127
  };
4128
- var opacify = (color, opacity) => {
4128
+ var opacify2 = (color, opacity) => {
4129
4129
  const arr = colorStringToRgbaArray(color);
4130
4130
  if (!arr) {
4131
4131
  if (ENV3 === "test" || ENV3 === "development")
@@ -4136,11 +4136,11 @@ var require_cjs2 = __commonJS({
4136
4136
  return `rgba(${arr})`;
4137
4137
  };
4138
4138
  var getRgbTone = (rgb, tone) => {
4139
- if ((0, import_utils27.isString)(rgb) && rgb.includes("rgb"))
4139
+ if ((0, import_utils28.isString)(rgb) && rgb.includes("rgb"))
4140
4140
  rgb = colorStringToRgbaArray(rgb).join(", ");
4141
- if ((0, import_utils27.isString)(rgb))
4141
+ if ((0, import_utils28.isString)(rgb))
4142
4142
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
4143
- if ((0, import_utils27.isNumber)(tone))
4143
+ if ((0, import_utils28.isNumber)(tone))
4144
4144
  tone += "";
4145
4145
  const toHex = rgbArrayToHex(rgb);
4146
4146
  const abs3 = tone.slice(0, 1);
@@ -4408,7 +4408,7 @@ var require_cjs2 = __commonJS({
4408
4408
  isBoolean: () => isBoolean2,
4409
4409
  isDate: () => isDate,
4410
4410
  isDefined: () => isDefined2,
4411
- isFunction: () => isFunction2,
4411
+ isFunction: () => isFunction22,
4412
4412
  isNot: () => isNot2,
4413
4413
  isNull: () => isNull2,
4414
4414
  isNumber: () => isNumber22,
@@ -4426,7 +4426,7 @@ var require_cjs2 = __commonJS({
4426
4426
  };
4427
4427
  var isString22 = (arg) => typeof arg === "string";
4428
4428
  var isNumber22 = (arg) => typeof arg === "number";
4429
- var isFunction2 = (arg) => typeof arg === "function";
4429
+ var isFunction22 = (arg) => typeof arg === "function";
4430
4430
  var isBoolean2 = (arg) => arg === true || arg === false;
4431
4431
  var isNull2 = (arg) => arg === null;
4432
4432
  var isArray32 = (arg) => Array.isArray(arg);
@@ -4437,7 +4437,7 @@ var require_cjs2 = __commonJS({
4437
4437
  return typeof arg === "object";
4438
4438
  };
4439
4439
  var isDefined2 = (arg) => {
4440
- return isObject32(arg) || isObjectLike32(arg) || isString22(arg) || isNumber22(arg) || isFunction2(arg) || isArray32(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
4440
+ return isObject32(arg) || isObjectLike32(arg) || isString22(arg) || isNumber22(arg) || isFunction22(arg) || isArray32(arg) || isObjectLike32(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
4441
4441
  };
4442
4442
  var isUndefined22 = (arg) => {
4443
4443
  return arg === void 0;
@@ -4450,7 +4450,7 @@ var require_cjs2 = __commonJS({
4450
4450
  date: isDate,
4451
4451
  number: isNumber22,
4452
4452
  null: isNull2,
4453
- function: isFunction2,
4453
+ function: isFunction22,
4454
4454
  objectLike: isObjectLike32,
4455
4455
  node: import_node.isNode,
4456
4456
  htmlElement: import_node.isHtmlElement,
@@ -6107,7 +6107,7 @@ var require_cjs2 = __commonJS({
6107
6107
  toggleFullscreen: () => toggleFullscreen
6108
6108
  });
6109
6109
  module2.exports = __toCommonJS22(src_exports3);
6110
- var import_utils28 = __toESM22(require_cjs32(), 1);
6110
+ var import_utils29 = __toESM22(require_cjs32(), 1);
6111
6111
  var toggleFullscreen = async (el) => {
6112
6112
  if (!document.fullscreenElement) {
6113
6113
  try {
@@ -6282,13 +6282,13 @@ var require_cjs2 = __commonJS({
6282
6282
  return result.charAt(0).toUpperCase() + result.slice(1);
6283
6283
  };
6284
6284
  var arrayzeValue = (val) => {
6285
- if ((0, import_utils28.isArray)(val))
6285
+ if ((0, import_utils29.isArray)(val))
6286
6286
  return val;
6287
- if ((0, import_utils28.isString)(val))
6287
+ if ((0, import_utils29.isString)(val))
6288
6288
  return val.split(" ");
6289
- if ((0, import_utils28.isObject)(val))
6289
+ if ((0, import_utils29.isObject)(val))
6290
6290
  return Object.values(val);
6291
- if ((0, import_utils28.isNumber)(val))
6291
+ if ((0, import_utils29.isNumber)(val))
6292
6292
  return [val];
6293
6293
  };
6294
6294
  var import_utils42 = __toESM2(require_cjs22(), 1);
@@ -8127,7 +8127,7 @@ var require_cjs3 = __commonJS({
8127
8127
  isBoolean: () => isBoolean2,
8128
8128
  isDate: () => isDate,
8129
8129
  isDefined: () => isDefined2,
8130
- isFunction: () => isFunction2,
8130
+ isFunction: () => isFunction3,
8131
8131
  isNot: () => isNot2,
8132
8132
  isNull: () => isNull,
8133
8133
  isNumber: () => isNumber22,
@@ -8145,7 +8145,7 @@ var require_cjs3 = __commonJS({
8145
8145
  };
8146
8146
  var isString22 = (arg) => typeof arg === "string";
8147
8147
  var isNumber22 = (arg) => typeof arg === "number";
8148
- var isFunction2 = (arg) => typeof arg === "function";
8148
+ var isFunction3 = (arg) => typeof arg === "function";
8149
8149
  var isBoolean2 = (arg) => arg === true || arg === false;
8150
8150
  var isNull = (arg) => arg === null;
8151
8151
  var isArray32 = (arg) => Array.isArray(arg);
@@ -8156,7 +8156,7 @@ var require_cjs3 = __commonJS({
8156
8156
  return typeof arg === "object";
8157
8157
  };
8158
8158
  var isDefined2 = (arg) => {
8159
- return isObject32(arg) || isObjectLike4(arg) || isString22(arg) || isNumber22(arg) || isFunction2(arg) || isArray32(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
8159
+ return isObject32(arg) || isObjectLike4(arg) || isString22(arg) || isNumber22(arg) || isFunction3(arg) || isArray32(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
8160
8160
  };
8161
8161
  var isUndefined11 = (arg) => {
8162
8162
  return arg === void 0;
@@ -8169,7 +8169,7 @@ var require_cjs3 = __commonJS({
8169
8169
  date: isDate,
8170
8170
  number: isNumber22,
8171
8171
  null: isNull,
8172
- function: isFunction2,
8172
+ function: isFunction3,
8173
8173
  objectLike: isObjectLike4,
8174
8174
  node: import_node.isNode,
8175
8175
  htmlElement: import_node.isHtmlElement,
@@ -9826,7 +9826,7 @@ var require_cjs3 = __commonJS({
9826
9826
  toggleFullscreen: () => toggleFullscreen
9827
9827
  });
9828
9828
  module2.exports = __toCommonJS2(src_exports2);
9829
- var import_utils27 = __toESM2(require_cjs17(), 1);
9829
+ var import_utils28 = __toESM2(require_cjs17(), 1);
9830
9830
  var toggleFullscreen = async (el) => {
9831
9831
  if (!document.fullscreenElement) {
9832
9832
  try {
@@ -9838,15 +9838,15 @@ var require_cjs3 = __commonJS({
9838
9838
  await document.exitFullscreen();
9839
9839
  }
9840
9840
  };
9841
- var import_utils28 = __toESM2(require_cjs17(), 1);
9841
+ var import_utils29 = __toESM2(require_cjs17(), 1);
9842
9842
  var findClosestNumber = (number, arr) => {
9843
- return ((0, import_utils28.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
9843
+ return ((0, import_utils29.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
9844
9844
  return Math.abs(curr - number) < Math.abs(prev3 - number) ? curr : prev3;
9845
9845
  });
9846
9846
  };
9847
9847
  var findClosestNumberInFactory = (val, factory) => {
9848
9848
  val = parseFloat(val);
9849
- if ((0, import_utils28.isObject)(factory))
9849
+ if ((0, import_utils29.isObject)(factory))
9850
9850
  factory = Object.values(factory);
9851
9851
  return findClosestNumber(val, factory);
9852
9852
  };
@@ -10001,13 +10001,13 @@ var require_cjs3 = __commonJS({
10001
10001
  return result.charAt(0).toUpperCase() + result.slice(1);
10002
10002
  };
10003
10003
  var arrayzeValue = (val) => {
10004
- if ((0, import_utils27.isArray)(val))
10004
+ if ((0, import_utils28.isArray)(val))
10005
10005
  return val;
10006
- if ((0, import_utils27.isString)(val))
10006
+ if ((0, import_utils28.isString)(val))
10007
10007
  return val.split(" ");
10008
- if ((0, import_utils27.isObject)(val))
10008
+ if ((0, import_utils28.isObject)(val))
10009
10009
  return Object.values(val);
10010
- if ((0, import_utils27.isNumber)(val))
10010
+ if ((0, import_utils28.isNumber)(val))
10011
10011
  return [val];
10012
10012
  };
10013
10013
  }
@@ -11531,13 +11531,13 @@ var require_on = __commonJS({
11531
11531
  triggerEventOnUpdate: () => triggerEventOnUpdate
11532
11532
  });
11533
11533
  module2.exports = __toCommonJS2(on_exports);
11534
- var import_utils27 = require_cjs();
11534
+ var import_utils28 = require_cjs();
11535
11535
  var applyEvent = (param, element, state, context, options) => {
11536
11536
  return param.call(element, element, state || element.state, context || element.context, options);
11537
11537
  };
11538
11538
  var triggerEventOn = (param, element, options) => {
11539
11539
  var _a;
11540
- if (element.on && (0, import_utils27.isFunction)(element.on[param])) {
11540
+ if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
11541
11541
  const { state, context } = element;
11542
11542
  return applyEvent(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), element, state, context, options);
11543
11543
  }
@@ -11547,7 +11547,7 @@ var require_on = __commonJS({
11547
11547
  };
11548
11548
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
11549
11549
  var _a;
11550
- if (element.on && (0, import_utils27.isFunction)(element.on[param])) {
11550
+ if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
11551
11551
  const { state, context } = element;
11552
11552
  return applyEventUpdate(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), updatedObj, element, state, context, options);
11553
11553
  }
@@ -11568,7 +11568,7 @@ var require_on = __commonJS({
11568
11568
  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
11569
  continue;
11570
11570
  const appliedFunction = element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]);
11571
- if ((0, import_utils27.isFunction)(appliedFunction)) {
11571
+ if ((0, import_utils28.isFunction)(appliedFunction)) {
11572
11572
  node3.addEventListener(param, (event) => {
11573
11573
  const { state, context } = element;
11574
11574
  appliedFunction.call(element, event, element, state, context, options);
@@ -11703,9 +11703,9 @@ var require_can = __commonJS({
11703
11703
  });
11704
11704
  module2.exports = __toCommonJS2(can_exports);
11705
11705
  var import_report = require_cjs5();
11706
- var import_utils27 = require_cjs();
11706
+ var import_utils28 = require_cjs();
11707
11707
  var canRenderTag = (tag) => {
11708
- return (0, import_utils27.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11708
+ return (0, import_utils28.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11709
11709
  };
11710
11710
  }
11711
11711
  });
@@ -11766,8 +11766,8 @@ var require_cjs7 = __commonJS({
11766
11766
  });
11767
11767
  module2.exports = __toCommonJS2(router_exports);
11768
11768
  var import_event = require_cjs6();
11769
- var import_utils27 = require_cjs();
11770
- var getActiveRoute = (level = 0, route = import_utils27.window.location.pathname) => {
11769
+ var import_utils28 = require_cjs();
11770
+ var getActiveRoute = (level = 0, route = import_utils28.window.location.pathname) => {
11771
11771
  const routeArray = route.split("/");
11772
11772
  const activeRoute = routeArray[level + 1];
11773
11773
  if (activeRoute)
@@ -11781,7 +11781,7 @@ var require_cjs7 = __commonJS({
11781
11781
  initialRender: false,
11782
11782
  scrollToTop: true,
11783
11783
  scrollToNode: false,
11784
- scrollNode: import_utils27.document && import_utils27.document.documentElement,
11784
+ scrollNode: import_utils28.document && import_utils28.document.documentElement,
11785
11785
  scrollBody: false,
11786
11786
  useFragment: false,
11787
11787
  updateState: true,
@@ -11790,15 +11790,15 @@ var require_cjs7 = __commonJS({
11790
11790
  scrollToOptions: { behavior: "smooth" }
11791
11791
  };
11792
11792
  var router = (path, element, state = {}, options = {}) => {
11793
- const win = element.context.window || import_utils27.window;
11794
- const doc = element.context.document || import_utils27.document;
11793
+ const win = element.context.window || import_utils28.window;
11794
+ const doc = element.context.document || import_utils28.document;
11795
11795
  const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
11796
11796
  lastLevel = opts.lastLevel;
11797
11797
  const ref = element.__ref;
11798
11798
  if (opts.contentElementKey !== "content" && opts.contentElementKey !== ref.contentElementKey || !ref.contentElementKey) {
11799
11799
  ref.contentElementKey = opts.contentElementKey || "content";
11800
11800
  }
11801
- const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
11801
+ const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
11802
11802
  const urlObj = new win.URL(win.location.origin + path);
11803
11803
  const { pathname, search, hash: hash3 } = urlObj;
11804
11804
  const rootNode = element.node;
@@ -13158,11 +13158,11 @@ var require_methods = __commonJS({
13158
13158
  values: () => values
13159
13159
  });
13160
13160
  module2.exports = __toCommonJS2(methods_exports);
13161
- var import_utils27 = require_cjs();
13161
+ var import_utils28 = require_cjs();
13162
13162
  var import_ignore = require_ignore();
13163
13163
  var parse4 = function() {
13164
13164
  const state = this;
13165
- if ((0, import_utils27.isObject)(state)) {
13165
+ if ((0, import_utils28.isObject)(state)) {
13166
13166
  const obj = {};
13167
13167
  for (const param in state) {
13168
13168
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -13170,7 +13170,7 @@ var require_methods = __commonJS({
13170
13170
  }
13171
13171
  }
13172
13172
  return obj;
13173
- } else if ((0, import_utils27.isArray)(state)) {
13173
+ } else if ((0, import_utils28.isArray)(state)) {
13174
13174
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
13175
13175
  }
13176
13176
  };
@@ -13190,7 +13190,7 @@ var require_methods = __commonJS({
13190
13190
  const state = this;
13191
13191
  const element = state.__element;
13192
13192
  const stateKey = element.__ref.__state;
13193
- if ((0, import_utils27.isString)(stateKey)) {
13193
+ if ((0, import_utils28.isString)(stateKey)) {
13194
13194
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
13195
13195
  return element.state;
13196
13196
  }
@@ -13203,7 +13203,7 @@ var require_methods = __commonJS({
13203
13203
  for (const key in state.__children) {
13204
13204
  const child = state.__children[key];
13205
13205
  if (child.state) {
13206
- if ((0, import_utils27.isArray)(child.state)) {
13206
+ if ((0, import_utils28.isArray)(child.state)) {
13207
13207
  Object.defineProperty(child.state, "parent", {
13208
13208
  value: state.parent,
13209
13209
  enumerable: false,
@@ -13237,10 +13237,10 @@ var require_methods = __commonJS({
13237
13237
  };
13238
13238
  var add = function(value2, options = {}) {
13239
13239
  const state = this;
13240
- if ((0, import_utils27.isArray)(state)) {
13240
+ if ((0, import_utils28.isArray)(state)) {
13241
13241
  state.push(value2);
13242
13242
  state.update(state.parse(), { overwrite: true, ...options });
13243
- } else if ((0, import_utils27.isObject)(state)) {
13243
+ } else if ((0, import_utils28.isObject)(state)) {
13244
13244
  const key = Object.keys(state).length;
13245
13245
  state.update({ [key]: value2 }, options);
13246
13246
  }
@@ -13251,36 +13251,41 @@ var require_methods = __commonJS({
13251
13251
  };
13252
13252
  var remove = function(key, options = {}) {
13253
13253
  const state = this;
13254
- state[key] = null;
13255
- return state.set(state.parse(), { replace: true, ...options });
13254
+ if ((0, import_utils28.isArray)(state))
13255
+ (0, import_utils28.removeFromArray)(state, key);
13256
+ if ((0, import_utils28.isObject)(state))
13257
+ (0, import_utils28.removeFromObject)(state, key);
13258
+ if (options.applyReset)
13259
+ return state.set(state.parse(), { replace: true, ...options });
13260
+ return state.update();
13256
13261
  };
13257
13262
  var set3 = function(val, options = {}) {
13258
13263
  const state = this;
13259
- const value2 = (0, import_utils27.deepClone)(val);
13264
+ const value2 = (0, import_utils28.deepClone)(val);
13260
13265
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
13261
13266
  };
13262
13267
  var reset = function(options = {}) {
13263
13268
  const state = this;
13264
- const value2 = (0, import_utils27.deepClone)(state.parse());
13269
+ const value2 = (0, import_utils28.deepClone)(state.parse());
13265
13270
  return state.set(value2, { replace: true, ...options });
13266
13271
  };
13267
13272
  var apply = function(func, options = {}) {
13268
13273
  const state = this;
13269
- if ((0, import_utils27.isFunction)(func)) {
13274
+ if ((0, import_utils28.isFunction)(func)) {
13270
13275
  const value2 = func(state);
13271
13276
  return state.update(value2, { replace: true, ...options });
13272
13277
  }
13273
13278
  };
13274
13279
  var applyReplace = function(func, options = {}) {
13275
13280
  const state = this;
13276
- if ((0, import_utils27.isFunction)(func)) {
13281
+ if ((0, import_utils28.isFunction)(func)) {
13277
13282
  const value2 = func(state);
13278
13283
  return state.replace(value2, options);
13279
13284
  }
13280
13285
  };
13281
13286
  var applyFunction = function(func, options = {}) {
13282
13287
  const state = this;
13283
- if ((0, import_utils27.isFunction)(func)) {
13288
+ if ((0, import_utils28.isFunction)(func)) {
13284
13289
  func(state);
13285
13290
  return state.update(state.parse(), { replace: true, ...options });
13286
13291
  }
@@ -13344,7 +13349,7 @@ var require_inherit = __commonJS({
13344
13349
  isState: () => isState2
13345
13350
  });
13346
13351
  module2.exports = __toCommonJS2(inherit_exports);
13347
- var import_utils27 = require_cjs();
13352
+ var import_utils28 = require_cjs();
13348
13353
  var import_ignore = require_ignore();
13349
13354
  var getRootStateInKey = (stateKey, parentState) => {
13350
13355
  if (!stateKey.includes("~/"))
@@ -13409,11 +13414,11 @@ var require_inherit = __commonJS({
13409
13414
  var createInheritedState = (element, parent) => {
13410
13415
  const ref = element.__ref;
13411
13416
  const inheritedState = findInheritedState(element, parent);
13412
- if ((0, import_utils27.isUndefined)(inheritedState))
13417
+ if ((0, import_utils28.isUndefined)(inheritedState))
13413
13418
  return element.state;
13414
- if ((0, import_utils27.is)(inheritedState)("object", "array")) {
13415
- return (0, import_utils27.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13416
- } else if ((0, import_utils27.is)(inheritedState)("string", "number", "boolean")) {
13419
+ if ((0, import_utils28.is)(inheritedState)("object", "array")) {
13420
+ return (0, import_utils28.deepClone)(inheritedState, { exclude: import_ignore.IGNORE_STATE_PARAMS });
13421
+ } else if ((0, import_utils28.is)(inheritedState)("string", "number", "boolean")) {
13417
13422
  ref.__stateType = typeof inheritedState;
13418
13423
  return { value: inheritedState };
13419
13424
  }
@@ -13422,12 +13427,12 @@ var require_inherit = __commonJS({
13422
13427
  var checkIfInherits = (element) => {
13423
13428
  const ref = element.__ref;
13424
13429
  const stateKey = ref.__state;
13425
- if (stateKey && (0, import_utils27.is)(stateKey)("number", "string", "boolean"))
13430
+ if (stateKey && (0, import_utils28.is)(stateKey)("number", "string", "boolean"))
13426
13431
  return true;
13427
13432
  return false;
13428
13433
  };
13429
13434
  var isState2 = function(state) {
13430
- if (!(0, import_utils27.isObjectLike)(state))
13435
+ if (!(0, import_utils28.isObjectLike)(state))
13431
13436
  return false;
13432
13437
  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;
13433
13438
  };
@@ -13476,7 +13481,7 @@ var require_updateState = __commonJS({
13476
13481
  var import_report = require_cjs5();
13477
13482
  var import_event = require_cjs6();
13478
13483
  var import_ignore = require_ignore();
13479
- var import_utils27 = require_cjs();
13484
+ var import_utils28 = require_cjs();
13480
13485
  var import_inherit = require_inherit();
13481
13486
  var STATE_UPDATE_OPTIONS = {
13482
13487
  overwrite: true,
@@ -13491,7 +13496,7 @@ var require_updateState = __commonJS({
13491
13496
  if (options.onEach)
13492
13497
  options.onEach(element, state, element.context, options);
13493
13498
  if (!options.updateByState)
13494
- (0, import_utils27.merge)(options, STATE_UPDATE_OPTIONS);
13499
+ (0, import_utils28.merge)(options, STATE_UPDATE_OPTIONS);
13495
13500
  if (!state.__element)
13496
13501
  (0, import_report.report)("ElementOnStateIsNotDefined");
13497
13502
  if (options.preventInheritAtCurrentState === true) {
@@ -13521,10 +13526,10 @@ var require_updateState = __commonJS({
13521
13526
  const shallow = overwrite === "shallow" || overwrite === "shallow-once";
13522
13527
  const merge22 = overwrite === "merge";
13523
13528
  if (merge22) {
13524
- (0, import_utils27.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13529
+ (0, import_utils28.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
13525
13530
  return;
13526
13531
  }
13527
- const overwriteFunc = shallow ? import_utils27.overwriteShallow : import_utils27.overwriteDeep;
13532
+ const overwriteFunc = shallow ? import_utils28.overwriteShallow : import_utils28.overwriteDeep;
13528
13533
  if (options.overwrite === "shallow-once")
13529
13534
  options.overwrite = true;
13530
13535
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
@@ -13549,7 +13554,7 @@ var require_updateState = __commonJS({
13549
13554
  const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
13550
13555
  const targetParent = findRootState || findGrandParentState || parent.state;
13551
13556
  if (options.replace)
13552
- (0, import_utils27.overwriteDeep)(targetParent, changesValue || value2);
13557
+ (0, import_utils28.overwriteDeep)(targetParent, changesValue || value2);
13553
13558
  targetParent.update(changesValue, {
13554
13559
  execStateFunction: false,
13555
13560
  isHoisted: true,
@@ -13618,7 +13623,7 @@ var require_create = __commonJS({
13618
13623
  });
13619
13624
  module2.exports = __toCommonJS2(create_exports);
13620
13625
  var import_event = require_cjs6();
13621
- var import_utils27 = require_cjs();
13626
+ var import_utils28 = require_cjs();
13622
13627
  var import_ignore = require_ignore();
13623
13628
  var import_methods = require_methods();
13624
13629
  var import_updateState = require_updateState();
@@ -13638,7 +13643,7 @@ var require_create = __commonJS({
13638
13643
  return element.state;
13639
13644
  if ((0, import_inherit.checkIfInherits)(element)) {
13640
13645
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
13641
- element.state = (0, import_utils27.isUndefined)(inheritedState) ? {} : inheritedState;
13646
+ element.state = (0, import_utils28.isUndefined)(inheritedState) ? {} : inheritedState;
13642
13647
  }
13643
13648
  const dependentState = applyDependentState(element, element.state || parent.state || {});
13644
13649
  if (dependentState)
@@ -13649,12 +13654,12 @@ var require_create = __commonJS({
13649
13654
  };
13650
13655
  var applyDependentState = (element, state) => {
13651
13656
  const { __ref, ref, __element } = state;
13652
- const origState = (0, import_utils27.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13657
+ const origState = (0, import_utils28.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
13653
13658
  if (!origState)
13654
13659
  return;
13655
- const dependentState = (0, import_utils27.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13660
+ const dependentState = (0, import_utils28.deepClone)(origState, import_ignore.IGNORE_STATE_PARAMS);
13656
13661
  const newDepends = { [element.key]: dependentState };
13657
- const __depends = (0, import_utils27.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13662
+ const __depends = (0, import_utils28.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
13658
13663
  if (Array.isArray(origState)) {
13659
13664
  addProtoToArray(origState, { ...Object.getPrototypeOf(origState), __depends });
13660
13665
  } else {
@@ -13665,12 +13670,12 @@ var require_create = __commonJS({
13665
13670
  var checkForTypes = (element) => {
13666
13671
  const { state: orig, props: props4, __ref: ref } = element;
13667
13672
  const state = (props4 == null ? void 0 : props4.state) || orig;
13668
- if ((0, import_utils27.isFunction)(state)) {
13673
+ if ((0, import_utils28.isFunction)(state)) {
13669
13674
  ref.__state = state;
13670
- return (0, import_utils27.exec)(state, element);
13671
- } else if ((0, import_utils27.is)(state)("string", "number")) {
13675
+ return (0, import_utils28.exec)(state, element);
13676
+ } else if ((0, import_utils28.is)(state)("string", "number")) {
13672
13677
  ref.__state = state;
13673
- return {};
13678
+ return { value: state };
13674
13679
  } else if (state === true) {
13675
13680
  ref.__state = element.key;
13676
13681
  return {};
@@ -13723,7 +13728,7 @@ var require_create = __commonJS({
13723
13728
  __children: {},
13724
13729
  root: ref.root ? ref.root.state : state
13725
13730
  };
13726
- if ((0, import_utils27.isArray)(state)) {
13731
+ if ((0, import_utils28.isArray)(state)) {
13727
13732
  addProtoToArray(state, proto);
13728
13733
  } else {
13729
13734
  Object.setPrototypeOf(state, proto);
@@ -15243,6 +15248,169 @@ var init_Avatar = __esm({
15243
15248
  }
15244
15249
  });
15245
15250
 
15251
+ // ../uikit/Range/index.js
15252
+ var import_utils17, import_scratch12, returnPropertyValue, Range, RangeWithButtons;
15253
+ var init_Range = __esm({
15254
+ "../uikit/Range/index.js"() {
15255
+ "use strict";
15256
+ import_utils17 = __toESM(require_cjs());
15257
+ import_scratch12 = __toESM(require_cjs2());
15258
+ returnPropertyValue = (el, property, def) => {
15259
+ const val = el.props && el.props[property];
15260
+ const r = (0, import_utils17.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
15261
+ return r + "";
15262
+ };
15263
+ Range = {
15264
+ props: {
15265
+ appearance: "none",
15266
+ width: "100%",
15267
+ height: "2px",
15268
+ outline: "none",
15269
+ flex: 1,
15270
+ onInput: (ev, el, s) => {
15271
+ const props4 = el.props;
15272
+ if ((0, import_utils17.isFunction)(props4.onInput)) {
15273
+ props4.onInput(ev, el, s);
15274
+ } else {
15275
+ s.update({ value: parseFloat(el.node.value) });
15276
+ }
15277
+ },
15278
+ onChange: (ev, el, s) => {
15279
+ const props4 = el.props;
15280
+ if ((0, import_utils17.isFunction)(props4.onChange)) {
15281
+ props4.onChange(ev, el, s);
15282
+ } else {
15283
+ s.update({ value: parseFloat(el.node.value) });
15284
+ }
15285
+ },
15286
+ "::-webkit-slider-thumb": {
15287
+ boxSizing: "content-box",
15288
+ width: "8px",
15289
+ height: "8px",
15290
+ borderWidth: "2px",
15291
+ borderStyle: "solid",
15292
+ borderRadius: "100%",
15293
+ opacity: ".8",
15294
+ style: {
15295
+ appearance: "none"
15296
+ }
15297
+ },
15298
+ "::-webkit-slider-runnable-track": {},
15299
+ "@dark": {
15300
+ background: "white 0.2",
15301
+ "::-webkit-slider-thumb": {
15302
+ background: "#232526",
15303
+ borderColor: (0, import_scratch12.opacify)("#454646", 0.75)
15304
+ },
15305
+ ":hover": {
15306
+ "::-webkit-slider-thumb": {
15307
+ borderColor: (0, import_scratch12.opacify)("#fff", 0.35)
15308
+ }
15309
+ },
15310
+ ":focus": {
15311
+ "::-webkit-slider-thumb": {
15312
+ borderColor: "#3C6AC0"
15313
+ }
15314
+ }
15315
+ },
15316
+ "@light": {
15317
+ background: "gray9",
15318
+ "::-webkit-slider-thumb": {
15319
+ background: "white",
15320
+ borderColor: "gray9"
15321
+ },
15322
+ ":hover": {
15323
+ "::-webkit-slider-thumb": {
15324
+ borderColor: "gray7"
15325
+ }
15326
+ },
15327
+ ":focus": {
15328
+ "::-webkit-slider-thumb": {
15329
+ borderColor: "blue"
15330
+ }
15331
+ }
15332
+ }
15333
+ },
15334
+ tag: "input",
15335
+ attr: {
15336
+ type: "range",
15337
+ value: (el, s) => parseFloat(el.state.value || el.props.value || el.props.defaultValue),
15338
+ min: (el, s) => returnPropertyValue(el, "min", 0),
15339
+ max: (el, s) => returnPropertyValue(el, "max", 100),
15340
+ step: (el, s) => returnPropertyValue(el, "step", 1)
15341
+ }
15342
+ };
15343
+ RangeWithButtons = {
15344
+ SquareButton_minus: {
15345
+ icon: "minus",
15346
+ theme: "field",
15347
+ onClick: (ev, el, s) => {
15348
+ const parentProps = el.parent.props;
15349
+ if ((0, import_utils17.isFunction)(parentProps.onDecrease)) {
15350
+ parentProps.onDecrease(ev, el.parent, s);
15351
+ } else {
15352
+ const value2 = parseFloat(s.value);
15353
+ const min = returnPropertyValue(el.parent, "min", 1);
15354
+ const step = returnPropertyValue(el.parent, "step", 1);
15355
+ if (value2 > min) {
15356
+ s.update({ value: value2 - step });
15357
+ }
15358
+ }
15359
+ }
15360
+ },
15361
+ Value: {
15362
+ tag: "span",
15363
+ width: "4ch",
15364
+ text: ({ state, parent }) => {
15365
+ const unit = returnPropertyValue(parent, "unit", "");
15366
+ return "" + (state.value || state.defaultValue || 0) + unit;
15367
+ }
15368
+ },
15369
+ Range: {
15370
+ attr: {
15371
+ value: (el, s) => parseFloat(s.value || s.defaultValue),
15372
+ min: (el, s) => returnPropertyValue(el.parent, "min", 0),
15373
+ max: (el, s) => returnPropertyValue(el.parent, "max", 100),
15374
+ step: (el, s) => returnPropertyValue(el.parent, "step", 1)
15375
+ },
15376
+ onInput: (ev, el, s) => {
15377
+ const parentProps = el.parent.props;
15378
+ if ((0, import_utils17.isFunction)(parentProps.onInput)) {
15379
+ parentProps.onInput(ev, el, s);
15380
+ } else {
15381
+ s.update({ value: parseFloat(el.node.value) });
15382
+ }
15383
+ },
15384
+ onChange: (ev, el, s) => {
15385
+ const parentProps = el.parent.props;
15386
+ if ((0, import_utils17.isFunction)(parentProps.onChange)) {
15387
+ parentProps.onChange(ev, el, s);
15388
+ } else {
15389
+ s.update({ value: parseFloat(el.node.value) });
15390
+ }
15391
+ }
15392
+ },
15393
+ SquareButton_plus: {
15394
+ theme: "field",
15395
+ icon: "plus",
15396
+ onClick: (ev, el, s) => {
15397
+ const parentProps = el.parent.props;
15398
+ if ((0, import_utils17.isFunction)(parentProps.onIncrease)) {
15399
+ parentProps.onIncrease(ev, el.parent, s);
15400
+ } else {
15401
+ const value2 = parseFloat(s.value);
15402
+ const max = returnPropertyValue(el.parent, "max", 1);
15403
+ const step = returnPropertyValue(el.parent, "step", 1);
15404
+ if (value2 < max) {
15405
+ s.update({ value: value2 + step });
15406
+ }
15407
+ }
15408
+ }
15409
+ }
15410
+ };
15411
+ }
15412
+ });
15413
+
15246
15414
  // ../uikit/index.js
15247
15415
  var uikit_exports = {};
15248
15416
  __export(uikit_exports, {
@@ -15306,6 +15474,8 @@ __export(uikit_exports, {
15306
15474
  Pseudo: () => Pseudo,
15307
15475
  Radio: () => Radio,
15308
15476
  RadioHgroup: () => RadioHgroup,
15477
+ Range: () => Range,
15478
+ RangeWithButtons: () => RangeWithButtons,
15309
15479
  RouteLink: () => RouteLink,
15310
15480
  RouterLink: () => RouterLink,
15311
15481
  Select: () => Select,
@@ -15348,6 +15518,7 @@ var init_uikit = __esm({
15348
15518
  init_Dialog();
15349
15519
  init_Tooltip();
15350
15520
  init_Avatar();
15521
+ init_Range();
15351
15522
  }
15352
15523
  });
15353
15524
 
@@ -15522,11 +15693,11 @@ var require_tree = __commonJS({
15522
15693
  TREE: () => TREE
15523
15694
  });
15524
15695
  module2.exports = __toCommonJS2(tree_exports);
15525
- var import_utils27 = require_cjs();
15696
+ var import_utils28 = require_cjs();
15526
15697
  var import_report = require_cjs5();
15527
15698
  var ROOT = {
15528
15699
  key: ":root",
15529
- node: import_utils27.document ? import_utils27.document.body : (0, import_report.report)("DocumentNotDefined", import_utils27.document)
15700
+ node: import_utils28.document ? import_utils28.document.body : (0, import_report.report)("DocumentNotDefined", import_utils28.document)
15530
15701
  };
15531
15702
  var TREE = ROOT;
15532
15703
  }
@@ -15593,10 +15764,10 @@ var require_cache = __commonJS({
15593
15764
  module2.exports = __toCommonJS2(cache_exports);
15594
15765
  var import_report = require_cjs5();
15595
15766
  var import_event = require_cjs6();
15596
- var import_utils27 = require_cjs();
15767
+ var import_utils28 = require_cjs();
15597
15768
  var createHTMLNode = (element) => {
15598
15769
  const { tag, context } = element;
15599
- const doc = context.document || import_utils27.document;
15770
+ const doc = context.document || import_utils28.document;
15600
15771
  if (tag) {
15601
15772
  if (tag === "string")
15602
15773
  return doc.createTextNode(element.text);
@@ -15612,16 +15783,16 @@ var require_cache = __commonJS({
15612
15783
  };
15613
15784
  var detectTag = (element) => {
15614
15785
  let { tag, key, props: props4 } = element;
15615
- tag = (0, import_utils27.exec)(tag, element);
15786
+ tag = (0, import_utils28.exec)(tag, element);
15616
15787
  if (tag === true)
15617
15788
  tag = key;
15618
- if ((0, import_utils27.isObject)(props4) && (0, import_utils27.isString)(props4.tag)) {
15619
- const tagExists = (0, import_utils27.isValidHtmlTag)(props4.tag);
15789
+ if ((0, import_utils28.isObject)(props4) && (0, import_utils28.isString)(props4.tag)) {
15790
+ const tagExists = (0, import_utils28.isValidHtmlTag)(props4.tag);
15620
15791
  if (tagExists)
15621
15792
  return props4.tag;
15622
15793
  }
15623
- if ((0, import_utils27.isString)(tag)) {
15624
- if ((0, import_utils27.isValidHtmlTag)(tag))
15794
+ if ((0, import_utils28.isString)(tag)) {
15795
+ if ((0, import_utils28.isValidHtmlTag)(tag))
15625
15796
  return tag;
15626
15797
  } else {
15627
15798
  let keyAsTag = key.toLowerCase();
@@ -15629,7 +15800,7 @@ var require_cache = __commonJS({
15629
15800
  keyAsTag = keyAsTag.split(".")[0];
15630
15801
  if (keyAsTag.includes("_"))
15631
15802
  keyAsTag = keyAsTag.split("_")[0];
15632
- if ((0, import_utils27.isValidHtmlTag)(keyAsTag))
15803
+ if ((0, import_utils28.isValidHtmlTag)(keyAsTag))
15633
15804
  return keyAsTag;
15634
15805
  }
15635
15806
  return "div";
@@ -15797,9 +15968,9 @@ var require_inherit2 = __commonJS({
15797
15968
  inheritParentProps: () => inheritParentProps
15798
15969
  });
15799
15970
  module2.exports = __toCommonJS2(inherit_exports);
15800
- var import_utils27 = require_cjs();
15971
+ var import_utils28 = require_cjs();
15801
15972
  var objectizeStringProperty = (propValue) => {
15802
- if ((0, import_utils27.is)(propValue)("string", "number")) {
15973
+ if ((0, import_utils28.is)(propValue)("string", "number")) {
15803
15974
  return { inheritedString: propValue };
15804
15975
  }
15805
15976
  return propValue;
@@ -15807,9 +15978,9 @@ var require_inherit2 = __commonJS({
15807
15978
  var inheritParentProps = (element, parent) => {
15808
15979
  var _a;
15809
15980
  let propsStack = [];
15810
- const parentProps = (0, import_utils27.exec)(parent, parent.state).props;
15981
+ const parentProps = (0, import_utils28.exec)(parent, parent.state).props;
15811
15982
  const matchParent = parent.props && parentProps[element.key];
15812
- const matchParentIsString = (0, import_utils27.isString)(matchParent);
15983
+ const matchParentIsString = (0, import_utils28.isString)(matchParent);
15813
15984
  const matchParentChildProps = parentProps && parentProps.childProps;
15814
15985
  if (matchParent) {
15815
15986
  if (matchParentIsString) {
@@ -15857,19 +16028,19 @@ var require_create3 = __commonJS({
15857
16028
  syncProps: () => syncProps
15858
16029
  });
15859
16030
  module2.exports = __toCommonJS2(create_exports);
15860
- var import_utils27 = require_cjs();
16031
+ var import_utils28 = require_cjs();
15861
16032
  var import_ignore = require_ignore2();
15862
16033
  var import_inherit = require_inherit2();
15863
16034
  var createPropsStack = (element, parent) => {
15864
16035
  const { props: props4, __ref: ref } = element;
15865
16036
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
15866
- if ((0, import_utils27.isObject)(props4))
16037
+ if ((0, import_utils28.isObject)(props4))
15867
16038
  propsStack.push(props4);
15868
16039
  else if (props4 === "inherit" && parent.props)
15869
16040
  propsStack.push(parent.props);
15870
16041
  else if (props4)
15871
16042
  propsStack.push(props4);
15872
- if ((0, import_utils27.isArray)(ref.__extend)) {
16043
+ if ((0, import_utils28.isArray)(ref.__extend)) {
15873
16044
  ref.__extend.forEach((extend) => {
15874
16045
  if (extend.props && extend.props !== props4)
15875
16046
  propsStack.push(extend.props);
@@ -15886,13 +16057,13 @@ var require_create3 = __commonJS({
15886
16057
  return;
15887
16058
  let execProps;
15888
16059
  try {
15889
- execProps = (0, import_utils27.exec)(v, element);
16060
+ execProps = (0, import_utils28.exec)(v, element);
15890
16061
  } catch (e) {
15891
16062
  element.error(e, opts);
15892
16063
  }
15893
- element.props = (0, import_utils27.deepMerge)(
16064
+ element.props = (0, import_utils28.deepMerge)(
15894
16065
  mergedProps,
15895
- (0, import_utils27.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
16066
+ (0, import_utils28.deepClone)(execProps, { ignore: import_ignore.IGNORE_PROPS_PARAMS }),
15896
16067
  import_ignore.IGNORE_PROPS_PARAMS
15897
16068
  );
15898
16069
  });
@@ -16040,7 +16211,7 @@ var require_object2 = __commonJS({
16040
16211
  overwriteShallow: () => overwriteShallow2
16041
16212
  });
16042
16213
  module2.exports = __toCommonJS2(object_exports);
16043
- var import_utils27 = require_cjs();
16214
+ var import_utils28 = require_cjs();
16044
16215
  var import_props = require_props();
16045
16216
  var IGNORE_STATE_PARAMS = [
16046
16217
  "update",
@@ -16092,7 +16263,7 @@ var require_object2 = __commonJS({
16092
16263
  "nextElement",
16093
16264
  "previousElement"
16094
16265
  ];
16095
- var METHODS_EXL = (0, import_utils27.joinArrays)(
16266
+ var METHODS_EXL = (0, import_utils28.joinArrays)(
16096
16267
  ["node", "state", "context", "extend", "__element"],
16097
16268
  METHODS,
16098
16269
  IGNORE_STATE_PARAMS,
@@ -16106,7 +16277,7 @@ var require_object2 = __commonJS({
16106
16277
  const extendProp = extend[e];
16107
16278
  if (elementProp === void 0) {
16108
16279
  element[e] = extendProp;
16109
- } else if ((0, import_utils27.isObjectLike)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16280
+ } else if ((0, import_utils28.isObjectLike)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16110
16281
  deepMerge7(elementProp, extendProp);
16111
16282
  }
16112
16283
  }
@@ -16153,7 +16324,7 @@ var require_object2 = __commonJS({
16153
16324
  continue;
16154
16325
  const objProp = obj[e];
16155
16326
  const paramsProp = params[e];
16156
- if ((0, import_utils27.isObjectLike)(objProp) && (0, import_utils27.isObjectLike)(paramsProp)) {
16327
+ if ((0, import_utils28.isObjectLike)(objProp) && (0, import_utils28.isObjectLike)(paramsProp)) {
16157
16328
  overwriteDeep2(objProp, paramsProp);
16158
16329
  } else if (paramsProp !== void 0) {
16159
16330
  obj[e] = paramsProp;
@@ -16162,15 +16333,15 @@ var require_object2 = __commonJS({
16162
16333
  return obj;
16163
16334
  };
16164
16335
  var mergeIfExisted = (a, b) => {
16165
- if ((0, import_utils27.isObjectLike)(a) && (0, import_utils27.isObjectLike)(b))
16336
+ if ((0, import_utils28.isObjectLike)(a) && (0, import_utils28.isObjectLike)(b))
16166
16337
  return deepMerge7(a, b);
16167
16338
  return a || b;
16168
16339
  };
16169
16340
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
16170
- return arr.reduce((a, c) => deepMerge7(a, (0, import_utils27.deepClone)(c, { exclude })), {});
16341
+ return arr.reduce((a, c) => deepMerge7(a, (0, import_utils28.deepClone)(c, { exclude })), {});
16171
16342
  };
16172
16343
  var mergeAndCloneIfArray = (obj) => {
16173
- return (0, import_utils27.isArray)(obj) ? mergeArray(obj) : (0, import_utils27.deepClone)(obj);
16344
+ return (0, import_utils28.isArray)(obj) ? mergeArray(obj) : (0, import_utils28.deepClone)(obj);
16174
16345
  };
16175
16346
  var flattenRecursive = (param, prop, stack = []) => {
16176
16347
  const objectized = mergeAndCloneIfArray(param);
@@ -16224,7 +16395,7 @@ var require_extendUtils = __commonJS({
16224
16395
  setHashedExtend: () => setHashedExtend
16225
16396
  });
16226
16397
  module2.exports = __toCommonJS2(extendUtils_exports);
16227
- var import_utils27 = require_cjs();
16398
+ var import_utils28 = require_cjs();
16228
16399
  var ENV3 = "development";
16229
16400
  var generateHash = () => Math.random().toString(36).substring(2);
16230
16401
  var extendStackRegistry = {};
@@ -16234,7 +16405,7 @@ var require_extendUtils = __commonJS({
16234
16405
  };
16235
16406
  var setHashedExtend = (extend, stack) => {
16236
16407
  const hash3 = generateHash();
16237
- if (!(0, import_utils27.isString)(extend)) {
16408
+ if (!(0, import_utils28.isString)(extend)) {
16238
16409
  extend.__hash = hash3;
16239
16410
  }
16240
16411
  extendStackRegistry[hash3] = stack;
@@ -16260,9 +16431,9 @@ var require_extendUtils = __commonJS({
16260
16431
  var flattenExtend = (extend, stack, context) => {
16261
16432
  if (!extend)
16262
16433
  return stack;
16263
- if ((0, import_utils27.isArray)(extend))
16434
+ if ((0, import_utils28.isArray)(extend))
16264
16435
  return extractArrayExtend(extend, stack, context);
16265
- if ((0, import_utils27.isString)(extend))
16436
+ if ((0, import_utils28.isString)(extend))
16266
16437
  extend = fallbackStringExtend(extend, context);
16267
16438
  stack.push(extend);
16268
16439
  if (extend.extend)
@@ -16277,14 +16448,14 @@ var require_extendUtils = __commonJS({
16277
16448
  const extendProp = extend[e];
16278
16449
  if (elementProp === void 0) {
16279
16450
  element[e] = extendProp;
16280
- } else if ((0, import_utils27.isObject)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16451
+ } else if ((0, import_utils28.isObject)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16281
16452
  deepMergeExtend(elementProp, extendProp);
16282
- } else if ((0, import_utils27.isArray)(elementProp) && (0, import_utils27.isArray)(extendProp)) {
16453
+ } else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isArray)(extendProp)) {
16283
16454
  element[e] = elementProp.concat(extendProp);
16284
- } else if ((0, import_utils27.isArray)(elementProp) && (0, import_utils27.isObject)(extendProp)) {
16455
+ } else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
16285
16456
  const obj = deepMergeExtend({}, elementProp);
16286
16457
  element[e] = deepMergeExtend(obj, extendProp);
16287
- } else if (elementProp === void 0 && (0, import_utils27.isFunction)(extendProp)) {
16458
+ } else if (elementProp === void 0 && (0, import_utils28.isFunction)(extendProp)) {
16288
16459
  element[e] = extendProp;
16289
16460
  }
16290
16461
  }
@@ -16292,13 +16463,13 @@ var require_extendUtils = __commonJS({
16292
16463
  };
16293
16464
  var cloneAndMergeArrayExtend = (stack) => {
16294
16465
  return stack.reduce((a, c) => {
16295
- return deepMergeExtend(a, (0, import_utils27.deepClone)(c));
16466
+ return deepMergeExtend(a, (0, import_utils28.deepClone)(c));
16296
16467
  }, {});
16297
16468
  };
16298
16469
  var fallbackStringExtend = (extend, context, options = {}) => {
16299
16470
  const COMPONENTS = context && context.components || options.components;
16300
16471
  const PAGES = context && context.pages || options.pages;
16301
- if ((0, import_utils27.isString)(extend)) {
16472
+ if ((0, import_utils28.isString)(extend)) {
16302
16473
  const componentExists = COMPONENTS && (COMPONENTS[extend] || COMPONENTS["smbls." + extend]);
16303
16474
  const pageExists = PAGES && extend.startsWith("/") && PAGES[extend];
16304
16475
  if (componentExists)
@@ -16358,30 +16529,30 @@ var require_extend = __commonJS({
16358
16529
  applyExtend: () => applyExtend
16359
16530
  });
16360
16531
  module2.exports = __toCommonJS2(extend_exports);
16361
- var import_utils27 = require_cjs();
16362
- var import_utils28 = require_utils();
16532
+ var import_utils28 = require_cjs();
16533
+ var import_utils29 = require_utils();
16363
16534
  var ENV3 = "development";
16364
16535
  var mainExtend;
16365
16536
  var applyExtend = (element, parent, options = {}) => {
16366
- if ((0, import_utils27.isFunction)(element))
16367
- element = (0, import_utils27.exec)(element, parent);
16537
+ if ((0, import_utils28.isFunction)(element))
16538
+ element = (0, import_utils28.exec)(element, parent);
16368
16539
  const { props: props4, __ref } = element;
16369
16540
  let extend = (props4 == null ? void 0 : props4.extends) || element.extends || element.extend;
16370
16541
  const context = element.context || parent.context;
16371
- extend = (0, import_utils28.fallbackStringExtend)(extend, context, options);
16372
- const extendStack = (0, import_utils28.getExtendStack)(extend, context);
16542
+ extend = (0, import_utils29.fallbackStringExtend)(extend, context, options);
16543
+ const extendStack = (0, import_utils29.getExtendStack)(extend, context);
16373
16544
  if (ENV3 !== "test" || ENV3 !== "development")
16374
16545
  delete element.extend;
16375
16546
  let childExtendStack = [];
16376
16547
  if (parent) {
16377
16548
  element.parent = parent;
16378
16549
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
16379
- childExtendStack = (0, import_utils28.getExtendStack)(parent.childExtend, context);
16550
+ childExtendStack = (0, import_utils29.getExtendStack)(parent.childExtend, context);
16380
16551
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
16381
16552
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
16382
16553
  const canExtendRecursive = element.key !== "__text";
16383
16554
  if (canExtendRecursive) {
16384
- const childExtendRecursiveStack = (0, import_utils28.getExtendStack)(parent.childExtendRecursive, context);
16555
+ const childExtendRecursiveStack = (0, import_utils29.getExtendStack)(parent.childExtendRecursive, context);
16385
16556
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
16386
16557
  element.childExtendRecursive = parent.childExtendRecursive;
16387
16558
  }
@@ -16392,7 +16563,7 @@ var require_extend = __commonJS({
16392
16563
  const childExtendLength = childExtendStack.length;
16393
16564
  let stack = [];
16394
16565
  if (extendLength && childExtendLength) {
16395
- stack = (0, import_utils28.jointStacks)(extendStack, childExtendStack);
16566
+ stack = (0, import_utils29.jointStacks)(extendStack, childExtendStack);
16396
16567
  } else if (extendLength) {
16397
16568
  stack = extendStack;
16398
16569
  } else if (childExtendLength) {
@@ -16401,22 +16572,22 @@ var require_extend = __commonJS({
16401
16572
  return element;
16402
16573
  if (context.defaultExtends) {
16403
16574
  if (!mainExtend) {
16404
- const defaultOptionsExtend = (0, import_utils28.getExtendStack)(context.defaultExtends, context);
16405
- mainExtend = (0, import_utils28.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16575
+ const defaultOptionsExtend = (0, import_utils29.getExtendStack)(context.defaultExtends, context);
16576
+ mainExtend = (0, import_utils29.cloneAndMergeArrayExtend)(defaultOptionsExtend);
16406
16577
  delete mainExtend.extend;
16407
16578
  }
16408
16579
  stack = [].concat(stack, mainExtend);
16409
16580
  }
16410
16581
  if (__ref)
16411
16582
  __ref.__extend = stack;
16412
- let mergedExtend = (0, import_utils28.cloneAndMergeArrayExtend)(stack);
16583
+ let mergedExtend = (0, import_utils29.cloneAndMergeArrayExtend)(stack);
16413
16584
  const COMPONENTS = context && context.components || options.components;
16414
- const component = (0, import_utils27.exec)(element.component || mergedExtend.component, element);
16585
+ const component = (0, import_utils28.exec)(element.component || mergedExtend.component, element);
16415
16586
  if (component && COMPONENTS && COMPONENTS[component]) {
16416
- const componentExtend = (0, import_utils28.cloneAndMergeArrayExtend)((0, import_utils28.getExtendStack)(COMPONENTS[component]));
16417
- mergedExtend = (0, import_utils28.deepMergeExtend)(componentExtend, mergedExtend);
16587
+ const componentExtend = (0, import_utils29.cloneAndMergeArrayExtend)((0, import_utils29.getExtendStack)(COMPONENTS[component]));
16588
+ mergedExtend = (0, import_utils29.deepMergeExtend)(componentExtend, mergedExtend);
16418
16589
  }
16419
- const merged = (0, import_utils28.deepMergeExtend)(element, mergedExtend);
16590
+ const merged = (0, import_utils29.deepMergeExtend)(element, mergedExtend);
16420
16591
  return merged;
16421
16592
  };
16422
16593
  }
@@ -16450,7 +16621,7 @@ var require_component2 = __commonJS({
16450
16621
  overwriteVariant: () => overwriteVariant
16451
16622
  });
16452
16623
  module2.exports = __toCommonJS2(component_exports);
16453
- var import_utils27 = require_cjs();
16624
+ var import_utils28 = require_cjs();
16454
16625
  var import_extend = require_extend();
16455
16626
  var import_mixins = require_mixins();
16456
16627
  var replaceOnKeys = (key) => key.replace(/on\w+/g, (match3) => match3.substring(2));
@@ -16471,7 +16642,7 @@ var require_component2 = __commonJS({
16471
16642
  if (isDefine) {
16472
16643
  newElem.define[k] = prop;
16473
16644
  }
16474
- const isComponent = (0, import_utils27.checkIfKeyIsComponent)(k);
16645
+ const isComponent = (0, import_utils28.checkIfKeyIsComponent)(k);
16475
16646
  const isRegistry = import_mixins.REGISTRY[k];
16476
16647
  if (isComponent || isRegistry) {
16477
16648
  newElem[k] = prop;
@@ -16485,25 +16656,25 @@ var require_component2 = __commonJS({
16485
16656
  let variantElement = element[variant];
16486
16657
  if (!variantElement)
16487
16658
  return;
16488
- const props4 = (0, import_utils27.isObject)(variantProps) ? variantProps : {};
16489
- if ((0, import_utils27.isString)(variantElement)) {
16659
+ const props4 = (0, import_utils28.isObject)(variantProps) ? variantProps : {};
16660
+ if ((0, import_utils28.isString)(variantElement)) {
16490
16661
  variantElement = {
16491
16662
  extend: [{ props: props4 }, variantElement]
16492
16663
  };
16493
16664
  } else if (variantElement.extend) {
16494
- variantElement = (0, import_utils27.addAdditionalExtend)({ props: props4 }, variantElement);
16665
+ variantElement = (0, import_utils28.addAdditionalExtend)({ props: props4 }, variantElement);
16495
16666
  }
16496
16667
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
16497
16668
  const { parent, ...rest } = extendedVariant;
16498
- return (0, import_utils27.overwriteDeep)(element, rest);
16669
+ return (0, import_utils28.overwriteDeep)(element, rest);
16499
16670
  };
16500
16671
  var applyVariant = (element) => {
16501
16672
  const { props: props4 } = element;
16502
- if (!(0, import_utils27.hasVariantProp)(element))
16673
+ if (!(0, import_utils28.hasVariantProp)(element))
16503
16674
  return element;
16504
16675
  const { variant } = props4;
16505
16676
  overwriteVariant(element, `.${variant}`);
16506
- const elKeys = Object.keys(element).filter((key) => (0, import_utils27.isVariant)(key));
16677
+ const elKeys = Object.keys(element).filter((key) => (0, import_utils28.isVariant)(key));
16507
16678
  elKeys.forEach((variant2) => {
16508
16679
  const slicedVariantElementKey = variant2.slice(1);
16509
16680
  const variantElementProps = props4[slicedVariantElementKey];
@@ -16568,20 +16739,20 @@ var require_attr = __commonJS({
16568
16739
  default: () => attr_default
16569
16740
  });
16570
16741
  module2.exports = __toCommonJS2(attr_exports);
16571
- var import_utils27 = require_cjs();
16742
+ var import_utils28 = require_cjs();
16572
16743
  var import_report = require_cjs5();
16573
- var import_utils28 = require_utils();
16744
+ var import_utils29 = require_utils();
16574
16745
  function attr(params, element, node3) {
16575
16746
  const { __ref: ref, props: props4 } = element;
16576
16747
  const { __attr } = ref;
16577
- if ((0, import_utils27.isNot)("object"))
16748
+ if ((0, import_utils28.isNot)("object"))
16578
16749
  (0, import_report.report)("HTMLInvalidAttr", params);
16579
16750
  if (params) {
16580
16751
  if (props4.attr)
16581
- (0, import_utils28.deepMerge)(params, props4.attr);
16752
+ (0, import_utils29.deepMerge)(params, props4.attr);
16582
16753
  for (const attr2 in params) {
16583
- const val = (0, import_utils27.exec)(params[attr2], element);
16584
- if (val !== false && !(0, import_utils27.isUndefined)(val) && !(0, import_utils27.isNull)(val) && node3.setAttribute)
16754
+ const val = (0, import_utils28.exec)(params[attr2], element);
16755
+ if (val !== false && !(0, import_utils28.isUndefined)(val) && !(0, import_utils28.isNull)(val) && node3.setAttribute)
16585
16756
  node3.setAttribute(attr2, val);
16586
16757
  else if (node3.removeAttribute)
16587
16758
  node3.removeAttribute(attr2);
@@ -16624,7 +16795,7 @@ var require_classList = __commonJS({
16624
16795
  default: () => classList_default
16625
16796
  });
16626
16797
  module2.exports = __toCommonJS2(classList_exports);
16627
- var import_utils27 = require_cjs();
16798
+ var import_utils28 = require_cjs();
16628
16799
  var assignKeyAsClassname = (element) => {
16629
16800
  const { key } = element;
16630
16801
  if (element.class === true)
@@ -16642,7 +16813,7 @@ var require_classList = __commonJS({
16642
16813
  else if (typeof param === "string")
16643
16814
  className += ` ${param}`;
16644
16815
  else if (typeof param === "function") {
16645
- className += ` ${(0, import_utils27.exec)(param, element)}`;
16816
+ className += ` ${(0, import_utils28.exec)(param, element)}`;
16646
16817
  }
16647
16818
  }
16648
16819
  return className;
@@ -16653,9 +16824,9 @@ var require_classList = __commonJS({
16653
16824
  const { key } = element;
16654
16825
  if (params === true)
16655
16826
  params = element.class = { key };
16656
- if ((0, import_utils27.isString)(params))
16827
+ if ((0, import_utils28.isString)(params))
16657
16828
  params = element.class = { default: params };
16658
- if ((0, import_utils27.isObject)(params))
16829
+ if ((0, import_utils28.isObject)(params))
16659
16830
  params = classify2(params, element);
16660
16831
  const className = params.replace(/\s+/g, " ").trim();
16661
16832
  if (element.ref)
@@ -16735,7 +16906,7 @@ var require_set = __commonJS({
16735
16906
  set: () => set3
16736
16907
  });
16737
16908
  module2.exports = __toCommonJS2(set_exports);
16738
- var import_utils27 = require_cjs();
16909
+ var import_utils28 = require_cjs();
16739
16910
  var import_options3 = require_options();
16740
16911
  var import_create = require_create4();
16741
16912
  var import_mixins = require_mixins();
@@ -16765,13 +16936,13 @@ var require_set = __commonJS({
16765
16936
  var _a;
16766
16937
  const element = el || this;
16767
16938
  const { __ref: ref } = element;
16768
- const content = (0, import_utils27.setContentKey)(element, options);
16939
+ const content = (0, import_utils28.setContentKey)(element, options);
16769
16940
  const __contentRef = content && content.__ref;
16770
16941
  const lazyLoad = element.props && element.props.lazyLoad;
16771
16942
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
16772
16943
  if (options.preventContentUpdate === true && !hasCollection)
16773
16944
  return;
16774
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils27.deepContains)(params, content)) {
16945
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils28.deepContains)(params, content)) {
16775
16946
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
16776
16947
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
16777
16948
  if (beforeUpdateReturns === false)
@@ -16832,7 +17003,7 @@ var require_content = __commonJS({
16832
17003
  updateContent: () => updateContent
16833
17004
  });
16834
17005
  module2.exports = __toCommonJS2(content_exports);
16835
- var import_utils27 = require_cjs();
17006
+ var import_utils28 = require_cjs();
16836
17007
  var import_set = require_set();
16837
17008
  var updateContent = function(params, options) {
16838
17009
  const element = this;
@@ -16846,7 +17017,7 @@ var require_content = __commonJS({
16846
17017
  var removeContent = function(el, opts = {}) {
16847
17018
  const element = el || this;
16848
17019
  const { __ref: ref } = element;
16849
- const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
17020
+ const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
16850
17021
  if (opts.contentElementKey !== "content")
16851
17022
  opts.contentElementKey = "content";
16852
17023
  if (element[contentElementKey]) {
@@ -16863,14 +17034,14 @@ var require_content = __commonJS({
16863
17034
  if (__cached && __cached[contentElementKey]) {
16864
17035
  if (__cached[contentElementKey].tag === "fragment")
16865
17036
  __cached[contentElementKey].parent.node.innerHTML = "";
16866
- else if (__cached[contentElementKey] && (0, import_utils27.isFunction)(__cached[contentElementKey].remove))
17037
+ else if (__cached[contentElementKey] && (0, import_utils28.isFunction)(__cached[contentElementKey].remove))
16867
17038
  __cached[contentElementKey].remove();
16868
17039
  }
16869
17040
  delete element[contentElementKey];
16870
17041
  }
16871
17042
  };
16872
17043
  function setContent(param, element, node3, opts) {
16873
- const contentElementKey = (0, import_utils27.setContentKey)(element, opts);
17044
+ const contentElementKey = (0, import_utils28.setContentKey)(element, opts);
16874
17045
  if (param && element) {
16875
17046
  if (element[contentElementKey].update) {
16876
17047
  element[contentElementKey].update({}, opts);
@@ -16910,18 +17081,18 @@ var require_data = __commonJS({
16910
17081
  default: () => data_default
16911
17082
  });
16912
17083
  module2.exports = __toCommonJS2(data_exports);
16913
- var import_utils27 = require_cjs();
17084
+ var import_utils28 = require_cjs();
16914
17085
  var import_report = require_cjs5();
16915
17086
  function data(params, element, node3) {
16916
17087
  if (params) {
16917
17088
  if (element.props.data)
16918
- (0, import_utils27.deepMerge)(params, element.props.data);
17089
+ (0, import_utils28.deepMerge)(params, element.props.data);
16919
17090
  if (params.showOnNode) {
16920
- if (!(0, import_utils27.isObject)(params))
17091
+ if (!(0, import_utils28.isObject)(params))
16921
17092
  (0, import_report.report)("HTMLInvalidData", params);
16922
17093
  for (const dataset in params) {
16923
17094
  if (dataset !== "showOnNode") {
16924
- node3.dataset[dataset] = (0, import_utils27.exec)(params[dataset], element);
17095
+ node3.dataset[dataset] = (0, import_utils28.exec)(params[dataset], element);
16925
17096
  }
16926
17097
  }
16927
17098
  }
@@ -16958,10 +17129,10 @@ var require_html = __commonJS({
16958
17129
  html: () => html
16959
17130
  });
16960
17131
  module2.exports = __toCommonJS2(html_exports);
16961
- var import_utils27 = require_cjs();
17132
+ var import_utils28 = require_cjs();
16962
17133
  function html(param, element, node3) {
16963
17134
  var _a;
16964
- const prop = (0, import_utils27.exec)(param, element) || (0, import_utils27.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
17135
+ const prop = (0, import_utils28.exec)(param, element) || (0, import_utils28.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
16965
17136
  const { __ref } = element;
16966
17137
  if (prop !== __ref.__html) {
16967
17138
  if (node3.nodeName === "SVG")
@@ -17002,12 +17173,12 @@ var require_style = __commonJS({
17002
17173
  style: () => style2
17003
17174
  });
17004
17175
  module2.exports = __toCommonJS2(style_exports);
17005
- var import_utils27 = require_cjs();
17176
+ var import_utils28 = require_cjs();
17006
17177
  var import_report = require_cjs5();
17007
17178
  function style2(params, element, node3) {
17008
17179
  if (params) {
17009
- if ((0, import_utils27.isObject)(params))
17010
- (0, import_utils27.map)(node3.style, params, element);
17180
+ if ((0, import_utils28.isObject)(params))
17181
+ (0, import_utils28.map)(node3.style, params, element);
17011
17182
  else
17012
17183
  (0, import_report.report)("HTMLInvalidStyles", params);
17013
17184
  }
@@ -17044,11 +17215,11 @@ var require_text = __commonJS({
17044
17215
  });
17045
17216
  module2.exports = __toCommonJS2(text_exports);
17046
17217
  var import_create = require_create4();
17047
- var import_utils27 = require_cjs();
17218
+ var import_utils28 = require_cjs();
17048
17219
  function text(param, element, node3) {
17049
- let prop = (0, import_utils27.exec)(param, element);
17050
- if ((0, import_utils27.isString)(prop) && prop.includes("{{")) {
17051
- prop = (0, import_utils27.replaceLiteralsWithObjectFields)(prop, element.state);
17220
+ let prop = (0, import_utils28.exec)(param, element);
17221
+ if ((0, import_utils28.isString)(prop) && prop.includes("{{")) {
17222
+ prop = (0, import_utils28.replaceLiteralsWithObjectFields)(prop, element.state);
17052
17223
  }
17053
17224
  if (element.tag === "string") {
17054
17225
  node3.nodeValue = prop;
@@ -17095,10 +17266,10 @@ var require_state = __commonJS({
17095
17266
  });
17096
17267
  module2.exports = __toCommonJS2(state_exports);
17097
17268
  var import_state2 = require_cjs8();
17098
- var import_utils27 = require_cjs();
17269
+ var import_utils28 = require_cjs();
17099
17270
  function state(params, element, node3) {
17100
- const state2 = (0, import_utils27.exec)(params, element);
17101
- if ((0, import_utils27.isObject)(state2)) {
17271
+ const state2 = (0, import_utils28.exec)(params, element);
17272
+ if ((0, import_utils28.isObject)(state2)) {
17102
17273
  for (const param in state2) {
17103
17274
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
17104
17275
  continue;
@@ -17139,13 +17310,13 @@ var require_scope = __commonJS({
17139
17310
  scope: () => scope
17140
17311
  });
17141
17312
  module2.exports = __toCommonJS2(scope_exports);
17142
- var import_utils27 = require_cjs();
17313
+ var import_utils28 = require_cjs();
17143
17314
  function scope(params, element, node3) {
17144
- if (!(0, import_utils27.isObject)(params))
17315
+ if (!(0, import_utils28.isObject)(params))
17145
17316
  return;
17146
17317
  for (const scopeItem in params) {
17147
17318
  const value2 = params[scopeItem];
17148
- if ((0, import_utils27.isFunction)(value2)) {
17319
+ if ((0, import_utils28.isFunction)(value2)) {
17149
17320
  element.scope[scopeItem] = value2.bind(element);
17150
17321
  } else {
17151
17322
  element.scope[scopeItem] = value2;
@@ -17374,7 +17545,7 @@ var require_methods2 = __commonJS({
17374
17545
  warn: () => warn
17375
17546
  });
17376
17547
  module2.exports = __toCommonJS2(methods_exports);
17377
- var import_utils27 = require_cjs();
17548
+ var import_utils28 = require_cjs();
17378
17549
  var import_tree = require_tree();
17379
17550
  var import_mixins = require_mixins();
17380
17551
  var ENV3 = "development";
@@ -17397,7 +17568,7 @@ var require_methods2 = __commonJS({
17397
17568
  function lookup3(param) {
17398
17569
  const el = this;
17399
17570
  let { parent } = el;
17400
- if ((0, import_utils27.isFunction)(param)) {
17571
+ if ((0, import_utils28.isFunction)(param)) {
17401
17572
  if (parent.state && param(parent, parent.state, parent.context))
17402
17573
  return parent;
17403
17574
  else if (parent.parent)
@@ -17426,7 +17597,7 @@ var require_methods2 = __commonJS({
17426
17597
  const childElem = el[v];
17427
17598
  if (v === param)
17428
17599
  return childElem;
17429
- else if ((0, import_utils27.isFunction)(param)) {
17600
+ else if ((0, import_utils28.isFunction)(param)) {
17430
17601
  const exec6 = param(childElem, childElem.state, childElem.context);
17431
17602
  if (childElem.state && exec6) {
17432
17603
  return childElem;
@@ -17447,7 +17618,7 @@ var require_methods2 = __commonJS({
17447
17618
  const childElem = el[v];
17448
17619
  if (v === param)
17449
17620
  results.push(childElem);
17450
- else if ((0, import_utils27.isFunction)(param)) {
17621
+ else if ((0, import_utils28.isFunction)(param)) {
17451
17622
  const exec6 = param(childElem, childElem.state, childElem.context);
17452
17623
  if (childElem.state && exec6)
17453
17624
  results.push(childElem);
@@ -17464,7 +17635,7 @@ var require_methods2 = __commonJS({
17464
17635
  for (const param in params) {
17465
17636
  const value2 = params[param];
17466
17637
  const childElem = el[param];
17467
- if ((0, import_utils27.isObject)(value2) && childElem)
17638
+ if ((0, import_utils28.isObject)(value2) && childElem)
17468
17639
  setNodeStyles.call(childElem, value2);
17469
17640
  else
17470
17641
  el.node.style[param] = value2;
@@ -17473,15 +17644,15 @@ var require_methods2 = __commonJS({
17473
17644
  }
17474
17645
  function remove() {
17475
17646
  const element = this;
17476
- if ((0, import_utils27.isFunction)(element.node.remove))
17647
+ if ((0, import_utils28.isFunction)(element.node.remove))
17477
17648
  element.node.remove();
17478
- else if (!(0, import_utils27.isProduction)()) {
17649
+ else if (!(0, import_utils28.isProduction)()) {
17479
17650
  console.warn("This item cant be removed");
17480
17651
  element.log();
17481
17652
  }
17482
17653
  delete element.parent[element.key];
17483
17654
  if (element.parent.__ref)
17484
- element.parent.__ref.__children = (0, import_utils27.removeValueFromArray)(element.parent.__ref.__children, element.key);
17655
+ element.parent.__ref.__children = (0, import_utils28.removeValueFromArray)(element.parent.__ref.__children, element.key);
17485
17656
  }
17486
17657
  function get(param) {
17487
17658
  const element = this;
@@ -17523,8 +17694,8 @@ var require_methods2 = __commonJS({
17523
17694
  if (v === "state") {
17524
17695
  if (element.__ref && !element.__ref.__hasRootState)
17525
17696
  return;
17526
- const parsedVal = (0, import_utils27.isFunction)(val && val.parse) ? val.parse() : val;
17527
- obj[v] = (0, import_utils27.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17697
+ const parsedVal = (0, import_utils28.isFunction)(val && val.parse) ? val.parse() : val;
17698
+ obj[v] = (0, import_utils28.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
17528
17699
  } else if (v === "scope") {
17529
17700
  if (element.__ref && !element.__ref.__hasRootScope)
17530
17701
  return;
@@ -17532,7 +17703,7 @@ var require_methods2 = __commonJS({
17532
17703
  } else if (v === "props") {
17533
17704
  const { __element, update, ...props4 } = element[v];
17534
17705
  obj[v] = props4;
17535
- } else if ((0, import_utils27.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17706
+ } else if ((0, import_utils28.isDefined)(val) && Object.hasOwnProperty.call(element, v))
17536
17707
  obj[v] = val;
17537
17708
  });
17538
17709
  return obj;
@@ -17543,7 +17714,7 @@ var require_methods2 = __commonJS({
17543
17714
  for (const v in obj) {
17544
17715
  if (excl.includes(v))
17545
17716
  return;
17546
- if ((0, import_utils27.isObjectLike)(obj[v])) {
17717
+ if ((0, import_utils28.isObjectLike)(obj[v])) {
17547
17718
  obj[v] = parseDeep.call(obj[v], excl);
17548
17719
  }
17549
17720
  }
@@ -17623,7 +17794,7 @@ var require_methods2 = __commonJS({
17623
17794
  changed: (cb) => {
17624
17795
  if (!changed)
17625
17796
  return;
17626
- const returns = cb(changes, (0, import_utils27.deepClone)(varCaches));
17797
+ const returns = cb(changes, (0, import_utils28.deepClone)(varCaches));
17627
17798
  for (const key in changes) {
17628
17799
  varCaches[key] = changes[key];
17629
17800
  }
@@ -17703,8 +17874,8 @@ var require_iterate = __commonJS({
17703
17874
  throughUpdatedExec: () => throughUpdatedExec
17704
17875
  });
17705
17876
  module2.exports = __toCommonJS2(iterate_exports);
17706
- var import_utils27 = require_cjs();
17707
- var import_utils28 = require_utils();
17877
+ var import_utils28 = require_cjs();
17878
+ var import_utils29 = require_utils();
17708
17879
  var import_methods = require_methods2();
17709
17880
  var throughInitialExec = (element, exclude = {}) => {
17710
17881
  const { __ref: ref } = element;
@@ -17712,13 +17883,13 @@ var require_iterate = __commonJS({
17712
17883
  if (exclude[param])
17713
17884
  continue;
17714
17885
  const prop = element[param];
17715
- if ((0, import_utils27.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils27.isVariant)(param)) {
17886
+ if ((0, import_utils28.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils28.isVariant)(param)) {
17716
17887
  ref.__exec[param] = prop;
17717
17888
  element[param] = prop(element, element.state, element.context);
17718
17889
  }
17719
17890
  }
17720
17891
  };
17721
- var throughUpdatedExec = (element, options = { excludes: import_utils28.METHODS_EXL }) => {
17892
+ var throughUpdatedExec = (element, options = { excludes: import_utils29.METHODS_EXL }) => {
17722
17893
  const { __ref: ref } = element;
17723
17894
  const changes = {};
17724
17895
  for (const param in ref.__exec) {
@@ -17727,13 +17898,13 @@ var require_iterate = __commonJS({
17727
17898
  if (isDefinedParam)
17728
17899
  continue;
17729
17900
  const newExec = ref.__exec[param](element, element.state, element.context);
17730
- const execReturnsString = (0, import_utils27.isString)(newExec) || (0, import_utils27.isNumber)(newExec);
17901
+ const execReturnsString = (0, import_utils28.isString)(newExec) || (0, import_utils28.isNumber)(newExec);
17731
17902
  if (prop && prop.node && execReturnsString) {
17732
- (0, import_utils28.overwrite)(prop, { text: newExec }, options);
17903
+ (0, import_utils29.overwrite)(prop, { text: newExec }, options);
17733
17904
  } else if (newExec !== prop) {
17734
- if ((0, import_utils27.checkIfKeyIsComponent)(param)) {
17735
- const { extend, ...newElem } = (0, import_utils27.extendizeByKey)(newExec, element, param);
17736
- (0, import_utils28.overwrite)(prop, newElem, options);
17905
+ if ((0, import_utils28.checkIfKeyIsComponent)(param)) {
17906
+ const { extend, ...newElem } = (0, import_utils28.extendizeByKey)(newExec, element, param);
17907
+ (0, import_utils29.overwrite)(prop, newElem, options);
17737
17908
  } else {
17738
17909
  ref.__cached[param] = changes[param] = prop;
17739
17910
  element[param] = newExec;
@@ -17748,27 +17919,27 @@ var require_iterate = __commonJS({
17748
17919
  for (const k in props4) {
17749
17920
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
17750
17921
  const cachedExecProp = ref.__execProps[k];
17751
- if ((0, import_utils27.isFunction)(cachedExecProp)) {
17752
- props4[k] = (0, import_utils27.exec)(cachedExecProp, element);
17753
- } else if (isDefine && (0, import_utils27.isFunction)(props4[k])) {
17922
+ if ((0, import_utils28.isFunction)(cachedExecProp)) {
17923
+ props4[k] = (0, import_utils28.exec)(cachedExecProp, element);
17924
+ } else if (isDefine && (0, import_utils28.isFunction)(props4[k])) {
17754
17925
  ref.__execProps[k] = props4[k];
17755
- props4[k] = (0, import_utils27.exec)(props4[k], element);
17926
+ props4[k] = (0, import_utils28.exec)(props4[k], element);
17756
17927
  }
17757
17928
  }
17758
17929
  };
17759
17930
  var throughInitialDefine = (element) => {
17760
17931
  const { define, context, __ref: ref } = element;
17761
17932
  let defineObj = {};
17762
- const hasGlobalDefine = context && (0, import_utils27.isObject)(context.define);
17763
- if ((0, import_utils27.isObject)(define))
17933
+ const hasGlobalDefine = context && (0, import_utils28.isObject)(context.define);
17934
+ if ((0, import_utils28.isObject)(define))
17764
17935
  defineObj = { ...define };
17765
17936
  if (hasGlobalDefine)
17766
17937
  defineObj = { ...defineObj, ...context.define };
17767
17938
  for (const param in defineObj) {
17768
17939
  let elementProp = element[param];
17769
- if ((0, import_utils27.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils27.isVariant)(param)) {
17940
+ if ((0, import_utils28.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils28.isVariant)(param)) {
17770
17941
  ref.__exec[param] = elementProp;
17771
- const execParam2 = elementProp = (0, import_utils27.exec)(elementProp, element);
17942
+ const execParam2 = elementProp = (0, import_utils28.exec)(elementProp, element);
17772
17943
  if (execParam2) {
17773
17944
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
17774
17945
  ref.__defineCache[param] = elementProp;
@@ -17784,15 +17955,15 @@ var require_iterate = __commonJS({
17784
17955
  const { context, define, __ref: ref } = element;
17785
17956
  const changes = {};
17786
17957
  let obj = {};
17787
- if ((0, import_utils27.isObject)(define))
17958
+ if ((0, import_utils28.isObject)(define))
17788
17959
  obj = { ...define };
17789
- if ((0, import_utils27.isObject)(context && context.define))
17960
+ if ((0, import_utils28.isObject)(context && context.define))
17790
17961
  obj = { ...obj, ...context.define };
17791
17962
  for (const param in obj) {
17792
17963
  const execParam = ref.__exec[param];
17793
17964
  if (execParam)
17794
17965
  ref.__defineCache[param] = execParam(element, element.state, element.context);
17795
- const cached = (0, import_utils27.exec)(ref.__defineCache[param], element);
17966
+ const cached = (0, import_utils28.exec)(ref.__defineCache[param], element);
17796
17967
  const newExecParam = obj[param](cached, element, element.state, element.context);
17797
17968
  if (newExecParam)
17798
17969
  element[param] = newExecParam;
@@ -17828,7 +17999,7 @@ var require_applyParam = __commonJS({
17828
17999
  applyParam: () => applyParam
17829
18000
  });
17830
18001
  module2.exports = __toCommonJS2(applyParam_exports);
17831
- var import_utils27 = require_cjs();
18002
+ var import_utils28 = require_cjs();
17832
18003
  var import_mixins = require_mixins();
17833
18004
  var applyParam = (param, element, options) => {
17834
18005
  const { node: node3, context, __ref: ref } = element;
@@ -17843,7 +18014,7 @@ var require_applyParam = __commonJS({
17843
18014
  return;
17844
18015
  const hasOnlyUpdate = onlyUpdate ? onlyUpdate === param || element.lookup(onlyUpdate) : true;
17845
18016
  if (isGlobalTransformer && !hasContextDefine && hasOnlyUpdate) {
17846
- if ((0, import_utils27.isFunction)(isGlobalTransformer)) {
18017
+ if ((0, import_utils28.isFunction)(isGlobalTransformer)) {
17847
18018
  isGlobalTransformer(prop, element, node3, options);
17848
18019
  return;
17849
18020
  }
@@ -17879,15 +18050,15 @@ var require_propEvents = __commonJS({
17879
18050
  propagateEventsFromProps: () => propagateEventsFromProps
17880
18051
  });
17881
18052
  module2.exports = __toCommonJS2(propEvents_exports);
17882
- var import_utils27 = require_cjs();
18053
+ var import_utils28 = require_cjs();
17883
18054
  var propagateEventsFromProps = (element) => {
17884
18055
  const { props: props4, on: on2 } = element;
17885
18056
  const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
17886
18057
  eventKeysFromProps.forEach((v) => {
17887
- const eventName = (0, import_utils27.lowercaseFirstLetter)(v.split("on")[1]);
18058
+ const eventName = (0, import_utils28.lowercaseFirstLetter)(v.split("on")[1]);
17888
18059
  const origEvent = on2[eventName];
17889
18060
  const funcFromProps = props4[v];
17890
- if ((0, import_utils27.isFunction)(origEvent)) {
18061
+ if ((0, import_utils28.isFunction)(origEvent)) {
17891
18062
  on2[eventName] = (...args) => {
17892
18063
  const originalEventRetunrs = origEvent(...args);
17893
18064
  if (originalEventRetunrs !== false)
@@ -17937,7 +18108,7 @@ var require_node2 = __commonJS({
17937
18108
  default: () => node_default
17938
18109
  });
17939
18110
  module2.exports = __toCommonJS2(node_exports);
17940
- var import_utils27 = require_cjs();
18111
+ var import_utils28 = require_cjs();
17941
18112
  var import_event = require_cjs6();
17942
18113
  var import_render = require_cjs11();
17943
18114
  var import_methods = require_methods2();
@@ -17962,7 +18133,7 @@ var require_node2 = __commonJS({
17962
18133
  }
17963
18134
  if (ENV3 === "test" || ENV3 === "development" || options.alowRefReference) {
17964
18135
  node3.ref = element;
17965
- if ((0, import_utils27.isFunction)(node3.setAttribute))
18136
+ if ((0, import_utils28.isFunction)(node3.setAttribute))
17966
18137
  node3.setAttribute("key", element.key);
17967
18138
  }
17968
18139
  (0, import_iterate.throughExecProps)(element);
@@ -17971,7 +18142,7 @@ var require_node2 = __commonJS({
17971
18142
  if (element.tag !== "string" && element.tag !== "fragment") {
17972
18143
  (0, import_propEvents.propagateEventsFromProps)(element);
17973
18144
  (0, import_event.applyAnimationFrame)(element, options);
17974
- if (isNewNode && (0, import_utils27.isObject)(element.on)) {
18145
+ if (isNewNode && (0, import_utils28.isObject)(element.on)) {
17975
18146
  (0, import_event.applyEventsOnNode)(element, options);
17976
18147
  }
17977
18148
  }
@@ -17979,14 +18150,14 @@ var require_node2 = __commonJS({
17979
18150
  const value2 = element[param];
17980
18151
  if (!Object.hasOwnProperty.call(element, param))
17981
18152
  continue;
17982
- if ((0, import_utils27.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils27.isVariant)(param) || (0, import_utils27.isObject)(import_mixins.REGISTRY[param]))
18153
+ if ((0, import_utils28.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils28.isVariant)(param) || (0, import_utils28.isObject)(import_mixins.REGISTRY[param]))
17983
18154
  continue;
17984
18155
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
17985
18156
  if (isElement) {
17986
18157
  const { hasDefine, hasContextDefine } = isElement;
17987
18158
  if (element[param] && !hasDefine && !hasContextDefine) {
17988
18159
  const createAsync2 = () => {
17989
- (0, import_create.default)((0, import_utils27.exec)(value2, element), element, param, options);
18160
+ (0, import_create.default)((0, import_utils28.exec)(value2, element), element, param, options);
17990
18161
  };
17991
18162
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
17992
18163
  window.requestAnimationFrame(() => createAsync2());
@@ -18028,7 +18199,7 @@ var require_update2 = __commonJS({
18028
18199
  update: () => update
18029
18200
  });
18030
18201
  module2.exports = __toCommonJS2(update_exports);
18031
- var import_utils27 = require_cjs();
18202
+ var import_utils28 = require_cjs();
18032
18203
  var import_event = require_cjs6();
18033
18204
  var import_methods = require_methods2();
18034
18205
  var import_props = require_props();
@@ -18038,9 +18209,9 @@ var require_update2 = __commonJS({
18038
18209
  var import_mixins = require_mixins();
18039
18210
  var import_applyParam = require_applyParam();
18040
18211
  var import_options3 = require_options();
18041
- var import_utils28 = require_utils();
18212
+ var import_utils29 = require_utils();
18042
18213
  var snapshot = {
18043
- snapshotId: import_utils27.createSnapshotId
18214
+ snapshotId: import_utils28.createSnapshotId
18044
18215
  };
18045
18216
  var UPDATE_DEFAULT_OPTIONS = {
18046
18217
  stackChanges: false,
@@ -18048,11 +18219,11 @@ var require_update2 = __commonJS({
18048
18219
  preventRecursive: false,
18049
18220
  currentSnapshot: false,
18050
18221
  calleeElement: false,
18051
- excludes: import_utils28.METHODS_EXL
18222
+ excludes: import_utils29.METHODS_EXL
18052
18223
  };
18053
18224
  var update = function(params = {}, opts) {
18054
18225
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
18055
- const options = (0, import_utils27.deepClone)((0, import_utils27.isObject)(opts) ? (0, import_utils28.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18226
+ const options = (0, import_utils28.deepClone)((0, import_utils28.isObject)(opts) ? (0, import_utils29.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, { exclude: ["calleeElement"] });
18056
18227
  options.calleeElement = calleeElementCache;
18057
18228
  const element = this;
18058
18229
  const { parent, node: node3, key } = element;
@@ -18068,8 +18239,8 @@ var require_update2 = __commonJS({
18068
18239
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
18069
18240
  return;
18070
18241
  if (!excludes)
18071
- (0, import_utils27.merge)(options, UPDATE_DEFAULT_OPTIONS);
18072
- if ((0, import_utils27.isString)(params) || (0, import_utils27.isNumber)(params)) {
18242
+ (0, import_utils28.merge)(options, UPDATE_DEFAULT_OPTIONS);
18243
+ if ((0, import_utils28.isString)(params) || (0, import_utils28.isNumber)(params)) {
18073
18244
  params = { text: params };
18074
18245
  }
18075
18246
  const inheritState = inheritStateUpdates(element, options);
@@ -18080,7 +18251,7 @@ var require_update2 = __commonJS({
18080
18251
  return;
18081
18252
  if (ref.__if && !options.preventPropsUpdate) {
18082
18253
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
18083
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils27.isFunction)(v));
18254
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils28.isFunction)(v));
18084
18255
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
18085
18256
  if (props4)
18086
18257
  (0, import_props.updateProps)(props4, element, parent);
@@ -18090,7 +18261,7 @@ var require_update2 = __commonJS({
18090
18261
  if (beforeUpdateReturns === false)
18091
18262
  return element;
18092
18263
  }
18093
- (0, import_utils27.overwriteDeep)(element, params, { exclude: import_utils28.METHODS_EXL });
18264
+ (0, import_utils28.overwriteDeep)(element, params, { exclude: import_utils29.METHODS_EXL });
18094
18265
  (0, import_iterate.throughExecProps)(element);
18095
18266
  (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
18096
18267
  (0, import_iterate.throughUpdatedDefine)(element);
@@ -18113,7 +18284,7 @@ var require_update2 = __commonJS({
18113
18284
  preventUpdateAfterCount
18114
18285
  } = options;
18115
18286
  if (preventUpdateAfter) {
18116
- if ((0, import_utils27.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18287
+ if ((0, import_utils28.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
18117
18288
  return;
18118
18289
  else if (options.preventUpdateAfterCount === void 0)
18119
18290
  options.preventUpdateAfterCount = 1;
@@ -18127,17 +18298,17 @@ var require_update2 = __commonJS({
18127
18298
  }
18128
18299
  if (!Object.hasOwnProperty.call(element, param))
18129
18300
  continue;
18130
- const isInPreventUpdate = (0, import_utils27.isArray)(preventUpdate) && preventUpdate.includes(param);
18131
- const isInPreventDefineUpdate = (0, import_utils27.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18301
+ const isInPreventUpdate = (0, import_utils28.isArray)(preventUpdate) && preventUpdate.includes(param);
18302
+ const isInPreventDefineUpdate = (0, import_utils28.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
18132
18303
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
18133
- if ((0, import_utils27.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils27.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils27.isVariant)(param))
18304
+ if ((0, import_utils28.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils28.isObject)(import_mixins.REGISTRY[param]) || (0, import_utils28.isVariant)(param))
18134
18305
  continue;
18135
18306
  if (preventStateUpdate === "once")
18136
18307
  options.preventStateUpdate = false;
18137
18308
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
18138
18309
  if (isElement) {
18139
18310
  const { hasDefine, hasContextDefine } = isElement;
18140
- const canUpdate = (0, import_utils27.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18311
+ const canUpdate = (0, import_utils28.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
18141
18312
  if (!canUpdate)
18142
18313
  continue;
18143
18314
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -18149,7 +18320,7 @@ var require_update2 = __commonJS({
18149
18320
  currentSnapshot: snapshotOnCallee,
18150
18321
  calleeElement
18151
18322
  });
18152
- lazyLoad ? import_utils27.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18323
+ lazyLoad ? import_utils28.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
18153
18324
  }
18154
18325
  }
18155
18326
  if (!preventUpdateListener)
@@ -18172,7 +18343,7 @@ var require_update2 = __commonJS({
18172
18343
  };
18173
18344
  var checkIfOnUpdate = (element, parent, options) => {
18174
18345
  var _a, _b, _c;
18175
- if (!(0, import_utils27.isFunction)(element.if) && !(0, import_utils27.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18346
+ if (!(0, import_utils28.isFunction)(element.if) && !(0, import_utils28.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
18176
18347
  return;
18177
18348
  const ref = element.__ref;
18178
18349
  const ifPassed = (element.if || ((_b = element.props) == null ? void 0 : _b.if))(element, element.state, element.context, options);
@@ -18213,7 +18384,7 @@ var require_update2 = __commonJS({
18213
18384
  delete element.__ref;
18214
18385
  delete element.parent;
18215
18386
  const createdElement = (0, import_create.create)(element, parent, element.key, import_options3.OPTIONS.create, attachOptions);
18216
- if (options.preventUpdate !== true && element.on && (0, import_utils27.isFunction)(element.on.update)) {
18387
+ if (options.preventUpdate !== true && element.on && (0, import_utils28.isFunction)(element.on.update)) {
18217
18388
  (0, import_event.applyEvent)(element.on.update, createdElement, createdElement.state);
18218
18389
  }
18219
18390
  return createdElement;
@@ -18234,9 +18405,9 @@ var require_update2 = __commonJS({
18234
18405
  element.state = parent && parent.state || {};
18235
18406
  return;
18236
18407
  }
18237
- const shouldForceFunctionState = (0, import_utils27.isFunction)(stateKey) && !isHoisted && execStateFunction;
18408
+ const shouldForceFunctionState = (0, import_utils28.isFunction)(stateKey) && !isHoisted && execStateFunction;
18238
18409
  if (shouldForceFunctionState) {
18239
- const execState = (0, import_utils27.exec)(stateKey, element);
18410
+ const execState = (0, import_utils28.exec)(stateKey, element);
18240
18411
  state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
18241
18412
  return;
18242
18413
  }
@@ -18294,7 +18465,7 @@ var require_set2 = __commonJS({
18294
18465
  addMethods: () => addMethods
18295
18466
  });
18296
18467
  module2.exports = __toCommonJS2(set_exports);
18297
- var import_utils27 = require_cjs();
18468
+ var import_utils28 = require_cjs();
18298
18469
  var import_set = require_set();
18299
18470
  var import_update = require_update2();
18300
18471
  var import__ = require_methods2();
@@ -18327,7 +18498,7 @@ var require_set2 = __commonJS({
18327
18498
  error: import__.error
18328
18499
  };
18329
18500
  if (element.context.methods)
18330
- (options.strict ? import_utils27.merge : import_utils27.overwrite)(proto, element.context.methods);
18501
+ (options.strict ? import_utils28.merge : import_utils28.overwrite)(proto, element.context.methods);
18331
18502
  Object.setPrototypeOf(element, proto);
18332
18503
  };
18333
18504
  }
@@ -18372,7 +18543,7 @@ var require_create4 = __commonJS({
18372
18543
  module2.exports = __toCommonJS2(create_exports);
18373
18544
  var import_node = __toESM2(require_node2(), 1);
18374
18545
  var import_tree = require_tree();
18375
- var import_utils27 = require_cjs();
18546
+ var import_utils28 = require_cjs();
18376
18547
  var import_event = require_cjs6();
18377
18548
  var import_render = require_cjs11();
18378
18549
  var import_state2 = require_cjs8();
@@ -18395,9 +18566,9 @@ var require_create4 = __commonJS({
18395
18566
  parent = redefineParent(element, parent, key);
18396
18567
  key = createKey(element, parent, key);
18397
18568
  const ref = addRef(element, parent, key);
18398
- ref.__initialProps = (0, import_utils27.deepClone)(element.props);
18569
+ ref.__initialProps = (0, import_utils28.deepClone)(element.props);
18399
18570
  applyContext(element, parent, options);
18400
- (0, import_utils27.applyComponentFromContext)(element, parent, options);
18571
+ (0, import_utils28.applyComponentFromContext)(element, parent, options);
18401
18572
  if (!ref.__skipCreate) {
18402
18573
  (0, import_extend.applyExtend)(element, parent, options);
18403
18574
  }
@@ -18426,7 +18597,7 @@ var require_create4 = __commonJS({
18426
18597
  return element;
18427
18598
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
18428
18599
  (0, import_classList.assignKeyAsClassname)(element);
18429
- (0, import_utils27.addChildrenIfNotInOriginal)(element, parent, key);
18600
+ (0, import_utils28.addChildrenIfNotInOriginal)(element, parent, key);
18430
18601
  renderElement(element, parent, options, attachOptions);
18431
18602
  addElementIntoParentChildren(element, parent);
18432
18603
  (0, import_event.triggerEventOn)("complete", element, options);
@@ -18439,7 +18610,7 @@ var require_create4 = __commonJS({
18439
18610
  }
18440
18611
  return {};
18441
18612
  }
18442
- if ((0, import_utils27.isString)(key) && key.slice(0, 2 === "__")) {
18613
+ if ((0, import_utils28.isString)(key) && key.slice(0, 2 === "__")) {
18443
18614
  if (ENV3 === "test" || ENV3 === "development") {
18444
18615
  console.warn(key, "seems like to be in __ref");
18445
18616
  }
@@ -18461,8 +18632,8 @@ var require_create4 = __commonJS({
18461
18632
  else
18462
18633
  element.syntaxv3 = true;
18463
18634
  return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options);
18464
- } else if ((0, import_utils27.checkIfKeyIsComponent)(key)) {
18465
- return (0, import_utils27.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18635
+ } else if ((0, import_utils28.checkIfKeyIsComponent)(key)) {
18636
+ return (0, import_utils28.applyKeyComponentAsExtend)(elementWrapper, parent, key);
18466
18637
  }
18467
18638
  if (checkIfMedia(key)) {
18468
18639
  return applyMediaProps2(elementWrapper, parent, key);
@@ -18472,7 +18643,7 @@ var require_create4 = __commonJS({
18472
18643
  var redefineParent = (element, parent, key, options) => {
18473
18644
  if (!parent)
18474
18645
  return import_tree.ROOT;
18475
- if ((0, import_utils27.isNode)(parent)) {
18646
+ if ((0, import_utils28.isNode)(parent)) {
18476
18647
  const parentNodeWrapper = { key: ":root", node: parent };
18477
18648
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
18478
18649
  return parentNodeWrapper;
@@ -18486,7 +18657,7 @@ var require_create4 = __commonJS({
18486
18657
  }
18487
18658
  };
18488
18659
  var createKey = (element, parent, key) => {
18489
- return ((0, import_utils27.exec)(key, element) || key || element.key || (0, import_utils27.generateKey)()).toString();
18660
+ return ((0, import_utils28.exec)(key, element) || key || element.key || (0, import_utils28.generateKey)()).toString();
18490
18661
  };
18491
18662
  var addRef = (element, parent) => {
18492
18663
  if (element.__ref)
@@ -18516,7 +18687,7 @@ var require_create4 = __commonJS({
18516
18687
  visitedElements.set(element, true);
18517
18688
  const { __ref: ref, key } = element;
18518
18689
  try {
18519
- const isInfiniteLoopDetected = (0, import_utils27.detectInfiniteLoop)(ref.path);
18690
+ const isInfiniteLoopDetected = (0, import_utils28.detectInfiniteLoop)(ref.path);
18520
18691
  if (ref.__uniqId || isInfiniteLoopDetected)
18521
18692
  return;
18522
18693
  (0, import_node.default)(element, options);
@@ -18548,12 +18719,12 @@ var require_create4 = __commonJS({
18548
18719
  (0, import_event.triggerEventOn)("done", element, options);
18549
18720
  (0, import_event.triggerEventOn)("create", element, options);
18550
18721
  };
18551
- var checkIfPrimitive = (element) => (0, import_utils27.is)(element)("string", "number");
18722
+ var checkIfPrimitive = (element) => (0, import_utils28.is)(element)("string", "number");
18552
18723
  var applyValueAsText = (element, parent, key) => {
18553
18724
  const extendTag = element.extend && element.extend.tag;
18554
18725
  const childExtendTag = parent.childExtend && parent.childExtend.tag;
18555
18726
  const childPropsTag = parent.props.childProps && parent.props.childProps.tag;
18556
- const isKeyValidHTMLTag = import_utils27.HTML_TAGS.body.indexOf(key) > -1 && key;
18727
+ const isKeyValidHTMLTag = import_utils28.HTML_TAGS.body.indexOf(key) > -1 && key;
18557
18728
  return {
18558
18729
  text: element,
18559
18730
  tag: extendTag || childExtendTag || childPropsTag || isKeyValidHTMLTag || "string"
@@ -18573,7 +18744,7 @@ var require_create4 = __commonJS({
18573
18744
  };
18574
18745
  var createIfConditionFlag = (element, parent) => {
18575
18746
  const { __ref: ref } = element;
18576
- if ((0, import_utils27.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18747
+ if ((0, import_utils28.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
18577
18748
  delete ref.__if;
18578
18749
  } else
18579
18750
  ref.__if = true;
@@ -18601,7 +18772,7 @@ var require_create4 = __commonJS({
18601
18772
  ref.__changes = [];
18602
18773
  if (!ref.__children)
18603
18774
  ref.__children = [];
18604
- if ((0, import_utils27.checkIfKeyIsComponent)(key))
18775
+ if ((0, import_utils28.checkIfKeyIsComponent)(key))
18605
18776
  ref.__componentKey = key.split("_")[0].split(".")[0].split("+")[0];
18606
18777
  const hasRoot = parent && parent.key === ":root";
18607
18778
  if (!ref.root)
@@ -18637,7 +18808,7 @@ var require_create4 = __commonJS({
18637
18808
  (0, import_iterate.throughInitialDefine)(element);
18638
18809
  (0, import_iterate.throughInitialExec)(element);
18639
18810
  for (const k in element) {
18640
- if ((0, import_utils27.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils27.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils27.isVariant)(k))
18811
+ if ((0, import_utils28.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils28.isObject)((import_mixins.registry.default || import_mixins.registry)[k]) || (0, import_utils28.isVariant)(k))
18641
18812
  continue;
18642
18813
  const hasDefine = element.define && element.define[k];
18643
18814
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -18645,7 +18816,7 @@ var require_create4 = __commonJS({
18645
18816
  if (!ref.__skipCreate && import_mixins.REGISTRY[k] && !optionsHasDefine) {
18646
18817
  continue;
18647
18818
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
18648
- create2((0, import_utils27.exec)(element[k], element), element, k, options);
18819
+ create2((0, import_utils28.exec)(element[k], element), element, k, options);
18649
18820
  }
18650
18821
  }
18651
18822
  }
@@ -22403,14 +22574,14 @@ function send(event = "change", changes, options) {
22403
22574
  function disconnect() {
22404
22575
  this.disconnect();
22405
22576
  }
22406
- var utils, globals, isFunction, isArray3, window3, ENV, defautlOpts, CONNECT_ATTEPT, CONNECT_ATTEPT_MAX_ALLOWED, getIsDev, getSocketUrl, connect;
22577
+ var utils, globals, isFunction2, isArray3, window3, ENV, defautlOpts, CONNECT_ATTEPT, CONNECT_ATTEPT_MAX_ALLOWED, getIsDev, getSocketUrl, connect;
22407
22578
  var init_client = __esm({
22408
22579
  "../socket/client.js"() {
22409
22580
  "use strict";
22410
22581
  utils = __toESM(require_cjs(), 1);
22411
22582
  globals = __toESM(require_cjs9(), 1);
22412
22583
  init_esm5();
22413
- ({ isFunction, isArray: isArray3 } = utils.default || utils);
22584
+ ({ isFunction: isFunction2, isArray: isArray3 } = utils.default || utils);
22414
22585
  ({ window: window3 } = globals.default || globals);
22415
22586
  ENV = "development";
22416
22587
  defautlOpts = {};
@@ -22446,7 +22617,7 @@ var init_client = __esm({
22446
22617
  }
22447
22618
  socket.emit("initConnect", { key, ...options });
22448
22619
  try {
22449
- if (isFunction(options.onConnect)) {
22620
+ if (isFunction2(options.onConnect)) {
22450
22621
  options.onConnect(socket.id, socket);
22451
22622
  }
22452
22623
  } catch (e) {
@@ -22456,7 +22627,7 @@ var init_client = __esm({
22456
22627
  socket.on("connect_error", (err) => {
22457
22628
  console.log(`event: connect_error | reason: ${err.message}`);
22458
22629
  try {
22459
- if (isFunction(options.onError))
22630
+ if (isFunction2(options.onError))
22460
22631
  options.onError(err, socket);
22461
22632
  if (CONNECT_ATTEPT < CONNECT_ATTEPT_MAX_ALLOWED) {
22462
22633
  CONNECT_ATTEPT++;
@@ -22478,7 +22649,7 @@ var init_client = __esm({
22478
22649
  socket.on("disconnect", (reason) => {
22479
22650
  console.log(`event: disconnect | reason: ${reason}`);
22480
22651
  try {
22481
- if (isFunction(options.onDisconnect))
22652
+ if (isFunction2(options.onDisconnect))
22482
22653
  options.onDisconnect(reason, socket);
22483
22654
  } catch (e) {
22484
22655
  console.error(e);
@@ -22488,7 +22659,7 @@ var init_client = __esm({
22488
22659
  if (event === "connect")
22489
22660
  return;
22490
22661
  try {
22491
- if (isFunction(options.onChange)) {
22662
+ if (isFunction2(options.onChange)) {
22492
22663
  options.onChange(event, args[0], socket);
22493
22664
  }
22494
22665
  } catch (e) {
@@ -22646,10 +22817,10 @@ var require_Inspect = __commonJS({
22646
22817
  });
22647
22818
  module2.exports = __toCommonJS2(Inspect_exports);
22648
22819
  var smblsUI = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
22649
- var import_utils27 = require_cjs();
22820
+ var import_utils28 = require_cjs();
22650
22821
  var import_client = (init_client(), __toCommonJS(client_exports));
22651
22822
  function returnStringExtend(extend) {
22652
- return (0, import_utils27.isString)(extend) ? extend : (0, import_utils27.isArray)(extend) ? extend.find((extItem) => (0, import_utils27.isString)(extItem)) : "";
22823
+ return (0, import_utils28.isString)(extend) ? extend : (0, import_utils28.isArray)(extend) ? extend.find((extItem) => (0, import_utils28.isString)(extItem)) : "";
22653
22824
  }
22654
22825
  function getComponentKey(el) {
22655
22826
  if (!el)
@@ -22736,7 +22907,7 @@ var require_Inspect = __commonJS({
22736
22907
  on: {
22737
22908
  init: ({ context }) => {
22738
22909
  const { components } = context;
22739
- if ((0, import_utils27.isObject)(components)) {
22910
+ if ((0, import_utils28.isObject)(components)) {
22740
22911
  const { Content, ...rest } = components;
22741
22912
  for (const key in rest) {
22742
22913
  if (smblsUI[key])
@@ -22867,7 +23038,7 @@ var require_cjs14 = __commonJS({
22867
23038
  var import_init3 = (init_init(), __toCommonJS(init_exports));
22868
23039
  var import_client = (init_client(), __toCommonJS(client_exports));
22869
23040
  var import_globals = require_cjs9();
22870
- var import_utils27 = require_cjs();
23041
+ var import_utils28 = require_cjs();
22871
23042
  var import_Notifications = require_Notifications();
22872
23043
  var import_Inspect = require_Inspect();
22873
23044
  __reExport2(sync_exports, require_DefaultSyncApp(), module2.exports);
@@ -22891,16 +23062,16 @@ var require_cjs14 = __commonJS({
22891
23062
  const { state, designSystem, pages, components, snippets, functions } = obj.DATA;
22892
23063
  const { utils: utils2 } = ctx;
22893
23064
  if (pages) {
22894
- (0, import_utils27.overwriteShallow)(ctx.pages, pages);
23065
+ (0, import_utils28.overwriteShallow)(ctx.pages, pages);
22895
23066
  }
22896
23067
  if (components) {
22897
- (0, import_utils27.overwriteShallow)(ctx.components, components);
23068
+ (0, import_utils28.overwriteShallow)(ctx.components, components);
22898
23069
  }
22899
23070
  if (functions) {
22900
- (0, import_utils27.overwriteShallow)(ctx.functions, functions);
23071
+ (0, import_utils28.overwriteShallow)(ctx.functions, functions);
22901
23072
  }
22902
23073
  if (snippets) {
22903
- (0, import_utils27.overwriteShallow)(ctx.snippets, snippets);
23074
+ (0, import_utils28.overwriteShallow)(ctx.snippets, snippets);
22904
23075
  }
22905
23076
  if (state) {
22906
23077
  const route = state.route;
@@ -23125,7 +23296,7 @@ var require_types2 = __commonJS({
23125
23296
  isBoolean: () => isBoolean2,
23126
23297
  isDate: () => isDate,
23127
23298
  isDefined: () => isDefined2,
23128
- isFunction: () => isFunction2,
23299
+ isFunction: () => isFunction3,
23129
23300
  isNot: () => isNot2,
23130
23301
  isNull: () => isNull,
23131
23302
  isNumber: () => isNumber3,
@@ -23143,7 +23314,7 @@ var require_types2 = __commonJS({
23143
23314
  };
23144
23315
  var isString11 = (arg) => typeof arg === "string";
23145
23316
  var isNumber3 = (arg) => typeof arg === "number";
23146
- var isFunction2 = (arg) => typeof arg === "function";
23317
+ var isFunction3 = (arg) => typeof arg === "function";
23147
23318
  var isBoolean2 = (arg) => arg === true || arg === false;
23148
23319
  var isNull = (arg) => arg === null;
23149
23320
  var isArray4 = (arg) => Array.isArray(arg);
@@ -23154,7 +23325,7 @@ var require_types2 = __commonJS({
23154
23325
  return typeof arg === "object";
23155
23326
  };
23156
23327
  var isDefined2 = (arg) => {
23157
- return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction2(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
23328
+ return isObject11(arg) || isObjectLike4(arg) || isString11(arg) || isNumber3(arg) || isFunction3(arg) || isArray4(arg) || isObjectLike4(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
23158
23329
  };
23159
23330
  var isUndefined11 = (arg) => {
23160
23331
  return arg === void 0;
@@ -23167,7 +23338,7 @@ var require_types2 = __commonJS({
23167
23338
  date: isDate,
23168
23339
  number: isNumber3,
23169
23340
  null: isNull,
23170
- function: isFunction2,
23341
+ function: isFunction3,
23171
23342
  objectLike: isObjectLike4,
23172
23343
  node: import_node.isNode,
23173
23344
  htmlElement: import_node.isHtmlElement,
@@ -24331,21 +24502,21 @@ var require_cookie2 = __commonJS({
24331
24502
  });
24332
24503
  module2.exports = __toCommonJS2(cookie_exports);
24333
24504
  var import_types = require_types2();
24334
- var import_utils27 = require_cjs15();
24505
+ var import_utils28 = require_cjs15();
24335
24506
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
24336
24507
  var setCookie = (cname, cvalue, exdays = 365) => {
24337
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24508
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24338
24509
  return;
24339
24510
  const d = /* @__PURE__ */ new Date();
24340
24511
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
24341
24512
  const expires = `expires=${d.toUTCString()}`;
24342
- import_utils27.document.cookie = `${cname}=${cvalue};${expires};path=/`;
24513
+ import_utils28.document.cookie = `${cname}=${cvalue};${expires};path=/`;
24343
24514
  };
24344
24515
  var getCookie = (cname) => {
24345
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24516
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24346
24517
  return;
24347
24518
  const name = `${cname}=`;
24348
- const decodedCookie = decodeURIComponent(import_utils27.document.cookie);
24519
+ const decodedCookie = decodeURIComponent(import_utils28.document.cookie);
24349
24520
  const ca = decodedCookie.split(";");
24350
24521
  for (let i = 0; i < ca.length; i++) {
24351
24522
  let c = ca[i];
@@ -24357,9 +24528,9 @@ var require_cookie2 = __commonJS({
24357
24528
  return "";
24358
24529
  };
24359
24530
  var removeCookie = (cname) => {
24360
- if ((0, import_types.isUndefined)(import_utils27.document) || (0, import_types.isUndefined)(import_utils27.document.cookie))
24531
+ if ((0, import_types.isUndefined)(import_utils28.document) || (0, import_types.isUndefined)(import_utils28.document.cookie))
24361
24532
  return;
24362
- import_utils27.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
24533
+ import_utils28.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
24363
24534
  };
24364
24535
  function getLocalStorage(key) {
24365
24536
  let savedJSON;
@@ -25100,7 +25271,7 @@ __export(src_exports, {
25100
25271
  default: () => src_default
25101
25272
  });
25102
25273
  module.exports = __toCommonJS(src_exports);
25103
- var import_utils26 = __toESM(require_cjs(), 1);
25274
+ var import_utils27 = __toESM(require_cjs(), 1);
25104
25275
 
25105
25276
  // src/utilImports.js
25106
25277
  var utilImports_exports = {};
@@ -25121,7 +25292,7 @@ __reExport(utilImports_exports, __toESM(require_cjs7(), 1));
25121
25292
 
25122
25293
  // src/router.js
25123
25294
  var import_router2 = __toESM(require_cjs7(), 1);
25124
- var import_utils17 = __toESM(require_cjs(), 1);
25295
+ var import_utils18 = __toESM(require_cjs(), 1);
25125
25296
  init_uikit();
25126
25297
  var DEFAULT_ROUTING_OPTIONS = {
25127
25298
  initRouter: true,
@@ -25134,16 +25305,16 @@ var initRouter = (element, context) => {
25134
25305
  else if (context.router === true)
25135
25306
  context.router = DEFAULT_ROUTING_OPTIONS;
25136
25307
  else
25137
- (0, import_utils17.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
25308
+ (0, import_utils18.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
25138
25309
  const routerOptions = context.router;
25139
25310
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
25140
25311
  const onRouterRenderDefault = (el, s) => {
25141
- const { pathname, search, hash: hash3 } = import_utils17.window.location;
25312
+ const { pathname, search, hash: hash3 } = import_utils18.window.location;
25142
25313
  const url2 = pathname + search + hash3;
25143
25314
  if (el.routes)
25144
25315
  router(url2, el, {}, { initialRender: true });
25145
25316
  };
25146
- const hasRenderRouter = element.on && !(0, import_utils17.isUndefined)(element.on.renderRouter);
25317
+ const hasRenderRouter = element.on && !(0, import_utils18.isUndefined)(element.on.renderRouter);
25147
25318
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
25148
25319
  if (element.on) {
25149
25320
  element.on.renderRouter = onRouterRenderDefault;
@@ -25165,20 +25336,20 @@ var popStateRouter = (element, context) => {
25165
25336
  if (!routerOptions.popState)
25166
25337
  return;
25167
25338
  const router = context.utils && context.utils.router ? context.utils.router : import_router2.router;
25168
- import_utils17.window.onpopstate = (e) => {
25169
- const { pathname, search, hash: hash3 } = import_utils17.window.location;
25339
+ import_utils18.window.onpopstate = (e) => {
25340
+ const { pathname, search, hash: hash3 } = import_utils18.window.location;
25170
25341
  const url2 = pathname + search + hash3;
25171
25342
  router(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
25172
25343
  };
25173
25344
  };
25174
25345
  var injectRouterInLinkComponent = (routerOptions) => {
25175
25346
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
25176
- return (0, import_utils17.deepMerge)(Link, RouterLink);
25347
+ return (0, import_utils18.deepMerge)(Link, RouterLink);
25177
25348
  }
25178
25349
  };
25179
25350
 
25180
25351
  // src/ferchOnCreate.js
25181
- var import_utils18 = __toESM(require_cjs(), 1);
25352
+ var import_utils19 = __toESM(require_cjs(), 1);
25182
25353
  var import_fetch = __toESM(require_cjs10(), 1);
25183
25354
  var fetchSync = async (key, options) => {
25184
25355
  if (key && options.editor) {
@@ -25195,10 +25366,10 @@ var fetchAsync = (app, key, options, callback) => {
25195
25366
  try {
25196
25367
  if (options.editor.async) {
25197
25368
  (0, import_fetch.fetchProjectAsync)(key, options, callback || ((data) => {
25198
- if ((0, import_utils18.isObject)(data.designsystem)) {
25369
+ if ((0, import_utils19.isObject)(data.designsystem)) {
25199
25370
  options.utils.init(data.designsystem);
25200
25371
  }
25201
- if ((0, import_utils18.isObject)(data.state)) {
25372
+ if ((0, import_utils19.isObject)(data.state)) {
25202
25373
  app.state.set(data.state);
25203
25374
  }
25204
25375
  }));
@@ -25263,19 +25434,19 @@ init_dynamic();
25263
25434
  // src/createDomql.js
25264
25435
  var import_domql = __toESM(require_cjs13(), 1);
25265
25436
  init_uikit();
25266
- var import_utils25 = __toESM(require_cjs(), 1);
25437
+ var import_utils26 = __toESM(require_cjs(), 1);
25267
25438
 
25268
25439
  // src/syncExtend.js
25269
- var import_utils19 = __toESM(require_cjs(), 1);
25440
+ var import_utils20 = __toESM(require_cjs(), 1);
25270
25441
  var import_sync = __toESM(require_cjs14(), 1);
25271
25442
  var initializeExtend = (app, ctx) => {
25272
- return (0, import_utils19.isObjectLike)(app.extend) ? app.extend : [];
25443
+ return (0, import_utils20.isObjectLike)(app.extend) ? app.extend : [];
25273
25444
  };
25274
25445
  var initializeSync = (app, ctx) => {
25275
25446
  const { editor } = ctx;
25276
25447
  if (!editor)
25277
25448
  return;
25278
- const liveSync = (0, import_utils19.isUndefined)(editor.liveSync) ? (0, import_utils19.isDevelopment)() : editor.liveSync;
25449
+ const liveSync = (0, import_utils20.isUndefined)(editor.liveSync) ? (0, import_utils20.isDevelopment)() : editor.liveSync;
25279
25450
  if (liveSync)
25280
25451
  app.extend.push(import_sync.SyncComponent);
25281
25452
  };
@@ -25283,7 +25454,7 @@ var initializeInspect = (app, ctx) => {
25283
25454
  const { editor } = ctx;
25284
25455
  if (!editor)
25285
25456
  return;
25286
- const inspect = (0, import_utils19.isUndefined)(editor.inspect) ? (0, import_utils19.isDevelopment)() : editor.inspect;
25457
+ const inspect = (0, import_utils20.isUndefined)(editor.inspect) ? (0, import_utils20.isDevelopment)() : editor.inspect;
25287
25458
  if (inspect)
25288
25459
  app.extend.push(import_sync.Inspect);
25289
25460
  };
@@ -25291,19 +25462,19 @@ var initializeNotifications = (app, ctx) => {
25291
25462
  const { editor } = ctx;
25292
25463
  if (!editor)
25293
25464
  return;
25294
- const verbose = (0, import_utils19.isUndefined)(editor.verbose) ? (0, import_utils19.isDevelopment)() || ctx.verbose : editor.verbose;
25465
+ const verbose = (0, import_utils20.isUndefined)(editor.verbose) ? (0, import_utils20.isDevelopment)() || ctx.verbose : editor.verbose;
25295
25466
  if (verbose)
25296
25467
  app.extend.push(import_sync.Notifications);
25297
25468
  };
25298
25469
 
25299
25470
  // src/prepare.js
25300
- var import_utils24 = __toESM(require_cjs(), 1);
25471
+ var import_utils25 = __toESM(require_cjs(), 1);
25301
25472
 
25302
25473
  // ../../../domql/plugins/emotion/index.js
25303
- var import_utils22 = __toESM(require_cjs());
25474
+ var import_utils23 = __toESM(require_cjs());
25304
25475
 
25305
25476
  // ../../../domql/node_modules/@domql/classlist/index.js
25306
- var import_utils20 = __toESM(require_cjs15());
25477
+ var import_utils21 = __toESM(require_cjs15());
25307
25478
  var classify = (obj, element) => {
25308
25479
  let className = "";
25309
25480
  for (const item in obj) {
@@ -25313,7 +25484,7 @@ var classify = (obj, element) => {
25313
25484
  else if (typeof param === "string")
25314
25485
  className += ` ${param}`;
25315
25486
  else if (typeof param === "function") {
25316
- className += ` ${(0, import_utils20.exec)(param, element)}`;
25487
+ className += ` ${(0, import_utils21.exec)(param, element)}`;
25317
25488
  }
25318
25489
  }
25319
25490
  return className;
@@ -25324,9 +25495,9 @@ var classList = (params, element) => {
25324
25495
  const { key } = element;
25325
25496
  if (params === true)
25326
25497
  params = element.class = { key };
25327
- if ((0, import_utils20.isString)(params))
25498
+ if ((0, import_utils21.isString)(params))
25328
25499
  params = element.class = { default: params };
25329
- if ((0, import_utils20.isObject)(params))
25500
+ if ((0, import_utils21.isObject)(params))
25330
25501
  params = classify(params, element);
25331
25502
  const className = params.replace(/\s+/g, " ").trim();
25332
25503
  if (element.ref)
@@ -26681,9 +26852,9 @@ var classnames3 = function classnames4(args) {
26681
26852
  // ../../../domql/plugins/emotion/index.js
26682
26853
  var transformEmotionStyle = (emotion2) => {
26683
26854
  return (params, element, state) => {
26684
- const execParams = (0, import_utils22.exec)(params, element);
26855
+ const execParams = (0, import_utils23.exec)(params, element);
26685
26856
  if (params) {
26686
- if ((0, import_utils22.isObjectLike)(element.class))
26857
+ if ((0, import_utils23.isObjectLike)(element.class))
26687
26858
  element.class.elementStyle = execParams;
26688
26859
  else
26689
26860
  element.class = { elementStyle: execParams };
@@ -26697,7 +26868,7 @@ var transformEmotionClass = (emotion2) => {
26697
26868
  return;
26698
26869
  const { __ref } = element;
26699
26870
  const { __class, __classNames } = __ref;
26700
- if (!(0, import_utils22.isObjectLike)(params))
26871
+ if (!(0, import_utils23.isObjectLike)(params))
26701
26872
  return;
26702
26873
  if (element.props.class) {
26703
26874
  __classNames.classProps = element.props.class;
@@ -26706,20 +26877,20 @@ var transformEmotionClass = (emotion2) => {
26706
26877
  __classNames.class = element.attr.class;
26707
26878
  }
26708
26879
  for (const key in params) {
26709
- const prop = (0, import_utils22.exec)(params[key], element);
26880
+ const prop = (0, import_utils23.exec)(params[key], element);
26710
26881
  if (!prop) {
26711
26882
  delete __class[key];
26712
26883
  delete __classNames[key];
26713
26884
  continue;
26714
26885
  }
26715
- const isEqual = (0, import_utils22.isEqualDeep)(__class[key], prop);
26886
+ const isEqual = (0, import_utils23.isEqualDeep)(__class[key], prop);
26716
26887
  if (!isEqual) {
26717
- if (!(0, import_utils22.isProduction)() && (0, import_utils22.isObject)(prop))
26888
+ if (!(0, import_utils23.isProduction)() && (0, import_utils23.isObject)(prop))
26718
26889
  prop.label = key || element.key;
26719
26890
  let className;
26720
- if ((0, import_utils22.isString)(prop) || (0, import_utils22.isNumber)(prop))
26891
+ if ((0, import_utils23.isString)(prop) || (0, import_utils23.isNumber)(prop))
26721
26892
  className = prop;
26722
- else if ((0, import_utils22.isBoolean)(prop))
26893
+ else if ((0, import_utils23.isBoolean)(prop))
26723
26894
  className = element.key;
26724
26895
  else
26725
26896
  className = emotion2.css(prop);
@@ -26742,7 +26913,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
26742
26913
  // src/initEmotion.js
26743
26914
  init_emotion();
26744
26915
  init_init();
26745
- var import_utils23 = __toESM(require_cjs(), 1);
26916
+ var import_utils24 = __toESM(require_cjs(), 1);
26746
26917
 
26747
26918
  // ../default-config/src/index.js
26748
26919
  var import_default_icons = __toESM(require_cjs16());
@@ -27136,7 +27307,7 @@ var initEmotion = (key, options = {}) => {
27136
27307
  if (!initOptions.emotion)
27137
27308
  initOptions.emotion = emotion;
27138
27309
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
27139
- const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils23.deepMerge)(options.designSystem, (0, import_utils23.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils23.deepClone)(DEFAULT_CONFIG);
27310
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils24.deepMerge)(options.designSystem, (0, import_utils24.deepClone)(DEFAULT_CONFIG)) : options.designSystem || (0, import_utils24.deepClone)(DEFAULT_CONFIG);
27140
27311
  const scratchSystem2 = init(designSystem, {
27141
27312
  key,
27142
27313
  emotion: emotion2,
@@ -27169,7 +27340,7 @@ var UIkitWithPrefix = () => {
27169
27340
  const newObj = {};
27170
27341
  for (const key in uikit_exports) {
27171
27342
  if (Object.prototype.hasOwnProperty.call(uikit_exports, key)) {
27172
- if ((0, import_utils24.checkIfKeyIsComponent)(key)) {
27343
+ if ((0, import_utils25.checkIfKeyIsComponent)(key)) {
27173
27344
  newObj[`smbls.${key}`] = uikit_exports[key];
27174
27345
  } else {
27175
27346
  newObj[key] = uikit_exports[key];
@@ -27256,7 +27427,7 @@ var prepareRequire = (packages, ctx) => {
27256
27427
  return windowOpts2.require(key);
27257
27428
  };
27258
27429
  if (windowOpts.packages) {
27259
- windowOpts.packages = (0, import_utils24.merge)(windowOpts.packages, packages);
27430
+ windowOpts.packages = (0, import_utils25.merge)(windowOpts.packages, packages);
27260
27431
  } else {
27261
27432
  windowOpts.packages = packages;
27262
27433
  }
@@ -27278,12 +27449,12 @@ var prepareState = (app, context) => {
27278
27449
  if (context.state)
27279
27450
  utilImports_exports.deepMerge(state, context.state);
27280
27451
  if (app && app.state)
27281
- (0, import_utils24.deepMerge)(state, app.state);
27282
- return (0, import_utils24.deepClone)(state);
27452
+ (0, import_utils25.deepMerge)(state, app.state);
27453
+ return (0, import_utils25.deepClone)(state);
27283
27454
  };
27284
27455
  var preparePages = (app, context) => {
27285
- if ((0, import_utils24.isObject)(app.routes) && (0, import_utils24.isObject)(context.pages)) {
27286
- (0, import_utils24.merge)(app.routes, context.pages);
27456
+ if ((0, import_utils25.isObject)(app.routes) && (0, import_utils25.isObject)(context.pages)) {
27457
+ (0, import_utils25.merge)(app.routes, context.pages);
27287
27458
  }
27288
27459
  const pages = app.routes || context.pages || {};
27289
27460
  return Object.keys(pages).filter((v) => !v.startsWith("/")).reduce((pages2, v) => {
@@ -27315,7 +27486,7 @@ var initAnimationFrame = () => {
27315
27486
 
27316
27487
  // src/createDomql.js
27317
27488
  var prepareContext = (app, context = {}) => {
27318
- const key = context.key = context.key || ((0, import_utils25.isString)(app) ? app : "smblsapp");
27489
+ const key = context.key = context.key || ((0, import_utils26.isString)(app) ? app : "smblsapp");
27319
27490
  context.define = context.define || defaultDefine;
27320
27491
  context.window = prepareWindow(context);
27321
27492
  const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(key, context);
@@ -27334,17 +27505,17 @@ var prepareContext = (app, context = {}) => {
27334
27505
  return context;
27335
27506
  };
27336
27507
  var createDomqlElement = (app, ctx) => {
27337
- if (!(0, import_utils25.isObject)(ctx))
27508
+ if (!(0, import_utils26.isObject)(ctx))
27338
27509
  ctx = {};
27339
- if ((0, import_utils25.isNode)(app)) {
27510
+ if ((0, import_utils26.isNode)(app)) {
27340
27511
  app = {};
27341
27512
  ctx.parent = app;
27342
27513
  }
27343
- if ((0, import_utils25.isString)(app)) {
27514
+ if ((0, import_utils26.isString)(app)) {
27344
27515
  app = {};
27345
27516
  ctx.key = app;
27346
27517
  }
27347
- if (!(0, import_utils25.isObject)(app)) {
27518
+ if (!(0, import_utils26.isObject)(app)) {
27348
27519
  app = {};
27349
27520
  }
27350
27521
  prepareContext(app, ctx);
@@ -27373,9 +27544,9 @@ var createDomqlElement = (app, ctx) => {
27373
27544
  };
27374
27545
 
27375
27546
  // src/index.js
27376
- var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils26.deepMerge)(
27547
+ var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils27.deepMerge)(
27377
27548
  options,
27378
- (0, import_utils26.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
27549
+ (0, import_utils27.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
27379
27550
  );
27380
27551
  var create = (App, options = options_default, optionsExternalFile) => {
27381
27552
  const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
@@ -27404,10 +27575,10 @@ var createSync = async (App, options = options_default, optionsExternalFile) =>
27404
27575
  var createSkeleton = (App = {}, options = options_default, optionsExternalFile) => {
27405
27576
  return create(
27406
27577
  {
27407
- deps: { isUndefined: import_utils26.isUndefined },
27578
+ deps: { isUndefined: import_utils27.isUndefined },
27408
27579
  ...App
27409
27580
  },
27410
- (0, import_utils26.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
27581
+ (0, import_utils27.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
27411
27582
  optionsExternalFile
27412
27583
  );
27413
27584
  };