@symbo.ls/scratch 2.11.125 → 2.11.132

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.
package/dist/cjs/set.js CHANGED
@@ -107,196 +107,9 @@ var require_env = __commonJS({
107
107
  }
108
108
  });
109
109
 
110
- // ../../node_modules/@domql/tags/dist/cjs/htmlTags.js
111
- var require_htmlTags = __commonJS({
112
- "../../node_modules/@domql/tags/dist/cjs/htmlTags.js"(exports, module2) {
113
- "use strict";
114
- var __defProp2 = Object.defineProperty;
115
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
116
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
117
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
118
- var __export2 = (target, all) => {
119
- for (var name in all)
120
- __defProp2(target, name, { get: all[name], enumerable: true });
121
- };
122
- var __copyProps2 = (to, from, except, desc) => {
123
- if (from && typeof from === "object" || typeof from === "function") {
124
- for (let key of __getOwnPropNames2(from))
125
- if (!__hasOwnProp2.call(to, key) && key !== except)
126
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
127
- }
128
- return to;
129
- };
130
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
131
- var htmlTags_exports = {};
132
- __export2(htmlTags_exports, {
133
- HTML_TAGS: () => HTML_TAGS
134
- });
135
- module2.exports = __toCommonJS2(htmlTags_exports);
136
- var HTML_TAGS = {
137
- root: [
138
- "body",
139
- "html"
140
- ],
141
- head: [
142
- "title",
143
- "base",
144
- "meta",
145
- "style"
146
- ],
147
- body: [
148
- "string",
149
- "fragment",
150
- "a",
151
- "abbr",
152
- "acronym",
153
- "address",
154
- "applet",
155
- "area",
156
- "article",
157
- "aside",
158
- "audio",
159
- "b",
160
- "basefont",
161
- "bdi",
162
- "bdo",
163
- "big",
164
- "blockquote",
165
- "br",
166
- "button",
167
- "canvas",
168
- "caption",
169
- "center",
170
- "cite",
171
- "code",
172
- "col",
173
- "colgroup",
174
- "data",
175
- "datalist",
176
- "dd",
177
- "del",
178
- "details",
179
- "dfn",
180
- "dialog",
181
- "dir",
182
- "div",
183
- "dl",
184
- "dt",
185
- "em",
186
- "embed",
187
- "fieldset",
188
- "figcaption",
189
- "figure",
190
- "font",
191
- "footer",
192
- "form",
193
- "frame",
194
- "frameset",
195
- "h1",
196
- "h2",
197
- "h3",
198
- "h4",
199
- "h5",
200
- "h6",
201
- "head",
202
- "header",
203
- "hr",
204
- "i",
205
- "iframe",
206
- "img",
207
- "input",
208
- "ins",
209
- "kbd",
210
- "label",
211
- "legend",
212
- "li",
213
- "link",
214
- "main",
215
- "map",
216
- "mark",
217
- "meter",
218
- "nav",
219
- "noframes",
220
- "noscript",
221
- "object",
222
- "ol",
223
- "optgroup",
224
- "option",
225
- "output",
226
- "p",
227
- "param",
228
- "picture",
229
- "pre",
230
- "progress",
231
- "q",
232
- "rp",
233
- "rt",
234
- "ruby",
235
- "s",
236
- "samp",
237
- "script",
238
- "section",
239
- "select",
240
- "small",
241
- "source",
242
- "span",
243
- "strike",
244
- "strong",
245
- "sub",
246
- "summary",
247
- "sup",
248
- "table",
249
- "tbody",
250
- "td",
251
- "template",
252
- "textarea",
253
- "tfoot",
254
- "th",
255
- "thead",
256
- "time",
257
- "tr",
258
- "track",
259
- "tt",
260
- "u",
261
- "ul",
262
- "var",
263
- "video",
264
- "wbr",
265
- // SVG
266
- "svg",
267
- "path"
268
- ]
269
- };
270
- }
271
- });
272
-
273
- // ../../node_modules/@domql/tags/dist/cjs/index.js
274
- var require_cjs = __commonJS({
275
- "../../node_modules/@domql/tags/dist/cjs/index.js"(exports, module2) {
276
- "use strict";
277
- var __defProp2 = Object.defineProperty;
278
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
279
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
280
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
281
- var __copyProps2 = (to, from, except, desc) => {
282
- if (from && typeof from === "object" || typeof from === "function") {
283
- for (let key of __getOwnPropNames2(from))
284
- if (!__hasOwnProp2.call(to, key) && key !== except)
285
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
286
- }
287
- return to;
288
- };
289
- var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
290
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
291
- var tags_exports = {};
292
- module2.exports = __toCommonJS2(tags_exports);
293
- __reExport(tags_exports, require_htmlTags(), module2.exports);
294
- }
295
- });
296
-
297
- // ../../node_modules/@domql/globals/dist/cjs/index.js
298
- var require_cjs2 = __commonJS({
299
- "../../node_modules/@domql/globals/dist/cjs/index.js"(exports, module2) {
110
+ // ../../node_modules/@domql/utils/dist/cjs/globals.js
111
+ var require_globals = __commonJS({
112
+ "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
300
113
  "use strict";
301
114
  var __defProp2 = Object.defineProperty;
302
115
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -357,7 +170,7 @@ var require_node = __commonJS({
357
170
  isNode: () => isNode
358
171
  });
359
172
  module2.exports = __toCommonJS2(node_exports);
360
- var import_globals3 = require_cjs2();
173
+ var import_globals3 = require_globals();
361
174
  var isNode = (obj) => {
362
175
  return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
363
176
  };
@@ -402,13 +215,10 @@ var require_types = __commonJS({
402
215
  isObject: () => isObject7,
403
216
  isObjectLike: () => isObjectLike3,
404
217
  isString: () => isString8,
405
- isUndefined: () => isUndefined,
406
- isValidHtmlTag: () => isValidHtmlTag
218
+ isUndefined: () => isUndefined
407
219
  });
408
220
  module2.exports = __toCommonJS2(types_exports);
409
- var import_tags = require_cjs();
410
221
  var import_node = require_node();
411
- var isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.includes(arg);
412
222
  var isObject7 = (arg) => {
413
223
  if (arg === null)
414
224
  return false;
@@ -664,7 +474,7 @@ var require_object = __commonJS({
664
474
  stringToObject: () => stringToObject
665
475
  });
666
476
  module2.exports = __toCommonJS2(object_exports);
667
- var import_globals3 = require_cjs2();
477
+ var import_globals3 = require_globals();
668
478
  var import_types = require_types();
669
479
  var import_array = require_array();
670
480
  var import_string = require_string();
@@ -1129,42 +939,6 @@ var require_log = __commonJS({
1129
939
  }
1130
940
  });
1131
941
 
1132
- // ../../node_modules/@domql/utils/dist/cjs/globals.js
1133
- var require_globals = __commonJS({
1134
- "../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
1135
- "use strict";
1136
- var __defProp2 = Object.defineProperty;
1137
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1138
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
1139
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1140
- var __export2 = (target, all) => {
1141
- for (var name in all)
1142
- __defProp2(target, name, { get: all[name], enumerable: true });
1143
- };
1144
- var __copyProps2 = (to, from, except, desc) => {
1145
- if (from && typeof from === "object" || typeof from === "function") {
1146
- for (let key of __getOwnPropNames2(from))
1147
- if (!__hasOwnProp2.call(to, key) && key !== except)
1148
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1149
- }
1150
- return to;
1151
- };
1152
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1153
- var globals_exports = {};
1154
- __export2(globals_exports, {
1155
- document: () => document4,
1156
- global: () => global,
1157
- self: () => self,
1158
- window: () => window2
1159
- });
1160
- module2.exports = __toCommonJS2(globals_exports);
1161
- var global = globalThis;
1162
- var self = globalThis;
1163
- var window2 = globalThis;
1164
- var document4 = window2.document;
1165
- }
1166
- });
1167
-
1168
942
  // ../../node_modules/@domql/utils/dist/cjs/cookie.js
1169
943
  var require_cookie = __commonJS({
1170
944
  "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
@@ -1221,8 +995,173 @@ var require_cookie = __commonJS({
1221
995
  }
1222
996
  });
1223
997
 
998
+ // ../../node_modules/@domql/utils/dist/cjs/tags.js
999
+ var require_tags = __commonJS({
1000
+ "../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
1001
+ "use strict";
1002
+ var __defProp2 = Object.defineProperty;
1003
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1004
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
1005
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1006
+ var __export2 = (target, all) => {
1007
+ for (var name in all)
1008
+ __defProp2(target, name, { get: all[name], enumerable: true });
1009
+ };
1010
+ var __copyProps2 = (to, from, except, desc) => {
1011
+ if (from && typeof from === "object" || typeof from === "function") {
1012
+ for (let key of __getOwnPropNames2(from))
1013
+ if (!__hasOwnProp2.call(to, key) && key !== except)
1014
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1015
+ }
1016
+ return to;
1017
+ };
1018
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1019
+ var tags_exports = {};
1020
+ __export2(tags_exports, {
1021
+ HTML_TAGS: () => HTML_TAGS,
1022
+ isValidHtmlTag: () => isValidHtmlTag
1023
+ });
1024
+ module2.exports = __toCommonJS2(tags_exports);
1025
+ var HTML_TAGS = {
1026
+ root: [
1027
+ "body",
1028
+ "html"
1029
+ ],
1030
+ head: [
1031
+ "title",
1032
+ "base",
1033
+ "meta",
1034
+ "style"
1035
+ ],
1036
+ body: [
1037
+ "string",
1038
+ "fragment",
1039
+ "a",
1040
+ "abbr",
1041
+ "acronym",
1042
+ "address",
1043
+ "applet",
1044
+ "area",
1045
+ "article",
1046
+ "aside",
1047
+ "audio",
1048
+ "b",
1049
+ "basefont",
1050
+ "bdi",
1051
+ "bdo",
1052
+ "big",
1053
+ "blockquote",
1054
+ "br",
1055
+ "button",
1056
+ "canvas",
1057
+ "caption",
1058
+ "center",
1059
+ "cite",
1060
+ "code",
1061
+ "col",
1062
+ "colgroup",
1063
+ "data",
1064
+ "datalist",
1065
+ "dd",
1066
+ "del",
1067
+ "details",
1068
+ "dfn",
1069
+ "dialog",
1070
+ "dir",
1071
+ "div",
1072
+ "dl",
1073
+ "dt",
1074
+ "em",
1075
+ "embed",
1076
+ "fieldset",
1077
+ "figcaption",
1078
+ "figure",
1079
+ "font",
1080
+ "footer",
1081
+ "form",
1082
+ "frame",
1083
+ "frameset",
1084
+ "h1",
1085
+ "h2",
1086
+ "h3",
1087
+ "h4",
1088
+ "h5",
1089
+ "h6",
1090
+ "head",
1091
+ "header",
1092
+ "hr",
1093
+ "i",
1094
+ "iframe",
1095
+ "img",
1096
+ "input",
1097
+ "ins",
1098
+ "kbd",
1099
+ "label",
1100
+ "legend",
1101
+ "li",
1102
+ "link",
1103
+ "main",
1104
+ "map",
1105
+ "mark",
1106
+ "meter",
1107
+ "nav",
1108
+ "noframes",
1109
+ "noscript",
1110
+ "object",
1111
+ "ol",
1112
+ "optgroup",
1113
+ "option",
1114
+ "output",
1115
+ "p",
1116
+ "param",
1117
+ "picture",
1118
+ "pre",
1119
+ "progress",
1120
+ "q",
1121
+ "rp",
1122
+ "rt",
1123
+ "ruby",
1124
+ "s",
1125
+ "samp",
1126
+ "script",
1127
+ "section",
1128
+ "select",
1129
+ "small",
1130
+ "source",
1131
+ "span",
1132
+ "strike",
1133
+ "strong",
1134
+ "sub",
1135
+ "summary",
1136
+ "sup",
1137
+ "table",
1138
+ "tbody",
1139
+ "td",
1140
+ "template",
1141
+ "textarea",
1142
+ "tfoot",
1143
+ "th",
1144
+ "thead",
1145
+ "time",
1146
+ "tr",
1147
+ "track",
1148
+ "tt",
1149
+ "u",
1150
+ "ul",
1151
+ "var",
1152
+ "video",
1153
+ "wbr",
1154
+ // SVG
1155
+ "svg",
1156
+ "path"
1157
+ ]
1158
+ };
1159
+ var isValidHtmlTag = (arg) => HTML_TAGS.body.includes(arg);
1160
+ }
1161
+ });
1162
+
1224
1163
  // ../../node_modules/@domql/utils/dist/cjs/index.js
1225
- var require_cjs3 = __commonJS({
1164
+ var require_cjs = __commonJS({
1226
1165
  "../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
1227
1166
  "use strict";
1228
1167
  var __defProp2 = Object.defineProperty;
@@ -1252,6 +1191,43 @@ var require_cjs3 = __commonJS({
1252
1191
  __reExport(utils_exports, require_string(), module2.exports);
1253
1192
  __reExport(utils_exports, require_globals(), module2.exports);
1254
1193
  __reExport(utils_exports, require_cookie(), module2.exports);
1194
+ __reExport(utils_exports, require_tags(), module2.exports);
1195
+ }
1196
+ });
1197
+
1198
+ // ../../node_modules/@domql/globals/dist/cjs/index.js
1199
+ var require_cjs2 = __commonJS({
1200
+ "../../node_modules/@domql/globals/dist/cjs/index.js"(exports, module2) {
1201
+ "use strict";
1202
+ var __defProp2 = Object.defineProperty;
1203
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
1204
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
1205
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
1206
+ var __export2 = (target, all) => {
1207
+ for (var name in all)
1208
+ __defProp2(target, name, { get: all[name], enumerable: true });
1209
+ };
1210
+ var __copyProps2 = (to, from, except, desc) => {
1211
+ if (from && typeof from === "object" || typeof from === "function") {
1212
+ for (let key of __getOwnPropNames2(from))
1213
+ if (!__hasOwnProp2.call(to, key) && key !== except)
1214
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
1215
+ }
1216
+ return to;
1217
+ };
1218
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1219
+ var globals_exports = {};
1220
+ __export2(globals_exports, {
1221
+ document: () => document4,
1222
+ global: () => global,
1223
+ self: () => self,
1224
+ window: () => window2
1225
+ });
1226
+ module2.exports = __toCommonJS2(globals_exports);
1227
+ var global = globalThis;
1228
+ var self = globalThis;
1229
+ var window2 = globalThis;
1230
+ var document4 = window2.document;
1255
1231
  }
1256
1232
  });
1257
1233
 
@@ -1266,7 +1242,7 @@ __export(set_exports, {
1266
1242
  module.exports = __toCommonJS(set_exports);
1267
1243
 
1268
1244
  // src/factory.js
1269
- var import_utils = __toESM(require_cjs3(), 1);
1245
+ var import_utils = __toESM(require_cjs(), 1);
1270
1246
 
1271
1247
  // src/defaultConfig/index.js
1272
1248
  var defaultConfig_exports = {};
@@ -1496,11 +1472,11 @@ var setActiveConfig = (newConfig) => {
1496
1472
  };
1497
1473
 
1498
1474
  // src/system/color.js
1499
- var import_utils9 = __toESM(require_cjs3(), 1);
1475
+ var import_utils9 = __toESM(require_cjs(), 1);
1500
1476
 
1501
1477
  // src/utils/color.js
1502
1478
  var import_globals = __toESM(require_cjs2(), 1);
1503
- var import_utils2 = __toESM(require_cjs3(), 1);
1479
+ var import_utils2 = __toESM(require_cjs(), 1);
1504
1480
  var colorStringToRgbaArray = (color) => {
1505
1481
  if (color === "")
1506
1482
  return;
@@ -1621,13 +1597,13 @@ var getFontFaceEach = (name, weights) => {
1621
1597
  };
1622
1598
 
1623
1599
  // src/utils/sequence.js
1624
- var import_utils5 = __toESM(require_cjs3(), 1);
1600
+ var import_utils5 = __toESM(require_cjs(), 1);
1625
1601
 
1626
1602
  // ../utils/src/index.js
1627
- var import_utils4 = __toESM(require_cjs3());
1603
+ var import_utils4 = __toESM(require_cjs());
1628
1604
 
1629
1605
  // ../utils/src/scaling.js
1630
- var import_utils3 = __toESM(require_cjs3());
1606
+ var import_utils3 = __toESM(require_cjs());
1631
1607
 
1632
1608
  // ../utils/src/index.js
1633
1609
  var arrayzeValue = (val) => {
@@ -1748,7 +1724,7 @@ var findHeadings = (propertyNames) => {
1748
1724
  };
1749
1725
 
1750
1726
  // src/utils/var.js
1751
- var import_utils7 = __toESM(require_cjs3(), 1);
1727
+ var import_utils7 = __toESM(require_cjs(), 1);
1752
1728
  var applySequenceVars = (props, mediaName, options = {}) => {
1753
1729
  const CONFIG2 = getActiveConfig();
1754
1730
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG2;
@@ -1780,7 +1756,7 @@ var applySequenceVars = (props, mediaName, options = {}) => {
1780
1756
  };
1781
1757
 
1782
1758
  // src/utils/sprite.js
1783
- var import_utils8 = __toESM(require_cjs3(), 1);
1759
+ var import_utils8 = __toESM(require_cjs(), 1);
1784
1760
  var parseRootAttributes = (htmlString) => {
1785
1761
  if (!(0, import_utils8.isString)(htmlString)) {
1786
1762
  return console.warn(`parseRootAttributes: ${htmlString} is not a string`);
@@ -1924,7 +1900,7 @@ var setGradient = (val, key, suffix) => {
1924
1900
  };
1925
1901
 
1926
1902
  // src/system/theme.js
1927
- var import_utils11 = __toESM(require_cjs3(), 1);
1903
+ var import_utils11 = __toESM(require_cjs(), 1);
1928
1904
  var setThemeValue = (theme) => {
1929
1905
  const value = {};
1930
1906
  const { state, media, helpers, ...rest } = theme;
@@ -2140,7 +2116,7 @@ var getMediaTheme = (val, mod) => {
2140
2116
  };
2141
2117
 
2142
2118
  // src/system/font.js
2143
- var import_utils12 = __toESM(require_cjs3(), 1);
2119
+ var import_utils12 = __toESM(require_cjs(), 1);
2144
2120
  var setFont = (val, key) => {
2145
2121
  const CSSvar = `--font-${key}`;
2146
2122
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
@@ -2160,7 +2136,7 @@ var setFontFamily = (val, key) => {
2160
2136
  };
2161
2137
 
2162
2138
  // src/system/typography.js
2163
- var import_utils15 = __toESM(require_cjs3(), 1);
2139
+ var import_utils15 = __toESM(require_cjs(), 1);
2164
2140
  var runThroughMedia = (props) => {
2165
2141
  const CONFIG2 = getActiveConfig();
2166
2142
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG2;
@@ -2220,7 +2196,7 @@ var applyTypographySequence = () => {
2220
2196
  };
2221
2197
 
2222
2198
  // src/system/spacing.js
2223
- var import_utils18 = __toESM(require_cjs3(), 1);
2199
+ var import_utils18 = __toESM(require_cjs(), 1);
2224
2200
  var runThroughMedia2 = (sequenceProps) => {
2225
2201
  for (const prop in sequenceProps) {
2226
2202
  const mediaProps = sequenceProps[prop];
@@ -2262,7 +2238,7 @@ var applyTimingSequence = () => {
2262
2238
  };
2263
2239
 
2264
2240
  // src/system/document.js
2265
- var import_utils22 = __toESM(require_cjs3(), 1);
2241
+ var import_utils22 = __toESM(require_cjs(), 1);
2266
2242
  var applyDocument = () => {
2267
2243
  const CONFIG2 = getActiveConfig();
2268
2244
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG2;
@@ -2297,7 +2273,7 @@ var setIcon = (val, key) => {
2297
2273
  };
2298
2274
 
2299
2275
  // src/system/reset.js
2300
- var import_utils25 = __toESM(require_cjs3(), 1);
2276
+ var import_utils25 = __toESM(require_cjs(), 1);
2301
2277
  var applyReset = (reset = {}) => {
2302
2278
  const CONFIG2 = getActiveConfig();
2303
2279
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG2;
@@ -2359,7 +2335,7 @@ var applyReset = (reset = {}) => {
2359
2335
  };
2360
2336
 
2361
2337
  // src/set.js
2362
- var import_utils26 = __toESM(require_cjs3(), 1);
2338
+ var import_utils26 = __toESM(require_cjs(), 1);
2363
2339
  var setCases = (val, key) => {
2364
2340
  if ((0, import_utils26.isFunction)(val))
2365
2341
  return val();