solve-engine 2.5.0 → 2.7.0

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 (145) hide show
  1. package/dist/{BytecodeBuilder-DGGeByAP.d.cts → BytecodeBuilder-BGq9ZiO3.d.cts} +2 -1
  2. package/dist/{BytecodeBuilder-DGGeByAP.d.ts → BytecodeBuilder-BGq9ZiO3.d.ts} +2 -1
  3. package/dist/{PackageCompatibility-cEClSSkz.d.cts → PackageCompatibility-BG0iur4I.d.cts} +1 -1
  4. package/dist/{PackageCompatibility-UsSZIfHs.d.ts → PackageCompatibility-BlIcQg5v.d.ts} +1 -1
  5. package/dist/{PackageRegistry-B3yJHSxX.d.ts → PackageRegistry-BJ0QQd3k.d.ts} +5 -5
  6. package/dist/{PackageRegistry-BsLmAVZJ.d.cts → PackageRegistry-DeGDZkNt.d.cts} +5 -5
  7. package/dist/{Parselet-C4Wu055_.d.cts → Parselet-BSndkWEY.d.cts} +2 -2
  8. package/dist/{Parselet-B-zoPrTa.d.ts → Parselet-Blq8B0Gj.d.ts} +2 -2
  9. package/dist/{ScopeManager-DkpnlKuz.d.ts → ScopeManager-CF3cZUqW.d.ts} +3 -3
  10. package/dist/{ScopeManager-t6SnP6Ce.d.cts → ScopeManager-D8nLv--u.d.cts} +3 -3
  11. package/dist/{VMCheckpoints-CsHmQVaD.d.ts → VMCheckpoints-BsR5_auF.d.ts} +3 -3
  12. package/dist/{VMCheckpoints-C_jQvABf.d.cts → VMCheckpoints-Dy39SVHa.d.cts} +3 -3
  13. package/dist/{Value-CCi_Eecs.d.cts → Value-DCTqTSeP.d.cts} +57 -5
  14. package/dist/{Value-CCi_Eecs.d.ts → Value-DCTqTSeP.d.ts} +57 -5
  15. package/dist/chunk-5AMJNF7J.js +3 -0
  16. package/dist/chunk-5AMJNF7J.js.map +1 -0
  17. package/dist/chunk-5TCSFTZD.js +2 -0
  18. package/dist/chunk-5TCSFTZD.js.map +1 -0
  19. package/dist/chunk-5TVI2UPZ.cjs +2 -0
  20. package/dist/chunk-5TVI2UPZ.cjs.map +1 -0
  21. package/dist/{chunk-N7N7MPMK.cjs → chunk-75XDS65A.cjs} +2 -2
  22. package/dist/{chunk-N7N7MPMK.cjs.map → chunk-75XDS65A.cjs.map} +1 -1
  23. package/dist/chunk-A33K7NY4.js +2 -0
  24. package/dist/chunk-A33K7NY4.js.map +1 -0
  25. package/dist/chunk-AQWNEO7M.cjs +2 -0
  26. package/dist/{chunk-YFWAR766.cjs.map → chunk-AQWNEO7M.cjs.map} +1 -1
  27. package/dist/{chunk-YUJNMUKM.cjs → chunk-B7J24Q5T.cjs} +2 -2
  28. package/dist/{chunk-YUJNMUKM.cjs.map → chunk-B7J24Q5T.cjs.map} +1 -1
  29. package/dist/{chunk-7RTKJMYS.js → chunk-CVY2A3TP.js} +2 -2
  30. package/dist/{chunk-7RTKJMYS.js.map → chunk-CVY2A3TP.js.map} +1 -1
  31. package/dist/{chunk-FDE5HWDI.cjs → chunk-FNNIAJNY.cjs} +2 -2
  32. package/dist/{chunk-FDE5HWDI.cjs.map → chunk-FNNIAJNY.cjs.map} +1 -1
  33. package/dist/chunk-FUDVKPB7.cjs +2 -0
  34. package/dist/chunk-FUDVKPB7.cjs.map +1 -0
  35. package/dist/chunk-GYX6S6OS.cjs +3 -0
  36. package/dist/chunk-GYX6S6OS.cjs.map +1 -0
  37. package/dist/chunk-HAEOMJE3.cjs +2 -0
  38. package/dist/chunk-HAEOMJE3.cjs.map +1 -0
  39. package/dist/{chunk-LOM3H5ZD.js → chunk-HF4H7LYA.js} +4 -4
  40. package/dist/{chunk-LOM3H5ZD.js.map → chunk-HF4H7LYA.js.map} +1 -1
  41. package/dist/chunk-HTJPV42D.js +2 -0
  42. package/dist/{chunk-LBNX7TXI.js.map → chunk-HTJPV42D.js.map} +1 -1
  43. package/dist/chunk-IHZBKT7L.cjs +3 -0
  44. package/dist/chunk-IHZBKT7L.cjs.map +1 -0
  45. package/dist/chunk-JEFMG6CV.js +2 -0
  46. package/dist/chunk-JEFMG6CV.js.map +1 -0
  47. package/dist/{chunk-XNIWQHXY.js → chunk-JQBG3LX4.js} +2 -2
  48. package/dist/{chunk-XNIWQHXY.js.map → chunk-JQBG3LX4.js.map} +1 -1
  49. package/dist/{chunk-TWC7K3ZX.js → chunk-KHCNMNZZ.js} +2 -2
  50. package/dist/{chunk-TWC7K3ZX.js.map → chunk-KHCNMNZZ.js.map} +1 -1
  51. package/dist/{chunk-RDMJNRDO.js → chunk-KXM7EY27.js} +3 -3
  52. package/dist/{chunk-RDMJNRDO.js.map → chunk-KXM7EY27.js.map} +1 -1
  53. package/dist/{chunk-AXMQG5TS.cjs → chunk-MVP2YD4X.cjs} +2 -2
  54. package/dist/{chunk-AXMQG5TS.cjs.map → chunk-MVP2YD4X.cjs.map} +1 -1
  55. package/dist/chunk-N4HJTHZR.js +2 -0
  56. package/dist/chunk-N4HJTHZR.js.map +1 -0
  57. package/dist/chunk-P5EMTVMJ.js +3 -0
  58. package/dist/chunk-P5EMTVMJ.js.map +1 -0
  59. package/dist/chunk-PNDQRCRQ.cjs +2 -0
  60. package/dist/chunk-PNDQRCRQ.cjs.map +1 -0
  61. package/dist/{chunk-JFAJN3C2.cjs → chunk-VBSMA7WJ.cjs} +2 -2
  62. package/dist/chunk-VBSMA7WJ.cjs.map +1 -0
  63. package/dist/{chunk-NGJMCVH4.cjs → chunk-W7VOTR2J.cjs} +3 -3
  64. package/dist/{chunk-NGJMCVH4.cjs.map → chunk-W7VOTR2J.cjs.map} +1 -1
  65. package/dist/{chunk-RSF25YSJ.js → chunk-WTEXBPBR.js} +2 -2
  66. package/dist/{chunk-RSF25YSJ.js.map → chunk-WTEXBPBR.js.map} +1 -1
  67. package/dist/{chunk-E6Z4NQAS.js → chunk-YNMMRH44.js} +2 -2
  68. package/dist/chunk-YNMMRH44.js.map +1 -0
  69. package/dist/{chunk-D5MTMRHS.cjs → chunk-ZRFUD2LX.cjs} +4 -4
  70. package/dist/{chunk-D5MTMRHS.cjs.map → chunk-ZRFUD2LX.cjs.map} +1 -1
  71. package/dist/constants.cjs +1 -1
  72. package/dist/constants.js +1 -1
  73. package/dist/engine.cjs +1 -1
  74. package/dist/engine.d.cts +8 -8
  75. package/dist/engine.d.ts +8 -8
  76. package/dist/engine.js +1 -1
  77. package/dist/format.cjs +1 -1
  78. package/dist/format.d.cts +1 -1
  79. package/dist/format.d.ts +1 -1
  80. package/dist/format.js +1 -1
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.d.cts +8 -8
  83. package/dist/index.d.ts +8 -8
  84. package/dist/index.js +1 -1
  85. package/dist/language.d.cts +7 -7
  86. package/dist/language.d.ts +7 -7
  87. package/dist/packages.cjs +1 -1
  88. package/dist/packages.d.cts +7 -7
  89. package/dist/packages.d.ts +7 -7
  90. package/dist/packages.js +1 -1
  91. package/dist/parser.cjs +1 -1
  92. package/dist/parser.d.cts +4 -4
  93. package/dist/parser.d.ts +4 -4
  94. package/dist/parser.js +1 -1
  95. package/dist/{pipeline-DCQicwWX.d.cts → pipeline-BM8xc0CZ.d.cts} +3 -3
  96. package/dist/{pipeline-72QmQlGx.d.ts → pipeline-J2ehIm7t.d.ts} +3 -3
  97. package/dist/resolvers.d.cts +2 -2
  98. package/dist/resolvers.d.ts +2 -2
  99. package/dist/testing.cjs +2 -2
  100. package/dist/testing.d.cts +7 -7
  101. package/dist/testing.d.ts +7 -7
  102. package/dist/testing.js +1 -1
  103. package/dist/uom.cjs +1 -1
  104. package/dist/uom.d.cts +2 -2
  105. package/dist/uom.d.ts +2 -2
  106. package/dist/uom.js +1 -1
  107. package/dist/vm.cjs +1 -1
  108. package/dist/vm.d.cts +7 -7
  109. package/dist/vm.d.ts +7 -7
  110. package/dist/vm.js +1 -1
  111. package/dist/worker.cjs +2 -2
  112. package/dist/worker.cjs.map +1 -1
  113. package/dist/worker.d.cts +32 -6
  114. package/dist/worker.d.ts +32 -6
  115. package/dist/worker.js +2 -2
  116. package/dist/worker.js.map +1 -1
  117. package/package.json +1 -1
  118. package/dist/chunk-2HQWM5OB.js +0 -3
  119. package/dist/chunk-2HQWM5OB.js.map +0 -1
  120. package/dist/chunk-6G3PMEPA.js +0 -2
  121. package/dist/chunk-6G3PMEPA.js.map +0 -1
  122. package/dist/chunk-6INX773F.cjs +0 -2
  123. package/dist/chunk-6INX773F.cjs.map +0 -1
  124. package/dist/chunk-6ZNNPXXE.cjs +0 -3
  125. package/dist/chunk-6ZNNPXXE.cjs.map +0 -1
  126. package/dist/chunk-ANJPS6FF.cjs +0 -2
  127. package/dist/chunk-ANJPS6FF.cjs.map +0 -1
  128. package/dist/chunk-B5NBFGNP.js +0 -3
  129. package/dist/chunk-B5NBFGNP.js.map +0 -1
  130. package/dist/chunk-CT5TC3JX.cjs +0 -3
  131. package/dist/chunk-CT5TC3JX.cjs.map +0 -1
  132. package/dist/chunk-E6Z4NQAS.js.map +0 -1
  133. package/dist/chunk-ESUN2THE.cjs +0 -2
  134. package/dist/chunk-ESUN2THE.cjs.map +0 -1
  135. package/dist/chunk-EVAOPEO4.js +0 -2
  136. package/dist/chunk-EVAOPEO4.js.map +0 -1
  137. package/dist/chunk-JFAJN3C2.cjs.map +0 -1
  138. package/dist/chunk-LBNX7TXI.js +0 -2
  139. package/dist/chunk-PS272DZJ.cjs +0 -2
  140. package/dist/chunk-PS272DZJ.cjs.map +0 -1
  141. package/dist/chunk-QEYTENAK.js +0 -2
  142. package/dist/chunk-QEYTENAK.js.map +0 -1
  143. package/dist/chunk-R2ENWQ76.js +0 -2
  144. package/dist/chunk-R2ENWQ76.js.map +0 -1
  145. package/dist/chunk-YFWAR766.cjs +0 -2
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkYUJNMUKM_cjs=require('./chunk-YUJNMUKM.cjs');require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ConfigManager",{enumerable:true,get:function(){return chunkYUJNMUKM_cjs.d}});Object.defineProperty(exports,"DEFAULT_CONFIG",{enumerable:true,get:function(){return chunkYUJNMUKM_cjs.b}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkYUJNMUKM_cjs.a}});//# sourceMappingURL=constants.cjs.map
1
+ 'use strict';var chunkB7J24Q5T_cjs=require('./chunk-B7J24Q5T.cjs');require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ConfigManager",{enumerable:true,get:function(){return chunkB7J24Q5T_cjs.d}});Object.defineProperty(exports,"DEFAULT_CONFIG",{enumerable:true,get:function(){return chunkB7J24Q5T_cjs.b}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkB7J24Q5T_cjs.a}});//# sourceMappingURL=constants.cjs.map
2
2
  //# sourceMappingURL=constants.cjs.map
