@cocoar/vue-page-builder 2.19.0 → 2.20.0-beta.19

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 (188) hide show
  1. package/IDP_INTEGRATION.md +355 -0
  2. package/README.md +352 -12
  3. package/dist/BuilderElementCodeDialog-ByhAkwmS.js +64 -0
  4. package/dist/BuilderExpressionDialog-DjGebYyv.js +61 -0
  5. package/dist/BuilderLogicPanel-Cxd04A93.js +68 -0
  6. package/dist/BuilderPageRootCodeDialog-7uXyUGGD.js +61 -0
  7. package/dist/CoarPageBuilder.vue.d.ts +60 -1
  8. package/dist/CoarPageBuilder.vue.d.ts.map +1 -1
  9. package/dist/CoarPageRenderer.vue.d.ts +38 -1
  10. package/dist/CoarPageRenderer.vue.d.ts.map +1 -1
  11. package/dist/PageNode.vue.d.ts +9 -1
  12. package/dist/PageNode.vue.d.ts.map +1 -1
  13. package/dist/VisualMarkupInspector-DGjFuyMS.js +54 -0
  14. package/dist/_plugin-vue_export-helper-BTgDAbhb.js +8 -0
  15. package/dist/actionValues.d.ts +21 -0
  16. package/dist/actionValues.d.ts.map +1 -0
  17. package/dist/assets/pageScriptRuntime.worker-Cll8Lm_I.js +25 -0
  18. package/dist/builder/BuilderCanvas.vue.d.ts.map +1 -1
  19. package/dist/builder/BuilderCanvasNode.vue.d.ts.map +1 -1
  20. package/dist/builder/BuilderCompositionsPanel.vue.d.ts +3 -0
  21. package/dist/builder/BuilderCompositionsPanel.vue.d.ts.map +1 -0
  22. package/dist/builder/BuilderElementCodeDialog.vue.d.ts +14 -0
  23. package/dist/builder/BuilderElementCodeDialog.vue.d.ts.map +1 -0
  24. package/dist/builder/BuilderExpressionDialog.vue.d.ts +11 -0
  25. package/dist/builder/BuilderExpressionDialog.vue.d.ts.map +1 -0
  26. package/dist/builder/BuilderFxButton.vue.d.ts +28 -0
  27. package/dist/builder/BuilderFxButton.vue.d.ts.map +1 -0
  28. package/dist/builder/BuilderLogicPanel.vue.d.ts +3 -0
  29. package/dist/builder/BuilderLogicPanel.vue.d.ts.map +1 -0
  30. package/dist/builder/BuilderOutlineNode.vue.d.ts.map +1 -1
  31. package/dist/builder/BuilderPageRootCodeDialog.vue.d.ts +13 -0
  32. package/dist/builder/BuilderPageRootCodeDialog.vue.d.ts.map +1 -0
  33. package/dist/builder/BuilderPalette.vue.d.ts +3 -0
  34. package/dist/builder/BuilderPalette.vue.d.ts.map +1 -0
  35. package/dist/builder/BuilderPropsPanel.vue.d.ts.map +1 -1
  36. package/dist/builder/BuilderTranslationsPanel.vue.d.ts +6 -0
  37. package/dist/builder/BuilderTranslationsPanel.vue.d.ts.map +1 -0
  38. package/dist/builder/builderContext.d.ts +44 -2
  39. package/dist/builder/builderContext.d.ts.map +1 -1
  40. package/dist/builder/expressionAuthoring.d.ts +7 -0
  41. package/dist/builder/expressionAuthoring.d.ts.map +1 -0
  42. package/dist/builder/nodeDefaults.d.ts +10 -5
  43. package/dist/builder/nodeDefaults.d.ts.map +1 -1
  44. package/dist/builder/pageCodeAuthoring.d.ts +11 -0
  45. package/dist/builder/pageCodeAuthoring.d.ts.map +1 -0
  46. package/dist/builder/props/ActionPropsEditor.vue.d.ts +9 -0
  47. package/dist/builder/props/ActionPropsEditor.vue.d.ts.map +1 -0
  48. package/dist/builder/props/StyleProps.vue.d.ts +1 -0
  49. package/dist/builder/props/StyleProps.vue.d.ts.map +1 -1
  50. package/dist/builder/schemaMigrateV1.d.ts.map +1 -1
  51. package/dist/builder/schemaNormalize.d.ts.map +1 -1
  52. package/dist/builder/useBuilderDnd.d.ts +8 -1
  53. package/dist/builder/useBuilderDnd.d.ts.map +1 -1
  54. package/dist/builder/usePageBuilder.d.ts +4 -0
  55. package/dist/builder/usePageBuilder.d.ts.map +1 -1
  56. package/dist/builder/usePageCompositions.d.ts +71 -0
  57. package/dist/builder/usePageCompositions.d.ts.map +1 -0
  58. package/dist/builder/useSchemaValidation.d.ts.map +1 -1
  59. package/dist/builderContext-5hKJ8y8r.js +4 -0
  60. package/dist/compositions.d.ts +79 -0
  61. package/dist/compositions.d.ts.map +1 -0
  62. package/dist/conditions.d.ts +9 -0
  63. package/dist/conditions.d.ts.map +1 -0
  64. package/dist/context.d.ts +17 -3
  65. package/dist/context.d.ts.map +1 -1
  66. package/dist/documentValidation.d.ts +12 -0
  67. package/dist/documentValidation.d.ts.map +1 -0
  68. package/dist/elements/builtins.d.ts.map +1 -1
  69. package/dist/elements/button/ButtonInspector.vue.d.ts.map +1 -1
  70. package/dist/elements/button/ButtonRenderer.vue.d.ts.map +1 -1
  71. package/dist/elements/button/index.d.ts +2 -2
  72. package/dist/elements/button/index.d.ts.map +1 -1
  73. package/dist/elements/card/CardInspector.vue.d.ts.map +1 -1
  74. package/dist/elements/card/index.d.ts.map +1 -1
  75. package/dist/elements/checkbox/CheckboxDefaultInput.vue.d.ts.map +1 -1
  76. package/dist/elements/checkbox/CheckboxInspector.vue.d.ts.map +1 -1
  77. package/dist/elements/checkbox/CheckboxRenderer.vue.d.ts.map +1 -1
  78. package/dist/elements/checkbox/index.d.ts.map +1 -1
  79. package/dist/elements/date-input/DateInputDefaultInput.vue.d.ts.map +1 -1
  80. package/dist/elements/date-input/DateInputInspector.vue.d.ts.map +1 -1
  81. package/dist/elements/date-input/index.d.ts.map +1 -1
  82. package/dist/elements/datetime-input/DateTimeInputDefaultInput.vue.d.ts.map +1 -1
  83. package/dist/elements/datetime-input/DateTimeInputInspector.vue.d.ts.map +1 -1
  84. package/dist/elements/datetime-input/index.d.ts.map +1 -1
  85. package/dist/elements/feedback/FeedbackInspector.vue.d.ts +8 -0
  86. package/dist/elements/feedback/FeedbackInspector.vue.d.ts.map +1 -0
  87. package/dist/elements/feedback/FeedbackPreview.vue.d.ts +7 -0
  88. package/dist/elements/feedback/FeedbackPreview.vue.d.ts.map +1 -0
  89. package/dist/elements/{stack/StackInspector.vue.d.ts → feedback/FeedbackRenderer.vue.d.ts} +3 -4
  90. package/dist/elements/feedback/FeedbackRenderer.vue.d.ts.map +1 -0
  91. package/dist/elements/feedback/index.d.ts +6 -0
  92. package/dist/elements/feedback/index.d.ts.map +1 -0
  93. package/dist/elements/heading/HeadingInspector.vue.d.ts.map +1 -1
  94. package/dist/elements/heading/index.d.ts.map +1 -1
  95. package/dist/elements/image/ImageInspector.vue.d.ts.map +1 -1
  96. package/dist/elements/link/LinkInspector.vue.d.ts +1 -1
  97. package/dist/elements/link/LinkInspector.vue.d.ts.map +1 -1
  98. package/dist/elements/link/index.d.ts +1 -2
  99. package/dist/elements/link/index.d.ts.map +1 -1
  100. package/dist/elements/multi-select/MultiSelectDefaultInput.vue.d.ts.map +1 -1
  101. package/dist/elements/multi-select/MultiSelectInspector.vue.d.ts.map +1 -1
  102. package/dist/elements/multi-select/index.d.ts.map +1 -1
  103. package/dist/elements/note/NoteInspector.vue.d.ts.map +1 -1
  104. package/dist/elements/number-input/NumberInputDefaultInput.vue.d.ts.map +1 -1
  105. package/dist/elements/number-input/NumberInputInspector.vue.d.ts.map +1 -1
  106. package/dist/elements/number-input/index.d.ts.map +1 -1
  107. package/dist/elements/otp-input/OtpInputInspector.vue.d.ts.map +1 -1
  108. package/dist/elements/otp-input/index.d.ts.map +1 -1
  109. package/dist/elements/paragraph/index.d.ts.map +1 -1
  110. package/dist/elements/password-input/PasswordInputInspector.vue.d.ts.map +1 -1
  111. package/dist/elements/password-input/index.d.ts.map +1 -1
  112. package/dist/elements/radio-group/RadioGroupDefaultInput.vue.d.ts.map +1 -1
  113. package/dist/elements/radio-group/RadioGroupInspector.vue.d.ts.map +1 -1
  114. package/dist/elements/radio-group/index.d.ts.map +1 -1
  115. package/dist/elements/registry.d.ts +109 -0
  116. package/dist/elements/registry.d.ts.map +1 -1
  117. package/dist/elements/repeat/RepeatInspector.vue.d.ts +8 -0
  118. package/dist/elements/repeat/RepeatInspector.vue.d.ts.map +1 -0
  119. package/dist/elements/repeat/RepeatRenderer.vue.d.ts +29 -0
  120. package/dist/elements/repeat/RepeatRenderer.vue.d.ts.map +1 -0
  121. package/dist/elements/repeat/index.d.ts +10 -0
  122. package/dist/elements/repeat/index.d.ts.map +1 -0
  123. package/dist/elements/section/SectionInspector.vue.d.ts.map +1 -1
  124. package/dist/elements/select/SelectDefaultInput.vue.d.ts.map +1 -1
  125. package/dist/elements/select/SelectInspector.vue.d.ts.map +1 -1
  126. package/dist/elements/select/index.d.ts.map +1 -1
  127. package/dist/elements/spacer/SpacerInspector.vue.d.ts.map +1 -1
  128. package/dist/elements/stack/StackRenderer.vue.d.ts.map +1 -1
  129. package/dist/elements/stack/index.d.ts.map +1 -1
  130. package/dist/elements/switch/SwitchDefaultInput.vue.d.ts.map +1 -1
  131. package/dist/elements/switch/SwitchInspector.vue.d.ts.map +1 -1
  132. package/dist/elements/switch/index.d.ts.map +1 -1
  133. package/dist/elements/text-input/TextInputInspector.vue.d.ts.map +1 -1
  134. package/dist/elements/text-input/index.d.ts.map +1 -1
  135. package/dist/elements/usePageElement.d.ts +6 -2
  136. package/dist/elements/usePageElement.d.ts.map +1 -1
  137. package/dist/elements/visual-markup/VisualMarkupInspector.vue.d.ts +10 -0
  138. package/dist/elements/visual-markup/VisualMarkupInspector.vue.d.ts.map +1 -0
  139. package/dist/elements/visual-markup/VisualMarkupPreview.vue.d.ts +7 -0
  140. package/dist/elements/visual-markup/VisualMarkupPreview.vue.d.ts.map +1 -0
  141. package/dist/elements/visual-markup/VisualMarkupRenderer.vue.d.ts +7 -0
  142. package/dist/elements/visual-markup/VisualMarkupRenderer.vue.d.ts.map +1 -0
  143. package/dist/elements/visual-markup/index.d.ts +6 -0
  144. package/dist/elements/visual-markup/index.d.ts.map +1 -0
  145. package/dist/elements/visual-markup/visualDocument.d.ts +13 -0
  146. package/dist/elements/visual-markup/visualDocument.d.ts.map +1 -0
  147. package/dist/expressionAuthoring-DHVx3i-G.js +74 -0
  148. package/dist/index.css +1 -1
  149. package/dist/index.d.ts +22 -2
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +9306 -3676
  152. package/dist/pageCode-hhTSp3xO.js +447 -0
  153. package/dist/pageCode.d.ts +93 -0
  154. package/dist/pageCode.d.ts.map +1 -0
  155. package/dist/pageCodeAuthoring-Fg3yqXt3.js +126 -0
  156. package/dist/presets/authCustomization.d.ts +33 -0
  157. package/dist/presets/authCustomization.d.ts.map +1 -0
  158. package/dist/responsive.d.ts +7 -0
  159. package/dist/responsive.d.ts.map +1 -0
  160. package/dist/runtime/PageRuntimeHost.d.ts +57 -0
  161. package/dist/runtime/PageRuntimeHost.d.ts.map +1 -0
  162. package/dist/runtime/PageScriptRuntime.d.ts +62 -0
  163. package/dist/runtime/PageScriptRuntime.d.ts.map +1 -0
  164. package/dist/runtime/pageScriptRuntime.worker.d.ts +1 -0
  165. package/dist/runtime/pageScriptRuntime.worker.d.ts.map +1 -0
  166. package/dist/runtime/runtimeProtocol.d.ts +150 -0
  167. package/dist/runtime/runtimeProtocol.d.ts.map +1 -0
  168. package/dist/runtime/usePageCodeRuntime.d.ts +33 -0
  169. package/dist/runtime/usePageCodeRuntime.d.ts.map +1 -0
  170. package/dist/runtime-worker.js +240 -0
  171. package/dist/runtimeBindings.d.ts +33 -0
  172. package/dist/runtimeBindings.d.ts.map +1 -0
  173. package/dist/runtimeExpressions.d.ts +16 -0
  174. package/dist/runtimeExpressions.d.ts.map +1 -0
  175. package/dist/runtimeProtocol-Bg1C-O0c.js +36 -0
  176. package/dist/runtimeWorkerEntry.d.ts +2 -0
  177. package/dist/runtimeWorkerEntry.d.ts.map +1 -0
  178. package/dist/schema.d.ts +301 -25
  179. package/dist/schema.d.ts.map +1 -1
  180. package/dist/styleMapping.d.ts +4 -0
  181. package/dist/styleMapping.d.ts.map +1 -1
  182. package/dist/stylePresets.d.ts +4 -0
  183. package/dist/stylePresets.d.ts.map +1 -0
  184. package/dist/translations.d.ts +8 -0
  185. package/dist/translations.d.ts.map +1 -0
  186. package/dist/visualDocument-DPb3svLG.js +139 -0
  187. package/package.json +24 -6
  188. package/dist/elements/stack/StackInspector.vue.d.ts.map +0 -1
@@ -1,4 +1,12 @@
1
- import { PageNode, PageConfig } from './schema';
1
+ import { CoarTheme, CoarThemeMode } from '@cocoar/vue-ui';
2
+ import { PageNode, PageConfig, RuntimeExpressionValues, PageCompositionReference } from './schema';
3
+ import { CoarScriptEditorExtraLib } from '@cocoar/vue-script-editor';
4
+ import { PageCodeRuntimeValues } from './pageCode';
5
+ import { PageRuntimeHost } from './runtime/PageRuntimeHost';
6
+ import { PageBuilderAuthoringMode } from './builder/builderContext';
7
+ import { ActionHandler, ActionValues } from './context';
8
+ import { PageCompositionRepository } from './compositions';
9
+ import { PageCompositionManagement } from './builder/usePageCompositions';
2
10
  type __VLS_Props = {
3
11
  /**
4
12
  * Security/allowlist config. The SAME config must also be passed to
@@ -6,16 +14,67 @@ type __VLS_Props = {
6
14
  * authoring (palette + add-child menu) and at render time (security boundary).
7
15
  */
8
16
  config?: PageConfig;
17
+ /** Safe fixture context used only by the embedded preview; never persisted. */
18
+ previewContext?: Record<string, unknown>;
19
+ previewState?: string;
20
+ previewLocale?: string;
21
+ /** Host-owned theme applied only to the embedded renderer canvas. */
22
+ previewTheme?: CoarTheme;
23
+ /** Preview colour mode. `auto` follows the surrounding application/OS mode. */
24
+ previewThemeMode?: CoarThemeMode;
25
+ previewActions?: Record<string, ActionHandler>;
26
+ previewFallbackSchema?: PageNode;
27
+ /** Sandbox results used by the embedded preview; source code is never evaluated by the builder itself. */
28
+ previewExpressionValues?: RuntimeExpressionValues;
29
+ /** Code-driven mode keeps the inspector structural and makes Page Code authoritative. */
30
+ authoringMode?: PageBuilderAuthoringMode;
31
+ /** @deprecated The Builder now owns its fixture-bound preview runtime. */
32
+ previewPageCodeValues?: PageCodeRuntimeValues;
33
+ /** @deprecated Used only as a fallback for actions unknown to the Builder runtime. */
34
+ previewOnAction?: (id: string, values: ActionValues) => void | Promise<unknown>;
35
+ /** Application-owned capability host reused by the Builder's isolated preview session. */
36
+ previewRuntimeHost?: PageRuntimeHost;
37
+ previewRuntimePageId?: string;
38
+ previewRuntimeTenantId?: string;
39
+ /** Host capability declarations merged into Monaco IntelliSense. */
40
+ pageCodeExtraLibs?: CoarScriptEditorExtraLib[];
41
+ /** Optional host-owned persistence boundary for reusable, versioned subtrees. */
42
+ compositionRepository?: PageCompositionRepository;
43
+ /** `consume` keeps definition creation/publication in a separate host-owned editor. */
44
+ compositionManagement?: PageCompositionManagement;
9
45
  };
10
46
  type __VLS_PublicProps = {
11
47
  modelValue?: PageNode;
12
48
  } & __VLS_Props;
13
49
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
50
  "update:modelValue": (value: PageNode) => any;
51
+ "preview-values": (values: ActionValues) => any;
52
+ "preview-runtime": (scope: {
53
+ fields: ActionValues;
54
+ form: {
55
+ valid: boolean;
56
+ dirty: boolean;
57
+ validating: boolean;
58
+ submitting: boolean;
59
+ };
60
+ }) => any;
61
+ "open-composition": (reference: PageCompositionReference) => any;
15
62
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
63
  "onUpdate:modelValue"?: ((value: PageNode) => any) | undefined;
64
+ "onPreview-values"?: ((values: ActionValues) => any) | undefined;
65
+ "onPreview-runtime"?: ((scope: {
66
+ fields: ActionValues;
67
+ form: {
68
+ valid: boolean;
69
+ dirty: boolean;
70
+ validating: boolean;
71
+ submitting: boolean;
72
+ };
73
+ }) => any) | undefined;
74
+ "onOpen-composition"?: ((reference: PageCompositionReference) => any) | undefined;
17
75
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
76
  rootRef: HTMLDivElement;
77
+ inspectorRef: HTMLElement;
19
78
  }, HTMLDivElement>;
20
79
  export default _default;
21
80
  //# sourceMappingURL=CoarPageBuilder.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CoarPageBuilder.vue.d.ts","sourceRoot":"","sources":["../src/CoarPageBuilder.vue"],"names":[],"mappings":"AA8yBA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAqBrD,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB,CAAC;AAyPF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,QAAQ,CAAC;CACrB,GAAG,WAAW,CAAC;;;;;;;;AA4hBhB,wBASG"}
1
+ {"version":3,"file":"CoarPageBuilder.vue.d.ts","sourceRoot":"","sources":["../src/CoarPageBuilder.vue"],"names":[],"mappings":"AAuwCA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAsE,KAAK,QAAQ,EAAqB,KAAK,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAC9M,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAQjE,OAAO,EAYL,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAC;AAQlC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAyBpG,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qEAAqE;IACrE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,aAAa,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAC9C,qBAAqB,CAAC,EAAE,QAAQ,CAAA;IAChC,0GAA0G;IAC1G,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;IACjD,yFAAyF;IACzF,aAAa,CAAC,EAAE,wBAAwB,CAAA;IACxC,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C,sFAAsF;IACtF,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/E,0FAA0F;IAC1F,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC9C,iFAAiF;IACjF,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;IACjD,uFAAuF;IACvF,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;CAClD,CAAC;AAkfF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,QAAQ,CAAC;CACrB,GAAG,WAAW,CAAC;;;;;gBA/hBJ,YAAY;cACd;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE;;;;;;;gBAD1E,YAAY;cACd;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE;;;;;;;AAi5CtF,wBASG"}
@@ -1,8 +1,11 @@
1
- import { PageNode, PageConfig } from './schema';
1
+ import { PageNode, PageConfig, RuntimeExpressionValues } from './schema';
2
2
  import { ActionHandler, ActionValues, CustomValidator } from './context';
