@tokens-studio/tokenscript-interpreter 0.36.3 → 0.36.4

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.
Files changed (65) hide show
  1. package/dist/chunk-LZTXD3LN.js +100 -0
  2. package/dist/chunk-LZTXD3LN.js.map +1 -0
  3. package/dist/chunk-OCQX3WYJ.js +6502 -0
  4. package/dist/chunk-OCQX3WYJ.js.map +1 -0
  5. package/dist/cli.js +45 -2
  6. package/dist/cli.js.map +1 -1
  7. package/dist/compliance-suite.js +2 -2
  8. package/dist/config-Bsd6DPFy.d.ts +919 -0
  9. package/dist/lib/{chunk-F5SBEZH2.js → chunk-2BDFE7U4.js} +47 -5
  10. package/dist/lib/chunk-2BDFE7U4.js.map +1 -0
  11. package/dist/lib/{chunk-ODVWXGOM.js → chunk-AEOBCHBK.js} +3 -2
  12. package/dist/lib/chunk-AEOBCHBK.js.map +1 -0
  13. package/dist/lib/{chunk-PXS4WZYB.cjs → chunk-K65UI6KX.cjs} +100 -100
  14. package/dist/lib/{chunk-PXS4WZYB.cjs.map → chunk-K65UI6KX.cjs.map} +1 -1
  15. package/dist/lib/{chunk-LEYHQJTL.cjs → chunk-KHF2VXWO.cjs} +3 -2
  16. package/dist/lib/chunk-KHF2VXWO.cjs.map +1 -0
  17. package/dist/lib/{chunk-73YLAUUC.js → chunk-S7WGJBSX.js} +3 -3
  18. package/dist/lib/{chunk-73YLAUUC.js.map → chunk-S7WGJBSX.js.map} +1 -1
  19. package/dist/lib/{chunk-XHA2RNU7.cjs → chunk-UF6I25ED.cjs} +600 -558
  20. package/dist/lib/chunk-UF6I25ED.cjs.map +1 -0
  21. package/dist/lib/index.cjs +91 -91
  22. package/dist/lib/index.d.cts +4 -4
  23. package/dist/lib/index.d.ts +4 -4
  24. package/dist/lib/index.js +3 -3
  25. package/dist/lib/{interpreter-6QwMkUqD.d.cts → interpreter-Cz_vWDDa.d.cts} +1 -1
  26. package/dist/lib/{interpreter-v7WiwSP9.d.ts → interpreter-DdF_Hj-J.d.ts} +1 -1
  27. package/dist/lib/interpreter.cjs +73 -73
  28. package/dist/lib/interpreter.d.cts +4 -4
  29. package/dist/lib/interpreter.d.ts +4 -4
  30. package/dist/lib/interpreter.js +3 -3
  31. package/dist/lib/processor-node.cjs +12 -12
  32. package/dist/lib/processor-node.d.cts +3 -3
  33. package/dist/lib/processor-node.d.ts +3 -3
  34. package/dist/lib/processor-node.js +3 -3
  35. package/dist/lib/processor.cjs +17 -17
  36. package/dist/lib/processor.d.cts +4 -4
  37. package/dist/lib/processor.d.ts +4 -4
  38. package/dist/lib/processor.js +3 -3
  39. package/dist/lib/schema.cjs +5 -5
  40. package/dist/lib/schema.d.cts +1 -1
  41. package/dist/lib/schema.d.ts +1 -1
  42. package/dist/lib/schema.js +3 -3
  43. package/dist/lib/syntax-highlighting.cjs +15 -15
  44. package/dist/lib/syntax-highlighting.d.cts +1 -1
  45. package/dist/lib/syntax-highlighting.d.ts +1 -1
  46. package/dist/lib/syntax-highlighting.js +2 -2
  47. package/dist/lib/{types-cFwP43uv.d.cts → types-6QQt-XVS.d.cts} +2 -2
  48. package/dist/lib/{types-EB8V9c46.d.ts → types-CxQPMHn1.d.cts} +2 -1
  49. package/dist/lib/{types-EB8V9c46.d.cts → types-CxQPMHn1.d.ts} +2 -1
  50. package/dist/lib/{types-BI0AZ4Ej.d.ts → types-DRpZJjkx.d.ts} +2 -2
  51. package/dist/lib/types.cjs +6 -6
  52. package/dist/lib/types.d.cts +1 -1
  53. package/dist/lib/types.d.ts +1 -1
  54. package/dist/lib/types.js +1 -1
  55. package/dist/processor/index.d.ts +1 -1
  56. package/dist/processor/index.js +2 -2
  57. package/dist/repl.d.ts +1 -1
  58. package/dist/repl.js +2 -2
  59. package/dist/types.d.ts +1 -1
  60. package/dist/types.js +1 -1
  61. package/package.json +1 -1
  62. package/dist/lib/chunk-F5SBEZH2.js.map +0 -1
  63. package/dist/lib/chunk-LEYHQJTL.cjs.map +0 -1
  64. package/dist/lib/chunk-ODVWXGOM.js.map +0 -1
  65. package/dist/lib/chunk-XHA2RNU7.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