package/dist/constants.js CHANGED
@@ -1,2 +1,2 @@
1
- export{d as ConfigManager,b as DEFAULT_CONFIG,a as ENGINE_VERSION}from'./chunk-7RTKJMYS.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=constants.js.map
1
+ export{d as ConfigManager,b as DEFAULT_CONFIG,a as ENGINE_VERSION}from'./chunk-CVY2A3TP.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=constants.js.map
2
2
  //# sourceMappingURL=constants.js.map
package/dist/engine.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkNGJMCVH4_cjs=require('./chunk-NGJMCVH4.cjs');require('./chunk-EFJCC6FJ.cjs');var chunkD5MTMRHS_cjs=require('./chunk-D5MTMRHS.cjs');require('./chunk-FDE5HWDI.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-ANJPS6FF.cjs'),require('./chunk-AXMQG5TS.cjs'),require('./chunk-6ZNNPXXE.cjs'),require('./chunk-R2SZFJTT.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-YFWAR766.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-JFAJN3C2.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-N7N7MPMK.cjs'),require('./chunk-PS272DZJ.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-YUJNMUKM.cjs'),require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DocumentModel",{enumerable:true,get:function(){return chunkNGJMCVH4_cjs.a}});Object.defineProperty(exports,"EvalTier",{enumerable:true,get:function(){return chunkNGJMCVH4_cjs.b}});Object.defineProperty(exports,"ThreeTierEvaluator",{enumerable:true,get:function(){return chunkNGJMCVH4_cjs.c}});Object.defineProperty(exports,"evaluateDocument",{enumerable:true,get:function(){return chunkNGJMCVH4_cjs.d}});Object.defineProperty(exports,"AsyncResolutionBatcher",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.h}});Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.f}});Object.defineProperty(exports,"checkExpressionComplexity",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.j}});Object.defineProperty(exports,"checkExpressionLength",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.i}});Object.defineProperty(exports,"extractReadsAndWrites",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.k}});Object.defineProperty(exports,"findInlineSolvesInLine",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.m}});Object.defineProperty(exports,"isEmptyLine",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.l}});//# sourceMappingURL=engine.cjs.map
1
+ 'use strict';var chunkW7VOTR2J_cjs=require('./chunk-W7VOTR2J.cjs');require('./chunk-EFJCC6FJ.cjs');var chunkZRFUD2LX_cjs=require('./chunk-ZRFUD2LX.cjs');require('./chunk-FNNIAJNY.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-HAEOMJE3.cjs'),require('./chunk-MVP2YD4X.cjs'),require('./chunk-IHZBKT7L.cjs'),require('./chunk-R2SZFJTT.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-AQWNEO7M.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-75XDS65A.cjs'),require('./chunk-PNDQRCRQ.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-B7J24Q5T.cjs'),require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DocumentModel",{enumerable:true,get:function(){return chunkW7VOTR2J_cjs.a}});Object.defineProperty(exports,"EvalTier",{enumerable:true,get:function(){return chunkW7VOTR2J_cjs.b}});Object.defineProperty(exports,"ThreeTierEvaluator",{enumerable:true,get:function(){return chunkW7VOTR2J_cjs.c}});Object.defineProperty(exports,"evaluateDocument",{enumerable:true,get:function(){return chunkW7VOTR2J_cjs.d}});Object.defineProperty(exports,"AsyncResolutionBatcher",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.h}});Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.f}});Object.defineProperty(exports,"checkExpressionComplexity",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.j}});Object.defineProperty(exports,"checkExpressionLength",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.i}});Object.defineProperty(exports,"extractReadsAndWrites",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.k}});Object.defineProperty(exports,"findInlineSolvesInLine",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.m}});Object.defineProperty(exports,"isEmptyLine",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.l}});//# sourceMappingURL=engine.cjs.map
2
2
  //# sourceMappingURL=engine.cjs.map
package/dist/engine.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-BsLmAVZJ.cjs';
2
- export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-BsLmAVZJ.cjs';
3
- import { V as Value } from './Value-CCi_Eecs.cjs';
4
- import { a as VMCheckpointer } from './VMCheckpoints-C_jQvABf.cjs';
1
+ import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-DeGDZkNt.cjs';
2
+ export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-DeGDZkNt.cjs';
3
+ import { V as Value } from './Value-DCTqTSeP.cjs';
4
+ import { a as VMCheckpointer } from './VMCheckpoints-Dy39SVHa.cjs';
5
5
  import { T as Token } from './Token-CbP_OutD.cjs';
6
6
  import { E as EngineError } from './EngineError-Ce1lPkjZ.cjs';
7
- import { a as BytecodeProgram } from './BytecodeBuilder-DGGeByAP.cjs';
8
- export { a as DagSnapshot } from './ScopeManager-t6SnP6Ce.cjs';
9
- import './Parselet-C4Wu055_.cjs';
10
- import './pipeline-DCQicwWX.cjs';
7
+ import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.cjs';
8
+ export { a as DagSnapshot } from './ScopeManager-D8nLv--u.cjs';
9
+ import './Parselet-BSndkWEY.cjs';
10
+ import './pipeline-BM8xc0CZ.cjs';
11
11
  import './Lexer-B4C1qHXu.cjs';
12
12
  import './resolvers.cjs';
13
13
  import '@tanstack/query-core';
