hlrender 0.0.187 → 0.0.189

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 (121) hide show
  1. package/{_pdf-3bd0d20d.js → _pdf-032c827b.js} +6 -6
  2. package/{_txt-0d4eb820.js → _txt-1a2ba394.js} +6 -6
  3. package/{_unsupport-6bb1dc32.js → _unsupport-fec00214.js} +1 -1
  4. package/{affix-widget-0b1455f1.js → affix-widget-3fcb6192.js} +16 -16
  5. package/{alert-widget-44926896.js → alert-widget-e3966dc2.js} +16 -16
  6. package/{anchor-widget-c768e705.js → anchor-widget-f824eda6.js} +13 -13
  7. package/{auto-complete-widget-e0a5e3fc.js → auto-complete-widget-57f2928d.js} +16 -16
  8. package/{avatar-widget-44211b2d.js → avatar-widget-ffb48418.js} +16 -16
  9. package/{backtop-widget-a0b0b038.js → backtop-widget-e54cce27.js} +16 -16
  10. package/{badge-widget-c994e5b1.js → badge-widget-bebe16dd.js} +16 -16
  11. package/{barcode-widget-fbf9b586.js → barcode-widget-d3e1d57b.js} +13 -13
  12. package/{baseImp-eeae6e62.js → baseImp-9b453ea4.js} +36 -37
  13. package/{breadcrumb-widget-553e07be.js → breadcrumb-widget-acaebcb7.js} +13 -13
  14. package/{button-widget-8104b3ea.js → button-widget-98f5b275.js} +16 -16
  15. package/{cache-widget-51f27b93.js → cache-widget-e768c071.js} +15 -15
  16. package/{card-widget-ef051848.js → card-widget-c7e3196a.js} +14 -14
  17. package/{carousel-widget-7ccd0238.js → carousel-widget-445f36c7.js} +14 -14
  18. package/{cascader-widget-78048aee.js → cascader-widget-f2c68354.js} +15 -15
  19. package/{chart-widget-df741397.js → chart-widget-45c7ee35.js} +13 -13
  20. package/{checkbox-widget-4b660967.js → checkbox-widget-0e17069e.js} +15 -15
  21. package/{collapse-widget-a0f0963b.js → collapse-widget-c0c39b9e.js} +14 -14
  22. package/{color-picker-widget-863179a2.js → color-picker-widget-2d43f574.js} +15 -15
  23. package/{cont-cell-widget-3646bd70.js → cont-cell-widget-12fa9503.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-1a616458.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-500802ba.js} +5 -5
  25. package/{cont-widget-ab7090c3.js → cont-widget-eb5ccff4.js} +5 -5
  26. package/{content-wrapper-c145f7f5.js → content-wrapper-fb49bac9.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-cd9a08e8.js → content-wrapper.vue_vue_type_script_setup_true_lang-d4f18faf.js} +3 -3
  28. package/{date-picker-range-widget-8cbca545.js → date-picker-range-widget-3f65017d.js} +15 -15
  29. package/{date-picker-widget-71ec5e3b.js → date-picker-widget-338fd5e0.js} +15 -15
  30. package/default-slot-widget-fc1d05d3.js +26 -0
  31. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b72063a.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-6c8510bf.js} +7 -7
  32. package/{descriptions-widget-cdc334fe.js → descriptions-widget-4ce3971d.js} +14 -14
  33. package/{dialog-265a6e9e.js → dialog-0acb2540.js} +2 -2
  34. package/{dialog-widget-ceae3799.js → dialog-widget-d97b9240.js} +15 -15
  35. package/{divider-widget-6fac0dfb.js → divider-widget-6d3d62d1.js} +16 -16
  36. package/{drag-wrapper-1bdfa424.js → drag-wrapper-86cddc2c.js} +6 -6
  37. package/{drawer-widget-f3f48ea7.js → drawer-widget-7075b505.js} +15 -15
  38. package/{dropdown-widget-9939392d.js → dropdown-widget-a8f3b3c6.js} +14 -14
  39. package/{empty-widget-6e8579ec.js → empty-widget-56308cd4.js} +16 -16
  40. package/{enum-type-c44af727.js → enum-type-4aac0ead.js} +1 -1
  41. package/{enum-type-5eeafa5c.js → enum-type-523bc2b7.js} +1 -0
  42. package/{expression-d0123c5e.js → expression-8dec47fe.js} +2 -2
  43. package/feedback-widget-786ca766.js +26 -0
  44. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-82f64c7d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-96edebda.js} +5 -5
  45. package/{fieldobj-8b1bd2cd.js → fieldobj-b9dc0fa4.js} +1 -1
  46. package/{file-upload-widget-dcafb2be.js → file-upload-widget-40dea119.js} +20 -20
  47. package/{form-item-wrapper-84598375.js → form-item-wrapper-72676850.js} +11 -11
  48. package/{form-widget-9b0b18df.js → form-widget-405c4659.js} +10 -10
  49. package/{grid-col-widget-99c72f79.js → grid-col-widget-4af17144.js} +1 -1
  50. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed9bc97d.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e590a0fe.js} +5 -5
  51. package/{grid-widget-b6b76d70.js → grid-widget-800c405a.js} +5 -5
  52. package/{html-text-widget-67b8c978.js → html-text-widget-c7ba260f.js} +14 -14
  53. package/{icon-widget-f7e35b5a.js → icon-widget-9c611b8d.js} +13 -13
  54. package/{iframe-widget-44c375cf.js → iframe-widget-33f8f61b.js} +26 -26
  55. package/{image-widget-5e761ae1.js → image-widget-97bdec41.js} +13 -13
  56. package/{index-5a2da8b2.js → index-b82fc973.js} +1 -1
  57. package/{index-d7f361c6.js → index-c5927286.js} +4 -4
  58. package/{index-14f9aa2a.js → index-e081bbdb.js} +10 -6
  59. package/{input-number-widget-2df910db.js → input-number-widget-9e56a387.js} +15 -15
  60. package/{input-widget-f974ab2a.js → input-widget-9e40a2ff.js} +16 -16
  61. package/{label-wrapper-ce4b9bdd.js → label-wrapper-b294182f.js} +5 -5
  62. package/{label-wrapper.vue_vue_type_style_index_0_lang-ca9edd3a.js → label-wrapper.vue_vue_type_style_index_0_lang-a68fc27e.js} +3 -3
  63. package/{link-widget-54ac65f0.js → link-widget-5e21128c.js} +16 -16
  64. package/{ltable-col-widget-7e6d51d4.js → ltable-col-widget-f4192341.js} +1 -1
  65. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-2320114b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d10a668a.js} +9 -9
  66. package/{ltable-widget-d92b3be0.js → ltable-widget-05799e6b.js} +5 -5
  67. package/menu-widget-946bd5a3.js +154 -0
  68. package/{model-widget-cfeb5dcc.js → model-widget-98b05942.js} +23 -23
  69. package/{multirow-d0073f18.js → multirow-152b80b6.js} +6 -6
  70. package/{multirow-widget-c27ebf37.js → multirow-widget-e845c46c.js} +15 -15
  71. package/package.json +1 -1
  72. package/{pagination-widget-b309f17e.js → pagination-widget-cd2b4a35.js} +13 -13
  73. package/{picture-upload-widget-7f60776a.js → picture-upload-widget-fb0534f1.js} +16 -16
  74. package/{progress-widget-ea485fdc.js → progress-widget-7964b138.js} +14 -14
  75. package/{propresult-9ceda396.js → propresult-10fa007b.js} +1 -1
  76. package/{qrcode-widget-da751760.js → qrcode-widget-30c7372c.js} +13 -13
  77. package/{radio-widget-c0fab6b9.js → radio-widget-1046c3bd.js} +15 -15
  78. package/{range-widget-3e722b7b.js → range-widget-e25f533b.js} +16 -16
  79. package/{rate-widget-22986fd6.js → rate-widget-a1da78ca.js} +15 -15
  80. package/render.es.js +32 -32
  81. package/render.umd.js +766 -1036
  82. package/{result-widget-8e55ec2a.js → result-widget-c1126217.js} +14 -14
  83. package/{rich-editor-widget-9c7e538d.js → rich-editor-widget-e3895c93.js} +15 -15
  84. package/{router-widget-841c8835.js → router-widget-6b655da3.js} +13 -13
  85. package/{select-widget-316a2f53.js → select-widget-7745272e.js} +15 -15
  86. package/{sfc-dfe623cb.js → sfc-cfb08a24.js} +10 -10
  87. package/{sfcview-694f177c.js → sfcview-35eda4fd.js} +10 -10
  88. package/{share-field-ff475cc4.js → share-field-f12738bb.js} +8 -8
  89. package/{share-file-6ddfaf13.js → share-file-956f5ec1.js} +10 -10
  90. package/{slider-widget-b80de511.js → slider-widget-58f3852b.js} +15 -15
  91. package/slot-6ac9961f.js +3397 -0
  92. package/{static-text-widget-ba300124.js → static-text-widget-54f05ea7.js} +14 -14
  93. package/{steps-widget-037fe073.js → steps-widget-25d98c10.js} +13 -13
  94. package/{subMenu-widget-645e66f4.js → subMenu-widget-a9d08890.js} +8 -8
  95. package/subMenu-widget.vue_vue_type_script_setup_true_lang-5d51bf87.js +81 -0
  96. package/{switch-widget-879a0b79.js → switch-widget-e8b0fb79.js} +15 -15
  97. package/{tab-pane-widget-2d3f5da9.js → tab-pane-widget-84073357.js} +1 -1
  98. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-48649121.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-9b1b0ab0.js} +5 -5
  99. package/table-col-widget-688be241.js +22 -0
  100. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-265408ac.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9538ef30.js} +6 -6
  101. package/{table-widget-bf69337e.js → table-widget-eaad01e5.js} +35 -35
  102. package/{tabs-widget-238a3621.js → tabs-widget-8b1567b4.js} +7 -7
  103. package/{tag-widget-ccaa9add.js → tag-widget-17588aa2.js} +16 -16
  104. package/{text-widget-a2c9cc5b.js → text-widget-b0539e26.js} +16 -16
  105. package/{textarea-widget-bba679f3.js → textarea-widget-0dcac19c.js} +15 -15
  106. package/{time-picker-range-widget-fa18dfce.js → time-picker-range-widget-3eaf10db.js} +15 -15
  107. package/{time-picker-widget-e20b1564.js → time-picker-widget-6e1f8b4e.js} +15 -15
  108. package/{time-select-widget-533ac7ec.js → time-select-widget-3b58b1e1.js} +15 -15
  109. package/{tmpl-widget-80c1cbd9.js → tmpl-widget-dcdbf81f.js} +14 -14
  110. package/{tree-select-widget-ebf50e0c.js → tree-select-widget-7d7ef777.js} +15 -15
  111. package/{tree-widget-374533fa.js → tree-widget-dfb812f1.js} +13 -13
  112. package/{uuid-f9e11f04.js → uuid-de039332.js} +1 -1
  113. package/{verifycode-widget-0d8c86a6.js → verifycode-widget-beff0b96.js} +13 -13
  114. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e0ddef3b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-01cb6831.js} +7 -7
  115. package/{wrapper-widget-5e0007e2.js → wrapper-widget-f62b50be.js} +6 -6
  116. package/default-slot-widget-001091e8.js +0 -26
  117. package/feedback-widget-e1e18fba.js +0 -26
  118. package/menu-widget-3e385a3b.js +0 -127
  119. package/slot-c2bd5ea0.js +0 -130468
  120. package/subMenu-widget.vue_vue_type_script_setup_true_lang-8cc57ba7.js +0 -84
  121. package/table-col-widget-fe7bff20.js +0 -22