3
+ var chunkKHF2VXWO_cjs = require('./chunk-KHF2VXWO.cjs');
4
4
 
5
5
  // src/interpreter/errors/codes/color.ts
6
6
  var ColorErrorCode = /* @__PURE__ */ ((ColorErrorCode2) => {
@@ -294,7 +294,7 @@ Root cause: ${data.rootCause}`,
294
294
  };
295
295
 
296
296
  // src/interpreter/errors/messages/index.ts
297
- var getMessage = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((code, data) => {
297
+ var getMessage = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((code, data) => {
298
298
  const template = messages[code];
299
299
  if (!template) {
300
300
  return `Unknown error: ${code}`;
@@ -330,7 +330,7 @@ Near token: ${String(this.token.value)}`;
330
330
  return base;
331
331
  }
332
332
  };
333
- chunkLEYHQJTL_cjs.__name(_LanguageError, "LanguageError");
333
+ chunkKHF2VXWO_cjs.__name(_LanguageError, "LanguageError");
334
334
  var LanguageError = _LanguageError;
335
335
  var _LexerError = class _LexerError extends LanguageError {
336
336
  constructor(code, options) {
@@ -339,7 +339,7 @@ var _LexerError = class _LexerError extends LanguageError {
339
339
  this.code = code;
340
340
  }
341
341
  };
342
- chunkLEYHQJTL_cjs.__name(_LexerError, "LexerError");
342
+ chunkKHF2VXWO_cjs.__name(_LexerError, "LexerError");
343
343
  var LexerError = _LexerError;
344
344
  var _ParserError = class _ParserError extends LanguageError {
345
345
  constructor(code, options) {
@@ -348,7 +348,7 @@ var _ParserError = class _ParserError extends LanguageError {
348
348
  this.code = code;
349
349
  }
350
350
  };
351
- chunkLEYHQJTL_cjs.__name(_ParserError, "ParserError");
351
+ chunkKHF2VXWO_cjs.__name(_ParserError, "ParserError");
352
352
  var ParserError = _ParserError;
353
353
  var _InterpreterError = class _InterpreterError extends LanguageError {
354
354
  constructor(code, options) {
@@ -357,7 +357,7 @@ var _InterpreterError = class _InterpreterError extends LanguageError {
357
357
  this.code = code;
358
358
  }
359
359
  };
360
- chunkLEYHQJTL_cjs.__name(_InterpreterError, "InterpreterError");
360
+ chunkKHF2VXWO_cjs.__name(_InterpreterError, "InterpreterError");
361
361
  var InterpreterError = _InterpreterError;
362
362
  var _ProcessorError = class _ProcessorError extends LanguageError {
363
363
  constructor(code, options) {
@@ -366,30 +366,30 @@ var _ProcessorError = class _ProcessorError extends LanguageError {
366
366
  this.code = code;
367
367
  }
368
368
  };
369
- chunkLEYHQJTL_cjs.__name(_ProcessorError, "ProcessorError");
369
+ chunkKHF2VXWO_cjs.__name(_ProcessorError, "ProcessorError");
370
370
  var ProcessorError = _ProcessorError;
371
371
 
372
372
  // src/interpreter/errors/utils.ts
373
373
  function isLanguageError(error) {
374
374
  return error instanceof LanguageError;
375
375
  }
376
- chunkLEYHQJTL_cjs.__name(isLanguageError, "isLanguageError");
376
+ chunkKHF2VXWO_cjs.__name(isLanguageError, "isLanguageError");
377
377
  function isLexerError(error) {
378
378
  return error instanceof LexerError;
379
379
  }
380
- chunkLEYHQJTL_cjs.__name(isLexerError, "isLexerError");
380
+ chunkKHF2VXWO_cjs.__name(isLexerError, "isLexerError");
381
381
  function isParserError(error) {
382
382
  return error instanceof ParserError;
383
383
  }
384
- chunkLEYHQJTL_cjs.__name(isParserError, "isParserError");
384
+ chunkKHF2VXWO_cjs.__name(isParserError, "isParserError");
385
385
  function isInterpreterError(error) {
386
386
  return error instanceof InterpreterError;
387
387
  }
388
- chunkLEYHQJTL_cjs.__name(isInterpreterError, "isInterpreterError");
388
+ chunkKHF2VXWO_cjs.__name(isInterpreterError, "isInterpreterError");
389
389
  function isProcessorError(error) {
390
390
  return error instanceof ProcessorError;
391
391
  }
392
- chunkLEYHQJTL_cjs.__name(isProcessorError, "isProcessorError");
392
+ chunkKHF2VXWO_cjs.__name(isProcessorError, "isProcessorError");
393
393
  function serializeError(error) {
394
394
  if (error instanceof LanguageError) {
395
395
  return error;
@@ -405,38 +405,38 @@ function serializeError(error) {
405
405
  }
406
406
  return String(error);
407
407
  }
408
- chunkLEYHQJTL_cjs.__name(serializeError, "serializeError");
408
+ chunkKHF2VXWO_cjs.__name(serializeError, "serializeError");
409
409
 
410
410
  // src/interpreter/utils/type.ts
411
- var isSome = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
411
+ var isSome = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
412
412
  return v != null;
413
413
  }, "isSome");
414
- var isNone = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
414
+ var isNone = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
415
415
  return v == null;
416
416
  }, "isNone");
417
- var isNull = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
417
+ var isNull = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
418
418
  return v === null;
419
419
  }, "isNull");
