hlrender 0.0.271 → 0.0.272
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/{_pdf-d9a40777.js → _pdf-e1a1506a.js} +6 -6
- package/{_txt-779215de.js → _txt-97439bbf.js} +6 -6
- package/{_unsupport-11c224ea.js → _unsupport-a9cf76e3.js} +1 -1
- package/{acorn-a3705767.js → acorn-9c779d02.js} +383 -363
- package/{affix-widget-1ca05f05.js → affix-widget-a4356ebe.js} +16 -16
- package/{alert-widget-a222ed6c.js → alert-widget-3ce43ccb.js} +16 -16
- package/{anchor-widget-04c82b33.js → anchor-widget-d359f5b9.js} +13 -13
- package/{auto-complete-widget-f8b2445d.js → auto-complete-widget-20c5cafa.js} +16 -16
- package/{avatar-widget-b38821d0.js → avatar-widget-761f2521.js} +16 -16
- package/{backtop-widget-9d378a2f.js → backtop-widget-11b3a6c3.js} +16 -16
- package/{badge-widget-9534f20e.js → badge-widget-f3665d09.js} +16 -16
- package/{barcode-widget-f4fcaa0f.js → barcode-widget-7e4a9662.js} +13 -13
- package/{baseImp-abeb2a37.js → baseImp-8fc5fcd1.js} +8 -8
- package/{breadcrumb-widget-673c7a2f.js → breadcrumb-widget-f089673b.js} +13 -13
- package/{button-widget-c41e0f7a.js → button-widget-727fa1fe.js} +16 -16
- package/{cache-widget-8fa9b35f.js → cache-widget-0f398e05.js} +15 -15
- package/{card-widget-ad2c610b.js → card-widget-88bd62c6.js} +14 -14
- package/{carousel-widget-b35168d5.js → carousel-widget-865fba4a.js} +14 -14
- package/{cascader-widget-17650373.js → cascader-widget-04d87b8c.js} +15 -15
- package/{chart-widget-14386d8f.js → chart-widget-74cf9fec.js} +14 -14
- package/{checkbox-widget-d7d0a527.js → checkbox-widget-5fc7b8bc.js} +15 -15
- package/{collapse-widget-9e8abc6a.js → collapse-widget-b90f22e2.js} +14 -14
- package/{color-picker-widget-97f49451.js → color-picker-widget-ff3b4581.js} +15 -15
- package/{cont-cell-widget-9df9b40b.js → cont-cell-widget-df9ae523.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-eafe53cb.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d7ef5014.js} +5 -5
- package/{cont-widget-2bfd31e0.js → cont-widget-5d43a638.js} +5 -5
- package/{content-wrapper-de0522d3.js → content-wrapper-983bcc73.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-d99fe16f.js → content-wrapper.vue_vue_type_script_setup_true_lang-451c0a3d.js} +3 -3
- package/{countdown-widget-9c3f9976.js → countdown-widget-bdf4a740.js} +16 -16
- package/{date-picker-range-widget-7197aaa8.js → date-picker-range-widget-15987f45.js} +15 -15
- package/{date-picker-widget-e2b9f2f8.js → date-picker-widget-09025df8.js} +15 -15
- package/default-slot-widget-b7f721b4.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-41b425e5.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-30ef70a9.js} +7 -7
- package/{descriptions-widget-dec0b036.js → descriptions-widget-a8b170d1.js} +14 -14
- package/{dialog-4850d56d.js → dialog-6b873daf.js} +2 -2
- package/{dialog-widget-be9b3797.js → dialog-widget-6e7d309c.js} +15 -15
- package/{divider-widget-93a554fe.js → divider-widget-c80c6738.js} +16 -16
- package/{drag-wrapper-f04034ce.js → drag-wrapper-42c5afd6.js} +6 -6
- package/{drawer-widget-14a69463.js → drawer-widget-92e02bd2.js} +15 -15
- package/{dropdown-widget-4652463a.js → dropdown-widget-ed6a34f7.js} +14 -14
- package/{empty-widget-96fa0a32.js → empty-widget-f726c9bb.js} +16 -16
- package/{enum-type-e8284724.js → enum-type-6c255e6f.js} +21 -20
- package/{enum-type-821969ff.js → enum-type-fac871cf.js} +1 -1
- package/{expression-210ee179.js → expression-2e171e7f.js} +2 -2
- package/feedback-widget-a267ad23.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-17dca64d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-1daef632.js} +6 -6
- package/{fieldobj-b2759018.js → fieldobj-41bfe99f.js} +1 -1
- package/{file-upload-widget-bae7c194.js → file-upload-widget-d4d34448.js} +20 -20
- package/{form-item-wrapper-9368361a.js → form-item-wrapper-8744cd1f.js} +11 -11
- package/{form-widget-70e25bc5.js → form-widget-4ae7d32e.js} +10 -10
- package/{grid-col-widget-5177fd3c.js → grid-col-widget-f46ee9b9.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d70995fe.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4e973337.js} +5 -5
- package/{grid-widget-ac451d8f.js → grid-widget-06e4c099.js} +5 -5
- package/{hcard-widget-31ffc505.js → hcard-widget-a584b7e9.js} +14 -14
- package/{html-text-widget-057e2c81.js → html-text-widget-255fe86b.js} +14 -14
- package/{icon-widget-9321b00c.js → icon-widget-3f3d68d9.js} +13 -13
- package/{iframe-widget-448de707.js → iframe-widget-a2c32d14.js} +13 -13
- package/{image-widget-4426c31b.js → image-widget-95731da3.js} +13 -13
- package/{index-a9af86b2.js → index-348deabd.js} +5 -5
- package/{index-e576cce8.js → index-35c49dd8.js} +4 -4
- package/{index-c570d26f.js → index-67c61ead.js} +1 -1
- package/{input-number-widget-591b9169.js → input-number-widget-e64f1066.js} +15 -15
- package/{input-tag-widget-a66bead6.js → input-tag-widget-72f5ffe4.js} +16 -16
- package/{input-widget-bb06e58f.js → input-widget-0af8dc8f.js} +16 -16
- package/{label-wrapper-c0cb72b0.js → label-wrapper-4bcc17bf.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-ef4af017.js → label-wrapper.vue_vue_type_style_index_0_lang-258b8a5f.js} +3 -3
- package/{link-widget-dbaf1194.js → link-widget-c0d3163d.js} +16 -16
- package/{ltable-col-widget-06da0d85.js → ltable-col-widget-af7b1535.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d6175e2a.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6f7af3ed.js} +9 -9
- package/{ltable-widget-940c29fe.js → ltable-widget-bfd04c97.js} +5 -5
- package/{mention-widget-88a6a312.js → mention-widget-66a6a8f9.js} +16 -16
- package/{menu-widget-2420a7b3.js → menu-widget-b0f7df61.js} +14 -14
- package/{model-widget-41fc81a9.js → model-widget-a310d47d.js} +13 -13
- package/{multirow-8c8c1a1c.js → multirow-7c1d3611.js} +6 -6
- package/{multirow-widget-025071d0.js → multirow-widget-3c4ffedf.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-3eb480aa.js → pagination-widget-931e32bf.js} +13 -13
- package/{picture-upload-widget-929da600.js → picture-upload-widget-024f7208.js} +16 -16
- package/{progress-widget-22d70c03.js → progress-widget-d39751ef.js} +14 -14
- package/{qrcode-widget-2f89ffdd.js → qrcode-widget-0e94e6cd.js} +13 -13
- package/{radio-widget-08914fe3.js → radio-widget-c0b6bda6.js} +15 -15
- package/{range-widget-6226b290.js → range-widget-eb0bb679.js} +16 -16
- package/{rate-widget-d30a11a0.js → rate-widget-5163cce2.js} +15 -15
- package/render.es.js +261 -4368
- package/render.style.css +1 -1
- package/render.umd.js +649 -836
- package/{result-widget-ec2e17d8.js → result-widget-0e72b0d2.js} +14 -14
- package/{rich-editor-widget-4553f0b3.js → rich-editor-widget-5a6d29eb.js} +15 -15
- package/{router-widget-90d0c80c.js → router-widget-cccd7536.js} +13 -13
- package/{segmented-widget-50526ab2.js → segmented-widget-6e2c42f6.js} +13 -13
- package/{select-widget-37539c47.js → select-widget-97c0e613.js} +15 -15
- package/{sfc-2967c502.js → sfc-44f6eaf9.js} +8 -8
- package/{sfcview-f00d8462.js → sfcview-14201ef8.js} +7 -7
- package/{share-field-9f1cb50f.js → share-field-c413e55b.js} +8 -8
- package/{share-file-5fa2e2cd.js → share-file-195aab56.js} +6 -6
- package/{skeleton-widget-9150011c.js → skeleton-widget-bc86227a.js} +16 -16
- package/{skeletonItem-widget-d38b0a90.js → skeletonItem-widget-a258a8d3.js} +13 -13
- package/{slider-widget-288f6702.js → slider-widget-f903dd0c.js} +15 -15
- package/{slot-ad19c21b.js → slot-41107354.js} +4 -4
- package/{space-widget-97b7185c.js → space-widget-68c2bf83.js} +14 -14
- package/{splitter-widget-65a53ba2.js → splitter-widget-fbf0abf0.js} +14 -14
- package/{static-text-widget-d89d5e62.js → static-text-widget-5c0e3989.js} +14 -14
- package/{statistic-widget-df2fe9b8.js → statistic-widget-9e693460.js} +16 -16
- package/{steps-widget-9c28fcee.js → steps-widget-46f2f124.js} +13 -13
- package/{subMenu-widget-33dcd48f.js → subMenu-widget-9f88f073.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-e3caebf5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-ec228fc3.js} +3 -3
- package/{switch-widget-8fc9b33a.js → switch-widget-4bf3daab.js} +15 -15
- package/{tab-pane-widget-d491f7b3.js → tab-pane-widget-94ce9730.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-a7438f4f.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-2d3cdb4b.js} +5 -5
- package/table-col-widget-4bf92711.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-cf3d86a5.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-16cf8609.js} +7 -7
- package/{table-widget-0bd33b64.js → table-widget-c87c77f0.js} +15 -15
- package/{tabs-widget-c4f01f55.js → tabs-widget-73c16831.js} +7 -7
- package/{tag-widget-b7b80a67.js → tag-widget-16128049.js} +16 -16
- package/{text-widget-bd886234.js → text-widget-8ceb7058.js} +16 -16
- package/{textarea-widget-95e15e73.js → textarea-widget-13b18d40.js} +15 -15
- package/{time-picker-range-widget-218a4cc1.js → time-picker-range-widget-a6257007.js} +15 -15
- package/{time-picker-widget-560fd246.js → time-picker-widget-5e1fda13.js} +15 -15
- package/{time-select-widget-2321ace4.js → time-select-widget-606fde34.js} +15 -15
- package/{timeline-widget-5403688d.js → timeline-widget-686d2630.js} +14 -14
- package/{tmpl-widget-2a266e05.js → tmpl-widget-05119bdd.js} +14 -14
- package/{tooltip-widget-23eb75ae.js → tooltip-widget-4ba2bc37.js} +14 -14
- package/{tour-widget-f15603a8.js → tour-widget-b8f0de0f.js} +13 -13
- package/{transfer-widget-fd8b8b84.js → transfer-widget-404ba171.js} +16 -16
- package/{tree-select-widget-fbb87b01.js → tree-select-widget-ede67c5e.js} +15 -15
- package/{tree-widget-f2e60f90.js → tree-widget-f815c52f.js} +13 -13
- package/{uuid-49619f7f.js → uuid-42d0510c.js} +1 -1
- package/{verifycode-widget-b119fa5a.js → verifycode-widget-486a92e1.js} +13 -13
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-75cdd1d4.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-4889bd91.js} +7 -7
- package/{wrapper-widget-be62bae5.js → wrapper-widget-d05fa663.js} +6 -6
- package/default-slot-widget-4c853fe1.js +0 -27
- package/feedback-widget-60ac9471.js +0 -27
- package/index-41ca1a9d.js +0 -44650
- package/table-col-widget-27804624.js +0 -23
- package/xlsx-999c0f09.js +0 -25068
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ft = [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, 78, 5, 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, 199, 7, 137, 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, 55, 9, 266, 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, 233, 0, 3, 0, 8, 1, 6, 0, 475, 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, 7, 25, 39, 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, 5, 57, 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, 24, 43, 261, 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, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 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, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 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, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], dt = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ve = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", le = {
|
|
2
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",
|
|
3
3
|
5: "class enum extends super const export import",
|
|
4
4
|
6: "enum",
|
|
5
5
|
strict: "implements interface let package private protected public static yield",
|
|
6
6
|
strictBind: "eval arguments"
|
|
7
|
-
},
|
|
8
|
-
5:
|
|
9
|
-
"5module":
|
|
10
|
-
6:
|
|
11
|
-
},
|
|
7
|
+
}, pe = "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", xt = {
|
|
8
|
+
5: pe,
|
|
9
|
+
"5module": pe + " export import",
|
|
10
|
+
6: pe + " const class extends export import super"
|
|
11
|
+
}, Te = /^in(stanceof)?$/, mt = new RegExp("[" + Ve + "]"), vt = new RegExp("[" + Ve + dt + "]");
|
|
12
12
|
function de(e, t) {
|
|
13
13
|
for (var i = 65536, s = 0; s < t.length; s += 2) {
|
|
14
14
|
if (i += t[s], i > e)
|
|
@@ -18,11 +18,11 @@ function de(e, t) {
|
|
|
18
18
|
}
|
|
19
19
|
return !1;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
21
|
+
function T(e, t) {
|
|
22
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && mt.test(String.fromCharCode(e)) : t === !1 ? !1 : de(e, Ne);
|
|
23
23
|
}
|
|
24
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 &&
|
|
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 && vt.test(String.fromCharCode(e)) : t === !1 ? !1 : de(e, Ne) || de(e, ft);
|
|
26
26
|
}
|
|
27
27
|
var v = function(t, i) {
|
|
28
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;
|
|
@@ -127,23 +127,23 @@ var a = {
|
|
|
127
127
|
_typeof: m("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
128
128
|
_void: m("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
129
129
|
_delete: m("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
130
|
-
}, w = /\r\n?|\n|\u2028|\u2029/,
|
|
131
|
-
function
|
|
130
|
+
}, w = /\r\n?|\n|\u2028|\u2029/, gt = new RegExp(w.source, "g");
|
|
131
|
+
function z(e) {
|
|
132
132
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Le(e, t, i) {
|
|
135
135
|
i === void 0 && (i = e.length);
|
|
136
136
|
for (var s = t; s < i; s++) {
|
|
137
137
|
var r = e.charCodeAt(s);
|
|
138
|
-
if (
|
|
138
|
+
if (z(r))
|
|
139
139
|
return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
|
|
140
140
|
}
|
|
141
141
|
return -1;
|
|
142
142
|
}
|
|
143
|
-
var
|
|
144
|
-
return
|
|
143
|
+
var Re = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, C = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Oe = Object.prototype, bt = Oe.hasOwnProperty, yt = Oe.toString, K = Object.hasOwn || function(e, t) {
|
|
144
|
+
return bt.call(e, t);
|
|
145
145
|
}, we = Array.isArray || function(e) {
|
|
146
|
-
return
|
|
146
|
+
return yt.call(e) === "[object Array]";
|
|
147
147
|
}, Ae = /* @__PURE__ */ Object.create(null);
|
|
148
148
|
function D(e) {
|
|
149
149
|
return Ae[e] || (Ae[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
@@ -151,20 +151,20 @@ function D(e) {
|
|
|
151
151
|
function R(e) {
|
|
152
152
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var _t = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Z = function(t, i) {
|
|
155
155
|
this.line = t, this.column = i;
|
|
156
156
|
};
|
|
157
|
-
|
|
158
|
-
return new
|
|
157
|
+
Z.prototype.offset = function(t) {
|
|
158
|
+
return new Z(this.line, this.column + t);
|
|
159
159
|
};
|
|
160
160
|
var re = function(t, i, s) {
|
|
161
161
|
this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function Be(e, t) {
|
|
164
164
|
for (var i = 1, s = 0; ; ) {
|
|
165
|
-
var r =
|
|
165
|
+
var r = Le(e, s, t);
|
|
166
166
|
if (r < 0)
|
|
167
|
-
return new
|
|
167
|
+
return new Z(i, t - s);
|
|
168
168
|
++i, s = r;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -177,7 +177,7 @@ var xe = {
|
|
|
177
177
|
// for new syntax features.
|
|
178
178
|
ecmaVersion: null,
|
|
179
179
|
// `sourceType` indicates the mode the code should be parsed in.
|
|
180
|
-
// Can be either `"script"` or `"
|
|
180
|
+
// Can be either `"script"`, `"module"` or `"commonjs"`. This influences global
|
|
181
181
|
// strict mode and parsing of `import` and `export` declarations.
|
|
182
182
|
sourceType: "script",
|
|
183
183
|
// `onInsertedSemicolon` can be a callback that will be called when
|
|
@@ -265,10 +265,10 @@ var xe = {
|
|
|
265
265
|
// (non-standard) ParenthesizedExpression nodes
|
|
266
266
|
preserveParens: !1
|
|
267
267
|
}, Ee = !1;
|
|
268
|
-
function
|
|
268
|
+
function Ct(e) {
|
|
269
269
|
var t = {};
|
|
270
270
|
for (var i in xe)
|
|
271
|
-
t[i] = e &&
|
|
271
|
+
t[i] = e && K(e, i) ? e[i] : xe[i];
|
|
272
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
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)) {
|
|
274
274
|
var s = t.onToken;
|
|
@@ -276,9 +276,11 @@ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion
|
|
|
276
276
|
return s.push(r);
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
if (we(t.onComment) && (t.onComment = St(t, t.onComment)), t.sourceType === "commonjs" && t.allowAwaitOutsideFunction)
|
|
280
|
+
throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
|
|
281
|
+
return t;
|
|
280
282
|
}
|
|
281
|
-
function
|
|
283
|
+
function St(e, t) {
|
|
282
284
|
return function(i, s, r, n, u, o) {
|
|
283
285
|
var h = {
|
|
284
286
|
type: i ? "Block" : "Line",
|
|
@@ -289,61 +291,70 @@ function Ct(e, t) {
|
|
|
289
291
|
e.locations && (h.loc = new re(this, u, o)), e.ranges && (h.range = [r, n]), t.push(h);
|
|
290
292
|
};
|
|
291
293
|
}
|
|
292
|
-
var
|
|
294
|
+
var U = 1, q = 2, be = 4, De = 8, ye = 16, Fe = 32, ne = 64, Me = 128, j = 256, J = 512, Ue = 1024, ue = U | q | j;
|
|
293
295
|
function _e(e, t) {
|
|
294
|
-
return
|
|
296
|
+
return q | (e ? be : 0) | (t ? De : 0);
|
|
295
297
|
}
|
|
296
|
-
var te = 0, Ce = 1, B = 2,
|
|
297
|
-
this.options = t =
|
|
298
|
+
var te = 0, Ce = 1, B = 2, qe = 3, je = 4, Ge = 5, y = function(t, i, s) {
|
|
299
|
+
this.options = t = Ct(t), this.sourceFile = t.sourceFile, this.keywords = D(xt[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
298
300
|
var r = "";
|
|
299
|
-
t.allowReserved !== !0 && (r =
|
|
300
|
-
var n = (r ? r + " " : "") +
|
|
301
|
-
this.reservedWordsStrict = D(n), this.reservedWordsStrictBind = D(n + " " +
|
|
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(
|
|
303
|
-
|
|
301
|
+
t.allowReserved !== !0 && (r = le[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = D(r);
|
|
302
|
+
var n = (r ? r + " " : "") + le.strict;
|
|
303
|
+
this.reservedWordsStrict = D(n), this.reservedWordsStrictBind = D(n + " " + le.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
304
|
+
`, 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(
|
|
305
|
+
this.options.sourceType === "commonjs" ? q : U
|
|
306
|
+
), this.regexpState = null, this.privateNameStack = [];
|
|
307
|
+
}, P = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowReturn: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, allowUsing: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
304
308
|
y.prototype.parse = function() {
|
|
305
309
|
var t = this.options.program || this.startNode();
|
|
306
310
|
return this.nextToken(), this.parseTopLevel(t);
|
|
307
311
|
};
|
|
308
|
-
|
|
309
|
-
return (this.currentVarScope().flags &
|
|
312
|
+
P.inFunction.get = function() {
|
|
313
|
+
return (this.currentVarScope().flags & q) > 0;
|
|
310
314
|
};
|
|
311
|
-
|
|
312
|
-
return (this.currentVarScope().flags &
|
|
315
|
+
P.inGenerator.get = function() {
|
|
316
|
+
return (this.currentVarScope().flags & De) > 0;
|
|
313
317
|
};
|
|
314
|
-
|
|
318
|
+
P.inAsync.get = function() {
|
|
315
319
|
return (this.currentVarScope().flags & be) > 0;
|
|
316
320
|
};
|
|
317
|
-
|
|
321
|
+
P.canAwait.get = function() {
|
|
318
322
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
319
323
|
var t = this.scopeStack[e], i = t.flags;
|
|
320
|
-
if (i & (
|
|
324
|
+
if (i & (j | J))
|
|
321
325
|
return !1;
|
|
322
|
-
if (i &
|
|
326
|
+
if (i & q)
|
|
323
327
|
return (i & be) > 0;
|
|
324
328
|
}
|
|
325
329
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
326
330
|
};
|
|
327
|
-
|
|
331
|
+
P.allowReturn.get = function() {
|
|
332
|
+
return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & U);
|
|
333
|
+
};
|
|
334
|
+
P.allowSuper.get = function() {
|
|
328
335
|
var e = this.currentThisScope(), t = e.flags;
|
|
329
336
|
return (t & ne) > 0 || this.options.allowSuperOutsideMethod;
|
|
330
337
|
};
|
|
331
|
-
|
|
332
|
-
return (this.currentThisScope().flags &
|
|
338
|
+
P.allowDirectSuper.get = function() {
|
|
339
|
+
return (this.currentThisScope().flags & Me) > 0;
|
|
333
340
|
};
|
|
334
|
-
|
|
341
|
+
P.treatFunctionsAsVar.get = function() {
|
|
335
342
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
336
343
|
};
|
|
337
|
-
|
|
344
|
+
P.allowNewDotTarget.get = function() {
|
|
338
345
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
339
346
|
var t = this.scopeStack[e], i = t.flags;
|
|
340
|
-
if (i & (
|
|
347
|
+
if (i & (j | J) || i & q && !(i & ye))
|
|
341
348
|
return !0;
|
|
342
349
|
}
|
|
343
350
|
return !1;
|
|
344
351
|
};
|
|
345
|
-
|
|
346
|
-
|
|
352
|
+
P.allowUsing.get = function() {
|
|
353
|
+
var e = this.currentScope(), t = e.flags;
|
|
354
|
+
return !(t & Ue || !this.inModule && t & U);
|
|
355
|
+
};
|
|
356
|
+
P.inClassStaticBlock.get = function() {
|
|
357
|
+
return (this.currentVarScope().flags & j) > 0;
|
|
347
358
|
};
|
|
348
359
|
y.extend = function() {
|
|
349
360
|
for (var t = [], i = arguments.length; i--; )
|
|
@@ -362,14 +373,14 @@ y.parseExpressionAt = function(t, i, s) {
|
|
|
362
373
|
y.tokenizer = function(t, i) {
|
|
363
374
|
return new this(i, t);
|
|
364
375
|
};
|
|
365
|
-
Object.defineProperties(y.prototype,
|
|
366
|
-
var S = y.prototype,
|
|
376
|
+
Object.defineProperties(y.prototype, P);
|
|
377
|
+
var S = y.prototype, kt = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
367
378
|
S.strictDirective = function(e) {
|
|
368
379
|
if (this.options.ecmaVersion < 5)
|
|
369
380
|
return !1;
|
|
370
381
|
for (; ; ) {
|
|
371
382
|
C.lastIndex = e, e += C.exec(this.input)[0].length;
|
|
372
|
-
var t =
|
|
383
|
+
var t = kt.exec(this.input.slice(e));
|
|
373
384
|
if (!t)
|
|
374
385
|
return !1;
|
|
375
386
|
if ((t[1] || t[2]) === "use strict") {
|
|
@@ -436,8 +447,8 @@ S.checkYieldAwaitInDefaultParams = function() {
|
|
|
436
447
|
S.isSimpleAssignTarget = function(e) {
|
|
437
448
|
return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
|
|
438
449
|
};
|
|
439
|
-
var
|
|
440
|
-
|
|
450
|
+
var l = y.prototype;
|
|
451
|
+
l.parseTopLevel = function(e) {
|
|
441
452
|
var t = /* @__PURE__ */ Object.create(null);
|
|
442
453
|
for (e.body || (e.body = []); this.type !== a.eof; ) {
|
|
443
454
|
var i = this.parseStatement(null, !0, t);
|
|
@@ -448,39 +459,41 @@ p.parseTopLevel = function(e) {
|
|
|
448
459
|
var n = r[s];
|
|
449
460
|
this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
|
|
450
461
|
}
|
|
451
|
-
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
462
|
+
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
|
|
452
463
|
};
|
|
453
|
-
var Se = { kind: "loop" },
|
|
454
|
-
|
|
464
|
+
var Se = { kind: "loop" }, wt = { kind: "switch" };
|
|
465
|
+
l.isLet = function(e) {
|
|
455
466
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
456
467
|
return !1;
|
|
457
468
|
C.lastIndex = this.pos;
|
|
458
|
-
var t = C.exec(this.input), i = this.pos + t[0].length, s = this.
|
|
469
|
+
var t = C.exec(this.input), i = this.pos + t[0].length, s = this.fullCharCodeAt(i);
|
|
459
470
|
if (s === 91 || s === 92)
|
|
460
471
|
return !0;
|
|
461
472
|
if (e)
|
|
462
473
|
return !1;
|
|
463
|
-
if (s === 123
|
|
474
|
+
if (s === 123)
|
|
464
475
|
return !0;
|
|
465
|
-
if (
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
476
|
+
if (T(s)) {
|
|
477
|
+
var r = i;
|
|
478
|
+
do
|
|
479
|
+
i += s <= 65535 ? 1 : 2;
|
|
480
|
+
while (F(s = this.fullCharCodeAt(i)));
|
|
481
|
+
if (s === 92)
|
|
469
482
|
return !0;
|
|
470
|
-
var n = this.input.slice(
|
|
471
|
-
if (!
|
|
483
|
+
var n = this.input.slice(r, i);
|
|
484
|
+
if (!Te.test(n))
|
|
472
485
|
return !0;
|
|
473
486
|
}
|
|
474
487
|
return !1;
|
|
475
488
|
};
|
|
476
|
-
|
|
489
|
+
l.isAsyncFunction = function() {
|
|
477
490
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
478
491
|
return !1;
|
|
479
492
|
C.lastIndex = this.pos;
|
|
480
493
|
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.
|
|
494
|
+
return !w.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(F(i = this.fullCharCodeAt(t + 8)) || i === 92));
|
|
482
495
|
};
|
|
483
|
-
|
|
496
|
+
l.isUsingKeyword = function(e, t) {
|
|
484
497
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
485
498
|
return !1;
|
|
486
499
|
C.lastIndex = this.pos;
|
|
@@ -489,28 +502,32 @@ p.isUsingKeyword = function(e, t) {
|
|
|
489
502
|
return !1;
|
|
490
503
|
if (e) {
|
|
491
504
|
var r = s + 5, n;
|
|
492
|
-
if (this.input.slice(s, r) !== "using" || r === this.input.length || F(n = this.
|
|
505
|
+
if (this.input.slice(s, r) !== "using" || r === this.input.length || F(n = this.fullCharCodeAt(r)) || n === 92)
|
|
493
506
|
return !1;
|
|
494
507
|
C.lastIndex = r;
|
|
495
508
|
var u = C.exec(this.input);
|
|
496
|
-
if (u && w.test(this.input.slice(r,
|
|
497
|
-
return !1;
|
|
498
|
-
}
|
|
499
|
-
if (t) {
|
|
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)))
|
|
509
|
+
if (s = r + u[0].length, u && w.test(this.input.slice(r, s)))
|
|
502
510
|
return !1;
|
|
503
511
|
}
|
|
504
|
-
var
|
|
505
|
-
|
|
512
|
+
var o = this.fullCharCodeAt(s);
|
|
513
|
+
if (!T(o) && o !== 92)
|
|
514
|
+
return !1;
|
|
515
|
+
var h = s;
|
|
516
|
+
do
|
|
517
|
+
s += o <= 65535 ? 1 : 2;
|
|
518
|
+
while (F(o = this.fullCharCodeAt(s)));
|
|
519
|
+
if (o === 92)
|
|
520
|
+
return !0;
|
|
521
|
+
var p = this.input.slice(h, s);
|
|
522
|
+
return !(Te.test(p) || t && p === "of");
|
|
506
523
|
};
|
|
507
|
-
|
|
524
|
+
l.isAwaitUsing = function(e) {
|
|
508
525
|
return this.isUsingKeyword(!0, e);
|
|
509
526
|
};
|
|
510
|
-
|
|
527
|
+
l.isUsing = function(e) {
|
|
511
528
|
return this.isUsingKeyword(!1, e);
|
|
512
529
|
};
|
|
513
|
-
|
|
530
|
+
l.parseStatement = function(e, t, i) {
|
|
514
531
|
var s = this.type, r = this.startNode(), n;
|
|
515
532
|
switch (this.isLet(e) && (s = a._var, n = "let"), s) {
|
|
516
533
|
case a._break:
|
|
@@ -559,14 +576,14 @@ p.parseStatement = function(e, t, i) {
|
|
|
559
576
|
default:
|
|
560
577
|
if (this.isAsyncFunction())
|
|
561
578
|
return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, !0, !e);
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
return
|
|
579
|
+
var p = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
|
|
580
|
+
if (p)
|
|
581
|
+
return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), p === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, p), this.semicolon(), this.finishNode(r, "VariableDeclaration");
|
|
565
582
|
var d = this.value, g = this.parseExpression();
|
|
566
583
|
return s === a.name && g.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, d, g, e) : this.parseExpressionStatement(r, g);
|
|
567
584
|
}
|
|
568
585
|
};
|
|
569
|
-
|
|
586
|
+
l.parseBreakContinueStatement = function(e, t) {
|
|
570
587
|
var i = t === "break";
|
|
571
588
|
this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
|
|
572
589
|
for (var s = 0; s < this.labels.length; ++s) {
|
|
@@ -576,13 +593,13 @@ p.parseBreakContinueStatement = function(e, t) {
|
|
|
576
593
|
}
|
|
577
594
|
return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
|
|
578
595
|
};
|
|
579
|
-
|
|
596
|
+
l.parseDebuggerStatement = function(e) {
|
|
580
597
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
581
598
|
};
|
|
582
|
-
|
|
599
|
+
l.parseDoStatement = function(e) {
|
|
583
600
|
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");
|
|
584
601
|
};
|
|
585
|
-
|
|
602
|
+
l.parseForStatement = function(e) {
|
|
586
603
|
this.next();
|
|
587
604
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
588
605
|
if (this.labels.push(Se), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
|
|
@@ -595,25 +612,25 @@ p.parseForStatement = function(e) {
|
|
|
595
612
|
var n = this.isContextual("let"), u = !1, o = this.isUsing(!0) ? "using" : this.isAwaitUsing(!0) ? "await using" : null;
|
|
596
613
|
if (o) {
|
|
597
614
|
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);
|
|
615
|
+
return this.next(), o === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(h, !0, o), this.finishNode(h, "VariableDeclaration"), this.parseForAfterInit(e, h, t);
|
|
599
616
|
}
|
|
600
|
-
var
|
|
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 && !
|
|
617
|
+
var p = this.containsEsc, d = new oe(), g = this.start, _ = t > -1 ? this.parseExprSubscripts(d, "await") : this.parseExpression(!0, d);
|
|
618
|
+
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 && !p && _.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, _));
|
|
602
619
|
};
|
|
603
|
-
|
|
620
|
+
l.parseForAfterInit = function(e, t, i) {
|
|
604
621
|
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));
|
|
605
622
|
};
|
|
606
|
-
|
|
607
|
-
return this.next(), this.parseFunction(e,
|
|
623
|
+
l.parseFunctionStatement = function(e, t, i) {
|
|
624
|
+
return this.next(), this.parseFunction(e, X | (i ? 0 : me), !1, t);
|
|
608
625
|
};
|
|
609
|
-
|
|
626
|
+
l.parseIfStatement = function(e) {
|
|
610
627
|
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");
|
|
611
628
|
};
|
|
612
|
-
|
|
613
|
-
return
|
|
629
|
+
l.parseReturnStatement = function(e) {
|
|
630
|
+
return this.allowReturn || 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");
|
|
614
631
|
};
|
|
615
|
-
|
|
616
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(
|
|
632
|
+
l.parseSwitchStatement = function(e) {
|
|
633
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(wt), this.enterScope(Ue);
|
|
617
634
|
for (var t, i = !1; this.type !== a.braceR; )
|
|
618
635
|
if (this.type === a._case || this.type === a._default) {
|
|
619
636
|
var s = this.type === a._case;
|
|
@@ -622,68 +639,68 @@ p.parseSwitchStatement = function(e) {
|
|
|
622
639
|
t || this.unexpected(), t.consequent.push(this.parseStatement(null));
|
|
623
640
|
return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
|
|
624
641
|
};
|
|
625
|
-
|
|
642
|
+
l.parseThrowStatement = function(e) {
|
|
626
643
|
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");
|
|
627
644
|
};
|
|
628
|
-
var
|
|
629
|
-
|
|
645
|
+
var At = [];
|
|
646
|
+
l.parseCatchClauseParam = function() {
|
|
630
647
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
631
|
-
return this.enterScope(t ?
|
|
648
|
+
return this.enterScope(t ? Fe : 0), this.checkLValPattern(e, t ? je : B), this.expect(a.parenR), e;
|
|
632
649
|
};
|
|
633
|
-
|
|
650
|
+
l.parseTryStatement = function(e) {
|
|
634
651
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
|
|
635
652
|
var t = this.startNode();
|
|
636
653
|
this.next(), this.eat(a.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
|
|
637
654
|
}
|
|
638
655
|
return e.finalizer = this.eat(a._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
|
|
639
656
|
};
|
|
640
|
-
|
|
657
|
+
l.parseVarStatement = function(e, t, i) {
|
|
641
658
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
642
659
|
};
|
|
643
|
-
|
|
660
|
+
l.parseWhileStatement = function(e) {
|
|
644
661
|
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Se), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
645
662
|
};
|
|
646
|
-
|
|
663
|
+
l.parseWithStatement = function(e) {
|
|
647
664
|
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");
|
|
648
665
|
};
|
|
649
|
-
|
|
666
|
+
l.parseEmptyStatement = function(e) {
|
|
650
667
|
return this.next(), this.finishNode(e, "EmptyStatement");
|
|
651
668
|
};
|
|
652
|
-
|
|
669
|
+
l.parseLabeledStatement = function(e, t, i, s) {
|
|
653
670
|
for (var r = 0, n = this.labels; r < n.length; r += 1) {
|
|
654
671
|
var u = n[r];
|
|
655
672
|
u.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
|
|
656
673
|
}
|
|
657
674
|
for (var o = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, h = this.labels.length - 1; h >= 0; h--) {
|
|
658
|
-
var
|
|
659
|
-
if (
|
|
660
|
-
|
|
675
|
+
var p = this.labels[h];
|
|
676
|
+
if (p.statementStart === e.start)
|
|
677
|
+
p.statementStart = this.start, p.kind = o;
|
|
661
678
|
else
|
|
662
679
|
break;
|
|
663
680
|
}
|
|
664
681
|
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");
|
|
665
682
|
};
|
|
666
|
-
|
|
683
|
+
l.parseExpressionStatement = function(e, t) {
|
|
667
684
|
return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
|
|
668
685
|
};
|
|
669
|
-
|
|
686
|
+
l.parseBlock = function(e, t, i) {
|
|
670
687
|
for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
|
|
671
688
|
var s = this.parseStatement(null);
|
|
672
689
|
t.body.push(s);
|
|
673
690
|
}
|
|
674
691
|
return i && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
|
|
675
692
|
};
|
|
676
|
-
|
|
693
|
+
l.parseFor = function(e, t) {
|
|
677
694
|
return e.init = t, this.expect(a.semi), e.test = this.type === a.semi ? null : this.parseExpression(), this.expect(a.semi), e.update = this.type === a.parenR ? null : this.parseExpression(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
|
|
678
695
|
};
|
|
679
|
-
|
|
696
|
+
l.parseForIn = function(e, t) {
|
|
680
697
|
var i = this.type === a._in;
|
|
681
698
|
return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(
|
|
682
699
|
t.start,
|
|
683
700
|
(i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
|
|
684
701
|
), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
|
|
685
702
|
};
|
|
686
|
-
|
|
703
|
+
l.parseVar = function(e, t, i, s) {
|
|
687
704
|
for (e.declarations = [], e.kind = i; ; ) {
|
|
688
705
|
var r = this.startNode();
|
|
689
706
|
if (this.parseVarId(r, i), this.eat(a.eq) ? r.init = this.parseMaybeAssign(t) : !s && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !s && (i === "using" || i === "await using") && this.options.ecmaVersion >= 17 && this.type !== a._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : !s && r.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(a.comma))
|
|
@@ -691,30 +708,30 @@ p.parseVar = function(e, t, i, s) {
|
|
|
691
708
|
}
|
|
692
709
|
return e;
|
|
693
710
|
};
|
|
694
|
-
|
|
711
|
+
l.parseVarId = function(e, t) {
|
|
695
712
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ce : B, !1);
|
|
696
713
|
};
|
|
697
|
-
var
|
|
698
|
-
|
|
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 &
|
|
714
|
+
var X = 1, me = 2, He = 4;
|
|
715
|
+
l.parseFunction = function(e, t, i, s, r) {
|
|
716
|
+
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 & X && (e.id = t & He && 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 : qe));
|
|
700
717
|
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 &
|
|
718
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_e(e.async, e.generator)), t & X || (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 & X ? "FunctionDeclaration" : "FunctionExpression");
|
|
702
719
|
};
|
|
703
|
-
|
|
720
|
+
l.parseFunctionParams = function(e) {
|
|
704
721
|
this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
705
722
|
};
|
|
706
|
-
|
|
723
|
+
l.parseClass = function(e, t) {
|
|
707
724
|
this.next();
|
|
708
725
|
var i = this.strict;
|
|
709
726
|
this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
|
|
710
727
|
var s = this.enterClassBody(), r = this.startNode(), n = !1;
|
|
711
728
|
for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
|
|
712
729
|
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" &&
|
|
730
|
+
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" && Et(s, u) && this.raiseRecoverable(u.key.start, "Identifier '#" + u.key.name + "' has already been declared"));
|
|
714
731
|
}
|
|
715
732
|
return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
716
733
|
};
|
|
717
|
-
|
|
734
|
+
l.parseClassElement = function(e) {
|
|
718
735
|
if (this.eat(a.semi))
|
|
719
736
|
return null;
|
|
720
737
|
var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, n = !1, u = "method", o = !1;
|
|
@@ -728,55 +745,55 @@ p.parseClassElement = function(e) {
|
|
|
728
745
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? u = h : s = h);
|
|
729
746
|
}
|
|
730
747
|
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
|
|
732
|
-
|
|
748
|
+
var p = !i.static && ie(i, "constructor"), d = p && e;
|
|
749
|
+
p && u !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = p ? "constructor" : u, this.parseClassMethod(i, r, n, d);
|
|
733
750
|
} else
|
|
734
751
|
this.parseClassField(i);
|
|
735
752
|
return i;
|
|
736
753
|
};
|
|
737
|
-
|
|
754
|
+
l.isClassElementNameStart = function() {
|
|
738
755
|
return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
|
|
739
756
|
};
|
|
740
|
-
|
|
757
|
+
l.parseClassElementName = function(e) {
|
|
741
758
|
this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
|
|
742
759
|
};
|
|
743
|
-
|
|
760
|
+
l.parseClassMethod = function(e, t, i, s) {
|
|
744
761
|
var r = e.key;
|
|
745
762
|
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");
|
|
746
763
|
var n = e.value = this.parseMethod(t, i, s);
|
|
747
764
|
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");
|
|
748
765
|
};
|
|
749
|
-
|
|
766
|
+
l.parseClassField = function(e) {
|
|
750
767
|
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");
|
|
751
768
|
};
|
|
752
|
-
|
|
769
|
+
l.parseClassStaticBlock = function(e) {
|
|
753
770
|
e.body = [];
|
|
754
771
|
var t = this.labels;
|
|
755
|
-
for (this.labels = [], this.enterScope(
|
|
772
|
+
for (this.labels = [], this.enterScope(j | ne); this.type !== a.braceR; ) {
|
|
756
773
|
var i = this.parseStatement(null);
|
|
757
774
|
e.body.push(i);
|
|
758
775
|
}
|
|
759
776
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
760
777
|
};
|
|
761
|
-
|
|
778
|
+
l.parseClassId = function(e, t) {
|
|
762
779
|
this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, B, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
763
780
|
};
|
|
764
|
-
|
|
781
|
+
l.parseClassSuper = function(e) {
|
|
765
782
|
e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
766
783
|
};
|
|
767
|
-
|
|
784
|
+
l.enterClassBody = function() {
|
|
768
785
|
var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
769
786
|
return this.privateNameStack.push(e), e.declared;
|
|
770
787
|
};
|
|
771
|
-
|
|
788
|
+
l.exitClassBody = function() {
|
|
772
789
|
var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
|
|
773
790
|
if (this.options.checkPrivateFields)
|
|
774
791
|
for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
|
|
775
792
|
var u = i[n];
|
|
776
|
-
|
|
793
|
+
K(t, u.name) || (r ? r.used.push(u) : this.raiseRecoverable(u.start, "Private field '#" + u.name + "' must be declared in an enclosing class"));
|
|
777
794
|
}
|
|
778
795
|
};
|
|
779
|
-
function
|
|
796
|
+
function Et(e, t) {
|
|
780
797
|
var i = t.key.name, s = e[i], r = "true";
|
|
781
798
|
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);
|
|
782
799
|
}
|
|
@@ -784,10 +801,10 @@ function ie(e, t) {
|
|
|
784
801
|
var i = e.computed, s = e.key;
|
|
785
802
|
return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
|
|
786
803
|
}
|
|
787
|
-
|
|
804
|
+
l.parseExportAllDeclaration = function(e, t) {
|
|
788
805
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
|
|
789
806
|
};
|
|
790
|
-
|
|
807
|
+
l.parseExport = function(e, t) {
|
|
791
808
|
if (this.next(), this.eat(a.star))
|
|
792
809
|
return this.parseExportAllDeclaration(e, t);
|
|
793
810
|
if (this.eat(a._default))
|
|
@@ -808,14 +825,14 @@ p.parseExport = function(e, t) {
|
|
|
808
825
|
}
|
|
809
826
|
return this.finishNode(e, "ExportNamedDeclaration");
|
|
810
827
|
};
|
|
811
|
-
|
|
828
|
+
l.parseExportDeclaration = function(e) {
|
|
812
829
|
return this.parseStatement(null);
|
|
813
830
|
};
|
|
814
|
-
|
|
831
|
+
l.parseExportDefaultDeclaration = function() {
|
|
815
832
|
var e;
|
|
816
833
|
if (this.type === a._function || (e = this.isAsyncFunction())) {
|
|
817
834
|
var t = this.startNode();
|
|
818
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
835
|
+
return this.next(), e && this.next(), this.parseFunction(t, X | He, !1, e);
|
|
819
836
|
} else if (this.type === a._class) {
|
|
820
837
|
var i = this.startNode();
|
|
821
838
|
return this.parseClass(i, "nullableID");
|
|
@@ -824,10 +841,10 @@ p.parseExportDefaultDeclaration = function() {
|
|
|
824
841
|
return this.semicolon(), s;
|
|
825
842
|
}
|
|
826
843
|
};
|
|
827
|
-
|
|
828
|
-
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value),
|
|
844
|
+
l.checkExport = function(e, t, i) {
|
|
845
|
+
e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), K(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
|
|
829
846
|
};
|
|
830
|
-
|
|
847
|
+
l.checkPatternExport = function(e, t) {
|
|
831
848
|
var i = t.type;
|
|
832
849
|
if (i === "Identifier")
|
|
833
850
|
this.checkExport(e, t, t.start);
|
|
@@ -844,17 +861,17 @@ p.checkPatternExport = function(e, t) {
|
|
|
844
861
|
else
|
|
845
862
|
i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
|
|
846
863
|
};
|
|
847
|
-
|
|
864
|
+
l.checkVariableExport = function(e, t) {
|
|
848
865
|
if (e)
|
|
849
866
|
for (var i = 0, s = t; i < s.length; i += 1) {
|
|
850
867
|
var r = s[i];
|
|
851
868
|
this.checkPatternExport(e, r.id);
|
|
852
869
|
}
|
|
853
870
|
};
|
|
854
|
-
|
|
871
|
+
l.shouldParseExportStatement = function() {
|
|
855
872
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
856
873
|
};
|
|
857
|
-
|
|
874
|
+
l.parseExportSpecifier = function(e) {
|
|
858
875
|
var t = this.startNode();
|
|
859
876
|
return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(
|
|
860
877
|
e,
|
|
@@ -862,7 +879,7 @@ p.parseExportSpecifier = function(e) {
|
|
|
862
879
|
t.exported.start
|
|
863
880
|
), this.finishNode(t, "ExportSpecifier");
|
|
864
881
|
};
|
|
865
|
-
|
|
882
|
+
l.parseExportSpecifiers = function(e) {
|
|
866
883
|
var t = [], i = !0;
|
|
867
884
|
for (this.expect(a.braceL); !this.eat(a.braceR); ) {
|
|
868
885
|
if (i)
|
|
@@ -873,22 +890,22 @@ p.parseExportSpecifiers = function(e) {
|
|
|
873
890
|
}
|
|
874
891
|
return t;
|
|
875
892
|
};
|
|
876
|
-
|
|
877
|
-
return this.next(), this.type === a.string ? (e.specifiers =
|
|
893
|
+
l.parseImport = function(e) {
|
|
894
|
+
return this.next(), this.type === a.string ? (e.specifiers = At, 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");
|
|
878
895
|
};
|
|
879
|
-
|
|
896
|
+
l.parseImportSpecifier = function() {
|
|
880
897
|
var e = this.startNode();
|
|
881
898
|
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");
|
|
882
899
|
};
|
|
883
|
-
|
|
900
|
+
l.parseImportDefaultSpecifier = function() {
|
|
884
901
|
var e = this.startNode();
|
|
885
902
|
return e.local = this.parseIdent(), this.checkLValSimple(e.local, B), this.finishNode(e, "ImportDefaultSpecifier");
|
|
886
903
|
};
|
|
887
|
-
|
|
904
|
+
l.parseImportNamespaceSpecifier = function() {
|
|
888
905
|
var e = this.startNode();
|
|
889
906
|
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, B), this.finishNode(e, "ImportNamespaceSpecifier");
|
|
890
907
|
};
|
|
891
|
-
|
|
908
|
+
l.parseImportSpecifiers = function() {
|
|
892
909
|
var e = [], t = !0;
|
|
893
910
|
if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma)))
|
|
894
911
|
return e;
|
|
@@ -903,7 +920,7 @@ p.parseImportSpecifiers = function() {
|
|
|
903
920
|
}
|
|
904
921
|
return e;
|
|
905
922
|
};
|
|
906
|
-
|
|
923
|
+
l.parseWithClause = function() {
|
|
907
924
|
var e = [];
|
|
908
925
|
if (!this.eat(a._with))
|
|
909
926
|
return e;
|
|
@@ -914,30 +931,30 @@ p.parseWithClause = function() {
|
|
|
914
931
|
else if (this.expect(a.comma), this.afterTrailingComma(a.braceR))
|
|
915
932
|
break;
|
|
916
933
|
var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
|
|
917
|
-
|
|
934
|
+
K(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = !0, e.push(s);
|
|
918
935
|
}
|
|
919
936
|
return e;
|
|
920
937
|
};
|
|
921
|
-
|
|
938
|
+
l.parseImportAttribute = function() {
|
|
922
939
|
var e = this.startNode();
|
|
923
940
|
return e.key = this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(a.colon), this.type !== a.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
|
|
924
941
|
};
|
|
925
|
-
|
|
942
|
+
l.parseModuleExportName = function() {
|
|
926
943
|
if (this.options.ecmaVersion >= 13 && this.type === a.string) {
|
|
927
944
|
var e = this.parseLiteral(this.value);
|
|
928
|
-
return
|
|
945
|
+
return _t.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
929
946
|
}
|
|
930
947
|
return this.parseIdent(!0);
|
|
931
948
|
};
|
|
932
|
-
|
|
949
|
+
l.adaptDirectivePrologue = function(e) {
|
|
933
950
|
for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t)
|
|
934
951
|
e[t].directive = e[t].expression.raw.slice(1, -1);
|
|
935
952
|
};
|
|
936
|
-
|
|
953
|
+
l.isDirectiveCandidate = function(e) {
|
|
937
954
|
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] === "'");
|
|
938
955
|
};
|
|
939
|
-
var
|
|
940
|
-
|
|
956
|
+
var N = y.prototype;
|
|
957
|
+
N.toAssignable = function(e, t, i) {
|
|
941
958
|
if (this.options.ecmaVersion >= 6 && e)
|
|
942
959
|
switch (e.type) {
|
|
943
960
|
case "Identifier":
|
|
@@ -983,7 +1000,7 @@ P.toAssignable = function(e, t, i) {
|
|
|
983
1000
|
i && this.checkPatternErrors(i, !0);
|
|
984
1001
|
return e;
|
|
985
1002
|
};
|
|
986
|
-
|
|
1003
|
+
N.toAssignableList = function(e, t) {
|
|
987
1004
|
for (var i = e.length, s = 0; s < i; s++) {
|
|
988
1005
|
var r = e[s];
|
|
989
1006
|
r && this.toAssignable(r, t);
|
|
@@ -994,15 +1011,15 @@ P.toAssignableList = function(e, t) {
|
|
|
994
1011
|
}
|
|
995
1012
|
return e;
|
|
996
1013
|
};
|
|
997
|
-
|
|
1014
|
+
N.parseSpread = function(e) {
|
|
998
1015
|
var t = this.startNode();
|
|
999
1016
|
return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
|
|
1000
1017
|
};
|
|
1001
|
-
|
|
1018
|
+
N.parseRestBinding = function() {
|
|
1002
1019
|
var e = this.startNode();
|
|
1003
1020
|
return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
|
|
1004
1021
|
};
|
|
1005
|
-
|
|
1022
|
+
N.parseBindingAtom = function() {
|
|
1006
1023
|
if (this.options.ecmaVersion >= 6)
|
|
1007
1024
|
switch (this.type) {
|
|
1008
1025
|
case a.bracketL:
|
|
@@ -1013,7 +1030,7 @@ P.parseBindingAtom = function() {
|
|
|
1013
1030
|
}
|
|
1014
1031
|
return this.parseIdent();
|
|
1015
1032
|
};
|
|
1016
|
-
|
|
1033
|
+
N.parseBindingList = function(e, t, i, s) {
|
|
1017
1034
|
for (var r = [], n = !0; !this.eat(e); )
|
|
1018
1035
|
if (n ? n = !1 : this.expect(a.comma), t && this.type === a.comma)
|
|
1019
1036
|
r.push(null);
|
|
@@ -1029,25 +1046,25 @@ P.parseBindingList = function(e, t, i, s) {
|
|
|
1029
1046
|
}
|
|
1030
1047
|
return r;
|
|
1031
1048
|
};
|
|
1032
|
-
|
|
1049
|
+
N.parseAssignableListItem = function(e) {
|
|
1033
1050
|
var t = this.parseMaybeDefault(this.start, this.startLoc);
|
|
1034
1051
|
return this.parseBindingListItem(t), t;
|
|
1035
1052
|
};
|
|
1036
|
-
|
|
1053
|
+
N.parseBindingListItem = function(e) {
|
|
1037
1054
|
return e;
|
|
1038
1055
|
};
|
|
1039
|
-
|
|
1056
|
+
N.parseMaybeDefault = function(e, t, i) {
|
|
1040
1057
|
if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq))
|
|
1041
1058
|
return i;
|
|
1042
1059
|
var s = this.startNodeAt(e, t);
|
|
1043
1060
|
return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
|
|
1044
1061
|
};
|
|
1045
|
-
|
|
1062
|
+
N.checkLValSimple = function(e, t, i) {
|
|
1046
1063
|
t === void 0 && (t = te);
|
|
1047
1064
|
var s = t !== te;
|
|
1048
1065
|
switch (e.type) {
|
|
1049
1066
|
case "Identifier":
|
|
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 && (
|
|
1067
|
+
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 && (K(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== Ge && this.declareName(e.name, t, e.start));
|
|
1051
1068
|
break;
|
|
1052
1069
|
case "ChainExpression":
|
|
1053
1070
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1061,7 +1078,7 @@ P.checkLValSimple = function(e, t, i) {
|
|
|
1061
1078
|
this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
|
|
1062
1079
|
}
|
|
1063
1080
|
};
|
|
1064
|
-
|
|
1081
|
+
N.checkLValPattern = function(e, t, i) {
|
|
1065
1082
|
switch (t === void 0 && (t = te), e.type) {
|
|
1066
1083
|
case "ObjectPattern":
|
|
1067
1084
|
for (var s = 0, r = e.properties; s < r.length; s += 1) {
|
|
@@ -1079,7 +1096,7 @@ P.checkLValPattern = function(e, t, i) {
|
|
|
1079
1096
|
this.checkLValSimple(e, t, i);
|
|
1080
1097
|
}
|
|
1081
1098
|
};
|
|
1082
|
-
|
|
1099
|
+
N.checkLValInnerPattern = function(e, t, i) {
|
|
1083
1100
|
switch (t === void 0 && (t = te), e.type) {
|
|
1084
1101
|
case "Property":
|
|
1085
1102
|
this.checkLValInnerPattern(e.value, t, i);
|
|
@@ -1094,33 +1111,33 @@ P.checkLValInnerPattern = function(e, t, i) {
|
|
|
1094
1111
|
this.checkLValPattern(e, t, i);
|
|
1095
1112
|
}
|
|
1096
1113
|
};
|
|
1097
|
-
var
|
|
1114
|
+
var V = function(t, i, s, r, n) {
|
|
1098
1115
|
this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
|
|
1099
1116
|
}, b = {
|
|
1100
|
-
b_stat: new
|
|
1101
|
-
b_expr: new
|
|
1102
|
-
b_tmpl: new
|
|
1103
|
-
p_stat: new
|
|
1104
|
-
p_expr: new
|
|
1105
|
-
q_tmpl: new
|
|
1117
|
+
b_stat: new V("{", !1),
|
|
1118
|
+
b_expr: new V("{", !0),
|
|
1119
|
+
b_tmpl: new V("${", !1),
|
|
1120
|
+
p_stat: new V("(", !1),
|
|
1121
|
+
p_expr: new V("(", !0),
|
|
1122
|
+
q_tmpl: new V("`", !0, !0, function(e) {
|
|
1106
1123
|
return e.tryReadTemplateToken();
|
|
1107
1124
|
}),
|
|
1108
|
-
f_stat: new
|
|
1109
|
-
f_expr: new
|
|
1110
|
-
f_expr_gen: new
|
|
1111
|
-
f_gen: new
|
|
1112
|
-
},
|
|
1113
|
-
|
|
1125
|
+
f_stat: new V("function", !1),
|
|
1126
|
+
f_expr: new V("function", !0),
|
|
1127
|
+
f_expr_gen: new V("function", !0, !1, null, !0),
|
|
1128
|
+
f_gen: new V("function", !1, !1, null, !0)
|
|
1129
|
+
}, Q = y.prototype;
|
|
1130
|
+
Q.initialContext = function() {
|
|
1114
1131
|
return [b.b_stat];
|
|
1115
1132
|
};
|
|
1116
|
-
|
|
1133
|
+
Q.curContext = function() {
|
|
1117
1134
|
return this.context[this.context.length - 1];
|
|
1118
1135
|
};
|
|
1119
|
-
|
|
1136
|
+
Q.braceIsBlock = function(e) {
|
|
1120
1137
|
var t = this.curContext();
|
|
1121
1138
|
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;
|
|
1122
1139
|
};
|
|
1123
|
-
|
|
1140
|
+
Q.inGeneratorContext = function() {
|
|
1124
1141
|
for (var e = this.context.length - 1; e >= 1; e--) {
|
|
1125
1142
|
var t = this.context[e];
|
|
1126
1143
|
if (t.token === "function")
|
|
@@ -1128,11 +1145,11 @@ K.inGeneratorContext = function() {
|
|
|
1128
1145
|
}
|
|
1129
1146
|
return !1;
|
|
1130
1147
|
};
|
|
1131
|
-
|
|
1148
|
+
Q.updateContext = function(e) {
|
|
1132
1149
|
var t, i = this.type;
|
|
1133
1150
|
i.keyword && e === a.dot ? this.exprAllowed = !1 : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
|
|
1134
1151
|
};
|
|
1135
|
-
|
|
1152
|
+
Q.overrideContext = function(e) {
|
|
1136
1153
|
this.curContext() !== e && (this.context[this.context.length - 1] = e);
|
|
1137
1154
|
};
|
|
1138
1155
|
a.parenR.updateContext = a.braceR.updateContext = function() {
|
|
@@ -1228,13 +1245,13 @@ f.parseMaybeAssign = function(e, t, i) {
|
|
|
1228
1245
|
t ? (r = t.parenthesizedAssign, n = t.trailingComma, u = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new oe(), s = !0);
|
|
1229
1246
|
var o = this.start, h = this.startLoc;
|
|
1230
1247
|
(this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
1231
|
-
var
|
|
1232
|
-
if (i && (
|
|
1248
|
+
var p = this.parseMaybeConditional(e, t);
|
|
1249
|
+
if (i && (p = i.call(this, p, o, h)), this.type.isAssign) {
|
|
1233
1250
|
var d = this.startNodeAt(o, h);
|
|
1234
|
-
return d.operator = this.value, this.type === a.eq && (
|
|
1251
|
+
return d.operator = this.value, this.type === a.eq && (p = this.toAssignable(p, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= p.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(p) : this.checkLValSimple(p), d.left = p, this.next(), d.right = this.parseMaybeAssign(e), u > -1 && (t.doubleProto = u), this.finishNode(d, "AssignmentExpression");
|
|
1235
1252
|
} else
|
|
1236
1253
|
s && this.checkExpressionErrors(t, !0);
|
|
1237
|
-
return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n),
|
|
1254
|
+
return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), p;
|
|
1238
1255
|
};
|
|
1239
1256
|
f.parseMaybeConditional = function(e, t) {
|
|
1240
1257
|
var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
|
|
@@ -1257,7 +1274,7 @@ f.parseExprOp = function(e, t, i, s, r) {
|
|
|
1257
1274
|
o && (n = a.logicalAND.binop);
|
|
1258
1275
|
var h = this.value;
|
|
1259
1276
|
this.next();
|
|
1260
|
-
var
|
|
1277
|
+
var p = this.start, d = this.startLoc, g = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), p, d, n, r), _ = this.buildBinary(t, i, e, g, h, u || o);
|
|
1261
1278
|
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);
|
|
1262
1279
|
}
|
|
1263
1280
|
return e;
|
|
@@ -1273,15 +1290,15 @@ f.parseMaybeUnary = function(e, t, i, s) {
|
|
|
1273
1290
|
u = this.parseAwait(s), t = !0;
|
|
1274
1291
|
else if (this.type.prefix) {
|
|
1275
1292
|
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" &&
|
|
1293
|
+
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" && We(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");
|
|
1277
1294
|
} else if (!t && this.type === a.privateId)
|
|
1278
1295
|
(s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), u = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
|
|
1279
1296
|
else {
|
|
1280
1297
|
if (u = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e))
|
|
1281
1298
|
return u;
|
|
1282
1299
|
for (; this.type.postfix && !this.canInsertSemicolon(); ) {
|
|
1283
|
-
var
|
|
1284
|
-
|
|
1300
|
+
var p = this.startNodeAt(r, n);
|
|
1301
|
+
p.operator = this.value, p.prefix = !1, p.argument = u, this.checkLValSimple(u), this.next(), u = this.finishNode(p, "UpdateExpression");
|
|
1285
1302
|
}
|
|
1286
1303
|
}
|
|
1287
1304
|
if (!i && this.eat(a.starstar))
|
|
@@ -1292,8 +1309,8 @@ f.parseMaybeUnary = function(e, t, i, s) {
|
|
|
1292
1309
|
else
|
|
1293
1310
|
return u;
|
|
1294
1311
|
};
|
|
1295
|
-
function
|
|
1296
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
1312
|
+
function We(e) {
|
|
1313
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && We(e.expression);
|
|
1297
1314
|
}
|
|
1298
1315
|
function ve(e) {
|
|
1299
1316
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && ve(e.expression) || e.type === "ParenthesizedExpression" && ve(e.expression);
|
|
@@ -1327,23 +1344,23 @@ f.parseSubscriptAsyncArrow = function(e, t, i, s) {
|
|
|
1327
1344
|
f.parseSubscript = function(e, t, i, s, r, n, u) {
|
|
1328
1345
|
var o = this.options.ecmaVersion >= 11, h = o && this.eat(a.questionDot);
|
|
1329
1346
|
s && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
1330
|
-
var
|
|
1331
|
-
if (
|
|
1347
|
+
var p = this.eat(a.bracketL);
|
|
1348
|
+
if (p || h && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
|
|
1332
1349
|
var d = this.startNodeAt(t, i);
|
|
1333
|
-
d.object = e,
|
|
1350
|
+
d.object = e, p ? (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 = !!p, o && (d.optional = h), e = this.finishNode(d, "MemberExpression");
|
|
1334
1351
|
} else if (!s && this.eat(a.parenL)) {
|
|
1335
|
-
var g = new oe(), _ = this.yieldPos,
|
|
1352
|
+
var g = new oe(), _ = this.yieldPos, Y = this.awaitPos, G = this.awaitIdentPos;
|
|
1336
1353
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1337
1354
|
var ee = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, g);
|
|
1338
1355
|
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 =
|
|
1340
|
-
this.checkExpressionErrors(g, !0), this.yieldPos = _ || this.yieldPos, this.awaitPos =
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1356
|
+
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 = Y, this.awaitIdentPos = G, this.parseSubscriptAsyncArrow(t, i, ee, u);
|
|
1357
|
+
this.checkExpressionErrors(g, !0), this.yieldPos = _ || this.yieldPos, this.awaitPos = Y || this.awaitPos, this.awaitIdentPos = G || this.awaitIdentPos;
|
|
1358
|
+
var H = this.startNodeAt(t, i);
|
|
1359
|
+
H.callee = e, H.arguments = ee, o && (H.optional = h), e = this.finishNode(H, "CallExpression");
|
|
1343
1360
|
} else if (this.type === a.backQuote) {
|
|
1344
1361
|
(h || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
1345
|
-
var
|
|
1346
|
-
|
|
1362
|
+
var W = this.startNodeAt(t, i);
|
|
1363
|
+
W.tag = e, W.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(W, "TaggedTemplateExpression");
|
|
1347
1364
|
}
|
|
1348
1365
|
return e;
|
|
1349
1366
|
};
|
|
@@ -1367,8 +1384,8 @@ f.parseExprAtom = function(e, t, i) {
|
|
|
1367
1384
|
}
|
|
1368
1385
|
return h;
|
|
1369
1386
|
case a.regexp:
|
|
1370
|
-
var
|
|
1371
|
-
return s = this.parseLiteral(
|
|
1387
|
+
var p = this.value;
|
|
1388
|
+
return s = this.parseLiteral(p.value), s.regex = { pattern: p.pattern, flags: p.flags }, s;
|
|
1372
1389
|
case a.num:
|
|
1373
1390
|
case a.string:
|
|
1374
1391
|
return this.parseLiteral(this.value);
|
|
@@ -1440,28 +1457,28 @@ f.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
1440
1457
|
var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
|
|
1441
1458
|
if (this.options.ecmaVersion >= 6) {
|
|
1442
1459
|
this.next();
|
|
1443
|
-
var u = this.start, o = this.startLoc, h = [],
|
|
1460
|
+
var u = this.start, o = this.startLoc, h = [], p = !0, d = !1, g = new oe(), _ = this.yieldPos, Y = this.awaitPos, G;
|
|
1444
1461
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
|
|
1445
|
-
if (
|
|
1462
|
+
if (p ? p = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
|
|
1446
1463
|
d = !0;
|
|
1447
1464
|
break;
|
|
1448
1465
|
} else if (this.type === a.ellipsis) {
|
|
1449
|
-
|
|
1466
|
+
G = this.start, h.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
|
|
1450
1467
|
this.start,
|
|
1451
1468
|
"Comma is not permitted after the rest element"
|
|
1452
1469
|
);
|
|
1453
1470
|
break;
|
|
1454
1471
|
} else
|
|
1455
1472
|
h.push(this.parseMaybeAssign(!1, g, this.parseParenItem));
|
|
1456
|
-
var ee = this.lastTokEnd,
|
|
1473
|
+
var ee = this.lastTokEnd, H = this.lastTokEndLoc;
|
|
1457
1474
|
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 =
|
|
1459
|
-
(!h.length || d) && this.unexpected(this.lastTokStart),
|
|
1475
|
+
return this.checkPatternErrors(g, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = _, this.awaitPos = Y, this.parseParenArrowList(i, s, h, t);
|
|
1476
|
+
(!h.length || d) && this.unexpected(this.lastTokStart), G && this.unexpected(G), this.checkExpressionErrors(g, !0), this.yieldPos = _ || this.yieldPos, this.awaitPos = Y || this.awaitPos, h.length > 1 ? (r = this.startNodeAt(u, o), r.expressions = h, this.finishNodeAt(r, "SequenceExpression", ee, H)) : r = h[0];
|
|
1460
1477
|
} else
|
|
1461
1478
|
r = this.parseParenExpression();
|
|
1462
1479
|
if (this.options.preserveParens) {
|
|
1463
|
-
var
|
|
1464
|
-
return
|
|
1480
|
+
var W = this.startNodeAt(i, s);
|
|
1481
|
+
return W.expression = r, this.finishNode(W, "ParenthesizedExpression");
|
|
1465
1482
|
} else
|
|
1466
1483
|
return r;
|
|
1467
1484
|
};
|
|
@@ -1471,7 +1488,7 @@ f.parseParenItem = function(e) {
|
|
|
1471
1488
|
f.parseParenArrowList = function(e, t, i, s) {
|
|
1472
1489
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
|
|
1473
1490
|
};
|
|
1474
|
-
var
|
|
1491
|
+
var It = [];
|
|
1475
1492
|
f.parseNew = function() {
|
|
1476
1493
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1477
1494
|
var e = this.startNode();
|
|
@@ -1482,7 +1499,7 @@ f.parseNew = function() {
|
|
|
1482
1499
|
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");
|
|
1483
1500
|
}
|
|
1484
1501
|
var s = this.start, r = this.startLoc;
|
|
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 =
|
|
1502
|
+
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 = It, this.finishNode(e, "NewExpression");
|
|
1486
1503
|
};
|
|
1487
1504
|
f.parseTemplateElement = function(e) {
|
|
1488
1505
|
var t = e.isTagged, i = this.startNode();
|
|
@@ -1556,7 +1573,7 @@ f.initFunction = function(e) {
|
|
|
1556
1573
|
};
|
|
1557
1574
|
f.parseMethod = function(e, t, i) {
|
|
1558
1575
|
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 ?
|
|
1576
|
+
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 ? Me : 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");
|
|
1560
1577
|
};
|
|
1561
1578
|
f.parseArrowExpression = function(e, t, i, s) {
|
|
1562
1579
|
var r = this.yieldPos, n = this.awaitPos, u = this.awaitIdentPos;
|
|
@@ -1570,7 +1587,7 @@ f.parseFunctionBody = function(e, t, i, s) {
|
|
|
1570
1587
|
var o = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
1571
1588
|
(!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
1589
|
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,
|
|
1590
|
+
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, Ge), e.body = this.parseBlock(!1, void 0, u && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = h;
|
|
1574
1591
|
}
|
|
1575
1592
|
this.exitScope();
|
|
1576
1593
|
};
|
|
@@ -1630,7 +1647,7 @@ f.parseAwait = function(e) {
|
|
|
1630
1647
|
};
|
|
1631
1648
|
var se = y.prototype;
|
|
1632
1649
|
se.raise = function(e, t) {
|
|
1633
|
-
var i =
|
|
1650
|
+
var i = Be(this.input, e);
|
|
1634
1651
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
1635
1652
|
var s = new SyntaxError(t);
|
|
1636
1653
|
throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
|
|
@@ -1638,39 +1655,39 @@ se.raise = function(e, t) {
|
|
|
1638
1655
|
se.raiseRecoverable = se.raise;
|
|
1639
1656
|
se.curPosition = function() {
|
|
1640
1657
|
if (this.options.locations)
|
|
1641
|
-
return new
|
|
1658
|
+
return new Z(this.curLine, this.pos - this.lineStart);
|
|
1642
1659
|
};
|
|
1643
|
-
var M = y.prototype,
|
|
1660
|
+
var M = y.prototype, Pt = function(t) {
|
|
1644
1661
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
1645
1662
|
};
|
|
1646
1663
|
M.enterScope = function(e) {
|
|
1647
|
-
this.scopeStack.push(new
|
|
1664
|
+
this.scopeStack.push(new Pt(e));
|
|
1648
1665
|
};
|
|
1649
1666
|
M.exitScope = function() {
|
|
1650
1667
|
this.scopeStack.pop();
|
|
1651
1668
|
};
|
|
1652
1669
|
M.treatFunctionsAsVarInScope = function(e) {
|
|
1653
|
-
return e.flags &
|
|
1670
|
+
return e.flags & q || !this.inModule && e.flags & U;
|
|
1654
1671
|
};
|
|
1655
1672
|
M.declareName = function(e, t, i) {
|
|
1656
1673
|
var s = !1;
|
|
1657
1674
|
if (t === B) {
|
|
1658
1675
|
var r = this.currentScope();
|
|
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 &
|
|
1660
|
-
} else if (t ===
|
|
1676
|
+
s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & U && delete this.undefinedExports[e];
|
|
1677
|
+
} else if (t === je) {
|
|
1661
1678
|
var n = this.currentScope();
|
|
1662
1679
|
n.lexical.push(e);
|
|
1663
|
-
} else if (t ===
|
|
1680
|
+
} else if (t === qe) {
|
|
1664
1681
|
var u = this.currentScope();
|
|
1665
1682
|
this.treatFunctionsAsVar ? s = u.lexical.indexOf(e) > -1 : s = u.lexical.indexOf(e) > -1 || u.var.indexOf(e) > -1, u.functions.push(e);
|
|
1666
1683
|
} else
|
|
1667
1684
|
for (var o = this.scopeStack.length - 1; o >= 0; --o) {
|
|
1668
1685
|
var h = this.scopeStack[o];
|
|
1669
|
-
if (h.lexical.indexOf(e) > -1 && !(h.flags &
|
|
1686
|
+
if (h.lexical.indexOf(e) > -1 && !(h.flags & Fe && h.lexical[0] === e) || !this.treatFunctionsAsVarInScope(h) && h.functions.indexOf(e) > -1) {
|
|
1670
1687
|
s = !0;
|
|
1671
1688
|
break;
|
|
1672
1689
|
}
|
|
1673
|
-
if (h.var.push(e), this.inModule && h.flags &
|
|
1690
|
+
if (h.var.push(e), this.inModule && h.flags & U && delete this.undefinedExports[e], h.flags & ue)
|
|
1674
1691
|
break;
|
|
1675
1692
|
}
|
|
1676
1693
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -1684,14 +1701,14 @@ M.currentScope = function() {
|
|
|
1684
1701
|
M.currentVarScope = function() {
|
|
1685
1702
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1686
1703
|
var t = this.scopeStack[e];
|
|
1687
|
-
if (t.flags & (ue | J |
|
|
1704
|
+
if (t.flags & (ue | J | j))
|
|
1688
1705
|
return t;
|
|
1689
1706
|
}
|
|
1690
1707
|
};
|
|
1691
1708
|
M.currentThisScope = function() {
|
|
1692
1709
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1693
1710
|
var t = this.scopeStack[e];
|
|
1694
|
-
if (t.flags & (ue | J |
|
|
1711
|
+
if (t.flags & (ue | J | j) && !(t.flags & ye))
|
|
1695
1712
|
return t;
|
|
1696
1713
|
}
|
|
1697
1714
|
};
|
|
@@ -1704,14 +1721,14 @@ $.startNode = function() {
|
|
|
1704
1721
|
$.startNodeAt = function(e, t) {
|
|
1705
1722
|
return new he(this, e, t);
|
|
1706
1723
|
};
|
|
1707
|
-
function
|
|
1724
|
+
function ze(e, t, i, s) {
|
|
1708
1725
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
|
|
1709
1726
|
}
|
|
1710
1727
|
$.finishNode = function(e, t) {
|
|
1711
|
-
return
|
|
1728
|
+
return ze.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
1712
1729
|
};
|
|
1713
1730
|
$.finishNodeAt = function(e, t, i, s) {
|
|
1714
|
-
return
|
|
1731
|
+
return ze.call(this, e, t, i, s);
|
|
1715
1732
|
};
|
|
1716
1733
|
$.copyNode = function(e) {
|
|
1717
1734
|
var t = new he(this, e.start, this.startLoc);
|
|
@@ -1719,42 +1736,42 @@ $.copyNode = function(e) {
|
|
|
1719
1736
|
t[i] = e[i];
|
|
1720
1737
|
return t;
|
|
1721
1738
|
};
|
|
1722
|
-
var
|
|
1723
|
-
9:
|
|
1724
|
-
10:
|
|
1725
|
-
11:
|
|
1726
|
-
12:
|
|
1727
|
-
13:
|
|
1728
|
-
14:
|
|
1729
|
-
},
|
|
1739
|
+
var Nt = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", Ke = "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", Qe = Ke + " Extended_Pictographic", Ye = Qe, Xe = Ye + " EBase EComp EMod EPres ExtPict", Ze = Xe, Vt = Ze, Tt = {
|
|
1740
|
+
9: Ke,
|
|
1741
|
+
10: Qe,
|
|
1742
|
+
11: Ye,
|
|
1743
|
+
12: Xe,
|
|
1744
|
+
13: Ze,
|
|
1745
|
+
14: Vt
|
|
1746
|
+
}, Lt = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Rt = {
|
|
1730
1747
|
9: "",
|
|
1731
1748
|
10: "",
|
|
1732
1749
|
11: "",
|
|
1733
1750
|
12: "",
|
|
1734
1751
|
13: "",
|
|
1735
|
-
14:
|
|
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",
|
|
1737
|
-
9:
|
|
1738
|
-
10:
|
|
1739
|
-
11:
|
|
1740
|
-
12:
|
|
1741
|
-
13:
|
|
1742
|
-
14:
|
|
1743
|
-
},
|
|
1744
|
-
function
|
|
1745
|
-
var t =
|
|
1746
|
-
binary: D(
|
|
1747
|
-
binaryOfStrings: D(
|
|
1752
|
+
14: Lt
|
|
1753
|
+
}, 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", Je = "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", $e = Je + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", et = $e + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", tt = et + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", it = tt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Ot = it + " " + Nt, Bt = {
|
|
1754
|
+
9: Je,
|
|
1755
|
+
10: $e,
|
|
1756
|
+
11: et,
|
|
1757
|
+
12: tt,
|
|
1758
|
+
13: it,
|
|
1759
|
+
14: Ot
|
|
1760
|
+
}, st = {};
|
|
1761
|
+
function Dt(e) {
|
|
1762
|
+
var t = st[e] = {
|
|
1763
|
+
binary: D(Tt[e] + " " + Ie),
|
|
1764
|
+
binaryOfStrings: D(Rt[e]),
|
|
1748
1765
|
nonBinary: {
|
|
1749
1766
|
General_Category: D(Ie),
|
|
1750
|
-
Script: D(
|
|
1767
|
+
Script: D(Bt[e])
|
|
1751
1768
|
}
|
|
1752
1769
|
};
|
|
1753
1770
|
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;
|
|
1754
1771
|
}
|
|
1755
1772
|
for (var fe = 0, Pe = [9, 10, 11, 12, 13, 14]; fe < Pe.length; fe += 1) {
|
|
1756
|
-
var
|
|
1757
|
-
|
|
1773
|
+
var Ft = Pe[fe];
|
|
1774
|
+
Dt(Ft);
|
|
1758
1775
|
}
|
|
1759
1776
|
var c = y.prototype, ae = function(t, i) {
|
|
1760
1777
|
this.parent = t, this.base = i || this;
|
|
@@ -1770,7 +1787,7 @@ ae.prototype.sibling = function() {
|
|
|
1770
1787
|
return new ae(this.parent, this.base);
|
|
1771
1788
|
};
|
|
1772
1789
|
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 =
|
|
1790
|
+
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 = st[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;
|
|
1774
1791
|
};
|
|
1775
1792
|
L.prototype.reset = function(t, i, s) {
|
|
1776
1793
|
var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
|
|
@@ -1827,13 +1844,13 @@ c.validateRegExpFlags = function(e) {
|
|
|
1827
1844
|
}
|
|
1828
1845
|
this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
|
|
1829
1846
|
};
|
|
1830
|
-
function
|
|
1847
|
+
function Mt(e) {
|
|
1831
1848
|
for (var t in e)
|
|
1832
1849
|
return !0;
|
|
1833
1850
|
return !1;
|
|
1834
1851
|
}
|
|
1835
1852
|
c.validateRegExpPattern = function(e) {
|
|
1836
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
1853
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Mt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
1837
1854
|
};
|
|
1838
1855
|
c.regexp_pattern = function(e) {
|
|
1839
1856
|
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(
|
|
@@ -2035,11 +2052,11 @@ c.regexp_eatCapturingGroup = function(e) {
|
|
|
2035
2052
|
return !1;
|
|
2036
2053
|
};
|
|
2037
2054
|
c.regexp_eatModifiers = function(e) {
|
|
2038
|
-
for (var t = "", i = 0; (i = e.current()) !== -1 &&
|
|
2055
|
+
for (var t = "", i = 0; (i = e.current()) !== -1 && Ut(i); )
|
|
2039
2056
|
t += R(i), e.advance();
|
|
2040
2057
|
return t;
|
|
2041
2058
|
};
|
|
2042
|
-
function
|
|
2059
|
+
function Ut(e) {
|
|
2043
2060
|
return e === 105 || e === 109 || e === 115;
|
|
2044
2061
|
}
|
|
2045
2062
|
c.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2053,13 +2070,13 @@ c.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2053
2070
|
};
|
|
2054
2071
|
c.regexp_eatSyntaxCharacter = function(e) {
|
|
2055
2072
|
var t = e.current();
|
|
2056
|
-
return
|
|
2073
|
+
return at(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2057
2074
|
};
|
|
2058
|
-
function
|
|
2075
|
+
function at(e) {
|
|
2059
2076
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2060
2077
|
}
|
|
2061
2078
|
c.regexp_eatPatternCharacters = function(e) {
|
|
2062
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
2079
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !at(i); )
|
|
2063
2080
|
e.advance();
|
|
2064
2081
|
return e.pos !== t;
|
|
2065
2082
|
};
|
|
@@ -2109,16 +2126,16 @@ c.regexp_eatRegExpIdentifierName = function(e) {
|
|
|
2109
2126
|
};
|
|
2110
2127
|
c.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2111
2128
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
2112
|
-
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue),
|
|
2129
|
+
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), qt(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
2113
2130
|
};
|
|
2114
|
-
function
|
|
2115
|
-
return
|
|
2131
|
+
function qt(e) {
|
|
2132
|
+
return T(e, !0) || e === 36 || e === 95;
|
|
2116
2133
|
}
|
|
2117
2134
|
c.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2118
2135
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
2119
|
-
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue),
|
|
2136
|
+
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), jt(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
2120
2137
|
};
|
|
2121
|
-
function
|
|
2138
|
+
function jt(e) {
|
|
2122
2139
|
return F(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2123
2140
|
}
|
|
2124
2141
|
c.regexp_eatAtomEscape = function(e) {
|
|
@@ -2171,9 +2188,9 @@ c.regexp_eatControlEscape = function(e) {
|
|
|
2171
2188
|
};
|
|
2172
2189
|
c.regexp_eatControlLetter = function(e) {
|
|
2173
2190
|
var t = e.current();
|
|
2174
|
-
return
|
|
2191
|
+
return rt(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2175
2192
|
};
|
|
2176
|
-
function
|
|
2193
|
+
function rt(e) {
|
|
2177
2194
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2178
2195
|
}
|
|
2179
2196
|
c.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2208,13 +2225,13 @@ c.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2208
2225
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
2209
2226
|
125
|
|
2210
2227
|
/* } */
|
|
2211
|
-
) &&
|
|
2228
|
+
) && Gt(e.lastIntValue))
|
|
2212
2229
|
return !0;
|
|
2213
2230
|
s && e.raise("Invalid unicode escape"), e.pos = i;
|
|
2214
2231
|
}
|
|
2215
2232
|
return !1;
|
|
2216
2233
|
};
|
|
2217
|
-
function
|
|
2234
|
+
function Gt(e) {
|
|
2218
2235
|
return e >= 0 && e <= 1114111;
|
|
2219
2236
|
}
|
|
2220
2237
|
c.regexp_eatIdentityEscape = function(e) {
|
|
@@ -2237,10 +2254,10 @@ c.regexp_eatDecimalEscape = function(e) {
|
|
|
2237
2254
|
}
|
|
2238
2255
|
return !1;
|
|
2239
2256
|
};
|
|
2240
|
-
var
|
|
2257
|
+
var nt = 0, O = 1, I = 2;
|
|
2241
2258
|
c.regexp_eatCharacterClassEscape = function(e) {
|
|
2242
2259
|
var t = e.current();
|
|
2243
|
-
if (
|
|
2260
|
+
if (Ht(t))
|
|
2244
2261
|
return e.lastIntValue = -1, e.advance(), O;
|
|
2245
2262
|
var i = !1;
|
|
2246
2263
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
@@ -2256,9 +2273,9 @@ c.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2256
2273
|
return i && s === I && e.raise("Invalid property name"), s;
|
|
2257
2274
|
e.raise("Invalid property name");
|
|
2258
2275
|
}
|
|
2259
|
-
return
|
|
2276
|
+
return nt;
|
|
2260
2277
|
};
|
|
2261
|
-
function
|
|
2278
|
+
function Ht(e) {
|
|
2262
2279
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
2263
2280
|
}
|
|
2264
2281
|
c.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -2277,10 +2294,10 @@ c.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2277
2294
|
var r = e.lastStringValue;
|
|
2278
2295
|
return this.regexp_validateUnicodePropertyNameOrValue(e, r);
|
|
2279
2296
|
}
|
|
2280
|
-
return
|
|
2297
|
+
return nt;
|
|
2281
2298
|
};
|
|
2282
2299
|
c.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
2283
|
-
|
|
2300
|
+
K(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
2284
2301
|
};
|
|
2285
2302
|
c.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
2286
2303
|
if (e.unicodeProperties.binary.test(t))
|
|
@@ -2291,21 +2308,21 @@ c.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
2291
2308
|
};
|
|
2292
2309
|
c.regexp_eatUnicodePropertyName = function(e) {
|
|
2293
2310
|
var t = 0;
|
|
2294
|
-
for (e.lastStringValue = "";
|
|
2311
|
+
for (e.lastStringValue = ""; ut(t = e.current()); )
|
|
2295
2312
|
e.lastStringValue += R(t), e.advance();
|
|
2296
2313
|
return e.lastStringValue !== "";
|
|
2297
2314
|
};
|
|
2298
|
-
function
|
|
2299
|
-
return
|
|
2315
|
+
function ut(e) {
|
|
2316
|
+
return rt(e) || e === 95;
|
|
2300
2317
|
}
|
|
2301
2318
|
c.regexp_eatUnicodePropertyValue = function(e) {
|
|
2302
2319
|
var t = 0;
|
|
2303
|
-
for (e.lastStringValue = "";
|
|
2320
|
+
for (e.lastStringValue = ""; Wt(t = e.current()); )
|
|
2304
2321
|
e.lastStringValue += R(t), e.advance();
|
|
2305
2322
|
return e.lastStringValue !== "";
|
|
2306
2323
|
};
|
|
2307
|
-
function
|
|
2308
|
-
return
|
|
2324
|
+
function Wt(e) {
|
|
2325
|
+
return ut(e) || ce(e);
|
|
2309
2326
|
}
|
|
2310
2327
|
c.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2311
2328
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -2351,7 +2368,7 @@ c.regexp_eatClassAtom = function(e) {
|
|
|
2351
2368
|
return !0;
|
|
2352
2369
|
if (e.switchU) {
|
|
2353
2370
|
var i = e.current();
|
|
2354
|
-
(i === 99 ||
|
|
2371
|
+
(i === 99 || ct(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2355
2372
|
}
|
|
2356
2373
|
e.pos = t;
|
|
2357
2374
|
}
|
|
@@ -2505,19 +2522,19 @@ c.regexp_eatClassSetCharacter = function(e) {
|
|
|
2505
2522
|
/* b */
|
|
2506
2523
|
) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
2507
2524
|
var i = e.current();
|
|
2508
|
-
return i < 0 || i === e.lookahead() &&
|
|
2525
|
+
return i < 0 || i === e.lookahead() && zt(i) || Kt(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
|
|
2509
2526
|
};
|
|
2510
|
-
function
|
|
2527
|
+
function zt(e) {
|
|
2511
2528
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
2512
2529
|
}
|
|
2513
|
-
function
|
|
2530
|
+
function Kt(e) {
|
|
2514
2531
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
2515
2532
|
}
|
|
2516
2533
|
c.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
2517
2534
|
var t = e.current();
|
|
2518
|
-
return
|
|
2535
|
+
return Qt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2519
2536
|
};
|
|
2520
|
-
function
|
|
2537
|
+
function Qt(e) {
|
|
2521
2538
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
2522
2539
|
}
|
|
2523
2540
|
c.regexp_eatClassControlLetter = function(e) {
|
|
@@ -2547,14 +2564,14 @@ function ce(e) {
|
|
|
2547
2564
|
}
|
|
2548
2565
|
c.regexp_eatHexDigits = function(e) {
|
|
2549
2566
|
var t = e.pos, i = 0;
|
|
2550
|
-
for (e.lastIntValue = 0;
|
|
2551
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2567
|
+
for (e.lastIntValue = 0; ot(i = e.current()); )
|
|
2568
|
+
e.lastIntValue = 16 * e.lastIntValue + ht(i), e.advance();
|
|
2552
2569
|
return e.pos !== t;
|
|
2553
2570
|
};
|
|
2554
|
-
function
|
|
2571
|
+
function ot(e) {
|
|
2555
2572
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
2556
2573
|
}
|
|
2557
|
-
function
|
|
2574
|
+
function ht(e) {
|
|
2558
2575
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
2559
2576
|
}
|
|
2560
2577
|
c.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -2571,9 +2588,9 @@ c.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
2571
2588
|
};
|
|
2572
2589
|
c.regexp_eatOctalDigit = function(e) {
|
|
2573
2590
|
var t = e.current();
|
|
2574
|
-
return
|
|
2591
|
+
return ct(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
2575
2592
|
};
|
|
2576
|
-
function
|
|
2593
|
+
function ct(e) {
|
|
2577
2594
|
return e >= 48 && e <= 55;
|
|
2578
2595
|
}
|
|
2579
2596
|
c.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -2581,9 +2598,9 @@ c.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
2581
2598
|
e.lastIntValue = 0;
|
|
2582
2599
|
for (var s = 0; s < t; ++s) {
|
|
2583
2600
|
var r = e.current();
|
|
2584
|
-
if (!
|
|
2601
|
+
if (!ot(r))
|
|
2585
2602
|
return e.pos = i, !1;
|
|
2586
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2603
|
+
e.lastIntValue = 16 * e.lastIntValue + ht(r), e.advance();
|
|
2587
2604
|
}
|
|
2588
2605
|
return !0;
|
|
2589
2606
|
};
|
|
@@ -2617,19 +2634,22 @@ x.nextToken = function() {
|
|
|
2617
2634
|
this.readToken(this.fullCharCodeAtPos());
|
|
2618
2635
|
};
|
|
2619
2636
|
x.readToken = function(e) {
|
|
2620
|
-
return
|
|
2637
|
+
return T(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
2638
|
+
};
|
|
2639
|
+
x.fullCharCodeAt = function(e) {
|
|
2640
|
+
var t = this.input.charCodeAt(e);
|
|
2641
|
+
if (t <= 55295 || t >= 56320)
|
|
2642
|
+
return t;
|
|
2643
|
+
var i = this.input.charCodeAt(e + 1);
|
|
2644
|
+
return i <= 56319 || i >= 57344 ? t : (t << 10) + i - 56613888;
|
|
2621
2645
|
};
|
|
2622
2646
|
x.fullCharCodeAtPos = function() {
|
|
2623
|
-
|
|
2624
|
-
if (e <= 55295 || e >= 56320)
|
|
2625
|
-
return e;
|
|
2626
|
-
var t = this.input.charCodeAt(this.pos + 1);
|
|
2627
|
-
return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
|
|
2647
|
+
return this.fullCharCodeAt(this.pos);
|
|
2628
2648
|
};
|
|
2629
2649
|
x.skipBlockComment = function() {
|
|
2630
2650
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
2631
2651
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
2632
|
-
for (var s = void 0, r = t; (s =
|
|
2652
|
+
for (var s = void 0, r = t; (s = Le(this.input, r, this.pos)) > -1; )
|
|
2633
2653
|
++this.curLine, r = this.lineStart = s;
|
|
2634
2654
|
this.options.onComment && this.options.onComment(
|
|
2635
2655
|
!0,
|
|
@@ -2641,7 +2661,7 @@ x.skipBlockComment = function() {
|
|
|
2641
2661
|
);
|
|
2642
2662
|
};
|
|
2643
2663
|
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 && !
|
|
2664
|
+
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !z(s); )
|
|
2645
2665
|
s = this.input.charCodeAt(++this.pos);
|
|
2646
2666
|
this.options.onComment && this.options.onComment(
|
|
2647
2667
|
!1,
|
|
@@ -2681,7 +2701,7 @@ x.skipSpace = function() {
|
|
|
2681
2701
|
}
|
|
2682
2702
|
break;
|
|
2683
2703
|
default:
|
|
2684
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
2704
|
+
if (e > 8 && e < 14 || e >= 5760 && Re.test(String.fromCharCode(e)))
|
|
2685
2705
|
++this.pos;
|
|
2686
2706
|
else
|
|
2687
2707
|
break e;
|
|
@@ -2758,7 +2778,7 @@ x.readToken_question = function() {
|
|
|
2758
2778
|
};
|
|
2759
2779
|
x.readToken_numberSign = function() {
|
|
2760
2780
|
var e = this.options.ecmaVersion, t = 35;
|
|
2761
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
2781
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), T(t, !0) || t === 92))
|
|
2762
2782
|
return this.finishToken(a.privateId, this.readWord1());
|
|
2763
2783
|
this.raise(this.pos, "Unexpected character '" + R(t) + "'");
|
|
2764
2784
|
};
|
|
@@ -2874,7 +2894,7 @@ x.readRegexp = function() {
|
|
|
2874
2894
|
return this.finishToken(a.regexp, { pattern: r, flags: u, value: h });
|
|
2875
2895
|
};
|
|
2876
2896
|
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,
|
|
2897
|
+
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, p = t ?? 1 / 0; h < p; ++h, ++this.pos) {
|
|
2878
2898
|
var d = this.input.charCodeAt(this.pos), g = void 0;
|
|
2879
2899
|
if (s && d === 95) {
|
|
2880
2900
|
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;
|
|
@@ -2886,17 +2906,17 @@ x.readInt = function(e, t, i) {
|
|
|
2886
2906
|
}
|
|
2887
2907
|
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;
|
|
2888
2908
|
};
|
|
2889
|
-
function
|
|
2909
|
+
function Yt(e, t) {
|
|
2890
2910
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
2891
2911
|
}
|
|
2892
|
-
function
|
|
2912
|
+
function lt(e) {
|
|
2893
2913
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
2894
2914
|
}
|
|
2895
2915
|
x.readRadixNumber = function(e) {
|
|
2896
2916
|
var t = this.pos;
|
|
2897
2917
|
this.pos += 2;
|
|
2898
2918
|
var i = this.readInt(e);
|
|
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 =
|
|
2919
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = lt(this.input.slice(t, this.pos)), ++this.pos) : T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
|
|
2900
2920
|
};
|
|
2901
2921
|
x.readNumber = function(e) {
|
|
2902
2922
|
var t = this.pos;
|
|
@@ -2905,11 +2925,11 @@ x.readNumber = function(e) {
|
|
|
2905
2925
|
i && this.strict && this.raise(t, "Invalid number");
|
|
2906
2926
|
var s = this.input.charCodeAt(this.pos);
|
|
2907
2927
|
if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
|
|
2908
|
-
var r =
|
|
2909
|
-
return ++this.pos,
|
|
2928
|
+
var r = lt(this.input.slice(t, this.pos));
|
|
2929
|
+
return ++this.pos, T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
|
|
2910
2930
|
}
|
|
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")),
|
|
2912
|
-
var n =
|
|
2931
|
+
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")), T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2932
|
+
var n = Yt(this.input.slice(t, this.pos), i);
|
|
2913
2933
|
return this.finishToken(a.num, n);
|
|
2914
2934
|
};
|
|
2915
2935
|
x.readCodePoint = function() {
|
|
@@ -2928,17 +2948,17 @@ x.readString = function(e) {
|
|
|
2928
2948
|
var s = this.input.charCodeAt(this.pos);
|
|
2929
2949
|
if (s === e)
|
|
2930
2950
|
break;
|
|
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)) : (
|
|
2951
|
+
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)) : (z(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
2932
2952
|
}
|
|
2933
2953
|
return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
|
|
2934
2954
|
};
|
|
2935
|
-
var
|
|
2955
|
+
var pt = {};
|
|
2936
2956
|
x.tryReadTemplateToken = function() {
|
|
2937
2957
|
this.inTemplateElement = !0;
|
|
2938
2958
|
try {
|
|
2939
2959
|
this.readTmplToken();
|
|
2940
2960
|
} catch (e) {
|
|
2941
|
-
if (e ===
|
|
2961
|
+
if (e === pt)
|
|
2942
2962
|
this.readInvalidTemplateToken();
|
|
2943
2963
|
else
|
|
2944
2964
|
throw e;
|
|
@@ -2947,7 +2967,7 @@ x.tryReadTemplateToken = function() {
|
|
|
2947
2967
|
};
|
|
2948
2968
|
x.invalidStringToken = function(e, t) {
|
|
2949
2969
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
2950
|
-
throw
|
|
2970
|
+
throw pt;
|
|
2951
2971
|
this.raise(e, t);
|
|
2952
2972
|
};
|
|
2953
2973
|
x.readTmplToken = function() {
|
|
@@ -2958,7 +2978,7 @@ x.readTmplToken = function() {
|
|
|
2958
2978
|
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));
|
|
2959
2979
|
if (i === 92)
|
|
2960
2980
|
e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
|
|
2961
|
-
else if (
|
|
2981
|
+
else if (z(i)) {
|
|
2962
2982
|
switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
|
|
2963
2983
|
case 13:
|
|
2964
2984
|
this.input.charCodeAt(this.pos) === 10 && ++this.pos;
|
|
@@ -3042,7 +3062,7 @@ x.readEscapedChar = function(e) {
|
|
|
3042
3062
|
e ? "Octal literal in template string" : "Octal literal in strict mode"
|
|
3043
3063
|
), String.fromCharCode(r);
|
|
3044
3064
|
}
|
|
3045
|
-
return
|
|
3065
|
+
return z(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
3046
3066
|
}
|
|
3047
3067
|
};
|
|
3048
3068
|
x.readHexChar = function(e) {
|
|
@@ -3060,7 +3080,7 @@ x.readWord1 = function() {
|
|
|
3060
3080
|
var n = this.pos;
|
|
3061
3081
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
3062
3082
|
var u = this.readCodePoint();
|
|
3063
|
-
(t ?
|
|
3083
|
+
(t ? T : F)(u, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += R(u), i = this.pos;
|
|
3064
3084
|
} else
|
|
3065
3085
|
break;
|
|
3066
3086
|
t = !1;
|
|
@@ -3071,58 +3091,58 @@ x.readWord = function() {
|
|
|
3071
3091
|
var e = this.readWord1(), t = a.name;
|
|
3072
3092
|
return this.keywords.test(e) && (t = ge[e]), this.finishToken(t, e);
|
|
3073
3093
|
};
|
|
3074
|
-
var
|
|
3094
|
+
var Xt = "8.16.0";
|
|
3075
3095
|
y.acorn = {
|
|
3076
3096
|
Parser: y,
|
|
3077
|
-
version:
|
|
3097
|
+
version: Xt,
|
|
3078
3098
|
defaultOptions: xe,
|
|
3079
|
-
Position:
|
|
3099
|
+
Position: Z,
|
|
3080
3100
|
SourceLocation: re,
|
|
3081
|
-
getLineInfo:
|
|
3101
|
+
getLineInfo: Be,
|
|
3082
3102
|
Node: he,
|
|
3083
3103
|
TokenType: v,
|
|
3084
3104
|
tokTypes: a,
|
|
3085
3105
|
keywordTypes: ge,
|
|
3086
|
-
TokContext:
|
|
3106
|
+
TokContext: V,
|
|
3087
3107
|
tokContexts: b,
|
|
3088
3108
|
isIdentifierChar: F,
|
|
3089
|
-
isIdentifierStart:
|
|
3109
|
+
isIdentifierStart: T,
|
|
3090
3110
|
Token: ke,
|
|
3091
|
-
isNewLine:
|
|
3111
|
+
isNewLine: z,
|
|
3092
3112
|
lineBreak: w,
|
|
3093
|
-
lineBreakG:
|
|
3094
|
-
nonASCIIwhitespace:
|
|
3113
|
+
lineBreakG: gt,
|
|
3114
|
+
nonASCIIwhitespace: Re
|
|
3095
3115
|
};
|
|
3096
|
-
function
|
|
3116
|
+
function Zt(e, t) {
|
|
3097
3117
|
return y.parse(e, t);
|
|
3098
3118
|
}
|
|
3099
|
-
function
|
|
3119
|
+
function Jt(e, t, i) {
|
|
3100
3120
|
return y.parseExpressionAt(e, t, i);
|
|
3101
3121
|
}
|
|
3102
|
-
function
|
|
3122
|
+
function $t(e, t) {
|
|
3103
3123
|
return y.tokenizer(e, t);
|
|
3104
3124
|
}
|
|
3105
3125
|
export {
|
|
3106
3126
|
he as Node,
|
|
3107
3127
|
y as Parser,
|
|
3108
|
-
|
|
3128
|
+
Z as Position,
|
|
3109
3129
|
re as SourceLocation,
|
|
3110
|
-
|
|
3130
|
+
V as TokContext,
|
|
3111
3131
|
ke as Token,
|
|
3112
3132
|
v as TokenType,
|
|
3113
3133
|
xe as defaultOptions,
|
|
3114
|
-
|
|
3134
|
+
Be as getLineInfo,
|
|
3115
3135
|
F as isIdentifierChar,
|
|
3116
|
-
|
|
3117
|
-
|
|
3136
|
+
T as isIdentifierStart,
|
|
3137
|
+
z as isNewLine,
|
|
3118
3138
|
ge as keywordTypes,
|
|
3119
3139
|
w as lineBreak,
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3140
|
+
gt as lineBreakG,
|
|
3141
|
+
Re as nonASCIIwhitespace,
|
|
3142
|
+
Zt as parse,
|
|
3143
|
+
Jt as parseExpressionAt,
|
|
3124
3144
|
b as tokContexts,
|
|
3125
3145
|
a as tokTypes,
|
|
3126
|
-
|
|
3127
|
-
|
|
3146
|
+
$t as tokenizer,
|
|
3147
|
+
Xt as version
|
|
3128
3148
|
};
|