@@ -0,0 +1,3397 @@
1
+ var Et = Object.defineProperty;
2
+ var It = (e, t, i) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var X = (e, t, i) => (It(e, typeof t != "symbol" ? t + "" : t, i), i);
4
+ import { inject as Z, provide as J, computed as k } from "vue";
5
+ import { d as L, b as w, r as Nt, s as Vt } from "./expression-8dec47fe.js";
6
+ import { B as Pt } from "./baseImp-9b453ea4.js";
7
+ import { c as Me, i as Tt, m as he, j as Ue, o as Lt } from "./enum-type-523bc2b7.js";
8
+ class qe {
9
+ constructor() {
10
+ /**
11
+ * 当前表单引用库
12
+ * 假设表单组件位于表单form中,则该引用注册入库
13
+ */
14
+ X(this, "formRefList", {});
15
+ /**
16
+ * 全局引用库
17
+ */
18
+ X(this, "globalRefList", {});
19
+ /**
20
+ * 全局数据对象
21
+ */
22
+ X(this, "globalDataModel", {});
23
+ /**
24
+ * 当前表单名称
25
+ */
26
+ X(this, "globalFormName", "");
27
+ /**
28
+ * 全局页面名称
29
+ */
30
+ // globalPageName?: string = "";
31
+ /**
32
+ * 用于类似template组件的数据绑定传递
33
+ */
34
+ X(this, "rowScope", {});
35
+ /**
36
+ * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
+ */
38
+ X(this, "globalConfig", {});
39
+ }
40
+ static globalInject() {
41
+ const t = new qe();
42
+ return t.formRefList = Z(L.refList, {}), t.globalRefList = Z(L.allRefList, {}), t.globalDataModel = Z(L.globalModel, {}), t.rowScope = Z(L.rowScope, {}), t.globalFormName = Z(L.globalForm, ""), t.globalConfig = Z(L.globalConfig, {}), t;
43
+ }
44
+ static globalProvide(t) {
45
+ if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
46
+ const i = (t == null ? void 0 : t.globalDataModel) || {};
47
+ J(L.globalModel, i);
48
+ }
49
+ if ((t == null ? void 0 : t.rowScope) !== void 0) {
50
+ const i = (t == null ? void 0 : t.rowScope) || {};
51
+ J(L.rowScope, i);
52
+ }
53
+ if ((t == null ? void 0 : t.globalRefList) !== void 0) {
54
+ const i = (t == null ? void 0 : t.globalRefList) || {};
55
+ J(L.allRefList, i);
56
+ }
57
+ if ((t == null ? void 0 : t.formRefList) !== void 0) {
58
+ const i = (t == null ? void 0 : t.formRefList) || {};
59
+ J(L.refList, i);
60
+ }
61
+ if ((t == null ? void 0 : t.globalFormName) !== void 0) {
62
+ const i = (t == null ? void 0 : t.globalFormName) || "";
63
+ J(L.globalForm, i);
64
+ }
65
+ if ((t == null ? void 0 : t.globalConfig) !== void 0) {
66
+ const i = (t == null ? void 0 : t.globalConfig) || "";
67
+ J(L.globalConfig, i);
68
+ }
69
+ }
70
+ }
71
+ function Ti(e) {
72
+ const t = (_, ue = !1) => Pt.getOptions(e == null ? void 0 : e.widget, _, ue, !(e != null && e.designState)), i = k(() => t(w.ctrlWidth) || "auto"), s = k(() => t(w.ctrlHeight) || "auto"), r = k(() => t(w.displayLayout)), n = k(() => {
73
+ var _ = t(w.customClass);
74
+ return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
75
+ }), o = k(() => {
76
+ var _ = t(w.componentWrapperClass);
77
+ return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
78
+ }), h = k(() => t(w.css)), u = k(() => {
79
+ var _ = t(w.componentRootClass);
80
+ return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
81
+ }), c = k(() => {
82
+ var _, ue;
83
+ return (ue = Me((_ = t(w.required, !0)) == null ? void 0 : _.options)) == null ? void 0 : ue.enable;
84
+ }), f = k(() => t(w.hidden)), x = k(() => t(w.labelTooltip)), g = k(() => t(w.labelIconClass)), C = k(() => t(w.labelIconPosition)), E = k(() => t(w.labelHidden)), P = k(() => t(w.label)), T = k(() => t(w.labelWidth)), H = k(() => t(w.labelAlign));
85
+ return {
86
+ //size,
87
+ attrs: k(() => ({
88
+ required: c.value,
89
+ label: P.value,
90
+ labelHidden: E.value,
91
+ labelAlign: H.value,
92
+ labelIconClass: g.value,
93
+ labelIconPosition: C.value,
94
+ labelTooltip: x.value,
95
+ labelWidth: T.value,
96
+ ctrlWidth: i.value
97
+ })),
98
+ labelAlign: H,
99
+ labelHidden: E,
100
+ labelIconClass: g,
101
+ labelIconPosition: C,
102
+ labelTooltip: x,
103
+ labelWidth: T,
104
+ label: P,
105
+ displayLayout: r,
106
+ hidden: f,
107
+ // required,
108
+ ctrlWidth: i,
109
+ ctrlHeight: s,
110
+ customClass: n,
111
+ componentWrapperClass: o,
112
+ componentRootClass: u,
113
+ css: h
114
+ };
115
+ }
116
+ const He = (e = "") => new Promise((t) => {
117
+ import("./index-3aaf8638.js").then((i) => {
118
+ const s = i.parse(e, {
119
+ positions: !0,
120
+ parseValue: !1
121
+ }), r = [];
122
+ i.walk(s, {
123
+ visit: "Rule",
124
+ enter(n) {
125
+ const o = i.generate(n.prelude), h = {};
126
+ i.walk(n, {
127
+ visit: "Declaration",
128
+ enter(u) {
129
+ u.property && (h[u.property] = i.generate(u.value));
130
+ }
131
+ }), r.push({ selector: o, declarations: h });
132
+ }
133
+ }), t(r);
134
+ });
135
+ }), Ge = (e) => new Promise((t) => {
136
+ import("./index-3aaf8638.js").then((i) => {
137
+ const s = Rt(e), r = i.parse(s, { context: "stylesheet" });
138
+ t(i.generate(r));
139
+ });
140
+ });
141
+ function Rt(e) {
142
+ return e.map((i) => {
143
+ var r, n, o;
144
+ const s = (o = (n = (r = Object.entries(i.declarations)) == null ? void 0 : r.filter(([h, u]) => !Tt(u) && u !== "")) == null ? void 0 : n.sort(([h], [u]) => h > u ? 1 : -1)) == null ? void 0 : o.map(([h, u]) => `${h}: ${u};`);
145
+ return `${i.selector} { ${s.join(" ")} }`;
146
+ }).join(`
147
+ `);
148
+ }
149
+ var Ot = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], We = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Ft = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ke = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ye = {
150
+ 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
151
+ 5: "class enum extends super const export import",
152
+ 6: "enum",
153
+ strict: "implements interface let package private protected public static yield",
154
+ strictBind: "eval arguments"
155
+ }, Ce = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Bt = {
156
+ 5: Ce,
157
+ "5module": Ce + " export import",
158
+ 6: Ce + " const class extends export import super"
159
+ }, Dt = /^in(stanceof)?$/, Mt = new RegExp("[" + Ke + "]"), Ut = new RegExp("[" + Ke + Ft + "]");
160
+ function Se(e, t) {
161
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
162
+ if (i += t[s], i > e)
163
+ return !1;
164
+ if (i += t[s + 1], i >= e)
165
+ return !0;
166
+ }
167
+ return !1;
168
+ }
169
+ function M(e, t) {
170
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Mt.test(String.fromCharCode(e)) : t === !1 ? !1 : Se(e, We);
171
+ }
172
+ function Q(e, t) {
173
+ return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ut.test(String.fromCharCode(e)) : t === !1 ? !1 : Se(e, We) || Se(e, Ot);
174
+ }
175
+ var b = function(t, i) {
176
+ i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
177
+ };
178
+ function R(e, t) {
179
+ return new b(e, { beforeExpr: !0, binop: t });
180
+ }
181
+ var O = { beforeExpr: !0 }, N = { startsExpr: !0 }, Ee = {};
182
+ function v(e, t) {
183
+ return t === void 0 && (t = {}), t.keyword = e, Ee[e] = new b(e, t);
184
+ }
185
+ var a = {
186
+ num: new b("num", N),
187
+ regexp: new b("regexp", N),
188
+ string: new b("string", N),
189
+ name: new b("name", N),
190
+ privateId: new b("privateId", N),
191
+ eof: new b("eof"),
192
+ // Punctuation token types.
193
+ bracketL: new b("[", { beforeExpr: !0, startsExpr: !0 }),
194
+ bracketR: new b("]"),
195
+ braceL: new b("{", { beforeExpr: !0, startsExpr: !0 }),
196
+ braceR: new b("}"),
197
+ parenL: new b("(", { beforeExpr: !0, startsExpr: !0 }),
198
+ parenR: new b(")"),
199
+ comma: new b(",", O),
200
+ semi: new b(";", O),
201
+ colon: new b(":", O),
202
+ dot: new b("."),
203
+ question: new b("?", O),
204
+ questionDot: new b("?."),
205
+ arrow: new b("=>", O),
206
+ template: new b("template"),
207
+ invalidTemplate: new b("invalidTemplate"),
208
+ ellipsis: new b("...", O),
209
+ backQuote: new b("`", N),
210
+ dollarBraceL: new b("${", { beforeExpr: !0, startsExpr: !0 }),
211
+ // Operators. These carry several kinds of properties to help the
212
+ // parser use them properly (the presence of these properties is
213
+ // what categorizes them as operators).
214
+ //
215
+ // `binop`, when present, specifies that this operator is a binary
216
+ // operator, and will refer to its precedence.
217
+ //
218
+ // `prefix` and `postfix` mark the operator as a prefix or postfix
219
+ // unary operator.
220
+ //
221
+ // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
222
+ // binary operators with a very low precedence, that should result
223
+ // in AssignmentExpression nodes.
224
+ eq: new b("=", { beforeExpr: !0, isAssign: !0 }),
225
+ assign: new b("_=", { beforeExpr: !0, isAssign: !0 }),
226
+ incDec: new b("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
227
+ prefix: new b("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
228
+ logicalOR: R("||", 1),
229
+ logicalAND: R("&&", 2),
230
+ bitwiseOR: R("|", 3),
231
+ bitwiseXOR: R("^", 4),
232
+ bitwiseAND: R("&", 5),
233
+ equality: R("==/!=/===/!==", 6),
234
+ relational: R("</>/<=/>=", 7),
235
+ bitShift: R("<</>>/>>>", 8),
236
+ plusMin: new b("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
237
+ modulo: R("%", 10),
238
+ star: R("*", 10),
239
+ slash: R("/", 10),
240
+ starstar: new b("**", { beforeExpr: !0 }),
241
+ coalesce: R("??", 1),
242
+ // Keyword token types.
243
+ _break: v("break"),
244
+ _case: v("case", O),
245
+ _catch: v("catch"),
246
+ _continue: v("continue"),
247
+ _debugger: v("debugger"),
248
+ _default: v("default", O),
249
+ _do: v("do", { isLoop: !0, beforeExpr: !0 }),
250
+ _else: v("else", O),
251
+ _finally: v("finally"),
252
+ _for: v("for", { isLoop: !0 }),
253
+ _function: v("function", N),
254
+ _if: v("if"),
255
+ _return: v("return", O),
256
+ _switch: v("switch"),
257
+ _throw: v("throw", O),
258
+ _try: v("try"),
259
+ _var: v("var"),
260
+ _const: v("const"),
261
+ _while: v("while", { isLoop: !0 }),
262
+ _with: v("with"),
263
+ _new: v("new", { beforeExpr: !0, startsExpr: !0 }),
264
+ _this: v("this", N),
265
+ _super: v("super", N),
266
+ _class: v("class", N),
267
+ _extends: v("extends", O),
268
+ _export: v("export"),
269
+ _import: v("import", N),
270
+ _null: v("null", N),
271
+ _true: v("true", N),
272
+ _false: v("false", N),
273
+ _in: v("in", { beforeExpr: !0, binop: 7 }),
274
+ _instanceof: v("instanceof", { beforeExpr: !0, binop: 7 }),
275
+ _typeof: v("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
276
+ _void: v("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
277
+ _delete: v("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
278
+ }, V = /\r\n?|\n|\u2028|\u2029/, qt = new RegExp(V.source, "g");
279
+ function $(e) {
280
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
281
+ }
282
+ function ze(e, t, i) {
283
+ i === void 0 && (i = e.length);
284
+ for (var s = t; s < i; s++) {
285
+ var r = e.charCodeAt(s);
286
+ if ($(r))
287
+ return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
288
+ }
289
+ return -1;
290
+ }
291
+ var Qe = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, A = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ye = Object.prototype, Ht = Ye.hasOwnProperty, Gt = Ye.toString, ee = Object.hasOwn || function(e, t) {
292
+ return Ht.call(e, t);
293
+ }, Re = Array.isArray || function(e) {
294
+ return Gt.call(e) === "[object Array]";
295
+ }, Oe = /* @__PURE__ */ Object.create(null);
296
+ function z(e) {
297
+ return Oe[e] || (Oe[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
298
+ }
299
+ function G(e) {
300
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
301
+ }
302
+ var Wt = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ae = function(t, i) {
303
+ this.line = t, this.column = i;
304
+ };
305
+ ae.prototype.offset = function(t) {
306
+ return new ae(this.line, this.column + t);
307
+ };
308
+ var de = function(t, i, s) {
309
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
310
+ };
311
+ function Xe(e, t) {
312
+ for (var i = 1, s = 0; ; ) {
313
+ var r = ze(e, s, t);
314
+ if (r < 0)
315
+ return new ae(i, t - s);
316
+ ++i, s = r;
317
+ }
318
+ }
319
+ var ke = {
320
+ // `ecmaVersion` indicates the ECMAScript version to parse. Must be
321
+ // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
322
+ // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
323
+ // (the latest version the library supports). This influences
324
+ // support for strict mode, the set of reserved words, and support
325
+ // for new syntax features.
326
+ ecmaVersion: null,
327
+ // `sourceType` indicates the mode the code should be parsed in.
328
+ // Can be either `"script"` or `"module"`. This influences global
329
+ // strict mode and parsing of `import` and `export` declarations.
330
+ sourceType: "script",
331
+ // `onInsertedSemicolon` can be a callback that will be called when
332
+ // a semicolon is automatically inserted. It will be passed the
333
+ // position of the inserted semicolon as an offset, and if
334
+ // `locations` is enabled, it is given the location as a `{line,
335
+ // column}` object as second argument.
336
+ onInsertedSemicolon: null,
337
+ // `onTrailingComma` is similar to `onInsertedSemicolon`, but for
338
+ // trailing commas.
339
+ onTrailingComma: null,
340
+ // By default, reserved words are only enforced if ecmaVersion >= 5.
341
+ // Set `allowReserved` to a boolean value to explicitly turn this on
342
+ // an off. When this option has the value "never", reserved words
343
+ // and keywords can also not be used as property names.
344
+ allowReserved: null,
345
+ // When enabled, a return at the top level is not considered an
346
+ // error.
347
+ allowReturnOutsideFunction: !1,
348
+ // When enabled, import/export statements are not constrained to
349
+ // appearing at the top of the program, and an import.meta expression
350
+ // in a script isn't considered an error.
351
+ allowImportExportEverywhere: !1,
352
+ // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.
353
+ // When enabled, await identifiers are allowed to appear at the top-level scope,
354
+ // but they are still not allowed in non-async functions.
355
+ allowAwaitOutsideFunction: null,
356
+ // When enabled, super identifiers are not constrained to
357
+ // appearing in methods and do not raise an error when they appear elsewhere.
358
+ allowSuperOutsideMethod: null,
359
+ // When enabled, hashbang directive in the beginning of file is
360
+ // allowed and treated as a line comment. Enabled by default when
361
+ // `ecmaVersion` >= 2023.
362
+ allowHashBang: !1,
363
+ // By default, the parser will verify that private properties are
364
+ // only used in places where they are valid and have been declared.
365
+ // Set this to false to turn such checks off.
366
+ checkPrivateFields: !0,
367
+ // When `locations` is on, `loc` properties holding objects with
368
+ // `start` and `end` properties in `{line, column}` form (with
369
+ // line being 1-based and column 0-based) will be attached to the
370
+ // nodes.
371
+ locations: !1,
372
+ // A function can be passed as `onToken` option, which will
373
+ // cause Acorn to call that function with object in the same
374
+ // format as tokens returned from `tokenizer().getToken()`. Note
375
+ // that you are not allowed to call the parser from the
376
+ // callback—that will corrupt its internal state.
377
+ onToken: null,
378
+ // A function can be passed as `onComment` option, which will
379
+ // cause Acorn to call that function with `(block, text, start,
380
+ // end)` parameters whenever a comment is skipped. `block` is a
381
+ // boolean indicating whether this is a block (`/* */`) comment,
382
+ // `text` is the content of the comment, and `start` and `end` are
383
+ // character offsets that denote the start and end of the comment.
384
+ // When the `locations` option is on, two more parameters are
385
+ // passed, the full `{line, column}` locations of the start and
386
+ // end of the comments. Note that you are not allowed to call the
387
+ // parser from the callback—that will corrupt its internal state.
388
+ // When this option has an array as value, objects representing the
389
+ // comments are pushed to it.
390
+ onComment: null,
391
+ // Nodes have their start and end characters offsets recorded in
392
+ // `start` and `end` properties (directly on the node, rather than
393
+ // the `loc` object, which holds line/column data. To also add a
394
+ // [semi-standardized][range] `range` property holding a `[start,
395
+ // end]` array with the same numbers, set the `ranges` option to
396
+ // `true`.
397
+ //
398
+ // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
399
+ ranges: !1,
400
+ // It is possible to parse multiple files into a single AST by
401
+ // passing the tree produced by parsing the first file as
402
+ // `program` option in subsequent parses. This will add the
403
+ // toplevel forms of the parsed file to the `Program` (top) node
404
+ // of an existing parse tree.
405
+ program: null,
406
+ // When `locations` is on, you can pass this to record the source
407
+ // file in every node's `loc` object.
408
+ sourceFile: null,
409
+ // This value, if given, is stored in every node, whether
410
+ // `locations` is on or off.
411
+ directSourceFile: null,
412
+ // When enabled, parenthesized expressions are represented by
413
+ // (non-standard) ParenthesizedExpression nodes
414
+ preserveParens: !1
415
+ }, Fe = !1;
416
+ function Kt(e) {
417
+ var t = {};
418
+ for (var i in ke)
419
+ t[i] = e && ee(e, i) ? e[i] : ke[i];
420
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Fe && typeof console == "object" && console.warn && (Fe = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
421
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Re(t.onToken)) {
422
+ var s = t.onToken;
423
+ t.onToken = function(r) {
424
+ return s.push(r);
425
+ };
426
+ }
427
+ return Re(t.onComment) && (t.onComment = zt(t, t.onComment)), t;
428
+ }
429
+ function zt(e, t) {
430
+ return function(i, s, r, n, o, h) {
431
+ var u = {
432
+ type: i ? "Block" : "Line",
433
+ value: s,
434
+ start: r,
435
+ end: n
436
+ };
437
+ e.locations && (u.loc = new de(this, o, h)), e.ranges && (u.range = [r, n]), t.push(u);
438
+ };
439
+ }
440
+ var re = 1, te = 2, Ie = 4, je = 8, Ne = 16, Ze = 32, xe = 64, Je = 128, j = 256, ne = 512, me = re | te | j;
441
+ function Ve(e, t) {
442
+ return te | (e ? Ie : 0) | (t ? je : 0);
443
+ }
444
+ var ce = 0, Pe = 1, K = 2, $e = 3, et = 4, tt = 5, S = function(t, i, s) {
445
+ this.options = t = Kt(t), this.sourceFile = t.sourceFile, this.keywords = z(Bt[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
446
+ var r = "";
447
+ t.allowReserved !== !0 && (r = ye[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = z(r);
448
+ var n = (r ? r + " " : "") + ye.strict;
449
+ this.reservedWordsStrict = z(n), this.reservedWordsStrictBind = z(n + " " + ye.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
450
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(V).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(re), this.regexpState = null, this.privateNameStack = [];
451
+ }, U = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
452
+ S.prototype.parse = function() {
453
+ var t = this.options.program || this.startNode();
454
+ return this.nextToken(), this.parseTopLevel(t);
455
+ };
456
+ U.inFunction.get = function() {
457
+ return (this.currentVarScope().flags & te) > 0;
458
+ };
459
+ U.inGenerator.get = function() {
460
+ return (this.currentVarScope().flags & je) > 0;
461
+ };
462
+ U.inAsync.get = function() {
463
+ return (this.currentVarScope().flags & Ie) > 0;
464
+ };
465
+ U.canAwait.get = function() {
466
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
467
+ var t = this.scopeStack[e], i = t.flags;
468
+ if (i & (j | ne))
469
+ return !1;
470
+ if (i & te)
471
+ return (i & Ie) > 0;
472
+ }
473
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
474
+ };
475
+ U.allowSuper.get = function() {
476
+ var e = this.currentThisScope(), t = e.flags;
477
+ return (t & xe) > 0 || this.options.allowSuperOutsideMethod;
478
+ };
479
+ U.allowDirectSuper.get = function() {
480
+ return (this.currentThisScope().flags & Je) > 0;
481
+ };
482
+ U.treatFunctionsAsVar.get = function() {
483
+ return this.treatFunctionsAsVarInScope(this.currentScope());
484
+ };
485
+ U.allowNewDotTarget.get = function() {
486
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
487
+ var t = this.scopeStack[e], i = t.flags;
488
+ if (i & (j | ne) || i & te && !(i & Ne))
489
+ return !0;
490
+ }
491
+ return !1;
492
+ };
493
+ U.inClassStaticBlock.get = function() {
494
+ return (this.currentVarScope().flags & j) > 0;
495
+ };
496
+ S.extend = function() {
497
+ for (var t = [], i = arguments.length; i--; )
498
+ t[i] = arguments[i];
499
+ for (var s = this, r = 0; r < t.length; r++)
500
+ s = t[r](s);
501
+ return s;
502
+ };
503
+ S.parse = function(t, i) {
504
+ return new this(i, t).parse();
505
+ };
506
+ S.parseExpressionAt = function(t, i, s) {
507
+ var r = new this(s, t, i);
508
+ return r.nextToken(), r.parseExpression();
509
+ };
510
+ S.tokenizer = function(t, i) {
511
+ return new this(i, t);
512
+ };
513
+ Object.defineProperties(S.prototype, U);
514
+ var I = S.prototype, Qt = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
515
+ I.strictDirective = function(e) {
516
+ if (this.options.ecmaVersion < 5)
517
+ return !1;
518
+ for (; ; ) {
519
+ A.lastIndex = e, e += A.exec(this.input)[0].length;
520
+ var t = Qt.exec(this.input.slice(e));
521
+ if (!t)
522
+ return !1;
523
+ if ((t[1] || t[2]) === "use strict") {
524
+ A.lastIndex = e + t[0].length;
525
+ var i = A.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
526
+ return r === ";" || r === "}" || V.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
527
+ }
528
+ e += t[0].length, A.lastIndex = e, e += A.exec(this.input)[0].length, this.input[e] === ";" && e++;
529
+ }
530
+ };
531
+ I.eat = function(e) {
532
+ return this.type === e ? (this.next(), !0) : !1;
533
+ };
534
+ I.isContextual = function(e) {
535
+ return this.type === a.name && this.value === e && !this.containsEsc;
536
+ };
537
+ I.eatContextual = function(e) {
538
+ return this.isContextual(e) ? (this.next(), !0) : !1;
539
+ };
540
+ I.expectContextual = function(e) {
541
+ this.eatContextual(e) || this.unexpected();
542
+ };
543
+ I.canInsertSemicolon = function() {
544
+ return this.type === a.eof || this.type === a.braceR || V.test(this.input.slice(this.lastTokEnd, this.start));
545
+ };
546
+ I.insertSemicolon = function() {
547
+ if (this.canInsertSemicolon())
548
+ return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
549
+ };
550
+ I.semicolon = function() {
551
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
552
+ };
553
+ I.afterTrailingComma = function(e, t) {
554
+ if (this.type === e)
555
+ return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
556
+ };
557
+ I.expect = function(e) {
558
+ this.eat(e) || this.unexpected();
559
+ };
560
+ I.unexpected = function(e) {
561
+ this.raise(e ?? this.start, "Unexpected token");
562
+ };
563
+ var ge = function() {
564
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
565
+ };
566
+ I.checkPatternErrors = function(e, t) {
567
+ if (e) {
568
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
569
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
570
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
571
+ }
572
+ };
573
+ I.checkExpressionErrors = function(e, t) {
574
+ if (!e)
575
+ return !1;
576
+ var i = e.shorthandAssign, s = e.doubleProto;
577
+ if (!t)
578
+ return i >= 0 || s >= 0;
579
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
580
+ };
581
+ I.checkYieldAwaitInDefaultParams = function() {
582
+ this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
583
+ };
584
+ I.isSimpleAssignTarget = function(e) {
585
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
586
+ };
587
+ var p = S.prototype;
588
+ p.parseTopLevel = function(e) {
589
+ var t = /* @__PURE__ */ Object.create(null);
590
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
591
+ var i = this.parseStatement(null, !0, t);
592
+ e.body.push(i);
593
+ }
594
+ if (this.inModule)
595
+ for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
596
+ var n = r[s];
597
+ this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
598
+ }
599
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
600
+ };
601
+ var Te = { kind: "loop" }, Yt = { kind: "switch" };
602
+ p.isLet = function(e) {
603
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
604
+ return !1;
605
+ A.lastIndex = this.pos;
606
+ var t = A.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
607
+ if (s === 91 || s === 92)
608
+ return !0;
609
+ if (e)
610
+ return !1;
611
+ if (s === 123 || s > 55295 && s < 56320)
612
+ return !0;
613
+ if (M(s, !0)) {
614
+ for (var r = i + 1; Q(s = this.input.charCodeAt(r), !0); )
615
+ ++r;
616
+ if (s === 92 || s > 55295 && s < 56320)
617
+ return !0;
618
+ var n = this.input.slice(i, r);
619
+ if (!Dt.test(n))
620
+ return !0;
621
+ }
622
+ return !1;
623
+ };
624
+ p.isAsyncFunction = function() {
625
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
626
+ return !1;
627
+ A.lastIndex = this.pos;
628
+ var e = A.exec(this.input), t = this.pos + e[0].length, i;
629
+ return !V.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Q(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
630
+ };
631
+ p.isUsingKeyword = function(e, t) {
632
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
633
+ return !1;
634
+ A.lastIndex = this.pos;
635
+ var i = A.exec(this.input), s = this.pos + i[0].length;
636
+ if (V.test(this.input.slice(this.pos, s)))
637
+ return !1;
638
+ if (e) {
639
+ var r = s + 5, n;
640
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || Q(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320)
641
+ return !1;
642
+ A.lastIndex = r;
643
+ var o = A.exec(this.input);
644
+ if (o && V.test(this.input.slice(r, r + o[0].length)))
645
+ return !1;
646
+ }
647
+ if (t) {
648
+ var h = s + 2, u;
649
+ if (this.input.slice(s, h) === "of" && (h === this.input.length || !Q(u = this.input.charCodeAt(h)) && !(u > 55295 && u < 56320)))
650
+ return !1;
651
+ }
652
+ var c = this.input.charCodeAt(s);
653
+ return M(c, !0) || c === 92;
654
+ };
655
+ p.isAwaitUsing = function(e) {
656
+ return this.isUsingKeyword(!0, e);
657
+ };
658
+ p.isUsing = function(e) {
659
+ return this.isUsingKeyword(!1, e);
660
+ };
661
+ p.parseStatement = function(e, t, i) {
662
+ var s = this.type, r = this.startNode(), n;
663
+ switch (this.isLet(e) && (s = a._var, n = "let"), s) {
664
+ case a._break:
665
+ case a._continue:
666
+ return this.parseBreakContinueStatement(r, s.keyword);
667
+ case a._debugger:
668
+ return this.parseDebuggerStatement(r);
669
+ case a._do:
670
+ return this.parseDoStatement(r);
671
+ case a._for:
672
+ return this.parseForStatement(r);
673
+ case a._function:
674
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, !1, !e);
675
+ case a._class:
676
+ return e && this.unexpected(), this.parseClass(r, !0);
677
+ case a._if:
678
+ return this.parseIfStatement(r);
679
+ case a._return:
680
+ return this.parseReturnStatement(r);
681
+ case a._switch:
682
+ return this.parseSwitchStatement(r);
683
+ case a._throw:
684
+ return this.parseThrowStatement(r);
685
+ case a._try:
686
+ return this.parseTryStatement(r);
687
+ case a._const:
688
+ case a._var:
689
+ return n = n || this.value, e && n !== "var" && this.unexpected(), this.parseVarStatement(r, n);
690
+ case a._while:
691
+ return this.parseWhileStatement(r);
692
+ case a._with:
693
+ return this.parseWithStatement(r);
694
+ case a.braceL:
695
+ return this.parseBlock(!0, r);
696
+ case a.semi:
697
+ return this.parseEmptyStatement(r);
698
+ case a._export:
699
+ case a._import:
700
+ if (this.options.ecmaVersion > 10 && s === a._import) {
701
+ A.lastIndex = this.pos;
702
+ var o = A.exec(this.input), h = this.pos + o[0].length, u = this.input.charCodeAt(h);
703
+ if (u === 40 || u === 46)
704
+ return this.parseExpressionStatement(r, this.parseExpression());
705
+ }
706
+ return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), s === a._import ? this.parseImport(r) : this.parseExport(r, i);
707
+ default:
708
+ if (this.isAsyncFunction())
709
+ return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, !0, !e);
710
+ var c = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
711
+ if (c)
712
+ return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
713
+ var f = this.value, x = this.parseExpression();
714
+ return s === a.name && x.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, x, e) : this.parseExpressionStatement(r, x);
715
+ }
716
+ };
717
+ p.parseBreakContinueStatement = function(e, t) {
718
+ var i = t === "break";
719
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
720
+ for (var s = 0; s < this.labels.length; ++s) {
721
+ var r = this.labels[s];
722
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i))
723
+ break;
724
+ }
725
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
726
+ };
727
+ p.parseDebuggerStatement = function(e) {
728
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
729
+ };
730
+ p.parseDoStatement = function(e) {
731
+ return this.next(), this.labels.push(Te), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
732
+ };
733
+ p.parseForStatement = function(e) {
734
+ this.next();
735
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
736
+ if (this.labels.push(Te), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
737
+ return t > -1 && this.unexpected(t), this.parseFor(e, null);
738
+ var i = this.isLet();
739
+ if (this.type === a._var || this.type === a._const || i) {
740
+ var s = this.startNode(), r = i ? "let" : this.value;
741
+ return this.next(), this.parseVar(s, !0, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
742
+ }
743
+ var n = this.isContextual("let"), o = !1, h = this.isUsing(!0) ? "using" : this.isAwaitUsing(!0) ? "await using" : null;
744
+ if (h) {
745
+ var u = this.startNode();
746
+ return this.next(), h === "await using" && this.next(), this.parseVar(u, !0, h), this.finishNode(u, "VariableDeclaration"), this.parseForAfterInit(e, u, t);
747
+ }
748
+ var c = this.containsEsc, f = new ge(), x = this.start, g = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(!0, f);
749
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (g.start === x && !c && g.type === "Identifier" && g.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && o && this.raise(g.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(g, !1, f), this.checkLValPattern(g), this.parseForIn(e, g)) : (this.checkExpressionErrors(f, !0), t > -1 && this.unexpected(t), this.parseFor(e, g));
750
+ };
751
+ p.parseForAfterInit = function(e, t, i) {
752
+ return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
753
+ };
754
+ p.parseFunctionStatement = function(e, t, i) {
755
+ return this.next(), this.parseFunction(e, se | (i ? 0 : we), !1, t);
756
+ };
757
+ p.parseIfStatement = function(e) {
758
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(a._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
759
+ };
760
+ p.parseReturnStatement = function(e) {
761
+ return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
762
+ };
763
+ p.parseSwitchStatement = function(e) {
764
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Yt), this.enterScope(0);
765
+ for (var t, i = !1; this.type !== a.braceR; )
766
+ if (this.type === a._case || this.type === a._default) {
767
+ var s = this.type === a._case;
768
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), s ? t.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = !0, t.test = null), this.expect(a.colon);
769
+ } else
770
+ t || this.unexpected(), t.consequent.push(this.parseStatement(null));
771
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
772
+ };
773
+ p.parseThrowStatement = function(e) {
774
+ return this.next(), V.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
775
+ };
776
+ var Xt = [];
777
+ p.parseCatchClauseParam = function() {
778
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
779
+ return this.enterScope(t ? Ze : 0), this.checkLValPattern(e, t ? et : K), this.expect(a.parenR), e;
780
+ };
781
+ p.parseTryStatement = function(e) {
782
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
783
+ var t = this.startNode();
784
+ this.next(), this.eat(a.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
785
+ }
786
+ return e.finalizer = this.eat(a._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
787
+ };
788
+ p.parseVarStatement = function(e, t, i) {
789
+ return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
790
+ };
791
+ p.parseWhileStatement = function(e) {
792
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(Te), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
793
+ };
794
+ p.parseWithStatement = function(e) {
795
+ return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
796
+ };
797
+ p.parseEmptyStatement = function(e) {
798
+ return this.next(), this.finishNode(e, "EmptyStatement");
799
+ };
800
+ p.parseLabeledStatement = function(e, t, i, s) {
801
+ for (var r = 0, n = this.labels; r < n.length; r += 1) {
802
+ var o = n[r];
803
+ o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
804
+ }
805
+ for (var h = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, u = this.labels.length - 1; u >= 0; u--) {
806
+ var c = this.labels[u];
807
+ if (c.statementStart === e.start)
808
+ c.statementStart = this.start, c.kind = h;
809
+ else
810
+ break;
811
+ }
812
+ return this.labels.push({ name: t, kind: h, statementStart: this.start }), e.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
813
+ };
814
+ p.parseExpressionStatement = function(e, t) {
815
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
816
+ };
817
+ p.parseBlock = function(e, t, i) {
818
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
819
+ var s = this.parseStatement(null);
820
+ t.body.push(s);
821
+ }
822
+ return i && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
823
+ };
824
+ p.parseFor = function(e, t) {
825
+ return e.init = t, this.expect(a.semi), e.test = this.type === a.semi ? null : this.parseExpression(), this.expect(a.semi), e.update = this.type === a.parenR ? null : this.parseExpression(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
826
+ };
827
+ p.parseForIn = function(e, t) {
828
+ var i = this.type === a._in;
829
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(
830
+ t.start,
831
+ (i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
832
+ ), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
833
+ };
834
+ p.parseVar = function(e, t, i, s) {
835
+ for (e.declarations = [], e.kind = i; ; ) {
836
+ var r = this.startNode();
837
+ if (this.parseVarId(r, i), this.eat(a.eq) ? r.init = this.parseMaybeAssign(t) : !s && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !s && (i === "using" || i === "await using") && this.options.ecmaVersion >= 17 && this.type !== a._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : !s && r.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(a.comma))
838
+ break;
839
+ }
840
+ return e;
841
+ };
842
+ p.parseVarId = function(e, t) {
843
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Pe : K, !1);
844
+ };
845
+ var se = 1, we = 2, it = 4;
846
+ p.parseFunction = function(e, t, i, s, r) {
847
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & we && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & se && (e.id = t & it && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & we) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Pe : K : $e));
848
+ var n = this.yieldPos, o = this.awaitPos, h = this.awaitIdentPos;
849
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ve(e.async, e.generator)), t & se || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = h, this.finishNode(e, t & se ? "FunctionDeclaration" : "FunctionExpression");
850
+ };
851
+ p.parseFunctionParams = function(e) {
852
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
853
+ };
854
+ p.parseClass = function(e, t) {
855
+ this.next();
856
+ var i = this.strict;
857
+ this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
858
+ var s = this.enterClassBody(), r = this.startNode(), n = !1;
859
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
860
+ var o = this.parseClassElement(e.superClass !== null);
861
+ o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = !0) : o.key && o.key.type === "PrivateIdentifier" && jt(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
862
+ }
863
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
864
+ };
865
+ p.parseClassElement = function(e) {
866
+ if (this.eat(a.semi))
867
+ return null;
868
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, n = !1, o = "method", h = !1;
869
+ if (this.eatContextual("static")) {
870
+ if (t >= 13 && this.eat(a.braceL))
871
+ return this.parseClassStaticBlock(i), i;
872
+ this.isClassElementNameStart() || this.type === a.star ? h = !0 : s = "static";
873
+ }
874
+ if (i.static = h, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? n = !0 : s = "async"), !s && (t >= 9 || !n) && this.eat(a.star) && (r = !0), !s && !n && !r) {
875
+ var u = this.value;
876
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = u : s = u);
877
+ }
878
+ if (s ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || r || n) {
879
+ var c = !i.static && le(i, "constructor"), f = c && e;
880
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, f);
881
+ } else
882
+ this.parseClassField(i);
883
+ return i;
884
+ };
885
+ p.isClassElementNameStart = function() {
886
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
887
+ };
888
+ p.parseClassElementName = function(e) {
889
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
890
+ };
891
+ p.parseClassMethod = function(e, t, i, s) {
892
+ var r = e.key;
893
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && le(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
894
+ var n = e.value = this.parseMethod(t, i, s);
895
+ return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
896
+ };
897
+ p.parseClassField = function(e) {
898
+ return le(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && le(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(ne | xe), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
899
+ };
900
+ p.parseClassStaticBlock = function(e) {
901
+ e.body = [];
902
+ var t = this.labels;
903
+ for (this.labels = [], this.enterScope(j | xe); this.type !== a.braceR; ) {
904
+ var i = this.parseStatement(null);
905
+ e.body.push(i);
906
+ }
907
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
908
+ };
909
+ p.parseClassId = function(e, t) {
910
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, K, !1)) : (t === !0 && this.unexpected(), e.id = null);
911
+ };
912
+ p.parseClassSuper = function(e) {
913
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
914
+ };
915
+ p.enterClassBody = function() {
916
+ var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
917
+ return this.privateNameStack.push(e), e.declared;
918
+ };
919
+ p.exitClassBody = function() {
920
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
921
+ if (this.options.checkPrivateFields)
922
+ for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
923
+ var o = i[n];
924
+ ee(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
925
+ }
926
+ };
927
+ function jt(e, t) {
928
+ var i = t.key.name, s = e[i], r = "true";
929
+ return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = r, !1);
930
+ }
931
+ function le(e, t) {
932
+ var i = e.computed, s = e.key;
933
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
934
+ }
935
+ p.parseExportAllDeclaration = function(e, t) {
936
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
937
+ };
938
+ p.parseExport = function(e, t) {
939
+ if (this.next(), this.eat(a.star))
940
+ return this.parseExportAllDeclaration(e, t);
941
+ if (this.eat(a._default))
942
+ return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
943
+ if (this.shouldParseExportStatement())
944
+ e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
945
+ else {
946
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from"))
947
+ this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
948
+ else {
949
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
950
+ var r = s[i];
951
+ this.checkUnreserved(r.local), this.checkLocalExport(r.local), r.local.type === "Literal" && this.raise(r.local.start, "A string literal cannot be used as an exported binding without `from`.");
952
+ }
953
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
954
+ }
955
+ this.semicolon();
956
+ }
957
+ return this.finishNode(e, "ExportNamedDeclaration");
958
+ };
959
+ p.parseExportDeclaration = function(e) {
960
+ return this.parseStatement(null);
961
+ };
962
+ p.parseExportDefaultDeclaration = function() {
963
+ var e;
964
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
965
+ var t = this.startNode();
966
+ return this.next(), e && this.next(), this.parseFunction(t, se | it, !1, e);
967
+ } else if (this.type === a._class) {
968
+ var i = this.startNode();
969
+ return this.parseClass(i, "nullableID");
970
+ } else {
971
+ var s = this.parseMaybeAssign();
972
+ return this.semicolon(), s;
973
+ }
974
+ };
975
+ p.checkExport = function(e, t, i) {
976
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), ee(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
977
+ };
978
+ p.checkPatternExport = function(e, t) {
979
+ var i = t.type;
980
+ if (i === "Identifier")
981
+ this.checkExport(e, t, t.start);
982
+ else if (i === "ObjectPattern")
983
+ for (var s = 0, r = t.properties; s < r.length; s += 1) {
984
+ var n = r[s];
985
+ this.checkPatternExport(e, n);
986
+ }
987
+ else if (i === "ArrayPattern")
988
+ for (var o = 0, h = t.elements; o < h.length; o += 1) {
989
+ var u = h[o];
990
+ u && this.checkPatternExport(e, u);
991
+ }
992
+ else
993
+ i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
994
+ };
995
+ p.checkVariableExport = function(e, t) {
996
+ if (e)
997
+ for (var i = 0, s = t; i < s.length; i += 1) {
998
+ var r = s[i];
999
+ this.checkPatternExport(e, r.id);
1000
+ }
1001
+ };
1002
+ p.shouldParseExportStatement = function() {
1003
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1004
+ };
1005
+ p.parseExportSpecifier = function(e) {
1006
+ var t = this.startNode();
1007
+ return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(
1008
+ e,
1009
+ t.exported,
1010
+ t.exported.start
1011
+ ), this.finishNode(t, "ExportSpecifier");
1012
+ };
1013
+ p.parseExportSpecifiers = function(e) {
1014
+ var t = [], i = !0;
1015
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1016
+ if (i)
1017
+ i = !1;
1018
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR))
1019
+ break;
1020
+ t.push(this.parseExportSpecifier(e));
1021
+ }
1022
+ return t;
1023
+ };
1024
+ p.parseImport = function(e) {
1025
+ return this.next(), this.type === a.string ? (e.specifiers = Xt, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
1026
+ };
1027
+ p.parseImportSpecifier = function() {
1028
+ var e = this.startNode();
1029
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportSpecifier");
1030
+ };
1031
+ p.parseImportDefaultSpecifier = function() {
1032
+ var e = this.startNode();
1033
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportDefaultSpecifier");
1034
+ };
1035
+ p.parseImportNamespaceSpecifier = function() {
1036
+ var e = this.startNode();
1037
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportNamespaceSpecifier");
1038
+ };
1039
+ p.parseImportSpecifiers = function() {
1040
+ var e = [], t = !0;
1041
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma)))
1042
+ return e;
1043
+ if (this.type === a.star)
1044
+ return e.push(this.parseImportNamespaceSpecifier()), e;
1045
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1046
+ if (t)
1047
+ t = !1;
1048
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR))
1049
+ break;
1050
+ e.push(this.parseImportSpecifier());
1051
+ }
1052
+ return e;
1053
+ };
1054
+ p.parseWithClause = function() {
1055
+ var e = [];
1056
+ if (!this.eat(a._with))
1057
+ return e;
1058
+ this.expect(a.braceL);
1059
+ for (var t = {}, i = !0; !this.eat(a.braceR); ) {
1060
+ if (i)
1061
+ i = !1;
1062
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR))
1063
+ break;
1064
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
1065
+ ee(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = !0, e.push(s);
1066
+ }
1067
+ return e;
1068
+ };
1069
+ p.parseImportAttribute = function() {
1070
+ var e = this.startNode();
1071
+ return e.key = this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(a.colon), this.type !== a.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
1072
+ };
1073
+ p.parseModuleExportName = function() {
1074
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
1075
+ var e = this.parseLiteral(this.value);
1076
+ return Wt.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1077
+ }
1078
+ return this.parseIdent(!0);
1079
+ };
1080
+ p.adaptDirectivePrologue = function(e) {
1081
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t)
1082
+ e[t].directive = e[t].expression.raw.slice(1, -1);
1083
+ };
1084
+ p.isDirectiveCandidate = function(e) {
1085
+ return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'");
1086
+ };
1087
+ var B = S.prototype;
1088
+ B.toAssignable = function(e, t, i) {
1089
+ if (this.options.ecmaVersion >= 6 && e)
1090
+ switch (e.type) {
1091
+ case "Identifier":
1092
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
1093
+ break;
1094
+ case "ObjectPattern":
1095
+ case "ArrayPattern":
1096
+ case "AssignmentPattern":
1097
+ case "RestElement":
1098
+ break;
1099
+ case "ObjectExpression":
1100
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, !0);
1101
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1102
+ var n = r[s];
1103
+ this.toAssignable(n, t), n.type === "RestElement" && (n.argument.type === "ArrayPattern" || n.argument.type === "ObjectPattern") && this.raise(n.argument.start, "Unexpected token");
1104
+ }
1105
+ break;
1106
+ case "Property":
1107
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
1108
+ break;
1109
+ case "ArrayExpression":
1110
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, !0), this.toAssignableList(e.elements, t);
1111
+ break;
1112
+ case "SpreadElement":
1113
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
1114
+ break;
1115
+ case "AssignmentExpression":
1116
+ e.operator !== "=" && this.raise(e.left.end, "Only '=' operator can be used for specifying default value."), e.type = "AssignmentPattern", delete e.operator, this.toAssignable(e.left, t);
1117
+ break;
1118
+ case "ParenthesizedExpression":
1119
+ this.toAssignable(e.expression, t, i);
1120
+ break;
1121
+ case "ChainExpression":
1122
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1123
+ break;
1124
+ case "MemberExpression":
1125
+ if (!t)
1126
+ break;
1127
+ default:
1128
+ this.raise(e.start, "Assigning to rvalue");
1129
+ }
1130
+ else
1131
+ i && this.checkPatternErrors(i, !0);
1132
+ return e;
1133
+ };
1134
+ B.toAssignableList = function(e, t) {
1135
+ for (var i = e.length, s = 0; s < i; s++) {
1136
+ var r = e[s];
1137
+ r && this.toAssignable(r, t);
1138
+ }
1139
+ if (i) {
1140
+ var n = e[i - 1];
1141
+ this.options.ecmaVersion === 6 && t && n && n.type === "RestElement" && n.argument.type !== "Identifier" && this.unexpected(n.argument.start);
1142
+ }
1143
+ return e;
1144
+ };
1145
+ B.parseSpread = function(e) {
1146
+ var t = this.startNode();
1147
+ return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
1148
+ };
1149
+ B.parseRestBinding = function() {
1150
+ var e = this.startNode();
1151
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1152
+ };
1153
+ B.parseBindingAtom = function() {
1154
+ if (this.options.ecmaVersion >= 6)
1155
+ switch (this.type) {
1156
+ case a.bracketL:
1157
+ var e = this.startNode();
1158
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
1159
+ case a.braceL:
1160
+ return this.parseObj(!0);
1161
+ }
1162
+ return this.parseIdent();
1163
+ };
1164
+ B.parseBindingList = function(e, t, i, s) {
1165
+ for (var r = [], n = !0; !this.eat(e); )
1166
+ if (n ? n = !1 : this.expect(a.comma), t && this.type === a.comma)
1167
+ r.push(null);
1168
+ else {
1169
+ if (i && this.afterTrailingComma(e))
1170
+ break;
1171
+ if (this.type === a.ellipsis) {
1172
+ var o = this.parseRestBinding();
1173
+ this.parseBindingListItem(o), r.push(o), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1174
+ break;
1175
+ } else
1176
+ r.push(this.parseAssignableListItem(s));
1177
+ }
1178
+ return r;
1179
+ };
1180
+ B.parseAssignableListItem = function(e) {
1181
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
1182
+ return this.parseBindingListItem(t), t;
1183
+ };
1184
+ B.parseBindingListItem = function(e) {
1185
+ return e;
1186
+ };
1187
+ B.parseMaybeDefault = function(e, t, i) {
1188
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq))
1189
+ return i;
1190
+ var s = this.startNodeAt(e, t);
1191
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
1192
+ };
1193
+ B.checkLValSimple = function(e, t, i) {
1194
+ t === void 0 && (t = ce);
1195
+ var s = t !== ce;
1196
+ switch (e.type) {
1197
+ case "Identifier":
1198
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === K && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ee(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== tt && this.declareName(e.name, t, e.start));
1199
+ break;
1200
+ case "ChainExpression":
1201
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1202
+ break;
1203
+ case "MemberExpression":
1204
+ s && this.raiseRecoverable(e.start, "Binding member expression");
1205
+ break;
1206
+ case "ParenthesizedExpression":
1207
+ return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
1208
+ default:
1209
+ this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
1210
+ }
1211
+ };
1212
+ B.checkLValPattern = function(e, t, i) {
1213
+ switch (t === void 0 && (t = ce), e.type) {
1214
+ case "ObjectPattern":
1215
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1216
+ var n = r[s];
1217
+ this.checkLValInnerPattern(n, t, i);
1218
+ }
1219
+ break;
1220
+ case "ArrayPattern":
1221
+ for (var o = 0, h = e.elements; o < h.length; o += 1) {
1222
+ var u = h[o];
1223
+ u && this.checkLValInnerPattern(u, t, i);
1224
+ }
1225
+ break;
1226
+ default:
1227
+ this.checkLValSimple(e, t, i);
1228
+ }
1229
+ };
1230
+ B.checkLValInnerPattern = function(e, t, i) {
1231
+ switch (t === void 0 && (t = ce), e.type) {
1232
+ case "Property":
1233
+ this.checkLValInnerPattern(e.value, t, i);
1234
+ break;
1235
+ case "AssignmentPattern":
1236
+ this.checkLValPattern(e.left, t, i);
1237
+ break;
1238
+ case "RestElement":
1239
+ this.checkLValPattern(e.argument, t, i);
1240
+ break;
1241
+ default:
1242
+ this.checkLValPattern(e, t, i);
1243
+ }
1244
+ };
1245
+ var D = function(t, i, s, r, n) {
1246
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1247
+ }, y = {
1248
+ b_stat: new D("{", !1),
1249
+ b_expr: new D("{", !0),
1250
+ b_tmpl: new D("${", !1),
1251
+ p_stat: new D("(", !1),
1252
+ p_expr: new D("(", !0),
1253
+ q_tmpl: new D("`", !0, !0, function(e) {
1254
+ return e.tryReadTemplateToken();
1255
+ }),
1256
+ f_stat: new D("function", !1),
1257
+ f_expr: new D("function", !0),
1258
+ f_expr_gen: new D("function", !0, !1, null, !0),
1259
+ f_gen: new D("function", !1, !1, null, !0)
1260
+ }, ie = S.prototype;
1261
+ ie.initialContext = function() {
1262
+ return [y.b_stat];
1263
+ };
1264
+ ie.curContext = function() {
1265
+ return this.context[this.context.length - 1];
1266
+ };
1267
+ ie.braceIsBlock = function(e) {
1268
+ var t = this.curContext();
1269
+ return t === y.f_expr || t === y.f_stat ? !0 : e === a.colon && (t === y.b_stat || t === y.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? V.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? !0 : e === a.braceL ? t === y.b_stat : e === a._var || e === a._const || e === a.name ? !1 : !this.exprAllowed;
1270
+ };
1271
+ ie.inGeneratorContext = function() {
1272
+ for (var e = this.context.length - 1; e >= 1; e--) {
1273
+ var t = this.context[e];
1274
+ if (t.token === "function")
1275
+ return t.generator;
1276
+ }
1277
+ return !1;
1278
+ };
1279
+ ie.updateContext = function(e) {
1280
+ var t, i = this.type;
1281
+ i.keyword && e === a.dot ? this.exprAllowed = !1 : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1282
+ };
1283
+ ie.overrideContext = function(e) {
1284
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1285
+ };
1286
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1287
+ if (this.context.length === 1) {
1288
+ this.exprAllowed = !0;
1289
+ return;
1290
+ }
1291
+ var e = this.context.pop();
1292
+ e === y.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1293
+ };
1294
+ a.braceL.updateContext = function(e) {
1295
+ this.context.push(this.braceIsBlock(e) ? y.b_stat : y.b_expr), this.exprAllowed = !0;
1296
+ };
1297
+ a.dollarBraceL.updateContext = function() {
1298
+ this.context.push(y.b_tmpl), this.exprAllowed = !0;
1299
+ };
1300
+ a.parenL.updateContext = function(e) {
1301
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1302
+ this.context.push(t ? y.p_stat : y.p_expr), this.exprAllowed = !0;
1303
+ };
1304
+ a.incDec.updateContext = function() {
1305
+ };
1306
+ a._function.updateContext = a._class.updateContext = function(e) {
1307
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== y.p_stat) && !(e === a._return && V.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === y.b_stat) ? this.context.push(y.f_expr) : this.context.push(y.f_stat), this.exprAllowed = !1;
1308
+ };
1309
+ a.colon.updateContext = function() {
1310
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
1311
+ };
1312
+ a.backQuote.updateContext = function() {
1313
+ this.curContext() === y.q_tmpl ? this.context.pop() : this.context.push(y.q_tmpl), this.exprAllowed = !1;
1314
+ };
1315
+ a.star.updateContext = function(e) {
1316
+ if (e === a._function) {
1317
+ var t = this.context.length - 1;
1318
+ this.context[t] === y.f_expr ? this.context[t] = y.f_expr_gen : this.context[t] = y.f_gen;
1319
+ }
1320
+ this.exprAllowed = !0;
1321
+ };
1322
+ a.name.updateContext = function(e) {
1323
+ var t = !1;
1324
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
1325
+ };
1326
+ var d = S.prototype;
1327
+ d.checkPropClash = function(e, t, i) {
1328
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1329
+ var s = e.key, r;
1330
+ switch (s.type) {
1331
+ case "Identifier":
1332
+ r = s.name;
1333
+ break;
1334
+ case "Literal":
1335
+ r = String(s.value);
1336
+ break;
1337
+ default:
1338
+ return;
1339
+ }
1340
+ var n = e.kind;
1341
+ if (this.options.ecmaVersion >= 6) {
1342
+ r === "__proto__" && n === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = !0);
1343
+ return;
1344
+ }
1345
+ r = "$" + r;
1346
+ var o = t[r];
1347
+ if (o) {
1348
+ var h;
1349
+ n === "init" ? h = this.strict && o.init || o.get || o.set : h = o.init || o[n], h && this.raiseRecoverable(s.start, "Redefinition of property");
1350
+ } else
1351
+ o = t[r] = {
1352
+ init: !1,
1353
+ get: !1,
1354
+ set: !1
1355
+ };
1356
+ o[n] = !0;
1357
+ }
1358
+ };
1359
+ d.parseExpression = function(e, t) {
1360
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1361
+ if (this.type === a.comma) {
1362
+ var n = this.startNodeAt(i, s);
1363
+ for (n.expressions = [r]; this.eat(a.comma); )
1364
+ n.expressions.push(this.parseMaybeAssign(e, t));
1365
+ return this.finishNode(n, "SequenceExpression");
1366
+ }
1367
+ return r;
1368
+ };
1369
+ d.parseMaybeAssign = function(e, t, i) {
1370
+ if (this.isContextual("yield")) {
1371
+ if (this.inGenerator)
1372
+ return this.parseYield(e);
1373
+ this.exprAllowed = !1;
1374
+ }
1375
+ var s = !1, r = -1, n = -1, o = -1;
1376
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ge(), s = !0);
1377
+ var h = this.start, u = this.startLoc;
1378
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1379
+ var c = this.parseMaybeConditional(e, t);
1380
+ if (i && (c = i.call(this, c, h, u)), this.type.isAssign) {
1381
+ var f = this.startNodeAt(h, u);
1382
+ return f.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
1383
+ } else
1384
+ s && this.checkExpressionErrors(t, !0);
1385
+ return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1386
+ };
1387
+ d.parseMaybeConditional = function(e, t) {
1388
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1389
+ if (this.checkExpressionErrors(t))
1390
+ return r;
1391
+ if (this.eat(a.question)) {
1392
+ var n = this.startNodeAt(i, s);
1393
+ return n.test = r, n.consequent = this.parseMaybeAssign(), this.expect(a.colon), n.alternate = this.parseMaybeAssign(e), this.finishNode(n, "ConditionalExpression");
1394
+ }
1395
+ return r;
1396
+ };
1397
+ d.parseExprOps = function(e, t) {
1398
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
1399
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1400
+ };
1401
+ d.parseExprOp = function(e, t, i, s, r) {
1402
+ var n = this.type.binop;
1403
+ if (n != null && (!r || this.type !== a._in) && n > s) {
1404
+ var o = this.type === a.logicalOR || this.type === a.logicalAND, h = this.type === a.coalesce;
1405
+ h && (n = a.logicalAND.binop);
1406
+ var u = this.value;
1407
+ this.next();
1408
+ var c = this.start, f = this.startLoc, x = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), c, f, n, r), g = this.buildBinary(t, i, e, x, u, o || h);
1409
+ return (o && this.type === a.coalesce || h && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(g, t, i, s, r);
1410
+ }
1411
+ return e;
1412
+ };
1413
+ d.buildBinary = function(e, t, i, s, r, n) {
1414
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1415
+ var o = this.startNodeAt(e, t);
1416
+ return o.left = i, o.operator = r, o.right = s, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1417
+ };
1418
+ d.parseMaybeUnary = function(e, t, i, s) {
1419
+ var r = this.start, n = this.startLoc, o;
1420
+ if (this.isContextual("await") && this.canAwait)
1421
+ o = this.parseAwait(s), t = !0;
1422
+ else if (this.type.prefix) {
1423
+ var h = this.startNode(), u = this.type === a.incDec;
1424
+ h.operator = this.value, h.prefix = !0, this.next(), h.argument = this.parseMaybeUnary(null, !0, u, s), this.checkExpressionErrors(e, !0), u ? this.checkLValSimple(h.argument) : this.strict && h.operator === "delete" && st(h.argument) ? this.raiseRecoverable(h.start, "Deleting local variable in strict mode") : h.operator === "delete" && Ae(h.argument) ? this.raiseRecoverable(h.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(h, u ? "UpdateExpression" : "UnaryExpression");
1425
+ } else if (!t && this.type === a.privateId)
1426
+ (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1427
+ else {
1428
+ if (o = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e))
1429
+ return o;
1430
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1431
+ var c = this.startNodeAt(r, n);
1432
+ c.operator = this.value, c.prefix = !1, c.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(c, "UpdateExpression");
1433
+ }
1434
+ }
1435
+ if (!i && this.eat(a.starstar))
1436
+ if (t)
1437
+ this.unexpected(this.lastTokStart);
1438
+ else
1439
+ return this.buildBinary(r, n, o, this.parseMaybeUnary(null, !1, !1, s), "**", !1);
1440
+ else
1441
+ return o;
1442
+ };
1443
+ function st(e) {
1444
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && st(e.expression);
1445
+ }
1446
+ function Ae(e) {
1447
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Ae(e.expression) || e.type === "ParenthesizedExpression" && Ae(e.expression);
1448
+ }
1449
+ d.parseExprSubscripts = function(e, t) {
1450
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1451
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
1452
+ return r;
1453
+ var n = this.parseSubscripts(r, i, s, !1, t);
1454
+ return e && n.type === "MemberExpression" && (e.parenthesizedAssign >= n.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= n.start && (e.parenthesizedBind = -1), e.trailingComma >= n.start && (e.trailingComma = -1)), n;
1455
+ };
1456
+ d.parseSubscripts = function(e, t, i, s, r) {
1457
+ for (var n = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = !1; ; ) {
1458
+ var h = this.parseSubscript(e, t, i, s, n, o, r);
1459
+ if (h.optional && (o = !0), h === e || h.type === "ArrowFunctionExpression") {
1460
+ if (o) {
1461
+ var u = this.startNodeAt(t, i);
1462
+ u.expression = h, h = this.finishNode(u, "ChainExpression");
1463
+ }
1464
+ return h;
1465
+ }
1466
+ e = h;
1467
+ }
1468
+ };
1469
+ d.shouldParseAsyncArrow = function() {
1470
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1471
+ };
1472
+ d.parseSubscriptAsyncArrow = function(e, t, i, s) {
1473
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, s);
1474
+ };
1475
+ d.parseSubscript = function(e, t, i, s, r, n, o) {
1476
+ var h = this.options.ecmaVersion >= 11, u = h && this.eat(a.questionDot);
1477
+ s && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1478
+ var c = this.eat(a.bracketL);
1479
+ if (c || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1480
+ var f = this.startNodeAt(t, i);
1481
+ f.object = e, c ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, h && (f.optional = u), e = this.finishNode(f, "MemberExpression");
1482
+ } else if (!s && this.eat(a.parenL)) {
1483
+ var x = new ge(), g = this.yieldPos, C = this.awaitPos, E = this.awaitIdentPos;
1484
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1485
+ var P = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, x);
1486
+ if (r && !u && this.shouldParseAsyncArrow())
1487
+ return this.checkPatternErrors(x, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = g, this.awaitPos = C, this.awaitIdentPos = E, this.parseSubscriptAsyncArrow(t, i, P, o);
1488
+ this.checkExpressionErrors(x, !0), this.yieldPos = g || this.yieldPos, this.awaitPos = C || this.awaitPos, this.awaitIdentPos = E || this.awaitIdentPos;
1489
+ var T = this.startNodeAt(t, i);
1490
+ T.callee = e, T.arguments = P, h && (T.optional = u), e = this.finishNode(T, "CallExpression");
1491
+ } else if (this.type === a.backQuote) {
1492
+ (u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1493
+ var H = this.startNodeAt(t, i);
1494
+ H.tag = e, H.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(H, "TaggedTemplateExpression");
1495
+ }
1496
+ return e;
1497
+ };
1498
+ d.parseExprAtom = function(e, t, i) {
1499
+ this.type === a.slash && this.readRegexp();
1500
+ var s, r = this.potentialArrowAt === this.start;
1501
+ switch (this.type) {
1502
+ case a._super:
1503
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s = this.startNode(), this.next(), this.type === a.parenL && !this.allowDirectSuper && this.raise(s.start, "super() call outside constructor of a subclass"), this.type !== a.dot && this.type !== a.bracketL && this.type !== a.parenL && this.unexpected(), this.finishNode(s, "Super");
1504
+ case a._this:
1505
+ return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
1506
+ case a.name:
1507
+ var n = this.start, o = this.startLoc, h = this.containsEsc, u = this.parseIdent(!1);
1508
+ if (this.options.ecmaVersion >= 8 && !h && u.name === "async" && !this.canInsertSemicolon() && this.eat(a._function))
1509
+ return this.overrideContext(y.f_expr), this.parseFunction(this.startNodeAt(n, o), 0, !1, !0, t);
1510
+ if (r && !this.canInsertSemicolon()) {
1511
+ if (this.eat(a.arrow))
1512
+ return this.parseArrowExpression(this.startNodeAt(n, o), [u], !1, t);
1513
+ if (this.options.ecmaVersion >= 8 && u.name === "async" && this.type === a.name && !h && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
1514
+ return u = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, o), [u], !0, t);
1515
+ }
1516
+ return u;
1517
+ case a.regexp:
1518
+ var c = this.value;
1519
+ return s = this.parseLiteral(c.value), s.regex = { pattern: c.pattern, flags: c.flags }, s;
1520
+ case a.num:
1521
+ case a.string:
1522
+ return this.parseLiteral(this.value);
1523
+ case a._null:
1524
+ case a._true:
1525
+ case a._false:
1526
+ return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1527
+ case a.parenL:
1528
+ var f = this.start, x = this.parseParenAndDistinguishExpression(r, t);
1529
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(x) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), x;
1530
+ case a.bracketL:
1531
+ return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
1532
+ case a.braceL:
1533
+ return this.overrideContext(y.b_expr), this.parseObj(!1, e);
1534
+ case a._function:
1535
+ return s = this.startNode(), this.next(), this.parseFunction(s, 0);
1536
+ case a._class:
1537
+ return this.parseClass(this.startNode(), !1);
1538
+ case a._new:
1539
+ return this.parseNew();
1540
+ case a.backQuote:
1541
+ return this.parseTemplate();
1542
+ case a._import:
1543
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1544
+ default:
1545
+ return this.parseExprAtomDefault();
1546
+ }
1547
+ };
1548
+ d.parseExprAtomDefault = function() {
1549
+ this.unexpected();
1550
+ };
1551
+ d.parseExprImport = function(e) {
1552
+ var t = this.startNode();
1553
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e)
1554
+ return this.parseDynamicImport(t);
1555
+ if (this.type === a.dot) {
1556
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1557
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1558
+ } else
1559
+ this.unexpected();
1560
+ };
1561
+ d.parseDynamicImport = function(e) {
1562
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16)
1563
+ this.eat(a.parenR) ? e.options = null : (this.expect(a.comma), this.afterTrailingComma(a.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(a.parenR) || (this.expect(a.comma), this.afterTrailingComma(a.parenR) || this.unexpected())));
1564
+ else if (!this.eat(a.parenR)) {
1565
+ var t = this.start;
1566
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1567
+ }
1568
+ return this.finishNode(e, "ImportExpression");
1569
+ };
1570
+ d.parseImportMeta = function(e) {
1571
+ this.next();
1572
+ var t = this.containsEsc;
1573
+ return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
1574
+ };
1575
+ d.parseLiteral = function(e) {
1576
+ var t = this.startNode();
1577
+ return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value != null ? t.value.toString() : t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
1578
+ };
1579
+ d.parseParenExpression = function() {
1580
+ this.expect(a.parenL);
1581
+ var e = this.parseExpression();
1582
+ return this.expect(a.parenR), e;
1583
+ };
1584
+ d.shouldParseArrow = function(e) {
1585
+ return !this.canInsertSemicolon();
1586
+ };
1587
+ d.parseParenAndDistinguishExpression = function(e, t) {
1588
+ var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1589
+ if (this.options.ecmaVersion >= 6) {
1590
+ this.next();
1591
+ var o = this.start, h = this.startLoc, u = [], c = !0, f = !1, x = new ge(), g = this.yieldPos, C = this.awaitPos, E;
1592
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
1593
+ if (c ? c = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
1594
+ f = !0;
1595
+ break;
1596
+ } else if (this.type === a.ellipsis) {
1597
+ E = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
1598
+ this.start,
1599
+ "Comma is not permitted after the rest element"
1600
+ );
1601
+ break;
1602
+ } else
1603
+ u.push(this.parseMaybeAssign(!1, x, this.parseParenItem));
1604
+ var P = this.lastTokEnd, T = this.lastTokEndLoc;
1605
+ if (this.expect(a.parenR), e && this.shouldParseArrow(u) && this.eat(a.arrow))
1606
+ return this.checkPatternErrors(x, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = g, this.awaitPos = C, this.parseParenArrowList(i, s, u, t);
1607
+ (!u.length || f) && this.unexpected(this.lastTokStart), E && this.unexpected(E), this.checkExpressionErrors(x, !0), this.yieldPos = g || this.yieldPos, this.awaitPos = C || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, h), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", P, T)) : r = u[0];
1608
+ } else
1609
+ r = this.parseParenExpression();
1610
+ if (this.options.preserveParens) {
1611
+ var H = this.startNodeAt(i, s);
1612
+ return H.expression = r, this.finishNode(H, "ParenthesizedExpression");
1613
+ } else
1614
+ return r;
1615
+ };
1616
+ d.parseParenItem = function(e) {
1617
+ return e;
1618
+ };
1619
+ d.parseParenArrowList = function(e, t, i, s) {
1620
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
1621
+ };
1622
+ var Zt = [];
1623
+ d.parseNew = function() {
1624
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1625
+ var e = this.startNode();
1626
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1627
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1628
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1629
+ var i = this.containsEsc;
1630
+ return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
1631
+ }
1632
+ var s = this.start, r = this.startLoc;
1633
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Zt, this.finishNode(e, "NewExpression");
1634
+ };
1635
+ d.parseTemplateElement = function(e) {
1636
+ var t = e.isTagged, i = this.startNode();
1637
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
1638
+ raw: this.value.replace(/\r\n?/g, `
1639
+ `),
1640
+ cooked: null
1641
+ }) : i.value = {
1642
+ raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1643
+ `),
1644
+ cooked: this.value
1645
+ }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1646
+ };
1647
+ d.parseTemplate = function(e) {
1648
+ e === void 0 && (e = {});
1649
+ var t = e.isTagged;
1650
+ t === void 0 && (t = !1);
1651
+ var i = this.startNode();
1652
+ this.next(), i.expressions = [];
1653
+ var s = this.parseTemplateElement({ isTagged: t });
1654
+ for (i.quasis = [s]; !s.tail; )
1655
+ this.type === a.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(a.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(a.braceR), i.quasis.push(s = this.parseTemplateElement({ isTagged: t }));
1656
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1657
+ };
1658
+ d.isAsyncProp = function(e) {
1659
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a.name || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a.star) && !V.test(this.input.slice(this.lastTokEnd, this.start));
1660
+ };
1661
+ d.parseObj = function(e, t) {
1662
+ var i = this.startNode(), s = !0, r = {};
1663
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1664
+ if (s)
1665
+ s = !1;
1666
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR))
1667
+ break;
1668
+ var n = this.parseProperty(e, t);
1669
+ e || this.checkPropClash(n, r, t), i.properties.push(n);
1670
+ }
1671
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1672
+ };
1673
+ d.parseProperty = function(e, t) {
1674
+ var i = this.startNode(), s, r, n, o;
1675
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis))
1676
+ return e ? (i.argument = this.parseIdent(!1), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(!1, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
1677
+ this.options.ecmaVersion >= 6 && (i.method = !1, i.shorthand = !1, (e || t) && (n = this.start, o = this.startLoc), e || (s = this.eat(a.star)));
1678
+ var h = this.containsEsc;
1679
+ return this.parsePropertyName(i), !e && !h && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = !0, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = !1, this.parsePropertyValue(i, e, s, r, n, o, t, h), this.finishNode(i, "Property");
1680
+ };
1681
+ d.parseGetterSetter = function(e) {
1682
+ var t = e.key.name;
1683
+ this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
1684
+ var i = e.kind === "get" ? 0 : 1;
1685
+ if (e.value.params.length !== i) {
1686
+ var s = e.value.start;
1687
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1688
+ } else
1689
+ e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1690
+ };
1691
+ d.parsePropertyValue = function(e, t, i, s, r, n, o, h) {
1692
+ (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(i, s), e.kind = "init") : !t && !h && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== a.comma && this.type !== a.braceR && this.type !== a.eq ? ((i || s) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t ? e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
1693
+ };
1694
+ d.parsePropertyName = function(e) {
1695
+ if (this.options.ecmaVersion >= 6) {
1696
+ if (this.eat(a.bracketL))
1697
+ return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1698
+ e.computed = !1;
1699
+ }
1700
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1701
+ };
1702
+ d.initFunction = function(e) {
1703
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
1704
+ };
1705
+ d.parseMethod = function(e, t, i) {
1706
+ var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1707
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ve(t, s.generator) | xe | (i ? Je : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1708
+ };
1709
+ d.parseArrowExpression = function(e, t, i, s) {
1710
+ var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1711
+ return this.enterScope(Ve(i, !1) | Ne), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1712
+ };
1713
+ d.parseFunctionBody = function(e, t, i, s) {
1714
+ var r = t && this.type !== a.braceL, n = this.strict, o = !1;
1715
+ if (r)
1716
+ e.body = this.parseMaybeAssign(s), e.expression = !0, this.checkParams(e, !1);
1717
+ else {
1718
+ var h = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1719
+ (!n || h) && (o = this.strictDirective(this.end), o && h && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1720
+ var u = this.labels;
1721
+ this.labels = [], o && (this.strict = !0), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, tt), e.body = this.parseBlock(!1, void 0, o && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1722
+ }
1723
+ this.exitScope();
1724
+ };
1725
+ d.isSimpleParamList = function(e) {
1726
+ for (var t = 0, i = e; t < i.length; t += 1) {
1727
+ var s = i[t];
1728
+ if (s.type !== "Identifier")
1729
+ return !1;
1730
+ }
1731
+ return !0;
1732
+ };
1733
+ d.checkParams = function(e, t) {
1734
+ for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1735
+ var n = r[s];
1736
+ this.checkLValInnerPattern(n, Pe, t ? null : i);
1737
+ }
1738
+ };
1739
+ d.parseExprList = function(e, t, i, s) {
1740
+ for (var r = [], n = !0; !this.eat(e); ) {
1741
+ if (n)
1742
+ n = !1;
1743
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e))
1744
+ break;
1745
+ var o = void 0;
1746
+ i && this.type === a.comma ? o = null : this.type === a.ellipsis ? (o = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, s), r.push(o);
1747
+ }
1748
+ return r;
1749
+ };
1750
+ d.checkUnreserved = function(e) {
1751
+ var t = e.start, i = e.end, s = e.name;
1752
+ if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & me) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1753
+ var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1754
+ r.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
1755
+ }
1756
+ };
1757
+ d.parseIdent = function(e) {
1758
+ var t = this.parseIdentNode();
1759
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1760
+ };
1761
+ d.parseIdentNode = function() {
1762
+ var e = this.startNode();
1763
+ return this.type === a.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = a.name) : this.unexpected(), e;
1764
+ };
1765
+ d.parsePrivateIdent = function() {
1766
+ var e = this.startNode();
1767
+ return this.type === a.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
1768
+ };
1769
+ d.parseYield = function(e) {
1770
+ this.yieldPos || (this.yieldPos = this.start);
1771
+ var t = this.startNode();
1772
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1773
+ };
1774
+ d.parseAwait = function(e) {
1775
+ this.awaitPos || (this.awaitPos = this.start);
1776
+ var t = this.startNode();
1777
+ return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
1778
+ };
1779
+ var pe = S.prototype;
1780
+ pe.raise = function(e, t) {
1781
+ var i = Xe(this.input, e);
1782
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1783
+ var s = new SyntaxError(t);
1784
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1785
+ };
1786
+ pe.raiseRecoverable = pe.raise;
1787
+ pe.curPosition = function() {
1788
+ if (this.options.locations)
1789
+ return new ae(this.curLine, this.pos - this.lineStart);
1790
+ };
1791
+ var Y = S.prototype, Jt = function(t) {
1792
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1793
+ };
1794
+ Y.enterScope = function(e) {
1795
+ this.scopeStack.push(new Jt(e));
1796
+ };
1797
+ Y.exitScope = function() {
1798
+ this.scopeStack.pop();
1799
+ };
1800
+ Y.treatFunctionsAsVarInScope = function(e) {
1801
+ return e.flags & te || !this.inModule && e.flags & re;
1802
+ };
1803
+ Y.declareName = function(e, t, i) {
1804
+ var s = !1;
1805
+ if (t === K) {
1806
+ var r = this.currentScope();
1807
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & re && delete this.undefinedExports[e];
1808
+ } else if (t === et) {
1809
+ var n = this.currentScope();
1810
+ n.lexical.push(e);
1811
+ } else if (t === $e) {
1812
+ var o = this.currentScope();
1813
+ this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1814
+ } else
1815
+ for (var h = this.scopeStack.length - 1; h >= 0; --h) {
1816
+ var u = this.scopeStack[h];
1817
+ if (u.lexical.indexOf(e) > -1 && !(u.flags & Ze && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1818
+ s = !0;
1819
+ break;
1820
+ }
1821
+ if (u.var.push(e), this.inModule && u.flags & re && delete this.undefinedExports[e], u.flags & me)
1822
+ break;
1823
+ }
1824
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1825
+ };
1826
+ Y.checkLocalExport = function(e) {
1827
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1828
+ };
1829
+ Y.currentScope = function() {
1830
+ return this.scopeStack[this.scopeStack.length - 1];
1831
+ };
1832
+ Y.currentVarScope = function() {
1833
+ for (var e = this.scopeStack.length - 1; ; e--) {
1834
+ var t = this.scopeStack[e];
1835
+ if (t.flags & (me | ne | j))
1836
+ return t;
1837
+ }
1838
+ };
1839
+ Y.currentThisScope = function() {
1840
+ for (var e = this.scopeStack.length - 1; ; e--) {
1841
+ var t = this.scopeStack[e];
1842
+ if (t.flags & (me | ne | j) && !(t.flags & Ne))
1843
+ return t;
1844
+ }
1845
+ };
1846
+ var ve = function(t, i, s) {
1847
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new de(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1848
+ }, oe = S.prototype;
1849
+ oe.startNode = function() {
1850
+ return new ve(this, this.start, this.startLoc);
1851
+ };
1852
+ oe.startNodeAt = function(e, t) {
1853
+ return new ve(this, e, t);
1854
+ };
1855
+ function at(e, t, i, s) {
1856
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1857
+ }
1858
+ oe.finishNode = function(e, t) {
1859
+ return at.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1860
+ };
1861
+ oe.finishNodeAt = function(e, t, i, s) {
1862
+ return at.call(this, e, t, i, s);
1863
+ };
1864
+ oe.copyNode = function(e) {
1865
+ var t = new ve(this, e.start, this.startLoc);
1866
+ for (var i in e)
1867
+ t[i] = e[i];
1868
+ return t;
1869
+ };
1870
+ var $t = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", rt = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", nt = rt + " Extended_Pictographic", ot = nt, ut = ot + " EBase EComp EMod EPres ExtPict", ht = ut, ei = ht, ti = {
1871
+ 9: rt,
1872
+ 10: nt,
1873
+ 11: ot,
1874
+ 12: ut,
1875
+ 13: ht,
1876
+ 14: ei
1877
+ }, ii = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", si = {
1878
+ 9: "",
1879
+ 10: "",
1880
+ 11: "",
1881
+ 12: "",
1882
+ 13: "",
1883
+ 14: ii
1884
+ }, Be = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", ct = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", lt = ct + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", pt = lt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", ft = pt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", dt = ft + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", ai = dt + " " + $t, ri = {
1885
+ 9: ct,
1886
+ 10: lt,
1887
+ 11: pt,
1888
+ 12: ft,
1889
+ 13: dt,
1890
+ 14: ai
1891
+ }, xt = {};
1892
+ function ni(e) {
1893
+ var t = xt[e] = {
1894
+ binary: z(ti[e] + " " + Be),
1895
+ binaryOfStrings: z(si[e]),
1896
+ nonBinary: {
1897
+ General_Category: z(Be),
1898
+ Script: z(ri[e])
1899
+ }
1900
+ };
1901
+ t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
1902
+ }
1903
+ for (var _e = 0, De = [9, 10, 11, 12, 13, 14]; _e < De.length; _e += 1) {
1904
+ var oi = De[_e];
1905
+ ni(oi);
1906
+ }
1907
+ var l = S.prototype, fe = function(t, i) {
1908
+ this.parent = t, this.base = i || this;
1909
+ };
1910
+ fe.prototype.separatedFrom = function(t) {
1911
+ for (var i = this; i; i = i.parent)
1912
+ for (var s = t; s; s = s.parent)
1913
+ if (i.base === s.base && i !== s)
1914
+ return !0;
1915
+ return !1;
1916
+ };
1917
+ fe.prototype.sibling = function() {
1918
+ return new fe(this.parent, this.base);
1919
+ };
1920
+ var q = function(t) {
1921
+ this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = xt[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1922
+ };
1923
+ q.prototype.reset = function(t, i, s) {
1924
+ var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
1925
+ this.start = t | 0, this.source = i + "", this.flags = s, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = n && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = n && this.parser.options.ecmaVersion >= 9);
1926
+ };
1927
+ q.prototype.raise = function(t) {
1928
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1929
+ };
1930
+ q.prototype.at = function(t, i) {
1931
+ i === void 0 && (i = !1);
1932
+ var s = this.source, r = s.length;
1933
+ if (t >= r)
1934
+ return -1;
1935
+ var n = s.charCodeAt(t);
1936
+ if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r)
1937
+ return n;
1938
+ var o = s.charCodeAt(t + 1);
1939
+ return o >= 56320 && o <= 57343 ? (n << 10) + o - 56613888 : n;
1940
+ };
1941
+ q.prototype.nextIndex = function(t, i) {
1942
+ i === void 0 && (i = !1);
1943
+ var s = this.source, r = s.length;
1944
+ if (t >= r)
1945
+ return r;
1946
+ var n = s.charCodeAt(t), o;
1947
+ return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (o = s.charCodeAt(t + 1)) < 56320 || o > 57343 ? t + 1 : t + 2;
1948
+ };
1949
+ q.prototype.current = function(t) {
1950
+ return t === void 0 && (t = !1), this.at(this.pos, t);
1951
+ };
1952
+ q.prototype.lookahead = function(t) {
1953
+ return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
1954
+ };
1955
+ q.prototype.advance = function(t) {
1956
+ t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
1957
+ };
1958
+ q.prototype.eat = function(t, i) {
1959
+ return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
1960
+ };
1961
+ q.prototype.eatChars = function(t, i) {
1962
+ i === void 0 && (i = !1);
1963
+ for (var s = this.pos, r = 0, n = t; r < n.length; r += 1) {
1964
+ var o = n[r], h = this.at(s, i);
1965
+ if (h === -1 || h !== o)
1966
+ return !1;
1967
+ s = this.nextIndex(s, i);
1968
+ }
1969
+ return this.pos = s, !0;
1970
+ };
1971
+ l.validateRegExpFlags = function(e) {
1972
+ for (var t = e.validFlags, i = e.flags, s = !1, r = !1, n = 0; n < i.length; n++) {
1973
+ var o = i.charAt(n);
1974
+ t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(o, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (s = !0), o === "v" && (r = !0);
1975
+ }
1976
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1977
+ };
1978
+ function ui(e) {
1979
+ for (var t in e)
1980
+ return !0;
1981
+ return !1;
1982
+ }
1983
+ l.validateRegExpPattern = function(e) {
1984
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && ui(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1985
+ };
1986
+ l.regexp_pattern = function(e) {
1987
+ e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
1988
+ 41
1989
+ /* ) */
1990
+ ) && e.raise("Unmatched ')'"), (e.eat(
1991
+ 93
1992
+ /* ] */
1993
+ ) || e.eat(
1994
+ 125
1995
+ /* } */
1996
+ )) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
1997
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
1998
+ var s = i[t];
1999
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
2000
+ }
2001
+ };
2002
+ l.regexp_disjunction = function(e) {
2003
+ var t = this.options.ecmaVersion >= 16;
2004
+ for (t && (e.branchID = new fe(e.branchID, null)), this.regexp_alternative(e); e.eat(
2005
+ 124
2006
+ /* | */
2007
+ ); )
2008
+ t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
2009
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(
2010
+ 123
2011
+ /* { */
2012
+ ) && e.raise("Lone quantifier brackets");
2013
+ };
2014
+ l.regexp_alternative = function(e) {
2015
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); )
2016
+ ;
2017
+ };
2018
+ l.regexp_eatTerm = function(e) {
2019
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
2020
+ };
2021
+ l.regexp_eatAssertion = function(e) {
2022
+ var t = e.pos;
2023
+ if (e.lastAssertionIsQuantifiable = !1, e.eat(
2024
+ 94
2025
+ /* ^ */
2026
+ ) || e.eat(
2027
+ 36
2028
+ /* $ */
2029
+ ))
2030
+ return !0;
2031
+ if (e.eat(
2032
+ 92
2033
+ /* \ */
2034
+ )) {
2035
+ if (e.eat(
2036
+ 66
2037
+ /* B */
2038
+ ) || e.eat(
2039
+ 98
2040
+ /* b */
2041
+ ))
2042
+ return !0;
2043
+ e.pos = t;
2044
+ }
2045
+ if (e.eat(
2046
+ 40
2047
+ /* ( */
2048
+ ) && e.eat(
2049
+ 63
2050
+ /* ? */
2051
+ )) {
2052
+ var i = !1;
2053
+ if (this.options.ecmaVersion >= 9 && (i = e.eat(
2054
+ 60
2055
+ /* < */
2056
+ )), e.eat(
2057
+ 61
2058
+ /* = */
2059
+ ) || e.eat(
2060
+ 33
2061
+ /* ! */
2062
+ ))
2063
+ return this.regexp_disjunction(e), e.eat(
2064
+ 41
2065
+ /* ) */
2066
+ ) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !i, !0;
2067
+ }
2068
+ return e.pos = t, !1;
2069
+ };
2070
+ l.regexp_eatQuantifier = function(e, t) {
2071
+ return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(
2072
+ 63
2073
+ /* ? */
2074
+ ), !0) : !1;
2075
+ };
2076
+ l.regexp_eatQuantifierPrefix = function(e, t) {
2077
+ return e.eat(
2078
+ 42
2079
+ /* * */
2080
+ ) || e.eat(
2081
+ 43
2082
+ /* + */
2083
+ ) || e.eat(
2084
+ 63
2085
+ /* ? */
2086
+ ) || this.regexp_eatBracedQuantifier(e, t);
2087
+ };
2088
+ l.regexp_eatBracedQuantifier = function(e, t) {
2089
+ var i = e.pos;
2090
+ if (e.eat(
2091
+ 123
2092
+ /* { */
2093
+ )) {
2094
+ var s = 0, r = -1;
2095
+ if (this.regexp_eatDecimalDigits(e) && (s = e.lastIntValue, e.eat(
2096
+ 44
2097
+ /* , */
2098
+ ) && this.regexp_eatDecimalDigits(e) && (r = e.lastIntValue), e.eat(
2099
+ 125
2100
+ /* } */
2101
+ )))
2102
+ return r !== -1 && r < s && !t && e.raise("numbers out of order in {} quantifier"), !0;
2103
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
2104
+ }
2105
+ return !1;
2106
+ };
2107
+ l.regexp_eatAtom = function(e) {
2108
+ return this.regexp_eatPatternCharacters(e) || e.eat(
2109
+ 46
2110
+ /* . */
2111
+ ) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
2112
+ };
2113
+ l.regexp_eatReverseSolidusAtomEscape = function(e) {
2114
+ var t = e.pos;
2115
+ if (e.eat(
2116
+ 92
2117
+ /* \ */
2118
+ )) {
2119
+ if (this.regexp_eatAtomEscape(e))
2120
+ return !0;
2121
+ e.pos = t;
2122
+ }
2123
+ return !1;
2124
+ };
2125
+ l.regexp_eatUncapturingGroup = function(e) {
2126
+ var t = e.pos;
2127
+ if (e.eat(
2128
+ 40
2129
+ /* ( */
2130
+ )) {
2131
+ if (e.eat(
2132
+ 63
2133
+ /* ? */
2134
+ )) {
2135
+ if (this.options.ecmaVersion >= 16) {
2136
+ var i = this.regexp_eatModifiers(e), s = e.eat(
2137
+ 45
2138
+ /* - */
2139
+ );
2140
+ if (i || s) {
2141
+ for (var r = 0; r < i.length; r++) {
2142
+ var n = i.charAt(r);
2143
+ i.indexOf(n, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
2144
+ }
2145
+ if (s) {
2146
+ var o = this.regexp_eatModifiers(e);
2147
+ !i && !o && e.current() === 58 && e.raise("Invalid regular expression modifiers");
2148
+ for (var h = 0; h < o.length; h++) {
2149
+ var u = o.charAt(h);
2150
+ (o.indexOf(u, h + 1) > -1 || i.indexOf(u) > -1) && e.raise("Duplicate regular expression modifiers");
2151
+ }
2152
+ }
2153
+ }
2154
+ }
2155
+ if (e.eat(
2156
+ 58
2157
+ /* : */
2158
+ )) {
2159
+ if (this.regexp_disjunction(e), e.eat(
2160
+ 41
2161
+ /* ) */
2162
+ ))
2163
+ return !0;
2164
+ e.raise("Unterminated group");
2165
+ }
2166
+ }
2167
+ e.pos = t;
2168
+ }
2169
+ return !1;
2170
+ };
2171
+ l.regexp_eatCapturingGroup = function(e) {
2172
+ if (e.eat(
2173
+ 40
2174
+ /* ( */
2175
+ )) {
2176
+ if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(
2177
+ 41
2178
+ /* ) */
2179
+ ))
2180
+ return e.numCapturingParens += 1, !0;
2181
+ e.raise("Unterminated group");
2182
+ }
2183
+ return !1;
2184
+ };
2185
+ l.regexp_eatModifiers = function(e) {
2186
+ for (var t = "", i = 0; (i = e.current()) !== -1 && hi(i); )
2187
+ t += G(i), e.advance();
2188
+ return t;
2189
+ };
2190
+ function hi(e) {
2191
+ return e === 105 || e === 109 || e === 115;
2192
+ }
2193
+ l.regexp_eatExtendedAtom = function(e) {
2194
+ return e.eat(
2195
+ 46
2196
+ /* . */
2197
+ ) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
2198
+ };
2199
+ l.regexp_eatInvalidBracedQuantifier = function(e) {
2200
+ return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2201
+ };
2202
+ l.regexp_eatSyntaxCharacter = function(e) {
2203
+ var t = e.current();
2204
+ return mt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2205
+ };
2206
+ function mt(e) {
2207
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2208
+ }
2209
+ l.regexp_eatPatternCharacters = function(e) {
2210
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !mt(i); )
2211
+ e.advance();
2212
+ return e.pos !== t;
2213
+ };
2214
+ l.regexp_eatExtendedPatternCharacter = function(e) {
2215
+ var t = e.current();
2216
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
2217
+ };
2218
+ l.regexp_groupSpecifier = function(e) {
2219
+ if (e.eat(
2220
+ 63
2221
+ /* ? */
2222
+ )) {
2223
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
2224
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
2225
+ if (i)
2226
+ if (t)
2227
+ for (var s = 0, r = i; s < r.length; s += 1) {
2228
+ var n = r[s];
2229
+ n.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2230
+ }
2231
+ else
2232
+ e.raise("Duplicate capture group name");
2233
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
2234
+ }
2235
+ };
2236
+ l.regexp_eatGroupName = function(e) {
2237
+ if (e.lastStringValue = "", e.eat(
2238
+ 60
2239
+ /* < */
2240
+ )) {
2241
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(
2242
+ 62
2243
+ /* > */
2244
+ ))
2245
+ return !0;
2246
+ e.raise("Invalid capture group name");
2247
+ }
2248
+ return !1;
2249
+ };
2250
+ l.regexp_eatRegExpIdentifierName = function(e) {
2251
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
2252
+ for (e.lastStringValue += G(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
2253
+ e.lastStringValue += G(e.lastIntValue);
2254
+ return !0;
2255
+ }
2256
+ return !1;
2257
+ };
2258
+ l.regexp_eatRegExpIdentifierStart = function(e) {
2259
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2260
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ci(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2261
+ };
2262
+ function ci(e) {
2263
+ return M(e, !0) || e === 36 || e === 95;
2264
+ }
2265
+ l.regexp_eatRegExpIdentifierPart = function(e) {
2266
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2267
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), li(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2268
+ };
2269
+ function li(e) {
2270
+ return Q(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2271
+ }
2272
+ l.regexp_eatAtomEscape = function(e) {
2273
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
2274
+ };
2275
+ l.regexp_eatBackReference = function(e) {
2276
+ var t = e.pos;
2277
+ if (this.regexp_eatDecimalEscape(e)) {
2278
+ var i = e.lastIntValue;
2279
+ if (e.switchU)
2280
+ return i > e.maxBackReference && (e.maxBackReference = i), !0;
2281
+ if (i <= e.numCapturingParens)
2282
+ return !0;
2283
+ e.pos = t;
2284
+ }
2285
+ return !1;
2286
+ };
2287
+ l.regexp_eatKGroupName = function(e) {
2288
+ if (e.eat(
2289
+ 107
2290
+ /* k */
2291
+ )) {
2292
+ if (this.regexp_eatGroupName(e))
2293
+ return e.backReferenceNames.push(e.lastStringValue), !0;
2294
+ e.raise("Invalid named reference");
2295
+ }
2296
+ return !1;
2297
+ };
2298
+ l.regexp_eatCharacterEscape = function(e) {
2299
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
2300
+ };
2301
+ l.regexp_eatCControlLetter = function(e) {
2302
+ var t = e.pos;
2303
+ if (e.eat(
2304
+ 99
2305
+ /* c */
2306
+ )) {
2307
+ if (this.regexp_eatControlLetter(e))
2308
+ return !0;
2309
+ e.pos = t;
2310
+ }
2311
+ return !1;
2312
+ };
2313
+ l.regexp_eatZero = function(e) {
2314
+ return e.current() === 48 && !be(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2315
+ };
2316
+ l.regexp_eatControlEscape = function(e) {
2317
+ var t = e.current();
2318
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
2319
+ };
2320
+ l.regexp_eatControlLetter = function(e) {
2321
+ var t = e.current();
2322
+ return gt(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2323
+ };
2324
+ function gt(e) {
2325
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2326
+ }
2327
+ l.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2328
+ t === void 0 && (t = !1);
2329
+ var i = e.pos, s = t || e.switchU;
2330
+ if (e.eat(
2331
+ 117
2332
+ /* u */
2333
+ )) {
2334
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
2335
+ var r = e.lastIntValue;
2336
+ if (s && r >= 55296 && r <= 56319) {
2337
+ var n = e.pos;
2338
+ if (e.eat(
2339
+ 92
2340
+ /* \ */
2341
+ ) && e.eat(
2342
+ 117
2343
+ /* u */
2344
+ ) && this.regexp_eatFixedHexDigits(e, 4)) {
2345
+ var o = e.lastIntValue;
2346
+ if (o >= 56320 && o <= 57343)
2347
+ return e.lastIntValue = (r - 55296) * 1024 + (o - 56320) + 65536, !0;
2348
+ }
2349
+ e.pos = n, e.lastIntValue = r;
2350
+ }
2351
+ return !0;
2352
+ }
2353
+ if (s && e.eat(
2354
+ 123
2355
+ /* { */
2356
+ ) && this.regexp_eatHexDigits(e) && e.eat(
2357
+ 125
2358
+ /* } */
2359
+ ) && pi(e.lastIntValue))
2360
+ return !0;
2361
+ s && e.raise("Invalid unicode escape"), e.pos = i;
2362
+ }
2363
+ return !1;
2364
+ };
2365
+ function pi(e) {
2366
+ return e >= 0 && e <= 1114111;
2367
+ }
2368
+ l.regexp_eatIdentityEscape = function(e) {
2369
+ if (e.switchU)
2370
+ return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(
2371
+ 47
2372
+ /* / */
2373
+ ) ? (e.lastIntValue = 47, !0) : !1;
2374
+ var t = e.current();
2375
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2376
+ };
2377
+ l.regexp_eatDecimalEscape = function(e) {
2378
+ e.lastIntValue = 0;
2379
+ var t = e.current();
2380
+ if (t >= 49 && t <= 57) {
2381
+ do
2382
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
2383
+ while ((t = e.current()) >= 48 && t <= 57);
2384
+ return !0;
2385
+ }
2386
+ return !1;
2387
+ };
2388
+ var vt = 0, W = 1, F = 2;
2389
+ l.regexp_eatCharacterClassEscape = function(e) {
2390
+ var t = e.current();
2391
+ if (fi(t))
2392
+ return e.lastIntValue = -1, e.advance(), W;
2393
+ var i = !1;
2394
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
2395
+ e.lastIntValue = -1, e.advance();
2396
+ var s;
2397
+ if (e.eat(
2398
+ 123
2399
+ /* { */
2400
+ ) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(
2401
+ 125
2402
+ /* } */
2403
+ ))
2404
+ return i && s === F && e.raise("Invalid property name"), s;
2405
+ e.raise("Invalid property name");
2406
+ }
2407
+ return vt;
2408
+ };
2409
+ function fi(e) {
2410
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2411
+ }
2412
+ l.regexp_eatUnicodePropertyValueExpression = function(e) {
2413
+ var t = e.pos;
2414
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(
2415
+ 61
2416
+ /* = */
2417
+ )) {
2418
+ var i = e.lastStringValue;
2419
+ if (this.regexp_eatUnicodePropertyValue(e)) {
2420
+ var s = e.lastStringValue;
2421
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), W;
2422
+ }
2423
+ }
2424
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2425
+ var r = e.lastStringValue;
2426
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2427
+ }
2428
+ return vt;
2429
+ };
2430
+ l.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2431
+ ee(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
2432
+ };
2433
+ l.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2434
+ if (e.unicodeProperties.binary.test(t))
2435
+ return W;
2436
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
2437
+ return F;
2438
+ e.raise("Invalid property name");
2439
+ };
2440
+ l.regexp_eatUnicodePropertyName = function(e) {
2441
+ var t = 0;
2442
+ for (e.lastStringValue = ""; bt(t = e.current()); )
2443
+ e.lastStringValue += G(t), e.advance();
2444
+ return e.lastStringValue !== "";
2445
+ };
2446
+ function bt(e) {
2447
+ return gt(e) || e === 95;
2448
+ }
2449
+ l.regexp_eatUnicodePropertyValue = function(e) {
2450
+ var t = 0;
2451
+ for (e.lastStringValue = ""; di(t = e.current()); )
2452
+ e.lastStringValue += G(t), e.advance();
2453
+ return e.lastStringValue !== "";
2454
+ };
2455
+ function di(e) {
2456
+ return bt(e) || be(e);
2457
+ }
2458
+ l.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2459
+ return this.regexp_eatUnicodePropertyValue(e);
2460
+ };
2461
+ l.regexp_eatCharacterClass = function(e) {
2462
+ if (e.eat(
2463
+ 91
2464
+ /* [ */
2465
+ )) {
2466
+ var t = e.eat(
2467
+ 94
2468
+ /* ^ */
2469
+ ), i = this.regexp_classContents(e);
2470
+ return e.eat(
2471
+ 93
2472
+ /* ] */
2473
+ ) || e.raise("Unterminated character class"), t && i === F && e.raise("Negated character class may contain strings"), !0;
2474
+ }
2475
+ return !1;
2476
+ };
2477
+ l.regexp_classContents = function(e) {
2478
+ return e.current() === 93 ? W : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), W);
2479
+ };
2480
+ l.regexp_nonEmptyClassRanges = function(e) {
2481
+ for (; this.regexp_eatClassAtom(e); ) {
2482
+ var t = e.lastIntValue;
2483
+ if (e.eat(
2484
+ 45
2485
+ /* - */
2486
+ ) && this.regexp_eatClassAtom(e)) {
2487
+ var i = e.lastIntValue;
2488
+ e.switchU && (t === -1 || i === -1) && e.raise("Invalid character class"), t !== -1 && i !== -1 && t > i && e.raise("Range out of order in character class");
2489
+ }
2490
+ }
2491
+ };
2492
+ l.regexp_eatClassAtom = function(e) {
2493
+ var t = e.pos;
2494
+ if (e.eat(
2495
+ 92
2496
+ /* \ */
2497
+ )) {
2498
+ if (this.regexp_eatClassEscape(e))
2499
+ return !0;
2500
+ if (e.switchU) {
2501
+ var i = e.current();
2502
+ (i === 99 || _t(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2503
+ }
2504
+ e.pos = t;
2505
+ }
2506
+ var s = e.current();
2507
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), !0) : !1;
2508
+ };
2509
+ l.regexp_eatClassEscape = function(e) {
2510
+ var t = e.pos;
2511
+ if (e.eat(
2512
+ 98
2513
+ /* b */
2514
+ ))
2515
+ return e.lastIntValue = 8, !0;
2516
+ if (e.switchU && e.eat(
2517
+ 45
2518
+ /* - */
2519
+ ))
2520
+ return e.lastIntValue = 45, !0;
2521
+ if (!e.switchU && e.eat(
2522
+ 99
2523
+ /* c */
2524
+ )) {
2525
+ if (this.regexp_eatClassControlLetter(e))
2526
+ return !0;
2527
+ e.pos = t;
2528
+ }
2529
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2530
+ };
2531
+ l.regexp_classSetExpression = function(e) {
2532
+ var t = W, i;
2533
+ if (!this.regexp_eatClassSetRange(e))
2534
+ if (i = this.regexp_eatClassSetOperand(e)) {
2535
+ i === F && (t = F);
2536
+ for (var s = e.pos; e.eatChars(
2537
+ [38, 38]
2538
+ /* && */
2539
+ ); ) {
2540
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2541
+ i !== F && (t = W);
2542
+ continue;
2543
+ }
2544
+ e.raise("Invalid character in character class");
2545
+ }
2546
+ if (s !== e.pos)
2547
+ return t;
2548
+ for (; e.eatChars(
2549
+ [45, 45]
2550
+ /* -- */
2551
+ ); )
2552
+ this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2553
+ if (s !== e.pos)
2554
+ return t;
2555
+ } else
2556
+ e.raise("Invalid character in character class");
2557
+ for (; ; )
2558
+ if (!this.regexp_eatClassSetRange(e)) {
2559
+ if (i = this.regexp_eatClassSetOperand(e), !i)
2560
+ return t;
2561
+ i === F && (t = F);
2562
+ }
2563
+ };
2564
+ l.regexp_eatClassSetRange = function(e) {
2565
+ var t = e.pos;
2566
+ if (this.regexp_eatClassSetCharacter(e)) {
2567
+ var i = e.lastIntValue;
2568
+ if (e.eat(
2569
+ 45
2570
+ /* - */
2571
+ ) && this.regexp_eatClassSetCharacter(e)) {
2572
+ var s = e.lastIntValue;
2573
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), !0;
2574
+ }
2575
+ e.pos = t;
2576
+ }
2577
+ return !1;
2578
+ };
2579
+ l.regexp_eatClassSetOperand = function(e) {
2580
+ return this.regexp_eatClassSetCharacter(e) ? W : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2581
+ };
2582
+ l.regexp_eatNestedClass = function(e) {
2583
+ var t = e.pos;
2584
+ if (e.eat(
2585
+ 91
2586
+ /* [ */
2587
+ )) {
2588
+ var i = e.eat(
2589
+ 94
2590
+ /* ^ */
2591
+ ), s = this.regexp_classContents(e);
2592
+ if (e.eat(
2593
+ 93
2594
+ /* ] */
2595
+ ))
2596
+ return i && s === F && e.raise("Negated character class may contain strings"), s;
2597
+ e.pos = t;
2598
+ }
2599
+ if (e.eat(
2600
+ 92
2601
+ /* \ */
2602
+ )) {
2603
+ var r = this.regexp_eatCharacterClassEscape(e);
2604
+ if (r)
2605
+ return r;
2606
+ e.pos = t;
2607
+ }
2608
+ return null;
2609
+ };
2610
+ l.regexp_eatClassStringDisjunction = function(e) {
2611
+ var t = e.pos;
2612
+ if (e.eatChars(
2613
+ [92, 113]
2614
+ /* \q */
2615
+ )) {
2616
+ if (e.eat(
2617
+ 123
2618
+ /* { */
2619
+ )) {
2620
+ var i = this.regexp_classStringDisjunctionContents(e);
2621
+ if (e.eat(
2622
+ 125
2623
+ /* } */
2624
+ ))
2625
+ return i;
2626
+ } else
2627
+ e.raise("Invalid escape");
2628
+ e.pos = t;
2629
+ }
2630
+ return null;
2631
+ };
2632
+ l.regexp_classStringDisjunctionContents = function(e) {
2633
+ for (var t = this.regexp_classString(e); e.eat(
2634
+ 124
2635
+ /* | */
2636
+ ); )
2637
+ this.regexp_classString(e) === F && (t = F);
2638
+ return t;
2639
+ };
2640
+ l.regexp_classString = function(e) {
2641
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); )
2642
+ t++;
2643
+ return t === 1 ? W : F;
2644
+ };
2645
+ l.regexp_eatClassSetCharacter = function(e) {
2646
+ var t = e.pos;
2647
+ if (e.eat(
2648
+ 92
2649
+ /* \ */
2650
+ ))
2651
+ return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(
2652
+ 98
2653
+ /* b */
2654
+ ) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2655
+ var i = e.current();
2656
+ return i < 0 || i === e.lookahead() && xi(i) || mi(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2657
+ };
2658
+ function xi(e) {
2659
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2660
+ }
2661
+ function mi(e) {
2662
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2663
+ }
2664
+ l.regexp_eatClassSetReservedPunctuator = function(e) {
2665
+ var t = e.current();
2666
+ return gi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2667
+ };
2668
+ function gi(e) {
2669
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2670
+ }
2671
+ l.regexp_eatClassControlLetter = function(e) {
2672
+ var t = e.current();
2673
+ return be(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2674
+ };
2675
+ l.regexp_eatHexEscapeSequence = function(e) {
2676
+ var t = e.pos;
2677
+ if (e.eat(
2678
+ 120
2679
+ /* x */
2680
+ )) {
2681
+ if (this.regexp_eatFixedHexDigits(e, 2))
2682
+ return !0;
2683
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2684
+ }
2685
+ return !1;
2686
+ };
2687
+ l.regexp_eatDecimalDigits = function(e) {
2688
+ var t = e.pos, i = 0;
2689
+ for (e.lastIntValue = 0; be(i = e.current()); )
2690
+ e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2691
+ return e.pos !== t;
2692
+ };
2693
+ function be(e) {
2694
+ return e >= 48 && e <= 57;
2695
+ }
2696
+ l.regexp_eatHexDigits = function(e) {
2697
+ var t = e.pos, i = 0;
2698
+ for (e.lastIntValue = 0; yt(i = e.current()); )
2699
+ e.lastIntValue = 16 * e.lastIntValue + Ct(i), e.advance();
2700
+ return e.pos !== t;
2701
+ };
2702
+ function yt(e) {
2703
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2704
+ }
2705
+ function Ct(e) {
2706
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2707
+ }
2708
+ l.regexp_eatLegacyOctalEscapeSequence = function(e) {
2709
+ if (this.regexp_eatOctalDigit(e)) {
2710
+ var t = e.lastIntValue;
2711
+ if (this.regexp_eatOctalDigit(e)) {
2712
+ var i = e.lastIntValue;
2713
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2714
+ } else
2715
+ e.lastIntValue = t;
2716
+ return !0;
2717
+ }
2718
+ return !1;
2719
+ };
2720
+ l.regexp_eatOctalDigit = function(e) {
2721
+ var t = e.current();
2722
+ return _t(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2723
+ };
2724
+ function _t(e) {
2725
+ return e >= 48 && e <= 55;
2726
+ }
2727
+ l.regexp_eatFixedHexDigits = function(e, t) {
2728
+ var i = e.pos;
2729
+ e.lastIntValue = 0;
2730
+ for (var s = 0; s < t; ++s) {
2731
+ var r = e.current();
2732
+ if (!yt(r))
2733
+ return e.pos = i, !1;
2734
+ e.lastIntValue = 16 * e.lastIntValue + Ct(r), e.advance();
2735
+ }
2736
+ return !0;
2737
+ };
2738
+ var Le = function(t) {
2739
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new de(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2740
+ }, m = S.prototype;
2741
+ m.next = function(e) {
2742
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Le(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2743
+ };
2744
+ m.getToken = function() {
2745
+ return this.next(), new Le(this);
2746
+ };
2747
+ typeof Symbol < "u" && (m[Symbol.iterator] = function() {
2748
+ var e = this;
2749
+ return {
2750
+ next: function() {
2751
+ var t = e.getToken();
2752
+ return {
2753
+ done: t.type === a.eof,
2754
+ value: t
2755
+ };
2756
+ }
2757
+ };
2758
+ });
2759
+ m.nextToken = function() {
2760
+ var e = this.curContext();
2761
+ if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
2762
+ return this.finishToken(a.eof);
2763
+ if (e.override)
2764
+ return e.override(this);
2765
+ this.readToken(this.fullCharCodeAtPos());
2766
+ };
2767
+ m.readToken = function(e) {
2768
+ return M(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2769
+ };
2770
+ m.fullCharCodeAtPos = function() {
2771
+ var e = this.input.charCodeAt(this.pos);
2772
+ if (e <= 55295 || e >= 56320)
2773
+ return e;
2774
+ var t = this.input.charCodeAt(this.pos + 1);
2775
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
2776
+ };
2777
+ m.skipBlockComment = function() {
2778
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2779
+ if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
2780
+ for (var s = void 0, r = t; (s = ze(this.input, r, this.pos)) > -1; )
2781
+ ++this.curLine, r = this.lineStart = s;
2782
+ this.options.onComment && this.options.onComment(
2783
+ !0,
2784
+ this.input.slice(t + 2, i),
2785
+ t,
2786
+ this.pos,
2787
+ e,
2788
+ this.curPosition()
2789
+ );
2790
+ };
2791
+ m.skipLineComment = function(e) {
2792
+ for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !$(s); )
2793
+ s = this.input.charCodeAt(++this.pos);
2794
+ this.options.onComment && this.options.onComment(
2795
+ !1,
2796
+ this.input.slice(t + e, this.pos),
2797
+ t,
2798
+ this.pos,
2799
+ i,
2800
+ this.curPosition()
2801
+ );
2802
+ };
2803
+ m.skipSpace = function() {
2804
+ e:
2805
+ for (; this.pos < this.input.length; ) {
2806
+ var e = this.input.charCodeAt(this.pos);
2807
+ switch (e) {
2808
+ case 32:
2809
+ case 160:
2810
+ ++this.pos;
2811
+ break;
2812
+ case 13:
2813
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2814
+ case 10:
2815
+ case 8232:
2816
+ case 8233:
2817
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2818
+ break;
2819
+ case 47:
2820
+ switch (this.input.charCodeAt(this.pos + 1)) {
2821
+ case 42:
2822
+ this.skipBlockComment();
2823
+ break;
2824
+ case 47:
2825
+ this.skipLineComment(2);
2826
+ break;
2827
+ default:
2828
+ break e;
2829
+ }
2830
+ break;
2831
+ default:
2832
+ if (e > 8 && e < 14 || e >= 5760 && Qe.test(String.fromCharCode(e)))
2833
+ ++this.pos;
2834
+ else
2835
+ break e;
2836
+ }
2837
+ }
2838
+ };
2839
+ m.finishToken = function(e, t) {
2840
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2841
+ var i = this.type;
2842
+ this.type = e, this.value = t, this.updateContext(i);
2843
+ };
2844
+ m.readToken_dot = function() {
2845
+ var e = this.input.charCodeAt(this.pos + 1);
2846
+ if (e >= 48 && e <= 57)
2847
+ return this.readNumber(!0);
2848
+ var t = this.input.charCodeAt(this.pos + 2);
2849
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2850
+ };
2851
+ m.readToken_slash = function() {
2852
+ var e = this.input.charCodeAt(this.pos + 1);
2853
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2854
+ };
2855
+ m.readToken_mult_modulo_exp = function(e) {
2856
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
2857
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, s = a.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(s, i);
2858
+ };
2859
+ m.readToken_pipe_amp = function(e) {
2860
+ var t = this.input.charCodeAt(this.pos + 1);
2861
+ if (t === e) {
2862
+ if (this.options.ecmaVersion >= 12) {
2863
+ var i = this.input.charCodeAt(this.pos + 2);
2864
+ if (i === 61)
2865
+ return this.finishOp(a.assign, 3);
2866
+ }
2867
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2868
+ }
2869
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2870
+ };
2871
+ m.readToken_caret = function() {
2872
+ var e = this.input.charCodeAt(this.pos + 1);
2873
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2874
+ };
2875
+ m.readToken_plus_min = function(e) {
2876
+ var t = this.input.charCodeAt(this.pos + 1);
2877
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || V.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a.incDec, 2) : t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.plusMin, 1);
2878
+ };
2879
+ m.readToken_lt_gt = function(e) {
2880
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2881
+ return t === e ? (i = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(a.bitShift, i)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (i = 2), this.finishOp(a.relational, i));
2882
+ };
2883
+ m.readToken_eq_excl = function(e) {
2884
+ var t = this.input.charCodeAt(this.pos + 1);
2885
+ return t === 61 ? this.finishOp(a.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(a.arrow)) : this.finishOp(e === 61 ? a.eq : a.prefix, 1);
2886
+ };
2887
+ m.readToken_question = function() {
2888
+ var e = this.options.ecmaVersion;
2889
+ if (e >= 11) {
2890
+ var t = this.input.charCodeAt(this.pos + 1);
2891
+ if (t === 46) {
2892
+ var i = this.input.charCodeAt(this.pos + 2);
2893
+ if (i < 48 || i > 57)
2894
+ return this.finishOp(a.questionDot, 2);
2895
+ }
2896
+ if (t === 63) {
2897
+ if (e >= 12) {
2898
+ var s = this.input.charCodeAt(this.pos + 2);
2899
+ if (s === 61)
2900
+ return this.finishOp(a.assign, 3);
2901
+ }
2902
+ return this.finishOp(a.coalesce, 2);
2903
+ }
2904
+ }
2905
+ return this.finishOp(a.question, 1);
2906
+ };
2907
+ m.readToken_numberSign = function() {
2908
+ var e = this.options.ecmaVersion, t = 35;
2909
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), M(t, !0) || t === 92))
2910
+ return this.finishToken(a.privateId, this.readWord1());
2911
+ this.raise(this.pos, "Unexpected character '" + G(t) + "'");
2912
+ };
2913
+ m.getTokenFromCode = function(e) {
2914
+ switch (e) {
2915
+ case 46:
2916
+ return this.readToken_dot();
2917
+ case 40:
2918
+ return ++this.pos, this.finishToken(a.parenL);
2919
+ case 41:
2920
+ return ++this.pos, this.finishToken(a.parenR);
2921
+ case 59:
2922
+ return ++this.pos, this.finishToken(a.semi);
2923
+ case 44:
2924
+ return ++this.pos, this.finishToken(a.comma);
2925
+ case 91:
2926
+ return ++this.pos, this.finishToken(a.bracketL);
2927
+ case 93:
2928
+ return ++this.pos, this.finishToken(a.bracketR);
2929
+ case 123:
2930
+ return ++this.pos, this.finishToken(a.braceL);
2931
+ case 125:
2932
+ return ++this.pos, this.finishToken(a.braceR);
2933
+ case 58:
2934
+ return ++this.pos, this.finishToken(a.colon);
2935
+ case 96:
2936
+ if (this.options.ecmaVersion < 6)
2937
+ break;
2938
+ return ++this.pos, this.finishToken(a.backQuote);
2939
+ case 48:
2940
+ var t = this.input.charCodeAt(this.pos + 1);
2941
+ if (t === 120 || t === 88)
2942
+ return this.readRadixNumber(16);
2943
+ if (this.options.ecmaVersion >= 6) {
2944
+ if (t === 111 || t === 79)
2945
+ return this.readRadixNumber(8);
2946
+ if (t === 98 || t === 66)
2947
+ return this.readRadixNumber(2);
2948
+ }
2949
+ case 49:
2950
+ case 50:
2951
+ case 51:
2952
+ case 52:
2953
+ case 53:
2954
+ case 54:
2955
+ case 55:
2956
+ case 56:
2957
+ case 57:
2958
+ return this.readNumber(!1);
2959
+ case 34:
2960
+ case 39:
2961
+ return this.readString(e);
2962
+ case 47:
2963
+ return this.readToken_slash();
2964
+ case 37:
2965
+ case 42:
2966
+ return this.readToken_mult_modulo_exp(e);
2967
+ case 124:
2968
+ case 38:
2969
+ return this.readToken_pipe_amp(e);
2970
+ case 94:
2971
+ return this.readToken_caret();
2972
+ case 43:
2973
+ case 45:
2974
+ return this.readToken_plus_min(e);
2975
+ case 60:
2976
+ case 62:
2977
+ return this.readToken_lt_gt(e);
2978
+ case 61:
2979
+ case 33:
2980
+ return this.readToken_eq_excl(e);
2981
+ case 63:
2982
+ return this.readToken_question();
2983
+ case 126:
2984
+ return this.finishOp(a.prefix, 1);
2985
+ case 35:
2986
+ return this.readToken_numberSign();
2987
+ }
2988
+ this.raise(this.pos, "Unexpected character '" + G(e) + "'");
2989
+ };
2990
+ m.finishOp = function(e, t) {
2991
+ var i = this.input.slice(this.pos, this.pos + t);
2992
+ return this.pos += t, this.finishToken(e, i);
2993
+ };
2994
+ m.readRegexp = function() {
2995
+ for (var e, t, i = this.pos; ; ) {
2996
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2997
+ var s = this.input.charAt(this.pos);
2998
+ if (V.test(s) && this.raise(i, "Unterminated regular expression"), e)
2999
+ e = !1;
3000
+ else {
3001
+ if (s === "[")
3002
+ t = !0;
3003
+ else if (s === "]" && t)
3004
+ t = !1;
3005
+ else if (s === "/" && !t)
3006
+ break;
3007
+ e = s === "\\";
3008
+ }
3009
+ ++this.pos;
3010
+ }
3011
+ var r = this.input.slice(i, this.pos);
3012
+ ++this.pos;
3013
+ var n = this.pos, o = this.readWord1();
3014
+ this.containsEsc && this.unexpected(n);
3015
+ var h = this.regexpState || (this.regexpState = new q(this));
3016
+ h.reset(i, r, o), this.validateRegExpFlags(h), this.validateRegExpPattern(h);
3017
+ var u = null;
3018
+ try {
3019
+ u = new RegExp(r, o);
3020
+ } catch {
3021
+ }
3022
+ return this.finishToken(a.regexp, { pattern: r, flags: o, value: u });
3023
+ };
3024
+ m.readInt = function(e, t, i) {
3025
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, h = 0, u = 0, c = t ?? 1 / 0; u < c; ++u, ++this.pos) {
3026
+ var f = this.input.charCodeAt(this.pos), x = void 0;
3027
+ if (s && f === 95) {
3028
+ r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), h === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), u === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), h = f;
3029
+ continue;
3030
+ }
3031
+ if (f >= 97 ? x = f - 97 + 10 : f >= 65 ? x = f - 65 + 10 : f >= 48 && f <= 57 ? x = f - 48 : x = 1 / 0, x >= e)
3032
+ break;
3033
+ h = f, o = o * e + x;
3034
+ }
3035
+ return s && h === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
3036
+ };
3037
+ function vi(e, t) {
3038
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
3039
+ }
3040
+ function St(e) {
3041
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
3042
+ }
3043
+ m.readRadixNumber = function(e) {
3044
+ var t = this.pos;
3045
+ this.pos += 2;
3046
+ var i = this.readInt(e);
3047
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = St(this.input.slice(t, this.pos)), ++this.pos) : M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
3048
+ };
3049
+ m.readNumber = function(e) {
3050
+ var t = this.pos;
3051
+ !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3052
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
3053
+ i && this.strict && this.raise(t, "Invalid number");
3054
+ var s = this.input.charCodeAt(this.pos);
3055
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
3056
+ var r = St(this.input.slice(t, this.pos));
3057
+ return ++this.pos, M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
3058
+ }
3059
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3060
+ var n = vi(this.input.slice(t, this.pos), i);
3061
+ return this.finishToken(a.num, n);
3062
+ };
3063
+ m.readCodePoint = function() {
3064
+ var e = this.input.charCodeAt(this.pos), t;
3065
+ if (e === 123) {
3066
+ this.options.ecmaVersion < 6 && this.unexpected();
3067
+ var i = ++this.pos;
3068
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
3069
+ } else
3070
+ t = this.readHexChar(4);
3071
+ return t;
3072
+ };
3073
+ m.readString = function(e) {
3074
+ for (var t = "", i = ++this.pos; ; ) {
3075
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3076
+ var s = this.input.charCodeAt(this.pos);
3077
+ if (s === e)
3078
+ break;
3079
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : ($(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
3080
+ }
3081
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
3082
+ };
3083
+ var kt = {};
3084
+ m.tryReadTemplateToken = function() {
3085
+ this.inTemplateElement = !0;
3086
+ try {
3087
+ this.readTmplToken();
3088
+ } catch (e) {
3089
+ if (e === kt)
3090
+ this.readInvalidTemplateToken();
3091
+ else
3092
+ throw e;
3093
+ }
3094
+ this.inTemplateElement = !1;
3095
+ };
3096
+ m.invalidStringToken = function(e, t) {
3097
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9)
3098
+ throw kt;
3099
+ this.raise(e, t);
3100
+ };
3101
+ m.readTmplToken = function() {
3102
+ for (var e = "", t = this.pos; ; ) {
3103
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3104
+ var i = this.input.charCodeAt(this.pos);
3105
+ if (i === 96 || i === 36 && this.input.charCodeAt(this.pos + 1) === 123)
3106
+ return this.pos === this.start && (this.type === a.template || this.type === a.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(a.dollarBraceL)) : (++this.pos, this.finishToken(a.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(a.template, e));
3107
+ if (i === 92)
3108
+ e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
3109
+ else if ($(i)) {
3110
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
3111
+ case 13:
3112
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
3113
+ case 10:
3114
+ e += `
3115
+ `;
3116
+ break;
3117
+ default:
3118
+ e += String.fromCharCode(i);
3119
+ break;
3120
+ }
3121
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3122
+ } else
3123
+ ++this.pos;
3124
+ }
3125
+ };
3126
+ m.readInvalidTemplateToken = function() {
3127
+ for (; this.pos < this.input.length; this.pos++)
3128
+ switch (this.input[this.pos]) {
3129
+ case "\\":
3130
+ ++this.pos;
3131
+ break;
3132
+ case "$":
3133
+ if (this.input[this.pos + 1] !== "{")
3134
+ break;
3135
+ case "`":
3136
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
3137
+ case "\r":
3138
+ this.input[this.pos + 1] === `
3139
+ ` && ++this.pos;
3140
+ case `
3141
+ `:
3142
+ case "\u2028":
3143
+ case "\u2029":
3144
+ ++this.curLine, this.lineStart = this.pos + 1;
3145
+ break;
3146
+ }
3147
+ this.raise(this.start, "Unterminated template");
3148
+ };
3149
+ m.readEscapedChar = function(e) {
3150
+ var t = this.input.charCodeAt(++this.pos);
3151
+ switch (++this.pos, t) {
3152
+ case 110:
3153
+ return `
3154
+ `;
3155
+ case 114:
3156
+ return "\r";
3157
+ case 120:
3158
+ return String.fromCharCode(this.readHexChar(2));
3159
+ case 117:
3160
+ return G(this.readCodePoint());
3161
+ case 116:
3162
+ return " ";
3163
+ case 98:
3164
+ return "\b";
3165
+ case 118:
3166
+ return "\v";
3167
+ case 102:
3168
+ return "\f";
3169
+ case 13:
3170
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
3171
+ case 10:
3172
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
3173
+ case 56:
3174
+ case 57:
3175
+ if (this.strict && this.invalidStringToken(
3176
+ this.pos - 1,
3177
+ "Invalid escape sequence"
3178
+ ), e) {
3179
+ var i = this.pos - 1;
3180
+ this.invalidStringToken(
3181
+ i,
3182
+ "Invalid escape sequence in template string"
3183
+ );
3184
+ }
3185
+ default:
3186
+ if (t >= 48 && t <= 55) {
3187
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
3188
+ return r > 255 && (s = s.slice(0, -1), r = parseInt(s, 8)), this.pos += s.length - 1, t = this.input.charCodeAt(this.pos), (s !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(
3189
+ this.pos - 1 - s.length,
3190
+ e ? "Octal literal in template string" : "Octal literal in strict mode"
3191
+ ), String.fromCharCode(r);
3192
+ }
3193
+ return $(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3194
+ }
3195
+ };
3196
+ m.readHexChar = function(e) {
3197
+ var t = this.pos, i = this.readInt(16, e);
3198
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
3199
+ };
3200
+ m.readWord1 = function() {
3201
+ this.containsEsc = !1;
3202
+ for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
3203
+ var r = this.fullCharCodeAtPos();
3204
+ if (Q(r, s))
3205
+ this.pos += r <= 65535 ? 1 : 2;
3206
+ else if (r === 92) {
3207
+ this.containsEsc = !0, e += this.input.slice(i, this.pos);
3208
+ var n = this.pos;
3209
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3210
+ var o = this.readCodePoint();
3211
+ (t ? M : Q)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += G(o), i = this.pos;
3212
+ } else
3213
+ break;
3214
+ t = !1;
3215
+ }
3216
+ return e + this.input.slice(i, this.pos);
3217
+ };
3218
+ m.readWord = function() {
3219
+ var e = this.readWord1(), t = a.name;
3220
+ return this.keywords.test(e) && (t = Ee[e]), this.finishToken(t, e);
3221
+ };
3222
+ var bi = "8.15.0";
3223
+ S.acorn = {
3224
+ Parser: S,
3225
+ version: bi,
3226
+ defaultOptions: ke,
3227
+ Position: ae,
3228
+ SourceLocation: de,
3229
+ getLineInfo: Xe,
3230
+ Node: ve,
3231
+ TokenType: b,
3232
+ tokTypes: a,
3233
+ keywordTypes: Ee,
3234
+ TokContext: D,
3235
+ tokContexts: y,
3236
+ isIdentifierChar: Q,
3237
+ isIdentifierStart: M,
3238
+ Token: Le,
3239
+ isNewLine: $,
3240
+ lineBreak: V,
3241
+ lineBreakG: qt,
3242
+ nonASCIIwhitespace: Qe
3243
+ };
3244
+ function yi(e, t) {
3245
+ return S.parse(e, t);
3246
+ }
3247
+ function Ci(e) {
3248
+ var r, n;
3249
+ const t = yi(e, {
3250
+ ecmaVersion: "latest",
3251
+ sourceType: "script",
3252
+ ranges: !0
3253
+ // ←←← 必须启用,才能 slice 源码
3254
+ }), i = [], s = [];
3255
+ for (const o of t.body) {
3256
+ if (o.type === "FunctionDeclaration" && ((r = o.id) != null && r.name) && o.range) {
3257
+ const h = o.id.name, u = e.slice(o.range[0], o.range[1]);
3258
+ i.push({ name: h, text: u });
3259
+ }
3260
+ if (o.type === "ClassDeclaration" && ((n = o.id) != null && n.name) && o.range) {
3261
+ const h = o.id.name, u = e.slice(o.range[0], o.range[1]);
3262
+ s.push({ name: h, text: u });
3263
+ }
3264
+ }
3265
+ return { functions: i, classes: s };
3266
+ }
3267
+ const _i = () => {
3268
+ const e = "v_form_global_css", t = (u = "", c = e) => {
3269
+ var f = r(u, c);
3270
+ s(f);
3271
+ }, i = (u = "", c = "", f = e) => {
3272
+ if (!u)
3273
+ return;
3274
+ let x = document.getElementsByTagName("head")[0];
3275
+ if (x)
3276
+ try {
3277
+ var g = r(c, f);
3278
+ s(f), s(g);
3279
+ let C = document.createElement("style");
3280
+ if (!C)
3281
+ return;
3282
+ C.type = "text/css", C.id = c ? f + "-" + c : f;
3283
+ try {
3284
+ C.appendChild(document.createTextNode(u.toString()));
3285
+ } catch {
3286
+ C.innerHTML = u.toString();
3287
+ }
3288
+ x.appendChild(C);
3289
+ } catch (C) {
3290
+ he.error("insert css to head fail", C);
3291
+ }
3292
+ }, s = (u) => {
3293
+ let c = document.getElementById(u);
3294
+ try {
3295
+ c && c.parentNode && c.parentNode.removeChild(c);
3296
+ } catch (f) {
3297
+ console.log(f, c);
3298
+ }
3299
+ }, r = (u, c) => u ? c + "-" + u : c, n = "v_form_global_functions";
3300
+ return {
3301
+ insertCustomCssToHead: i,
3302
+ insertGlobalFunctionsToHtml: (u) => {
3303
+ var c, f;
3304
+ try {
3305
+ const x = Ci(u);
3306
+ (c = x.functions) == null || c.forEach((g) => {
3307
+ let C;
3308
+ const E = g == null ? void 0 : g.text, P = g == null ? void 0 : g.name;
3309
+ try {
3310
+ C = new Function(`return ${E}`)();
3311
+ } catch (T) {
3312
+ he.error(`Failed to compile function "${P}":`, T);
3313
+ return;
3314
+ }
3315
+ window[P] = C;
3316
+ }), (f = x.classes) == null || f.forEach((g) => {
3317
+ const C = g == null ? void 0 : g.text, E = g == null ? void 0 : g.name;
3318
+ let P;
3319
+ try {
3320
+ P = new Function(`return ${C}`)();
3321
+ } catch (T) {
3322
+ he.error(`Failed to compile class "${E}":`, T);
3323
+ return;
3324
+ }
3325
+ window[E] = P;
3326
+ });
3327
+ } catch (x) {
3328
+ he.error("insert js to head fail", x);
3329
+ }
3330
+ },
3331
+ removeGlobalFunctionsToHtml: (u, c = n) => {
3332
+ var f = r(u, c);
3333
+ s(f);
3334
+ },
3335
+ removeCustomCssToHead: t
3336
+ };
3337
+ }, wt = [
3338
+ "width",
3339
+ "height",
3340
+ "display",
3341
+ "margin",
3342
+ "margin-left",
3343
+ "margin-right",
3344
+ "margin-top",
3345
+ "margin-bottom"
3346
+ ], Si = (e, t, i) => {
3347
+ const s = {};
3348
+ return t.forEach((r) => {
3349
+ var n = e[r];
3350
+ Ue(n) || (s[r] = i ? i(r, n) : n);
3351
+ }), s;
3352
+ }, ki = (e, t, i) => {
3353
+ var r;
3354
+ const s = {};
3355
+ return (r = Lt(e)) == null || r.forEach((n) => {
3356
+ var o = e[n];
3357
+ t != null && t.includes(n) || (s[n] = i ? i(n, o) : o);
3358
+ }), s;
3359
+ }, At = (e, t) => ["width", "height", "display"].includes(e) ? Ue(t) || t == "auto" ? t : `${t} !important` : t, Li = (e) => new Promise((t) => {
3360
+ He(e).then((i) => {
3361
+ var s = i == null ? void 0 : i.map((r) => ({ selector: r.selector, declarations: Si(r.declarations, wt, At) }));
3362
+ Ge(s).then((r) => {
3363
+ t(r);
3364
+ });
3365
+ });
3366
+ }), Ri = (e) => new Promise((t) => {
3367
+ He(e).then((i) => {
3368
+ var s = i == null ? void 0 : i.map((r) => ({ selector: r.selector, declarations: ki(r.declarations, wt, At) }));
3369
+ Ge(s).then((r) => {
3370
+ t(r);
3371
+ });
3372
+ });
3373
+ }), Oi = (e, t) => {
3374
+ if (!t || !e)
3375
+ return;
3376
+ const i = Nt(e, ":root", `.${t}`), { insertCustomCssToHead: s } = _i();
3377
+ s(i, void 0, t);
3378
+ }, Fi = (e, t = !0, i) => {
3379
+ if (i != null && i === !1)
3380
+ return [];
3381
+ const s = wi(e);
3382
+ return t || (e == null ? void 0 : e.length) <= 0 ? s : s == null ? void 0 : s.filter((r) => {
3383
+ var n;
3384
+ return !!(r != null && r.widgetList) && ((n = r == null ? void 0 : r.widgetList) == null ? void 0 : n.length) > 0 || !!r.default || (r == null ? void 0 : r.slotName) === Vt.default;
3385
+ });
3386
+ }, Bi = (e, t) => e == null ? void 0 : e.find((i) => (i == null ? void 0 : i.slotName) === t), wi = (e) => Me(e);
3387
+ export {
3388
+ qe as F,
3389
+ Oi as a,
3390
+ Ri as b,
3391
+ Ti as c,
3392
+ Bi as d,
3393
+ Fi as g,
3394
+ wi as i,
3395
+ Li as p,
3396
+ _i as u
3397
+ };