hldesigner 0.0.196 → 0.0.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FileSaver.min-b57403e6.js +103 -0
- package/{barcode-widget-c60b7509.js → JsBarcode-e0a8837b.js} +760 -814
- package/{_pdf-53ea24d6.js → _pdf-4c706e60.js} +3 -3
- package/{_share_image-1d96ecba.js → _share_image-dc17ebf1.js} +1 -1
- package/{_txt-4c5d3017.js → _txt-e4b11c88.js} +3 -3
- package/{slot-e7793b25.js → acorn-a3705767.js} +759 -1002
- package/{affix-widget-685de61a.js → affix-widget-1c84ecfb.js} +11 -11
- package/{alert-widget-fe17f49b.js → alert-widget-8578fbe7.js} +11 -11
- package/{anchor-widget-f1c1911c.js → anchor-widget-ceeabf3f.js} +8 -8
- package/{auto-complete-widget-1f203140.js → auto-complete-widget-64f54cd6.js} +10 -10
- package/{avatar-widget-a7cf9723.js → avatar-widget-3b71e7a1.js} +11 -11
- package/{backtop-widget-b45ab8fa.js → backtop-widget-9de51b39.js} +11 -11
- package/{badge-widget-3d2b6b97.js → badge-widget-72b34510.js} +11 -11
- package/barcode-widget-9c8b37b8.js +83 -0
- package/baseImp-e49d2773.js +11780 -0
- package/{breadcrumb-widget-d8baa560.js → breadcrumb-widget-792bcaf6.js} +8 -8
- package/browser-195dd18b.js +1486 -0
- package/{button-widget-65c329a0.js → button-widget-f1c5236f.js} +11 -11
- package/{cache-widget-017868e3.js → cache-widget-5fa60ec6.js} +9 -9
- package/{card-widget-fee0bc6b.js → card-widget-e512515a.js} +9 -9
- package/{carousel-widget-a78fb097.js → carousel-widget-3696c44d.js} +8 -8
- package/{cascader-widget-f356a970.js → cascader-widget-e5c5f825.js} +9 -9
- package/{chart-widget-976c58cb.js → chart-widget-3e54a5bb.js} +8 -8
- package/{checkbox-widget-92f47561.js → checkbox-widget-564de2c7.js} +9 -9
- package/{collapse-widget-a0cada8c.js → collapse-widget-51d7cf71.js} +8 -8
- package/{color-picker-widget-ce0a14ca.js → color-picker-widget-fc1cbd99.js} +9 -9
- package/{common-editor-6f119fbd.js → common-editor-fba47b00.js} +8 -8
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-732c389b.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-e83ab29f.js} +2 -2
- package/{configItem-4f000802.js → configItem-022c3a03.js} +26 -26
- package/{cont-cell-widget-97d5e626.js → cont-cell-widget-a130b8db.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-1d1b1d58.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-22b878c0.js} +4 -4
- package/{cont-widget-04e212c2.js → cont-widget-7f0e150f.js} +4 -4
- package/{content-wrapper-490b4baa.js → content-wrapper-9f6222f3.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-16f32217.js → content-wrapper.vue_vue_type_script_setup_true_lang-bc24e53b.js} +1 -1
- package/{css-editor-bc4d930f.js → css-editor-78e6dc8c.js} +8 -8
- package/{customClass-editor-e066a42f.js → customClass-editor-5f3c0118.js} +8 -8
- package/{date-picker-range-widget-3b06891c.js → date-picker-range-widget-3c7a0942.js} +9 -9
- package/{date-picker-widget-7bc056ff.js → date-picker-widget-037ceb37.js} +9 -9
- package/{default-slot-widget-a1b6cefc.js → default-slot-widget-0dcac6f6.js} +9 -9
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-32528f94.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-800037db.js} +4 -4
- package/{descriptions-widget-f917a4ea.js → descriptions-widget-4d59d506.js} +9 -9
- package/designer.es.js +24 -24
- package/designer.style.css +1 -1
- package/designer.umd.js +636 -626
- package/{dialog-widget-c92df709.js → dialog-widget-a1705f21.js} +10 -10
- package/{divider-widget-27958c99.js → divider-widget-352dabc2.js} +11 -11
- package/{drag-wrapper-5d756d53.js → drag-wrapper-c5f36a3f.js} +4 -4
- package/{drawer-widget-4a2a6748.js → drawer-widget-8a4cf015.js} +10 -10
- package/{dropdown-widget-400f160e.js → dropdown-widget-e6f407a3.js} +9 -9
- package/{editor-wrapper-b6ffa093.js → editor-wrapper-037968c2.js} +37 -37
- package/{empty-widget-f8329403.js → empty-widget-f99a3baf.js} +11 -11
- package/{feedback-widget-a63812ef.js → feedback-widget-08332c4f.js} +10 -10
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-74b7c289.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0f7a4c77.js} +4 -4
- package/{field-editor-beb155c8.js → field-editor-a074e424.js} +7 -7
- package/{file-upload-widget-25a8ea11.js → file-upload-widget-7c1c900b.js} +13 -13
- package/{form-item-wrapper-eae381a2.js → form-item-wrapper-75976438.js} +5 -5
- package/{form-widget-9c2d616a.js → form-widget-10dd2246.js} +7 -7
- package/{grid-col-widget-e0960f91.js → grid-col-widget-1f1a8714.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-1e5b42af.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2ae49464.js} +4 -4
- package/{grid-widget-ca989c15.js → grid-widget-d9c98e1e.js} +4 -4
- package/{html-text-widget-1f066c23.js → html-text-widget-ead52952.js} +9 -9
- package/{icon-widget-f462e80c.js → icon-widget-0d09fa31.js} +8 -8
- package/{iframe-widget-ae783f16.js → iframe-widget-2834e921.js} +8 -8
- package/{image-editor-77dd2a8c.js → image-editor-87c1fa97.js} +8 -8
- package/{image-widget-db7c9b6e.js → image-widget-5304b99a.js} +8 -8
- package/{index-cb0a24f1.js → index-004c3e5a.js} +8 -8
- package/{index-c3b33f58.js → index-132e54f6.js} +27 -27
- package/{index-645d9c0a.js → index-29a9d260.js} +12 -12
- package/{index-416a7005.js → index-37761d29.js} +8 -8
- package/{index-522cd573.js → index-471b1b77.js} +29 -29
- package/{index-b95dc08e.js → index-4bba6308.js} +3 -3
- package/{index-c8d50d10.js → index-4ef04f4f.js} +1 -1
- package/{index-a08490fd.js → index-5663497c.js} +3 -3
- package/{index-a8efb9af.js → index-5df9e1e9.js} +12 -12
- package/{index-59a09dfe.js → index-6ae0e7db.js} +3 -3
- package/{index-839dab1c.js → index-8c63f468.js} +5 -5
- package/{index-0cf469b7.js → index-8faf4a86.js} +1 -1
- package/{index-aa3763e3.js → index-972b5e7d.js} +4 -4
- package/{index-63ca0573.js → index-979a4dfc.js} +3 -3
- package/{index-45cc4b24.js → index-afcc0cb2.js} +11 -11
- package/{index-37b234f3.js → index-b3585536.js} +4 -4
- package/{index-3977f490.js → index-c0ac6679.js} +1 -1
- package/{index-6b734505.js → index-d9faf252.js} +27 -27
- package/{index-3f683c40.js → index-ddb14013.js} +5 -5
- package/{index-cf0f3d84.js → index-ea246120.js} +2 -2
- package/{index-a4de9b2c.js → index-edba8ac2.js} +1 -1
- package/{index-6b873fb5.js → index-fd5e4e75.js} +17 -17
- package/{input-number-widget-d9c08984.js → input-number-widget-5b91814d.js} +9 -9
- package/{input-widget-513b480f.js → input-widget-9f9f1e86.js} +20 -20
- package/{install-designer-b97513b6.js → install-designer-092182cc.js} +20 -20
- package/{link-widget-4e6e97db.js → link-widget-f1bc9ed1.js} +11 -11
- package/{ltable-col-widget-a27586b5.js → ltable-col-widget-7198f180.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f019a22b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-9659c585.js} +6 -6
- package/{ltable-widget-9f84e319.js → ltable-widget-8e240c9e.js} +4 -4
- package/{menu-widget-6182fe6d.js → menu-widget-b30f1aa4.js} +18 -18
- package/{model-widget-f5486c0b.js → model-widget-e8b3f795.js} +8 -8
- package/{multirow-cc07dfa3.js → multirow-70766faf.js} +74 -74
- package/{multirow-widget-45a821e4.js → multirow-widget-b7d121ce.js} +53 -53
- package/{name-editor-4e7bff99.js → name-editor-f2e09a2a.js} +7 -7
- package/{optionItem-c8ad230b.js → optionItem-658ef248.js} +5 -1
- package/package.json +1 -3
- package/{pagination-widget-12e9db7f.js → pagination-widget-8d56529f.js} +8 -8
- package/{picture-upload-widget-2f29dc3d.js → picture-upload-widget-3c439623.js} +10 -10
- package/{progress-widget-9b434700.js → progress-widget-3deb6d65.js} +9 -9
- package/{property-base-b45a7998.js → property-base-585ae99f.js} +1 -1
- package/qrcode-widget-58b296c9.js +73 -0
- package/{radio-widget-abd19998.js → radio-widget-b37f2efa.js} +9 -9
- package/{range-widget-9cd6d9d6.js → range-widget-9e9d1d91.js} +10 -10
- package/{rate-widget-6d6c35b7.js → rate-widget-f2df42ca.js} +9 -9
- package/{reg-editor.vue_vue_type_script_setup_true_lang-5452d526.js → reg-editor.vue_vue_type_script_setup_true_lang-552964b4.js} +1 -1
- package/{result-widget-0c99aaa8.js → result-widget-064d580f.js} +9 -9
- package/{rich-editor-widget-e00a6eb4.js → rich-editor-widget-f8c3a359.js} +9 -9
- package/{router-widget-bcdf4a77.js → router-widget-c3c1dcbe.js} +8 -8
- package/{schemaData-f08bdcaa.js → schemaData-4b6c8f93.js} +33 -33
- package/{select-widget-52ab3fcd.js → select-widget-115c19eb.js} +9 -9
- package/{sfc-5dc39292.js → sfc-8e1699a5.js} +5 -5
- package/{sfcview-000ac73e.js → sfcview-e35d2a6c.js} +7 -7
- package/{share-editor-7d7e1e71.js → share-editor-0b81d40d.js} +1 -1
- package/{share-field-ca42d5df.js → share-field-6d22dc0f.js} +4 -4
- package/{share-file-7268cac9.js → share-file-c09f38d7.js} +8 -8
- package/{size-editor-fd5726d0.js → size-editor-19b9771a.js} +7 -7
- package/{slider-widget-f50e2a91.js → slider-widget-8ffc9a9e.js} +9 -9
- package/slot-62b1ff9b.js +287 -0
- package/{static-text-widget-d6cd7579.js → static-text-widget-bfd431fd.js} +9 -9
- package/{steps-widget-88306849.js → steps-widget-62708fc5.js} +8 -8
- package/{subMenu-widget-ba989174.js → subMenu-widget-bc8720e3.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-86547b4b.js → subMenu-widget.vue_vue_type_script_setup_true_lang-292af0db.js} +9 -9
- package/{switch-widget-fd56c5af.js → switch-widget-45c43819.js} +9 -9
- package/{tab-pane-widget-2898df81.js → tab-pane-widget-4f6477b7.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-71e773e9.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-6c931b97.js} +4 -4
- package/{table-col-widget-6fc86009.js → table-col-widget-a0233d24.js} +8 -8
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-26407d00.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-51a501b6.js} +4 -4
- package/{table-widget-c1b351b6.js → table-widget-48472910.js} +17 -17
- package/{tabs-widget-b0a99535.js → tabs-widget-223c7b43.js} +5 -5
- package/{tag-widget-bfe0dcf9.js → tag-widget-7bce1464.js} +11 -11
- package/{target-code-0c68e204.js → target-code-faf94048.js} +3 -3
- package/{target-datasource-0c299705.js → target-datasource-ce8ef09f.js} +40 -40
- package/{target-link-41c28531.js → target-link-365f24d0.js} +27 -27
- package/{target-saveForm-4a35d468.js → target-saveForm-96b58000.js} +27 -27
- package/{target-window-e6404d3b.js → target-window-846ee9c9.js} +4 -4
- package/{text-widget-f4bd8c80.js → text-widget-d5907fd1.js} +11 -11
- package/{textarea-widget-013f6686.js → textarea-widget-ba555132.js} +9 -9
- package/{time-picker-range-widget-f96057fc.js → time-picker-range-widget-181b8b60.js} +9 -9
- package/{time-picker-widget-0b56bc2e.js → time-picker-widget-9f410605.js} +9 -9
- package/{time-select-widget-47988b8f.js → time-select-widget-28d4139e.js} +9 -9
- package/{tmpl-widget-6e13e004.js → tmpl-widget-43e82eef.js} +9 -9
- package/{tree-select-widget-4670ebba.js → tree-select-widget-6f671e54.js} +9 -9
- package/{tree-widget-5ebb7f02.js → tree-widget-a0eee231.js} +8 -8
- package/{value-editor-136b4716.js → value-editor-2b6e96e5.js} +7 -7
- package/{verifycode-widget-d0aab327.js → verifycode-widget-c09fbb3c.js} +8 -8
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e88e9562.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1fca8a90.js} +2 -2
- package/{wrapper-widget-2a23afe9.js → wrapper-widget-21408a77.js} +4 -4
- package/xlsx-999c0f09.js +25068 -0
- package/baseImp-7f3ed1ec.js +0 -27865
- package/qrcode-widget-b12dfe03.js +0 -1529
|
@@ -1,131 +1,15 @@
|
|
|
1
|
-
var
|
|
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 j, provide as J, computed as k } from "vue";
|
|
5
|
-
import { d as L, b as w, r as Nt, s as Vt } from "./expression-c0206176.js";
|
|
6
|
-
import { B as Pt } from "./baseImp-7f3ed1ec.js";
|
|
7
|
-
import { c as Me, q as he, j as Ue, o as Tt } from "./enum-type-25ce26d4.js";
|
|
8
|
-
import { p as qe, g as He } from "./index-8411963a.js";
|
|
9
|
-
class Ge {
|
|
10
|
-
constructor() {
|
|
11
|
-
/**
|
|
12
|
-
* 当前表单引用库
|
|
13
|
-
* 假设表单组件位于表单form中,则该引用注册入库
|
|
14
|
-
*/
|
|
15
|
-
X(this, "formRefList", {});
|
|
16
|
-
/**
|
|
17
|
-
* 全局引用库
|
|
18
|
-
*/
|
|
19
|
-
X(this, "globalRefList", {});
|
|
20
|
-
/**
|
|
21
|
-
* 全局数据对象
|
|
22
|
-
*/
|
|
23
|
-
X(this, "globalDataModel", {});
|
|
24
|
-
/**
|
|
25
|
-
* 当前表单名称
|
|
26
|
-
*/
|
|
27
|
-
X(this, "globalFormName", "");
|
|
28
|
-
/**
|
|
29
|
-
* 全局页面名称
|
|
30
|
-
*/
|
|
31
|
-
// globalPageName?: string = "";
|
|
32
|
-
/**
|
|
33
|
-
* 用于类似template组件的数据绑定传递
|
|
34
|
-
*/
|
|
35
|
-
X(this, "rowScope", {});
|
|
36
|
-
/**
|
|
37
|
-
* 渲染器调用者传入的配置参数,如接口地址、密钥等
|
|
38
|
-
*/
|
|
39
|
-
X(this, "globalConfig", {});
|
|
40
|
-
}
|
|
41
|
-
static globalInject() {
|
|
42
|
-
const t = new Ge();
|
|
43
|
-
return t.formRefList = j(L.refList, {}), t.globalRefList = j(L.allRefList, {}), t.globalDataModel = j(L.globalModel, {}), t.rowScope = j(L.rowScope, {}), t.globalFormName = j(L.globalForm, ""), t.globalConfig = j(L.globalConfig, {}), t;
|
|
44
|
-
}
|
|
45
|
-
static globalProvide(t) {
|
|
46
|
-
if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
|
|
47
|
-
const i = (t == null ? void 0 : t.globalDataModel) || {};
|
|
48
|
-
J(L.globalModel, i);
|
|
49
|
-
}
|
|
50
|
-
if ((t == null ? void 0 : t.rowScope) !== void 0) {
|
|
51
|
-
const i = (t == null ? void 0 : t.rowScope) || {};
|
|
52
|
-
J(L.rowScope, i);
|
|
53
|
-
}
|
|
54
|
-
if ((t == null ? void 0 : t.globalRefList) !== void 0) {
|
|
55
|
-
const i = (t == null ? void 0 : t.globalRefList) || {};
|
|
56
|
-
J(L.allRefList, i);
|
|
57
|
-
}
|
|
58
|
-
if ((t == null ? void 0 : t.formRefList) !== void 0) {
|
|
59
|
-
const i = (t == null ? void 0 : t.formRefList) || {};
|
|
60
|
-
J(L.refList, i);
|
|
61
|
-
}
|
|
62
|
-
if ((t == null ? void 0 : t.globalFormName) !== void 0) {
|
|
63
|
-
const i = (t == null ? void 0 : t.globalFormName) || "";
|
|
64
|
-
J(L.globalForm, i);
|
|
65
|
-
}
|
|
66
|
-
if ((t == null ? void 0 : t.globalConfig) !== void 0) {
|
|
67
|
-
const i = (t == null ? void 0 : t.globalConfig) || "";
|
|
68
|
-
J(L.globalConfig, i);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function Pi(e) {
|
|
73
|
-
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(() => {
|
|
74
|
-
var _ = t(w.customClass);
|
|
75
|
-
return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
|
|
76
|
-
}), o = k(() => {
|
|
77
|
-
var _ = t(w.componentWrapperClass);
|
|
78
|
-
return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
|
|
79
|
-
}), h = k(() => t(w.css)), u = k(() => {
|
|
80
|
-
var _ = t(w.componentRootClass);
|
|
81
|
-
return Array.isArray(_) ? _ == null ? void 0 : _.join(" ") : _;
|
|
82
|
-
}), l = k(() => {
|
|
83
|
-
var _, ue;
|
|
84
|
-
return (ue = Me((_ = t(w.required, !0)) == null ? void 0 : _.options)) == null ? void 0 : ue.enable;
|
|
85
|
-
}), 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));
|
|
86
|
-
return {
|
|
87
|
-
//size,
|
|
88
|
-
attrs: k(() => ({
|
|
89
|
-
required: l.value,
|
|
90
|
-
label: P.value,
|
|
91
|
-
labelHidden: E.value,
|
|
92
|
-
labelAlign: H.value,
|
|
93
|
-
labelIconClass: g.value,
|
|
94
|
-
labelIconPosition: C.value,
|
|
95
|
-
labelTooltip: x.value,
|
|
96
|
-
labelWidth: T.value,
|
|
97
|
-
ctrlWidth: i.value
|
|
98
|
-
})),
|
|
99
|
-
labelAlign: H,
|
|
100
|
-
labelHidden: E,
|
|
101
|
-
labelIconClass: g,
|
|
102
|
-
labelIconPosition: C,
|
|
103
|
-
labelTooltip: x,
|
|
104
|
-
labelWidth: T,
|
|
105
|
-
label: P,
|
|
106
|
-
displayLayout: r,
|
|
107
|
-
hidden: f,
|
|
108
|
-
// required,
|
|
109
|
-
ctrlWidth: i,
|
|
110
|
-
ctrlHeight: s,
|
|
111
|
-
customClass: n,
|
|
112
|
-
componentWrapperClass: o,
|
|
113
|
-
componentRootClass: u,
|
|
114
|
-
css: h
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
var Lt = [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], Rt = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", ze = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ye = {
|
|
1
|
+
var pt = [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], Ne = [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], lt = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ve = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", pe = {
|
|
118
2
|
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",
|
|
119
3
|
5: "class enum extends super const export import",
|
|
120
4
|
6: "enum",
|
|
121
5
|
strict: "implements interface let package private protected public static yield",
|
|
122
6
|
strictBind: "eval arguments"
|
|
123
|
-
},
|
|
124
|
-
5:
|
|
125
|
-
"5module":
|
|
126
|
-
6:
|
|
127
|
-
},
|
|
128
|
-
function
|
|
7
|
+
}, le = "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", ft = {
|
|
8
|
+
5: le,
|
|
9
|
+
"5module": le + " export import",
|
|
10
|
+
6: le + " const class extends export import super"
|
|
11
|
+
}, dt = /^in(stanceof)?$/, xt = new RegExp("[" + Ve + "]"), mt = new RegExp("[" + Ve + lt + "]");
|
|
12
|
+
function de(e, t) {
|
|
129
13
|
for (var i = 65536, s = 0; s < t.length; s += 2) {
|
|
130
14
|
if (i += t[s], i > e)
|
|
131
15
|
return !1;
|
|
@@ -134,48 +18,48 @@ function Se(e, t) {
|
|
|
134
18
|
}
|
|
135
19
|
return !1;
|
|
136
20
|
}
|
|
137
|
-
function
|
|
138
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
21
|
+
function V(e, t) {
|
|
22
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && xt.test(String.fromCharCode(e)) : t === !1 ? !1 : de(e, Ne);
|
|
139
23
|
}
|
|
140
|
-
function
|
|
141
|
-
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 &&
|
|
24
|
+
function F(e, t) {
|
|
25
|
+
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 && mt.test(String.fromCharCode(e)) : t === !1 ? !1 : de(e, Ne) || de(e, pt);
|
|
142
26
|
}
|
|
143
|
-
var
|
|
27
|
+
var v = function(t, i) {
|
|
144
28
|
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;
|
|
145
29
|
};
|
|
146
|
-
function
|
|
147
|
-
return new
|
|
30
|
+
function A(e, t) {
|
|
31
|
+
return new v(e, { beforeExpr: !0, binop: t });
|
|
148
32
|
}
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
return t === void 0 && (t = {}), t.keyword = e,
|
|
33
|
+
var E = { beforeExpr: !0 }, k = { startsExpr: !0 }, ge = {};
|
|
34
|
+
function m(e, t) {
|
|
35
|
+
return t === void 0 && (t = {}), t.keyword = e, ge[e] = new v(e, t);
|
|
152
36
|
}
|
|
153
37
|
var a = {
|
|
154
|
-
num: new
|
|
155
|
-
regexp: new
|
|
156
|
-
string: new
|
|
157
|
-
name: new
|
|
158
|
-
privateId: new
|
|
159
|
-
eof: new
|
|
38
|
+
num: new v("num", k),
|
|
39
|
+
regexp: new v("regexp", k),
|
|
40
|
+
string: new v("string", k),
|
|
41
|
+
name: new v("name", k),
|
|
42
|
+
privateId: new v("privateId", k),
|
|
43
|
+
eof: new v("eof"),
|
|
160
44
|
// Punctuation token types.
|
|
161
|
-
bracketL: new
|
|
162
|
-
bracketR: new
|
|
163
|
-
braceL: new
|
|
164
|
-
braceR: new
|
|
165
|
-
parenL: new
|
|
166
|
-
parenR: new
|
|
167
|
-
comma: new
|
|
168
|
-
semi: new
|
|
169
|
-
colon: new
|
|
170
|
-
dot: new
|
|
171
|
-
question: new
|
|
172
|
-
questionDot: new
|
|
173
|
-
arrow: new
|
|
174
|
-
template: new
|
|
175
|
-
invalidTemplate: new
|
|
176
|
-
ellipsis: new
|
|
177
|
-
backQuote: new
|
|
178
|
-
dollarBraceL: new
|
|
45
|
+
bracketL: new v("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
46
|
+
bracketR: new v("]"),
|
|
47
|
+
braceL: new v("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
48
|
+
braceR: new v("}"),
|
|
49
|
+
parenL: new v("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
50
|
+
parenR: new v(")"),
|
|
51
|
+
comma: new v(",", E),
|
|
52
|
+
semi: new v(";", E),
|
|
53
|
+
colon: new v(":", E),
|
|
54
|
+
dot: new v("."),
|
|
55
|
+
question: new v("?", E),
|
|
56
|
+
questionDot: new v("?."),
|
|
57
|
+
arrow: new v("=>", E),
|
|
58
|
+
template: new v("template"),
|
|
59
|
+
invalidTemplate: new v("invalidTemplate"),
|
|
60
|
+
ellipsis: new v("...", E),
|
|
61
|
+
backQuote: new v("`", k),
|
|
62
|
+
dollarBraceL: new v("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
179
63
|
// Operators. These carry several kinds of properties to help the
|
|
180
64
|
// parser use them properly (the presence of these properties is
|
|
181
65
|
// what categorizes them as operators).
|
|
@@ -189,102 +73,102 @@ var a = {
|
|
|
189
73
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
190
74
|
// binary operators with a very low precedence, that should result
|
|
191
75
|
// in AssignmentExpression nodes.
|
|
192
|
-
eq: new
|
|
193
|
-
assign: new
|
|
194
|
-
incDec: new
|
|
195
|
-
prefix: new
|
|
196
|
-
logicalOR:
|
|
197
|
-
logicalAND:
|
|
198
|
-
bitwiseOR:
|
|
199
|
-
bitwiseXOR:
|
|
200
|
-
bitwiseAND:
|
|
201
|
-
equality:
|
|
202
|
-
relational:
|
|
203
|
-
bitShift:
|
|
204
|
-
plusMin: new
|
|
205
|
-
modulo:
|
|
206
|
-
star:
|
|
207
|
-
slash:
|
|
208
|
-
starstar: new
|
|
209
|
-
coalesce:
|
|
76
|
+
eq: new v("=", { beforeExpr: !0, isAssign: !0 }),
|
|
77
|
+
assign: new v("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
78
|
+
incDec: new v("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
79
|
+
prefix: new v("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
80
|
+
logicalOR: A("||", 1),
|
|
81
|
+
logicalAND: A("&&", 2),
|
|
82
|
+
bitwiseOR: A("|", 3),
|
|
83
|
+
bitwiseXOR: A("^", 4),
|
|
84
|
+
bitwiseAND: A("&", 5),
|
|
85
|
+
equality: A("==/!=/===/!==", 6),
|
|
86
|
+
relational: A("</>/<=/>=", 7),
|
|
87
|
+
bitShift: A("<</>>/>>>", 8),
|
|
88
|
+
plusMin: new v("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
89
|
+
modulo: A("%", 10),
|
|
90
|
+
star: A("*", 10),
|
|
91
|
+
slash: A("/", 10),
|
|
92
|
+
starstar: new v("**", { beforeExpr: !0 }),
|
|
93
|
+
coalesce: A("??", 1),
|
|
210
94
|
// Keyword token types.
|
|
211
|
-
_break:
|
|
212
|
-
_case:
|
|
213
|
-
_catch:
|
|
214
|
-
_continue:
|
|
215
|
-
_debugger:
|
|
216
|
-
_default:
|
|
217
|
-
_do:
|
|
218
|
-
_else:
|
|
219
|
-
_finally:
|
|
220
|
-
_for:
|
|
221
|
-
_function:
|
|
222
|
-
_if:
|
|
223
|
-
_return:
|
|
224
|
-
_switch:
|
|
225
|
-
_throw:
|
|
226
|
-
_try:
|
|
227
|
-
_var:
|
|
228
|
-
_const:
|
|
229
|
-
_while:
|
|
230
|
-
_with:
|
|
231
|
-
_new:
|
|
232
|
-
_this:
|
|
233
|
-
_super:
|
|
234
|
-
_class:
|
|
235
|
-
_extends:
|
|
236
|
-
_export:
|
|
237
|
-
_import:
|
|
238
|
-
_null:
|
|
239
|
-
_true:
|
|
240
|
-
_false:
|
|
241
|
-
_in:
|
|
242
|
-
_instanceof:
|
|
243
|
-
_typeof:
|
|
244
|
-
_void:
|
|
245
|
-
_delete:
|
|
246
|
-
},
|
|
247
|
-
function
|
|
95
|
+
_break: m("break"),
|
|
96
|
+
_case: m("case", E),
|
|
97
|
+
_catch: m("catch"),
|
|
98
|
+
_continue: m("continue"),
|
|
99
|
+
_debugger: m("debugger"),
|
|
100
|
+
_default: m("default", E),
|
|
101
|
+
_do: m("do", { isLoop: !0, beforeExpr: !0 }),
|
|
102
|
+
_else: m("else", E),
|
|
103
|
+
_finally: m("finally"),
|
|
104
|
+
_for: m("for", { isLoop: !0 }),
|
|
105
|
+
_function: m("function", k),
|
|
106
|
+
_if: m("if"),
|
|
107
|
+
_return: m("return", E),
|
|
108
|
+
_switch: m("switch"),
|
|
109
|
+
_throw: m("throw", E),
|
|
110
|
+
_try: m("try"),
|
|
111
|
+
_var: m("var"),
|
|
112
|
+
_const: m("const"),
|
|
113
|
+
_while: m("while", { isLoop: !0 }),
|
|
114
|
+
_with: m("with"),
|
|
115
|
+
_new: m("new", { beforeExpr: !0, startsExpr: !0 }),
|
|
116
|
+
_this: m("this", k),
|
|
117
|
+
_super: m("super", k),
|
|
118
|
+
_class: m("class", k),
|
|
119
|
+
_extends: m("extends", E),
|
|
120
|
+
_export: m("export"),
|
|
121
|
+
_import: m("import", k),
|
|
122
|
+
_null: m("null", k),
|
|
123
|
+
_true: m("true", k),
|
|
124
|
+
_false: m("false", k),
|
|
125
|
+
_in: m("in", { beforeExpr: !0, binop: 7 }),
|
|
126
|
+
_instanceof: m("instanceof", { beforeExpr: !0, binop: 7 }),
|
|
127
|
+
_typeof: m("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
128
|
+
_void: m("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
129
|
+
_delete: m("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
130
|
+
}, w = /\r\n?|\n|\u2028|\u2029/, vt = new RegExp(w.source, "g");
|
|
131
|
+
function H(e) {
|
|
248
132
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
249
133
|
}
|
|
250
|
-
function
|
|
134
|
+
function Te(e, t, i) {
|
|
251
135
|
i === void 0 && (i = e.length);
|
|
252
136
|
for (var s = t; s < i; s++) {
|
|
253
137
|
var r = e.charCodeAt(s);
|
|
254
|
-
if (
|
|
138
|
+
if (H(r))
|
|
255
139
|
return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
|
|
256
140
|
}
|
|
257
141
|
return -1;
|
|
258
142
|
}
|
|
259
|
-
var
|
|
260
|
-
return
|
|
261
|
-
},
|
|
262
|
-
return
|
|
263
|
-
},
|
|
264
|
-
function
|
|
265
|
-
return
|
|
143
|
+
var Le = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, C = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Re = Object.prototype, gt = Re.hasOwnProperty, bt = Re.toString, W = Object.hasOwn || function(e, t) {
|
|
144
|
+
return gt.call(e, t);
|
|
145
|
+
}, we = Array.isArray || function(e) {
|
|
146
|
+
return bt.call(e) === "[object Array]";
|
|
147
|
+
}, Ae = /* @__PURE__ */ Object.create(null);
|
|
148
|
+
function D(e) {
|
|
149
|
+
return Ae[e] || (Ae[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
266
150
|
}
|
|
267
|
-
function
|
|
151
|
+
function R(e) {
|
|
268
152
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
269
153
|
}
|
|
270
|
-
var
|
|
154
|
+
var yt = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, X = function(t, i) {
|
|
271
155
|
this.line = t, this.column = i;
|
|
272
156
|
};
|
|
273
|
-
|
|
274
|
-
return new
|
|
157
|
+
X.prototype.offset = function(t) {
|
|
158
|
+
return new X(this.line, this.column + t);
|
|
275
159
|
};
|
|
276
|
-
var
|
|
160
|
+
var re = function(t, i, s) {
|
|
277
161
|
this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
278
162
|
};
|
|
279
|
-
function
|
|
163
|
+
function Oe(e, t) {
|
|
280
164
|
for (var i = 1, s = 0; ; ) {
|
|
281
|
-
var r =
|
|
165
|
+
var r = Te(e, s, t);
|
|
282
166
|
if (r < 0)
|
|
283
|
-
return new
|
|
167
|
+
return new X(i, t - s);
|
|
284
168
|
++i, s = r;
|
|
285
169
|
}
|
|
286
170
|
}
|
|
287
|
-
var
|
|
171
|
+
var xe = {
|
|
288
172
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
289
173
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
290
174
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
|
@@ -380,165 +264,165 @@ var ke = {
|
|
|
380
264
|
// When enabled, parenthesized expressions are represented by
|
|
381
265
|
// (non-standard) ParenthesizedExpression nodes
|
|
382
266
|
preserveParens: !1
|
|
383
|
-
},
|
|
384
|
-
function
|
|
267
|
+
}, Ee = !1;
|
|
268
|
+
function _t(e) {
|
|
385
269
|
var t = {};
|
|
386
|
-
for (var i in
|
|
387
|
-
t[i] = e &&
|
|
388
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
389
|
-
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),
|
|
270
|
+
for (var i in xe)
|
|
271
|
+
t[i] = e && W(e, i) ? e[i] : xe[i];
|
|
272
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Ee && typeof console == "object" && console.warn && (Ee = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
273
|
+
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), we(t.onToken)) {
|
|
390
274
|
var s = t.onToken;
|
|
391
275
|
t.onToken = function(r) {
|
|
392
276
|
return s.push(r);
|
|
393
277
|
};
|
|
394
278
|
}
|
|
395
|
-
return
|
|
279
|
+
return we(t.onComment) && (t.onComment = Ct(t, t.onComment)), t;
|
|
396
280
|
}
|
|
397
|
-
function
|
|
398
|
-
return function(i, s, r, n,
|
|
399
|
-
var
|
|
281
|
+
function Ct(e, t) {
|
|
282
|
+
return function(i, s, r, n, u, o) {
|
|
283
|
+
var h = {
|
|
400
284
|
type: i ? "Block" : "Line",
|
|
401
285
|
value: s,
|
|
402
286
|
start: r,
|
|
403
287
|
end: n
|
|
404
288
|
};
|
|
405
|
-
e.locations && (
|
|
289
|
+
e.locations && (h.loc = new re(this, u, o)), e.ranges && (h.range = [r, n]), t.push(h);
|
|
406
290
|
};
|
|
407
291
|
}
|
|
408
|
-
var
|
|
409
|
-
function
|
|
410
|
-
return
|
|
292
|
+
var Z = 1, z = 2, be = 4, Be = 8, ye = 16, De = 32, ne = 64, Fe = 128, U = 256, J = 512, ue = Z | z | U;
|
|
293
|
+
function _e(e, t) {
|
|
294
|
+
return z | (e ? be : 0) | (t ? Be : 0);
|
|
411
295
|
}
|
|
412
|
-
var
|
|
413
|
-
this.options = t =
|
|
296
|
+
var te = 0, Ce = 1, B = 2, Me = 3, Ue = 4, qe = 5, y = function(t, i, s) {
|
|
297
|
+
this.options = t = _t(t), this.sourceFile = t.sourceFile, this.keywords = D(ft[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
414
298
|
var r = "";
|
|
415
|
-
t.allowReserved !== !0 && (r =
|
|
416
|
-
var n = (r ? r + " " : "") +
|
|
417
|
-
this.reservedWordsStrict =
|
|
418
|
-
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(
|
|
419
|
-
},
|
|
420
|
-
|
|
299
|
+
t.allowReserved !== !0 && (r = pe[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = D(r);
|
|
300
|
+
var n = (r ? r + " " : "") + pe.strict;
|
|
301
|
+
this.reservedWordsStrict = D(n), this.reservedWordsStrictBind = D(n + " " + pe.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
302
|
+
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(w).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(Z), this.regexpState = null, this.privateNameStack = [];
|
|
303
|
+
}, T = { 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 } };
|
|
304
|
+
y.prototype.parse = function() {
|
|
421
305
|
var t = this.options.program || this.startNode();
|
|
422
306
|
return this.nextToken(), this.parseTopLevel(t);
|
|
423
307
|
};
|
|
424
|
-
|
|
425
|
-
return (this.currentVarScope().flags &
|
|
308
|
+
T.inFunction.get = function() {
|
|
309
|
+
return (this.currentVarScope().flags & z) > 0;
|
|
426
310
|
};
|
|
427
|
-
|
|
428
|
-
return (this.currentVarScope().flags &
|
|
311
|
+
T.inGenerator.get = function() {
|
|
312
|
+
return (this.currentVarScope().flags & Be) > 0;
|
|
429
313
|
};
|
|
430
|
-
|
|
431
|
-
return (this.currentVarScope().flags &
|
|
314
|
+
T.inAsync.get = function() {
|
|
315
|
+
return (this.currentVarScope().flags & be) > 0;
|
|
432
316
|
};
|
|
433
|
-
|
|
317
|
+
T.canAwait.get = function() {
|
|
434
318
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
435
319
|
var t = this.scopeStack[e], i = t.flags;
|
|
436
|
-
if (i & (
|
|
320
|
+
if (i & (U | J))
|
|
437
321
|
return !1;
|
|
438
|
-
if (i &
|
|
439
|
-
return (i &
|
|
322
|
+
if (i & z)
|
|
323
|
+
return (i & be) > 0;
|
|
440
324
|
}
|
|
441
325
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
442
326
|
};
|
|
443
|
-
|
|
327
|
+
T.allowSuper.get = function() {
|
|
444
328
|
var e = this.currentThisScope(), t = e.flags;
|
|
445
|
-
return (t &
|
|
329
|
+
return (t & ne) > 0 || this.options.allowSuperOutsideMethod;
|
|
446
330
|
};
|
|
447
|
-
|
|
448
|
-
return (this.currentThisScope().flags &
|
|
331
|
+
T.allowDirectSuper.get = function() {
|
|
332
|
+
return (this.currentThisScope().flags & Fe) > 0;
|
|
449
333
|
};
|
|
450
|
-
|
|
334
|
+
T.treatFunctionsAsVar.get = function() {
|
|
451
335
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
452
336
|
};
|
|
453
|
-
|
|
337
|
+
T.allowNewDotTarget.get = function() {
|
|
454
338
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
455
339
|
var t = this.scopeStack[e], i = t.flags;
|
|
456
|
-
if (i & (
|
|
340
|
+
if (i & (U | J) || i & z && !(i & ye))
|
|
457
341
|
return !0;
|
|
458
342
|
}
|
|
459
343
|
return !1;
|
|
460
344
|
};
|
|
461
|
-
|
|
462
|
-
return (this.currentVarScope().flags &
|
|
345
|
+
T.inClassStaticBlock.get = function() {
|
|
346
|
+
return (this.currentVarScope().flags & U) > 0;
|
|
463
347
|
};
|
|
464
|
-
|
|
348
|
+
y.extend = function() {
|
|
465
349
|
for (var t = [], i = arguments.length; i--; )
|
|
466
350
|
t[i] = arguments[i];
|
|
467
351
|
for (var s = this, r = 0; r < t.length; r++)
|
|
468
352
|
s = t[r](s);
|
|
469
353
|
return s;
|
|
470
354
|
};
|
|
471
|
-
|
|
355
|
+
y.parse = function(t, i) {
|
|
472
356
|
return new this(i, t).parse();
|
|
473
357
|
};
|
|
474
|
-
|
|
358
|
+
y.parseExpressionAt = function(t, i, s) {
|
|
475
359
|
var r = new this(s, t, i);
|
|
476
360
|
return r.nextToken(), r.parseExpression();
|
|
477
361
|
};
|
|
478
|
-
|
|
362
|
+
y.tokenizer = function(t, i) {
|
|
479
363
|
return new this(i, t);
|
|
480
364
|
};
|
|
481
|
-
Object.defineProperties(
|
|
482
|
-
var
|
|
483
|
-
|
|
365
|
+
Object.defineProperties(y.prototype, T);
|
|
366
|
+
var S = y.prototype, St = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
367
|
+
S.strictDirective = function(e) {
|
|
484
368
|
if (this.options.ecmaVersion < 5)
|
|
485
369
|
return !1;
|
|
486
370
|
for (; ; ) {
|
|
487
|
-
|
|
488
|
-
var t =
|
|
371
|
+
C.lastIndex = e, e += C.exec(this.input)[0].length;
|
|
372
|
+
var t = St.exec(this.input.slice(e));
|
|
489
373
|
if (!t)
|
|
490
374
|
return !1;
|
|
491
375
|
if ((t[1] || t[2]) === "use strict") {
|
|
492
|
-
|
|
493
|
-
var i =
|
|
494
|
-
return r === ";" || r === "}" ||
|
|
376
|
+
C.lastIndex = e + t[0].length;
|
|
377
|
+
var i = C.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
|
|
378
|
+
return r === ";" || r === "}" || w.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
|
|
495
379
|
}
|
|
496
|
-
e += t[0].length,
|
|
380
|
+
e += t[0].length, C.lastIndex = e, e += C.exec(this.input)[0].length, this.input[e] === ";" && e++;
|
|
497
381
|
}
|
|
498
382
|
};
|
|
499
|
-
|
|
383
|
+
S.eat = function(e) {
|
|
500
384
|
return this.type === e ? (this.next(), !0) : !1;
|
|
501
385
|
};
|
|
502
|
-
|
|
386
|
+
S.isContextual = function(e) {
|
|
503
387
|
return this.type === a.name && this.value === e && !this.containsEsc;
|
|
504
388
|
};
|
|
505
|
-
|
|
389
|
+
S.eatContextual = function(e) {
|
|
506
390
|
return this.isContextual(e) ? (this.next(), !0) : !1;
|
|
507
391
|
};
|
|
508
|
-
|
|
392
|
+
S.expectContextual = function(e) {
|
|
509
393
|
this.eatContextual(e) || this.unexpected();
|
|
510
394
|
};
|
|
511
|
-
|
|
512
|
-
return this.type === a.eof || this.type === a.braceR ||
|
|
395
|
+
S.canInsertSemicolon = function() {
|
|
396
|
+
return this.type === a.eof || this.type === a.braceR || w.test(this.input.slice(this.lastTokEnd, this.start));
|
|
513
397
|
};
|
|
514
|
-
|
|
398
|
+
S.insertSemicolon = function() {
|
|
515
399
|
if (this.canInsertSemicolon())
|
|
516
400
|
return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
|
|
517
401
|
};
|
|
518
|
-
|
|
402
|
+
S.semicolon = function() {
|
|
519
403
|
!this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
|
|
520
404
|
};
|
|
521
|
-
|
|
405
|
+
S.afterTrailingComma = function(e, t) {
|
|
522
406
|
if (this.type === e)
|
|
523
407
|
return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
|
|
524
408
|
};
|
|
525
|
-
|
|
409
|
+
S.expect = function(e) {
|
|
526
410
|
this.eat(e) || this.unexpected();
|
|
527
411
|
};
|
|
528
|
-
|
|
412
|
+
S.unexpected = function(e) {
|
|
529
413
|
this.raise(e ?? this.start, "Unexpected token");
|
|
530
414
|
};
|
|
531
|
-
var
|
|
415
|
+
var oe = function() {
|
|
532
416
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
533
417
|
};
|
|
534
|
-
|
|
418
|
+
S.checkPatternErrors = function(e, t) {
|
|
535
419
|
if (e) {
|
|
536
420
|
e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
|
|
537
421
|
var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
|
|
538
422
|
i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
|
|
539
423
|
}
|
|
540
424
|
};
|
|
541
|
-
|
|
425
|
+
S.checkExpressionErrors = function(e, t) {
|
|
542
426
|
if (!e)
|
|
543
427
|
return !1;
|
|
544
428
|
var i = e.shorthandAssign, s = e.doubleProto;
|
|
@@ -546,13 +430,13 @@ I.checkExpressionErrors = function(e, t) {
|
|
|
546
430
|
return i >= 0 || s >= 0;
|
|
547
431
|
i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
|
|
548
432
|
};
|
|
549
|
-
|
|
433
|
+
S.checkYieldAwaitInDefaultParams = function() {
|
|
550
434
|
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");
|
|
551
435
|
};
|
|
552
|
-
|
|
436
|
+
S.isSimpleAssignTarget = function(e) {
|
|
553
437
|
return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
|
|
554
438
|
};
|
|
555
|
-
var p =
|
|
439
|
+
var p = y.prototype;
|
|
556
440
|
p.parseTopLevel = function(e) {
|
|
557
441
|
var t = /* @__PURE__ */ Object.create(null);
|
|
558
442
|
for (e.body || (e.body = []); this.type !== a.eof; ) {
|
|
@@ -566,25 +450,25 @@ p.parseTopLevel = function(e) {
|
|
|
566
450
|
}
|
|
567
451
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
568
452
|
};
|
|
569
|
-
var
|
|
453
|
+
var Se = { kind: "loop" }, kt = { kind: "switch" };
|
|
570
454
|
p.isLet = function(e) {
|
|
571
455
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
572
456
|
return !1;
|
|
573
|
-
|
|
574
|
-
var t =
|
|
457
|
+
C.lastIndex = this.pos;
|
|
458
|
+
var t = C.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
|
|
575
459
|
if (s === 91 || s === 92)
|
|
576
460
|
return !0;
|
|
577
461
|
if (e)
|
|
578
462
|
return !1;
|
|
579
463
|
if (s === 123 || s > 55295 && s < 56320)
|
|
580
464
|
return !0;
|
|
581
|
-
if (
|
|
582
|
-
for (var r = i + 1;
|
|
465
|
+
if (V(s, !0)) {
|
|
466
|
+
for (var r = i + 1; F(s = this.input.charCodeAt(r), !0); )
|
|
583
467
|
++r;
|
|
584
468
|
if (s === 92 || s > 55295 && s < 56320)
|
|
585
469
|
return !0;
|
|
586
470
|
var n = this.input.slice(i, r);
|
|
587
|
-
if (!
|
|
471
|
+
if (!dt.test(n))
|
|
588
472
|
return !0;
|
|
589
473
|
}
|
|
590
474
|
return !1;
|
|
@@ -592,33 +476,33 @@ p.isLet = function(e) {
|
|
|
592
476
|
p.isAsyncFunction = function() {
|
|
593
477
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
594
478
|
return !1;
|
|
595
|
-
|
|
596
|
-
var e =
|
|
597
|
-
return !
|
|
479
|
+
C.lastIndex = this.pos;
|
|
480
|
+
var e = C.exec(this.input), t = this.pos + e[0].length, i;
|
|
481
|
+
return !w.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(F(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
598
482
|
};
|
|
599
483
|
p.isUsingKeyword = function(e, t) {
|
|
600
484
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
601
485
|
return !1;
|
|
602
|
-
|
|
603
|
-
var i =
|
|
604
|
-
if (
|
|
486
|
+
C.lastIndex = this.pos;
|
|
487
|
+
var i = C.exec(this.input), s = this.pos + i[0].length;
|
|
488
|
+
if (w.test(this.input.slice(this.pos, s)))
|
|
605
489
|
return !1;
|
|
606
490
|
if (e) {
|
|
607
491
|
var r = s + 5, n;
|
|
608
|
-
if (this.input.slice(s, r) !== "using" || r === this.input.length ||
|
|
492
|
+
if (this.input.slice(s, r) !== "using" || r === this.input.length || F(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320)
|
|
609
493
|
return !1;
|
|
610
|
-
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
494
|
+
C.lastIndex = r;
|
|
495
|
+
var u = C.exec(this.input);
|
|
496
|
+
if (u && w.test(this.input.slice(r, r + u[0].length)))
|
|
613
497
|
return !1;
|
|
614
498
|
}
|
|
615
499
|
if (t) {
|
|
616
|
-
var
|
|
617
|
-
if (this.input.slice(s,
|
|
500
|
+
var o = s + 2, h;
|
|
501
|
+
if (this.input.slice(s, o) === "of" && (o === this.input.length || !F(h = this.input.charCodeAt(o)) && !(h > 55295 && h < 56320)))
|
|
618
502
|
return !1;
|
|
619
503
|
}
|
|
620
504
|
var l = this.input.charCodeAt(s);
|
|
621
|
-
return
|
|
505
|
+
return V(l, !0) || l === 92;
|
|
622
506
|
};
|
|
623
507
|
p.isAwaitUsing = function(e) {
|
|
624
508
|
return this.isUsingKeyword(!0, e);
|
|
@@ -666,9 +550,9 @@ p.parseStatement = function(e, t, i) {
|
|
|
666
550
|
case a._export:
|
|
667
551
|
case a._import:
|
|
668
552
|
if (this.options.ecmaVersion > 10 && s === a._import) {
|
|
669
|
-
|
|
670
|
-
var
|
|
671
|
-
if (
|
|
553
|
+
C.lastIndex = this.pos;
|
|
554
|
+
var u = C.exec(this.input), o = this.pos + u[0].length, h = this.input.charCodeAt(o);
|
|
555
|
+
if (h === 40 || h === 46)
|
|
672
556
|
return this.parseExpressionStatement(r, this.parseExpression());
|
|
673
557
|
}
|
|
674
558
|
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);
|
|
@@ -678,8 +562,8 @@ p.parseStatement = function(e, t, i) {
|
|
|
678
562
|
var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
|
|
679
563
|
if (l)
|
|
680
564
|
return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, l), this.semicolon(), this.finishNode(r, "VariableDeclaration");
|
|
681
|
-
var
|
|
682
|
-
return s === a.name &&
|
|
565
|
+
var d = this.value, g = this.parseExpression();
|
|
566
|
+
return s === a.name && g.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, d, g, e) : this.parseExpressionStatement(r, g);
|
|
683
567
|
}
|
|
684
568
|
};
|
|
685
569
|
p.parseBreakContinueStatement = function(e, t) {
|
|
@@ -696,31 +580,31 @@ p.parseDebuggerStatement = function(e) {
|
|
|
696
580
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
697
581
|
};
|
|
698
582
|
p.parseDoStatement = function(e) {
|
|
699
|
-
return this.next(), this.labels.push(
|
|
583
|
+
return this.next(), this.labels.push(Se), 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");
|
|
700
584
|
};
|
|
701
585
|
p.parseForStatement = function(e) {
|
|
702
586
|
this.next();
|
|
703
587
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
704
|
-
if (this.labels.push(
|
|
588
|
+
if (this.labels.push(Se), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
|
|
705
589
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
706
590
|
var i = this.isLet();
|
|
707
591
|
if (this.type === a._var || this.type === a._const || i) {
|
|
708
592
|
var s = this.startNode(), r = i ? "let" : this.value;
|
|
709
593
|
return this.next(), this.parseVar(s, !0, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
|
|
710
594
|
}
|
|
711
|
-
var n = this.isContextual("let"),
|
|
712
|
-
if (
|
|
713
|
-
var
|
|
714
|
-
return this.next(),
|
|
595
|
+
var n = this.isContextual("let"), u = !1, o = this.isUsing(!0) ? "using" : this.isAwaitUsing(!0) ? "await using" : null;
|
|
596
|
+
if (o) {
|
|
597
|
+
var h = this.startNode();
|
|
598
|
+
return this.next(), o === "await using" && this.next(), this.parseVar(h, !0, o), this.finishNode(h, "VariableDeclaration"), this.parseForAfterInit(e, h, t);
|
|
715
599
|
}
|
|
716
|
-
var l = this.containsEsc,
|
|
717
|
-
return this.type === a._in || (
|
|
600
|
+
var l = this.containsEsc, d = new oe(), g = this.start, _ = t > -1 ? this.parseExprSubscripts(d, "await") : this.parseExpression(!0, d);
|
|
601
|
+
return this.type === a._in || (u = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : u && this.options.ecmaVersion >= 8 && (_.start === g && !l && _.type === "Identifier" && _.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && u && this.raise(_.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(_, !1, d), this.checkLValPattern(_), this.parseForIn(e, _)) : (this.checkExpressionErrors(d, !0), t > -1 && this.unexpected(t), this.parseFor(e, _));
|
|
718
602
|
};
|
|
719
603
|
p.parseForAfterInit = function(e, t, i) {
|
|
720
604
|
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));
|
|
721
605
|
};
|
|
722
606
|
p.parseFunctionStatement = function(e, t, i) {
|
|
723
|
-
return this.next(), this.parseFunction(e,
|
|
607
|
+
return this.next(), this.parseFunction(e, Y | (i ? 0 : me), !1, t);
|
|
724
608
|
};
|
|
725
609
|
p.parseIfStatement = function(e) {
|
|
726
610
|
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");
|
|
@@ -729,7 +613,7 @@ p.parseReturnStatement = function(e) {
|
|
|
729
613
|
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");
|
|
730
614
|
};
|
|
731
615
|
p.parseSwitchStatement = function(e) {
|
|
732
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(
|
|
616
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(kt), this.enterScope(0);
|
|
733
617
|
for (var t, i = !1; this.type !== a.braceR; )
|
|
734
618
|
if (this.type === a._case || this.type === a._default) {
|
|
735
619
|
var s = this.type === a._case;
|
|
@@ -739,12 +623,12 @@ p.parseSwitchStatement = function(e) {
|
|
|
739
623
|
return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
|
|
740
624
|
};
|
|
741
625
|
p.parseThrowStatement = function(e) {
|
|
742
|
-
return this.next(),
|
|
626
|
+
return this.next(), w.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");
|
|
743
627
|
};
|
|
744
|
-
var
|
|
628
|
+
var wt = [];
|
|
745
629
|
p.parseCatchClauseParam = function() {
|
|
746
630
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
747
|
-
return this.enterScope(t ?
|
|
631
|
+
return this.enterScope(t ? De : 0), this.checkLValPattern(e, t ? Ue : B), this.expect(a.parenR), e;
|
|
748
632
|
};
|
|
749
633
|
p.parseTryStatement = function(e) {
|
|
750
634
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
|
|
@@ -757,7 +641,7 @@ p.parseVarStatement = function(e, t, i) {
|
|
|
757
641
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
758
642
|
};
|
|
759
643
|
p.parseWhileStatement = function(e) {
|
|
760
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
644
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Se), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
761
645
|
};
|
|
762
646
|
p.parseWithStatement = function(e) {
|
|
763
647
|
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");
|
|
@@ -767,17 +651,17 @@ p.parseEmptyStatement = function(e) {
|
|
|
767
651
|
};
|
|
768
652
|
p.parseLabeledStatement = function(e, t, i, s) {
|
|
769
653
|
for (var r = 0, n = this.labels; r < n.length; r += 1) {
|
|
770
|
-
var
|
|
771
|
-
|
|
654
|
+
var u = n[r];
|
|
655
|
+
u.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
|
|
772
656
|
}
|
|
773
|
-
for (var
|
|
774
|
-
var l = this.labels[
|
|
657
|
+
for (var o = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, h = this.labels.length - 1; h >= 0; h--) {
|
|
658
|
+
var l = this.labels[h];
|
|
775
659
|
if (l.statementStart === e.start)
|
|
776
|
-
l.statementStart = this.start, l.kind =
|
|
660
|
+
l.statementStart = this.start, l.kind = o;
|
|
777
661
|
else
|
|
778
662
|
break;
|
|
779
663
|
}
|
|
780
|
-
return this.labels.push({ name: t, kind:
|
|
664
|
+
return this.labels.push({ name: t, kind: o, 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");
|
|
781
665
|
};
|
|
782
666
|
p.parseExpressionStatement = function(e, t) {
|
|
783
667
|
return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
|
|
@@ -808,13 +692,13 @@ p.parseVar = function(e, t, i, s) {
|
|
|
808
692
|
return e;
|
|
809
693
|
};
|
|
810
694
|
p.parseVarId = function(e, t) {
|
|
811
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
695
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ce : B, !1);
|
|
812
696
|
};
|
|
813
|
-
var
|
|
697
|
+
var Y = 1, me = 2, je = 4;
|
|
814
698
|
p.parseFunction = function(e, t, i, s, r) {
|
|
815
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t &
|
|
816
|
-
var n = this.yieldPos,
|
|
817
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
699
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & me && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Y && (e.id = t & je && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & me) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ce : B : Me));
|
|
700
|
+
var n = this.yieldPos, u = this.awaitPos, o = this.awaitIdentPos;
|
|
701
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_e(e.async, e.generator)), t & Y || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = n, this.awaitPos = u, this.awaitIdentPos = o, this.finishNode(e, t & Y ? "FunctionDeclaration" : "FunctionExpression");
|
|
818
702
|
};
|
|
819
703
|
p.parseFunctionParams = function(e) {
|
|
820
704
|
this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -825,27 +709,27 @@ p.parseClass = function(e, t) {
|
|
|
825
709
|
this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
|
|
826
710
|
var s = this.enterClassBody(), r = this.startNode(), n = !1;
|
|
827
711
|
for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
|
|
828
|
-
var
|
|
829
|
-
|
|
712
|
+
var u = this.parseClassElement(e.superClass !== null);
|
|
713
|
+
u && (r.body.push(u), u.type === "MethodDefinition" && u.kind === "constructor" ? (n && this.raiseRecoverable(u.start, "Duplicate constructor in the same class"), n = !0) : u.key && u.key.type === "PrivateIdentifier" && At(s, u) && this.raiseRecoverable(u.key.start, "Identifier '#" + u.key.name + "' has already been declared"));
|
|
830
714
|
}
|
|
831
715
|
return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
832
716
|
};
|
|
833
717
|
p.parseClassElement = function(e) {
|
|
834
718
|
if (this.eat(a.semi))
|
|
835
719
|
return null;
|
|
836
|
-
var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, n = !1,
|
|
720
|
+
var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, n = !1, u = "method", o = !1;
|
|
837
721
|
if (this.eatContextual("static")) {
|
|
838
722
|
if (t >= 13 && this.eat(a.braceL))
|
|
839
723
|
return this.parseClassStaticBlock(i), i;
|
|
840
|
-
this.isClassElementNameStart() || this.type === a.star ?
|
|
724
|
+
this.isClassElementNameStart() || this.type === a.star ? o = !0 : s = "static";
|
|
841
725
|
}
|
|
842
|
-
if (i.static =
|
|
843
|
-
var
|
|
844
|
-
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ?
|
|
726
|
+
if (i.static = o, !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) {
|
|
727
|
+
var h = this.value;
|
|
728
|
+
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? u = h : s = h);
|
|
845
729
|
}
|
|
846
|
-
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 ||
|
|
847
|
-
var l = !i.static &&
|
|
848
|
-
l &&
|
|
730
|
+
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 || u !== "method" || r || n) {
|
|
731
|
+
var l = !i.static && ie(i, "constructor"), d = l && e;
|
|
732
|
+
l && u !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = l ? "constructor" : u, this.parseClassMethod(i, r, n, d);
|
|
849
733
|
} else
|
|
850
734
|
this.parseClassField(i);
|
|
851
735
|
return i;
|
|
@@ -858,24 +742,24 @@ p.parseClassElementName = function(e) {
|
|
|
858
742
|
};
|
|
859
743
|
p.parseClassMethod = function(e, t, i, s) {
|
|
860
744
|
var r = e.key;
|
|
861
|
-
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 &&
|
|
745
|
+
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 && ie(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
|
|
862
746
|
var n = e.value = this.parseMethod(t, i, s);
|
|
863
747
|
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");
|
|
864
748
|
};
|
|
865
749
|
p.parseClassField = function(e) {
|
|
866
|
-
return
|
|
750
|
+
return ie(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && ie(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(J | ne), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
867
751
|
};
|
|
868
752
|
p.parseClassStaticBlock = function(e) {
|
|
869
753
|
e.body = [];
|
|
870
754
|
var t = this.labels;
|
|
871
|
-
for (this.labels = [], this.enterScope(
|
|
755
|
+
for (this.labels = [], this.enterScope(U | ne); this.type !== a.braceR; ) {
|
|
872
756
|
var i = this.parseStatement(null);
|
|
873
757
|
e.body.push(i);
|
|
874
758
|
}
|
|
875
759
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
876
760
|
};
|
|
877
761
|
p.parseClassId = function(e, t) {
|
|
878
|
-
this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id,
|
|
762
|
+
this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, B, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
879
763
|
};
|
|
880
764
|
p.parseClassSuper = function(e) {
|
|
881
765
|
e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
@@ -888,15 +772,15 @@ p.exitClassBody = function() {
|
|
|
888
772
|
var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
|
|
889
773
|
if (this.options.checkPrivateFields)
|
|
890
774
|
for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
|
|
891
|
-
var
|
|
892
|
-
|
|
775
|
+
var u = i[n];
|
|
776
|
+
W(t, u.name) || (r ? r.used.push(u) : this.raiseRecoverable(u.start, "Private field '#" + u.name + "' must be declared in an enclosing class"));
|
|
893
777
|
}
|
|
894
778
|
};
|
|
895
|
-
function
|
|
779
|
+
function At(e, t) {
|
|
896
780
|
var i = t.key.name, s = e[i], r = "true";
|
|
897
781
|
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);
|
|
898
782
|
}
|
|
899
|
-
function
|
|
783
|
+
function ie(e, t) {
|
|
900
784
|
var i = e.computed, s = e.key;
|
|
901
785
|
return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
|
|
902
786
|
}
|
|
@@ -931,7 +815,7 @@ p.parseExportDefaultDeclaration = function() {
|
|
|
931
815
|
var e;
|
|
932
816
|
if (this.type === a._function || (e = this.isAsyncFunction())) {
|
|
933
817
|
var t = this.startNode();
|
|
934
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
818
|
+
return this.next(), e && this.next(), this.parseFunction(t, Y | je, !1, e);
|
|
935
819
|
} else if (this.type === a._class) {
|
|
936
820
|
var i = this.startNode();
|
|
937
821
|
return this.parseClass(i, "nullableID");
|
|
@@ -941,7 +825,7 @@ p.parseExportDefaultDeclaration = function() {
|
|
|
941
825
|
}
|
|
942
826
|
};
|
|
943
827
|
p.checkExport = function(e, t, i) {
|
|
944
|
-
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value),
|
|
828
|
+
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), W(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
|
|
945
829
|
};
|
|
946
830
|
p.checkPatternExport = function(e, t) {
|
|
947
831
|
var i = t.type;
|
|
@@ -953,9 +837,9 @@ p.checkPatternExport = function(e, t) {
|
|
|
953
837
|
this.checkPatternExport(e, n);
|
|
954
838
|
}
|
|
955
839
|
else if (i === "ArrayPattern")
|
|
956
|
-
for (var
|
|
957
|
-
var
|
|
958
|
-
|
|
840
|
+
for (var u = 0, o = t.elements; u < o.length; u += 1) {
|
|
841
|
+
var h = o[u];
|
|
842
|
+
h && this.checkPatternExport(e, h);
|
|
959
843
|
}
|
|
960
844
|
else
|
|
961
845
|
i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
|
|
@@ -990,19 +874,19 @@ p.parseExportSpecifiers = function(e) {
|
|
|
990
874
|
return t;
|
|
991
875
|
};
|
|
992
876
|
p.parseImport = function(e) {
|
|
993
|
-
return this.next(), this.type === a.string ? (e.specifiers =
|
|
877
|
+
return this.next(), this.type === a.string ? (e.specifiers = wt, 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");
|
|
994
878
|
};
|
|
995
879
|
p.parseImportSpecifier = function() {
|
|
996
880
|
var e = this.startNode();
|
|
997
|
-
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local,
|
|
881
|
+
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, B), this.finishNode(e, "ImportSpecifier");
|
|
998
882
|
};
|
|
999
883
|
p.parseImportDefaultSpecifier = function() {
|
|
1000
884
|
var e = this.startNode();
|
|
1001
|
-
return e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
885
|
+
return e.local = this.parseIdent(), this.checkLValSimple(e.local, B), this.finishNode(e, "ImportDefaultSpecifier");
|
|
1002
886
|
};
|
|
1003
887
|
p.parseImportNamespaceSpecifier = function() {
|
|
1004
888
|
var e = this.startNode();
|
|
1005
|
-
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
889
|
+
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, B), this.finishNode(e, "ImportNamespaceSpecifier");
|
|
1006
890
|
};
|
|
1007
891
|
p.parseImportSpecifiers = function() {
|
|
1008
892
|
var e = [], t = !0;
|
|
@@ -1030,7 +914,7 @@ p.parseWithClause = function() {
|
|
|
1030
914
|
else if (this.expect(a.comma), this.afterTrailingComma(a.braceR))
|
|
1031
915
|
break;
|
|
1032
916
|
var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
|
|
1033
|
-
|
|
917
|
+
W(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = !0, e.push(s);
|
|
1034
918
|
}
|
|
1035
919
|
return e;
|
|
1036
920
|
};
|
|
@@ -1041,7 +925,7 @@ p.parseImportAttribute = function() {
|
|
|
1041
925
|
p.parseModuleExportName = function() {
|
|
1042
926
|
if (this.options.ecmaVersion >= 13 && this.type === a.string) {
|
|
1043
927
|
var e = this.parseLiteral(this.value);
|
|
1044
|
-
return
|
|
928
|
+
return yt.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
1045
929
|
}
|
|
1046
930
|
return this.parseIdent(!0);
|
|
1047
931
|
};
|
|
@@ -1052,8 +936,8 @@ p.adaptDirectivePrologue = function(e) {
|
|
|
1052
936
|
p.isDirectiveCandidate = function(e) {
|
|
1053
937
|
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] === "'");
|
|
1054
938
|
};
|
|
1055
|
-
var
|
|
1056
|
-
|
|
939
|
+
var P = y.prototype;
|
|
940
|
+
P.toAssignable = function(e, t, i) {
|
|
1057
941
|
if (this.options.ecmaVersion >= 6 && e)
|
|
1058
942
|
switch (e.type) {
|
|
1059
943
|
case "Identifier":
|
|
@@ -1099,7 +983,7 @@ B.toAssignable = function(e, t, i) {
|
|
|
1099
983
|
i && this.checkPatternErrors(i, !0);
|
|
1100
984
|
return e;
|
|
1101
985
|
};
|
|
1102
|
-
|
|
986
|
+
P.toAssignableList = function(e, t) {
|
|
1103
987
|
for (var i = e.length, s = 0; s < i; s++) {
|
|
1104
988
|
var r = e[s];
|
|
1105
989
|
r && this.toAssignable(r, t);
|
|
@@ -1110,15 +994,15 @@ B.toAssignableList = function(e, t) {
|
|
|
1110
994
|
}
|
|
1111
995
|
return e;
|
|
1112
996
|
};
|
|
1113
|
-
|
|
997
|
+
P.parseSpread = function(e) {
|
|
1114
998
|
var t = this.startNode();
|
|
1115
999
|
return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
|
|
1116
1000
|
};
|
|
1117
|
-
|
|
1001
|
+
P.parseRestBinding = function() {
|
|
1118
1002
|
var e = this.startNode();
|
|
1119
1003
|
return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
|
|
1120
1004
|
};
|
|
1121
|
-
|
|
1005
|
+
P.parseBindingAtom = function() {
|
|
1122
1006
|
if (this.options.ecmaVersion >= 6)
|
|
1123
1007
|
switch (this.type) {
|
|
1124
1008
|
case a.bracketL:
|
|
@@ -1129,7 +1013,7 @@ B.parseBindingAtom = function() {
|
|
|
1129
1013
|
}
|
|
1130
1014
|
return this.parseIdent();
|
|
1131
1015
|
};
|
|
1132
|
-
|
|
1016
|
+
P.parseBindingList = function(e, t, i, s) {
|
|
1133
1017
|
for (var r = [], n = !0; !this.eat(e); )
|
|
1134
1018
|
if (n ? n = !1 : this.expect(a.comma), t && this.type === a.comma)
|
|
1135
1019
|
r.push(null);
|
|
@@ -1137,33 +1021,33 @@ B.parseBindingList = function(e, t, i, s) {
|
|
|
1137
1021
|
if (i && this.afterTrailingComma(e))
|
|
1138
1022
|
break;
|
|
1139
1023
|
if (this.type === a.ellipsis) {
|
|
1140
|
-
var
|
|
1141
|
-
this.parseBindingListItem(
|
|
1024
|
+
var u = this.parseRestBinding();
|
|
1025
|
+
this.parseBindingListItem(u), r.push(u), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
|
|
1142
1026
|
break;
|
|
1143
1027
|
} else
|
|
1144
1028
|
r.push(this.parseAssignableListItem(s));
|
|
1145
1029
|
}
|
|
1146
1030
|
return r;
|
|
1147
1031
|
};
|
|
1148
|
-
|
|
1032
|
+
P.parseAssignableListItem = function(e) {
|
|
1149
1033
|
var t = this.parseMaybeDefault(this.start, this.startLoc);
|
|
1150
1034
|
return this.parseBindingListItem(t), t;
|
|
1151
1035
|
};
|
|
1152
|
-
|
|
1036
|
+
P.parseBindingListItem = function(e) {
|
|
1153
1037
|
return e;
|
|
1154
1038
|
};
|
|
1155
|
-
|
|
1039
|
+
P.parseMaybeDefault = function(e, t, i) {
|
|
1156
1040
|
if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq))
|
|
1157
1041
|
return i;
|
|
1158
1042
|
var s = this.startNodeAt(e, t);
|
|
1159
1043
|
return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
|
|
1160
1044
|
};
|
|
1161
|
-
|
|
1162
|
-
t === void 0 && (t =
|
|
1163
|
-
var s = t !==
|
|
1045
|
+
P.checkLValSimple = function(e, t, i) {
|
|
1046
|
+
t === void 0 && (t = te);
|
|
1047
|
+
var s = t !== te;
|
|
1164
1048
|
switch (e.type) {
|
|
1165
1049
|
case "Identifier":
|
|
1166
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t ===
|
|
1050
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === B && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (W(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== qe && this.declareName(e.name, t, e.start));
|
|
1167
1051
|
break;
|
|
1168
1052
|
case "ChainExpression":
|
|
1169
1053
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1177,8 +1061,8 @@ B.checkLValSimple = function(e, t, i) {
|
|
|
1177
1061
|
this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
|
|
1178
1062
|
}
|
|
1179
1063
|
};
|
|
1180
|
-
|
|
1181
|
-
switch (t === void 0 && (t =
|
|
1064
|
+
P.checkLValPattern = function(e, t, i) {
|
|
1065
|
+
switch (t === void 0 && (t = te), e.type) {
|
|
1182
1066
|
case "ObjectPattern":
|
|
1183
1067
|
for (var s = 0, r = e.properties; s < r.length; s += 1) {
|
|
1184
1068
|
var n = r[s];
|
|
@@ -1186,17 +1070,17 @@ B.checkLValPattern = function(e, t, i) {
|
|
|
1186
1070
|
}
|
|
1187
1071
|
break;
|
|
1188
1072
|
case "ArrayPattern":
|
|
1189
|
-
for (var
|
|
1190
|
-
var
|
|
1191
|
-
|
|
1073
|
+
for (var u = 0, o = e.elements; u < o.length; u += 1) {
|
|
1074
|
+
var h = o[u];
|
|
1075
|
+
h && this.checkLValInnerPattern(h, t, i);
|
|
1192
1076
|
}
|
|
1193
1077
|
break;
|
|
1194
1078
|
default:
|
|
1195
1079
|
this.checkLValSimple(e, t, i);
|
|
1196
1080
|
}
|
|
1197
1081
|
};
|
|
1198
|
-
|
|
1199
|
-
switch (t === void 0 && (t =
|
|
1082
|
+
P.checkLValInnerPattern = function(e, t, i) {
|
|
1083
|
+
switch (t === void 0 && (t = te), e.type) {
|
|
1200
1084
|
case "Property":
|
|
1201
1085
|
this.checkLValInnerPattern(e.value, t, i);
|
|
1202
1086
|
break;
|
|
@@ -1210,33 +1094,33 @@ B.checkLValInnerPattern = function(e, t, i) {
|
|
|
1210
1094
|
this.checkLValPattern(e, t, i);
|
|
1211
1095
|
}
|
|
1212
1096
|
};
|
|
1213
|
-
var
|
|
1097
|
+
var N = function(t, i, s, r, n) {
|
|
1214
1098
|
this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
|
|
1215
|
-
},
|
|
1216
|
-
b_stat: new
|
|
1217
|
-
b_expr: new
|
|
1218
|
-
b_tmpl: new
|
|
1219
|
-
p_stat: new
|
|
1220
|
-
p_expr: new
|
|
1221
|
-
q_tmpl: new
|
|
1099
|
+
}, b = {
|
|
1100
|
+
b_stat: new N("{", !1),
|
|
1101
|
+
b_expr: new N("{", !0),
|
|
1102
|
+
b_tmpl: new N("${", !1),
|
|
1103
|
+
p_stat: new N("(", !1),
|
|
1104
|
+
p_expr: new N("(", !0),
|
|
1105
|
+
q_tmpl: new N("`", !0, !0, function(e) {
|
|
1222
1106
|
return e.tryReadTemplateToken();
|
|
1223
1107
|
}),
|
|
1224
|
-
f_stat: new
|
|
1225
|
-
f_expr: new
|
|
1226
|
-
f_expr_gen: new
|
|
1227
|
-
f_gen: new
|
|
1228
|
-
},
|
|
1229
|
-
|
|
1230
|
-
return [
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1108
|
+
f_stat: new N("function", !1),
|
|
1109
|
+
f_expr: new N("function", !0),
|
|
1110
|
+
f_expr_gen: new N("function", !0, !1, null, !0),
|
|
1111
|
+
f_gen: new N("function", !1, !1, null, !0)
|
|
1112
|
+
}, K = y.prototype;
|
|
1113
|
+
K.initialContext = function() {
|
|
1114
|
+
return [b.b_stat];
|
|
1115
|
+
};
|
|
1116
|
+
K.curContext = function() {
|
|
1233
1117
|
return this.context[this.context.length - 1];
|
|
1234
1118
|
};
|
|
1235
|
-
|
|
1119
|
+
K.braceIsBlock = function(e) {
|
|
1236
1120
|
var t = this.curContext();
|
|
1237
|
-
return t ===
|
|
1121
|
+
return t === b.f_expr || t === b.f_stat ? !0 : e === a.colon && (t === b.b_stat || t === b.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? w.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 === b.b_stat : e === a._var || e === a._const || e === a.name ? !1 : !this.exprAllowed;
|
|
1238
1122
|
};
|
|
1239
|
-
|
|
1123
|
+
K.inGeneratorContext = function() {
|
|
1240
1124
|
for (var e = this.context.length - 1; e >= 1; e--) {
|
|
1241
1125
|
var t = this.context[e];
|
|
1242
1126
|
if (t.token === "function")
|
|
@@ -1244,11 +1128,11 @@ ie.inGeneratorContext = function() {
|
|
|
1244
1128
|
}
|
|
1245
1129
|
return !1;
|
|
1246
1130
|
};
|
|
1247
|
-
|
|
1131
|
+
K.updateContext = function(e) {
|
|
1248
1132
|
var t, i = this.type;
|
|
1249
1133
|
i.keyword && e === a.dot ? this.exprAllowed = !1 : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
|
|
1250
1134
|
};
|
|
1251
|
-
|
|
1135
|
+
K.overrideContext = function(e) {
|
|
1252
1136
|
this.curContext() !== e && (this.context[this.context.length - 1] = e);
|
|
1253
1137
|
};
|
|
1254
1138
|
a.parenR.updateContext = a.braceR.updateContext = function() {
|
|
@@ -1257,33 +1141,33 @@ a.parenR.updateContext = a.braceR.updateContext = function() {
|
|
|
1257
1141
|
return;
|
|
1258
1142
|
}
|
|
1259
1143
|
var e = this.context.pop();
|
|
1260
|
-
e ===
|
|
1144
|
+
e === b.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
|
|
1261
1145
|
};
|
|
1262
1146
|
a.braceL.updateContext = function(e) {
|
|
1263
|
-
this.context.push(this.braceIsBlock(e) ?
|
|
1147
|
+
this.context.push(this.braceIsBlock(e) ? b.b_stat : b.b_expr), this.exprAllowed = !0;
|
|
1264
1148
|
};
|
|
1265
1149
|
a.dollarBraceL.updateContext = function() {
|
|
1266
|
-
this.context.push(
|
|
1150
|
+
this.context.push(b.b_tmpl), this.exprAllowed = !0;
|
|
1267
1151
|
};
|
|
1268
1152
|
a.parenL.updateContext = function(e) {
|
|
1269
1153
|
var t = e === a._if || e === a._for || e === a._with || e === a._while;
|
|
1270
|
-
this.context.push(t ?
|
|
1154
|
+
this.context.push(t ? b.p_stat : b.p_expr), this.exprAllowed = !0;
|
|
1271
1155
|
};
|
|
1272
1156
|
a.incDec.updateContext = function() {
|
|
1273
1157
|
};
|
|
1274
1158
|
a._function.updateContext = a._class.updateContext = function(e) {
|
|
1275
|
-
e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !==
|
|
1159
|
+
e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== b.p_stat) && !(e === a._return && w.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === b.b_stat) ? this.context.push(b.f_expr) : this.context.push(b.f_stat), this.exprAllowed = !1;
|
|
1276
1160
|
};
|
|
1277
1161
|
a.colon.updateContext = function() {
|
|
1278
1162
|
this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
|
|
1279
1163
|
};
|
|
1280
1164
|
a.backQuote.updateContext = function() {
|
|
1281
|
-
this.curContext() ===
|
|
1165
|
+
this.curContext() === b.q_tmpl ? this.context.pop() : this.context.push(b.q_tmpl), this.exprAllowed = !1;
|
|
1282
1166
|
};
|
|
1283
1167
|
a.star.updateContext = function(e) {
|
|
1284
1168
|
if (e === a._function) {
|
|
1285
1169
|
var t = this.context.length - 1;
|
|
1286
|
-
this.context[t] ===
|
|
1170
|
+
this.context[t] === b.f_expr ? this.context[t] = b.f_expr_gen : this.context[t] = b.f_gen;
|
|
1287
1171
|
}
|
|
1288
1172
|
this.exprAllowed = !0;
|
|
1289
1173
|
};
|
|
@@ -1291,8 +1175,8 @@ a.name.updateContext = function(e) {
|
|
|
1291
1175
|
var t = !1;
|
|
1292
1176
|
this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
|
|
1293
1177
|
};
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1178
|
+
var f = y.prototype;
|
|
1179
|
+
f.checkPropClash = function(e, t, i) {
|
|
1296
1180
|
if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
|
|
1297
1181
|
var s = e.key, r;
|
|
1298
1182
|
switch (s.type) {
|
|
@@ -1311,20 +1195,20 @@ d.checkPropClash = function(e, t, i) {
|
|
|
1311
1195
|
return;
|
|
1312
1196
|
}
|
|
1313
1197
|
r = "$" + r;
|
|
1314
|
-
var
|
|
1315
|
-
if (
|
|
1316
|
-
var
|
|
1317
|
-
n === "init" ?
|
|
1198
|
+
var u = t[r];
|
|
1199
|
+
if (u) {
|
|
1200
|
+
var o;
|
|
1201
|
+
n === "init" ? o = this.strict && u.init || u.get || u.set : o = u.init || u[n], o && this.raiseRecoverable(s.start, "Redefinition of property");
|
|
1318
1202
|
} else
|
|
1319
|
-
|
|
1203
|
+
u = t[r] = {
|
|
1320
1204
|
init: !1,
|
|
1321
1205
|
get: !1,
|
|
1322
1206
|
set: !1
|
|
1323
1207
|
};
|
|
1324
|
-
|
|
1208
|
+
u[n] = !0;
|
|
1325
1209
|
}
|
|
1326
1210
|
};
|
|
1327
|
-
|
|
1211
|
+
f.parseExpression = function(e, t) {
|
|
1328
1212
|
var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
|
|
1329
1213
|
if (this.type === a.comma) {
|
|
1330
1214
|
var n = this.startNodeAt(i, s);
|
|
@@ -1334,25 +1218,25 @@ d.parseExpression = function(e, t) {
|
|
|
1334
1218
|
}
|
|
1335
1219
|
return r;
|
|
1336
1220
|
};
|
|
1337
|
-
|
|
1221
|
+
f.parseMaybeAssign = function(e, t, i) {
|
|
1338
1222
|
if (this.isContextual("yield")) {
|
|
1339
1223
|
if (this.inGenerator)
|
|
1340
1224
|
return this.parseYield(e);
|
|
1341
1225
|
this.exprAllowed = !1;
|
|
1342
1226
|
}
|
|
1343
|
-
var s = !1, r = -1, n = -1,
|
|
1344
|
-
t ? (r = t.parenthesizedAssign, n = t.trailingComma,
|
|
1345
|
-
var
|
|
1227
|
+
var s = !1, r = -1, n = -1, u = -1;
|
|
1228
|
+
t ? (r = t.parenthesizedAssign, n = t.trailingComma, u = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new oe(), s = !0);
|
|
1229
|
+
var o = this.start, h = this.startLoc;
|
|
1346
1230
|
(this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
1347
1231
|
var l = this.parseMaybeConditional(e, t);
|
|
1348
|
-
if (i && (l = i.call(this, l,
|
|
1349
|
-
var
|
|
1350
|
-
return
|
|
1232
|
+
if (i && (l = i.call(this, l, o, h)), this.type.isAssign) {
|
|
1233
|
+
var d = this.startNodeAt(o, h);
|
|
1234
|
+
return d.operator = this.value, this.type === a.eq && (l = this.toAssignable(l, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), d.left = l, this.next(), d.right = this.parseMaybeAssign(e), u > -1 && (t.doubleProto = u), this.finishNode(d, "AssignmentExpression");
|
|
1351
1235
|
} else
|
|
1352
1236
|
s && this.checkExpressionErrors(t, !0);
|
|
1353
1237
|
return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), l;
|
|
1354
1238
|
};
|
|
1355
|
-
|
|
1239
|
+
f.parseMaybeConditional = function(e, t) {
|
|
1356
1240
|
var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
|
|
1357
1241
|
if (this.checkExpressionErrors(t))
|
|
1358
1242
|
return r;
|
|
@@ -1362,108 +1246,108 @@ d.parseMaybeConditional = function(e, t) {
|
|
|
1362
1246
|
}
|
|
1363
1247
|
return r;
|
|
1364
1248
|
};
|
|
1365
|
-
|
|
1249
|
+
f.parseExprOps = function(e, t) {
|
|
1366
1250
|
var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
|
|
1367
1251
|
return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
|
|
1368
1252
|
};
|
|
1369
|
-
|
|
1253
|
+
f.parseExprOp = function(e, t, i, s, r) {
|
|
1370
1254
|
var n = this.type.binop;
|
|
1371
1255
|
if (n != null && (!r || this.type !== a._in) && n > s) {
|
|
1372
|
-
var
|
|
1373
|
-
|
|
1374
|
-
var
|
|
1256
|
+
var u = this.type === a.logicalOR || this.type === a.logicalAND, o = this.type === a.coalesce;
|
|
1257
|
+
o && (n = a.logicalAND.binop);
|
|
1258
|
+
var h = this.value;
|
|
1375
1259
|
this.next();
|
|
1376
|
-
var l = this.start,
|
|
1377
|
-
return (
|
|
1260
|
+
var l = this.start, d = this.startLoc, g = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), l, d, n, r), _ = this.buildBinary(t, i, e, g, h, u || o);
|
|
1261
|
+
return (u && this.type === a.coalesce || o && (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(_, t, i, s, r);
|
|
1378
1262
|
}
|
|
1379
1263
|
return e;
|
|
1380
1264
|
};
|
|
1381
|
-
|
|
1265
|
+
f.buildBinary = function(e, t, i, s, r, n) {
|
|
1382
1266
|
s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
|
|
1383
|
-
var
|
|
1384
|
-
return
|
|
1267
|
+
var u = this.startNodeAt(e, t);
|
|
1268
|
+
return u.left = i, u.operator = r, u.right = s, this.finishNode(u, n ? "LogicalExpression" : "BinaryExpression");
|
|
1385
1269
|
};
|
|
1386
|
-
|
|
1387
|
-
var r = this.start, n = this.startLoc,
|
|
1270
|
+
f.parseMaybeUnary = function(e, t, i, s) {
|
|
1271
|
+
var r = this.start, n = this.startLoc, u;
|
|
1388
1272
|
if (this.isContextual("await") && this.canAwait)
|
|
1389
|
-
|
|
1273
|
+
u = this.parseAwait(s), t = !0;
|
|
1390
1274
|
else if (this.type.prefix) {
|
|
1391
|
-
var
|
|
1392
|
-
|
|
1275
|
+
var o = this.startNode(), h = this.type === a.incDec;
|
|
1276
|
+
o.operator = this.value, o.prefix = !0, this.next(), o.argument = this.parseMaybeUnary(null, !0, h, s), this.checkExpressionErrors(e, !0), h ? this.checkLValSimple(o.argument) : this.strict && o.operator === "delete" && Ge(o.argument) ? this.raiseRecoverable(o.start, "Deleting local variable in strict mode") : o.operator === "delete" && ve(o.argument) ? this.raiseRecoverable(o.start, "Private fields can not be deleted") : t = !0, u = this.finishNode(o, h ? "UpdateExpression" : "UnaryExpression");
|
|
1393
1277
|
} else if (!t && this.type === a.privateId)
|
|
1394
|
-
(s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(),
|
|
1278
|
+
(s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), u = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
|
|
1395
1279
|
else {
|
|
1396
|
-
if (
|
|
1397
|
-
return
|
|
1280
|
+
if (u = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e))
|
|
1281
|
+
return u;
|
|
1398
1282
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
1399
1283
|
var l = this.startNodeAt(r, n);
|
|
1400
|
-
l.operator = this.value, l.prefix = !1, l.argument =
|
|
1284
|
+
l.operator = this.value, l.prefix = !1, l.argument = u, this.checkLValSimple(u), this.next(), u = this.finishNode(l, "UpdateExpression");
|
|
1401
1285
|
}
|
|
1402
1286
|
}
|
|
1403
1287
|
if (!i && this.eat(a.starstar))
|
|
1404
1288
|
if (t)
|
|
1405
1289
|
this.unexpected(this.lastTokStart);
|
|
1406
1290
|
else
|
|
1407
|
-
return this.buildBinary(r, n,
|
|
1291
|
+
return this.buildBinary(r, n, u, this.parseMaybeUnary(null, !1, !1, s), "**", !1);
|
|
1408
1292
|
else
|
|
1409
|
-
return
|
|
1293
|
+
return u;
|
|
1410
1294
|
};
|
|
1411
|
-
function
|
|
1412
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
1295
|
+
function Ge(e) {
|
|
1296
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Ge(e.expression);
|
|
1413
1297
|
}
|
|
1414
|
-
function
|
|
1415
|
-
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" &&
|
|
1298
|
+
function ve(e) {
|
|
1299
|
+
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && ve(e.expression) || e.type === "ParenthesizedExpression" && ve(e.expression);
|
|
1416
1300
|
}
|
|
1417
|
-
|
|
1301
|
+
f.parseExprSubscripts = function(e, t) {
|
|
1418
1302
|
var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
|
|
1419
1303
|
if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
|
|
1420
1304
|
return r;
|
|
1421
1305
|
var n = this.parseSubscripts(r, i, s, !1, t);
|
|
1422
1306
|
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;
|
|
1423
1307
|
};
|
|
1424
|
-
|
|
1425
|
-
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,
|
|
1426
|
-
var
|
|
1427
|
-
if (
|
|
1428
|
-
if (
|
|
1429
|
-
var
|
|
1430
|
-
|
|
1308
|
+
f.parseSubscripts = function(e, t, i, s, r) {
|
|
1309
|
+
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, u = !1; ; ) {
|
|
1310
|
+
var o = this.parseSubscript(e, t, i, s, n, u, r);
|
|
1311
|
+
if (o.optional && (u = !0), o === e || o.type === "ArrowFunctionExpression") {
|
|
1312
|
+
if (u) {
|
|
1313
|
+
var h = this.startNodeAt(t, i);
|
|
1314
|
+
h.expression = o, o = this.finishNode(h, "ChainExpression");
|
|
1431
1315
|
}
|
|
1432
|
-
return
|
|
1316
|
+
return o;
|
|
1433
1317
|
}
|
|
1434
|
-
e =
|
|
1318
|
+
e = o;
|
|
1435
1319
|
}
|
|
1436
1320
|
};
|
|
1437
|
-
|
|
1321
|
+
f.shouldParseAsyncArrow = function() {
|
|
1438
1322
|
return !this.canInsertSemicolon() && this.eat(a.arrow);
|
|
1439
1323
|
};
|
|
1440
|
-
|
|
1324
|
+
f.parseSubscriptAsyncArrow = function(e, t, i, s) {
|
|
1441
1325
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, s);
|
|
1442
1326
|
};
|
|
1443
|
-
|
|
1444
|
-
var
|
|
1445
|
-
s &&
|
|
1327
|
+
f.parseSubscript = function(e, t, i, s, r, n, u) {
|
|
1328
|
+
var o = this.options.ecmaVersion >= 11, h = o && this.eat(a.questionDot);
|
|
1329
|
+
s && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
1446
1330
|
var l = this.eat(a.bracketL);
|
|
1447
|
-
if (l ||
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1331
|
+
if (l || h && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
|
|
1332
|
+
var d = this.startNodeAt(t, i);
|
|
1333
|
+
d.object = e, l ? (d.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? d.property = this.parsePrivateIdent() : d.property = this.parseIdent(this.options.allowReserved !== "never"), d.computed = !!l, o && (d.optional = h), e = this.finishNode(d, "MemberExpression");
|
|
1450
1334
|
} else if (!s && this.eat(a.parenL)) {
|
|
1451
|
-
var
|
|
1335
|
+
var g = new oe(), _ = this.yieldPos, Q = this.awaitPos, q = this.awaitIdentPos;
|
|
1452
1336
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1453
|
-
var
|
|
1454
|
-
if (r && !
|
|
1455
|
-
return this.checkPatternErrors(
|
|
1456
|
-
this.checkExpressionErrors(
|
|
1457
|
-
var
|
|
1458
|
-
|
|
1337
|
+
var ee = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, g);
|
|
1338
|
+
if (r && !h && this.shouldParseAsyncArrow())
|
|
1339
|
+
return this.checkPatternErrors(g, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = _, this.awaitPos = Q, this.awaitIdentPos = q, this.parseSubscriptAsyncArrow(t, i, ee, u);
|
|
1340
|
+
this.checkExpressionErrors(g, !0), this.yieldPos = _ || this.yieldPos, this.awaitPos = Q || this.awaitPos, this.awaitIdentPos = q || this.awaitIdentPos;
|
|
1341
|
+
var j = this.startNodeAt(t, i);
|
|
1342
|
+
j.callee = e, j.arguments = ee, o && (j.optional = h), e = this.finishNode(j, "CallExpression");
|
|
1459
1343
|
} else if (this.type === a.backQuote) {
|
|
1460
|
-
(
|
|
1461
|
-
var
|
|
1462
|
-
|
|
1344
|
+
(h || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
1345
|
+
var G = this.startNodeAt(t, i);
|
|
1346
|
+
G.tag = e, G.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(G, "TaggedTemplateExpression");
|
|
1463
1347
|
}
|
|
1464
1348
|
return e;
|
|
1465
1349
|
};
|
|
1466
|
-
|
|
1350
|
+
f.parseExprAtom = function(e, t, i) {
|
|
1467
1351
|
this.type === a.slash && this.readRegexp();
|
|
1468
1352
|
var s, r = this.potentialArrowAt === this.start;
|
|
1469
1353
|
switch (this.type) {
|
|
@@ -1472,16 +1356,16 @@ d.parseExprAtom = function(e, t, i) {
|
|
|
1472
1356
|
case a._this:
|
|
1473
1357
|
return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
|
|
1474
1358
|
case a.name:
|
|
1475
|
-
var n = this.start,
|
|
1476
|
-
if (this.options.ecmaVersion >= 8 && !
|
|
1477
|
-
return this.overrideContext(
|
|
1359
|
+
var n = this.start, u = this.startLoc, o = this.containsEsc, h = this.parseIdent(!1);
|
|
1360
|
+
if (this.options.ecmaVersion >= 8 && !o && h.name === "async" && !this.canInsertSemicolon() && this.eat(a._function))
|
|
1361
|
+
return this.overrideContext(b.f_expr), this.parseFunction(this.startNodeAt(n, u), 0, !1, !0, t);
|
|
1478
1362
|
if (r && !this.canInsertSemicolon()) {
|
|
1479
1363
|
if (this.eat(a.arrow))
|
|
1480
|
-
return this.parseArrowExpression(this.startNodeAt(n,
|
|
1481
|
-
if (this.options.ecmaVersion >= 8 &&
|
|
1482
|
-
return
|
|
1364
|
+
return this.parseArrowExpression(this.startNodeAt(n, u), [h], !1, t);
|
|
1365
|
+
if (this.options.ecmaVersion >= 8 && h.name === "async" && this.type === a.name && !o && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc))
|
|
1366
|
+
return h = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, u), [h], !0, t);
|
|
1483
1367
|
}
|
|
1484
|
-
return
|
|
1368
|
+
return h;
|
|
1485
1369
|
case a.regexp:
|
|
1486
1370
|
var l = this.value;
|
|
1487
1371
|
return s = this.parseLiteral(l.value), s.regex = { pattern: l.pattern, flags: l.flags }, s;
|
|
@@ -1493,12 +1377,12 @@ d.parseExprAtom = function(e, t, i) {
|
|
|
1493
1377
|
case a._false:
|
|
1494
1378
|
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");
|
|
1495
1379
|
case a.parenL:
|
|
1496
|
-
var
|
|
1497
|
-
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(
|
|
1380
|
+
var d = this.start, g = this.parseParenAndDistinguishExpression(r, t);
|
|
1381
|
+
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(g) && (e.parenthesizedAssign = d), e.parenthesizedBind < 0 && (e.parenthesizedBind = d)), g;
|
|
1498
1382
|
case a.bracketL:
|
|
1499
1383
|
return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
|
|
1500
1384
|
case a.braceL:
|
|
1501
|
-
return this.overrideContext(
|
|
1385
|
+
return this.overrideContext(b.b_expr), this.parseObj(!1, e);
|
|
1502
1386
|
case a._function:
|
|
1503
1387
|
return s = this.startNode(), this.next(), this.parseFunction(s, 0);
|
|
1504
1388
|
case a._class:
|
|
@@ -1513,10 +1397,10 @@ d.parseExprAtom = function(e, t, i) {
|
|
|
1513
1397
|
return this.parseExprAtomDefault();
|
|
1514
1398
|
}
|
|
1515
1399
|
};
|
|
1516
|
-
|
|
1400
|
+
f.parseExprAtomDefault = function() {
|
|
1517
1401
|
this.unexpected();
|
|
1518
1402
|
};
|
|
1519
|
-
|
|
1403
|
+
f.parseExprImport = function(e) {
|
|
1520
1404
|
var t = this.startNode();
|
|
1521
1405
|
if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e)
|
|
1522
1406
|
return this.parseDynamicImport(t);
|
|
@@ -1526,7 +1410,7 @@ d.parseExprImport = function(e) {
|
|
|
1526
1410
|
} else
|
|
1527
1411
|
this.unexpected();
|
|
1528
1412
|
};
|
|
1529
|
-
|
|
1413
|
+
f.parseDynamicImport = function(e) {
|
|
1530
1414
|
if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16)
|
|
1531
1415
|
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())));
|
|
1532
1416
|
else if (!this.eat(a.parenR)) {
|
|
@@ -1535,60 +1419,60 @@ d.parseDynamicImport = function(e) {
|
|
|
1535
1419
|
}
|
|
1536
1420
|
return this.finishNode(e, "ImportExpression");
|
|
1537
1421
|
};
|
|
1538
|
-
|
|
1422
|
+
f.parseImportMeta = function(e) {
|
|
1539
1423
|
this.next();
|
|
1540
1424
|
var t = this.containsEsc;
|
|
1541
1425
|
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");
|
|
1542
1426
|
};
|
|
1543
|
-
|
|
1427
|
+
f.parseLiteral = function(e) {
|
|
1544
1428
|
var t = this.startNode();
|
|
1545
1429
|
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");
|
|
1546
1430
|
};
|
|
1547
|
-
|
|
1431
|
+
f.parseParenExpression = function() {
|
|
1548
1432
|
this.expect(a.parenL);
|
|
1549
1433
|
var e = this.parseExpression();
|
|
1550
1434
|
return this.expect(a.parenR), e;
|
|
1551
1435
|
};
|
|
1552
|
-
|
|
1436
|
+
f.shouldParseArrow = function(e) {
|
|
1553
1437
|
return !this.canInsertSemicolon();
|
|
1554
1438
|
};
|
|
1555
|
-
|
|
1439
|
+
f.parseParenAndDistinguishExpression = function(e, t) {
|
|
1556
1440
|
var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
|
|
1557
1441
|
if (this.options.ecmaVersion >= 6) {
|
|
1558
1442
|
this.next();
|
|
1559
|
-
var
|
|
1443
|
+
var u = this.start, o = this.startLoc, h = [], l = !0, d = !1, g = new oe(), _ = this.yieldPos, Q = this.awaitPos, q;
|
|
1560
1444
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
|
|
1561
1445
|
if (l ? l = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
|
|
1562
|
-
|
|
1446
|
+
d = !0;
|
|
1563
1447
|
break;
|
|
1564
1448
|
} else if (this.type === a.ellipsis) {
|
|
1565
|
-
|
|
1449
|
+
q = this.start, h.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
|
|
1566
1450
|
this.start,
|
|
1567
1451
|
"Comma is not permitted after the rest element"
|
|
1568
1452
|
);
|
|
1569
1453
|
break;
|
|
1570
1454
|
} else
|
|
1571
|
-
|
|
1572
|
-
var
|
|
1573
|
-
if (this.expect(a.parenR), e && this.shouldParseArrow(
|
|
1574
|
-
return this.checkPatternErrors(
|
|
1575
|
-
(!
|
|
1455
|
+
h.push(this.parseMaybeAssign(!1, g, this.parseParenItem));
|
|
1456
|
+
var ee = this.lastTokEnd, j = this.lastTokEndLoc;
|
|
1457
|
+
if (this.expect(a.parenR), e && this.shouldParseArrow(h) && this.eat(a.arrow))
|
|
1458
|
+
return this.checkPatternErrors(g, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = _, this.awaitPos = Q, this.parseParenArrowList(i, s, h, t);
|
|
1459
|
+
(!h.length || d) && this.unexpected(this.lastTokStart), q && this.unexpected(q), this.checkExpressionErrors(g, !0), this.yieldPos = _ || this.yieldPos, this.awaitPos = Q || this.awaitPos, h.length > 1 ? (r = this.startNodeAt(u, o), r.expressions = h, this.finishNodeAt(r, "SequenceExpression", ee, j)) : r = h[0];
|
|
1576
1460
|
} else
|
|
1577
1461
|
r = this.parseParenExpression();
|
|
1578
1462
|
if (this.options.preserveParens) {
|
|
1579
|
-
var
|
|
1580
|
-
return
|
|
1463
|
+
var G = this.startNodeAt(i, s);
|
|
1464
|
+
return G.expression = r, this.finishNode(G, "ParenthesizedExpression");
|
|
1581
1465
|
} else
|
|
1582
1466
|
return r;
|
|
1583
1467
|
};
|
|
1584
|
-
|
|
1468
|
+
f.parseParenItem = function(e) {
|
|
1585
1469
|
return e;
|
|
1586
1470
|
};
|
|
1587
|
-
|
|
1471
|
+
f.parseParenArrowList = function(e, t, i, s) {
|
|
1588
1472
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
|
|
1589
1473
|
};
|
|
1590
|
-
var
|
|
1591
|
-
|
|
1474
|
+
var Et = [];
|
|
1475
|
+
f.parseNew = function() {
|
|
1592
1476
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1593
1477
|
var e = this.startNode();
|
|
1594
1478
|
if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
|
|
@@ -1598,9 +1482,9 @@ d.parseNew = function() {
|
|
|
1598
1482
|
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");
|
|
1599
1483
|
}
|
|
1600
1484
|
var s = this.start, r = this.startLoc;
|
|
1601
|
-
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 =
|
|
1485
|
+
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 = Et, this.finishNode(e, "NewExpression");
|
|
1602
1486
|
};
|
|
1603
|
-
|
|
1487
|
+
f.parseTemplateElement = function(e) {
|
|
1604
1488
|
var t = e.isTagged, i = this.startNode();
|
|
1605
1489
|
return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
|
|
1606
1490
|
raw: this.value.replace(/\r\n?/g, `
|
|
@@ -1612,7 +1496,7 @@ d.parseTemplateElement = function(e) {
|
|
|
1612
1496
|
cooked: this.value
|
|
1613
1497
|
}, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
|
|
1614
1498
|
};
|
|
1615
|
-
|
|
1499
|
+
f.parseTemplate = function(e) {
|
|
1616
1500
|
e === void 0 && (e = {});
|
|
1617
1501
|
var t = e.isTagged;
|
|
1618
1502
|
t === void 0 && (t = !1);
|
|
@@ -1623,10 +1507,10 @@ d.parseTemplate = function(e) {
|
|
|
1623
1507
|
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 }));
|
|
1624
1508
|
return this.next(), this.finishNode(i, "TemplateLiteral");
|
|
1625
1509
|
};
|
|
1626
|
-
|
|
1627
|
-
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) && !
|
|
1510
|
+
f.isAsyncProp = function(e) {
|
|
1511
|
+
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) && !w.test(this.input.slice(this.lastTokEnd, this.start));
|
|
1628
1512
|
};
|
|
1629
|
-
|
|
1513
|
+
f.parseObj = function(e, t) {
|
|
1630
1514
|
var i = this.startNode(), s = !0, r = {};
|
|
1631
1515
|
for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
|
|
1632
1516
|
if (s)
|
|
@@ -1638,15 +1522,15 @@ d.parseObj = function(e, t) {
|
|
|
1638
1522
|
}
|
|
1639
1523
|
return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
|
|
1640
1524
|
};
|
|
1641
|
-
|
|
1642
|
-
var i = this.startNode(), s, r, n,
|
|
1525
|
+
f.parseProperty = function(e, t) {
|
|
1526
|
+
var i = this.startNode(), s, r, n, u;
|
|
1643
1527
|
if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis))
|
|
1644
1528
|
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"));
|
|
1645
|
-
this.options.ecmaVersion >= 6 && (i.method = !1, i.shorthand = !1, (e || t) && (n = this.start,
|
|
1646
|
-
var
|
|
1647
|
-
return this.parsePropertyName(i), !e && !
|
|
1529
|
+
this.options.ecmaVersion >= 6 && (i.method = !1, i.shorthand = !1, (e || t) && (n = this.start, u = this.startLoc), e || (s = this.eat(a.star)));
|
|
1530
|
+
var o = this.containsEsc;
|
|
1531
|
+
return this.parsePropertyName(i), !e && !o && 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, u, t, o), this.finishNode(i, "Property");
|
|
1648
1532
|
};
|
|
1649
|
-
|
|
1533
|
+
f.parseGetterSetter = function(e) {
|
|
1650
1534
|
var t = e.key.name;
|
|
1651
1535
|
this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
|
|
1652
1536
|
var i = e.kind === "get" ? 0 : 1;
|
|
@@ -1656,10 +1540,10 @@ d.parseGetterSetter = function(e) {
|
|
|
1656
1540
|
} else
|
|
1657
1541
|
e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
|
|
1658
1542
|
};
|
|
1659
|
-
|
|
1660
|
-
(i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1,
|
|
1543
|
+
f.parsePropertyValue = function(e, t, i, s, r, n, u, o) {
|
|
1544
|
+
(i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, u), 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 && !o && 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 && u ? (u.shorthandAssign < 0 && (u.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();
|
|
1661
1545
|
};
|
|
1662
|
-
|
|
1546
|
+
f.parsePropertyName = function(e) {
|
|
1663
1547
|
if (this.options.ecmaVersion >= 6) {
|
|
1664
1548
|
if (this.eat(a.bracketL))
|
|
1665
1549
|
return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
|
|
@@ -1667,30 +1551,30 @@ d.parsePropertyName = function(e) {
|
|
|
1667
1551
|
}
|
|
1668
1552
|
return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
1669
1553
|
};
|
|
1670
|
-
|
|
1554
|
+
f.initFunction = function(e) {
|
|
1671
1555
|
e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
|
|
1672
1556
|
};
|
|
1673
|
-
|
|
1674
|
-
var s = this.startNode(), r = this.yieldPos, n = this.awaitPos,
|
|
1675
|
-
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(
|
|
1557
|
+
f.parseMethod = function(e, t, i) {
|
|
1558
|
+
var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, u = this.awaitIdentPos;
|
|
1559
|
+
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(_e(t, s.generator) | ne | (i ? Fe : 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 = u, this.finishNode(s, "FunctionExpression");
|
|
1676
1560
|
};
|
|
1677
|
-
|
|
1678
|
-
var r = this.yieldPos, n = this.awaitPos,
|
|
1679
|
-
return this.enterScope(
|
|
1561
|
+
f.parseArrowExpression = function(e, t, i, s) {
|
|
1562
|
+
var r = this.yieldPos, n = this.awaitPos, u = this.awaitIdentPos;
|
|
1563
|
+
return this.enterScope(_e(i, !1) | ye), 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 = u, this.finishNode(e, "ArrowFunctionExpression");
|
|
1680
1564
|
};
|
|
1681
|
-
|
|
1682
|
-
var r = t && this.type !== a.braceL, n = this.strict,
|
|
1565
|
+
f.parseFunctionBody = function(e, t, i, s) {
|
|
1566
|
+
var r = t && this.type !== a.braceL, n = this.strict, u = !1;
|
|
1683
1567
|
if (r)
|
|
1684
1568
|
e.body = this.parseMaybeAssign(s), e.expression = !0, this.checkParams(e, !1);
|
|
1685
1569
|
else {
|
|
1686
|
-
var
|
|
1687
|
-
(!n ||
|
|
1688
|
-
var
|
|
1689
|
-
this.labels = [],
|
|
1570
|
+
var o = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
1571
|
+
(!n || o) && (u = this.strictDirective(this.end), u && o && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
1572
|
+
var h = this.labels;
|
|
1573
|
+
this.labels = [], u && (this.strict = !0), this.checkParams(e, !n && !u && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, qe), e.body = this.parseBlock(!1, void 0, u && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = h;
|
|
1690
1574
|
}
|
|
1691
1575
|
this.exitScope();
|
|
1692
1576
|
};
|
|
1693
|
-
|
|
1577
|
+
f.isSimpleParamList = function(e) {
|
|
1694
1578
|
for (var t = 0, i = e; t < i.length; t += 1) {
|
|
1695
1579
|
var s = i[t];
|
|
1696
1580
|
if (s.type !== "Identifier")
|
|
@@ -1698,204 +1582,204 @@ d.isSimpleParamList = function(e) {
|
|
|
1698
1582
|
}
|
|
1699
1583
|
return !0;
|
|
1700
1584
|
};
|
|
1701
|
-
|
|
1585
|
+
f.checkParams = function(e, t) {
|
|
1702
1586
|
for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
|
|
1703
1587
|
var n = r[s];
|
|
1704
|
-
this.checkLValInnerPattern(n,
|
|
1588
|
+
this.checkLValInnerPattern(n, Ce, t ? null : i);
|
|
1705
1589
|
}
|
|
1706
1590
|
};
|
|
1707
|
-
|
|
1591
|
+
f.parseExprList = function(e, t, i, s) {
|
|
1708
1592
|
for (var r = [], n = !0; !this.eat(e); ) {
|
|
1709
1593
|
if (n)
|
|
1710
1594
|
n = !1;
|
|
1711
1595
|
else if (this.expect(a.comma), t && this.afterTrailingComma(e))
|
|
1712
1596
|
break;
|
|
1713
|
-
var
|
|
1714
|
-
i && this.type === a.comma ?
|
|
1597
|
+
var u = void 0;
|
|
1598
|
+
i && this.type === a.comma ? u = null : this.type === a.ellipsis ? (u = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : u = this.parseMaybeAssign(!1, s), r.push(u);
|
|
1715
1599
|
}
|
|
1716
1600
|
return r;
|
|
1717
1601
|
};
|
|
1718
|
-
|
|
1602
|
+
f.checkUnreserved = function(e) {
|
|
1719
1603
|
var t = e.start, i = e.end, s = e.name;
|
|
1720
|
-
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 &
|
|
1604
|
+
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 & ue) && 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)) {
|
|
1721
1605
|
var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
1722
1606
|
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"));
|
|
1723
1607
|
}
|
|
1724
1608
|
};
|
|
1725
|
-
|
|
1609
|
+
f.parseIdent = function(e) {
|
|
1726
1610
|
var t = this.parseIdentNode();
|
|
1727
1611
|
return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
|
|
1728
1612
|
};
|
|
1729
|
-
|
|
1613
|
+
f.parseIdentNode = function() {
|
|
1730
1614
|
var e = this.startNode();
|
|
1731
1615
|
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;
|
|
1732
1616
|
};
|
|
1733
|
-
|
|
1617
|
+
f.parsePrivateIdent = function() {
|
|
1734
1618
|
var e = this.startNode();
|
|
1735
1619
|
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;
|
|
1736
1620
|
};
|
|
1737
|
-
|
|
1621
|
+
f.parseYield = function(e) {
|
|
1738
1622
|
this.yieldPos || (this.yieldPos = this.start);
|
|
1739
1623
|
var t = this.startNode();
|
|
1740
1624
|
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");
|
|
1741
1625
|
};
|
|
1742
|
-
|
|
1626
|
+
f.parseAwait = function(e) {
|
|
1743
1627
|
this.awaitPos || (this.awaitPos = this.start);
|
|
1744
1628
|
var t = this.startNode();
|
|
1745
1629
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
1746
1630
|
};
|
|
1747
|
-
var
|
|
1748
|
-
|
|
1749
|
-
var i =
|
|
1631
|
+
var se = y.prototype;
|
|
1632
|
+
se.raise = function(e, t) {
|
|
1633
|
+
var i = Oe(this.input, e);
|
|
1750
1634
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
1751
1635
|
var s = new SyntaxError(t);
|
|
1752
1636
|
throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
|
|
1753
1637
|
};
|
|
1754
|
-
|
|
1755
|
-
|
|
1638
|
+
se.raiseRecoverable = se.raise;
|
|
1639
|
+
se.curPosition = function() {
|
|
1756
1640
|
if (this.options.locations)
|
|
1757
|
-
return new
|
|
1641
|
+
return new X(this.curLine, this.pos - this.lineStart);
|
|
1758
1642
|
};
|
|
1759
|
-
var
|
|
1643
|
+
var M = y.prototype, It = function(t) {
|
|
1760
1644
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
1761
1645
|
};
|
|
1762
|
-
|
|
1763
|
-
this.scopeStack.push(new
|
|
1646
|
+
M.enterScope = function(e) {
|
|
1647
|
+
this.scopeStack.push(new It(e));
|
|
1764
1648
|
};
|
|
1765
|
-
|
|
1649
|
+
M.exitScope = function() {
|
|
1766
1650
|
this.scopeStack.pop();
|
|
1767
1651
|
};
|
|
1768
|
-
|
|
1769
|
-
return e.flags &
|
|
1652
|
+
M.treatFunctionsAsVarInScope = function(e) {
|
|
1653
|
+
return e.flags & z || !this.inModule && e.flags & Z;
|
|
1770
1654
|
};
|
|
1771
|
-
|
|
1655
|
+
M.declareName = function(e, t, i) {
|
|
1772
1656
|
var s = !1;
|
|
1773
|
-
if (t ===
|
|
1657
|
+
if (t === B) {
|
|
1774
1658
|
var r = this.currentScope();
|
|
1775
|
-
s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags &
|
|
1776
|
-
} else if (t ===
|
|
1659
|
+
s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & Z && delete this.undefinedExports[e];
|
|
1660
|
+
} else if (t === Ue) {
|
|
1777
1661
|
var n = this.currentScope();
|
|
1778
1662
|
n.lexical.push(e);
|
|
1779
|
-
} else if (t ===
|
|
1780
|
-
var
|
|
1781
|
-
this.treatFunctionsAsVar ? s =
|
|
1663
|
+
} else if (t === Me) {
|
|
1664
|
+
var u = this.currentScope();
|
|
1665
|
+
this.treatFunctionsAsVar ? s = u.lexical.indexOf(e) > -1 : s = u.lexical.indexOf(e) > -1 || u.var.indexOf(e) > -1, u.functions.push(e);
|
|
1782
1666
|
} else
|
|
1783
|
-
for (var
|
|
1784
|
-
var
|
|
1785
|
-
if (
|
|
1667
|
+
for (var o = this.scopeStack.length - 1; o >= 0; --o) {
|
|
1668
|
+
var h = this.scopeStack[o];
|
|
1669
|
+
if (h.lexical.indexOf(e) > -1 && !(h.flags & De && h.lexical[0] === e) || !this.treatFunctionsAsVarInScope(h) && h.functions.indexOf(e) > -1) {
|
|
1786
1670
|
s = !0;
|
|
1787
1671
|
break;
|
|
1788
1672
|
}
|
|
1789
|
-
if (
|
|
1673
|
+
if (h.var.push(e), this.inModule && h.flags & Z && delete this.undefinedExports[e], h.flags & ue)
|
|
1790
1674
|
break;
|
|
1791
1675
|
}
|
|
1792
1676
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
1793
1677
|
};
|
|
1794
|
-
|
|
1678
|
+
M.checkLocalExport = function(e) {
|
|
1795
1679
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
1796
1680
|
};
|
|
1797
|
-
|
|
1681
|
+
M.currentScope = function() {
|
|
1798
1682
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
1799
1683
|
};
|
|
1800
|
-
|
|
1684
|
+
M.currentVarScope = function() {
|
|
1801
1685
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1802
1686
|
var t = this.scopeStack[e];
|
|
1803
|
-
if (t.flags & (
|
|
1687
|
+
if (t.flags & (ue | J | U))
|
|
1804
1688
|
return t;
|
|
1805
1689
|
}
|
|
1806
1690
|
};
|
|
1807
|
-
|
|
1691
|
+
M.currentThisScope = function() {
|
|
1808
1692
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1809
1693
|
var t = this.scopeStack[e];
|
|
1810
|
-
if (t.flags & (
|
|
1694
|
+
if (t.flags & (ue | J | U) && !(t.flags & ye))
|
|
1811
1695
|
return t;
|
|
1812
1696
|
}
|
|
1813
1697
|
};
|
|
1814
|
-
var
|
|
1815
|
-
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
return new
|
|
1698
|
+
var he = function(t, i, s) {
|
|
1699
|
+
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new re(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
|
|
1700
|
+
}, $ = y.prototype;
|
|
1701
|
+
$.startNode = function() {
|
|
1702
|
+
return new he(this, this.start, this.startLoc);
|
|
1819
1703
|
};
|
|
1820
|
-
|
|
1821
|
-
return new
|
|
1704
|
+
$.startNodeAt = function(e, t) {
|
|
1705
|
+
return new he(this, e, t);
|
|
1822
1706
|
};
|
|
1823
|
-
function
|
|
1707
|
+
function He(e, t, i, s) {
|
|
1824
1708
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
|
|
1825
1709
|
}
|
|
1826
|
-
|
|
1827
|
-
return
|
|
1710
|
+
$.finishNode = function(e, t) {
|
|
1711
|
+
return He.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
1828
1712
|
};
|
|
1829
|
-
|
|
1830
|
-
return
|
|
1713
|
+
$.finishNodeAt = function(e, t, i, s) {
|
|
1714
|
+
return He.call(this, e, t, i, s);
|
|
1831
1715
|
};
|
|
1832
|
-
|
|
1833
|
-
var t = new
|
|
1716
|
+
$.copyNode = function(e) {
|
|
1717
|
+
var t = new he(this, e.start, this.startLoc);
|
|
1834
1718
|
for (var i in e)
|
|
1835
1719
|
t[i] = e[i];
|
|
1836
1720
|
return t;
|
|
1837
1721
|
};
|
|
1838
|
-
var
|
|
1839
|
-
9:
|
|
1840
|
-
10:
|
|
1841
|
-
11:
|
|
1842
|
-
12:
|
|
1843
|
-
13:
|
|
1844
|
-
14:
|
|
1845
|
-
},
|
|
1722
|
+
var Pt = "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", We = "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", ze = We + " Extended_Pictographic", Ke = ze, Qe = Ke + " EBase EComp EMod EPres ExtPict", Ye = Qe, Nt = Ye, Vt = {
|
|
1723
|
+
9: We,
|
|
1724
|
+
10: ze,
|
|
1725
|
+
11: Ke,
|
|
1726
|
+
12: Qe,
|
|
1727
|
+
13: Ye,
|
|
1728
|
+
14: Nt
|
|
1729
|
+
}, Tt = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Lt = {
|
|
1846
1730
|
9: "",
|
|
1847
1731
|
10: "",
|
|
1848
1732
|
11: "",
|
|
1849
1733
|
12: "",
|
|
1850
1734
|
13: "",
|
|
1851
|
-
14:
|
|
1852
|
-
},
|
|
1853
|
-
9:
|
|
1854
|
-
10:
|
|
1855
|
-
11:
|
|
1856
|
-
12:
|
|
1857
|
-
13:
|
|
1858
|
-
14:
|
|
1859
|
-
},
|
|
1860
|
-
function
|
|
1861
|
-
var t =
|
|
1862
|
-
binary:
|
|
1863
|
-
binaryOfStrings:
|
|
1735
|
+
14: Tt
|
|
1736
|
+
}, Ie = "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", Xe = "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", Ze = Xe + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Je = Ze + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", $e = Je + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", et = $e + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Rt = et + " " + Pt, Ot = {
|
|
1737
|
+
9: Xe,
|
|
1738
|
+
10: Ze,
|
|
1739
|
+
11: Je,
|
|
1740
|
+
12: $e,
|
|
1741
|
+
13: et,
|
|
1742
|
+
14: Rt
|
|
1743
|
+
}, tt = {};
|
|
1744
|
+
function Bt(e) {
|
|
1745
|
+
var t = tt[e] = {
|
|
1746
|
+
binary: D(Vt[e] + " " + Ie),
|
|
1747
|
+
binaryOfStrings: D(Lt[e]),
|
|
1864
1748
|
nonBinary: {
|
|
1865
|
-
General_Category:
|
|
1866
|
-
Script:
|
|
1749
|
+
General_Category: D(Ie),
|
|
1750
|
+
Script: D(Ot[e])
|
|
1867
1751
|
}
|
|
1868
1752
|
};
|
|
1869
1753
|
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;
|
|
1870
1754
|
}
|
|
1871
|
-
for (var
|
|
1872
|
-
var
|
|
1873
|
-
|
|
1755
|
+
for (var fe = 0, Pe = [9, 10, 11, 12, 13, 14]; fe < Pe.length; fe += 1) {
|
|
1756
|
+
var Dt = Pe[fe];
|
|
1757
|
+
Bt(Dt);
|
|
1874
1758
|
}
|
|
1875
|
-
var c =
|
|
1759
|
+
var c = y.prototype, ae = function(t, i) {
|
|
1876
1760
|
this.parent = t, this.base = i || this;
|
|
1877
1761
|
};
|
|
1878
|
-
|
|
1762
|
+
ae.prototype.separatedFrom = function(t) {
|
|
1879
1763
|
for (var i = this; i; i = i.parent)
|
|
1880
1764
|
for (var s = t; s; s = s.parent)
|
|
1881
1765
|
if (i.base === s.base && i !== s)
|
|
1882
1766
|
return !0;
|
|
1883
1767
|
return !1;
|
|
1884
1768
|
};
|
|
1885
|
-
|
|
1886
|
-
return new
|
|
1769
|
+
ae.prototype.sibling = function() {
|
|
1770
|
+
return new ae(this.parent, this.base);
|
|
1887
1771
|
};
|
|
1888
|
-
var
|
|
1889
|
-
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 =
|
|
1772
|
+
var L = function(t) {
|
|
1773
|
+
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 = tt[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;
|
|
1890
1774
|
};
|
|
1891
|
-
|
|
1775
|
+
L.prototype.reset = function(t, i, s) {
|
|
1892
1776
|
var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
|
|
1893
1777
|
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);
|
|
1894
1778
|
};
|
|
1895
|
-
|
|
1779
|
+
L.prototype.raise = function(t) {
|
|
1896
1780
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
|
|
1897
1781
|
};
|
|
1898
|
-
|
|
1782
|
+
L.prototype.at = function(t, i) {
|
|
1899
1783
|
i === void 0 && (i = !1);
|
|
1900
1784
|
var s = this.source, r = s.length;
|
|
1901
1785
|
if (t >= r)
|
|
@@ -1903,34 +1787,34 @@ q.prototype.at = function(t, i) {
|
|
|
1903
1787
|
var n = s.charCodeAt(t);
|
|
1904
1788
|
if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r)
|
|
1905
1789
|
return n;
|
|
1906
|
-
var
|
|
1907
|
-
return
|
|
1790
|
+
var u = s.charCodeAt(t + 1);
|
|
1791
|
+
return u >= 56320 && u <= 57343 ? (n << 10) + u - 56613888 : n;
|
|
1908
1792
|
};
|
|
1909
|
-
|
|
1793
|
+
L.prototype.nextIndex = function(t, i) {
|
|
1910
1794
|
i === void 0 && (i = !1);
|
|
1911
1795
|
var s = this.source, r = s.length;
|
|
1912
1796
|
if (t >= r)
|
|
1913
1797
|
return r;
|
|
1914
|
-
var n = s.charCodeAt(t),
|
|
1915
|
-
return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (
|
|
1798
|
+
var n = s.charCodeAt(t), u;
|
|
1799
|
+
return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (u = s.charCodeAt(t + 1)) < 56320 || u > 57343 ? t + 1 : t + 2;
|
|
1916
1800
|
};
|
|
1917
|
-
|
|
1801
|
+
L.prototype.current = function(t) {
|
|
1918
1802
|
return t === void 0 && (t = !1), this.at(this.pos, t);
|
|
1919
1803
|
};
|
|
1920
|
-
|
|
1804
|
+
L.prototype.lookahead = function(t) {
|
|
1921
1805
|
return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
|
|
1922
1806
|
};
|
|
1923
|
-
|
|
1807
|
+
L.prototype.advance = function(t) {
|
|
1924
1808
|
t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
|
|
1925
1809
|
};
|
|
1926
|
-
|
|
1810
|
+
L.prototype.eat = function(t, i) {
|
|
1927
1811
|
return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
|
|
1928
1812
|
};
|
|
1929
|
-
|
|
1813
|
+
L.prototype.eatChars = function(t, i) {
|
|
1930
1814
|
i === void 0 && (i = !1);
|
|
1931
1815
|
for (var s = this.pos, r = 0, n = t; r < n.length; r += 1) {
|
|
1932
|
-
var
|
|
1933
|
-
if (
|
|
1816
|
+
var u = n[r], o = this.at(s, i);
|
|
1817
|
+
if (o === -1 || o !== u)
|
|
1934
1818
|
return !1;
|
|
1935
1819
|
s = this.nextIndex(s, i);
|
|
1936
1820
|
}
|
|
@@ -1938,18 +1822,18 @@ q.prototype.eatChars = function(t, i) {
|
|
|
1938
1822
|
};
|
|
1939
1823
|
c.validateRegExpFlags = function(e) {
|
|
1940
1824
|
for (var t = e.validFlags, i = e.flags, s = !1, r = !1, n = 0; n < i.length; n++) {
|
|
1941
|
-
var
|
|
1942
|
-
t.indexOf(
|
|
1825
|
+
var u = i.charAt(n);
|
|
1826
|
+
t.indexOf(u) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(u, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), u === "u" && (s = !0), u === "v" && (r = !0);
|
|
1943
1827
|
}
|
|
1944
1828
|
this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
|
|
1945
1829
|
};
|
|
1946
|
-
function
|
|
1830
|
+
function Ft(e) {
|
|
1947
1831
|
for (var t in e)
|
|
1948
1832
|
return !0;
|
|
1949
1833
|
return !1;
|
|
1950
1834
|
}
|
|
1951
1835
|
c.validateRegExpPattern = function(e) {
|
|
1952
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
1836
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Ft(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
1953
1837
|
};
|
|
1954
1838
|
c.regexp_pattern = function(e) {
|
|
1955
1839
|
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(
|
|
@@ -1969,7 +1853,7 @@ c.regexp_pattern = function(e) {
|
|
|
1969
1853
|
};
|
|
1970
1854
|
c.regexp_disjunction = function(e) {
|
|
1971
1855
|
var t = this.options.ecmaVersion >= 16;
|
|
1972
|
-
for (t && (e.branchID = new
|
|
1856
|
+
for (t && (e.branchID = new ae(e.branchID, null)), this.regexp_alternative(e); e.eat(
|
|
1973
1857
|
124
|
|
1974
1858
|
/* | */
|
|
1975
1859
|
); )
|
|
@@ -2111,11 +1995,11 @@ c.regexp_eatUncapturingGroup = function(e) {
|
|
|
2111
1995
|
i.indexOf(n, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
|
|
2112
1996
|
}
|
|
2113
1997
|
if (s) {
|
|
2114
|
-
var
|
|
2115
|
-
!i && !
|
|
2116
|
-
for (var
|
|
2117
|
-
var
|
|
2118
|
-
(
|
|
1998
|
+
var u = this.regexp_eatModifiers(e);
|
|
1999
|
+
!i && !u && e.current() === 58 && e.raise("Invalid regular expression modifiers");
|
|
2000
|
+
for (var o = 0; o < u.length; o++) {
|
|
2001
|
+
var h = u.charAt(o);
|
|
2002
|
+
(u.indexOf(h, o + 1) > -1 || i.indexOf(h) > -1) && e.raise("Duplicate regular expression modifiers");
|
|
2119
2003
|
}
|
|
2120
2004
|
}
|
|
2121
2005
|
}
|
|
@@ -2151,11 +2035,11 @@ c.regexp_eatCapturingGroup = function(e) {
|
|
|
2151
2035
|
return !1;
|
|
2152
2036
|
};
|
|
2153
2037
|
c.regexp_eatModifiers = function(e) {
|
|
2154
|
-
for (var t = "", i = 0; (i = e.current()) !== -1 &&
|
|
2155
|
-
t +=
|
|
2038
|
+
for (var t = "", i = 0; (i = e.current()) !== -1 && Mt(i); )
|
|
2039
|
+
t += R(i), e.advance();
|
|
2156
2040
|
return t;
|
|
2157
2041
|
};
|
|
2158
|
-
function
|
|
2042
|
+
function Mt(e) {
|
|
2159
2043
|
return e === 105 || e === 109 || e === 115;
|
|
2160
2044
|
}
|
|
2161
2045
|
c.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2169,13 +2053,13 @@ c.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2169
2053
|
};
|
|
2170
2054
|
c.regexp_eatSyntaxCharacter = function(e) {
|
|
2171
2055
|
var t = e.current();
|
|
2172
|
-
return
|
|
2056
|
+
return it(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2173
2057
|
};
|
|
2174
|
-
function
|
|
2058
|
+
function it(e) {
|
|
2175
2059
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2176
2060
|
}
|
|
2177
2061
|
c.regexp_eatPatternCharacters = function(e) {
|
|
2178
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
2062
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !it(i); )
|
|
2179
2063
|
e.advance();
|
|
2180
2064
|
return e.pos !== t;
|
|
2181
2065
|
};
|
|
@@ -2217,25 +2101,25 @@ c.regexp_eatGroupName = function(e) {
|
|
|
2217
2101
|
};
|
|
2218
2102
|
c.regexp_eatRegExpIdentifierName = function(e) {
|
|
2219
2103
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
2220
|
-
for (e.lastStringValue +=
|
|
2221
|
-
e.lastStringValue +=
|
|
2104
|
+
for (e.lastStringValue += R(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
|
|
2105
|
+
e.lastStringValue += R(e.lastIntValue);
|
|
2222
2106
|
return !0;
|
|
2223
2107
|
}
|
|
2224
2108
|
return !1;
|
|
2225
2109
|
};
|
|
2226
2110
|
c.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2227
2111
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
2228
|
-
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue),
|
|
2112
|
+
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Ut(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
2229
2113
|
};
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2114
|
+
function Ut(e) {
|
|
2115
|
+
return V(e, !0) || e === 36 || e === 95;
|
|
2232
2116
|
}
|
|
2233
2117
|
c.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2234
2118
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
2235
|
-
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue),
|
|
2119
|
+
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), qt(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
2236
2120
|
};
|
|
2237
|
-
function
|
|
2238
|
-
return
|
|
2121
|
+
function qt(e) {
|
|
2122
|
+
return F(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2239
2123
|
}
|
|
2240
2124
|
c.regexp_eatAtomEscape = function(e) {
|
|
2241
2125
|
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);
|
|
@@ -2279,7 +2163,7 @@ c.regexp_eatCControlLetter = function(e) {
|
|
|
2279
2163
|
return !1;
|
|
2280
2164
|
};
|
|
2281
2165
|
c.regexp_eatZero = function(e) {
|
|
2282
|
-
return e.current() === 48 && !
|
|
2166
|
+
return e.current() === 48 && !ce(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
2283
2167
|
};
|
|
2284
2168
|
c.regexp_eatControlEscape = function(e) {
|
|
2285
2169
|
var t = e.current();
|
|
@@ -2287,9 +2171,9 @@ c.regexp_eatControlEscape = function(e) {
|
|
|
2287
2171
|
};
|
|
2288
2172
|
c.regexp_eatControlLetter = function(e) {
|
|
2289
2173
|
var t = e.current();
|
|
2290
|
-
return
|
|
2174
|
+
return st(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2291
2175
|
};
|
|
2292
|
-
function
|
|
2176
|
+
function st(e) {
|
|
2293
2177
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2294
2178
|
}
|
|
2295
2179
|
c.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2310,9 +2194,9 @@ c.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2310
2194
|
117
|
|
2311
2195
|
/* u */
|
|
2312
2196
|
) && this.regexp_eatFixedHexDigits(e, 4)) {
|
|
2313
|
-
var
|
|
2314
|
-
if (
|
|
2315
|
-
return e.lastIntValue = (r - 55296) * 1024 + (
|
|
2197
|
+
var u = e.lastIntValue;
|
|
2198
|
+
if (u >= 56320 && u <= 57343)
|
|
2199
|
+
return e.lastIntValue = (r - 55296) * 1024 + (u - 56320) + 65536, !0;
|
|
2316
2200
|
}
|
|
2317
2201
|
e.pos = n, e.lastIntValue = r;
|
|
2318
2202
|
}
|
|
@@ -2324,13 +2208,13 @@ c.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2324
2208
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
2325
2209
|
125
|
|
2326
2210
|
/* } */
|
|
2327
|
-
) &&
|
|
2211
|
+
) && jt(e.lastIntValue))
|
|
2328
2212
|
return !0;
|
|
2329
2213
|
s && e.raise("Invalid unicode escape"), e.pos = i;
|
|
2330
2214
|
}
|
|
2331
2215
|
return !1;
|
|
2332
2216
|
};
|
|
2333
|
-
function
|
|
2217
|
+
function jt(e) {
|
|
2334
2218
|
return e >= 0 && e <= 1114111;
|
|
2335
2219
|
}
|
|
2336
2220
|
c.regexp_eatIdentityEscape = function(e) {
|
|
@@ -2353,11 +2237,11 @@ c.regexp_eatDecimalEscape = function(e) {
|
|
|
2353
2237
|
}
|
|
2354
2238
|
return !1;
|
|
2355
2239
|
};
|
|
2356
|
-
var
|
|
2240
|
+
var at = 0, O = 1, I = 2;
|
|
2357
2241
|
c.regexp_eatCharacterClassEscape = function(e) {
|
|
2358
2242
|
var t = e.current();
|
|
2359
|
-
if (
|
|
2360
|
-
return e.lastIntValue = -1, e.advance(),
|
|
2243
|
+
if (Gt(t))
|
|
2244
|
+
return e.lastIntValue = -1, e.advance(), O;
|
|
2361
2245
|
var i = !1;
|
|
2362
2246
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
2363
2247
|
e.lastIntValue = -1, e.advance();
|
|
@@ -2369,12 +2253,12 @@ c.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2369
2253
|
125
|
|
2370
2254
|
/* } */
|
|
2371
2255
|
))
|
|
2372
|
-
return i && s ===
|
|
2256
|
+
return i && s === I && e.raise("Invalid property name"), s;
|
|
2373
2257
|
e.raise("Invalid property name");
|
|
2374
2258
|
}
|
|
2375
|
-
return
|
|
2259
|
+
return at;
|
|
2376
2260
|
};
|
|
2377
|
-
function
|
|
2261
|
+
function Gt(e) {
|
|
2378
2262
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
2379
2263
|
}
|
|
2380
2264
|
c.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -2386,42 +2270,42 @@ c.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2386
2270
|
var i = e.lastStringValue;
|
|
2387
2271
|
if (this.regexp_eatUnicodePropertyValue(e)) {
|
|
2388
2272
|
var s = e.lastStringValue;
|
|
2389
|
-
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s),
|
|
2273
|
+
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), O;
|
|
2390
2274
|
}
|
|
2391
2275
|
}
|
|
2392
2276
|
if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
|
|
2393
2277
|
var r = e.lastStringValue;
|
|
2394
2278
|
return this.regexp_validateUnicodePropertyNameOrValue(e, r);
|
|
2395
2279
|
}
|
|
2396
|
-
return
|
|
2280
|
+
return at;
|
|
2397
2281
|
};
|
|
2398
2282
|
c.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
2399
|
-
|
|
2283
|
+
W(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
2400
2284
|
};
|
|
2401
2285
|
c.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
2402
2286
|
if (e.unicodeProperties.binary.test(t))
|
|
2403
|
-
return
|
|
2287
|
+
return O;
|
|
2404
2288
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
2405
|
-
return
|
|
2289
|
+
return I;
|
|
2406
2290
|
e.raise("Invalid property name");
|
|
2407
2291
|
};
|
|
2408
2292
|
c.regexp_eatUnicodePropertyName = function(e) {
|
|
2409
2293
|
var t = 0;
|
|
2410
|
-
for (e.lastStringValue = "";
|
|
2411
|
-
e.lastStringValue +=
|
|
2294
|
+
for (e.lastStringValue = ""; rt(t = e.current()); )
|
|
2295
|
+
e.lastStringValue += R(t), e.advance();
|
|
2412
2296
|
return e.lastStringValue !== "";
|
|
2413
2297
|
};
|
|
2414
|
-
function
|
|
2415
|
-
return
|
|
2298
|
+
function rt(e) {
|
|
2299
|
+
return st(e) || e === 95;
|
|
2416
2300
|
}
|
|
2417
2301
|
c.regexp_eatUnicodePropertyValue = function(e) {
|
|
2418
2302
|
var t = 0;
|
|
2419
|
-
for (e.lastStringValue = "";
|
|
2420
|
-
e.lastStringValue +=
|
|
2303
|
+
for (e.lastStringValue = ""; Ht(t = e.current()); )
|
|
2304
|
+
e.lastStringValue += R(t), e.advance();
|
|
2421
2305
|
return e.lastStringValue !== "";
|
|
2422
2306
|
};
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2307
|
+
function Ht(e) {
|
|
2308
|
+
return rt(e) || ce(e);
|
|
2425
2309
|
}
|
|
2426
2310
|
c.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2427
2311
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -2438,12 +2322,12 @@ c.regexp_eatCharacterClass = function(e) {
|
|
|
2438
2322
|
return e.eat(
|
|
2439
2323
|
93
|
|
2440
2324
|
/* ] */
|
|
2441
|
-
) || e.raise("Unterminated character class"), t && i ===
|
|
2325
|
+
) || e.raise("Unterminated character class"), t && i === I && e.raise("Negated character class may contain strings"), !0;
|
|
2442
2326
|
}
|
|
2443
2327
|
return !1;
|
|
2444
2328
|
};
|
|
2445
2329
|
c.regexp_classContents = function(e) {
|
|
2446
|
-
return e.current() === 93 ?
|
|
2330
|
+
return e.current() === 93 ? O : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), O);
|
|
2447
2331
|
};
|
|
2448
2332
|
c.regexp_nonEmptyClassRanges = function(e) {
|
|
2449
2333
|
for (; this.regexp_eatClassAtom(e); ) {
|
|
@@ -2467,7 +2351,7 @@ c.regexp_eatClassAtom = function(e) {
|
|
|
2467
2351
|
return !0;
|
|
2468
2352
|
if (e.switchU) {
|
|
2469
2353
|
var i = e.current();
|
|
2470
|
-
(i === 99 ||
|
|
2354
|
+
(i === 99 || ot(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2471
2355
|
}
|
|
2472
2356
|
e.pos = t;
|
|
2473
2357
|
}
|
|
@@ -2497,16 +2381,16 @@ c.regexp_eatClassEscape = function(e) {
|
|
|
2497
2381
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
2498
2382
|
};
|
|
2499
2383
|
c.regexp_classSetExpression = function(e) {
|
|
2500
|
-
var t =
|
|
2384
|
+
var t = O, i;
|
|
2501
2385
|
if (!this.regexp_eatClassSetRange(e))
|
|
2502
2386
|
if (i = this.regexp_eatClassSetOperand(e)) {
|
|
2503
|
-
i ===
|
|
2387
|
+
i === I && (t = I);
|
|
2504
2388
|
for (var s = e.pos; e.eatChars(
|
|
2505
2389
|
[38, 38]
|
|
2506
2390
|
/* && */
|
|
2507
2391
|
); ) {
|
|
2508
2392
|
if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
|
|
2509
|
-
i !==
|
|
2393
|
+
i !== I && (t = O);
|
|
2510
2394
|
continue;
|
|
2511
2395
|
}
|
|
2512
2396
|
e.raise("Invalid character in character class");
|
|
@@ -2526,7 +2410,7 @@ c.regexp_classSetExpression = function(e) {
|
|
|
2526
2410
|
if (!this.regexp_eatClassSetRange(e)) {
|
|
2527
2411
|
if (i = this.regexp_eatClassSetOperand(e), !i)
|
|
2528
2412
|
return t;
|
|
2529
|
-
i ===
|
|
2413
|
+
i === I && (t = I);
|
|
2530
2414
|
}
|
|
2531
2415
|
};
|
|
2532
2416
|
c.regexp_eatClassSetRange = function(e) {
|
|
@@ -2545,7 +2429,7 @@ c.regexp_eatClassSetRange = function(e) {
|
|
|
2545
2429
|
return !1;
|
|
2546
2430
|
};
|
|
2547
2431
|
c.regexp_eatClassSetOperand = function(e) {
|
|
2548
|
-
return this.regexp_eatClassSetCharacter(e) ?
|
|
2432
|
+
return this.regexp_eatClassSetCharacter(e) ? O : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
|
|
2549
2433
|
};
|
|
2550
2434
|
c.regexp_eatNestedClass = function(e) {
|
|
2551
2435
|
var t = e.pos;
|
|
@@ -2561,7 +2445,7 @@ c.regexp_eatNestedClass = function(e) {
|
|
|
2561
2445
|
93
|
|
2562
2446
|
/* ] */
|
|
2563
2447
|
))
|
|
2564
|
-
return i && s ===
|
|
2448
|
+
return i && s === I && e.raise("Negated character class may contain strings"), s;
|
|
2565
2449
|
e.pos = t;
|
|
2566
2450
|
}
|
|
2567
2451
|
if (e.eat(
|
|
@@ -2602,13 +2486,13 @@ c.regexp_classStringDisjunctionContents = function(e) {
|
|
|
2602
2486
|
124
|
|
2603
2487
|
/* | */
|
|
2604
2488
|
); )
|
|
2605
|
-
this.regexp_classString(e) ===
|
|
2489
|
+
this.regexp_classString(e) === I && (t = I);
|
|
2606
2490
|
return t;
|
|
2607
2491
|
};
|
|
2608
2492
|
c.regexp_classString = function(e) {
|
|
2609
2493
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
2610
2494
|
t++;
|
|
2611
|
-
return t === 1 ?
|
|
2495
|
+
return t === 1 ? O : I;
|
|
2612
2496
|
};
|
|
2613
2497
|
c.regexp_eatClassSetCharacter = function(e) {
|
|
2614
2498
|
var t = e.pos;
|
|
@@ -2621,24 +2505,24 @@ c.regexp_eatClassSetCharacter = function(e) {
|
|
|
2621
2505
|
/* b */
|
|
2622
2506
|
) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
2623
2507
|
var i = e.current();
|
|
2624
|
-
return i < 0 || i === e.lookahead() &&
|
|
2508
|
+
return i < 0 || i === e.lookahead() && Wt(i) || zt(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
|
|
2625
2509
|
};
|
|
2626
|
-
function
|
|
2510
|
+
function Wt(e) {
|
|
2627
2511
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
2628
2512
|
}
|
|
2629
|
-
function
|
|
2513
|
+
function zt(e) {
|
|
2630
2514
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
2631
2515
|
}
|
|
2632
2516
|
c.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
2633
2517
|
var t = e.current();
|
|
2634
|
-
return
|
|
2518
|
+
return Kt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2635
2519
|
};
|
|
2636
|
-
function
|
|
2520
|
+
function Kt(e) {
|
|
2637
2521
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
2638
2522
|
}
|
|
2639
2523
|
c.regexp_eatClassControlLetter = function(e) {
|
|
2640
2524
|
var t = e.current();
|
|
2641
|
-
return
|
|
2525
|
+
return ce(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2642
2526
|
};
|
|
2643
2527
|
c.regexp_eatHexEscapeSequence = function(e) {
|
|
2644
2528
|
var t = e.pos;
|
|
@@ -2654,23 +2538,23 @@ c.regexp_eatHexEscapeSequence = function(e) {
|
|
|
2654
2538
|
};
|
|
2655
2539
|
c.regexp_eatDecimalDigits = function(e) {
|
|
2656
2540
|
var t = e.pos, i = 0;
|
|
2657
|
-
for (e.lastIntValue = 0;
|
|
2541
|
+
for (e.lastIntValue = 0; ce(i = e.current()); )
|
|
2658
2542
|
e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
|
|
2659
2543
|
return e.pos !== t;
|
|
2660
2544
|
};
|
|
2661
|
-
function
|
|
2545
|
+
function ce(e) {
|
|
2662
2546
|
return e >= 48 && e <= 57;
|
|
2663
2547
|
}
|
|
2664
2548
|
c.regexp_eatHexDigits = function(e) {
|
|
2665
2549
|
var t = e.pos, i = 0;
|
|
2666
|
-
for (e.lastIntValue = 0;
|
|
2667
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2550
|
+
for (e.lastIntValue = 0; nt(i = e.current()); )
|
|
2551
|
+
e.lastIntValue = 16 * e.lastIntValue + ut(i), e.advance();
|
|
2668
2552
|
return e.pos !== t;
|
|
2669
2553
|
};
|
|
2670
|
-
function
|
|
2554
|
+
function nt(e) {
|
|
2671
2555
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
2672
2556
|
}
|
|
2673
|
-
function
|
|
2557
|
+
function ut(e) {
|
|
2674
2558
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
2675
2559
|
}
|
|
2676
2560
|
c.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -2687,9 +2571,9 @@ c.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
2687
2571
|
};
|
|
2688
2572
|
c.regexp_eatOctalDigit = function(e) {
|
|
2689
2573
|
var t = e.current();
|
|
2690
|
-
return
|
|
2574
|
+
return ot(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
2691
2575
|
};
|
|
2692
|
-
function
|
|
2576
|
+
function ot(e) {
|
|
2693
2577
|
return e >= 48 && e <= 55;
|
|
2694
2578
|
}
|
|
2695
2579
|
c.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -2697,22 +2581,22 @@ c.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
2697
2581
|
e.lastIntValue = 0;
|
|
2698
2582
|
for (var s = 0; s < t; ++s) {
|
|
2699
2583
|
var r = e.current();
|
|
2700
|
-
if (!
|
|
2584
|
+
if (!nt(r))
|
|
2701
2585
|
return e.pos = i, !1;
|
|
2702
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2586
|
+
e.lastIntValue = 16 * e.lastIntValue + ut(r), e.advance();
|
|
2703
2587
|
}
|
|
2704
2588
|
return !0;
|
|
2705
2589
|
};
|
|
2706
|
-
var
|
|
2707
|
-
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new
|
|
2708
|
-
},
|
|
2709
|
-
|
|
2710
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
2590
|
+
var ke = function(t) {
|
|
2591
|
+
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new re(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
2592
|
+
}, x = y.prototype;
|
|
2593
|
+
x.next = function(e) {
|
|
2594
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new ke(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
2711
2595
|
};
|
|
2712
|
-
|
|
2713
|
-
return this.next(), new
|
|
2596
|
+
x.getToken = function() {
|
|
2597
|
+
return this.next(), new ke(this);
|
|
2714
2598
|
};
|
|
2715
|
-
typeof Symbol < "u" && (
|
|
2599
|
+
typeof Symbol < "u" && (x[Symbol.iterator] = function() {
|
|
2716
2600
|
var e = this;
|
|
2717
2601
|
return {
|
|
2718
2602
|
next: function() {
|
|
@@ -2724,7 +2608,7 @@ typeof Symbol < "u" && (m[Symbol.iterator] = function() {
|
|
|
2724
2608
|
}
|
|
2725
2609
|
};
|
|
2726
2610
|
});
|
|
2727
|
-
|
|
2611
|
+
x.nextToken = function() {
|
|
2728
2612
|
var e = this.curContext();
|
|
2729
2613
|
if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
|
|
2730
2614
|
return this.finishToken(a.eof);
|
|
@@ -2732,20 +2616,20 @@ m.nextToken = function() {
|
|
|
2732
2616
|
return e.override(this);
|
|
2733
2617
|
this.readToken(this.fullCharCodeAtPos());
|
|
2734
2618
|
};
|
|
2735
|
-
|
|
2736
|
-
return
|
|
2619
|
+
x.readToken = function(e) {
|
|
2620
|
+
return V(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
2737
2621
|
};
|
|
2738
|
-
|
|
2622
|
+
x.fullCharCodeAtPos = function() {
|
|
2739
2623
|
var e = this.input.charCodeAt(this.pos);
|
|
2740
2624
|
if (e <= 55295 || e >= 56320)
|
|
2741
2625
|
return e;
|
|
2742
2626
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
2743
2627
|
return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
|
|
2744
2628
|
};
|
|
2745
|
-
|
|
2629
|
+
x.skipBlockComment = function() {
|
|
2746
2630
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
2747
2631
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
2748
|
-
for (var s = void 0, r = t; (s =
|
|
2632
|
+
for (var s = void 0, r = t; (s = Te(this.input, r, this.pos)) > -1; )
|
|
2749
2633
|
++this.curLine, r = this.lineStart = s;
|
|
2750
2634
|
this.options.onComment && this.options.onComment(
|
|
2751
2635
|
!0,
|
|
@@ -2756,8 +2640,8 @@ m.skipBlockComment = function() {
|
|
|
2756
2640
|
this.curPosition()
|
|
2757
2641
|
);
|
|
2758
2642
|
};
|
|
2759
|
-
|
|
2760
|
-
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length &&
|
|
2643
|
+
x.skipLineComment = function(e) {
|
|
2644
|
+
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !H(s); )
|
|
2761
2645
|
s = this.input.charCodeAt(++this.pos);
|
|
2762
2646
|
this.options.onComment && this.options.onComment(
|
|
2763
2647
|
!1,
|
|
@@ -2768,7 +2652,7 @@ m.skipLineComment = function(e) {
|
|
|
2768
2652
|
this.curPosition()
|
|
2769
2653
|
);
|
|
2770
2654
|
};
|
|
2771
|
-
|
|
2655
|
+
x.skipSpace = function() {
|
|
2772
2656
|
e:
|
|
2773
2657
|
for (; this.pos < this.input.length; ) {
|
|
2774
2658
|
var e = this.input.charCodeAt(this.pos);
|
|
@@ -2797,34 +2681,34 @@ m.skipSpace = function() {
|
|
|
2797
2681
|
}
|
|
2798
2682
|
break;
|
|
2799
2683
|
default:
|
|
2800
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
2684
|
+
if (e > 8 && e < 14 || e >= 5760 && Le.test(String.fromCharCode(e)))
|
|
2801
2685
|
++this.pos;
|
|
2802
2686
|
else
|
|
2803
2687
|
break e;
|
|
2804
2688
|
}
|
|
2805
2689
|
}
|
|
2806
2690
|
};
|
|
2807
|
-
|
|
2691
|
+
x.finishToken = function(e, t) {
|
|
2808
2692
|
this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
|
|
2809
2693
|
var i = this.type;
|
|
2810
2694
|
this.type = e, this.value = t, this.updateContext(i);
|
|
2811
2695
|
};
|
|
2812
|
-
|
|
2696
|
+
x.readToken_dot = function() {
|
|
2813
2697
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
2814
2698
|
if (e >= 48 && e <= 57)
|
|
2815
2699
|
return this.readNumber(!0);
|
|
2816
2700
|
var t = this.input.charCodeAt(this.pos + 2);
|
|
2817
2701
|
return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
|
|
2818
2702
|
};
|
|
2819
|
-
|
|
2703
|
+
x.readToken_slash = function() {
|
|
2820
2704
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
2821
2705
|
return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
|
|
2822
2706
|
};
|
|
2823
|
-
|
|
2707
|
+
x.readToken_mult_modulo_exp = function(e) {
|
|
2824
2708
|
var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
|
|
2825
2709
|
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);
|
|
2826
2710
|
};
|
|
2827
|
-
|
|
2711
|
+
x.readToken_pipe_amp = function(e) {
|
|
2828
2712
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
2829
2713
|
if (t === e) {
|
|
2830
2714
|
if (this.options.ecmaVersion >= 12) {
|
|
@@ -2836,23 +2720,23 @@ m.readToken_pipe_amp = function(e) {
|
|
|
2836
2720
|
}
|
|
2837
2721
|
return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
|
|
2838
2722
|
};
|
|
2839
|
-
|
|
2723
|
+
x.readToken_caret = function() {
|
|
2840
2724
|
var e = this.input.charCodeAt(this.pos + 1);
|
|
2841
2725
|
return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
|
|
2842
2726
|
};
|
|
2843
|
-
|
|
2727
|
+
x.readToken_plus_min = function(e) {
|
|
2844
2728
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
2845
|
-
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 ||
|
|
2729
|
+
return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || w.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);
|
|
2846
2730
|
};
|
|
2847
|
-
|
|
2731
|
+
x.readToken_lt_gt = function(e) {
|
|
2848
2732
|
var t = this.input.charCodeAt(this.pos + 1), i = 1;
|
|
2849
2733
|
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));
|
|
2850
2734
|
};
|
|
2851
|
-
|
|
2735
|
+
x.readToken_eq_excl = function(e) {
|
|
2852
2736
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
2853
2737
|
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);
|
|
2854
2738
|
};
|
|
2855
|
-
|
|
2739
|
+
x.readToken_question = function() {
|
|
2856
2740
|
var e = this.options.ecmaVersion;
|
|
2857
2741
|
if (e >= 11) {
|
|
2858
2742
|
var t = this.input.charCodeAt(this.pos + 1);
|
|
@@ -2872,13 +2756,13 @@ m.readToken_question = function() {
|
|
|
2872
2756
|
}
|
|
2873
2757
|
return this.finishOp(a.question, 1);
|
|
2874
2758
|
};
|
|
2875
|
-
|
|
2759
|
+
x.readToken_numberSign = function() {
|
|
2876
2760
|
var e = this.options.ecmaVersion, t = 35;
|
|
2877
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
2761
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), V(t, !0) || t === 92))
|
|
2878
2762
|
return this.finishToken(a.privateId, this.readWord1());
|
|
2879
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
2763
|
+
this.raise(this.pos, "Unexpected character '" + R(t) + "'");
|
|
2880
2764
|
};
|
|
2881
|
-
|
|
2765
|
+
x.getTokenFromCode = function(e) {
|
|
2882
2766
|
switch (e) {
|
|
2883
2767
|
case 46:
|
|
2884
2768
|
return this.readToken_dot();
|
|
@@ -2953,17 +2837,17 @@ m.getTokenFromCode = function(e) {
|
|
|
2953
2837
|
case 35:
|
|
2954
2838
|
return this.readToken_numberSign();
|
|
2955
2839
|
}
|
|
2956
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
2840
|
+
this.raise(this.pos, "Unexpected character '" + R(e) + "'");
|
|
2957
2841
|
};
|
|
2958
|
-
|
|
2842
|
+
x.finishOp = function(e, t) {
|
|
2959
2843
|
var i = this.input.slice(this.pos, this.pos + t);
|
|
2960
2844
|
return this.pos += t, this.finishToken(e, i);
|
|
2961
2845
|
};
|
|
2962
|
-
|
|
2846
|
+
x.readRegexp = function() {
|
|
2963
2847
|
for (var e, t, i = this.pos; ; ) {
|
|
2964
2848
|
this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
|
|
2965
2849
|
var s = this.input.charAt(this.pos);
|
|
2966
|
-
if (
|
|
2850
|
+
if (w.test(s) && this.raise(i, "Unterminated regular expression"), e)
|
|
2967
2851
|
e = !1;
|
|
2968
2852
|
else {
|
|
2969
2853
|
if (s === "[")
|
|
@@ -2978,57 +2862,57 @@ m.readRegexp = function() {
|
|
|
2978
2862
|
}
|
|
2979
2863
|
var r = this.input.slice(i, this.pos);
|
|
2980
2864
|
++this.pos;
|
|
2981
|
-
var n = this.pos,
|
|
2865
|
+
var n = this.pos, u = this.readWord1();
|
|
2982
2866
|
this.containsEsc && this.unexpected(n);
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2985
|
-
var
|
|
2867
|
+
var o = this.regexpState || (this.regexpState = new L(this));
|
|
2868
|
+
o.reset(i, r, u), this.validateRegExpFlags(o), this.validateRegExpPattern(o);
|
|
2869
|
+
var h = null;
|
|
2986
2870
|
try {
|
|
2987
|
-
|
|
2871
|
+
h = new RegExp(r, u);
|
|
2988
2872
|
} catch {
|
|
2989
2873
|
}
|
|
2990
|
-
return this.finishToken(a.regexp, { pattern: r, flags:
|
|
2874
|
+
return this.finishToken(a.regexp, { pattern: r, flags: u, value: h });
|
|
2991
2875
|
};
|
|
2992
|
-
|
|
2993
|
-
for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos,
|
|
2994
|
-
var
|
|
2995
|
-
if (s &&
|
|
2996
|
-
r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"),
|
|
2876
|
+
x.readInt = function(e, t, i) {
|
|
2877
|
+
for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, u = 0, o = 0, h = 0, l = t ?? 1 / 0; h < l; ++h, ++this.pos) {
|
|
2878
|
+
var d = this.input.charCodeAt(this.pos), g = void 0;
|
|
2879
|
+
if (s && d === 95) {
|
|
2880
|
+
r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), o === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), h === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), o = d;
|
|
2997
2881
|
continue;
|
|
2998
2882
|
}
|
|
2999
|
-
if (
|
|
2883
|
+
if (d >= 97 ? g = d - 97 + 10 : d >= 65 ? g = d - 65 + 10 : d >= 48 && d <= 57 ? g = d - 48 : g = 1 / 0, g >= e)
|
|
3000
2884
|
break;
|
|
3001
|
-
|
|
2885
|
+
o = d, u = u * e + g;
|
|
3002
2886
|
}
|
|
3003
|
-
return s &&
|
|
2887
|
+
return s && o === 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 : u;
|
|
3004
2888
|
};
|
|
3005
|
-
function
|
|
2889
|
+
function Qt(e, t) {
|
|
3006
2890
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3007
2891
|
}
|
|
3008
|
-
function
|
|
2892
|
+
function ht(e) {
|
|
3009
2893
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
3010
2894
|
}
|
|
3011
|
-
|
|
2895
|
+
x.readRadixNumber = function(e) {
|
|
3012
2896
|
var t = this.pos;
|
|
3013
2897
|
this.pos += 2;
|
|
3014
2898
|
var i = this.readInt(e);
|
|
3015
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i =
|
|
2899
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = ht(this.input.slice(t, this.pos)), ++this.pos) : V(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
|
|
3016
2900
|
};
|
|
3017
|
-
|
|
2901
|
+
x.readNumber = function(e) {
|
|
3018
2902
|
var t = this.pos;
|
|
3019
2903
|
!e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
|
|
3020
2904
|
var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
|
|
3021
2905
|
i && this.strict && this.raise(t, "Invalid number");
|
|
3022
2906
|
var s = this.input.charCodeAt(this.pos);
|
|
3023
2907
|
if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
|
|
3024
|
-
var r =
|
|
3025
|
-
return ++this.pos,
|
|
2908
|
+
var r = ht(this.input.slice(t, this.pos));
|
|
2909
|
+
return ++this.pos, V(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
|
|
3026
2910
|
}
|
|
3027
|
-
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")),
|
|
3028
|
-
var n =
|
|
2911
|
+
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")), V(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2912
|
+
var n = Qt(this.input.slice(t, this.pos), i);
|
|
3029
2913
|
return this.finishToken(a.num, n);
|
|
3030
2914
|
};
|
|
3031
|
-
|
|
2915
|
+
x.readCodePoint = function() {
|
|
3032
2916
|
var e = this.input.charCodeAt(this.pos), t;
|
|
3033
2917
|
if (e === 123) {
|
|
3034
2918
|
this.options.ecmaVersion < 6 && this.unexpected();
|
|
@@ -3038,35 +2922,35 @@ m.readCodePoint = function() {
|
|
|
3038
2922
|
t = this.readHexChar(4);
|
|
3039
2923
|
return t;
|
|
3040
2924
|
};
|
|
3041
|
-
|
|
2925
|
+
x.readString = function(e) {
|
|
3042
2926
|
for (var t = "", i = ++this.pos; ; ) {
|
|
3043
2927
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
3044
2928
|
var s = this.input.charCodeAt(this.pos);
|
|
3045
2929
|
if (s === e)
|
|
3046
2930
|
break;
|
|
3047
|
-
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)) : (
|
|
2931
|
+
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)) : (H(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
3048
2932
|
}
|
|
3049
2933
|
return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
|
|
3050
2934
|
};
|
|
3051
|
-
var
|
|
3052
|
-
|
|
2935
|
+
var ct = {};
|
|
2936
|
+
x.tryReadTemplateToken = function() {
|
|
3053
2937
|
this.inTemplateElement = !0;
|
|
3054
2938
|
try {
|
|
3055
2939
|
this.readTmplToken();
|
|
3056
2940
|
} catch (e) {
|
|
3057
|
-
if (e ===
|
|
2941
|
+
if (e === ct)
|
|
3058
2942
|
this.readInvalidTemplateToken();
|
|
3059
2943
|
else
|
|
3060
2944
|
throw e;
|
|
3061
2945
|
}
|
|
3062
2946
|
this.inTemplateElement = !1;
|
|
3063
2947
|
};
|
|
3064
|
-
|
|
2948
|
+
x.invalidStringToken = function(e, t) {
|
|
3065
2949
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
3066
|
-
throw
|
|
2950
|
+
throw ct;
|
|
3067
2951
|
this.raise(e, t);
|
|
3068
2952
|
};
|
|
3069
|
-
|
|
2953
|
+
x.readTmplToken = function() {
|
|
3070
2954
|
for (var e = "", t = this.pos; ; ) {
|
|
3071
2955
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
|
|
3072
2956
|
var i = this.input.charCodeAt(this.pos);
|
|
@@ -3074,7 +2958,7 @@ m.readTmplToken = function() {
|
|
|
3074
2958
|
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));
|
|
3075
2959
|
if (i === 92)
|
|
3076
2960
|
e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
|
|
3077
|
-
else if (
|
|
2961
|
+
else if (H(i)) {
|
|
3078
2962
|
switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
|
|
3079
2963
|
case 13:
|
|
3080
2964
|
this.input.charCodeAt(this.pos) === 10 && ++this.pos;
|
|
@@ -3091,7 +2975,7 @@ m.readTmplToken = function() {
|
|
|
3091
2975
|
++this.pos;
|
|
3092
2976
|
}
|
|
3093
2977
|
};
|
|
3094
|
-
|
|
2978
|
+
x.readInvalidTemplateToken = function() {
|
|
3095
2979
|
for (; this.pos < this.input.length; this.pos++)
|
|
3096
2980
|
switch (this.input[this.pos]) {
|
|
3097
2981
|
case "\\":
|
|
@@ -3114,7 +2998,7 @@ m.readInvalidTemplateToken = function() {
|
|
|
3114
2998
|
}
|
|
3115
2999
|
this.raise(this.start, "Unterminated template");
|
|
3116
3000
|
};
|
|
3117
|
-
|
|
3001
|
+
x.readEscapedChar = function(e) {
|
|
3118
3002
|
var t = this.input.charCodeAt(++this.pos);
|
|
3119
3003
|
switch (++this.pos, t) {
|
|
3120
3004
|
case 110:
|
|
@@ -3125,7 +3009,7 @@ m.readEscapedChar = function(e) {
|
|
|
3125
3009
|
case 120:
|
|
3126
3010
|
return String.fromCharCode(this.readHexChar(2));
|
|
3127
3011
|
case 117:
|
|
3128
|
-
return
|
|
3012
|
+
return R(this.readCodePoint());
|
|
3129
3013
|
case 116:
|
|
3130
3014
|
return " ";
|
|
3131
3015
|
case 98:
|
|
@@ -3158,214 +3042,87 @@ m.readEscapedChar = function(e) {
|
|
|
3158
3042
|
e ? "Octal literal in template string" : "Octal literal in strict mode"
|
|
3159
3043
|
), String.fromCharCode(r);
|
|
3160
3044
|
}
|
|
3161
|
-
return
|
|
3045
|
+
return H(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
3162
3046
|
}
|
|
3163
3047
|
};
|
|
3164
|
-
|
|
3048
|
+
x.readHexChar = function(e) {
|
|
3165
3049
|
var t = this.pos, i = this.readInt(16, e);
|
|
3166
3050
|
return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
|
|
3167
3051
|
};
|
|
3168
|
-
|
|
3052
|
+
x.readWord1 = function() {
|
|
3169
3053
|
this.containsEsc = !1;
|
|
3170
3054
|
for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
3171
3055
|
var r = this.fullCharCodeAtPos();
|
|
3172
|
-
if (
|
|
3056
|
+
if (F(r, s))
|
|
3173
3057
|
this.pos += r <= 65535 ? 1 : 2;
|
|
3174
3058
|
else if (r === 92) {
|
|
3175
3059
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
3176
3060
|
var n = this.pos;
|
|
3177
3061
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
3178
|
-
var
|
|
3179
|
-
(t ?
|
|
3062
|
+
var u = this.readCodePoint();
|
|
3063
|
+
(t ? V : F)(u, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += R(u), i = this.pos;
|
|
3180
3064
|
} else
|
|
3181
3065
|
break;
|
|
3182
3066
|
t = !1;
|
|
3183
3067
|
}
|
|
3184
3068
|
return e + this.input.slice(i, this.pos);
|
|
3185
3069
|
};
|
|
3186
|
-
|
|
3070
|
+
x.readWord = function() {
|
|
3187
3071
|
var e = this.readWord1(), t = a.name;
|
|
3188
|
-
return this.keywords.test(e) && (t =
|
|
3189
|
-
};
|
|
3190
|
-
var
|
|
3191
|
-
|
|
3192
|
-
Parser:
|
|
3193
|
-
version:
|
|
3194
|
-
defaultOptions:
|
|
3195
|
-
Position:
|
|
3196
|
-
SourceLocation:
|
|
3197
|
-
getLineInfo:
|
|
3198
|
-
Node:
|
|
3199
|
-
TokenType:
|
|
3072
|
+
return this.keywords.test(e) && (t = ge[e]), this.finishToken(t, e);
|
|
3073
|
+
};
|
|
3074
|
+
var Yt = "8.15.0";
|
|
3075
|
+
y.acorn = {
|
|
3076
|
+
Parser: y,
|
|
3077
|
+
version: Yt,
|
|
3078
|
+
defaultOptions: xe,
|
|
3079
|
+
Position: X,
|
|
3080
|
+
SourceLocation: re,
|
|
3081
|
+
getLineInfo: Oe,
|
|
3082
|
+
Node: he,
|
|
3083
|
+
TokenType: v,
|
|
3200
3084
|
tokTypes: a,
|
|
3201
|
-
keywordTypes:
|
|
3202
|
-
TokContext:
|
|
3203
|
-
tokContexts:
|
|
3204
|
-
isIdentifierChar:
|
|
3205
|
-
isIdentifierStart:
|
|
3206
|
-
Token:
|
|
3207
|
-
isNewLine:
|
|
3208
|
-
lineBreak:
|
|
3209
|
-
lineBreakG:
|
|
3210
|
-
nonASCIIwhitespace:
|
|
3211
|
-
};
|
|
3212
|
-
function
|
|
3213
|
-
return
|
|
3085
|
+
keywordTypes: ge,
|
|
3086
|
+
TokContext: N,
|
|
3087
|
+
tokContexts: b,
|
|
3088
|
+
isIdentifierChar: F,
|
|
3089
|
+
isIdentifierStart: V,
|
|
3090
|
+
Token: ke,
|
|
3091
|
+
isNewLine: H,
|
|
3092
|
+
lineBreak: w,
|
|
3093
|
+
lineBreakG: vt,
|
|
3094
|
+
nonASCIIwhitespace: Le
|
|
3095
|
+
};
|
|
3096
|
+
function Xt(e, t) {
|
|
3097
|
+
return y.parse(e, t);
|
|
3214
3098
|
}
|
|
3215
|
-
function
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
ranges: !0
|
|
3221
|
-
// ←←← 必须启用,才能 slice 源码
|
|
3222
|
-
}), i = [], s = [];
|
|
3223
|
-
for (const o of t.body) {
|
|
3224
|
-
if (o.type === "FunctionDeclaration" && ((r = o.id) != null && r.name) && o.range) {
|
|
3225
|
-
const h = o.id.name, u = e.slice(o.range[0], o.range[1]);
|
|
3226
|
-
i.push({ name: h, text: u });
|
|
3227
|
-
}
|
|
3228
|
-
if (o.type === "ClassDeclaration" && ((n = o.id) != null && n.name) && o.range) {
|
|
3229
|
-
const h = o.id.name, u = e.slice(o.range[0], o.range[1]);
|
|
3230
|
-
s.push({ name: h, text: u });
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
return { functions: i, classes: s };
|
|
3099
|
+
function Zt(e, t, i) {
|
|
3100
|
+
return y.parseExpressionAt(e, t, i);
|
|
3101
|
+
}
|
|
3102
|
+
function Jt(e, t) {
|
|
3103
|
+
return y.tokenizer(e, t);
|
|
3234
3104
|
}
|
|
3235
|
-
const yi = () => {
|
|
3236
|
-
const e = "v_form_global_css", t = (u = "", l = e) => {
|
|
3237
|
-
var f = r(u, l);
|
|
3238
|
-
s(f);
|
|
3239
|
-
}, i = (u = "", l = "", f = e) => {
|
|
3240
|
-
if (!u)
|
|
3241
|
-
return;
|
|
3242
|
-
let x = document.getElementsByTagName("head")[0];
|
|
3243
|
-
if (x)
|
|
3244
|
-
try {
|
|
3245
|
-
var g = r(l, f);
|
|
3246
|
-
s(f), s(g);
|
|
3247
|
-
let C = document.createElement("style");
|
|
3248
|
-
if (!C)
|
|
3249
|
-
return;
|
|
3250
|
-
C.type = "text/css", C.id = l ? f + "-" + l : f;
|
|
3251
|
-
try {
|
|
3252
|
-
C.appendChild(document.createTextNode(u.toString()));
|
|
3253
|
-
} catch {
|
|
3254
|
-
C.innerHTML = u.toString();
|
|
3255
|
-
}
|
|
3256
|
-
x.appendChild(C);
|
|
3257
|
-
} catch (C) {
|
|
3258
|
-
he.error("insert css to head fail", C);
|
|
3259
|
-
}
|
|
3260
|
-
}, s = (u) => {
|
|
3261
|
-
let l = document.getElementById(u);
|
|
3262
|
-
try {
|
|
3263
|
-
l && l.parentNode && l.parentNode.removeChild(l);
|
|
3264
|
-
} catch (f) {
|
|
3265
|
-
console.log(f, l);
|
|
3266
|
-
}
|
|
3267
|
-
}, r = (u, l) => u ? l + "-" + u : l, n = "v_form_global_functions";
|
|
3268
|
-
return {
|
|
3269
|
-
insertCustomCssToHead: i,
|
|
3270
|
-
insertGlobalFunctionsToHtml: (u) => {
|
|
3271
|
-
var l, f;
|
|
3272
|
-
try {
|
|
3273
|
-
const x = bi(u);
|
|
3274
|
-
(l = x.functions) == null || l.forEach((g) => {
|
|
3275
|
-
let C;
|
|
3276
|
-
const E = g == null ? void 0 : g.text, P = g == null ? void 0 : g.name;
|
|
3277
|
-
try {
|
|
3278
|
-
C = new Function(`return ${E}`)();
|
|
3279
|
-
} catch (T) {
|
|
3280
|
-
he.error(`Failed to compile function "${P}":`, T);
|
|
3281
|
-
return;
|
|
3282
|
-
}
|
|
3283
|
-
window[P] = C;
|
|
3284
|
-
}), (f = x.classes) == null || f.forEach((g) => {
|
|
3285
|
-
const C = g == null ? void 0 : g.text, E = g == null ? void 0 : g.name;
|
|
3286
|
-
let P;
|
|
3287
|
-
try {
|
|
3288
|
-
P = new Function(`return ${C}`)();
|
|
3289
|
-
} catch (T) {
|
|
3290
|
-
he.error(`Failed to compile class "${E}":`, T);
|
|
3291
|
-
return;
|
|
3292
|
-
}
|
|
3293
|
-
window[E] = P;
|
|
3294
|
-
});
|
|
3295
|
-
} catch (x) {
|
|
3296
|
-
he.error("insert js to head fail", x);
|
|
3297
|
-
}
|
|
3298
|
-
},
|
|
3299
|
-
removeGlobalFunctionsToHtml: (u, l = n) => {
|
|
3300
|
-
var f = r(u, l);
|
|
3301
|
-
s(f);
|
|
3302
|
-
},
|
|
3303
|
-
removeCustomCssToHead: t
|
|
3304
|
-
};
|
|
3305
|
-
}, Ti = (e) => {
|
|
3306
|
-
const t = window.onresize;
|
|
3307
|
-
typeof window.onresize != "function" ? window.onresize = e : window.onresize = () => {
|
|
3308
|
-
t && t(), e();
|
|
3309
|
-
};
|
|
3310
|
-
}, wt = [
|
|
3311
|
-
"width",
|
|
3312
|
-
"height",
|
|
3313
|
-
"display",
|
|
3314
|
-
"margin",
|
|
3315
|
-
"margin-left",
|
|
3316
|
-
"margin-right",
|
|
3317
|
-
"margin-top",
|
|
3318
|
-
"margin-bottom"
|
|
3319
|
-
], Ci = (e, t, i) => {
|
|
3320
|
-
const s = {};
|
|
3321
|
-
return t.forEach((r) => {
|
|
3322
|
-
var n = e[r];
|
|
3323
|
-
Ue(n) || (s[r] = i ? i(r, n) : n);
|
|
3324
|
-
}), s;
|
|
3325
|
-
}, _i = (e, t, i) => {
|
|
3326
|
-
var r;
|
|
3327
|
-
const s = {};
|
|
3328
|
-
return (r = Tt(e)) == null || r.forEach((n) => {
|
|
3329
|
-
var o = e[n];
|
|
3330
|
-
t != null && t.includes(n) || (s[n] = i ? i(n, o) : o);
|
|
3331
|
-
}), s;
|
|
3332
|
-
}, At = (e, t) => ["width", "height", "display"].includes(e) ? Ue(t) || t == "auto" ? t : `${t} !important` : t, Li = (e) => new Promise((t) => {
|
|
3333
|
-
qe(e).then((i) => {
|
|
3334
|
-
var s = i == null ? void 0 : i.map((r) => ({ selector: r.selector, declarations: Ci(r.declarations, wt, At) }));
|
|
3335
|
-
He(s).then((r) => {
|
|
3336
|
-
t(r);
|
|
3337
|
-
});
|
|
3338
|
-
});
|
|
3339
|
-
}), Ri = (e) => new Promise((t) => {
|
|
3340
|
-
qe(e).then((i) => {
|
|
3341
|
-
var s = i == null ? void 0 : i.map((r) => ({ selector: r.selector, declarations: _i(r.declarations, wt, At) }));
|
|
3342
|
-
He(s).then((r) => {
|
|
3343
|
-
t(r);
|
|
3344
|
-
});
|
|
3345
|
-
});
|
|
3346
|
-
}), Oi = (e, t) => {
|
|
3347
|
-
if (!t || !e)
|
|
3348
|
-
return;
|
|
3349
|
-
const i = Nt(e, ":root", `.${t}`), { insertCustomCssToHead: s } = yi();
|
|
3350
|
-
s(i, void 0, t);
|
|
3351
|
-
}, Fi = (e, t = !0, i) => {
|
|
3352
|
-
if (i != null && i === !1)
|
|
3353
|
-
return [];
|
|
3354
|
-
const s = Si(e);
|
|
3355
|
-
return t || (e == null ? void 0 : e.length) <= 0 ? s : s == null ? void 0 : s.filter((r) => {
|
|
3356
|
-
var n;
|
|
3357
|
-
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;
|
|
3358
|
-
});
|
|
3359
|
-
}, Bi = (e, t) => e == null ? void 0 : e.find((i) => (i == null ? void 0 : i.slotName) === t), Si = (e) => Me(e);
|
|
3360
3105
|
export {
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3106
|
+
he as Node,
|
|
3107
|
+
y as Parser,
|
|
3108
|
+
X as Position,
|
|
3109
|
+
re as SourceLocation,
|
|
3110
|
+
N as TokContext,
|
|
3111
|
+
ke as Token,
|
|
3112
|
+
v as TokenType,
|
|
3113
|
+
xe as defaultOptions,
|
|
3114
|
+
Oe as getLineInfo,
|
|
3115
|
+
F as isIdentifierChar,
|
|
3116
|
+
V as isIdentifierStart,
|
|
3117
|
+
H as isNewLine,
|
|
3118
|
+
ge as keywordTypes,
|
|
3119
|
+
w as lineBreak,
|
|
3120
|
+
vt as lineBreakG,
|
|
3121
|
+
Le as nonASCIIwhitespace,
|
|
3122
|
+
Xt as parse,
|
|
3123
|
+
Zt as parseExpressionAt,
|
|
3124
|
+
b as tokContexts,
|
|
3125
|
+
a as tokTypes,
|
|
3126
|
+
Jt as tokenizer,
|
|
3127
|
+
Yt as version
|
|
3371
3128
|
};
|