420
- var isUndefined = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
420
+ var isUndefined = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
421
421
  return v === void 0;
422
422
  }, "isUndefined");
423
- var isObject = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
423
+ var isObject = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
424
424
  return typeof v === "object" && v !== null && !Array.isArray(v);
425
425
  }, "isObject");
426
- var isString = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
426
+ var isString = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
427
427
  return typeof v === "string";
428
428
  }, "isString");
429
- var isNumber = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
429
+ var isNumber = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
430
430
  return typeof v === "number" && !Number.isNaN(v);
431
431
  }, "isNumber");
432
- var isBoolean = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
432
+ var isBoolean = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
433
433
  return typeof v === "boolean";
434
434
  }, "isBoolean");
435
- var isArray = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
435
+ var isArray = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
436
436
  return Array.isArray(v);
437
437
  }, "isArray");
438
- var isMap = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => v instanceof Map, "isMap");
439
- var getKeyAlt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((keys, record) => {
438
+ var isMap = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => v instanceof Map, "isMap");
439
+ var getKeyAlt = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((keys, record) => {
440
440
  for (const key of keys) {
441
441
  if (key in record) {
442
442
  return record[key];
@@ -444,18 +444,18 @@ var getKeyAlt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((keys, record) => {
444
444
  }
445
445
  return void 0;
446
446
  }, "getKeyAlt");
447
- var isObjectWithKey = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, key) => {
447
+ var isObjectWithKey = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((value, key) => {
448
448
  return isObject(value) && key in value;
449
449
  }, "isObjectWithKey");
450
- var isOutOfBounds = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, index) => {
450
+ var isOutOfBounds = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((value, index) => {
451
451
  if (!isArray(value)) return true;
452
452
  return index < 0 || index >= value.length;
453
453
  }, "isOutOfBounds");
454
- var isOutOfBoundsInclusive = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, index) => {
454
+ var isOutOfBoundsInclusive = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((value, index) => {
455
455
  if (!isArray(value)) return true;
456
456
  return index < 0 || index > value.length;
457
457
  }, "isOutOfBoundsInclusive");
458
- var safeParseInt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
458
+ var safeParseInt = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => {
459
459
  if (isNumber(v)) return Math.floor(v);
460
460
  if (isString(v)) {
461
461
  const parsed = parseInt(v, 10);
@@ -463,7 +463,7 @@ var safeParseInt = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => {
463
463
  }
464
464
  return null;
465
465
  }, "safeParseInt");
466
- var nullToUndefined = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((v) => isNull(v) ? void 0 : v, "nullToUndefined");
466
+ var nullToUndefined = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((v) => isNull(v) ? void 0 : v, "nullToUndefined");
467
467
 
468
468
  // src/interpreter/utils/color.ts
469
469
  function isValidHex(value) {
@@ -480,7 +480,7 @@ function isValidHex(value) {
480
480
  }
481
481
  return true;
482
482
  }
483
- chunkLEYHQJTL_cjs.__name(isValidHex, "isValidHex");
483
+ chunkKHF2VXWO_cjs.__name(isValidHex, "isValidHex");
484
484
  function parseHexWithAlpha(value) {
485
485
  if (!isValidHex(value)) {
486
486
  throw new InterpreterError("SYM_INVALID_HEX_COLOR" /* INVALID_HEX_COLOR */, {
@@ -508,11 +508,11 @@ function parseHexWithAlpha(value) {
508
508
  const alphaValue = Number.parseInt(alphaPart, 16) / 255;
509
509
  return { color: `#${colorPart}`, alpha: alphaValue };
510
510
  }
511
- chunkLEYHQJTL_cjs.__name(parseHexWithAlpha, "parseHexWithAlpha");
511
+ chunkKHF2VXWO_cjs.__name(parseHexWithAlpha, "parseHexWithAlpha");
512
512
  function isValidAlpha(alpha) {
513
513
  return alpha === null || alpha >= 0 && alpha <= 1;
514
514
  }
515
- chunkLEYHQJTL_cjs.__name(isValidAlpha, "isValidAlpha");
515
+ chunkKHF2VXWO_cjs.__name(isValidAlpha, "isValidAlpha");
516
516
  function ensureValidAlpha(alpha) {
517
517
  if (!isValidAlpha(alpha)) {
518
518
  throw new InterpreterError("COLOR_INVALID_ALPHA_VALUE" /* INVALID_ALPHA_VALUE */, {
@@ -520,11 +520,11 @@ function ensureValidAlpha(alpha) {
520
520
  });
521
521
  }
522
522
  }
523
- chunkLEYHQJTL_cjs.__name(ensureValidAlpha, "ensureValidAlpha");
523
+ chunkKHF2VXWO_cjs.__name(ensureValidAlpha, "ensureValidAlpha");
524
524
  function isTransparent(alpha) {
525
525
  return alpha !== null && alpha < 1;
526
526
  }
527
- chunkLEYHQJTL_cjs.__name(isTransparent, "isTransparent");
527
+ chunkKHF2VXWO_cjs.__name(isTransparent, "isTransparent");
528
528
  function formatHex8(hexColor, alpha) {
529
529
  const alphaHex = Math.round(alpha * 255).toString(16).padStart(2, "0");
530
530
  let hex6 = hexColor;
@@ -533,37 +533,37 @@ function formatHex8(hexColor, alpha) {
533
533
  }
534
534
  return `${hex6}${alphaHex}`;
535
535
  }
536
- chunkLEYHQJTL_cjs.__name(formatHex8, "formatHex8");
536
+ chunkKHF2VXWO_cjs.__name(formatHex8, "formatHex8");
537
537
 
538
538
  // src/interpreter/utils/string.ts
539
- var isAlpha = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
539
+ var isAlpha = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((char) => {
540
540
  if (char === null) return false;
541
541
  const cp = char.codePointAt(0) ?? 0;
542
542
  return cp >= 65 && cp <= 90 || // A-Z
543
543
  cp >= 97 && cp <= 122;
544
544
  }, "isAlpha");
545
- var isNumber2 = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
545
+ var isNumber2 = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((char) => {
546
546
  if (char === null) return false;
547
547
  const cp = char.codePointAt(0) ?? 0;
548
548
  return cp >= 48 && cp <= 57;
549
549
  }, "isNumber");
550
- var isAlphaNumeric = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
550
+ var isAlphaNumeric = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((char) => {
551
551
  if (char === null) return false;
552
552
  return isAlpha(char) || isNumber2(char);
553
553
  }, "isAlphaNumeric");
554
- var isSpace = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((char) => {
554
+ var isSpace = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((char) => {
555
555
  if (char === null) return false;
556
556
  return /\s/.test(char);
557
557
  }, "isSpace");
558
- var capitalize = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((str) => `${str.charAt(0).toUpperCase()}${str.slice(1).toLowerCase()}`, "capitalize");
558
+ var capitalize = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((str) => `${str.charAt(0).toUpperCase()}${str.slice(1).toLowerCase()}`, "capitalize");
559
559
 
560
560
  // src/interpreter/symbols.ts
561
561
  function isTokenscriptSymbol(value) {
562
562
  return isObjectWithKey(value, "getTypeName");
563
563
  }
564
- chunkLEYHQJTL_cjs.__name(isTokenscriptSymbol, "isTokenscriptSymbol");
565
- var typeEquals = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((typeA, typeB) => typeA?.toLowerCase() === typeB?.toLowerCase(), "typeEquals");
566
- var typeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((base, sub) => {
564
+ chunkKHF2VXWO_cjs.__name(isTokenscriptSymbol, "isTokenscriptSymbol");
565
+ var typeEquals = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((typeA, typeB) => typeA?.toLowerCase() === typeB?.toLowerCase(), "typeEquals");
566
+ var typeName = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((base, sub) => {
567
567
  const baseStr = capitalize(base);
568
568
  if (sub) {
569
569
  const subStr = capitalize(sub);
@@ -571,7 +571,7 @@ var typeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((base, sub) => {
571
571
  }
572
572
  return baseStr;
573
573
  }, "typeName");
574
- var getResultTypeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((result) => {
574
+ var getResultTypeName = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((result) => {
575
575
  if (isNull(result)) {
576
576
  return "Null";
577
577
  }
@@ -583,7 +583,7 @@ var getResultTypeName = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((result) => {
583
583
  }
584
584
  return "Unknown";
585
585
  }, "getResultTypeName");
586
- var formatObjectEntries = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((data) => {
586
+ var formatObjectEntries = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((data) => {
587
587
  let entries;
588
588
  if (isArray(data)) {
589
589
  entries = data;
@@ -595,7 +595,7 @@ var formatObjectEntries = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((data) => {
595
595
  const formattedEntries = entries.map(([key, value]) => `${key}: ${String(value)}`).join(", ");
596
596
  return `{${formattedEntries}}`;
597
597
  }, "formatObjectEntries");
598
- var expectStringKey = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((key) => {
598
+ var expectStringKey = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((key) => {
599
599
  if (isString(key)) {
600
600
  return key;
601
601
  }
@@ -802,7 +802,7 @@ var _BaseSymbolType = class _BaseSymbolType {
802
802
  });
803
803
  }
804
804
  };
805
- chunkLEYHQJTL_cjs.__name(_BaseSymbolType, "BaseSymbolType");
805
+ chunkKHF2VXWO_cjs.__name(_BaseSymbolType, "BaseSymbolType");
806
806
  var BaseSymbolType = _BaseSymbolType;
807
807
  var _NullSymbol = class _NullSymbol extends BaseSymbolType {
808
808
  constructor(config) {
@@ -831,7 +831,7 @@ var _NullSymbol = class _NullSymbol extends BaseSymbolType {
831
831
  return null;
832
832
  }
833
833
  };
834
- chunkLEYHQJTL_cjs.__name(_NullSymbol, "NullSymbol");
834
+ chunkKHF2VXWO_cjs.__name(_NullSymbol, "NullSymbol");
835
835
  _NullSymbol.type = "Null";
836
836
  var NullSymbol = _NullSymbol;
837
837
  var _NumberSymbol = class _NumberSymbol extends BaseSymbolType {
@@ -927,12 +927,12 @@ var _NumberSymbol = class _NumberSymbol extends BaseSymbolType {
927
927
  return this.value;
928
928
  }
929
929
  };
930
- chunkLEYHQJTL_cjs.__name(_NumberSymbol, "NumberSymbol");
930
+ chunkKHF2VXWO_cjs.__name(_NumberSymbol, "NumberSymbol");
931
931
  _NumberSymbol.type = "Number";
932
932
  _NumberSymbol._SUPPORTED_METHODS = {
933
933
  to_string: {
934
934
  name: "to_string",
935
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(radix) {
935
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(radix) {
936
936
  return this.toStringSymbol(radix);
937
937
  }, "function"),
938
938
  args: [
@@ -1038,39 +1038,39 @@ var _StringSymbol = class _StringSymbol extends BaseSymbolType {
1038
1038
  return this.value;
1039
1039
  }
1040
1040
  };
1041
- chunkLEYHQJTL_cjs.__name(_StringSymbol, "StringSymbol");
1041
+ chunkKHF2VXWO_cjs.__name(_StringSymbol, "StringSymbol");
1042
1042
  _StringSymbol.type = "String";
1043
1043
  _StringSymbol._SUPPORTED_METHODS = {
1044
1044
  upper: {
1045
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1045
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1046
1046
  return this.upper();
1047
1047
  }, "function"),
1048
1048
  args: [],
1049
1049
  returnType: "String"
1050
1050
  },
1051
1051
  lower: {
1052
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1052
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1053
1053
  return this.lower();
1054
1054
  }, "function"),
1055
1055
  args: [],
1056
1056
  returnType: "String"
1057
1057
  },
1058
1058
  length: {
1059
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1059
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1060
1060
  return this.length();
1061
1061
  }, "function"),
1062
1062
  args: [],
1063
1063
  returnType: "Number"
1064
1064
  },
1065
1065
  concat: {
1066
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(other) {
1066
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(other) {
1067
1067
  return this.concat(other);
1068
1068
  }, "function"),
1069
1069
  args: [{ name: "other", type: "String" }],
1070
1070
  returnType: "String"
1071
1071
  },
1072
1072
  split: {
1073
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(delimiter) {
1073
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(delimiter) {
1074
1074
  return this.split(delimiter);
1075
1075
  }, "function"),
1076
1076
  args: [{ name: "delimiter", type: "String", optional: true }],
@@ -1119,7 +1119,7 @@ var _BooleanSymbol = class _BooleanSymbol extends BaseSymbolType {
1119
1119
  return this.value;
1120
1120
  }
1121
1121
  };
1122
- chunkLEYHQJTL_cjs.__name(_BooleanSymbol, "BooleanSymbol");
1122
+ chunkKHF2VXWO_cjs.__name(_BooleanSymbol, "BooleanSymbol");
1123
1123
  _BooleanSymbol.type = "Boolean";
1124
1124
  var BooleanSymbol = _BooleanSymbol;
1125
1125
  var _ListSymbol = class _ListSymbol extends BaseSymbolType {
@@ -1187,25 +1187,25 @@ var _ListSymbol = class _ListSymbol extends BaseSymbolType {
1187
1187
  return this.value.map((item) => item.toJs(options));
1188
1188
  }
1189
1189
  };
1190
- chunkLEYHQJTL_cjs.__name(_ListSymbol, "ListSymbol");
1190
+ chunkKHF2VXWO_cjs.__name(_ListSymbol, "ListSymbol");
1191
1191
  _ListSymbol.type = "List";
1192
1192
  _ListSymbol._SUPPORTED_METHODS = {
1193
1193
  append: {
1194
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
1194
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(item) {
1195
1195
  return this.append(item);
1196
1196
  }, "function"),
1197
1197
  args: [{ name: "item", type: "any" }],
1198
1198
  returnType: "List"
1199
1199
  },
1200
1200
  extend: {
1201
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(...items) {
1201
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(...items) {
1202
1202
  return this.extend(...items);
1203
1203
  }, "function"),
1204
1204
  args: [],
1205
1205
  returnType: "List"
1206
1206
  },
1207
1207
  insert: {
1208
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
1208
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index, item) {
1209
1209
  return this.insert(index, item);
1210
1210
  }, "function"),
1211
1211
  args: [
@@ -1215,35 +1215,35 @@ _ListSymbol._SUPPORTED_METHODS = {
1215
1215
  returnType: "List"
1216
1216
  },
1217
1217
  delete: {
1218
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
1218
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index) {
1219
1219
  return this.delete(index);
1220
1220
  }, "function"),
1221
1221
  args: [{ name: "index", type: "Number" }],
1222
1222
  returnType: "List"
1223
1223
  },
1224
1224
  length: {
1225
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1225
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1226
1226
  return this.length();
1227
1227
  }, "function"),
1228
1228
  args: [],
1229
1229
  returnType: "Number"
1230
1230
  },
1231
1231
  index: {
1232
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
1232
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(item) {
1233
1233
  return this.index(item);
1234
1234
  }, "function"),
1235
1235
  args: [{ name: "item", type: "any" }],
1236
1236
  returnType: "Number"
1237
1237
  },
1238
1238
  get: {
1239
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
1239
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index) {
1240
1240
  return this.get(index);
1241
1241
  }, "function"),
1242
1242
  args: [{ name: "index", type: "Number" }],
1243
1243
  returnType: "any"
1244
1244
  },
1245
1245
  update: {
1246
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
1246
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index, item) {
1247
1247
  return this.update(index, item);
1248
1248
  }, "function"),
1249
1249
  args: [
@@ -1253,7 +1253,7 @@ _ListSymbol._SUPPORTED_METHODS = {
1253
1253
  returnType: "List"
1254
1254
  },
1255
1255
  join: {
1256
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(separator) {
1256
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(separator) {
1257
1257
  return this.join(separator);
1258
1258
  }, "function"),
1259
1259
  args: [{ name: "separator", type: "String", optional: true }],
@@ -1278,7 +1278,7 @@ var _NumberWithUnitSymbol = class _NumberWithUnitSymbol extends BaseSymbolType {
1278
1278
  super(safeValue, config);
1279
1279
  this.type = "NumberWithUnit";
1280
1280
  this.value = safeValue;
1281
- if (typeof unit === "string" && !Object.values(chunkLEYHQJTL_cjs.SupportedFormats).includes(unit)) {
1281
+ if (typeof unit === "string" && !Object.values(chunkKHF2VXWO_cjs.SupportedFormats).includes(unit)) {
1282
1282
  throw new InterpreterError("SYM_ATTRIBUTE_NOT_FOUND" /* ATTRIBUTE_NOT_FOUND */, {
1283
1283
  data: { attributeName: unit, type: "Unit" }
1284
1284
  });
@@ -1345,12 +1345,12 @@ var _NumberWithUnitSymbol = class _NumberWithUnitSymbol extends BaseSymbolType {
1345
1345
  return { value: this.value, unit: this.unit };
1346
1346
  }
1347
1347
  };
1348
- chunkLEYHQJTL_cjs.__name(_NumberWithUnitSymbol, "NumberWithUnitSymbol");
1348
+ chunkKHF2VXWO_cjs.__name(_NumberWithUnitSymbol, "NumberWithUnitSymbol");
1349
1349
  _NumberWithUnitSymbol.type = "NumberWithUnit";
1350
1350
  _NumberWithUnitSymbol._SUPPORTED_METHODS = {
1351
1351
  to_string: {
1352
1352
  name: "to_string",
1353
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1353
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1354
1354
  return this.toStringSymbol();
1355
1355
  }, "function"),
1356
1356
  args: [
@@ -1363,7 +1363,7 @@ _NumberWithUnitSymbol._SUPPORTED_METHODS = {
1363
1363
  returnType: "String"
1364
1364
  },
1365
1365
  to_number: {
1366
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1366
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1367
1367
  return this.to_number();
1368
1368
  }, "function"),
1369
1369
  args: [],
@@ -1449,18 +1449,18 @@ var _DictionarySymbol = class _DictionarySymbol extends BaseSymbolType {
1449
1449
  return obj;
1450
1450
  }
1451
1451
  };
1452
- chunkLEYHQJTL_cjs.__name(_DictionarySymbol, "DictionarySymbol");
1452
+ chunkKHF2VXWO_cjs.__name(_DictionarySymbol, "DictionarySymbol");
1453
1453
  _DictionarySymbol.type = "Dictionary";
1454
1454
  _DictionarySymbol._SUPPORTED_METHODS = {
1455
1455
  get: {
1456
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
1456
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(key) {
1457
1457
  return this.get(key);
1458
1458
  }, "function"),
1459
1459
  args: [{ name: "key", type: "String", optional: false }],
1460
1460
  returnType: "any"
1461
1461
  },
1462
1462
  set: {
1463
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key, value) {
1463
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(key, value) {
1464
1464
  return this.set(key, value);
1465
1465
  }, "function"),
1466
1466
  args: [
@@ -1470,42 +1470,42 @@ _DictionarySymbol._SUPPORTED_METHODS = {
1470
1470
  returnType: "Dictionary"
1471
1471
  },
1472
1472
  delete: {
1473
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
1473
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(key) {
1474
1474
  return this.delete(key);
1475
1475
  }, "function"),
1476
1476
  args: [{ name: "key", type: "String", optional: false }],
1477
1477
  returnType: "Dictionary"
1478
1478
  },
1479
1479
  keys: {
1480
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1480
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1481
1481
  return this.keys();
1482
1482
  }, "function"),
1483
1483
  args: [],
1484
1484
  returnType: "List"
1485
1485
  },
1486
1486
  values: {
1487
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1487
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1488
1488
  return this.values();
1489
1489
  }, "function"),
1490
1490
  args: [],
1491
1491
  returnType: "List"
1492
1492
  },
1493
1493
  key_exists: {
1494
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key) {
1494
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(key) {
1495
1495
  return this.keyExists(key);
1496
1496
  }, "function"),
1497
1497
  args: [{ name: "key", type: "String", optional: false }],
1498
1498
  returnType: "Boolean"
1499
1499
  },
1500
1500
  length: {
1501
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1501
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1502
1502
  return this.length();
1503
1503
  }, "function"),
1504
1504
  args: [],
1505
1505
  returnType: "Number"
1506
1506
  },
1507
1507
  clear: {
1508
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1508
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1509
1509
  return this.clear();
1510
1510
  }, "function"),
1511
1511
  args: [],
@@ -1713,18 +1713,18 @@ var _TokenSymbol = class _TokenSymbol extends BaseSymbolType {
1713
1713
  return {};
1714
1714
  }
1715
1715
  };
1716
- chunkLEYHQJTL_cjs.__name(_TokenSymbol, "TokenSymbol");
1716
+ chunkKHF2VXWO_cjs.__name(_TokenSymbol, "TokenSymbol");
1717
1717
  _TokenSymbol.type = "Token";
1718
1718
  _TokenSymbol._SUPPORTED_METHODS = {
1719
1719
  get: {
1720
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(keyOrIndex) {
1720
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(keyOrIndex) {
1721
1721
  return this.get(keyOrIndex);
1722
1722
  }, "function"),
1723
1723
  args: [{ name: "keyOrIndex", type: "String|Number", optional: false }],
1724
1724
  returnType: "any"
1725
1725
  },
1726
1726
  set: {
1727
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(key, value) {
1727
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(key, value) {
1728
1728
  return this.set(key, value);
1729
1729
  }, "function"),
1730
1730
  args: [
@@ -1734,21 +1734,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
1734
1734
  returnType: "Token"
1735
1735
  },
1736
1736
  keys: {
1737
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1737
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1738
1738
  return this.keys();
1739
1739
  }, "function"),
1740
1740
  args: [],
1741
1741
  returnType: "List"
1742
1742
  },
1743
1743
  values: {
1744
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1744
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1745
1745
  return this.values();
1746
1746
  }, "function"),
1747
1747
  args: [],
1748
1748
  returnType: "List"
1749
1749
  },
1750
1750
  length: {
1751
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1751
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1752
1752
  return this.length();
1753
1753
  }, "function"),
1754
1754
  args: [],
@@ -1756,21 +1756,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
1756
1756
  },
1757
1757
  // List methods (when value is Array)
1758
1758
  append: {
1759
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
1759
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(item) {
1760
1760
  return this.append(item);
1761
1761
  }, "function"),
1762
1762
  args: [{ name: "item", type: "any" }],
1763
1763
  returnType: "Token"
1764
1764
  },
1765
1765
  extend: {
1766
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(...items) {
1766
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(...items) {
1767
1767
  return this.extend(...items);
1768
1768
  }, "function"),
1769
1769
  args: [],
1770
1770
  returnType: "Token"
1771
1771
  },
1772
1772
  insert: {
1773
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
1773
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index, item) {
1774
1774
  return this.insert(index, item);
1775
1775
  }, "function"),
1776
1776
  args: [
@@ -1780,21 +1780,21 @@ _TokenSymbol._SUPPORTED_METHODS = {
1780
1780
  returnType: "Token"
1781
1781
  },
1782
1782
  delete: {
1783
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index) {
1783
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index) {
1784
1784
  return this.delete(index);
1785
1785
  }, "function"),
1786
1786
  args: [{ name: "index", type: "Number" }],
1787
1787
  returnType: "Token"
1788
1788
  },
1789
1789
  index: {
1790
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(item) {
1790
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(item) {
1791
1791
  return this.index(item);
1792
1792
  }, "function"),
1793
1793
  args: [{ name: "item", type: "any" }],
1794
1794
  returnType: "Number"
1795
1795
  },
1796
1796
  update: {
1797
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(index, item) {
1797
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(index, item) {
1798
1798
  return this.update(index, item);
1799
1799
  }, "function"),
1800
1800
  args: [
@@ -1804,7 +1804,7 @@ _TokenSymbol._SUPPORTED_METHODS = {
1804
1804
  returnType: "Token"
1805
1805
  },
1806
1806
  join: {
1807
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function(separator) {
1807
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function(separator) {
1808
1808
  return this.join(separator);
1809
1809
  }, "function"),
1810
1810
  args: [{ name: "separator", type: "String", optional: true }],
@@ -1989,12 +1989,12 @@ var _ColorSymbol = class _ColorSymbol extends BaseSymbolType {
1989
1989
  };
1990
1990
  }
1991
1991
  };
1992
- chunkLEYHQJTL_cjs.__name(_ColorSymbol, "ColorSymbol");
1992
+ chunkKHF2VXWO_cjs.__name(_ColorSymbol, "ColorSymbol");
1993
1993
  _ColorSymbol.type = "Color";
1994
1994
  _ColorSymbol._SUPPORTED_METHODS = {
1995
1995
  to_string: {
1996
1996
  name: "to_string",
1997
- function: /* @__PURE__ */ chunkLEYHQJTL_cjs.__name(function() {
1997
+ function: /* @__PURE__ */ chunkKHF2VXWO_cjs.__name(function() {
1998
1998
  return this.toStringSymbol();
1999
1999
  }, "function"),
2000
2000
  args: [],
@@ -2002,7 +2002,7 @@ _ColorSymbol._SUPPORTED_METHODS = {
2002
2002
  }
2003
2003
  };
2004
2004
  var ColorSymbol = _ColorSymbol;
2005
- var jsValueToSymbolType = /* @__PURE__ */ chunkLEYHQJTL_cjs.__name((value, config) => {
2005
+ var jsValueToSymbolType = /* @__PURE__ */ chunkKHF2VXWO_cjs.__name((value, config) => {
2006
2006
  if (value instanceof BaseSymbolType) {
2007
2007
  value.config = config;
2008
2008
  return value;
@@ -2051,13 +2051,13 @@ function serializeInterpreterResult(value, options) {
2051
2051
  if (isTokenscriptSymbol(value)) return value.toJs(options);
2052
2052
  return value;
2053
2053
  }
2054
- chunkLEYHQJTL_cjs.__name(serializeInterpreterResult, "serializeInterpreterResult");
2054
+ chunkKHF2VXWO_cjs.__name(serializeInterpreterResult, "serializeInterpreterResult");
2055
2055
  function stringifyInterpreterResult(value) {
2056
2056
  if (isString(value)) return value;
2057
2057
  if (isTokenscriptSymbol(value)) return value.toString();
2058
2058
  return String(value);
2059
2059
  }
2060
- chunkLEYHQJTL_cjs.__name(stringifyInterpreterResult, "stringifyInterpreterResult");
2060
+ chunkKHF2VXWO_cjs.__name(stringifyInterpreterResult, "stringifyInterpreterResult");
2061
2061
 
2062
2062
  exports.BaseSymbolType = BaseSymbolType;
2063
2063
  exports.BooleanSymbol = BooleanSymbol;
@@ -2116,5 +2116,5 @@ exports.serializeInterpreterResult = serializeInterpreterResult;
2116
2116
  exports.stringifyInterpreterResult = stringifyInterpreterResult;
2117
2117
  exports.typeEquals = typeEquals;
2118
2118
  exports.typeName = typeName;
2119
- //# sourceMappingURL=chunk-PXS4WZYB.cjs.map
2120
- //# sourceMappingURL=chunk-PXS4WZYB.cjs.map
2119
+ //# sourceMappingURL=chunk-K65UI6KX.cjs.map
2120
+ //# sourceMappingURL=chunk-K65UI6KX.cjs.map