package/dist/engine.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-B3yJHSxX.js';
2
- export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-B3yJHSxX.js';
3
- import { V as Value } from './Value-CCi_Eecs.js';
4
- import { a as VMCheckpointer } from './VMCheckpoints-CsHmQVaD.js';
1
+ import { D as DocumentModel, E as ExpressionEngine, V as ViewportRange, r as LineChange, U as UnifiedParsingOptions, P as ParsingResult, s as InlineSolvePosition } from './PackageRegistry-BJ0QQd3k.js';
2
+ export { A as ApplyChangesResult, t as AsyncCachePackageInfo, u as AsyncErrorEvent, v as AsyncResolutionBatcher, w as AsyncResolutionEvent, B as BatcherMetrics, x as BytecodeCacheEntry, y as CacheSnapshot, z as CheckpointSnapshot, a as EngineOptions, b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, F as LineCacheEntryInfo, G as LineState, H as LinesUpdatedEvent, J as ParsedLine, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-BJ0QQd3k.js';
3
+ import { V as Value } from './Value-DCTqTSeP.js';
4
+ import { a as VMCheckpointer } from './VMCheckpoints-BsR5_auF.js';
5
5
  import { T as Token } from './Token-CbP_OutD.js';
6
6
  import { E as EngineError } from './EngineError-Ce1lPkjZ.js';
7
- import { a as BytecodeProgram } from './BytecodeBuilder-DGGeByAP.js';
8
- export { a as DagSnapshot } from './ScopeManager-DkpnlKuz.js';
9
- import './Parselet-B-zoPrTa.js';
10
- import './pipeline-72QmQlGx.js';
7
+ import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.js';
8
+ export { a as DagSnapshot } from './ScopeManager-CF3cZUqW.js';
9
+ import './Parselet-Blq8B0Gj.js';
10
+ import './pipeline-J2ehIm7t.js';
11
11
  import './Lexer-DKMlj7Sy.js';
12
12
  import './resolvers.js';
13
13
  import '@tanstack/query-core';
package/dist/engine.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-RDMJNRDO.js';import'./chunk-RAF57WYO.js';export{h as AsyncResolutionBatcher,n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,j as checkExpressionComplexity,i as checkExpressionLength,k as extractReadsAndWrites,m as findInlineSolvesInLine,l as isEmptyLine}from'./chunk-LOM3H5ZD.js';import'./chunk-XNIWQHXY.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-QEYTENAK.js';import'./chunk-TWC7K3ZX.js';import'./chunk-B5NBFGNP.js';import'./chunk-XEIDV5JP.js';import'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-LBNX7TXI.js';import'./chunk-YAYBVVG2.js';import'./chunk-E6Z4NQAS.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-RSF25YSJ.js';import'./chunk-EVAOPEO4.js';import'./chunk-WGZ3FNHI.js';import'./chunk-7RTKJMYS.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=engine.js.map
1
+ export{a as DocumentModel,b as EvalTier,c as ThreeTierEvaluator,d as evaluateDocument}from'./chunk-KXM7EY27.js';import'./chunk-RAF57WYO.js';export{h as AsyncResolutionBatcher,n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,j as checkExpressionComplexity,i as checkExpressionLength,k as extractReadsAndWrites,m as findInlineSolvesInLine,l as isEmptyLine}from'./chunk-HF4H7LYA.js';import'./chunk-JQBG3LX4.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-N4HJTHZR.js';import'./chunk-KHCNMNZZ.js';import'./chunk-5AMJNF7J.js';import'./chunk-XEIDV5JP.js';import'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-HTJPV42D.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-WTEXBPBR.js';import'./chunk-A33K7NY4.js';import'./chunk-WGZ3FNHI.js';import'./chunk-CVY2A3TP.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=engine.js.map
2
2
  //# sourceMappingURL=engine.js.map
package/dist/format.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk6ZNNPXXE_cjs=require('./chunk-6ZNNPXXE.cjs');require('./chunk-R2SZFJTT.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-N7N7MPMK.cjs'),require('./chunk-PS272DZJ.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DEFAULT_FORMATTING_SETTINGS",{enumerable:true,get:function(){return chunk6ZNNPXXE_cjs.a}});Object.defineProperty(exports,"formatMatrixAligned",{enumerable:true,get:function(){return chunk6ZNNPXXE_cjs.b}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunk6ZNNPXXE_cjs.c}});//# sourceMappingURL=format.cjs.map
1
+ 'use strict';var chunkIHZBKT7L_cjs=require('./chunk-IHZBKT7L.cjs');require('./chunk-R2SZFJTT.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-75XDS65A.cjs'),require('./chunk-PNDQRCRQ.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"DEFAULT_FORMATTING_SETTINGS",{enumerable:true,get:function(){return chunkIHZBKT7L_cjs.a}});Object.defineProperty(exports,"formatMatrixAligned",{enumerable:true,get:function(){return chunkIHZBKT7L_cjs.b}});Object.defineProperty(exports,"formatValue",{enumerable:true,get:function(){return chunkIHZBKT7L_cjs.c}});//# sourceMappingURL=format.cjs.map
2
2
  //# sourceMappingURL=format.cjs.map
package/dist/format.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, V as Value } from './Value-CCi_Eecs.cjs';
1
+ import { M as MatrixData, V as Value } from './Value-DCTqTSeP.cjs';
2
2
  import { F as FormattingSettings } from './FormattingSettings-bRKjU7wI.cjs';
3
3
  export { D as DEFAULT_FORMATTING_SETTINGS } from './FormattingSettings-bRKjU7wI.cjs';
4
4
 
package/dist/format.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, V as Value } from './Value-CCi_Eecs.js';
1
+ import { M as MatrixData, V as Value } from './Value-DCTqTSeP.js';
2
2
  import { F as FormattingSettings } from './FormattingSettings-bRKjU7wI.js';
3
3
  export { D as DEFAULT_FORMATTING_SETTINGS } from './FormattingSettings-bRKjU7wI.js';
4
4
 
package/dist/format.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-B5NBFGNP.js';import'./chunk-XEIDV5JP.js';import'./chunk-R2ENWQ76.js';import'./chunk-RSF25YSJ.js';import'./chunk-EVAOPEO4.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=format.js.map
1
+ export{a as DEFAULT_FORMATTING_SETTINGS,b as formatMatrixAligned,c as formatValue}from'./chunk-5AMJNF7J.js';import'./chunk-XEIDV5JP.js';import'./chunk-5TCSFTZD.js';import'./chunk-WTEXBPBR.js';import'./chunk-A33K7NY4.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=format.js.map
2
2
  //# sourceMappingURL=format.js.map
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';require('./chunk-NGJMCVH4.cjs'),require('./chunk-EFJCC6FJ.cjs');var chunkD5MTMRHS_cjs=require('./chunk-D5MTMRHS.cjs');require('./chunk-FDE5HWDI.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-ANJPS6FF.cjs'),require('./chunk-AXMQG5TS.cjs'),require('./chunk-6ZNNPXXE.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkCT5TC3JX_cjs=require('./chunk-CT5TC3JX.cjs');require('./chunk-6INX773F.cjs'),require('./chunk-NXIMGB4S.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs');require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-YFWAR766.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-JFAJN3C2.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-N7N7MPMK.cjs');var chunkPS272DZJ_cjs=require('./chunk-PS272DZJ.cjs');require('./chunk-IANAMBJQ.cjs');var chunkYUJNMUKM_cjs=require('./chunk-YUJNMUKM.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t){switch(n){case "number":if(typeof e=="number")return chunkPS272DZJ_cjs.n(e);break;case "string":if(typeof e=="string")return chunkPS272DZJ_cjs.t(e);break;case "boolean":if(typeof e=="boolean")return chunkPS272DZJ_cjs.J(e);break}throw chunkSOMGSIO4_cjs.c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.match("COMMA");)n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n=[],...t}=e;return new chunkD5MTMRHS_cjs.n({...t,packages:n.length>0?[...chunkCT5TC3JX_cjs.y,...n]:chunkCT5TC3JX_cjs.y})}Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.f}});Object.defineProperty(exports,"assertEngineVersionCompatible",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.c}});Object.defineProperty(exports,"checkEngineVersionCompatibility",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.b}});Object.defineProperty(exports,"checkPackageCompatibility",{enumerable:true,get:function(){return chunkD5MTMRHS_cjs.a}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkYUJNMUKM_cjs.a}});exports.DefineFunctionErrorCodes=r;exports.createEngine=h;exports.defineFunction=O;//# sourceMappingURL=index.cjs.map
1
+ 'use strict';require('./chunk-W7VOTR2J.cjs'),require('./chunk-EFJCC6FJ.cjs');var chunkZRFUD2LX_cjs=require('./chunk-ZRFUD2LX.cjs');require('./chunk-FNNIAJNY.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-HAEOMJE3.cjs'),require('./chunk-MVP2YD4X.cjs'),require('./chunk-IHZBKT7L.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkGYX6S6OS_cjs=require('./chunk-GYX6S6OS.cjs');require('./chunk-FUDVKPB7.cjs'),require('./chunk-NXIMGB4S.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs');require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-AQWNEO7M.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-75XDS65A.cjs');var chunkPNDQRCRQ_cjs=require('./chunk-PNDQRCRQ.cjs');require('./chunk-IANAMBJQ.cjs');var chunkB7J24Q5T_cjs=require('./chunk-B7J24Q5T.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t){switch(n){case "number":if(typeof e=="number")return chunkPNDQRCRQ_cjs.n(e);break;case "string":if(typeof e=="string")return chunkPNDQRCRQ_cjs.t(e);break;case "boolean":if(typeof e=="boolean")return chunkPNDQRCRQ_cjs.L(e);break}throw chunkSOMGSIO4_cjs.c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.match("COMMA");)n.parseExpression(chunk4QVBSG6B_cjs.a.Lowest,i),a++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw chunkSOMGSIO4_cjs.c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw chunkSOMGSIO4_cjs.c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n=[],...t}=e;return new chunkZRFUD2LX_cjs.n({...t,packages:n.length>0?[...chunkGYX6S6OS_cjs.y,...n]:chunkGYX6S6OS_cjs.y})}Object.defineProperty(exports,"ExpressionEngine",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.n}});Object.defineProperty(exports,"SNAPSHOT_FORMAT",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.d}});Object.defineProperty(exports,"SNAPSHOT_VERSION",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.e}});Object.defineProperty(exports,"SnapshotErrorCodes",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.f}});Object.defineProperty(exports,"assertEngineVersionCompatible",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.c}});Object.defineProperty(exports,"checkEngineVersionCompatibility",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.b}});Object.defineProperty(exports,"checkPackageCompatibility",{enumerable:true,get:function(){return chunkZRFUD2LX_cjs.a}});Object.defineProperty(exports,"ENGINE_VERSION",{enumerable:true,get:function(){return chunkB7J24Q5T_cjs.a}});exports.DefineFunctionErrorCodes=r;exports.createEngine=h;exports.defineFunction=O;//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,18 +1,18 @@
1
- import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-BsLmAVZJ.cjs';
2
- export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-BsLmAVZJ.cjs';
3
- export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-cEClSSkz.cjs';
1
+ import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-DeGDZkNt.cjs';
2
+ export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-DeGDZkNt.cjs';
3
+ export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-BG0iur4I.cjs';
4
4
  export { E as EngineConfigOverride } from './Configuration-BGQn-cJ8.cjs';
5
5
  export { ENGINE_VERSION } from './constants.cjs';
6
- import './Parselet-C4Wu055_.cjs';
7
- import './BytecodeBuilder-DGGeByAP.cjs';
6
+ import './Parselet-BSndkWEY.cjs';
7
+ import './BytecodeBuilder-BGq9ZiO3.cjs';
8
8
  import './Token-CbP_OutD.cjs';
9
- import './pipeline-DCQicwWX.cjs';
10
- import './Value-CCi_Eecs.cjs';
9
+ import './pipeline-BM8xc0CZ.cjs';
10
+ import './Value-DCTqTSeP.cjs';
11
11
  import './Lexer-B4C1qHXu.cjs';
12
12
  import './resolvers.cjs';
13
13
  import '@tanstack/query-core';
14
14
  import './TokenNormalizer-DnlL7_8c.cjs';
15
- import './ScopeManager-t6SnP6Ce.cjs';
15
+ import './ScopeManager-D8nLv--u.cjs';
16
16
  import './EngineError-Ce1lPkjZ.cjs';
17
17
 
18
18
  /**
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-B3yJHSxX.js';
2
- export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-B3yJHSxX.js';
3
- export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-UsSZIfHs.js';
1
+ import { I as IEnginePackage, a as EngineOptions, E as ExpressionEngine } from './PackageRegistry-BJ0QQd3k.js';
2
+ export { b as EngineRestoreOptions, c as EngineSnapshot, d as Explanation, e as ExplanationStep, S as SNAPSHOT_FORMAT, f as SNAPSHOT_VERSION, g as SerializedAnonymousBody, h as SerializedBytecode, i as SerializedDecimal, j as SerializedLineCacheEntry, k as SerializedNumber, l as SerializedRational, m as SerializedUserFunction, n as SerializedValue, o as SnapshotErrorCodes } from './PackageRegistry-BJ0QQd3k.js';
3
+ export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-BlIcQg5v.js';
4
4
  export { E as EngineConfigOverride } from './Configuration-BGQn-cJ8.js';
5
5
  export { ENGINE_VERSION } from './constants.js';
6
- import './Parselet-B-zoPrTa.js';
7
- import './BytecodeBuilder-DGGeByAP.js';
6
+ import './Parselet-Blq8B0Gj.js';
7
+ import './BytecodeBuilder-BGq9ZiO3.js';
8
8
  import './Token-CbP_OutD.js';
9
- import './pipeline-72QmQlGx.js';
10
- import './Value-CCi_Eecs.js';
9
+ import './pipeline-J2ehIm7t.js';
10
+ import './Value-DCTqTSeP.js';
11
11
  import './Lexer-DKMlj7Sy.js';
12
12
  import './resolvers.js';
13
13
  import '@tanstack/query-core';
14
14
  import './TokenNormalizer-DCWdZjGz.js';
15
- import './ScopeManager-DkpnlKuz.js';
15
+ import './ScopeManager-CF3cZUqW.js';
16
16
  import './EngineError-Ce1lPkjZ.js';
17
17
 
18
18
  /**
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import'./chunk-RDMJNRDO.js';import'./chunk-RAF57WYO.js';import {n}from'./chunk-LOM3H5ZD.js';export{n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,c as assertEngineVersionCompatible,b as checkEngineVersionCompatibility,a as checkPackageCompatibility}from'./chunk-LOM3H5ZD.js';import'./chunk-XNIWQHXY.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-QEYTENAK.js';import'./chunk-TWC7K3ZX.js';import'./chunk-B5NBFGNP.js';import'./chunk-XEIDV5JP.js';import {y as y$1}from'./chunk-2HQWM5OB.js';import'./chunk-6G3PMEPA.js';import'./chunk-AR7L5OJ2.js';import {a}from'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-LBNX7TXI.js';import'./chunk-YAYBVVG2.js';import'./chunk-E6Z4NQAS.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-RSF25YSJ.js';import {J,t,n as n$1}from'./chunk-EVAOPEO4.js';import'./chunk-WGZ3FNHI.js';export{a as ENGINE_VERSION}from'./chunk-7RTKJMYS.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import {c}from'./chunk-MPB7KUN5.js';var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t$1){switch(n){case "number":if(typeof e=="number")return n$1(e);break;case "string":if(typeof e=="string")return t(e);break;case "boolean":if(typeof e=="boolean")return J(e);break}throw c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t$1}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t$1,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a$1=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(a.Lowest,i),a$1++;n.match("COMMA");)n.parseExpression(a.Lowest,i),a$1++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a$1);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n$1=[],...t}=e;return new n({...t,packages:n$1.length>0?[...y$1,...n$1]:y$1})}export{r as DefineFunctionErrorCodes,h as createEngine,O as defineFunction};//# sourceMappingURL=index.js.map
1
+ import'./chunk-KXM7EY27.js';import'./chunk-RAF57WYO.js';import {n}from'./chunk-HF4H7LYA.js';export{n as ExpressionEngine,d as SNAPSHOT_FORMAT,e as SNAPSHOT_VERSION,f as SnapshotErrorCodes,c as assertEngineVersionCompatible,b as checkEngineVersionCompatibility,a as checkPackageCompatibility}from'./chunk-HF4H7LYA.js';import'./chunk-JQBG3LX4.js';import'./chunk-2RWAXT6O.js';import'./chunk-7E7NXKQ5.js';import'./chunk-MIQBJGGR.js';import'./chunk-N4HJTHZR.js';import'./chunk-KHCNMNZZ.js';import'./chunk-5AMJNF7J.js';import'./chunk-XEIDV5JP.js';import {y as y$1}from'./chunk-P5EMTVMJ.js';import'./chunk-JEFMG6CV.js';import'./chunk-AR7L5OJ2.js';import {a}from'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-HTJPV42D.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-WTEXBPBR.js';import {L,t,n as n$1}from'./chunk-A33K7NY4.js';import'./chunk-WGZ3FNHI.js';export{a as ENGINE_VERSION}from'./chunk-CVY2A3TP.js';import'./chunk-YAHGSBMC.js';import'./chunk-JPFCXLJV.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import {c}from'./chunk-MPB7KUN5.js';var r={DEFINE_FUNCTION_INVALID_NAME:"DEFINE_FUNCTION_INVALID_NAME",DEFINE_FUNCTION_INVALID_SPEC:"DEFINE_FUNCTION_INVALID_SPEC",DEFINE_FUNCTION_ARITY_MISMATCH:"DEFINE_FUNCTION_ARITY_MISMATCH",DEFINE_FUNCTION_ARGUMENT_TYPE:"DEFINE_FUNCTION_ARGUMENT_TYPE",DEFINE_FUNCTION_RETURN_TYPE:"DEFINE_FUNCTION_RETURN_TYPE"},b=/^[a-z_][a-z0-9_]*$/i,y=new Set(["number","string","boolean"]);function u(e){return e===1?"1 argument":`${e} arguments`}function f(e){switch(e.type){case 0:case 1:return "a number";case 3:return "a string";case 10:return "a boolean";case 2:return "a big integer";case 5:return "a percentage";case 6:return "a value with a unit";case 4:return "a date";case 7:return "a matrix";case 8:return "a range";case 9:return "a symbolic expression";default:return "an unsupported value"}}function A(e,n,t){switch(n.type){case "number":if(e.type===0||e.type===1)return e.toNumber();break;case "string":if(e.type===3)return e.value;break;case "boolean":if(e.type===10)return e.value;break}throw c.execution({code:r.DEFINE_FUNCTION_ARGUMENT_TYPE,message:`${t}() expects "${n.name}" to be a ${n.type}, but was given ${f(e)}`,expected:`a ${n.type}`,found:f(e),context:{functionName:t,argName:n.name,expectedType:n.type}})}function S(e,n,t$1){switch(n){case "number":if(typeof e=="number")return n$1(e);break;case "string":if(typeof e=="string")return t(e);break;case "boolean":if(typeof e=="boolean")return L(e);break}throw c.internal({code:r.DEFINE_FUNCTION_RETURN_TYPE,message:`${t$1}() is declared to return a ${n}, but its implementation returned ${typeof e}`,expected:`a ${n}`,found:typeof e,context:{functionName:t$1,expectedType:n}})}var p=class{constructor(n){this.fnName=n;this.category="Function";}parse(n,t,i){n.consume("LPAREN");let a$1=0;if(n.peek()?.type!=="RPAREN")for(n.parseExpression(a.Lowest,i),a$1++;n.match("COMMA");)n.parseExpression(a.Lowest,i),a$1++;n.consume("RPAREN"),i.emitPluginCall(this.fnName,a$1);}};function P(e){let n=e.args.length;return t=>{if(t.length!==n)throw c.execution({code:r.DEFINE_FUNCTION_ARITY_MISMATCH,message:`${e.name}() takes ${u(n)}, but was given ${t.length===0?"none":u(t.length)}`,expected:u(n),found:t.length===0?"none":u(t.length),context:{functionName:e.name,expected:n,actual:t.length}});let i=new Array(n);for(let s=0;s<n;s++)i[s]=A(t[s],e.args[s],e.name);let a=e.call(...i);return S(a,e.returns,e.name)}}function V(e){if(typeof e?.name!="string"||!b.test(e.name))throw c.config({code:r.DEFINE_FUNCTION_INVALID_NAME,message:`defineFunction: name must be a single identifier, got ${JSON.stringify(e?.name)}`,suggestion:'e.g. "vat" or "net_price"',context:{name:e?.name}});if(!Array.isArray(e.args))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" args must be an array`,context:{name:e.name}});for(let n of e.args){if(typeof n?.name!="string"||n.name.length===0)throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has an argument with no name`,context:{name:e.name}});if(!y.has(n.type))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" argument "${n.name}" has unsupported type ${JSON.stringify(n.type)}`,suggestion:"supported argument types are number, string, boolean",context:{name:e.name,argName:n.name,type:n.type}})}if(!y.has(e.returns))throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" has unsupported return type ${JSON.stringify(e.returns)}`,suggestion:"supported return types are number, string, boolean",context:{name:e.name,returns:e.returns}});if(typeof e.call!="function")throw c.config({code:r.DEFINE_FUNCTION_INVALID_SPEC,message:`defineFunction: "${e.name}" is missing a call implementation`,context:{name:e.name}})}function O(e){V(e);let n=e.name,t=`DEFINE_FN_${n.toUpperCase()}`;return {name:`solve-fn-${n}`,lexerVocabulary:{keywords:{[n.toLowerCase()]:t}},prefixParselets:{[t]:new p(n)},pluginFunctions:{[n]:P(e)}}}function h(e={}){let{extraPackages:n$1=[],...t}=e;return new n({...t,packages:n$1.length>0?[...y$1,...n$1]:y$1})}export{r as DefineFunctionErrorCodes,h as createEngine,O as defineFunction};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,15 +1,15 @@
1
- import { C as CompletionItem } from './PackageRegistry-BsLmAVZJ.cjs';
2
- export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-BsLmAVZJ.cjs';
1
+ import { C as CompletionItem } from './PackageRegistry-DeGDZkNt.cjs';
2
+ export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-DeGDZkNt.cjs';
3
3
  import { e as TokenCategory } from './Lexer-B4C1qHXu.cjs';
4
- import './Parselet-C4Wu055_.cjs';
5
- import './BytecodeBuilder-DGGeByAP.cjs';
4
+ import './Parselet-BSndkWEY.cjs';
5
+ import './BytecodeBuilder-BGq9ZiO3.cjs';
6
6
  import './Token-CbP_OutD.cjs';
7
- import './pipeline-DCQicwWX.cjs';
8
- import './Value-CCi_Eecs.cjs';
7
+ import './pipeline-BM8xc0CZ.cjs';
8
+ import './Value-DCTqTSeP.cjs';
9
9
  import './resolvers.cjs';
10
10
  import '@tanstack/query-core';
11
11
  import './TokenNormalizer-DnlL7_8c.cjs';
12
- import './ScopeManager-t6SnP6Ce.cjs';
12
+ import './ScopeManager-D8nLv--u.cjs';
13
13
  import './EngineError-Ce1lPkjZ.cjs';
14
14
  import './Configuration-BGQn-cJ8.cjs';
15
15
 
@@ -1,15 +1,15 @@
1
- import { C as CompletionItem } from './PackageRegistry-B3yJHSxX.js';
2
- export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-B3yJHSxX.js';
1
+ import { C as CompletionItem } from './PackageRegistry-BJ0QQd3k.js';
2
+ export { L as LanguageService, p as LanguageServiceOptions, q as SemanticToken } from './PackageRegistry-BJ0QQd3k.js';
3
3
  import { e as TokenCategory } from './Lexer-DKMlj7Sy.js';
4
- import './Parselet-B-zoPrTa.js';
5
- import './BytecodeBuilder-DGGeByAP.js';
4
+ import './Parselet-Blq8B0Gj.js';
5
+ import './BytecodeBuilder-BGq9ZiO3.js';
6
6
  import './Token-CbP_OutD.js';
7
- import './pipeline-72QmQlGx.js';
8
- import './Value-CCi_Eecs.js';
7
+ import './pipeline-J2ehIm7t.js';
8
+ import './Value-DCTqTSeP.js';
9
9
  import './resolvers.js';
10
10
  import '@tanstack/query-core';
11
11
  import './TokenNormalizer-DCWdZjGz.js';
12
- import './ScopeManager-DkpnlKuz.js';
12
+ import './ScopeManager-CF3cZUqW.js';
13
13
  import './EngineError-Ce1lPkjZ.js';
14
14
  import './Configuration-BGQn-cJ8.js';
15
15
 
package/dist/packages.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkCT5TC3JX_cjs=require('./chunk-CT5TC3JX.cjs');require('./chunk-6INX773F.cjs');var chunkNXIMGB4S_cjs=require('./chunk-NXIMGB4S.cjs');require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-YFWAR766.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-JFAJN3C2.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-N7N7MPMK.cjs'),require('./chunk-PS272DZJ.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ARITHMETIC_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.a}});Object.defineProperty(exports,"BIGINT_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.n}});Object.defineProperty(exports,"BUILTIN_PACKAGES",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.y}});Object.defineProperty(exports,"CONDITIONALS_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.o}});Object.defineProperty(exports,"CONVERTERS_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.p}});Object.defineProperty(exports,"CURRENCY_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.j}});Object.defineProperty(exports,"DATETIME_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.d}});Object.defineProperty(exports,"DICE_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.f}});Object.defineProperty(exports,"FINANCE_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.r}});Object.defineProperty(exports,"FUNCTION_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.c}});Object.defineProperty(exports,"LINES_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.v}});Object.defineProperty(exports,"MAPREDUCE_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.m}});Object.defineProperty(exports,"MATHPHRASES_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.q}});Object.defineProperty(exports,"MATRIX_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.l}});Object.defineProperty(exports,"PERCENTAGE_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.b}});Object.defineProperty(exports,"TABLES_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.w}});Object.defineProperty(exports,"TAGS_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.x}});Object.defineProperty(exports,"TIME_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.e}});Object.defineProperty(exports,"UOM_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.h}});Object.defineProperty(exports,"VARIABLES_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.g}});Object.defineProperty(exports,"VECTOR_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.k}});Object.defineProperty(exports,"WEATHER_PACKAGE",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.s}});Object.defineProperty(exports,"createCurrencyPackage",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.i}});Object.defineProperty(exports,"createKnowledgePackage",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.u}});Object.defineProperty(exports,"createStocksPackage",{enumerable:true,get:function(){return chunkCT5TC3JX_cjs.t}});Object.defineProperty(exports,"SYMBOLIC_PACKAGE",{enumerable:true,get:function(){return chunkNXIMGB4S_cjs.a}});//# sourceMappingURL=packages.cjs.map
1
+ 'use strict';var chunkGYX6S6OS_cjs=require('./chunk-GYX6S6OS.cjs');require('./chunk-FUDVKPB7.cjs');var chunkNXIMGB4S_cjs=require('./chunk-NXIMGB4S.cjs');require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-AQWNEO7M.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-75XDS65A.cjs'),require('./chunk-PNDQRCRQ.cjs'),require('./chunk-IANAMBJQ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ARITHMETIC_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.a}});Object.defineProperty(exports,"BIGINT_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.n}});Object.defineProperty(exports,"BUILTIN_PACKAGES",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.y}});Object.defineProperty(exports,"CONDITIONALS_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.o}});Object.defineProperty(exports,"CONVERTERS_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.p}});Object.defineProperty(exports,"CURRENCY_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.j}});Object.defineProperty(exports,"DATETIME_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.d}});Object.defineProperty(exports,"DICE_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.f}});Object.defineProperty(exports,"FINANCE_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.r}});Object.defineProperty(exports,"FUNCTION_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.c}});Object.defineProperty(exports,"LINES_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.v}});Object.defineProperty(exports,"MAPREDUCE_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.m}});Object.defineProperty(exports,"MATHPHRASES_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.q}});Object.defineProperty(exports,"MATRIX_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.l}});Object.defineProperty(exports,"PERCENTAGE_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.b}});Object.defineProperty(exports,"TABLES_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.w}});Object.defineProperty(exports,"TAGS_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.x}});Object.defineProperty(exports,"TIME_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.e}});Object.defineProperty(exports,"UOM_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.h}});Object.defineProperty(exports,"VARIABLES_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.g}});Object.defineProperty(exports,"VECTOR_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.k}});Object.defineProperty(exports,"WEATHER_PACKAGE",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.s}});Object.defineProperty(exports,"createCurrencyPackage",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.i}});Object.defineProperty(exports,"createKnowledgePackage",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.u}});Object.defineProperty(exports,"createStocksPackage",{enumerable:true,get:function(){return chunkGYX6S6OS_cjs.t}});Object.defineProperty(exports,"SYMBOLIC_PACKAGE",{enumerable:true,get:function(){return chunkNXIMGB4S_cjs.a}});//# sourceMappingURL=packages.cjs.map
2
2
  //# sourceMappingURL=packages.cjs.map
@@ -1,14 +1,14 @@
1
- import { I as IEnginePackage } from './PackageRegistry-BsLmAVZJ.cjs';
2
- import './Parselet-C4Wu055_.cjs';
3
- import './BytecodeBuilder-DGGeByAP.cjs';
1
+ import { I as IEnginePackage } from './PackageRegistry-DeGDZkNt.cjs';
2
+ import './Parselet-BSndkWEY.cjs';
3
+ import './BytecodeBuilder-BGq9ZiO3.cjs';
4
4
  import './Token-CbP_OutD.cjs';
5
- import './pipeline-DCQicwWX.cjs';
6
- import './Value-CCi_Eecs.cjs';
5
+ import './pipeline-BM8xc0CZ.cjs';
6
+ import './Value-DCTqTSeP.cjs';
7
7
  import './Lexer-B4C1qHXu.cjs';
8
8
  import './resolvers.cjs';
9
9
  import '@tanstack/query-core';
10
10
  import './TokenNormalizer-DnlL7_8c.cjs';
11
- import './ScopeManager-t6SnP6Ce.cjs';
11
+ import './ScopeManager-D8nLv--u.cjs';
12
12
  import './EngineError-Ce1lPkjZ.cjs';
13
13
  import './Configuration-BGQn-cJ8.cjs';
14
14
 
@@ -796,7 +796,7 @@ declare const TAGS_PACKAGE: IEnginePackage;
796
796
  /**
797
797
  * The packages an engine registers when the caller names none.
798
798
  *
799
- * Twenty-five of the twenty-seven. Stocks and knowledge are excluded because
799
+ * Twenty-eight of the thirty. Stocks and knowledge are excluded because
800
800
  * both need a host-supplied data source and do nothing useful without one, so
801
801
  * registering them by default would only produce NOT_CONFIGURED results.
802
802
  *
@@ -1,14 +1,14 @@
1
- import { I as IEnginePackage } from './PackageRegistry-B3yJHSxX.js';
2
- import './Parselet-B-zoPrTa.js';
3
- import './BytecodeBuilder-DGGeByAP.js';
1
+ import { I as IEnginePackage } from './PackageRegistry-BJ0QQd3k.js';
2
+ import './Parselet-Blq8B0Gj.js';
3
+ import './BytecodeBuilder-BGq9ZiO3.js';
4
4
  import './Token-CbP_OutD.js';
5
- import './pipeline-72QmQlGx.js';
6
- import './Value-CCi_Eecs.js';
5
+ import './pipeline-J2ehIm7t.js';
6
+ import './Value-DCTqTSeP.js';
7
7
  import './Lexer-DKMlj7Sy.js';
8
8
  import './resolvers.js';
9
9
  import '@tanstack/query-core';
10
10
  import './TokenNormalizer-DCWdZjGz.js';
11
- import './ScopeManager-DkpnlKuz.js';
11
+ import './ScopeManager-CF3cZUqW.js';
12
12
  import './EngineError-Ce1lPkjZ.js';
13
13
  import './Configuration-BGQn-cJ8.js';
14
14
 
@@ -796,7 +796,7 @@ declare const TAGS_PACKAGE: IEnginePackage;
796
796
  /**
797
797
  * The packages an engine registers when the caller names none.
798
798
  *
799
- * Twenty-five of the twenty-seven. Stocks and knowledge are excluded because
799
+ * Twenty-eight of the thirty. Stocks and knowledge are excluded because
800
800
  * both need a host-supplied data source and do nothing useful without one, so
801
801
  * registering them by default would only produce NOT_CONFIGURED results.
802
802
  *
package/dist/packages.js CHANGED
@@ -1,2 +1,2 @@
1
- export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,y as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,v as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,w as TABLES_PACKAGE,x as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,i as createCurrencyPackage,u as createKnowledgePackage,t as createStocksPackage}from'./chunk-2HQWM5OB.js';import'./chunk-6G3PMEPA.js';export{a as SYMBOLIC_PACKAGE}from'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-LBNX7TXI.js';import'./chunk-YAYBVVG2.js';import'./chunk-E6Z4NQAS.js';import'./chunk-HFKDWQUL.js';import'./chunk-R2ENWQ76.js';import'./chunk-RSF25YSJ.js';import'./chunk-EVAOPEO4.js';import'./chunk-WGZ3FNHI.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=packages.js.map
1
+ export{a as ARITHMETIC_PACKAGE,n as BIGINT_PACKAGE,y as BUILTIN_PACKAGES,o as CONDITIONALS_PACKAGE,p as CONVERTERS_PACKAGE,j as CURRENCY_PACKAGE,d as DATETIME_PACKAGE,f as DICE_PACKAGE,r as FINANCE_PACKAGE,c as FUNCTION_PACKAGE,v as LINES_PACKAGE,m as MAPREDUCE_PACKAGE,q as MATHPHRASES_PACKAGE,l as MATRIX_PACKAGE,b as PERCENTAGE_PACKAGE,w as TABLES_PACKAGE,x as TAGS_PACKAGE,e as TIME_PACKAGE,h as UOM_PACKAGE,g as VARIABLES_PACKAGE,k as VECTOR_PACKAGE,s as WEATHER_PACKAGE,i as createCurrencyPackage,u as createKnowledgePackage,t as createStocksPackage}from'./chunk-P5EMTVMJ.js';import'./chunk-JEFMG6CV.js';export{a as SYMBOLIC_PACKAGE}from'./chunk-AR7L5OJ2.js';import'./chunk-YVKHEAFT.js';import'./chunk-5FO4PDIG.js';import'./chunk-76F3LCIL.js';import'./chunk-TCZSPH4A.js';import'./chunk-HTJPV42D.js';import'./chunk-YAYBVVG2.js';import'./chunk-YNMMRH44.js';import'./chunk-HFKDWQUL.js';import'./chunk-5TCSFTZD.js';import'./chunk-WTEXBPBR.js';import'./chunk-A33K7NY4.js';import'./chunk-WGZ3FNHI.js';import'./chunk-G7TBEQRQ.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-TRBXW6HW.js';import'./chunk-2JMFUQZH.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=packages.js.map
2
2
  //# sourceMappingURL=packages.js.map
package/dist/parser.cjs CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkFDE5HWDI_cjs=require('./chunk-FDE5HWDI.cjs');require('./chunk-AXMQG5TS.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs'),chunkJFAJN3C2_cjs=require('./chunk-JFAJN3C2.cjs');require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ParseletRegistry",{enumerable:true,get:function(){return chunkFDE5HWDI_cjs.b}});Object.defineProperty(exports,"Parser",{enumerable:true,get:function(){return chunkFDE5HWDI_cjs.a}});Object.defineProperty(exports,"PrecedenceParser",{enumerable:true,get:function(){return chunkFDE5HWDI_cjs.a}});Object.defineProperty(exports,"sharedParseletRegistry",{enumerable:true,get:function(){return chunkFDE5HWDI_cjs.c}});Object.defineProperty(exports,"BindingPower",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.a}});Object.defineProperty(exports,"BytecodeBuilder",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.d}});Object.defineProperty(exports,"buildBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.b}});Object.defineProperty(exports,"invalidateBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.c}});Object.defineProperty(exports,"OpCode",{enumerable:true,get:function(){return chunkJFAJN3C2_cjs.a}});Object.defineProperty(exports,"getOpCodeName",{enumerable:true,get:function(){return chunkJFAJN3C2_cjs.b}});//# sourceMappingURL=parser.cjs.map
1
+ 'use strict';var chunkFNNIAJNY_cjs=require('./chunk-FNNIAJNY.cjs');require('./chunk-MVP2YD4X.cjs');var chunk4QVBSG6B_cjs=require('./chunk-4QVBSG6B.cjs'),chunkVBSMA7WJ_cjs=require('./chunk-VBSMA7WJ.cjs');require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-SOMGSIO4.cjs');Object.defineProperty(exports,"ParseletRegistry",{enumerable:true,get:function(){return chunkFNNIAJNY_cjs.b}});Object.defineProperty(exports,"Parser",{enumerable:true,get:function(){return chunkFNNIAJNY_cjs.a}});Object.defineProperty(exports,"PrecedenceParser",{enumerable:true,get:function(){return chunkFNNIAJNY_cjs.a}});Object.defineProperty(exports,"sharedParseletRegistry",{enumerable:true,get:function(){return chunkFNNIAJNY_cjs.c}});Object.defineProperty(exports,"BindingPower",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.a}});Object.defineProperty(exports,"BytecodeBuilder",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.d}});Object.defineProperty(exports,"buildBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.b}});Object.defineProperty(exports,"invalidateBindingPowerTable",{enumerable:true,get:function(){return chunk4QVBSG6B_cjs.c}});Object.defineProperty(exports,"OpCode",{enumerable:true,get:function(){return chunkVBSMA7WJ_cjs.a}});Object.defineProperty(exports,"getOpCodeName",{enumerable:true,get:function(){return chunkVBSMA7WJ_cjs.b}});//# sourceMappingURL=parser.cjs.map
2
2
  //# sourceMappingURL=parser.cjs.map
package/dist/parser.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-C4Wu055_.cjs';
2
- export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-DGGeByAP.cjs';
1
+ export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-BSndkWEY.cjs';
2
+ export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-BGq9ZiO3.cjs';
3
3
  import './Token-CbP_OutD.cjs';
4
- import './pipeline-DCQicwWX.cjs';
5
- import './Value-CCi_Eecs.cjs';
4
+ import './pipeline-BM8xc0CZ.cjs';
5
+ import './Value-DCTqTSeP.cjs';
6
6
 
7
7
  /**
8
8
  * Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
package/dist/parser.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-B-zoPrTa.js';
2
- export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-DGGeByAP.js';
1
+ export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-Blq8B0Gj.js';
2
+ export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-BGq9ZiO3.js';
3
3
  import './Token-CbP_OutD.js';
4
- import './pipeline-72QmQlGx.js';
5
- import './Value-CCi_Eecs.js';
4
+ import './pipeline-J2ehIm7t.js';
5
+ import './Value-DCTqTSeP.js';
6
6
 
7
7
  /**
8
8
  * Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
package/dist/parser.js CHANGED
@@ -1,2 +1,2 @@
1
- export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-XNIWQHXY.js';import'./chunk-TWC7K3ZX.js';export{a as BindingPower,d as BytecodeBuilder,b as buildBindingPowerTable,c as invalidateBindingPowerTable}from'./chunk-YVKHEAFT.js';export{a as OpCode,b as getOpCodeName}from'./chunk-E6Z4NQAS.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=parser.js.map
1
+ export{b as ParseletRegistry,a as Parser,a as PrecedenceParser,c as sharedParseletRegistry}from'./chunk-JQBG3LX4.js';import'./chunk-KHCNMNZZ.js';export{a as BindingPower,d as BytecodeBuilder,b as buildBindingPowerTable,c as invalidateBindingPowerTable}from'./chunk-YVKHEAFT.js';export{a as OpCode,b as getOpCodeName}from'./chunk-YNMMRH44.js';import'./chunk-IJMNVBIS.js';import'./chunk-62LMTO4F.js';import'./chunk-MPB7KUN5.js';//# sourceMappingURL=parser.js.map
2
2
  //# sourceMappingURL=parser.js.map
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as SymbolicNode } from './Value-CCi_Eecs.cjs';
1
+ import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as ChartData, I as IpCidrData, g as SymbolicNode } from './Value-DCTqTSeP.cjs';
2
2
 
3
3
  /** Base event, all events include a timestamp relative to pipeline start */
4
4
  interface BaseEvent {
@@ -46,7 +46,7 @@ interface VmStepEvent extends BaseEvent {
46
46
  readonly instructionNumber: number;
47
47
  readonly stack: ReadonlyArray<{
48
48
  readonly type: number;
49
- readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | SymbolicNode;
49
+ readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | IpCidrData | SymbolicNode;
50
50
  readonly unit?: string;
51
51
  }>;
52
52
  }
@@ -55,7 +55,7 @@ interface VmHaltEvent extends BaseEvent {
55
55
  readonly type: "vm_halt";
56
56
  readonly result?: {
57
57
  readonly type: number;
58
- readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | SymbolicNode;
58
+ readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | IpCidrData | SymbolicNode;
59
59
  readonly unit?: string;
60
60
  };
61
61
  }
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as SymbolicNode } from './Value-CCi_Eecs.js';
1
+ import { M as MatrixData, R as RangeData, C as ColourData, S as SplitData, f as ChartData, I as IpCidrData, g as SymbolicNode } from './Value-DCTqTSeP.js';
2
2
 
3
3
  /** Base event, all events include a timestamp relative to pipeline start */
4
4
  interface BaseEvent {
@@ -46,7 +46,7 @@ interface VmStepEvent extends BaseEvent {
46
46
  readonly instructionNumber: number;
47
47
  readonly stack: ReadonlyArray<{
48
48
  readonly type: number;
49
- readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | SymbolicNode;
49
+ readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | IpCidrData | SymbolicNode;
50
50
  readonly unit?: string;
51
51
  }>;
52
52
  }
@@ -55,7 +55,7 @@ interface VmHaltEvent extends BaseEvent {
55
55
  readonly type: "vm_halt";
56
56
  readonly result?: {
57
57
  readonly type: number;
58
- readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | SymbolicNode;
58
+ readonly value: number | bigint | string | boolean | MatrixData | RangeData | ColourData | SplitData | ChartData | IpCidrData | SymbolicNode;
59
59
  readonly unit?: string;
60
60
  };
61
61
  }
@@ -1,7 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-CbP_OutD.cjs';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-DGGeByAP.cjs';
4
- import { V as Value } from './Value-CCi_Eecs.cjs';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.cjs';
4
+ import { V as Value } from './Value-DCTqTSeP.cjs';
5
5
 
6
6
  /**
7
7
  * Result from a resolver's preflight() check.
@@ -1,7 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-CbP_OutD.js';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-DGGeByAP.js';
4
- import { V as Value } from './Value-CCi_Eecs.js';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-BGq9ZiO3.js';
4
+ import { V as Value } from './Value-DCTqTSeP.js';
5
5
 
6
6
  /**
7
7
  * Result from a resolver's preflight() check.
package/dist/testing.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var chunkD5MTMRHS_cjs=require('./chunk-D5MTMRHS.cjs');require('./chunk-FDE5HWDI.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-ANJPS6FF.cjs'),require('./chunk-AXMQG5TS.cjs'),require('./chunk-6ZNNPXXE.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkCT5TC3JX_cjs=require('./chunk-CT5TC3JX.cjs');require('./chunk-6INX773F.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-YFWAR766.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-JFAJN3C2.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-ESUN2THE.cjs'),require('./chunk-N7N7MPMK.cjs');var chunkPS272DZJ_cjs=require('./chunk-PS272DZJ.cjs');require('./chunk-IANAMBJQ.cjs');var chunkYUJNMUKM_cjs=require('./chunk-YUJNMUKM.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var i=class o extends Error{constructor(t){super(t.message),this.name="ExpectationError",this.code=t.code,this.expected=t.expected,this.actual=t.actual,Object.setPrototypeOf(this,o.prototype);}};function V(o=[],t={}){let{locale:e="en",includeBuiltins:r=true}=t,s=new chunkD5MTMRHS_cjs.n({locale:e,packages:r?chunkCT5TC3JX_cjs.y:[]});for(let a of o)s.registerPackage(a);return s}function v(o,t){try{let e=o.evaluateExpression(t);return e.isError()?{status:"error",code:e.errorCode??"",message:e.errorMessage??"",source:e}:e.isPending()?{status:"pending",value:e}:{status:"value",value:e}}catch(e){if(e instanceof chunkSOMGSIO4_cjs.b)return {status:"error",code:e.code,message:e.message,source:e};let r=e instanceof Error?e.message:String(e);return {status:"error",code:"UNKNOWN_ERROR",message:r,source:new chunkPS272DZJ_cjs.m(13,"UNKNOWN_ERROR",r)}}}function x(o,t){if(Object.is(o,t))return true;if(!Number.isFinite(o)||!Number.isFinite(t))return false;let e=1e-9*Math.max(1,Math.abs(o),Math.abs(t));return Math.abs(o-t)<=e}function l(o){return o.type===3?JSON.stringify(o.value):o.type===6&&typeof o.unit=="string"?`${String(o.value)} ${o.unit}`:String(o.value)}function n(o){switch(o.status){case "value":return l(o.value);case "pending":return "a pending async value";case "error":return `an error (${o.code}: ${o.message})`}}var d=class{constructor(t,e){this.expression=t;this.outcome=e;}get value(){if(this.outcome.status==="error")throw new i({code:"EXPECTED_VALUE",message:`Expected "${this.expression}" to evaluate, but it failed with ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this.outcome.value}toEvaluate(){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EVALUATE",message:`Expected "${this.expression}" to evaluate to a value, but got ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this}toEqual(t,e){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but got ${n(this.outcome)}.`,expected:c(t,e),actual:n(this.outcome)});let r=this.outcome.value,s;if(typeof t=="number"?s=x(r.toNumber(),t):typeof t=="boolean"?s=r.type===10&&r.value===t:s=C(r)===t,!s)throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but it was ${l(r)}.`,expected:c(t,e),actual:l(r)});if(e!==void 0&&r.unit!==e)throw new i({code:"EXPECTED_UNIT",message:`Expected "${this.expression}" to carry the unit "${e}", but it was ${r.unit===void 0?"unitless":`"${r.unit}"`}.`,expected:`unit "${e}"`,actual:r.unit===void 0?"no unit":`unit "${r.unit}"`});return this}toBeError(){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_ERROR",message:`Expected "${this.expression}" to fail, but it produced ${n(this.outcome)}.`,expected:"an error",actual:n(this.outcome)});return this}toFailWith(t){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it produced ${n(this.outcome)}.`,expected:`error code "${t}"`,actual:n(this.outcome)});if(this.outcome.code!==t)throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it failed with "${this.outcome.code}" (${this.outcome.message}).`,expected:`error code "${t}"`,actual:`error code "${this.outcome.code}"`});return this}toBePending(){if(this.outcome.status!=="pending")throw new i({code:"EXPECTED_PENDING",message:`Expected "${this.expression}" to be pending, but got ${n(this.outcome)}.`,expected:"a pending async value",actual:n(this.outcome)});return this}};function c(o,t){let e=typeof o=="string"?JSON.stringify(o):String(o);return t===void 0?e:`${e} ${t}`}function C(o){return String(o.value)}function D(o,t){return new d(t,v(o,t))}var O=["a","an","and","or","but","if","then","the","this","that","these","those","in","on","at","to","of","for","from","with","by","as","per","into","over","is","are","was","were","be","been","being","do","does","did","have","has","had","will","would","can","could","should","may","might","must","price","cost","value","total","sum","count","rate","amount","number","time","date","day","week","month","year","hour","minute","second","add","buy","sell","hold","make","take","give","get","set","run","up","down","out","off","all","some","any","no","not","more","less","one","two","three","first","last","next","each","every","here","there"],$=["error","warning","info"];function k(o){let t=[],e=o.lexerVocabulary;if(e?.keywords)for(let[r,s]of Object.entries(e.keywords))t.push({word:r,via:"keyword",tokenType:s});if(e?.units)for(let r of e.units)t.push({word:r,via:"unit"});if(e?.operators)for(let[r,s]of Object.entries(e.operators))t.push({word:r,via:"operator",tokenType:s});if(o.phrases)for(let[r,s]of Object.entries(o.phrases))r.includes(" ")||t.push({word:r,via:"phrase",tokenType:s});return t}var p=class{constructor(t){this.pkg=t;}notToShadow(t=O){let e=new Set(t.map(s=>s.toLowerCase())),r=k(this.pkg).filter(s=>e.has(s.word.toLowerCase()));if(r.length>0){let s=r.map(a=>`"${a.word}" (${a.via})`).join(", ");throw new i({code:"PACKAGE_SHADOWS_PROSE",message:`Package "${this.pkg.name}" claims prose word(s) as syntax: ${s}. A word that is also ordinary English turns prose into arithmetic; prefer a multi-word phrase or a form that requires a parenthesis.`,expected:"no prose words claimed as syntax",actual:s})}return r}notToCollideWith(t,e="error"){let r=chunkD5MTMRHS_cjs.a(this.pkg,t),s=$.indexOf(e),a=r.conflicts.filter(u=>$.indexOf(u.severity)<=s);if(a.length>0){let u=a.map(g=>`[${g.severity}] ${g.detail}`).join(`
1
+ 'use strict';var chunkZRFUD2LX_cjs=require('./chunk-ZRFUD2LX.cjs');require('./chunk-FNNIAJNY.cjs'),require('./chunk-NGBBNL4K.cjs'),require('./chunk-LNZNJSRW.cjs'),require('./chunk-TTFO4YDP.cjs'),require('./chunk-HAEOMJE3.cjs'),require('./chunk-MVP2YD4X.cjs'),require('./chunk-IHZBKT7L.cjs'),require('./chunk-R2SZFJTT.cjs');var chunkGYX6S6OS_cjs=require('./chunk-GYX6S6OS.cjs');require('./chunk-FUDVKPB7.cjs'),require('./chunk-NXIMGB4S.cjs'),require('./chunk-4QVBSG6B.cjs'),require('./chunk-VAGS5JS7.cjs'),require('./chunk-UURM7P3P.cjs'),require('./chunk-ZLRJ7TDP.cjs'),require('./chunk-AQWNEO7M.cjs'),require('./chunk-4BZIYU7S.cjs'),require('./chunk-VBSMA7WJ.cjs'),require('./chunk-TLG7VZRX.cjs'),require('./chunk-5TVI2UPZ.cjs'),require('./chunk-75XDS65A.cjs');var chunkPNDQRCRQ_cjs=require('./chunk-PNDQRCRQ.cjs');require('./chunk-IANAMBJQ.cjs');var chunkB7J24Q5T_cjs=require('./chunk-B7J24Q5T.cjs');require('./chunk-32GC2FHC.cjs'),require('./chunk-Y7O4D3BJ.cjs'),require('./chunk-2LFLR3VZ.cjs'),require('./chunk-5IJD5L3O.cjs'),require('./chunk-MSYX32PF.cjs'),require('./chunk-FWW3M36J.cjs'),require('./chunk-CIQOK7Q4.cjs');var chunkSOMGSIO4_cjs=require('./chunk-SOMGSIO4.cjs');var i=class o extends Error{constructor(t){super(t.message),this.name="ExpectationError",this.code=t.code,this.expected=t.expected,this.actual=t.actual,Object.setPrototypeOf(this,o.prototype);}};function V(o=[],t={}){let{locale:e="en",includeBuiltins:r=true}=t,s=new chunkZRFUD2LX_cjs.n({locale:e,packages:r?chunkGYX6S6OS_cjs.y:[]});for(let a of o)s.registerPackage(a);return s}function v(o,t){try{let e=o.evaluateExpression(t);return e.isError()?{status:"error",code:e.errorCode??"",message:e.errorMessage??"",source:e}:e.isPending()?{status:"pending",value:e}:{status:"value",value:e}}catch(e){if(e instanceof chunkSOMGSIO4_cjs.b)return {status:"error",code:e.code,message:e.message,source:e};let r=e instanceof Error?e.message:String(e);return {status:"error",code:"UNKNOWN_ERROR",message:r,source:new chunkPNDQRCRQ_cjs.m(13,"UNKNOWN_ERROR",r)}}}function x(o,t){if(Object.is(o,t))return true;if(!Number.isFinite(o)||!Number.isFinite(t))return false;let e=1e-9*Math.max(1,Math.abs(o),Math.abs(t));return Math.abs(o-t)<=e}function l(o){return o.type===3?JSON.stringify(o.value):o.type===6&&typeof o.unit=="string"?`${String(o.value)} ${o.unit}`:String(o.value)}function n(o){switch(o.status){case "value":return l(o.value);case "pending":return "a pending async value";case "error":return `an error (${o.code}: ${o.message})`}}var d=class{constructor(t,e){this.expression=t;this.outcome=e;}get value(){if(this.outcome.status==="error")throw new i({code:"EXPECTED_VALUE",message:`Expected "${this.expression}" to evaluate, but it failed with ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this.outcome.value}toEvaluate(){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EVALUATE",message:`Expected "${this.expression}" to evaluate to a value, but got ${n(this.outcome)}.`,expected:"a resolved value",actual:n(this.outcome)});return this}toEqual(t,e){if(this.outcome.status!=="value")throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but got ${n(this.outcome)}.`,expected:c(t,e),actual:n(this.outcome)});let r=this.outcome.value,s;if(typeof t=="number"?s=x(r.toNumber(),t):typeof t=="boolean"?s=r.type===10&&r.value===t:s=C(r)===t,!s)throw new i({code:"EXPECTED_EQUAL",message:`Expected "${this.expression}" to equal ${c(t,e)}, but it was ${l(r)}.`,expected:c(t,e),actual:l(r)});if(e!==void 0&&r.unit!==e)throw new i({code:"EXPECTED_UNIT",message:`Expected "${this.expression}" to carry the unit "${e}", but it was ${r.unit===void 0?"unitless":`"${r.unit}"`}.`,expected:`unit "${e}"`,actual:r.unit===void 0?"no unit":`unit "${r.unit}"`});return this}toBeError(){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_ERROR",message:`Expected "${this.expression}" to fail, but it produced ${n(this.outcome)}.`,expected:"an error",actual:n(this.outcome)});return this}toFailWith(t){if(this.outcome.status!=="error")throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it produced ${n(this.outcome)}.`,expected:`error code "${t}"`,actual:n(this.outcome)});if(this.outcome.code!==t)throw new i({code:"EXPECTED_FAIL_WITH",message:`Expected "${this.expression}" to fail with "${t}", but it failed with "${this.outcome.code}" (${this.outcome.message}).`,expected:`error code "${t}"`,actual:`error code "${this.outcome.code}"`});return this}toBePending(){if(this.outcome.status!=="pending")throw new i({code:"EXPECTED_PENDING",message:`Expected "${this.expression}" to be pending, but got ${n(this.outcome)}.`,expected:"a pending async value",actual:n(this.outcome)});return this}};function c(o,t){let e=typeof o=="string"?JSON.stringify(o):String(o);return t===void 0?e:`${e} ${t}`}function C(o){return String(o.value)}function D(o,t){return new d(t,v(o,t))}var O=["a","an","and","or","but","if","then","the","this","that","these","those","in","on","at","to","of","for","from","with","by","as","per","into","over","is","are","was","were","be","been","being","do","does","did","have","has","had","will","would","can","could","should","may","might","must","price","cost","value","total","sum","count","rate","amount","number","time","date","day","week","month","year","hour","minute","second","add","buy","sell","hold","make","take","give","get","set","run","up","down","out","off","all","some","any","no","not","more","less","one","two","three","first","last","next","each","every","here","there"],$=["error","warning","info"];function k(o){let t=[],e=o.lexerVocabulary;if(e?.keywords)for(let[r,s]of Object.entries(e.keywords))t.push({word:r,via:"keyword",tokenType:s});if(e?.units)for(let r of e.units)t.push({word:r,via:"unit"});if(e?.operators)for(let[r,s]of Object.entries(e.operators))t.push({word:r,via:"operator",tokenType:s});if(o.phrases)for(let[r,s]of Object.entries(o.phrases))r.includes(" ")||t.push({word:r,via:"phrase",tokenType:s});return t}var p=class{constructor(t){this.pkg=t;}notToShadow(t=O){let e=new Set(t.map(s=>s.toLowerCase())),r=k(this.pkg).filter(s=>e.has(s.word.toLowerCase()));if(r.length>0){let s=r.map(a=>`"${a.word}" (${a.via})`).join(", ");throw new i({code:"PACKAGE_SHADOWS_PROSE",message:`Package "${this.pkg.name}" claims prose word(s) as syntax: ${s}. A word that is also ordinary English turns prose into arithmetic; prefer a multi-word phrase or a form that requires a parenthesis.`,expected:"no prose words claimed as syntax",actual:s})}return r}notToCollideWith(t,e="error"){let r=chunkZRFUD2LX_cjs.a(this.pkg,t),s=$.indexOf(e),a=r.conflicts.filter(u=>$.indexOf(u.severity)<=s);if(a.length>0){let u=a.map(g=>`[${g.severity}] ${g.detail}`).join(`
2
2
  `);throw new i({code:"PACKAGE_VOCABULARY_COLLISION",message:`Package "${this.pkg.name}" collides with another package:
3
- ${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=chunkYUJNMUKM_cjs.a){let e=chunkD5MTMRHS_cjs.b(this.pkg,t);if(!e.compatible){let r=e.reason==="invalid-range"?`its range "${e.declaredRange}" is not valid semver`:`its range "${e.declaredRange}" is not satisfied by engine version "${e.engineVersion}"`;throw new i({code:"PACKAGE_ENGINE_VERSION_INCOMPATIBLE",message:`Package "${this.pkg.name}" declares an engineVersion that will be rejected at registration: ${r}.`,expected:`an engineVersion satisfied by "${t}"`,actual:`"${e.declaredRange}"`})}return this}};function L(o){return new p(o)}exports.COMMON_PROSE_WORDS=O;exports.ExpectationError=i;exports.ExpressionAssertion=d;exports.PackageAssertion=p;exports.createTestEngine=V;exports.expectExpression=D;exports.expectPackage=L;//# sourceMappingURL=testing.cjs.map
3
+ ${u}`,expected:`no conflicts at or above "${e}" severity`,actual:`${a.length} conflict(s)`})}return r}toDeclareCompatibleEngineVersion(t=chunkB7J24Q5T_cjs.a){let e=chunkZRFUD2LX_cjs.b(this.pkg,t);if(!e.compatible){let r=e.reason==="invalid-range"?`its range "${e.declaredRange}" is not valid semver`:`its range "${e.declaredRange}" is not satisfied by engine version "${e.engineVersion}"`;throw new i({code:"PACKAGE_ENGINE_VERSION_INCOMPATIBLE",message:`Package "${this.pkg.name}" declares an engineVersion that will be rejected at registration: ${r}.`,expected:`an engineVersion satisfied by "${t}"`,actual:`"${e.declaredRange}"`})}return this}};function L(o){return new p(o)}exports.COMMON_PROSE_WORDS=O;exports.ExpectationError=i;exports.ExpressionAssertion=d;exports.PackageAssertion=p;exports.createTestEngine=V;exports.expectExpression=D;exports.expectPackage=L;//# sourceMappingURL=testing.cjs.map
4
4
  //# sourceMappingURL=testing.cjs.map