3
+ import { PageCodeRuntimeValues } from './pageCode';
3
4
  type __VLS_Props = {
4
5
  schema: PageNode;
5
6
  actions?: Record<string, ActionHandler>;
7
+ /** Optional dynamic action dispatcher (for Page Code action ids). */
8
+ onAction?: (id: string, values: ActionValues) => void | Promise<unknown>;
6
9
  /**
7
10
  * Developer-only: async or complex cross-field validation that cannot be
8
11
  * expressed declaratively. Returns fieldName → error message.
@@ -24,6 +27,20 @@ type __VLS_Props = {
24
27
  * schema change.
25
28
  */
26
29
  initialValues?: ActionValues;
30
+ /** Deterministic container width override, primarily for builder previews and tests. */
31
+ viewportWidth?: number;
32
+ /** Host-owned, typed runtime data. Only paths declared in config.contextFields are readable. */
33
+ runtimeContext?: Record<string, unknown>;
34
+ /** Host-controlled view state (for example `prompt`, `submitting`, `expired`). */
35
+ viewState?: string;
36
+ /** Active locale used to resolve LocalizedValue props. */
37
+ locale?: string;
38
+ /** Host-owned built-in document used when the customized document violates its contract. */
39
+ fallbackSchema?: PageNode;
40
+ /** Data-only results produced by a host-owned sandbox runtime. */
41
+ expressionValues?: RuntimeExpressionValues;
42
+ /** One atomic, data-only Page Code result produced by the host sandbox. */
43
+ pageCodeValues?: PageCodeRuntimeValues;
27
44
  };
28
45
  declare function __VLS_template(): {
29
46
  attrs: Partial<{}>;
@@ -45,12 +62,32 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
45
62
  isDirty: import('vue').ComputedRef<boolean>;
46
63
  /** Quiet validation state — true when every declarative rule passes. */
47
64
  isFormValid: import('vue').ComputedRef<boolean>;
65
+ /** True while an invalid customization is replaced by fallbackSchema. */
66
+ usingFallback: import('vue').ComputedRef<boolean>;
48
67
  /** Back to the initial state: schema defaults + initialValues; touched/errors/banner cleared. */
49
68
  reset: () => void;
50
69
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
70
  "update:values": (values: ActionValues) => any;
71
+ "runtime-change": (scope: {
72
+ fields: ActionValues;
73
+ form: {
74
+ valid: boolean;
75
+ dirty: boolean;
76
+ validating: boolean;
77
+ submitting: boolean;
78
+ };
79
+ }) => any;
52
80
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
53
81
  "onUpdate:values"?: ((values: ActionValues) => any) | undefined;
82
+ "onRuntime-change"?: ((scope: {
83
+ fields: ActionValues;
84
+ form: {
85
+ valid: boolean;
86
+ dirty: boolean;
87
+ validating: boolean;
88
+ submitting: boolean;
89
+ };
90
+ }) => any) | undefined;
54
91
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
55
92
  rootEl: HTMLDivElement;
56
93
  }, HTMLDivElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"CoarPageRenderer.vue.d.ts","sourceRoot":"","sources":["../src/CoarPageRenderer.vue"],"names":[],"mappings":"AAuqBA,OAAO,KAAK,EAA2B,QAAQ,EAAE,UAAU,EAAgB,MAAM,UAAU,CAAC;AAS5F,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EAErB,MAAM,WAAW,CAAC;AAKnB,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,QAAQ,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,YAAY,CAAA;CAC7B,CAAC;AAumBF,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;;;YAXhB,GAAG;;;;;;EAgBpC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IA1GnB,yFAAyF;;IAEzF,0DAA0D;;IAE1D,wEAAwE;;IAExE,iGAAiG;;;;;;;;kBA8GjG,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CoarPageRenderer.vue.d.ts","sourceRoot":"","sources":["../src/CoarPageRenderer.vue"],"names":[],"mappings":"AA+0BA,OAAO,KAAK,EAA2B,QAAQ,EAAE,UAAU,EAA4B,uBAAuB,EAAE,MAAM,UAAU,CAAC;AASjI,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EAErB,MAAM,WAAW,CAAC;AAQnB,OAAO,EAAuB,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAG7E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,QAAQ,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACvC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACxE;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,YAAY,CAAA;IAC5B,wFAAwF;IACxF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gGAAgG;IAChG,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4FAA4F;IAC5F,cAAc,CAAC,EAAE,QAAQ,CAAA;IACzB,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IAC1C,2EAA2E;IAC3E,cAAc,CAAC,EAAE,qBAAqB,CAAA;CACvC,CAAC;AAyvBF,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;;;YAXhB,GAAG;;;;;;EAgBpC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IA/GnB,yFAAyF;;IAEzF,0DAA0D;;IAE1D,wEAAwE;;IAExE,yEAAyE;;IAEzE,iGAAiG;;;;;gBA3tBvF,YAAY;cACd;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE;;;;;gBAD1E,YAAY;cACd;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE;;;;kBA20BpF,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,16 @@
1
- import { PageNode } from './schema';
1
+ import { PageNode, RepeatSelection } from './schema';
2
2
  declare const _default: import('vue').DefineComponent<{
3
3
  node: PageNode;
4
+ item?: unknown;
5
+ itemIndex?: number;
6
+ allowedItemPaths?: ReadonlySet<string>;
7
+ repeatSelection?: RepeatSelection;
4
8
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
9
  node: PageNode;
10
+ item?: unknown;
11
+ itemIndex?: number;
12
+ allowedItemPaths?: ReadonlySet<string>;
13
+ repeatSelection?: RepeatSelection;
6
14
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
15
  export default _default;
8
16
  //# sourceMappingURL=PageNode.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageNode.vue.d.ts","sourceRoot":"","sources":["../src/PageNode.vue"],"names":[],"mappings":"AAiJA,OAAO,EAAsC,KAAK,QAAQ,EAAkB,MAAM,UAAU,CAAC;;UAsBlE,QAAQ;;UAAR,QAAQ;;AAHnC,wBAiMK"}
1
+ {"version":3,"file":"PageNode.vue.d.ts","sourceRoot":"","sources":["../src/PageNode.vue"],"names":[],"mappings":"AA8MA,OAAO,EAAsC,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAkB,MAAM,UAAU,CAAC;;UA0B3G,QAAQ;WACP,OAAO;gBACF,MAAM;uBACC,WAAW,CAAC,MAAM,CAAC;sBACpB,eAAe;;UAJ3B,QAAQ;WACP,OAAO;gBACF,MAAM;uBACC,WAAW,CAAC,MAAM,CAAC;sBACpB,eAAe;;AARnC,wBA+PK"}
@@ -0,0 +1,54 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-BTgDAbhb.js";
2
+ import { a as t } from "./builderContext-5hKJ8y8r.js";
3
+ import { t as n } from "./visualDocument-DPb3svLG.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, inject as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
5
+ import { CoarFormField as _, CoarNotice as v } from "@cocoar/vue-ui";
6
+ import { CoarScriptEditor as y } from "@cocoar/vue-script-editor";
7
+ //#region src/elements/visual-markup/VisualMarkupInspector.vue?vue&type=script&setup=true&lang.ts
8
+ var b = { class: "pb-visual-errors" }, x = /* @__PURE__ */ e(/* @__PURE__ */ u({
9
+ __name: "VisualMarkupInspector",
10
+ props: {
11
+ node: {},
12
+ patch: { type: Function }
13
+ },
14
+ setup(e) {
15
+ let u = e, x = d(t), S = i(() => n(u.node.props.html ?? "", u.node.props.css ?? "", x?.value?.visualMarkup));
16
+ return (t, n) => (f(), s(r, null, [
17
+ S.value.ok ? o("", !0) : (f(), a(h(v), {
18
+ key: 0,
19
+ variant: "error"
20
+ }, {
21
+ default: g(() => [c("ul", b, [(f(!0), s(r, null, p(S.value.errors, (e) => (f(), s("li", { key: e }, m(e), 1))), 128))])]),
22
+ _: 1
23
+ })),
24
+ l(h(_), {
25
+ label: "Decorative HTML / inline SVG",
26
+ hint: "Scripts, links, forms, event handlers and external resources are rejected."
27
+ }, {
28
+ default: g(() => [l(h(y), {
29
+ language: "html",
30
+ "model-value": e.node.props.html ?? "",
31
+ height: "240px",
32
+ minimap: !1,
33
+ "onUpdate:modelValue": n[0] ||= (t) => e.patch({ props: { html: t } })
34
+ }, null, 8, ["model-value"])]),
35
+ _: 1
36
+ }),
37
+ l(h(_), {
38
+ label: "Iframe-local CSS",
39
+ hint: "Supports keyframes, media queries, custom properties and reduced motion."
40
+ }, {
41
+ default: g(() => [l(h(y), {
42
+ language: "css",
43
+ "model-value": e.node.props.css ?? "",
44
+ height: "240px",
45
+ minimap: !1,
46
+ "onUpdate:modelValue": n[1] ||= (t) => e.patch({ props: { css: t } })
47
+ }, null, 8, ["model-value"])]),
48
+ _: 1
49
+ })
50
+ ], 64));
51
+ }
52
+ }), [["__scopeId", "data-v-7e11a49f"]]);
53
+ //#endregion
54
+ export { x as default };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,21 @@
1
+ import { ActionValues } from './context';
2
+ import { ActionProps } from './schema';
3
+ /** True when a value can cross the persisted Page JSON boundary without coercion. */
4
+ export declare function isJsonSafeActionValue(value: unknown, depth?: number, ancestors?: Set<object>): boolean;
5
+ export declare function isSafeActionValueField(field: unknown): field is string;
6
+ /** Keys addressable through the flat `actionValues.<key>` binding target. */
7
+ export declare function isBindableActionValueField(field: unknown): field is string;
8
+ export declare function isJsonSafeActionValues(value: unknown): value is Record<string, unknown>;
9
+ /**
10
+ * Resolves the optional per-element action arguments. The single dynamic
11
+ * value is deliberately applied last, so it can override a static entry with
12
+ * the same key. Invalid/non-JSON runtime values never reach the host handler.
13
+ */
14
+ export declare function actionValuesFromProps(props: ActionProps): ActionValues;
15
+ /**
16
+ * Final handler payload. Explicit per-action values win collisions with form
17
+ * fields because they are the trigger-specific arguments authored for this
18
+ * exact action. The returned object is a new top-level payload snapshot.
19
+ */
20
+ export declare function mergeActionValues(formValues: ActionValues, actionValues?: ActionValues): ActionValues;
21
+ //# sourceMappingURL=actionValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionValues.d.ts","sourceRoot":"","sources":["../src/actionValues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAW3C,qFAAqF;AACrF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,KAAK,SAAI,EACT,SAAS,cAAoB,GAC5B,OAAO,CAcT;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEtE;AAED,6EAA6E;AAC7E,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE1E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvF;AAYD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAatE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,YAAY,CAErG"}
@@ -0,0 +1,25 @@
1
+ (function(){let e=globalThis,{Array:t,ArrayBuffer:n,Date:r,FinalizationRegistry:i,Float64Array:a,DataView:o,JSON:s,Map:c,Math:l,Number:u,BigInt:d,Object:f,Promise:p,Proxy:m,Reflect:h,RegExp:g,Set:ee,String:_,Symbol:v,Uint8Array:te,WeakMap:y,WeakSet:b,Temporal:ne}=globalThis,{Error:x,RangeError:S,ReferenceError:C,SyntaxError:re,TypeError:w,AggregateError:ie}=globalThis,{assign:ae,create:T,defineProperties:E,entries:D,getOwnPropertyDescriptor:O,getOwnPropertyDescriptors:k,getOwnPropertyNames:oe,getPrototypeOf:A,is:se,isFrozen:ce,isSealed:le,isExtensible:ue,keys:de,prototype:fe,seal:pe,preventExtensions:me,setPrototypeOf:he,values:ge,fromEntries:_e}=f,j=f.freeze,{species:ve,toStringTag:ye,iterator:be,matchAll:xe,replace:Se,search:Ce,unscopables:we,keyFor:Te,for:Ee}=v,{max:De,min:Oe,trunc:ke}=l,{MAX_SAFE_INTEGER:Ae,isInteger:je}=u,{stringify:Me}=s,{defineProperty:Ne}=f,M=(e,t,n)=>{let r=Ne(e,t,n);if(r!==e)throw w(`Please report that the original defineProperty silently failed to set ${Me(_(t))}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`);return r},{apply:N,construct:Pe,get:Fe,getOwnPropertyDescriptor:Ie,has:Le,isExtensible:Re,ownKeys:ze,preventExtensions:Be,set:Ve}=h,{isArray:He,prototype:P}=t,{prototype:Ue}=n,{prototype:We}=o,{prototype:Ge}=c,{revocable:Ke}=m,{prototype:qe}=RegExp,{prototype:Je}=ee,{prototype:Ye}=_,{prototype:Xe}=y,{prototype:Ze}=b,{prototype:Qe}=Function,{prototype:$e}=p,{prototype:et}=A(function*(){}),tt=A(A(P.values())),nt=A(te.prototype),{bind:rt}=Qe,F=rt.bind(rt.call);if(!(`hasOwn`in f)){let e=fe.hasOwnProperty;M(f,`hasOwn`,{value:(t,n)=>{if(t==null)throw w(`Cannot convert undefined or null to object`);return N(e,t,[n])},writable:!0,enumerable:!1,configurable:!0})}let{hasOwn:I}=f,it=F(P.filter),at=F(P.forEach),ot=F(P.includes),st=F(P.join),L=F(P.map),ct=F(P.flatMap),lt=F(P.pop),R=F(P.push),ut=F(P.slice),dt=F(P.some),ft=F(P.sort),pt=F(P[be]),mt=F(Ue.slice),ht=F(O(Ue,`byteLength`).get),gt=F(nt.set),z=F(Ge.set),_t=F(Ge.get),vt=F(Ge.has),yt=F(Ge.delete),bt=F(Ge.entries),xt=F(Ge[be]),St=F(Je.add);F(Je.delete);let Ct=F(Je.forEach),wt=F(Je.has),Tt=F(Je[be]),Et=F(qe.exec),Dt=F(qe[Se]),Ot=F(qe[Ce]),kt=F(qe[xe]),At=k(qe);at(ze(At),e=>{let t=At[e];t.configurable=!1,t.writable&&=!1}),M(At,`constructor`,{value:void 0,enumerable:!1,configurable:!1,writable:!1});let jt=e=>pe(E(e,At)),B=e=>j(E(e,At)),Mt=F(Ye.endsWith),Nt=F(Ye.includes),Pt=F(Ye.indexOf);F(Ye.match),F(Ye.search);let Ft=F(Ye.slice),It=F(Ye.split),Lt=F(Ye.startsWith),Rt=F(Ye[be]),zt=F(Xe.delete),V=F(Xe.get),Bt=F(Xe.has),H=F(Xe.set),Vt=F(Ze.add),Ht=F(Ze.has),Ut=F(Qe.toString),Wt=F(rt),Gt=F(et.next),Kt=F(et.throw),{all:qt}=p;F($e.catch);let Jt=F($e.then),Yt=i&&F(i.prototype.register);i&&F(i.prototype.unregister);let Xt=e=>!e||typeof e!=`object`&&typeof e!=`function`,Zt=e=>e instanceof x,Qt=e=>e,$t=eval,U=Function,en=()=>{throw w(`Cannot eval with evalTaming set to "no-eval" (SES_NO_EVAL)`)},tn=()=>{try{throw null.null,w(`obligatory`)}catch(e){return e}},nn=O(Error(`obligatory`),`stack`),rn=O(tn(),`stack`),an,on;if(rn&&rn.get)if(nn&&typeof rn.get==`function`&&rn.get===nn.get&&typeof rn.set==`function`&&rn.set===nn.set)an=j(rn.get),on=j(rn.set);else throw w(`Unexpected Error own stack accessor functions (SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR)`);let sn=an,cn=on,ln=(()=>{try{return new U(`return (async function* AsyncGeneratorFunctionInstance() {})`)()}catch(e){let t=e;if(t.name===`SyntaxError`)return;if(t.name===`EvalError`)return async function*(){};throw t}})();function un(){return this}if(un())throw w(`SES failed to initialize, sloppy mode (SES_NO_SLOPPY)`);let dn=globalThis,{Object:fn,Reflect:pn,Array:mn,String:hn,JSON:gn,Error:_n}=dn,{freeze:vn}=fn,{apply:yn}=pn,bn=e=>(t,...n)=>yn(e,t,n),xn=bn(mn.prototype.push),Sn=bn(mn.prototype.includes),Cn=bn(hn.prototype.split),wn=gn.stringify,Tn=(e,...t)=>{let n=e[0];for(let r=0;r<t.length;r+=1)n=`${n}${t[r]}${e[r+1]}`;throw _n(n)},En=(e,t=!1)=>{let n=[],r=(r,i,a=void 0)=>{typeof r==`string`||Tn`Environment option name ${wn(r)} must be a string.`,typeof i==`string`||Tn`Environment option default setting ${wn(i)} must be a string.`;let o=i,s=e.process||void 0,c=typeof s==`object`&&s.env||void 0;if(typeof c==`object`&&r in c){t||xn(n,r);let e=c[r];typeof e==`string`||Tn`Environment option named ${wn(r)}, if present, must have a corresponding string value, got ${wn(e)}`,o=e}return a===void 0||o===i||Sn(a,o)||Tn`Unrecognized ${wn(r)} value ${wn(o)}. Expected one of ${wn([i,...a])}`,o};vn(r);let i=e=>{let t=r(e,``);return vn(t===``?[]:Cn(t,`,`))};vn(i);let a=(e,t)=>Sn(i(e),t),o=()=>vn([...n]);return vn(o),vn({getEnvironmentOption:r,getEnvironmentOptionsList:i,environmentOptionsListHas:a,getCapturedEnvironmentOptionNames:o})};vn(En);let{getEnvironmentOption:W,getEnvironmentOptionsList:Dn,environmentOptionsListHas:On}=En(dn,!0),{ArrayBuffer:kn,Object:An,Reflect:jn,Symbol:Mn,TypeError:Nn,Uint8Array:Pn,WeakMap:Fn,structuredClone:In}=globalThis,{freeze:Ln,defineProperty:Rn,getPrototypeOf:zn,getOwnPropertyDescriptor:Bn}=An,{apply:Vn,ownKeys:Hn}=jn,{toStringTag:Un}=Mn,{prototype:Wn}=kn,{slice:Gn,transfer:Kn}=Wn,{get:qn}=Bn(Wn,`byteLength`),Jn=zn(Pn.prototype),{set:Yn}=Jn,{get:Xn}=Bn(Jn,`buffer`),Zn=(e,t=void 0,n=void 0)=>Vn(Gn,e,[t,n]),Qn;Qn=Kn?e=>Vn(Kn,e,[]):In?e=>(Zn(e,0,0),In(e,{transfer:[e]})):void 0;let $n=new Fn;for(let e of[`get`,`has`,`set`])Rn($n,e,{value:$n[e]});let er=e=>{let t=$n.get(e);if(t)return t;throw Nn(`Not an emulated Immutable ArrayBuffer`)},tr={__proto__:Wn,get byteLength(){return Vn(qn,er(this),[])},get detached(){return er(this),!1},get maxByteLength(){return Vn(qn,er(this),[])},get resizable(){return er(this),!1},get immutable(){return er(this),!0},slice(e=void 0,t=void 0){return Zn(er(this),e,t)},sliceToImmutable(e=void 0,t=void 0){return ir(er(this),e,t)},resize(e=void 0){throw er(this),Nn(`Cannot resize an immutable ArrayBuffer`)},transfer(e=void 0){throw er(this),Nn(`Cannot detach an immutable ArrayBuffer`)},transferToFixedLength(e=void 0){throw er(this),Nn(`Cannot detach an immutable ArrayBuffer`)},transferToImmutable(e=void 0){throw er(this),Nn(`Cannot detach an immutable ArrayBuffer`)},[Un]:`ImmutableArrayBuffer`};for(let e of Hn(tr))Rn(tr,e,{enumerable:!1});let nr=e=>{let t={__proto__:tr};return $n.set(t,e),t};Ln(nr);let rr=e=>$n.has(e),ir=(e,t=void 0,n=void 0)=>{let r=$n.get(e);return r===void 0&&(r=e),nr(Zn(r,t,n))},ar;ar=Qn?(e,t=void 0)=>{if(t===void 0)e=Qn(e);else if(Kn)e=Vn(Kn,e,[t]);else if(e=Qn(e),t<=e.byteLength)e=Zn(e,0,t);else{let n=new Pn(e),r=new Pn(t);Vn(Yn,r,[n]),e=Vn(Xn,r,[])}return nr(e)}:void 0;let or=ar,{ArrayBuffer:sr,JSON:cr,Object:lr,Reflect:ur}=globalThis,dr=or,{getOwnPropertyDescriptors:fr,defineProperties:pr,defineProperty:mr}=lr,{ownKeys:hr}=ur,{prototype:gr}=sr,{stringify:_r}=cr,vr={sliceToImmutable(e=void 0,t=void 0){return ir(this,e,t)},get immutable(){return rr(this)},...dr?{transferToImmutable(e=void 0){return dr(this,e)}}:{}};for(let e of hr(vr))mr(vr,e,{enumerable:!1});let yr=hr(vr).filter(e=>e in gr);yr.length>0&&console.warn(`About to overwrite ArrayBuffer.prototype properties ${_r(yr)}`),pr(gr,fr(vr));let br=e=>(e=`${e}`,e.length>=1&&Nt(`aeiouAEIOU`,e[0])?`an ${e}`:`a ${e}`);j(br);let xr=(e,t=void 0)=>{let n=new ee,r=(e,t)=>{switch(typeof t){case`object`:{if(t===null)return null;if(wt(n,t))return`[Seen]`;if(St(n,t),Zt(t))return`[${t.name}: ${t.message}]`;if(ye in t)return`[${t[ye]}]`;if(He(t))return t;let e=de(t);if(e.length<2)return t;let r=!0;for(let t=1;t<e.length;t+=1)if(e[t-1]>=e[t]){r=!1;break}return r?t:(ft(e),_e(L(e,e=>[e,t[e]])))}case`function`:return`[Function ${t.name||`<anon>`}]`;case`string`:return Lt(t,`[`)?`[${t}]`:t;case`undefined`:case`symbol`:return`[${_(t)}]`;case`bigint`:return`[${t}n]`;case`number`:return se(t,NaN)?`[NaN]`:t===1/0?`[Infinity]`:t===-1/0?`[-Infinity]`:t;default:return t}};try{return Me(e,r,t)}catch{return`[Something that failed to stringify]`}};j(xr);let{Error:Sr,TypeError:Cr,WeakMap:wr}=globalThis,{parse:Tr,stringify:Er}=JSON,{isSafeInteger:Dr}=Number,{freeze:Or}=Object,{toStringTag:kr}=Symbol,Ar=Symbol(`UNKNOWN_KEY`),jr=(e,t)=>Tr(Er(e),t),Mr=(e,t)=>Or(t),Nr=e=>jr(e,Mr),Pr=(e,t,n)=>{let r=e?.next,i={id:t,next:r,prev:e,data:n};return e.next=i,r.prev=i,i},Fr=(e,t,n=t.next)=>{if(e===t||e===n)return;let{prev:r,next:i}=e;r.next=i,i.prev=r,e.prev=t,e.next=n,t.next=e,n.prev=e},Ir=(e,t,n)=>{if(t!==Ar){e.data.delete(t);return}if(e.data.clear){e.data.clear();return}if(!n)throw Sr(`internal: makeMap is required with UNKNOWN_KEY`);e.data=n()},Lr=Or({totalQueryCount:0,totalHitCount:0}),Rr=(e,t={})=>{if(!Dr(e)||e<0)throw Cr(`capacity must be a non-negative safe integer number <= 2**53 - 1`);let n=(e=>{try{return e(),e}catch{return()=>new e}})(t.makeMap??wr),r=n().clear===void 0?`WeakCacheMap`:`CacheMap`,i=n(),a={id:0,next:void 0,prev:void 0,data:{has:()=>{throw Sr(`internal: sentinel head cell has no data`)}}};a.next=a,a.prev=a;let o=0,s=jr(Lr),c=()=>Nr(s),l=e=>{s.totalQueryCount+=1;let t=i.get(e);if(t?.data.has(e))return s.totalHitCount+=1,Fr(t,a),t},u=e=>l(e)!==void 0;Or(u);let d=e=>l(e)?.data.get(e);Or(d);let f=(t,r)=>{let s=l(t);return s?(s.data.set(t,r),m):(o<e?(s=Pr(a,o+1,n()),o+=1,s.data.set(t,r)):e>0&&(s=a.prev,Ir(s,Ar,n),s.data.set(t,r),Fr(s,a)),s&&i.set(t,s),m)};Or(f);let{delete:p}={delete:e=>{let t=i.get(e);return t?.data.has(e)?(Fr(t,a.prev),Ir(t,e),i.delete(e),!0):(i.delete(e),!1)}};Or(p);let m={has:u,get:d,set:f,delete:p,[kr]:r};return Or(m),Or({cache:m,getMetrics:c})};Or(Rr);let{freeze:zr}=Object,{isSafeInteger:Br}=Number,Vr=(e=1e3,t=100)=>{if(!Br(t)||t<1)throw TypeError(`argsPerErrorBudget must be a safe positive integer number`);let{cache:n}=Rr(e),r=(e,r)=>{let i=n.get(e);i===void 0?n.set(e,[r]):(i.length>=t&&i.shift(),i.push(r))};zr(r);let i=e=>{let t=n.get(e);return n.delete(e),t};return zr(i),zr({addLogArgs:r,takeLogArgsArray:i})};zr(Vr);let Hr=new y,G=(e,t=void 0)=>{let n=j({toString:j(()=>xr(e,t))});return H(Hr,n,e),n};j(G);let Ur=B(/^[\w:-]( ?[\w:-])*$/),Wr=(e,t=void 0)=>{if(typeof e!=`string`||Ot(Ur,e)===-1)return G(e,t);let n=j({toString:j(()=>e)});return H(Hr,n,e),n};j(Wr);let Gr=new y,Kr=({template:e,args:t})=>{let n=[e[0]];for(let r=0;r<t.length;r+=1){let i=t[r],a;a=Bt(Hr,i)?`${i}`:Zt(i)?`(${br(i.name)})`:`(${br(typeof i)})`,R(n,a,e[r+1])}return st(n,``)},qr=j({toString(){let e=V(Gr,this);return e===void 0?`[Not a DetailsToken]`:Kr(e)}});j(qr.toString);let K=(e,...t)=>{let n=j({__proto__:qr});return H(Gr,n,{template:e,args:t}),n};j(K);let Jr=(e,...t)=>(t=L(t,e=>Bt(Hr,e)?e:G(e)),K(e,...t));j(Jr);let Yr=({template:e,args:t})=>{let n=[e[0]];for(let r=0;r<t.length;r+=1){let i=t[r];Bt(Hr,i)&&(i=V(Hr,i));let a=lt(n)||``,o=Mt(a,` `)?Ft(a,0,-1):a;o!==``&&R(n,o);let s=e[r+1],c=Lt(s,` `)?Ft(s,1):s;R(n,i,c)}return n[n.length-1]===``&&lt(n),n},Xr=new y,Zr=0,Qr=new y,$r=(e,t=e.name)=>{let n=V(Qr,e);return n===void 0?(Zr+=1,n=`${t}#${Zr}`,H(Qr,e,n),n):n},ei=e=>{let t=k(e),{name:n,message:r,errors:i=void 0,cause:a=void 0,stack:o=void 0,...s}=t,c=ze(s);if(c.length>=1){for(let t of c)delete e[t];ai(e,K`originally with properties ${G(T(fe,s))}`)}for(let n of ze(e)){let r=t[n];if(r&&I(r,`get`)){let t=e[n];M(e,n,{value:t})}}j(e)},ti=(t=K`Assert failed`,n=e.Error,{errorName:r=void 0,cause:i=void 0,errors:a=void 0,sanitize:o=!0}={})=>{typeof t==`string`&&(t=K([t]));let s=V(Gr,t);if(s===void 0)throw w(`unrecognized details ${G(t)}`);let c=Kr(s),l=i&&{cause:i},u;return ie!==void 0&&n===ie?u=ie(a||[],c,l):(u=n(c,l),a!==void 0&&M(u,`errors`,{value:a,writable:!0,enumerable:!1,configurable:!0})),H(Xr,u,Yr(s)),r!==void 0&&$r(u,r),o&&ei(u),u};j(ti);let{addLogArgs:ni,takeLogArgsArray:ri}=Vr(),ii=new y,ai=(e,t)=>{typeof t==`string`&&(t=K([t]));let n=V(Gr,t);if(n===void 0)throw w(`unrecognized details ${G(t)}`);let r=Yr(n),i=V(ii,e);if(i!==void 0)for(let t of i)t(e,r);else ni(e,r)};j(ai);let oi={getStackString:e.getStackString||(e=>{if(!(`stack`in e))return``;let t=`${e.stack}`,n=Pt(t,`
2
+ `);return Lt(t,` `)||n===-1?t:Ft(t,n+1)}),tagError:e=>$r(e),resetErrorTagNum:()=>{Zr=0},getMessageLogArgs:e=>V(Xr,e),takeMessageLogArgs:e=>{let t=V(Xr,e);return zt(Xr,e),t},takeNoteLogArgsArray:(e,t)=>{let n=ri(e);if(t!==void 0){let n=V(ii,e);n?R(n,t):H(ii,e,[t])}return n||[]}};j(oi);let si=(e=void 0,t=!1)=>{let n=t?Jr:K,r=n`Check failed`,i=(t=r,n=void 0,i=void 0)=>{let a=ti(t,n,i);throw e!==void 0&&e(a),a};j(i);let a=(e,...t)=>i(n(e,...t)),o=(e,t=void 0,n=void 0,r=void 0)=>{e||i(t,n,r)},s=(e,t,r=void 0,a=void 0,o=void 0)=>{se(e,t)||i(r||n`Expected ${e} is same as ${t}`,a||S,o)};j(s);let c=(e,t,r)=>{typeof e!==t&&(typeof t==`string`||a`${G(t)} must be a string`,r===void 0&&(r=n`${e} must be ${Wr(br(t))}`),i(r,w))};j(c);let l={equal:s,typeof:c,string:(e,t=void 0)=>c(e,`string`,t),fail:i},u={makeError:ti,note:ai,details:n,Fail:a,quote:G,bare:Wr},d={error:ti,makeAssert:si};return j(ae(o,{...l,...u,...d}))};j(si);let q=si(),ci=q.equal,li=O(nt,ye);q(li);let ui=li.get;q(ui);let di=e=>N(ui,e,[])!==void 0,fi=e=>{let t=+_(e);return je(t)&&_(t)===e},pi=e=>{me(e),at(ze(e),t=>{let n=O(e,t);q(n),fi(t)||M(e,t,{...n,writable:!1,configurable:!1})})},mi=()=>{if(typeof e.harden==`function`)return e.harden;let t=new b,{harden:n}={harden(e){let n=new ee;function r(e){if(Xt(e))return;let r=typeof e;if(r!==`object`&&r!==`function`)throw w(`Unexpected typeof: ${r}`);Ht(t,e)||wt(n,e)||St(n,e)}let i=e=>{di(e)?pi(e):j(e);let t=k(e);r(A(e)),at(ze(t),e=>{let n=t[e];I(n,`value`)?r(n.value):(r(n.get),r(n.set))})},a=sn===void 0&&cn===void 0?i:e=>{if(Zt(e)){let t=O(e,`stack`);t&&t.get===sn&&t.configurable&&M(e,`stack`,{value:N(sn,e,[])})}return i(e)};return r(e),Ct(n,a),Ct(n,e=>{Vt(t,e)}),e}};return n},hi=(e,t,n,r,{warn:i,error:a})=>{n||i(`Removing ${r}`);try{delete e[t]}catch(n){let o=n;if(I(e,t)){if(typeof e==`function`&&t===`prototype`&&(e.prototype=void 0,e.prototype===void 0)){i(`Tolerating undeletable ${r} === undefined`);return}a(`failed to delete ${r}`,o)}else a(`deleting ${r} threw`,o);throw n}},gi={Infinity:1/0,NaN:NaN,undefined:void 0},_i={isFinite:`isFinite`,isNaN:`isNaN`,parseFloat:`parseFloat`,parseInt:`parseInt`,decodeURI:`decodeURI`,decodeURIComponent:`decodeURIComponent`,encodeURI:`encodeURI`,encodeURIComponent:`encodeURIComponent`,Array:`Array`,ArrayBuffer:`ArrayBuffer`,BigInt:`BigInt`,BigInt64Array:`BigInt64Array`,BigUint64Array:`BigUint64Array`,Boolean:`Boolean`,DataView:`DataView`,EvalError:`EvalError`,Int8Array:`Int8Array`,Int16Array:`Int16Array`,Int32Array:`Int32Array`,Map:`Map`,Number:`Number`,Object:`Object`,Promise:`Promise`,Proxy:`Proxy`,RangeError:`RangeError`,ReferenceError:`ReferenceError`,Set:`Set`,String:`String`,SyntaxError:`SyntaxError`,TypeError:`TypeError`,Uint8Array:`Uint8Array`,Uint8ClampedArray:`Uint8ClampedArray`,Uint16Array:`Uint16Array`,Uint32Array:`Uint32Array`,URIError:`URIError`,WeakMap:`WeakMap`,WeakSet:`WeakSet`,Iterator:`Iterator`,AsyncIterator:`AsyncIterator`,AggregateError:`AggregateError`,JSON:`JSON`,Reflect:`Reflect`,escape:`escape`,unescape:`unescape`,ModuleSource:`ModuleSource`,lockdown:`lockdown`,harden:`harden`,HandledPromise:`HandledPromise`},vi={Date:`%InitialDate%`,Error:`%InitialError%`,RegExp:`%InitialRegExp%`,Math:`%InitialMath%`,Temporal:`%InitialTemporal%`,Float16Array:`Float16Array`,Float32Array:`Float32Array`,Float64Array:`Float64Array`,getStackString:`%InitialGetStackString%`},yi={Date:`%SharedDate%`,Error:`%SharedError%`,RegExp:`%SharedRegExp%`,Symbol:`%SharedSymbol%`,Math:`%SharedMath%`,Temporal:`%SharedTemporal%`},bi=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError];typeof AggregateError<`u`&&R(bi,AggregateError);let xi={"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`},Si={"[[Proto]]":`%AsyncFunctionPrototype%`},J=xi,Ci=Si,Y={get:J,set:`undefined`},X={get:J,set:J},wi=function(){"use strict";};at([`caller`,`arguments`],e=>{try{wi[e]}catch(t){t.message===`Restricted in strict mode`&&(xi[e]=X)}});let Ti=e=>e===Y||e===X;function Ei(e){return{"[[Proto]]":`%SharedError%`,prototype:e}}function Di(e){return{"[[Proto]]":`%ErrorPrototype%`,constructor:e,message:`string`,name:`string`,toString:!1,cause:!1}}function Oi(e){return{"[[Proto]]":`%TypedArray%`,BYTES_PER_ELEMENT:`number`,prototype:e}}function ki(e){return{"[[Proto]]":`%TypedArrayPrototype%`,BYTES_PER_ELEMENT:`number`,constructor:e}}let Ai={E:`number`,LN10:`number`,LN2:`number`,LOG10E:`number`,LOG2E:`number`,PI:`number`,SQRT1_2:`number`,SQRT2:`number`,"@@toStringTag":`string`,abs:J,acos:J,acosh:J,asin:J,asinh:J,atan:J,atanh:J,atan2:J,cbrt:J,ceil:J,clz32:J,cos:J,cosh:J,exp:J,expm1:J,floor:J,fround:J,hypot:J,imul:J,log:J,log1p:J,log10:J,log2:J,max:J,min:J,pow:J,round:J,sign:J,sin:J,sinh:J,sqrt:J,tan:J,tanh:J,trunc:J,f16round:J,sumPrecise:J,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1,irandom:!1},ji={"[[Proto]]":null,"%ThrowTypeError%":J,Infinity:`number`,NaN:`number`,undefined:`undefined`,"%UniqueEval%":J,isFinite:J,isNaN:J,parseFloat:J,parseInt:J,decodeURI:J,decodeURIComponent:J,encodeURI:J,encodeURIComponent:J,Object:{"[[Proto]]":`%FunctionPrototype%`,assign:J,create:J,defineProperties:J,defineProperty:J,entries:J,freeze:J,fromEntries:J,getOwnPropertyDescriptor:J,getOwnPropertyDescriptors:J,getOwnPropertyNames:J,getOwnPropertySymbols:J,getPrototypeOf:J,is:J,isExtensible:J,isFrozen:J,isSealed:J,keys:J,preventExtensions:J,prototype:`%ObjectPrototype%`,seal:J,setPrototypeOf:J,values:J,"RegisteredSymbol(harden)":{...J,isFake:`boolean`},hasOwn:J,groupBy:J,__getClass:!1},"%ObjectPrototype%":{"[[Proto]]":null,constructor:`Object`,hasOwnProperty:J,isPrototypeOf:J,propertyIsEnumerable:J,toLocaleString:J,toString:J,valueOf:J,"--proto--":X,__defineGetter__:J,__defineSetter__:J,__lookupGetter__:J,__lookupSetter__:J},"%UniqueFunction%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%FunctionPrototype%`},"%InertFunction%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%FunctionPrototype%`},"%FunctionPrototype%":{apply:J,bind:J,call:J,constructor:`%InertFunction%`,toString:J,"@@hasInstance":J,caller:!1,arguments:!1,fileName:!1,lineNumber:!1},Boolean:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%BooleanPrototype%`},"%BooleanPrototype%":{constructor:`Boolean`,toString:J,valueOf:J},"%SharedSymbol%":{"[[Proto]]":`%FunctionPrototype%`,asyncIterator:`symbol`,for:J,hasInstance:`symbol`,isConcatSpreadable:`symbol`,iterator:`symbol`,keyFor:J,match:`symbol`,matchAll:`symbol`,prototype:`%SymbolPrototype%`,replace:`symbol`,search:`symbol`,species:`symbol`,split:`symbol`,toPrimitive:`symbol`,toStringTag:`symbol`,unscopables:`symbol`,asyncDispose:`symbol`,dispose:`symbol`,useSimple:!1,useSetter:!1,operatorSet:!1},"%SymbolPrototype%":{constructor:`%SharedSymbol%`,description:Y,toString:J,valueOf:J,"@@toPrimitive":J,"@@toStringTag":`string`},"%InitialError%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%ErrorPrototype%`,captureStackTrace:J,stackTraceLimit:X,prepareStackTrace:X,isError:J},"%SharedError%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%ErrorPrototype%`,captureStackTrace:J,stackTraceLimit:X,prepareStackTrace:X,isError:J},"%ErrorPrototype%":{constructor:`%SharedError%`,message:`string`,name:`string`,toString:J,at:!1,stack:X,cause:!1},EvalError:Ei(`%EvalErrorPrototype%`),RangeError:Ei(`%RangeErrorPrototype%`),ReferenceError:Ei(`%ReferenceErrorPrototype%`),SyntaxError:Ei(`%SyntaxErrorPrototype%`),TypeError:Ei(`%TypeErrorPrototype%`),URIError:Ei(`%URIErrorPrototype%`),AggregateError:Ei(`%AggregateErrorPrototype%`),"%EvalErrorPrototype%":Di(`EvalError`),"%RangeErrorPrototype%":Di(`RangeError`),"%ReferenceErrorPrototype%":Di(`ReferenceError`),"%SyntaxErrorPrototype%":Di(`SyntaxError`),"%TypeErrorPrototype%":Di(`TypeError`),"%URIErrorPrototype%":Di(`URIError`),"%AggregateErrorPrototype%":Di(`AggregateError`),Number:{"[[Proto]]":`%FunctionPrototype%`,EPSILON:`number`,isFinite:J,isInteger:J,isNaN:J,isSafeInteger:J,MAX_SAFE_INTEGER:`number`,MAX_VALUE:`number`,MIN_SAFE_INTEGER:`number`,MIN_VALUE:`number`,NaN:`number`,NEGATIVE_INFINITY:`number`,parseFloat:J,parseInt:J,POSITIVE_INFINITY:`number`,prototype:`%NumberPrototype%`},"%NumberPrototype%":{constructor:`Number`,toExponential:J,toFixed:J,toLocaleString:J,toPrecision:J,toString:J,valueOf:J},BigInt:{"[[Proto]]":`%FunctionPrototype%`,asIntN:J,asUintN:J,prototype:`%BigIntPrototype%`,bitLength:!1,fromArrayBuffer:!1,tdiv:!1,fdiv:!1,cdiv:!1,ediv:!1,tdivrem:!1,fdivrem:!1,cdivrem:!1,edivrem:!1,sqrt:!1,sqrtrem:!1,floorLog2:!1,ctz:!1},"%BigIntPrototype%":{constructor:`BigInt`,toLocaleString:J,toString:J,valueOf:J,"@@toStringTag":`string`},"%InitialMath%":{...Ai,random:J},"%SharedMath%":{...Ai,random:J},"%InitialDate%":{"[[Proto]]":`%FunctionPrototype%`,now:J,parse:J,prototype:`%DatePrototype%`,UTC:J},"%SharedDate%":{"[[Proto]]":`%FunctionPrototype%`,now:J,parse:J,prototype:`%DatePrototype%`,UTC:J},"%DatePrototype%":{constructor:`%SharedDate%`,getDate:J,getDay:J,getFullYear:J,getHours:J,getMilliseconds:J,getMinutes:J,getMonth:J,getSeconds:J,getTime:J,getTimezoneOffset:J,getUTCDate:J,getUTCDay:J,getUTCFullYear:J,getUTCHours:J,getUTCMilliseconds:J,getUTCMinutes:J,getUTCMonth:J,getUTCSeconds:J,setDate:J,setFullYear:J,setHours:J,setMilliseconds:J,setMinutes:J,setMonth:J,setSeconds:J,setTime:J,setUTCDate:J,setUTCFullYear:J,setUTCHours:J,setUTCMilliseconds:J,setUTCMinutes:J,setUTCMonth:J,setUTCSeconds:J,toDateString:J,toISOString:J,toJSON:J,toLocaleDateString:J,toLocaleString:J,toLocaleTimeString:J,toString:J,toTimeString:J,toUTCString:J,valueOf:J,"@@toPrimitive":J,getYear:J,setYear:J,toGMTString:J,toTemporalInstant:J},String:{"[[Proto]]":`%FunctionPrototype%`,fromCharCode:J,fromCodePoint:J,prototype:`%StringPrototype%`,raw:J,fromArrayBuffer:!1},"%StringPrototype%":{length:`number`,charAt:J,charCodeAt:J,codePointAt:J,concat:J,constructor:`String`,endsWith:J,includes:J,indexOf:J,lastIndexOf:J,localeCompare:J,match:J,matchAll:J,normalize:J,padEnd:J,padStart:J,repeat:J,replace:J,replaceAll:J,search:J,slice:J,split:J,startsWith:J,substring:J,toLocaleLowerCase:J,toLocaleUpperCase:J,toLowerCase:J,toString:J,toUpperCase:J,trim:J,trimEnd:J,trimStart:J,valueOf:J,"@@iterator":J,at:J,isWellFormed:J,toWellFormed:J,unicodeSets:J,substr:J,anchor:J,big:J,blink:J,bold:J,fixed:J,fontcolor:J,fontsize:J,italics:J,link:J,small:J,strike:J,sub:J,sup:J,trimLeft:J,trimRight:J,compare:!1,__quote:!1},"%StringIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,"@@toStringTag":`string`},"%InitialRegExp%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%RegExpPrototype%`,"@@species":Y,escape:J,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%RegExpPrototype%`,"@@species":Y,escape:J},"%RegExpPrototype%":{constructor:`%SharedRegExp%`,exec:J,dotAll:Y,flags:Y,global:Y,hasIndices:Y,ignoreCase:Y,"@@match":J,"@@matchAll":J,multiline:Y,"@@replace":J,"@@search":J,source:Y,"@@split":J,sticky:Y,test:J,toString:J,unicode:Y,unicodeSets:Y,compile:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,"@@toStringTag":`string`},Array:{"[[Proto]]":`%FunctionPrototype%`,from:J,isArray:J,of:J,prototype:`%ArrayPrototype%`,"@@species":Y,at:J,fromAsync:J},"%ArrayPrototype%":{length:`number`,concat:J,constructor:`Array`,copyWithin:J,entries:J,every:J,fill:J,filter:J,find:J,findIndex:J,flat:J,flatMap:J,forEach:J,includes:J,indexOf:J,join:J,keys:J,lastIndexOf:J,map:J,pop:J,push:J,reduce:J,reduceRight:J,reverse:J,shift:J,slice:J,some:J,sort:J,splice:J,toLocaleString:J,toString:J,unshift:J,values:J,"@@iterator":J,"@@unscopables":{"[[Proto]]":null,copyWithin:`boolean`,entries:`boolean`,fill:`boolean`,find:`boolean`,findIndex:`boolean`,flat:`boolean`,flatMap:`boolean`,includes:`boolean`,keys:`boolean`,values:`boolean`,at:`boolean`,findLast:`boolean`,findLastIndex:`boolean`,toReversed:`boolean`,toSorted:`boolean`,toSpliced:`boolean`,with:`boolean`,group:`boolean`,groupToMap:`boolean`,groupBy:`boolean`},findLast:J,findLastIndex:J,toReversed:J,toSorted:J,toSpliced:J,with:J,group:J,groupToMap:J,groupBy:J,at:J},"%ArrayIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,"@@toStringTag":`string`},"%TypedArray%":{"[[Proto]]":`%FunctionPrototype%`,from:J,of:J,prototype:`%TypedArrayPrototype%`,"@@species":Y},"%TypedArrayPrototype%":{buffer:Y,byteLength:Y,byteOffset:Y,constructor:`%TypedArray%`,copyWithin:J,entries:J,every:J,fill:J,filter:J,find:J,findIndex:J,forEach:J,includes:J,indexOf:J,join:J,keys:J,lastIndexOf:J,length:Y,map:J,reduce:J,reduceRight:J,reverse:J,set:J,slice:J,some:J,sort:J,subarray:J,toLocaleString:J,toString:J,values:J,"@@iterator":J,"@@toStringTag":Y,at:J,findLast:J,findLastIndex:J,toReversed:J,toSorted:J,with:J},BigInt64Array:Oi(`%BigInt64ArrayPrototype%`),BigUint64Array:Oi(`%BigUint64ArrayPrototype%`),Float16Array:Oi(`%Float16ArrayPrototype%`),Float32Array:Oi(`%Float32ArrayPrototype%`),Float64Array:Oi(`%Float64ArrayPrototype%`),Int16Array:Oi(`%Int16ArrayPrototype%`),Int32Array:Oi(`%Int32ArrayPrototype%`),Int8Array:Oi(`%Int8ArrayPrototype%`),Uint16Array:Oi(`%Uint16ArrayPrototype%`),Uint32Array:Oi(`%Uint32ArrayPrototype%`),Uint8ClampedArray:Oi(`%Uint8ClampedArrayPrototype%`),Uint8Array:{...Oi(`%Uint8ArrayPrototype%`),fromBase64:J,fromHex:J},"%BigInt64ArrayPrototype%":ki(`BigInt64Array`),"%BigUint64ArrayPrototype%":ki(`BigUint64Array`),"%Float16ArrayPrototype%":ki(`Float16Array`),"%Float32ArrayPrototype%":ki(`Float32Array`),"%Float64ArrayPrototype%":ki(`Float64Array`),"%Int16ArrayPrototype%":ki(`Int16Array`),"%Int32ArrayPrototype%":ki(`Int32Array`),"%Int8ArrayPrototype%":ki(`Int8Array`),"%Uint16ArrayPrototype%":ki(`Uint16Array`),"%Uint32ArrayPrototype%":ki(`Uint32Array`),"%Uint8ClampedArrayPrototype%":ki(`Uint8ClampedArray`),"%Uint8ArrayPrototype%":{...ki(`Uint8Array`),setFromBase64:J,setFromHex:J,toBase64:J,toHex:J},Map:{"[[Proto]]":`%FunctionPrototype%`,"@@species":Y,prototype:`%MapPrototype%`,groupBy:J},"%MapPrototype%":{clear:J,constructor:`Map`,delete:J,entries:J,forEach:J,get:J,getOrInsert:J,getOrInsertComputed:J,has:J,keys:J,set:J,size:Y,values:J,"@@iterator":J,"@@toStringTag":`string`},"%MapIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,"@@toStringTag":`string`},Set:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%SetPrototype%`,"@@species":Y,groupBy:!1},"%SetPrototype%":{add:J,clear:J,constructor:`Set`,delete:J,entries:J,forEach:J,has:J,keys:J,size:Y,values:J,"@@iterator":J,"@@toStringTag":`string`,intersection:J,union:J,difference:J,symmetricDifference:J,isSubsetOf:J,isSupersetOf:J,isDisjointFrom:J},"%SetIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,"@@toStringTag":`string`},WeakMap:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%WeakMapPrototype%`},"%WeakMapPrototype%":{constructor:`WeakMap`,delete:J,get:J,getOrInsert:J,getOrInsertComputed:J,has:J,set:J,"@@toStringTag":`string`},WeakSet:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%WeakSetPrototype%`},"%WeakSetPrototype%":{add:J,constructor:`WeakSet`,delete:J,has:J,"@@toStringTag":`string`},ArrayBuffer:{"[[Proto]]":`%FunctionPrototype%`,isView:J,prototype:`%ArrayBufferPrototype%`,"@@species":Y,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:Y,constructor:`ArrayBuffer`,slice:J,"@@toStringTag":`string`,concat:!1,transfer:J,resize:J,resizable:Y,maxByteLength:Y,transferToFixedLength:J,detached:Y,transferToImmutable:J,sliceToImmutable:J,immutable:Y},"%ImmutableArrayBufferPrototype%":{"[[Proto]]":`%ArrayBufferPrototype%`,byteLength:Y,slice:J,"@@toStringTag":`string`,transfer:J,resize:J,resizable:Y,maxByteLength:Y,transferToFixedLength:J,detached:Y,transferToImmutable:J,sliceToImmutable:J,immutable:Y},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":`%FunctionPrototype%`,BYTES_PER_ELEMENT:`number`,prototype:`%DataViewPrototype%`},"%DataViewPrototype%":{buffer:Y,byteLength:Y,byteOffset:Y,constructor:`DataView`,getBigInt64:J,getBigUint64:J,getFloat16:J,getFloat32:J,getFloat64:J,getInt8:J,getInt16:J,getInt32:J,getUint8:J,getUint16:J,getUint32:J,setBigInt64:J,setBigUint64:J,setFloat16:J,setFloat32:J,setFloat64:J,setInt8:J,setInt16:J,setInt32:J,setUint8:J,setUint16:J,setUint32:J,"@@toStringTag":`string`},Atomics:!1,JSON:{parse:J,stringify:J,"@@toStringTag":`string`,rawJSON:J,isRawJSON:J},Iterator:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%IteratorPrototype%`,from:J,zip:J,zipKeyed:J,concat:J},"%IteratorPrototype%":{"@@iterator":J,constructor:`Iterator`,map:J,filter:J,take:J,drop:J,flatMap:J,reduce:J,toArray:J,forEach:J,some:J,every:J,find:J,"@@toStringTag":`string`,toAsync:J,"@@dispose":!1},"%WrapForValidIteratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,return:J},"%IteratorHelperPrototype%":{"[[Proto]]":`%IteratorPrototype%`,next:J,return:J,"@@toStringTag":`string`},AsyncIterator:{"[[Proto]]":`%FunctionPrototype%`,prototype:`%AsyncIteratorPrototype%`,from:J},"%AsyncIteratorPrototype%":{"@@asyncIterator":J,constructor:`AsyncIterator`,map:J,filter:J,take:J,drop:J,flatMap:J,reduce:J,toArray:J,forEach:J,some:J,every:J,find:J,"@@toStringTag":`string`,"@@asyncDispose":!1},"%WrapForValidAsyncIteratorPrototype%":{"[[Proto]]":`%AsyncIteratorPrototype%`,next:J,return:J},"%AsyncIteratorHelperPrototype%":{"[[Proto]]":`%AsyncIteratorPrototype%`,next:J,return:J,"@@toStringTag":`string`},"%InertGeneratorFunction%":{"[[Proto]]":`%InertFunction%`,prototype:`%Generator%`},"%Generator%":{"[[Proto]]":`%FunctionPrototype%`,constructor:`%InertGeneratorFunction%`,prototype:`%GeneratorPrototype%`,"@@toStringTag":`string`},"%InertAsyncGeneratorFunction%":{"[[Proto]]":`%InertFunction%`,prototype:`%AsyncGenerator%`},"%AsyncGenerator%":{"[[Proto]]":`%FunctionPrototype%`,constructor:`%InertAsyncGeneratorFunction%`,prototype:`%AsyncGeneratorPrototype%`,length:`number`,"@@toStringTag":`string`},"%GeneratorPrototype%":{"[[Proto]]":`%IteratorPrototype%`,constructor:`%Generator%`,next:J,return:J,throw:J,"@@toStringTag":`string`},"%AsyncGeneratorPrototype%":{"[[Proto]]":`%AsyncIteratorPrototype%`,constructor:`%AsyncGenerator%`,next:J,return:J,throw:J,"@@toStringTag":`string`},HandledPromise:{"[[Proto]]":`Promise`,applyFunction:J,applyFunctionSendOnly:J,applyMethod:J,applyMethodSendOnly:J,get:J,getSendOnly:J,prototype:`%PromisePrototype%`,resolve:J},ModuleSource:{"[[Proto]]":`%AbstractModuleSource%`,prototype:`%ModuleSourcePrototype%`},"%ModuleSourcePrototype%":{"[[Proto]]":`%AbstractModuleSourcePrototype%`,constructor:`ModuleSource`,"@@toStringTag":`string`,bindings:Y,needsImport:Y,needsImportMeta:Y,imports:Y,exports:Y,reexports:Y},"%AbstractModuleSource%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%AbstractModuleSourcePrototype%`},"%AbstractModuleSourcePrototype%":{constructor:`%AbstractModuleSource%`},Promise:{"[[Proto]]":`%FunctionPrototype%`,all:J,allSettled:J,any:J,prototype:`%PromisePrototype%`,race:J,reject:J,resolve:J,withResolvers:J,"@@species":Y,try:J},"%PromisePrototype%":{catch:J,constructor:`Promise`,finally:J,then:J,"@@toStringTag":`string`,"UniqueSymbol(async_id_symbol)":X,"UniqueSymbol(trigger_async_id_symbol)":X,"UniqueSymbol(destroyed)":X},"%InertAsyncFunction%":{"[[Proto]]":`%InertFunction%`,prototype:`%AsyncFunctionPrototype%`},"%AsyncFunctionPrototype%":{"[[Proto]]":`%FunctionPrototype%`,constructor:`%InertAsyncFunction%`,length:`number`,"@@toStringTag":`string`},Reflect:{apply:J,construct:J,defineProperty:J,deleteProperty:J,get:J,getOwnPropertyDescriptor:J,getPrototypeOf:J,has:J,isExtensible:J,ownKeys:J,preventExtensions:J,set:J,setPrototypeOf:J,"@@toStringTag":`string`},Proxy:{"[[Proto]]":`%FunctionPrototype%`,revocable:J},"%Temporal.PlainDatePrototype%":{constructor:`%Temporal.PlainDate%`,era:X,eraYear:X,calendarId:X,year:X,month:X,monthCode:X,day:X,dayOfWeek:X,dayOfYear:X,weekOfYear:X,yearOfWeek:X,daysInWeek:X,daysInMonth:X,daysInYear:X,monthsInYear:X,inLeapYear:X,toPlainYearMonth:J,toPlainMonthDay:J,add:J,subtract:J,with:J,withCalendar:J,until:J,since:J,equals:J,toPlainDateTime:J,toZonedDateTime:J,toString:J,toLocaleString:J,toJSON:J,valueOf:J,"@@toStringTag":`string`},"%Temporal.PlainDate%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.PlainDatePrototype%`,from:J,compare:J},"%Temporal.PlainTimePrototype%":{constructor:`%Temporal.PlainTime%`,hour:X,minute:X,second:X,millisecond:X,microsecond:X,nanosecond:X,add:J,subtract:J,with:J,until:J,since:J,round:J,equals:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,"@@toStringTag":`string`},"%Temporal.PlainTime%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.PlainTimePrototype%`,from:J,compare:J},"%Temporal.PlainDateTimePrototype%":{constructor:`%Temporal.PlainDateTime%`,calendarId:X,era:X,eraYear:X,year:X,month:X,monthCode:X,day:X,hour:X,minute:X,second:X,millisecond:X,microsecond:X,nanosecond:X,dayOfWeek:X,dayOfYear:X,weekOfYear:X,yearOfWeek:X,daysInWeek:X,daysInMonth:X,daysInYear:X,monthsInYear:X,inLeapYear:X,with:J,withCalendar:J,withPlainTime:J,add:J,subtract:J,until:J,since:J,round:J,equals:J,toLocaleString:J,toJSON:J,toString:J,valueOf:J,toZonedDateTime:J,toPlainDate:J,toPlainTime:J,"@@toStringTag":`string`},"%Temporal.PlainDateTime%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.PlainDateTimePrototype%`,from:J,compare:J},"%Temporal.ZonedDateTimePrototype%":{constructor:`%Temporal.ZonedDateTime%`,timeZoneId:X,calendarId:X,era:X,eraYear:X,year:X,month:X,monthCode:X,day:X,hour:X,minute:X,second:X,millisecond:X,microsecond:X,nanosecond:X,epochMilliseconds:X,epochNanoseconds:X,dayOfWeek:X,dayOfYear:X,weekOfYear:X,yearOfWeek:X,hoursInDay:X,daysInWeek:X,daysInMonth:X,daysInYear:X,monthsInYear:X,inLeapYear:X,offsetNanoseconds:X,offset:X,with:J,withCalendar:J,withPlainTime:J,withTimeZone:J,add:J,subtract:J,until:J,since:J,round:J,equals:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,startOfDay:J,getTimeZoneTransition:J,toInstant:J,toPlainDate:J,toPlainTime:J,toPlainDateTime:J,"@@toStringTag":`string`},"%Temporal.ZonedDateTime%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.ZonedDateTimePrototype%`,from:J,compare:J},"%Temporal.DurationPrototype%":{constructor:`%Temporal.Duration%`,years:X,months:X,weeks:X,days:X,hours:X,minutes:X,seconds:X,milliseconds:X,microseconds:X,nanoseconds:X,sign:X,blank:X,with:J,negated:J,abs:J,add:J,subtract:J,round:J,total:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,"@@toStringTag":`string`},"%Temporal.Duration%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.DurationPrototype%`,from:J,compare:J},"%Temporal.InstantPrototype%":{constructor:`%Temporal.Instant%`,epochMilliseconds:X,epochNanoseconds:X,add:J,subtract:J,until:J,since:J,round:J,equals:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,toZonedDateTimeISO:J,"@@toStringTag":`string`},"%Temporal.Instant%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.InstantPrototype%`,from:J,fromEpochMilliseconds:J,fromEpochNanoseconds:J,compare:J},"%Temporal.PlainYearMonthPrototype%":{constructor:`%Temporal.PlainYearMonth%`,calendarId:X,era:X,eraYear:X,year:X,month:X,monthCode:X,daysInYear:X,daysInMonth:X,monthsInYear:X,inLeapYear:X,with:J,add:J,subtract:J,until:J,since:J,equals:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,toPlainDate:J,"@@toStringTag":`string`},"%Temporal.PlainYearMonth%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.PlainYearMonthPrototype%`,from:J,compare:J},"%Temporal.PlainMonthDayPrototype%":{constructor:`%Temporal.PlainMonthDay%`,calendarId:X,monthCode:X,day:X,with:J,equals:J,toLocaleString:J,toString:J,toJSON:J,valueOf:J,toPlainDate:J,"@@toStringTag":`string`},"%Temporal.PlainMonthDay%":{"[[Proto]]":`%FunctionPrototype%`,length:`number`,name:`string`,prototype:`%Temporal.PlainMonthDayPrototype%`,from:J},"%Temporal.Now%":{instant:J,timeZoneId:J,plainDateTimeISO:J,zonedDateTimeISO:J,plainDateISO:J,plainTimeISO:J,"@@toStringTag":`string`},"%InitialTemporal%":{Now:`%Temporal.Now%`,PlainDate:`%Temporal.PlainDate%`,PlainTime:`%Temporal.PlainTime%`,PlainDateTime:`%Temporal.PlainDateTime%`,ZonedDateTime:`%Temporal.ZonedDateTime%`,Duration:`%Temporal.Duration%`,Instant:`%Temporal.Instant%`,PlainYearMonth:`%Temporal.PlainYearMonth%`,PlainMonthDay:`%Temporal.PlainMonthDay%`,"@@toStringTag":`string`},"%SharedTemporal%":{PlainDate:`%Temporal.PlainDate%`,PlainTime:`%Temporal.PlainTime%`,PlainDateTime:`%Temporal.PlainDateTime%`,ZonedDateTime:`%Temporal.ZonedDateTime%`,Duration:`%Temporal.Duration%`,Instant:`%Temporal.Instant%`,PlainYearMonth:`%Temporal.PlainYearMonth%`,PlainMonthDay:`%Temporal.PlainMonthDay%`,"@@toStringTag":`string`},escape:J,unescape:J,"%UniqueCompartment%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%CompartmentPrototype%`,toString:J},"%InertCompartment%":{"[[Proto]]":`%FunctionPrototype%`,prototype:`%CompartmentPrototype%`,toString:J},"%CompartmentPrototype%":{constructor:`%InertCompartment%`,evaluate:J,globalThis:Y,name:Y,import:Ci,load:Ci,importNow:J,module:J,"@@toStringTag":`string`},lockdown:J,harden:{...J,isFake:`boolean`},"%InitialGetStackString%":J},Mi=e=>typeof e==`function`;function Ni(e,t,n){if(I(e,t)){let r=O(e,t);if(!r||!se(r.value,n.value)||r.get!==n.get||r.set!==n.set||r.writable!==n.writable||r.enumerable!==n.enumerable||r.configurable!==n.configurable)throw w(`Conflicting definitions of ${t}`)}M(e,t,n)}function Pi(e,t){for(let[n,r]of D(t))Ni(e,n,r)}function Fi(e,t){let n={__proto__:null};for(let[r,i]of D(t))I(e,r)&&(n[i]=e[r]);return n}let Ii=t=>{let n=T(null),r,i=e=>{Pi(n,k(e))};j(i);let a=()=>{for(let[e,r]of D(n)){if(Xt(r)||!I(r,`prototype`))continue;let i=ji[e];if(typeof i!=`object`)throw w(`Expected permit object at permits.${e}`);let a=i.prototype;if(!a){hi(r,`prototype`,!1,`${e}.prototype`,t);continue}if(typeof a!=`string`||!I(ji,a))throw w(`Unrecognized ${e}.prototype permits entry`);let o=r.prototype;if(I(n,a)){if(n[a]!==o)throw w(`Conflicting bindings of ${a}`);continue}n[a]=o}};j(a);let o=()=>(j(n),r=new b(it(ge(n),Mi)),n);j(o);let s=e=>{if(!r)throw w(`isPseudoNative can only be called after finalIntrinsics`);return Ht(r,e)};j(s);let c={addIntrinsics:i,completePrototypes:a,finalIntrinsics:o,isPseudoNative:s};return j(c),i(gi),i(Fi(e,_i)),c},Li=(e,t)=>{let{addIntrinsics:n,finalIntrinsics:r}=Ii(t);return n(Fi(e,yi)),r()};function Ri(e,t,n){let r=[`undefined`,`boolean`,`number`,`string`,`symbol`],i=new c(v?L(it(D(ji[`%SharedSymbol%`]),([e,t])=>t===`symbol`&&typeof v[e]==`symbol`),([e])=>[v[e],`@@${e}`]):[]);function a(e,t){if(typeof t==`string`)return t;let n=_t(i,t);if(typeof t==`symbol`){if(n)return n;{let e=Te(t);return e===void 0?`Unique${_(t)}`:`RegisteredSymbol(${e})`}}throw w(`Unexpected property name type ${e} ${t}`)}function o(t,n,r){if(Xt(n))throw w(`Object expected: ${t}, ${_(n)}, ${r}`);let i=A(n);if(!(i===null&&r===null)){if(r!==void 0&&typeof r!=`string`)throw w(`Malformed permit ${t}.__proto__`);if(i!==e[r||`%ObjectPrototype%`])throw w(`Unexpected [[Prototype]] at ${t}.__proto__ (expected ${r||`%ObjectPrototype%`})`)}}function s(t,n,i,a){if(typeof a==`object`)return d(t,n,a),!0;if(a===!1)return!1;if(typeof a==`string`){if(ot(r,a)){if(i===`prototype`||i===`constructor`)throw new w(`At ${t} expected intrinsic, not ${a}`);if(typeof n!==a)throw w(`At ${t} expected ${a} not ${typeof n}`);return!0}if(I(e,a)){if(n!==e[a])throw w(`Does not match permit for ${t}`);return!0}}throw w(`Unexpected property ${i} with permit ${a} at ${t}`)}function l(e,t,n,r){let i=O(t,n);if(!i)throw w(`Property ${n} not found at ${e}`);if(I(i,`value`)){if(Ti(r))throw w(`Accessor expected at ${e}`);return s(e,i.value,n,r)}if(!Ti(r))throw w(`Accessor not expected at ${e}`);return s(`${e}<get>`,i.get,n,r.get)&&s(`${e}<set>`,i.set,n,r.set)}function u(e,t,n){let r=n===`__proto__`?`--proto--`:n;if(I(t,r))return t[r];if(typeof e==`function`&&I(xi,r))return xi[r]}function d(e,r,i){if(r==null)return;let s=i[`[[Proto]]`];o(e,r,s),typeof r==`function`&&t(r);for(let t of ze(r)){let o=a(e,t),s=`${e}.${o}`,c=u(r,i,o);(!c||!l(s,r,t,c))&&hi(r,t,c===!1,s,n)}}d(`intrinsics`,e,ji)}function zi(){try{U.prototype.constructor(`return 1`)}catch{return j({})}let e={};function t(t,n,r){let i;try{i=(0,eval)(r)}catch(e){if(e instanceof re)return;throw e}let a=A(i),o=function(){throw w(`Function.prototype.constructor is not a valid constructor.`)};E(o,{prototype:{value:a},name:{value:t,writable:!1,enumerable:!1,configurable:!0}}),E(a,{constructor:{value:o}}),o!==U.prototype.constructor&&he(o,U.prototype.constructor),e[n]=o}return t(`Function`,`%InertFunction%`,`(function(){})`),t(`GeneratorFunction`,`%InertGeneratorFunction%`,`(function*(){})`),t(`AsyncFunction`,`%InertAsyncFunction%`,`(async function(){})`),ln!==void 0&&t(`AsyncGeneratorFunction`,`%InertAsyncGeneratorFunction%`,`(async function*(){})`),e}function Bi(){let e=r,t=e.prototype,n={now(){throw w(`secure mode Calling %SharedDate%.now() throws`)}},i=({powers:n=`none`}={})=>{let r;return r=n===`original`?function(...t){return new.target===void 0?N(e,void 0,t):Pe(e,t,new.target)}:function(...t){if(new.target===void 0)throw w(`secure mode Calling %SharedDate% constructor as a function throws`);if(t.length===0)throw w(`secure mode Calling new %SharedDate%() with no arguments throws`);return Pe(e,t,new.target)},E(r,{length:{value:7},prototype:{value:t,writable:!1,enumerable:!1,configurable:!1},parse:{value:e.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:e.UTC,writable:!0,enumerable:!1,configurable:!0}}),r},a=i({powers:`original`}),o=i({powers:`none`});return E(a,{now:{value:e.now,writable:!0,enumerable:!1,configurable:!0}}),E(o,{now:{value:n.now,writable:!0,enumerable:!1,configurable:!0}}),E(t,{constructor:{value:o}}),{"%InitialDate%":a,"%SharedDate%":o}}function Vi(){let e=l,t=e,{random:n,...r}=k(e),i={random(){throw w(`secure mode %SharedMath%.random() throws`)}};return{"%InitialMath%":t,"%SharedMath%":T(fe,{...r,random:{value:i.random,writable:!0,enumerable:!1,configurable:!0}})}}let Hi=()=>{if(ne===void 0)return{};if(typeof ne!=`object`)throw new w(`unexpected typeof Temporal: ${typeof ne}`);if(A(ne)!==fe)throw new w(`unexpected Temporal __proto__: ${A(ne)}`);let e=ne,{Now:t,...n}=k(e),r=T(fe,n),i=ji[`%InitialTemporal%`],a=[];for(let t of ze(ne)){let n=i[t];if(typeof ji[n]==`object`){let r=e[t];R(a,[n,r])}}return{..._e(a),"%InitialTemporal%":e,"%SharedTemporal%":r}};j(Hi);let{setFloat16:Ui,setFloat32:Wi,setFloat64:Gi,setUint16:Ki,setUint32:qi,setBigUint64:Ji}=We,Yi=F(O(We,`buffer`).get),Xi=e=>{Yi(e)},Zi=e=>{let t=ke(e);if(t===0||se(t,NaN))return 0;if(t<0||t>Ae)throw S(`Invalid offset`);return t},Qi=e=>De(e),$i={setFloat16(e,t,n=void 0){return Xi(this),e=Zi(e),t=Qi(t),se(t,NaN)?N(Ki,this,[e,32256,n]):N(Ui,this,[e,t,n])},setFloat32(e,t,n=void 0){return Xi(this),e=Zi(e),t=Qi(t),se(t,NaN)?N(qi,this,[e,2143289344,n]):N(Wi,this,[e,t,n])},setFloat64(e,t,n=void 0){return Xi(this),e=Zi(e),t=Qi(t),se(t,NaN)?N(Ji,this,[e,9221120237041090560n,n]):N(Gi,this,[e,t,n])}},ea=()=>{for(let[e,t]of D($i))I(We,e)&&M(We,e,{value:t})};function ta(e=`safe`){let t=g.prototype,n=(e={})=>{let n=function(...e){return new.target===void 0?g(...e):Pe(g,e,new.target)};if(E(n,{length:{value:2},prototype:{value:t,writable:!1,enumerable:!1,configurable:!1}}),ve){let e=O(g,ve);if(!e)throw w(`no RegExp[Symbol.species] descriptor`);E(n,{[ve]:e})}return n},r=n(),i=n();return e!==`unsafe`&&delete t.compile,E(t,{constructor:{value:i}}),{"%InitialRegExp%":r,"%SharedRegExp%":i}}let na={"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0},"%IteratorPrototype%":{toString:!0,constructor:!0,[ye]:!0}},ra={...na,"%ObjectPrototype%":{...na[`%ObjectPrototype%`],valueOf:!0},"%FunctionPrototype%":{...na[`%FunctionPrototype%`],constructor:!0,bind:!0},"%ErrorPrototype%":{...na[`%ErrorPrototype%`],constructor:!0,message:!0,toString:!0},"%IteratorPrototype%":{...na[`%IteratorPrototype%`],[be]:!0},"%ArrayPrototype%":{toString:!0,push:!0,concat:!0,[be]:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0,name:!0},"%RangeErrorPrototype%":{message:!0,name:!0},"%URIErrorPrototype%":{message:!0,name:!0},"%EvalErrorPrototype%":{message:!0,name:!0},"%ReferenceErrorPrototype%":{message:!0,name:!0},"%AggregateErrorPrototype%":{message:!0,name:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":`*`,"%Generator%":{constructor:!0,name:!0,toString:!0}},ia={...ra,"%ObjectPrototype%":`*`,"%TypedArrayPrototype%":`*`,"%MapPrototype%":`*`,"%SetPrototype%":`*`};function aa(e,t,{warn:n},r=[]){let i=new ee(r);function a(e,t,r,a){if(`value`in a&&a.configurable){let{value:o}=a,s=wt(i,r),{get:c,set:l}=O({get[r](){return o},set[r](i){if(t===this)throw w(`Cannot assign to read only property '${_(r)}' of '${e}'`);I(this,r)?this[r]=i:(s&&n(w(`Override property ${r}`)),M(this,r,{value:i,writable:!0,enumerable:!0,configurable:!0}))}},r);M(c,`originalValue`,{value:o,writable:!1,enumerable:!1,configurable:!1}),M(t,r,{get:c,set:l,enumerable:a.enumerable,configurable:a.configurable})}}function o(e,t,n){let r=O(t,n);r&&a(e,t,n,r)}function s(e,t){let n=k(t);n&&at(ze(n),r=>a(e,t,r,n[r]))}function c(e,t,n){for(let r of ze(n)){let i=O(t,r);if(!i||i.get||i.set)continue;let a=`${e}.${_(r)}`,l=n[r];if(l===!0)o(a,t,r);else if(l===`*`)s(a,i.value);else if(!Xt(l))c(a,i.value,l);else throw w(`Unexpected override enablement plan ${a}`)}}let l;switch(t){case`min`:l=na;break;case`moderate`:l=ra;break;case`severe`:l=ia;break;default:throw w(`unrecognized overrideTaming ${t}`)}c(`root`,e,l)}let{Fail:oa,quote:sa}=q,ca=B(/^(\w*[a-z])Locale([A-Z]\w*)$/),la={localeCompare(e){if(this===null||this===void 0)throw w(`Cannot localeCompare with null or undefined "this" value`);let t=`${this}`,n=`${e}`;return t<n?-1:t>n?1:(t===n||oa`expected ${sa(t)} and ${sa(n)} to compare`,0)},toString(){return`${this}`}},ua=la.localeCompare,da=la.toString;function fa(e,t=`safe`){if(t!==`unsafe`){M(_.prototype,`localeCompare`,{value:ua});for(let t of oe(e)){let n=e[t];if(!Xt(n))for(let e of oe(n)){let t=Et(ca,e);if(t){typeof n[e]==`function`||oa`expected ${sa(e)} to be a function`;let r=`${t[1]}${t[2]}`,i=n[r];typeof i==`function`||oa`function ${sa(r)} not found`,M(n,e,{value:i})}}}M(u.prototype,`toLocaleString`,{value:da})}}let pa=e=>({eval(t){return typeof t==`string`?e(t):t}}).eval,{Fail:ma}=q,ha=e=>{let t=function(t){let n=`${lt(arguments)||``}`,r=`${st(arguments,`,`)}`;return new U(r,``),new U(n),e(`(function anonymous(${r}\n) {\n${n}\n})`)};return E(t,{prototype:{value:U.prototype,writable:!1,enumerable:!1,configurable:!1}}),A(U)===U.prototype||ma`Function prototype is the same accross compartments`,A(t)===U.prototype||ma`Function constructor prototype is the same across compartments`,t},ga=e=>{M(e,we,j(ae(T(null),{set:j(()=>{throw w(`Cannot set Symbol.unscopables of a Compartment's globalThis`)}),enumerable:!1,configurable:!1})))},_a=e=>{for(let[t,n]of D(gi))M(e,t,{value:n,writable:!1,enumerable:!1,configurable:!1})},va=(e,{intrinsics:t,newGlobalPropertyNames:n,makeCompartmentConstructor:r,markVirtualizedNativeFunction:i,parentCompartment:a})=>{for(let[n,r]of D(_i))I(t,r)&&M(e,n,{value:t[r],writable:!0,enumerable:!1,configurable:!0});for(let[r,i]of D(n))I(t,i)&&M(e,r,{value:t[i],writable:!0,enumerable:!1,configurable:!0});let o={globalThis:e};o.Compartment=j(r(r,t,i,{parentCompartment:a,enforceNew:!0}));for(let[t,n]of D(o))M(e,t,{value:n,writable:!0,enumerable:!1,configurable:!0}),typeof n==`function`&&i(n)},ya=(e,t,n)=>{{let r=j(pa(t));n(r),M(e,`eval`,{value:r,writable:!0,enumerable:!1,configurable:!0})}{let r=j(ha(t));n(r),M(e,`Function`,{value:r,writable:!0,enumerable:!1,configurable:!0})}},{Fail:ba,quote:xa}=q,Sa=j({__proto__:null}),Ca=new m(Sa,j({get(e,t){ba`Please report unexpected scope handler trap: ${xa(_(t))}`}})),wa=j(T(Ca,k({get(e,t){},set(e,t,n){throw C(`${_(t)} is not defined`)},has(e,t){return!0},getPrototypeOf(e){return null},getOwnPropertyDescriptor(e,t){let n=xa(_(t));console.warn(`getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${n}`,w().stack)},ownKeys(e){return[]}}))),Ta=new m(Sa,wa),Ea=j({__proto__:null}),Da=e=>new m(Ea,j(T(Ca,k({...wa,set(t,n,r){return Ve(e,n,r)},has(e,t){return!0}}))));j(Da);let{Fail:Oa}=q,ka=()=>{let e=T(null),t=j({eval:{get(){return delete e.eval,$t},enumerable:!1,configurable:!0}}),n={evalScope:e,allowNextEvalToBeUnsafe(){let{revoked:r}=n;r!==null&&Oa`a handler did not reset allowNextEvalToBeUnsafe ${r.err}`,E(e,t)},revoked:null};return n},Aa=`\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)`,ja=B(new g(`(?:\\s*//${Aa}|/\\*${Aa}\\s*\\*/)\\s*$`)),Ma=e=>{let t=`<unknown>`;for(;e.length>0;){let n=Et(ja,e);if(n===null)break;e=Ft(e,0,-n[0].length),n[3]===`sourceURL`?t=n[4]:n[1]===`sourceURL`&&(t=n[2])}return t};function Na(e,t){let n=Ot(t,e);if(n<0)return-1;let r=+(e[n]===`
3
+ `);return It(Ft(e,0,n),`
4
+ `).length+r}let Pa=jt(new g(`(?:<!--|-->)`,`g`)),Fa=e=>{let t=Na(e,Pa);if(t<0)return e;throw re(`Possible HTML comment rejected at ${Ma(e)}:${t}. (SES_HTML_COMMENT_REJECTED)`)},Ia=e=>Dt(Pa,e,e=>e[0]===`<`?`< ! --`:`-- >`),La=jt(new g(`(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))`,`g`)),Ra=e=>{let t=Na(e,La);if(t<0)return e;throw re(`Possible import expression rejected at ${Ma(e)}:${t}. (SES_IMPORT_REJECTED)`)},za=e=>Dt(La,e,(e,t,n)=>`${t}__import__${n}`),Ba=B(new g(`(^|[^.])\\beval(\\s*\\()`)),Va=e=>{let t=Na(e,Ba);if(t<0)return e;throw re(`Possible direct eval expression rejected at ${Ma(e)}:${t}. (SES_EVAL_REJECTED)`)},Ha=e=>(e=Fa(e),e=Ra(e),e),Ua=(e,t)=>{for(let n=0,r=t.length;n<r;n+=1){let r=t[n];e=r(e)}return e};j({rejectHtmlComments:j(Fa),evadeHtmlCommentTest:j(Ia),rejectImportExpressions:j(Ra),evadeImportExpressionTest:j(za),rejectSomeDirectEvalExpressions:j(Va),mandatoryTransforms:j(Ha),applyTransforms:j(Ua)});let Wa=new ee(`await.break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield.let.static.enum.implements.package.protected.interface.private.public.await.null.true.false.this.arguments.eval`.split(`.`)),Ga=B(/^[a-zA-Z_$][\w$]*$/),Ka=e=>!wt(Wa,e)&&Ot(Ga,e)!==-1;function qa(e,t){let n=O(e,t);return n&&n.configurable===!1&&n.writable===!1&&I(n,`value`)}let Ja=(e,t={})=>{let n=oe(e),r=oe(t),i=it(r,e=>Ka(e)&&qa(t,e));return{globalObjectConstants:it(n,t=>!ot(r,t)&&Ka(t)&&qa(e,t)),moduleLexicalConstants:i}};function Ya(e,t){return e.length===0?``:`const {${st(e,`,`)}} = this.${t};`}let Xa=e=>{let{globalObjectConstants:t,moduleLexicalConstants:n}=Ja(e.globalObject,e.moduleLexicals);return N(U(`
5
+ with (this.scopeTerminator) {
6
+ with (this.globalObject) {
7
+ with (this.moduleLexicals) {
8
+ with (this.evalScope) {
9
+ ${Ya(t,`globalObject`)}
10
+ ${Ya(n,`moduleLexicals`)}
11
+ return function() {
12
+ 'use strict';
13
+ return eval(arguments[0]);
14
+ };
15
+ }
16
+ }
17
+ }
18
+ }
19
+ `),e,[])},{Fail:Za}=q,Qa=({globalObject:e,moduleLexicals:t={},globalTransforms:n=[],sloppyGlobalsMode:r=!1})=>{let i=r?Da(e):Ta,a=ka(),{evalScope:o}=a,s=j({evalScope:o,moduleLexicals:t,globalObject:e,scopeTerminator:i}),c,l=()=>{c||=Xa(s)};return{safeEvaluate:(t,r)=>{let{localTransforms:i=[]}=r||{};l(),t=Ua(t,ct([i,n,[Ha]],Qt));let s;try{return a.allowNextEvalToBeUnsafe(),N(c,e,[t])}catch(e){throw s=e,e}finally{let e=`eval`in o;delete o.eval,e&&(a.revoked={err:s},Za`handler did not reset allowNextEvalToBeUnsafe ${s}`)}}}},$a,eo=()=>{if($a===void 0){let e=new b;M(Qe,`toString`,{value:{toString(){let t=Ut(this);return Mt(t,`) { [native code] }`)||!Ht(e,this)?t:`function ${this.name}() { [native code] }`}}.toString}),$a=j(t=>Vt(e,t))}return $a};function to(t=`safe`){if(t===`unsafe`)return;let n=e.process||void 0;if(typeof n==`object`){let e=O(n,`domain`);if(e!==void 0&&e.get!==void 0)throw w(`SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)`);M(n,`domain`,{value:null,configurable:!1,writable:!1,enumerable:!1})}}let no=()=>{let t={},n=e.ModuleSource;if(n!==void 0){t.ModuleSource=n;function r(){}let e=A(n);e===Qe?(he(n,r),t[`%AbstractModuleSource%`]=r,t[`%AbstractModuleSourcePrototype%`]=r.prototype):(t[`%AbstractModuleSource%`]=e,t[`%AbstractModuleSourcePrototype%`]=e.prototype);let i=n.prototype;i!==void 0&&(t[`%ModuleSourcePrototype%`]=i,A(i)===fe&&he(n.prototype,r.prototype))}return t},ro=(e,t)=>M(t,`name`,{value:e}),io=j([[`debug`,`debug`],[`log`,`log`],[`info`,`info`],[`warn`,`warn`],[`error`,`error`],[`trace`,`log`],[`dirxml`,`log`],[`group`,`log`],[`groupCollapsed`,`log`]]),ao=j([[`assert`,`error`],[`timeLog`,`log`],[`clear`,void 0],[`count`,`info`],[`countReset`,void 0],[`dir`,`log`],[`groupEnd`,`log`],[`table`,`log`],[`time`,`info`],[`timeEnd`,`info`],[`profile`,void 0],[`profileEnd`,void 0],[`timeStamp`,void 0]]),oo=j([...io,...ao]);j((e,{shouldResetForDebugging:t=!1}={})=>{t&&e.resetErrorTagNum();let n=[],r=_e(L(oo,([e,t])=>[e,j(ro(e,(...t)=>{R(n,[e,...t])}))]));j(r);let i=()=>{let e=j(n);return n=[],e};return j(i),j({loggingConsole:r,takeLog:i})});let so={NOTE:`ERROR_NOTE:`,MESSAGE:`ERROR_MESSAGE:`,CAUSE:`cause:`,ERRORS:`errors:`};j(so);let co=(e,t)=>{if(!e)return;let{getStackString:n,tagError:r,takeMessageLogArgs:i,takeNoteLogArgsArray:a}=t,o=(e,t)=>L(e,e=>Zt(e)?(R(t,e),`(${r(e)})`):e),s=(t,n,i,a,s)=>{let c=r(n),l=i===so.MESSAGE?`${c}:`:`${c} ${i}`,u=o(a,s);e[t](l,...u)},c=(t,n,r=void 0)=>{if(n.length===0)return;if(n.length===1&&r===void 0){d(t,n[0]);return}let i;i=n.length===1?`Nested error`:`Nested ${n.length} errors`,r!==void 0&&(i=`${i} under ${r}`),e.group(i);try{for(let e of n)d(t,e)}finally{e.groupEnd&&e.groupEnd()}},l=new b,u=e=>(t,n)=>{let i=[];s(e,t,so.NOTE,n,i),c(e,i,r(t))},d=(t,o)=>{if(Ht(l,o))return;let d=r(o);Vt(l,o);let f=[],p=i(o),m=a(o,u(t));p===void 0?e[t](`${d}:`,o.message):s(t,o,so.MESSAGE,p,f);let h=n(o);typeof h==`string`&&h.length>=1&&!Mt(h,`
20
+ `)&&(h+=`
21
+ `),e[t](h),o.cause&&s(t,o,so.CAUSE,[o.cause],f),o.errors&&s(t,o,so.ERRORS,o.errors,f);for(let e of m)s(t,o,so.NOTE,e,f);c(t,f,d)},f=L(io,([t,n])=>[t,j(ro(t,(...n)=>{let r=[],i=o(n,r);e[t]&&e[t](...i),c(t,r)}))]),p=L(it(ao,([t,n])=>t in e),([t,n])=>[t,j(ro(t,(...n)=>{e[t](...n)}))]);return j(_e([...f,...p]))};j(co);let lo=(e,t,n)=>{let[r,...i]=It(e,t);return[``,r,...ct(i,e=>[t,...n,e])]},uo=e=>j(t=>{let n=[],r=(...e)=>(n.length>0&&(e=ct(e,e=>typeof e==`string`&&Nt(e,`
22
+ `)?lo(e,`
23
+ `,n):[e]),e=[...n,...e]),t(...e)),i=_e([...L(io,([e])=>[e,ro(e,(...e)=>r(...e))]),...L(ao,([e])=>[e,ro(e,(...t)=>r(e,...t))])]);for(let e of[`group`,`groupCollapsed`])i[e]?i[e]=ro(e,(...e)=>{e.length>=1&&r(...e),R(n,` `)}):i[e]=ro(e,()=>{});return i.groupEnd=ro(`groupEnd`,i.groupEnd?(...e)=>{lt(n)}:()=>{}),harden(i),co(i,e)});j(uo),j((e,t,n=void 0)=>j(_e(L(it(oo,([t,n])=>t in e),([n,r])=>[n,j(ro(n,(...i)=>{(r===void 0||t.canLog(r))&&e[n](...i)}))]))));let fo=e=>{if(i===void 0)return;let t=0,n=new c,r,a=e=>{yt(n,e),r&&n.size===0&&(r(),r=void 0)},o=new y,s=new i(t=>{if(vt(n,t)){let r=_t(n,t);a(t),e(r)}});return{rejectionHandledHandler:e=>{a(V(o,e))},unhandledRejectionHandler:(e,r)=>{t+=1;let i=t;z(n,i,e),H(o,r,i),Yt(s,r,i,r)},processTerminationHandler:()=>{for(let[t,r]of bt(n))a(t),e(r)}}},po=e=>{throw w(e)},mo=(e,t)=>j((...n)=>N(e,t,n)),ho=(t=`safe`,n=`platform`,r=`report`,i=void 0)=>{let a;a=i===void 0?oi:{...oi,getStackString:i};let o=e.console===void 0?typeof e.print==`function`?(e=>j({debug:e,log:e,info:e,warn:e,error:e}))(mo(e.print)):void 0:e.console;if(o&&o.log)for(let e of[`warn`,`error`])o[e]||M(o,e,{value:mo(o.log,o)});let s=t===`unsafe`?o:co(o,a),c=e.process||void 0;if(n!==`none`&&typeof c==`object`&&typeof c.on==`function`){let e;if(n===`platform`||n===`exit`){let{exit:t}=c;typeof t==`function`||po(`missing process.exit`),e=()=>t(c.exitCode||-1)}else n===`abort`&&(e=c.abort,typeof e==`function`||po(`missing process.abort`));c.on(`uncaughtException`,t=>{s.error(`SES_UNCAUGHT_EXCEPTION:`,t),e&&e()})}if(r!==`none`&&typeof c==`object`&&typeof c.on==`function`){let e=fo(e=>{s.error(`SES_UNHANDLED_REJECTION:`,e)});e&&(c.on(`unhandledRejection`,e.unhandledRejectionHandler),c.on(`rejectionHandled`,e.rejectionHandledHandler),c.on(`exit`,e.processTerminationHandler))}let l=e.window||void 0;if(n!==`none`&&typeof l==`object`&&typeof l.addEventListener==`function`&&l.addEventListener(`error`,e=>{e.preventDefault(),s.error(`SES_UNCAUGHT_EXCEPTION:`,e.error),(n===`exit`||n===`abort`)&&(l.location.href=`about:blank`)}),r!==`none`&&typeof l==`object`&&typeof l.addEventListener==`function`){let e=fo(e=>{s.error(`SES_UNHANDLED_REJECTION:`,e)});e&&(l.addEventListener(`unhandledrejection`,t=>{t.preventDefault(),e.unhandledRejectionHandler(t.reason,t.promise)}),l.addEventListener(`rejectionhandled`,t=>{t.preventDefault(),e.rejectionHandledHandler(t.promise)}),l.addEventListener(`beforeunload`,t=>{e.processTerminationHandler()}))}return{console:s}},go=[`getTypeName`,`getFunctionName`,`getMethodName`,`getFileName`,`getLineNumber`,`getColumnNumber`,`getEvalOrigin`,`isToplevel`,`isEval`,`isNative`,`isConstructor`,`isAsync`,`getPosition`,`getScriptNameOrSourceURL`,`toString`],_o=e=>T(_e(L(go,t=>{let n=e[t];return[t,()=>N(n,e,[])]})),{}),vo=e=>L(e,_o),yo=[B(/\/node_modules\//),B(/^(?:node:)?internal\//),B(/\/packages\/ses\/src\/error\/assert\.js$/),B(/\/packages\/eventual-send\/src\//),B(/\/packages\/ses-ava\/src\/ses-ava-test\.js$/)],bo=e=>{if(e===null)return!1;for(let t of yo)if(Ot(t,e)!==-1)return!1;return!0},xo=[B(/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/),B(/^((?:.*[( ])?)\.\.\.\/(.+)$/),B(/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/),B(/^((?:.*[( ])?)file:\/\/([^/].*)$/)],So=e=>{for(let t of xo){let n=Et(t,e);if(n)return st(ut(n,1),``)}return e},Co=(e,t,n,r)=>{if(n===`unsafe-debug`)throw w(`internal: v8+unsafe-debug special case should already be done`);let i=e.captureStackTrace,a=r===`concise`||r===`omit-frames`,o=r===`concise`||r===`shorten-paths`,s=e=>a?e.getFunctionName()?.startsWith(`__HIDE_`)?!1:bo(e.getFileName()):!0,c=e=>{let t=`${e}`;return o&&(t=So(t)),`\n at ${t}`},l=(e,t)=>st(L(it(t,s),c),``),u=new y,d={captureStackTrace(t,n=d.captureStackTrace){if(typeof i==`function`){N(i,e,[t,n]);return}Ve(t,`stack`,``)},getStackString(e){let t=V(u,e);if(t===void 0&&(e.stack,t=V(u,e),t||(t={stackString:``},H(u,e,t))),t.stackString!==void 0)return t.stackString;let n=l(e,t.callSites);return H(u,e,{stackString:n}),n},prepareStackTrace(e,t){if(n===`unsafe`){let n=l(e,t);return H(u,e,{stackString:n}),`${e}${n}`}else return H(u,e,{callSites:t}),``}},f=d.prepareStackTrace;e.prepareStackTrace=f;let p=new b([f]),m=e=>{if(Ht(p,e))return e;let t={prepareStackTrace(t,n){return H(u,t,{callSites:n}),e(t,vo(n))}};return Vt(p,t.prepareStackTrace),t.prepareStackTrace};return E(t,{captureStackTrace:{value:d.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},prepareStackTrace:{get(){return e.prepareStackTrace},set(t){typeof t==`function`?e.prepareStackTrace=m(t):e.prepareStackTrace=f},enumerable:!1,configurable:!0}}),d.getStackString},wo=O(x.prototype,`stack`),To=wo&&wo.get,Eo={getStackString(e){return typeof To==`function`?N(To,e,[]):`stack`in e?`${e.stack}`:``}}.getStackString;function Do(e=`safe`,t=`concise`){let n=x.prototype,{captureStackTrace:r}=x,i=typeof r==`function`?`v8`:`unknown`,a=(e={})=>{let t=function(...e){let n;return n=new.target===void 0?N(x,this,e):Pe(x,e,new.target),i===`v8`&&N(r,x,[n,t]),n};return E(t,{length:{value:1},prototype:{value:n,writable:!1,enumerable:!1,configurable:!1}}),t},o=a({powers:`original`}),s=a({powers:`none`});E(n,{constructor:{value:s}});for(let e of bi)he(e,s);if(E(o,{stackTraceLimit:{get(){if(typeof x.stackTraceLimit==`number`)return x.stackTraceLimit},set(e){if(typeof e==`number`&&typeof x.stackTraceLimit==`number`){x.stackTraceLimit=e;return}},enumerable:!1,configurable:!0}}),e===`unsafe-debug`&&i===`v8`){E(o,{prepareStackTrace:{get(){return x.prepareStackTrace},set(e){x.prepareStackTrace=e},enumerable:!1,configurable:!0},captureStackTrace:{value:x.captureStackTrace,writable:!0,enumerable:!1,configurable:!0}});let e=k(o);return E(s,{stackTraceLimit:e.stackTraceLimit,prepareStackTrace:e.prepareStackTrace,captureStackTrace:e.captureStackTrace}),{"%InitialGetStackString%":Eo,"%InitialError%":o,"%SharedError%":s}}return E(s,{stackTraceLimit:{get(){},set(e){},enumerable:!1,configurable:!0}}),i===`v8`&&E(s,{prepareStackTrace:{get(){return()=>``},set(e){},enumerable:!1,configurable:!0},captureStackTrace:{value:(e,t)=>{M(e,`stack`,{value:``})},writable:!1,enumerable:!1,configurable:!0}}),i===`v8`?Eo=Co(x,o,e,t):e===`unsafe`||e===`unsafe-debug`?E(n,{stack:{get(){return Eo(this)},set(e){E(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}):E(n,{stack:{get(){return`${this}`},set(e){E(this,{stack:{value:e,writable:!0,enumerable:!0,configurable:!0}})}}}),{"%InitialGetStackString%":Eo,"%InitialError%":o,"%SharedError%":s}}let Oo=()=>{},ko=async(e,t,n)=>{await null;let r=e(...t),i=Gt(r);for(;!i.done;)try{i=Gt(r,await i.value)}catch(e){i=Kt(r,n(e))}return i.value},Ao=(e,t)=>{let n=e(...t),r=Gt(n);for(;!r.done;)try{r=Gt(n,r.value)}catch(e){r=Kt(n,e)}return r.value},jo=(e,t)=>j({compartment:e,specifier:t}),Mo=(e,t,n)=>{let r=T(null);for(let i of e)r[i]=t(i,n);return j(r)},No=(e,t,n,r,i,a,o,s,c)=>{let{resolveHook:l,name:u}=V(e,n),{imports:d}=i;if(!He(d)||dt(d,e=>typeof e!=`string`))throw ti(K`Invalid module source: 'imports' must be an array of strings, got ${d} for module ${G(r)} of compartment ${G(u)}`);let f=Mo(d,l,r),p=j({compartment:n,moduleSource:i,moduleSpecifier:r,resolvedImports:f,importMeta:c});for(let r of ge(f))a(Fo,[e,t,n,r,a,o,s]);return p};function*Po(e,t,n,r,i,a,o){let{importHook:s,importNowHook:c,moduleMap:l,moduleMapHook:u,moduleRecords:d,parentCompartment:f}=V(e,n);if(vt(d,r))return _t(d,r);let p=l[r];if(p===void 0&&u!==void 0&&(p=u(r)),p===void 0){let e=a(s,c);if(e===void 0)throw ti(K`${Wr(a(`importHook`,`importNowHook`))} needed to load module ${G(r)} in compartment ${G(n.name)}`);p=e(r),Bt(t,p)||(p=yield p)}if(typeof p==`string`)throw ti(K`Cannot map module ${G(r)} to ${G(p)} in parent compartment, use {source} module descriptor`,w);if(Xt(p))throw ti(K`module descriptor must be a string or object for specifier ${G(r)} in compartment ${G(n.name)}`);{let s=V(t,p);if(s!==void 0&&(p=s),p.namespace!==void 0){if(typeof p.namespace==`string`){let{compartment:s=f,namespace:c}=p;if(Xt(s)||!Bt(e,s))throw ti(K`Invalid compartment in module descriptor for specifier ${G(r)} in compartment ${G(n.name)}`);let l=yield Fo(e,t,s,c,i,a,o);return z(d,r,l),l}if(Xt(p.namespace))throw ti(K`Invalid compartment in module descriptor for specifier ${G(r)} in compartment ${G(n.name)}`);{let{namespace:c}=p;if(s=V(t,c),s!==void 0)p=s;else{let s=oe(c),l=No(e,t,n,r,{imports:[],exports:s,execute(e){for(let t of s)e[t]=c[t]}},i,a,o,void 0);return z(d,r,l),l}}}if(p.source!==void 0)if(typeof p.source==`string`){let{source:s,specifier:c=r,compartment:l=f,importMeta:u=void 0}=p,{moduleSource:m}=yield Fo(e,t,l,s,i,a,o),h=No(e,t,n,c,m,i,a,o,u);return z(d,r,h),h}else{let{source:s,specifier:c=r,importMeta:l}=p,u=No(e,t,n,c,s,i,a,o,l);return z(d,r,u),u}if(p.archive!==void 0)throw ti(K`Unsupported archive module descriptor for specifier ${G(r)} in compartment ${G(n.name)}`);if(p.record!==void 0){let{compartment:s=n,specifier:c=r,record:l,importMeta:u}=p,f=No(e,t,s,c,l,i,a,o,u);return z(d,r,f),z(d,c,f),f}if(p.compartment!==void 0&&p.specifier!==void 0){if(Xt(p.compartment)||!Bt(e,p.compartment)||typeof p.specifier!=`string`)throw ti(K`Invalid compartment in module descriptor for specifier ${G(r)} in compartment ${G(n.name)}`);let s=yield Fo(e,t,p.compartment,p.specifier,i,a,o);return z(d,r,s),s}let c=No(e,t,n,r,p,i,a,o);return z(d,r,c),c}}let Fo=(e,t,n,r,i,a,o)=>{let{name:s}=V(e,n),l=_t(o,n);l===void 0&&(l=new c,z(o,n,l));let u=_t(l,r);return u===void 0?(u=a(ko,Ao)(Po,[e,t,n,r,i,a,o],e=>{throw ai(e,K`${e.message}, loading ${G(r)} in compartment ${G(s)}`),e}),z(l,r,u),u):u},Io=({errors:e=[],noAggregateErrors:t=!1}={})=>{let n=new ee;return{enqueueJob:(r,i)=>{St(n,Jt(r(...i),Oo,n=>{if(t)throw n;R(e,n)}))},drainQueue:async()=>{await null;for(let e of n)await e},errors:e}},Lo=({errors:e=[],noAggregateErrors:t=!1}={})=>{let n=[],r=[],i=(e,t)=>{R(r,[e,t])},a=()=>{for(let[r,i]of n)try{r(...i)}catch(n){if(t)throw n;R(e,n)}n=r,r=[],n.length>0&&a()};return{enqueueJob:i,drainQueue:a,errors:e}},Ro=({errors:e,errorPrefix:t})=>{if(e.length>0){let n=W(`COMPARTMENT_LOAD_ERRORS`,``,[`verbose`])===`verbose`;throw w(`${t} (${e.length} underlying failures: ${st(L(e,e=>e.message+(n?e.stack:``)),`, `)}`)}},zo=(e,t)=>t,Bo=(e,t)=>e,Vo=async(e,t,n,r,{noAggregateErrors:i=!1}={})=>{let{name:a}=V(e,n),o=new c,{enqueueJob:s,drainQueue:l,errors:u}=Io({noAggregateErrors:i});s(Fo,[e,t,n,r,s,Bo,o]),await l(),Ro({errors:u,errorPrefix:`Failed to load module ${G(r)} in package ${G(a)}`})},Ho=(e,t,n,r,{noAggregateErrors:i=!1}={})=>{let{name:a}=V(e,n),o=new c,{enqueueJob:s,drainQueue:l,errors:u}=Lo({noAggregateErrors:i});s(Fo,[e,t,n,r,s,zo,o]),l(),Ro({errors:u,errorPrefix:`Failed to load module ${G(r)} in package ${G(a)}`})},{quote:Uo}=q,Wo=()=>{let e=!1,t=T(null,{[ye]:{value:`Module`,writable:!1,enumerable:!1,configurable:!1}});return j({activate(){e=!0},exportsTarget:t,exportsProxy:new m(t,{get(n,r,i){if(!e)throw w(`Cannot get property ${Uo(r)} of module exports namespace, the module has not yet begun to execute`);return Fe(t,r,i)},set(e,t,n){throw w(`Cannot set property ${Uo(t)} of module exports namespace`)},has(n,r){if(!e)throw w(`Cannot check property ${Uo(r)}, the module has not yet begun to execute`);return Le(t,r)},deleteProperty(e,t){throw w(`Cannot delete property ${Uo(t)}s of module exports namespace`)},ownKeys(n){if(!e)throw w(`Cannot enumerate keys, the module has not yet begun to execute`);return ze(t)},getOwnPropertyDescriptor(n,r){if(!e)throw w(`Cannot get own property descriptor ${Uo(r)}, the module has not yet begun to execute`);return Ie(t,r)},preventExtensions(n){if(!e)throw w(`Cannot prevent extensions of module exports namespace, the module has not yet begun to execute`);return Be(t)},isExtensible(){if(!e)throw w(`Cannot check extensibility of module exports namespace, the module has not yet begun to execute`);return Re(t)},getPrototypeOf(e){return null},setPrototypeOf(e,t){throw w(`Cannot set prototype of module exports namespace`)},defineProperty(e,t,n){throw w(`Cannot define property ${Uo(t)} of module exports namespace`)},apply(e,t,n){throw w(`Cannot call module exports namespace, it is not a function`)},construct(e,t){throw w(`Cannot construct module exports namespace, it is not a constructor`)}})})},Go=(e,t,n,r)=>{let{deferredExports:i}=t;if(!vt(i,r)){let t=Wo();H(n,t.exportsProxy,jo(e,r)),z(i,r,t)}return _t(i,r)},Ko=(e,t)=>{let{sloppyGlobalsMode:n=!1,__moduleShimLexicals__:r=void 0}=t,i;if(r===void 0&&!n)({safeEvaluate:i}=e);else{let{globalTransforms:t}=e,{globalObject:a}=e,o;r!==void 0&&(t=void 0,o=T(null,k(r))),{safeEvaluate:i}=Qa({globalObject:a,moduleLexicals:o,globalTransforms:t,sloppyGlobalsMode:n})}return{safeEvaluate:i}},qo=(e,t,n)=>{if(typeof t!=`string`)throw w(`first argument of evaluate() must be a string`);let{transforms:r=[],__evadeHtmlCommentTest__:i=!1,__evadeImportExpressionTest__:a=!1,__rejectSomeDirectEvalExpressions__:o=!0}=n,s=[...r];i===!0&&R(s,Ia),a===!0&&R(s,za),o===!0&&R(s,Va);let{safeEvaluate:c}=Ko(e,n);return c(t,{localTransforms:s})},{quote:Jo}=q,Yo=(e,t,n,r,i,a)=>{let{exportsProxy:o,exportsTarget:s,activate:c}=Go(n,V(e,n),r,i),l=T(null);if(t.exports){if(!He(t.exports)||dt(t.exports,e=>typeof e!=`string`))throw w(`SES virtual module source "exports" property must be an array of strings for module ${i}`);at(t.exports,e=>{let t=s[e],n=[];M(s,e,{get:()=>t,set:e=>{t=e;for(let t of n)t(e)},enumerable:!0,configurable:!1}),l[e]=e=>{R(n,e),e(t)}}),l[`*`]=e=>{e(s)}}let u={activated:!1};return j({notifiers:l,exportsProxy:o,execute(){if(Le(u,`errorFromExecute`))throw u.errorFromExecute;if(!u.activated){c(),u.activated=!0;try{t.execute(s,n,a)}catch(e){throw u.errorFromExecute=e,e}}}})},Xo=(e,t,n,r)=>{let{compartment:i,moduleSpecifier:a,moduleSource:o,importMeta:s}=n,{reexports:c=[],__syncModuleProgram__:l,__fixedExportMap__:u={},__liveExportMap__:d={},__reexportMap__:f={},__needsImport__:p=!1,__needsImportMeta__:m=!1,__syncModuleFunctor__:h}=o,g=V(e,i),{__shimTransforms__:ee,resolveHook:_,importMetaHook:v,compartmentImport:te}=g,{exportsProxy:y,exportsTarget:b,activate:ne}=Go(i,g,t,a),x=T(null),S=T(null),ie=T(null),E=T(null),O=T(null);s&&ae(O,s),m&&v&&v(a,O);let k;p&&(k=async e=>te(_(e,a)));let oe=T(null),A=T(null);at(D(u),([e,[t]])=>{let n=oe[t];if(!n){let e,r=!0,i=[],a=()=>{if(r)throw C(`binding ${Jo(t)} not yet initialized`);return e},o=j(n=>{if(!r)throw w(`Internal: binding ${Jo(t)} already initialized`);e=n;let a=i;i=null,r=!1;for(let e of a||[])e(n);return n});n={get:a,notify:t=>{t!==o&&(r?R(i||[],t):t(e))}},oe[t]=n,ie[t]=o}x[e]={get:n.get,set:void 0,enumerable:!0,configurable:!1},A[e]=n.notify}),at(D(d),([e,[t,n]])=>{let r=oe[t];if(!r){let i,a=!0,o=[],s=()=>{if(a)throw C(`binding ${Jo(e)} not yet initialized`);return i},c=j(e=>{i=e,a=!1;for(let t of o)t(e)});r={get:s,notify:e=>{e!==c&&(R(o,e),a||e(i))}},oe[t]=r,n&&M(S,t,{get:s,set:e=>{if(a)throw C(`binding ${Jo(t)} not yet initialized`);i=e;for(let t of o)t(e)},enumerable:!0,configurable:!1}),E[t]=c}x[e]={get:r.get,set:void 0,enumerable:!0,configurable:!1},A[e]=r.notify}),A[`*`]=e=>{e(b)};let se=(e,t)=>{if(!A[e]&&t!==!1){A[e]=t;let n;t(e=>n=e),x[e]={get(){return n},set:void 0,enumerable:!0,configurable:!1}}};function ce(e){let t=T(null);t.default=!1;for(let[n,i]of e){let e=_t(r,n);e.execute();let{notifiers:a}=e;for(let[e,t]of i){let r=a[e];if(!r)throw re(`The requested module '${n}' does not provide an export named '${e}'`);for(let e of t)r(e)}if(ot(c,n))for(let[e,n]of D(a))t[e]===void 0?t[e]=n:t[e]=!1;if(f[n])for(let[e,t]of f[n])se(t,a[e])}for(let[e,n]of D(t))se(e,n);at(ft(de(x)),e=>M(b,e,x[e])),j(b),ne()}let le;le=h===void 0?qo(g,l,{globalObject:i.globalThis,transforms:ee,__moduleShimLexicals__:S}):h;let ue=!1,fe;function pe(){if(le){let e=le;le=null;try{e(j({imports:j(ce),onceVar:j(ie),liveVar:j(E),import:k,importMeta:O}))}catch(e){ue=!0,fe=e}}if(ue)throw fe}return j({notifiers:A,exportsProxy:y,execute:pe})},{Fail:Zo,quote:Z}=q,Qo=(e,t,n,r)=>{let{name:i,moduleRecords:a}=V(e,n),o=_t(a,r);if(o===void 0)throw C(`Missing link to module ${Z(r)} from compartment ${Z(i)}`);return is(e,t,o)};function $o(e){return typeof e.__syncModuleProgram__==`string`}function es(e,t){let{__fixedExportMap__:n,__liveExportMap__:r}=e;!Xt(n)||Zo`Property '__fixedExportMap__' of a precompiled module source must be an object, got ${Z(n)}, for module ${Z(t)}`,!Xt(r)||Zo`Property '__liveExportMap__' of a precompiled module source must be an object, got ${Z(r)}, for module ${Z(t)}`}function ts(e){return typeof e.execute==`function`}function ns(e,t){let{exports:n}=e;He(n)||Zo`Invalid module source: 'exports' of a virtual module source must be an array, got ${Z(n)}, for module ${Z(t)}`}function rs(e,t){!Xt(e)||Zo`Invalid module source: must be of type object, got ${Z(e)}, for module ${Z(t)}`;let{imports:n,exports:r,reexports:i=[]}=e;He(n)||Zo`Invalid module source: 'imports' must be an array, got ${Z(n)}, for module ${Z(t)}`,He(r)||Zo`Invalid module source: 'exports' must be an array, got ${Z(r)}, for module ${Z(t)}`,He(i)||Zo`Invalid module source: 'reexports' must be an array if present, got ${Z(i)}, for module ${Z(t)}`}let is=(e,t,n)=>{let{compartment:r,moduleSpecifier:i,resolvedImports:a,moduleSource:o}=n,{instances:s}=V(e,r);if(vt(s,i))return _t(s,i);rs(o,i);let l=new c,u;if($o(o))es(o,i),u=Xo(e,t,n,l);else if(ts(o))ns(o,i),u=Yo(e,o,r,t,i,a);else throw w(`Invalid module source, got ${Z(o)}`);z(s,i,u);for(let[n,i]of D(a))z(l,n,Qo(e,t,r,i));return u},as=new y,Q=new y,os=function(e={},t={},n={}){throw w(`Compartment.prototype.constructor is not a valid constructor.`)},ss=(e,t)=>{let{execute:n,exportsProxy:r}=Qo(Q,as,e,t);return n(),r},cs={constructor:os,get globalThis(){return V(Q,this).globalObject},get name(){return V(Q,this).name},evaluate(e,t={}){return qo(V(Q,this),e,t)},module(e){if(typeof e!=`string`)throw w(`first argument of module() must be a string`);let{exportsProxy:t}=Go(this,V(Q,this),as,e);return t},async import(e){let{noNamespaceBox:t,noAggregateLoadErrors:n}=V(Q,this);if(typeof e!=`string`)throw w(`first argument of import() must be a string`);return Jt(Vo(Q,as,this,e,{noAggregateErrors:n}),()=>{let n=ss(this,e);return t?n:{namespace:n}})},async load(e){if(typeof e!=`string`)throw w(`first argument of load() must be a string`);let{noAggregateLoadErrors:t}=V(Q,this);return Vo(Q,as,this,e,{noAggregateErrors:t})},importNow(e){if(typeof e!=`string`)throw w(`first argument of importNow() must be a string`);let{noAggregateLoadErrors:t}=V(Q,this);return Ho(Q,as,this,e,{noAggregateErrors:t}),ss(this,e)}};E(cs,{[ye]:{value:`Compartment`,writable:!1,enumerable:!1,configurable:!0}}),E(os,{prototype:{value:cs}});let ls=(...e)=>{if(e.length===0)return{};if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&`__options__`in e[0]){let{__options__:t,...n}=e[0];return q(t===!0,`Compartment constructor only supports true __options__ sigil, got ${t}`),n}else{let[t={},n={},r={}]=e;return ci(r.modules,void 0,`Compartment constructor must receive either a module map argument or modules option, not both`),ci(r.globals,void 0,`Compartment constructor must receive either globals argument or option, not both`),{...r,globals:t,modules:n}}},us=(e,t,n,{parentCompartment:r=void 0,enforceNew:i=!1}={})=>{function a(...a){if(i&&new.target===void 0)throw w(`Class constructor Compartment cannot be invoked without 'new'`);let{name:o=`<unknown>`,transforms:s=[],__shimTransforms__:l=[],globals:u={},modules:d={},resolveHook:f,importHook:p,importNowHook:m,moduleMapHook:h,importMetaHook:g,__noNamespaceBox__:ee=!1,noAggregateLoadErrors:_=!1}=ls(...a),v=ct([s,l],Qt),te={__proto__:null,...u},y={__proto__:null,...d},b=new c,ne=new c,x=new c,S={},C=this;ga(S),_a(S);let{safeEvaluate:re}=Qa({globalObject:S,globalTransforms:v,sloppyGlobalsMode:!1});va(S,{intrinsics:t,newGlobalPropertyNames:yi,makeCompartmentConstructor:e,parentCompartment:C,markVirtualizedNativeFunction:n}),ya(S,re,n),ae(S,te),H(Q,C,{name:`${o}`,globalTransforms:v,globalObject:S,safeEvaluate:re,resolveHook:f,importHook:p,importNowHook:m,moduleMap:y,moduleMapHook:h,importMetaHook:g,moduleRecords:b,__shimTransforms__:l,deferredExports:x,instances:ne,parentCompartment:r,noNamespaceBox:ee,compartmentImport:async e=>{if(typeof f!=`function`)throw w(`Compartment does not support dynamic import: no configured resolveHook for compartment ${G(o)}`);await Vo(Q,as,C,e,{noAggregateErrors:_});let{execute:t,exportsProxy:n}=Qo(Q,as,C,e);return t(),n},noAggregateLoadErrors:_})}return a.prototype=cs,a};function ds(e){return A(e).constructor}function fs(){return arguments}let ps=()=>{let t=U.prototype.constructor,r=O(fs(),`callee`),i=r&&r.get,o=A(Rt(new _)),s=qe[xe]&&kt(/./,``),l=s&&A(s),u=A(pt([])),d=A(a),f=A(xt(new c)),p=A(Tt(new ee)),m=A(u);function*h(){}let g=ds(h),v=g.prototype;async function te(){}let y={"%InertFunction%":t,"%ArrayIteratorPrototype%":u,"%InertAsyncFunction%":ds(te),"%Generator%":v,"%InertGeneratorFunction%":g,"%IteratorPrototype%":m,"%MapIteratorPrototype%":f,"%RegExpStringIteratorPrototype%":l,"%SetIteratorPrototype%":p,"%StringIteratorPrototype%":o,"%ThrowTypeError%":i,"%TypedArray%":d,"%InertCompartment%":os};if(ln!==void 0){let e=ds(ln),t=e.prototype,n=t.prototype;ae(y,{"%AsyncGenerator%":t,"%InertAsyncGeneratorFunction%":e,"%AsyncGeneratorPrototype%":n,"%AsyncIteratorPrototype%":A(n)})}e.Iterator&&(y[`%IteratorHelperPrototype%`]=A(e.Iterator.from([]).take(0)),y[`%WrapForValidIteratorPrototype%`]=A(e.Iterator.from({next(){return{value:void 0}}}))),e.AsyncIterator&&(y[`%AsyncIteratorHelperPrototype%`]=A(e.AsyncIterator.from([]).take(0)),y[`%WrapForValidAsyncIteratorPrototype%`]=A(e.AsyncIterator.from({next(){}})));let b=A(new n(0).sliceToImmutable());return b!==n.prototype&&(y[`%ImmutableArrayBufferPrototype%`]=b),y},ms=(e,t)=>{if(t===`safe`||(Object.isExtensible=()=>!1,Object.isFrozen=()=>!0,Object.isSealed=()=>!0,Reflect.isExtensible=()=>!1,e.isFake))return e;let n=e=>e;return n.isFake=!0,j(n)};j(ms);let hs=()=>{let e=v,t=e.prototype,n=Wt(v,void 0);return E(t,{constructor:{value:n}}),E(n,_e(L(D(k(e)),([e,t])=>[e,{...t,configurable:!0}]))),{"%SharedSymbol%":n}},gs=e=>{try{return e(),!1}catch{return!0}},_s=(e,t,n)=>{if(e===void 0)return!1;let r=O(e,t);if(!r||`value`in r)return!1;let{get:i,set:a}=r;if(typeof i!=`function`||typeof a!=`function`||i()!==n||N(i,e,[])!==n)return!1;let o=`Seems to be a setter`,s={__proto__:null};if(N(a,s,[o]),s[t]!==o)return!1;let c={__proto__:e};return N(a,c,[o]),c[t]!==o||!gs(()=>N(a,e,[n]))||`originalValue`in i||r.configurable===!1?!1:(M(e,t,{value:n,writable:!0,enumerable:r.enumerable,configurable:!0}),!0)},vs=e=>{_s(e[`%IteratorPrototype%`],`constructor`,e.Iterator),_s(e[`%IteratorPrototype%`],ye,`Iterator`)},ys=()=>{let e=tt[be];M(tt,be,{configurable:!0,get(){return e},set(e){this!==tt&&(I(this,be)&&(this[be]=e),M(this,be,{value:e,writable:!0,enumerable:!0,configurable:!0}))}})},bs=()=>{if(typeof Ue.transfer==`function`)return{};let t=e.structuredClone;return typeof t==`function`&&M(Ue,`transfer`,{value:{transfer(e=void 0){let r=ht(this);if(e===void 0||e===r)return t(this,{transfer:[this]});if(typeof e!=`number`)throw w(`transfer newLength if provided must be a number`);if(e>r){let r=new n(e),i=new te(this);return gt(new te(r),i),t(this,{transfer:[this]}),r}else{let n=mt(this,0,e);return t(this,{transfer:[this]}),n}}}.transfer,writable:!0,enumerable:!1,configurable:!0}),{}},xs={warn(...t){e.console.warn(...t)},error(...t){e.console.error(...t)},...e.console?.groupCollapsed?{groupCollapsed(...t){e.console.groupCollapsed(...t)}}:void 0,...e.console?.groupEnd?{groupEnd(){e.console.groupEnd()}}:void 0},Ss=e=>{let t=!1,n=(...n)=>{t?e(` `,...n):e(...n)};return{warn(...e){n(...e)},error(...e){n(...e)},groupCollapsed(...n){q(!t),e(...n),t=!0},groupEnd(){t=!1}}},Cs=()=>{},ws=t=>t===`none`?Ss(Cs):e.console===void 0?e.print===void 0?Ss(Cs):Ss(e.print):t===`console`||e.window===e||e.importScripts!==void 0?xs:(q(t===`platform`),Ss(xs.error)),Ts=(e,t,n)=>{let{warn:r,error:i,groupCollapsed:a,groupEnd:o}=t,s=a&&o,c=!1;try{return n({warn(...t){s&&!c&&(a(e),c=!0),r(...t)},error(...t){s&&!c&&(a(e),c=!0),i(...t)}})}finally{s&&c&&(o(),c=!1)}},{Fail:Es,details:Ds,quote:Os}=q,ks,As,js=mi(),Ms=()=>{let t;try{t=U(`return true`)()}catch{t=!1}let n;try{n=$t(`true`)}catch{n=!1}let r;return t&&n&&(r=U(`eval`,`SES_changed`,` eval("SES_changed = true");
24
+ return SES_changed;
25
+ `)($t,!1),r||delete e.SES_changed),{functionAllowed:t,evalAllowed:n,directEvalAllowed:r}},Ns=(t={})=>{let{errorTaming:n=W(`LOCKDOWN_ERROR_TAMING`,`safe`,[`unsafe`,`unsafe-debug`]),errorTrapping:r=W(`LOCKDOWN_ERROR_TRAPPING`,`platform`,[`none`,`report`,`abort`,`exit`]),reporting:i=W(`LOCKDOWN_REPORTING`,`platform`,[`console`,`none`]),unhandledRejectionTrapping:a=W(`LOCKDOWN_UNHANDLED_REJECTION_TRAPPING`,`report`,[`none`]),regExpTaming:o=W(`LOCKDOWN_REGEXP_TAMING`,`safe`,[`unsafe`]),localeTaming:s=W(`LOCKDOWN_LOCALE_TAMING`,`safe`,[`unsafe`]),consoleTaming:c=W(`LOCKDOWN_CONSOLE_TAMING`,`safe`,[`unsafe`]),overrideTaming:l=W(`LOCKDOWN_OVERRIDE_TAMING`,`moderate`,[`min`,`severe`]),stackFiltering:u=W(`LOCKDOWN_STACK_FILTERING`,`concise`,[`omit-frames`,`shorten-paths`,`verbose`]),domainTaming:d=W(`LOCKDOWN_DOMAIN_TAMING`,`safe`,[`unsafe`]),evalTaming:f=W(`LOCKDOWN_EVAL_TAMING`,`safe-eval`,[`unsafe-eval`,`no-eval`,`safeEval`,`unsafeEval`,`noEval`]),overrideDebug:p=it(It(W(`LOCKDOWN_OVERRIDE_DEBUG`,``),`,`),e=>e!==``),legacyRegeneratorRuntimeTaming:m=W(`LOCKDOWN_LEGACY_REGENERATOR_RUNTIME_TAMING`,`safe`,[`unsafe-ignore`]),__hardenTaming__:h=W(`LOCKDOWN_HARDEN_TAMING`,`safe`,[`unsafe`]),dateTaming:g,mathTaming:ee,..._}=t,v=ze(_);v.length===0||Es`lockdown(): non supported option ${Os(v)}`;let te=ws(i),{warn:y}=te;g!==void 0&&y(`SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error.`),ee!==void 0&&y(`SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error.`),ks===void 0||q.fail(Ds`Already locked down at ${ks} (SES_ALREADY_LOCKED_DOWN)`,w),ks=w(`Prior lockdown (SES_ALREADY_LOCKED_DOWN)`),ks.stack;let{functionAllowed:b,evalAllowed:ne,directEvalAllowed:x}=Ms();if(x===!1&&f===`safe-eval`&&(b||ne))throw w(`SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct eval (dynamically scoped eval) (SES_DIRECT_EVAL)`);if(e.Function.prototype.constructor!==e.Function&&typeof e.harden==`function`&&typeof e.lockdown==`function`&&e.Date.prototype.constructor!==e.Date&&typeof e.Date.now==`function`&&se(e.Date.prototype.constructor.now(),NaN))throw w(`Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)`);to(d);let S=eo(),{addIntrinsics:C,completePrototypes:re,finalIntrinsics:ie}=Ii(te),ae=ms(js,h);C({harden:ae}),C(zi()),C(Bi()),C(Do(n,u)),C(Vi()),C(Hi()),ea(),C(ta(o)),C(hs()),C(bs()),C(no()),C(ps()),re();let T=ie(),E=Ee(`harden`),D=T.Object[E];if(D)throw D.lockdownError?D.lockdownError:new w(`Cannot lockdown (repairIntrinsics) if a prior harden implementation has been used and installed. Check for libraries using @endo/harden before lockdown.`);T.Object[E]=ae;let O={__proto__:null};typeof e.Buffer==`function`&&(O.Buffer=e.Buffer);let k;n===`safe`&&(k=T[`%InitialGetStackString%`]);let ce=ho(c,r,a,k);if(e.console=ce.console,typeof ce.console._times==`object`&&(O.SafeMap=A(ce.console._times)),n!==`unsafe`&&n!==`unsafe-debug`&&(e.assert=si()),fa(T,s),vs(T),Ts(`SES Removing unpermitted intrinsics`,te,e=>Ri(T,S,e)),_a(e),va(e,{intrinsics:T,newGlobalPropertyNames:vi,makeCompartmentConstructor:us,markVirtualizedNativeFunction:S}),f===`no-eval`||f===`noEval`)ya(e,en,S);else if(f===`safe-eval`||f===`safeEval`){let{safeEvaluate:t}=Qa({globalObject:e});ya(e,t,S)}return()=>{As===void 0||q.fail(Ds`Already locked down at ${As} (SES_ALREADY_LOCKED_DOWN)`,w),As=w(`Prior lockdown (SES_ALREADY_LOCKED_DOWN)`),As.stack,Ts(`SES Enabling property overrides`,te,e=>aa(T,l,e,p)),m===`unsafe-ignore`&&ys();let t={intrinsics:T,hostIntrinsics:O,globals:{Function:e.Function,eval:e.eval,Compartment:e.Compartment,Symbol:e.Symbol}};for(let n of oe(vi))t.globals[n]=e[n];return ae(t),ae}};e.lockdown=t=>{e.harden=Ns(t)()},e.repairIntrinsics=t=>{let n=Ns(t);e.hardenIntrinsics=()=>{e.harden=n()}};let Ps=eo();e.Compartment=us(us,Li(e,ws(`none`)),Ps,{enforceNew:!0}),e.assert=si(void 0,!0);let Fs=uo(oi),Is=Ee(`MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA`);e[Is]=Fs;let Ls=new Set([`__proto__`,`prototype`,`constructor`]);function $(e){let t=new WeakSet,n=0,r=0,i=e=>{if(r+=e.length*2,r>2e6)throw Error(`Runtime value exceeds the byte limit.`)},a=(e,r)=>{if(n+=1,n>1e4)throw Error(`Runtime value exceeds the node limit.`);if(r>32)throw Error(`Runtime value exceeds the depth limit.`);if(e==null||typeof e==`boolean`||typeof e==`string`)return typeof e==`string`&&i(e),e;if(typeof e==`number`){if(!Number.isFinite(e))throw Error(`Runtime value contains a non-finite number.`);return e}if(typeof e!=`object`)throw Error(`Runtime value contains unsupported type "${typeof e}".`);if(t.has(e))throw Error(`Runtime value contains a cycle.`);if(t.add(e),Array.isArray(e)){let n=e.map(e=>a(e,r+1));return t.delete(e),n}let o=Object.getPrototypeOf(e);if(o!==Object.prototype&&o!==null)throw Error(`Runtime value must contain plain objects only.`);let s=Object.create(null);for(let[t,n]of Object.entries(e)){if(Ls.has(t))throw Error(`Runtime value contains forbidden key "${t}".`);i(t),s[t]=a(n,r+1)}return t.delete(e),s};return a(e,0)}let Rs=new Set([`__proto__`,`prototype`,`constructor`]),zs=performance.now();lockdown();let Bs=performance.now()-zs,Vs=1,Hs=new Map,Us=new Set,Ws=new Map,Gs=new Map,Ks=new Map,qs=new Map,Js=new Map,Ys=Object.create(null);function Xs(e){self.postMessage(e)}function Zs(e){return e instanceof Error&&e.message?e.message:String(e||`Unknown script runtime error.`)}function Qs(e,t){if(!e)throw Error(`Every runtime definition requires an id.`);if(t.has(e))throw Error(`Duplicate runtime definition id "${e}".`);t.add(e)}function $s(e,t){if(t.length>5e4)throw Error(`Script "${e}" exceeds the source length limit.`)}function ec(e,t,n){$s(t,n);let r=e.evaluate(`(${n}\n)`);if(typeof r!=`function`)throw Error(`Script "${t}" must evaluate to a function.`);return harden(r)}function tc(e,t){let n=Js.get(e);if(!n?.length)return;Us.add(t);let r=Object.create(null);for(let i of n){let n=qs.get(i);if(!n)throw Error(`Unknown host endowment "${i}".`);let a=Object.create(null);for(let[e,t]of Object.entries(n.values))a[e]=harden($(t));for(let r of n.methods)a[r]=harden((...n)=>{if(!Us.has(t))return Promise.reject(Error(`These host endowments are no longer active.`));let a=Vs++,o=n.map(e=>$(e)),s=new Promise((e,n)=>{Hs.set(a,{ownerId:t,resolve:e,reject:n})});return Xs({type:`endowment-call`,callId:a,ownerId:t,definitionId:e,endowment:i,method:r,args:o}),s});r[i]=harden(a)}return harden(r)}function nc(e,t=`Async resource was superseded.`){Us.delete(e);for(let[n,r]of Hs)r.ownerId===e&&(Hs.delete(n),r.reject(Error(t)),Xs({type:`endowment-cancel`,callId:n}))}function rc(e){return JSON.stringify(e)}function ic(e,t){return e.length<=t.length&&e.every((e,n)=>e===t[n])}function ac(e,t){return ic(e,t)||ic(t,e)}function oc(e,t){return t.some(t=>e.some(e=>ac(e,t)))}function sc(e){let t=[...e.values()];return t.filter(e=>!t.some(t=>t.length>e.length&&ic(e,t)))}function cc(e){let t=new Map,n=e=>{e.length>0&&t.set(rc(e),e)},r=(e,t)=>!e||typeof e!=`object`?e:new Proxy(e,{get(e,i,a){let o=Reflect.get(e,i,a);if(typeof i==`string`&&typeof o!=`function`){let e=[...t,i];return n(e),r(o,e)}return o},getOwnPropertyDescriptor(e,i){let a=Reflect.getOwnPropertyDescriptor(e,i);if(!a||typeof i!=`string`||!(`value`in a))return a;let o=[...t,i];return n(o),{...a,value:r(a.value,o)}},ownKeys(e){return n(t),Reflect.ownKeys(e)},set(){throw TypeError(`Runtime scope is read-only.`)},defineProperty(){throw TypeError(`Runtime scope is read-only.`)},deleteProperty(){throw TypeError(`Runtime scope is read-only.`)},setPrototypeOf(){throw TypeError(`Runtime scope is read-only.`)},preventExtensions(){throw TypeError(`Runtime scope is read-only.`)}});return{scope:r(e,[]),dependencies:()=>sc(t)}}function lc(){let e=Object.create(null);for(let[t,n]of Ks)e[t]=$(n.state);return e}function uc(){let e=$(Ys);if(!e||typeof e!=`object`||Array.isArray(e))throw Error(`Reactive runtime state must be a plain object.`);let t=e;return t.resources=lc(),t}function dc(e,t){if(Object.is(e,t))return!0;if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>dc(e,t[n]));let n=Object.entries(e),r=Object.entries(t);return n.length===r.length&&n.every(([e,n])=>Object.hasOwn(t,e)&&dc(n,t[e]))}function fc(e){Xs({type:`reactive-update`,update:e})}let pc=[],mc=!1,hc;function gc(e,t,n){e.state=t,fc({kind:`resource`,id:e.definition.id,state:$(t),dependencies:e.dependencies,durationMs:n}),bc([[`resources`,e.definition.id]])}function _c(e,t){e.generation+=1;let n=e.generation;e.timer&&clearTimeout(e.timer),e.activeOwnerId&&nc(e.activeOwnerId),e.activeOwnerId=void 0,gc(e,{status:`pending`,value:e.state.value,runId:n});let r=Math.min(6e4,Math.max(0,e.definition.debounceMs??0));e.timer=setTimeout(()=>{if(e.timer=void 0,n!==e.generation)return;let r=`resource:${e.definition.id}:${n}`;e.activeOwnerId=r;let i=performance.now(),a;try{a=e.run(harden($(t)),tc(e.definition.id,r))}catch(e){a=Promise.reject(e)}Promise.resolve(a).then(t=>{n===e.generation&&(nc(r,`Async resource completed.`),e.activeOwnerId=void 0,gc(e,{status:`success`,value:$(t),runId:n},performance.now()-i))},t=>{n===e.generation&&(nc(r,`Async resource failed.`),e.activeOwnerId=void 0,gc(e,{status:`error`,error:Zs(t),runId:n},performance.now()-i))})},r)}function vc(e,t){let n=cc(t),r=$(e.selectInputs(n.scope));e.dependencies=n.dependencies();let i=!e.hasInputs||!dc(e.input,r);e.hasInputs=!0,e.input=r,hc?.evaluatedResourceInputs.push(e.definition.id),i&&_c(e,r)}function yc(e,t){let n=performance.now(),r=cc(t),i=$(e.evaluate(r.scope));e.dependencies=r.dependencies(),e.hasRun=!0,hc?.evaluatedBindings.push(e.definition.id),fc({kind:`binding`,id:e.definition.id,value:i,dependencies:e.dependencies,durationMs:performance.now()-n})}function bc(e){if(pc.push(...e),mc)return;mc=!0;let t=0;try{for(;pc.length>0;){if(t+=1,t>100)throw Error(`Reactive runtime exceeded its cascading update limit.`);let e=pc;pc=[];let n=uc();for(let t of Ks.values())(!t.hasInputs||oc(t.dependencies,e))&&vc(t,n);for(let t of Gs.values())(!t.hasRun||oc(t.dependencies,e))&&yc(t,n)}}finally{mc=!1}}function xc(e,t){if(!t.path.length)throw Error(`Runtime state patches require a non-empty path.`);if(t.path.some(e=>!e||Rs.has(e)))throw Error(`Runtime state patch contains an invalid path.`);if(!e||typeof e!=`object`)throw Error(`Runtime state must be an object.`);let n=e;for(let e of t.path.slice(0,-1)){let t=n[e];if(!t||typeof t!=`object`||Array.isArray(t))throw Error(`Runtime state patch parent "${e}" does not exist.`);n=t}let r=t.path[t.path.length-1];t.op===`delete`?delete n[r]:n[r]=$(t.value)}function Sc(e,t,n){let r=performance.now(),i={durationMs:0,evaluatedBindings:[],evaluatedResourceInputs:[]};try{t!==void 0&&(Ys=$(t));let a=t===void 0?[]:[[]];for(let e of n??[])xc(Ys,e),a.push(e.path);hc=i,a.length>0&&bc(a),i.durationMs=performance.now()-r,Xs({type:`state-updated`,requestId:e,metrics:i})}catch(t){Xs({type:`failure`,requestId:e,error:Zs(t)})}finally{hc=void 0}}function Cc(e){let t=Ks.get(e);t&&(t.generation+=1,t.timer&&clearTimeout(t.timer),t.activeOwnerId&&nc(t.activeOwnerId,`Async resource was cancelled.`),t.timer=void 0,t.activeOwnerId=void 0,gc(t,{status:`idle`,runId:t.generation}))}async function wc(e,t,n,r){try{for(let e of Ks.values())e.timer&&clearTimeout(e.timer),e.activeOwnerId&&nc(e.activeOwnerId);let i=performance.now(),a=new Compartment({eval:void 0,Function:void 0});harden(a.globalThis);let o=performance.now()-i,s=performance.now(),c=new Set,l=new Map,u=new Map,d=new Map,f=new Map,p=new Map;for(let e of n){if(!e.name||Rs.has(e.name))throw Error(`Host endowment has an invalid name.`);if(f.has(e.name))throw Error(`Duplicate host endowment "${e.name}".`);let t=[...e.methods,...Object.keys(e.values)];if(t.some(e=>!e||Rs.has(e))||new Set(t).size!==t.length)throw Error(`Host endowment "${e.name}" has invalid members.`);f.set(e.name,{name:e.name,methods:[...e.methods],values:$(e.values)})}for(let[e,t]of Object.entries(r)){if(!Array.isArray(t)||t.some(e=>typeof e!=`string`||!e))throw Error(`Endowment grants for "${e}" are malformed.`);if(t.some(e=>!f.has(e)))throw Error(`Endowment grants for "${e}" reference an unknown object.`);p.set(e,harden([...new Set(t)]))}for(let e of t)if(Qs(e.id,c),e.kind===`binding`)u.set(e.id,{definition:e,evaluate:ec(a,e.id,e.source),dependencies:[],hasRun:!1});else if(e.kind===`resource`)d.set(e.id,{definition:e,selectInputs:ec(a,`${e.id}.inputs`,e.inputsSource),run:ec(a,e.id,e.source),dependencies:[],hasInputs:!1,state:{status:`idle`,runId:0},generation:0});else{let t=e;l.set(t.id,ec(a,t.id,t.source))}for(let[e,t]of p){if(!c.has(e))throw Error(`Endowments were granted to unknown definition "${e}".`);if(t.length>0&&u.has(e))throw Error(`Bindings cannot receive host endowments ("${e}").`)}Ws=l,Gs=u,Ks=d,qs=f,Js=p,pc=[],Xs({type:`initialized`,requestId:e,metrics:{compartmentMs:o,compileMs:performance.now()-s,scriptCount:Ws.size,bindingCount:Gs.size,resourceCount:Ks.size}})}catch(t){Xs({type:`failure`,requestId:e,error:Zs(t)})}}async function Tc(e,t,n){let r=Ws.get(t);if(!r){Xs({type:`failure`,requestId:e,error:`Unknown script "${t}".`});return}let i=`invoke:${e}`;try{let a=performance.now();Xs({type:`result`,requestId:e,value:$(await r(harden(n),tc(t,i))),durationMs:performance.now()-a})}catch(t){Xs({type:`failure`,requestId:e,error:Zs(t)})}finally{nc(i,`Script invocation completed.`)}}self.addEventListener(`message`,e=>{let t=e.data;if(t.type===`initialize`)wc(t.requestId,t.definitions,t.endowments,t.endowmentGrants);else if(t.type===`invoke`)Tc(t.requestId,t.scriptId,t.input);else if(t.type===`set-state`)Sc(t.requestId,t.state);else if(t.type===`patch-state`)Sc(t.requestId,void 0,t.patches);else if(t.type===`cancel-resource`)Cc(t.resourceId);else if(t.type===`endowment-result`){let e=Hs.get(t.callId);if(!e)return;Hs.delete(t.callId),t.ok?e.resolve(harden(t.value)):e.reject(Error(t.error))}}),Xs({type:`worker-ready`,lockdownMs:Bs})})();
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderCanvas.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderCanvas.vue"],"names":[],"mappings":";AA0uBA,wBAMG"}
1
+ {"version":3,"file":"BuilderCanvas.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderCanvas.vue"],"names":[],"mappings":";AAkHA,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderCanvasNode.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderCanvasNode.vue"],"names":[],"mappings":"AAslBA,OAAO,EAAsC,KAAK,QAAQ,EAAkB,MAAM,WAAW,CAAC;AAK9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;;UAkBrC,QAAQ;UACR,QAAQ;;UADR,QAAQ;UACR,QAAQ;;AALhB,wBAkeK"}
1
+ {"version":3,"file":"BuilderCanvasNode.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderCanvasNode.vue"],"names":[],"mappings":"AAqmBA,OAAO,EAAsC,KAAK,QAAQ,EAAkB,MAAM,WAAW,CAAC;AAQ9F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;;UAkBrC,QAAQ;UACR,QAAQ;;UADR,QAAQ;UACR,QAAQ;;AALhB,wBAifK"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
3
+ //# sourceMappingURL=BuilderCompositionsPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuilderCompositionsPanel.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderCompositionsPanel.vue"],"names":[],"mappings":";AAgjBA,wBAMG"}
@@ -0,0 +1,14 @@
1
+ import { CoarScriptEditorExtraLib } from '@cocoar/vue-script-editor';
2
+ import { ElementNode, PageConfig, PageNode } from '../schema';
3
+ type __VLS_Props = {
4
+ schema: PageNode;
5
+ node: ElementNode;
6
+ source?: string;
7
+ stateCode?: string;
8
+ config?: PageConfig;
9
+ hostLibs?: readonly CoarScriptEditorExtraLib[];
10
+ close: (result?: string) => void;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ export default _default;
14
+ //# sourceMappingURL=BuilderElementCodeDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuilderElementCodeDialog.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderElementCodeDialog.vue"],"names":[],"mappings":"AA2EA,OAAO,EAAoB,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAE3F,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGlE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAA;IAC9C,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAC;;AA0JF,wBAOG"}
@@ -0,0 +1,11 @@
1
+ import { PageConfig } from '../schema';
2
+ type __VLS_Props = {
3
+ nodeId: string;
4
+ target: string;
5
+ expression: string;
6
+ config?: PageConfig;
7
+ close: (result?: string) => void;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
11
+ //# sourceMappingURL=BuilderExpressionDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuilderExpressionDialog.vue.d.ts","sourceRoot":"","sources":["../../src/builder/BuilderExpressionDialog.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAO5C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;;AAwJF,wBAOG"}
@@ -0,0 +1,28 @@
1
+ import { ElementNode, PropertyBinding } from '../schema';
2
+ type __VLS_Props = {
3
+ node: ElementNode;
4
+ target: string;
5
+ label: string;
6
+ staticValue?: unknown;
7
+ patch: (update: {
8
+ bindings?: Record<string, PropertyBinding>;
9
+ }) => void;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ //# sourceMappingURL=BuilderFxButton.vue.d.ts.map