diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 00000000000..13566b81b01
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/Fisheye.github.io.iml b/.idea/Fisheye.github.io.iml
new file mode 100644
index 00000000000..24643cc3744
--- /dev/null
+++ b/.idea/Fisheye.github.io.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000000..03d9549ea8e
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000000..39fa2f15c8b
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000000..35eb1ddfbbc
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 00000000000..f673a71b7a2
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "liveServer.settings.port": 5502
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 00000000000..b224f184931
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,12 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "type": "npm",
+ "script": "lint",
+ "problemMatcher": [],
+ "label": "npm: lint",
+ "detail": "eslint .js"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/api-http/node_modules/mime/.npmignore b/api-http/node_modules/mime/.npmignore
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/assets/images/FishEye_Photos/Sample_Photos/.DS_Store b/assets/images/FishEye_Photos/Sample_Photos/.DS_Store
new file mode 100644
index 00000000000..71e1cfa46d6
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/.DS_Store differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Connected_Curves.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Connected_Curves.jpg
new file mode 100644
index 00000000000..56aeeea6024
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Connected_Curves.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Cross_Bar.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Cross_Bar.jpg
new file mode 100644
index 00000000000..efdd811878a
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Cross_Bar.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Horseshoe.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Horseshoe.jpg
new file mode 100644
index 00000000000..d6f231c7dda
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Horseshoe.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Water_on_Modern.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Water_on_Modern.jpg
new file mode 100644
index 00000000000..af0712fad44
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_Water_on_Modern.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_White_Light.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_White_Light.jpg
new file mode 100644
index 00000000000..d5679f79dc7
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Architecture_White_Light.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Jump.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Jump.jpg
new file mode 100644
index 00000000000..d1582de0687
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Jump.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Next_Hold.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Next_Hold.jpg
new file mode 100644
index 00000000000..c0db72fd183
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Next_Hold.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Race_End.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Race_End.jpg
new file mode 100644
index 00000000000..74ce01abea4
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Race_End.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Sky_Cross.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Sky_Cross.jpg
new file mode 100644
index 00000000000..5e39b15d579
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Sky_Cross.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Tricks_in_the_air.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Tricks_in_the_air.mp4
new file mode 100644
index 00000000000..a2d592235e4
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/Sport_Tricks_in_the_air.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/sport_water_tunnel.jpg b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/sport_water_tunnel.jpg
new file mode 100644
index 00000000000..df8ff6678a9
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Ellie Rose Wilkens/sport_water_tunnel.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Corner_Room.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Corner_Room.jpg
new file mode 100644
index 00000000000..f5fdf79a85c
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Corner_Room.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Dome.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Dome.jpg
new file mode 100644
index 00000000000..648dfa8e982
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_Dome.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_On_a_hill.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_On_a_hill.jpg
new file mode 100644
index 00000000000..989f2bbb7f1
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_On_a_hill.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4
new file mode 100644
index 00000000000..30a926ad115
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecure_Contrast.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecure_Contrast.jpg
new file mode 100644
index 00000000000..2195a5a0d8f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Architecure_Contrast.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel _Adventure_Door.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel _Adventure_Door.jpg
new file mode 100644
index 00000000000..1312689296b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel _Adventure_Door.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Bike_and_Stair.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Bike_and_Stair.jpg
new file mode 100644
index 00000000000..e532050dfba
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Bike_and_Stair.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_OpenMountain.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_OpenMountain.jpg
new file mode 100644
index 00000000000..86c5a3c4f7b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_OpenMountain.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_SunsetonCanals.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_SunsetonCanals.jpg
new file mode 100644
index 00000000000..1a94e34a82d
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_SunsetonCanals.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Tower.jpg b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Tower.jpg
new file mode 100644
index 00000000000..954484d2164
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Marcel Nikolic/Travel_Tower.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/.DS_Store b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/.DS_Store
new file mode 100644
index 00000000000..5008ddfcf53
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/.DS_Store differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Rainbow.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Rainbow.jpg
new file mode 100644
index 00000000000..6cfc042f843
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Rainbow.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Wild_Horses_in_the_mountains.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Wild_Horses_in_the_mountains.mp4
new file mode 100644
index 00000000000..d9c560dfbbc
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Animals_Wild_Horses_in_the_mountains.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_BenevidesWedding.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_BenevidesWedding.jpg
new file mode 100644
index 00000000000..bf0413ce78a
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_BenevidesWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_PintoWedding.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_PintoWedding.jpg
new file mode 100644
index 00000000000..5912d55410f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_PintoWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_SeasideWedding.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_SeasideWedding.jpg
new file mode 100644
index 00000000000..03ed8a4811f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Event_SeasideWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Background.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Background.jpg
new file mode 100644
index 00000000000..417c982a84f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Background.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Nora.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Nora.jpg
new file mode 100644
index 00000000000..1229f1d0226
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Nora.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Wednesday.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Wednesday.jpg
new file mode 100644
index 00000000000..4dbe4b02e4c
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Portrait_Wednesday.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_HillsideColor.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_HillsideColor.jpg
new file mode 100644
index 00000000000..32323aecc29
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_HillsideColor.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_Lonesome.jpg b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_Lonesome.jpg
new file mode 100644
index 00000000000..bb6fdc2e921
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Mimi Keel/Travel_Lonesome.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/.DS_Store b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/.DS_Store
new file mode 100644
index 00000000000..5008ddfcf53
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/.DS_Store differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_AfternoonBreak.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_AfternoonBreak.jpg
new file mode 100644
index 00000000000..3bb2ac52aee
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_AfternoonBreak.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Alexandra.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Alexandra.jpg
new file mode 100644
index 00000000000..cb68ff83388
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Alexandra.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Shaw.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Shaw.jpg
new file mode 100644
index 00000000000..ef96d47ea21
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Shaw.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Sunkissed.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Sunkissed.jpg
new file mode 100644
index 00000000000..564cd62780b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Portrait_Sunkissed.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Boat_Wanderer.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Boat_Wanderer.jpg
new file mode 100644
index 00000000000..ed41f74a9bb
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Boat_Wanderer.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Bridge_into_Forest.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Bridge_into_Forest.jpg
new file mode 100644
index 00000000000..cd7ac1f3e4c
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Bridge_into_Forest.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_On_the_Road.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_On_the_Road.jpg
new file mode 100644
index 00000000000..6962233f1a9
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_On_the_Road.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Outdoor_Baths.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Outdoor_Baths.jpg
new file mode 100644
index 00000000000..58f7dc2482f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Outdoor_Baths.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Road_into_Hill.jpg b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Road_into_Hill.jpg
new file mode 100644
index 00000000000..f8daa497283
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Road_into_Hill.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Rock_Mountains.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Rock_Mountains.mp4
new file mode 100644
index 00000000000..92de1f6d63d
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Nabeel Bradford/Travel_Rock_Mountains.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/.DS_Store b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/.DS_Store
new file mode 100644
index 00000000000..5008ddfcf53
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/.DS_Store differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/EllieRoseWilkens.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/EllieRoseWilkens.jpg
new file mode 100644
index 00000000000..85b4e021200
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/EllieRoseWilkens.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MarcelNikolic.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MarcelNikolic.jpg
new file mode 100644
index 00000000000..a96a86ed8cb
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MarcelNikolic.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MimiKeel.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MimiKeel.jpg
new file mode 100644
index 00000000000..5df25f8502f
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/MimiKeel.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/NabeelBradford.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/NabeelBradford.jpg
new file mode 100644
index 00000000000..acffb7a5fbb
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/NabeelBradford.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/RhodeDubois.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/RhodeDubois.jpg
new file mode 100644
index 00000000000..17f4e8a4300
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/RhodeDubois.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/TracyGalindo.jpg b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/TracyGalindo.jpg
new file mode 100644
index 00000000000..306a6766fdb
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Photographers_ID_Photos/TracyGalindo.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Majesty.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Majesty.jpg
new file mode 100644
index 00000000000..d06eee63d79
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Majesty.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Puppiness.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Puppiness.mp4
new file mode 100644
index 00000000000..6d50831efe2
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Animals_Puppiness.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_Emcee.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_Emcee.jpg
new file mode 100644
index 00000000000..b553079359e
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_Emcee.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_KeyboardCheck.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_KeyboardCheck.jpg
new file mode 100644
index 00000000000..4ed239031fd
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_KeyboardCheck.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_ProductPitch.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_ProductPitch.jpg
new file mode 100644
index 00000000000..1f612804aee
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_ProductPitch.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_VentureConference.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_VentureConference.jpg
new file mode 100644
index 00000000000..7b9f1974d3e
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Event_VentureConference.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Melody_Red_on_Stripes.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Melody_Red_on_Stripes.jpg
new file mode 100644
index 00000000000..531ff86aa88
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Melody_Red_on_Stripes.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Wings.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Wings.jpg
new file mode 100644
index 00000000000..8b34274ba5d
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Fashion_Wings.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_2000_with_8.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_2000_with_8.jpg
new file mode 100644
index 00000000000..9b9dd1b6098
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_2000_with_8.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_Butterfly.jpg b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_Butterfly.jpg
new file mode 100644
index 00000000000..d7072b8a43b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Rhode Dubois/Sport_Butterfly.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Mine.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Mine.jpg
new file mode 100644
index 00000000000..35d8031f871
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Mine.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Purple_light.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Purple_light.jpg
new file mode 100644
index 00000000000..02153b641e0
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Purple_light.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Triangle_Man.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Triangle_Man.jpg
new file mode 100644
index 00000000000..0234e0629a9
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Triangle_Man.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Wooden_Horse_Sculpture.mp4 b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Wooden_Horse_Sculpture.mp4
new file mode 100644
index 00000000000..91791cc73a4
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Art_Wooden_Horse_Sculpture.mp4 differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_18thAnniversary.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_18thAnniversary.jpg
new file mode 100644
index 00000000000..1a9d7128271
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_18thAnniversary.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_Sparklers.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_Sparklers.jpg
new file mode 100644
index 00000000000..8a8ea04c942
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_Sparklers.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_WeddingGazebo.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_WeddingGazebo.jpg
new file mode 100644
index 00000000000..3851ba5ed32
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Event_WeddingGazebo.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Pattern_on_Pattern.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Pattern_on_Pattern.jpg
new file mode 100644
index 00000000000..856f2bd5d3d
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Pattern_on_Pattern.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Urban_Jungle.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Urban_Jungle.jpg
new file mode 100644
index 00000000000..c623ed12b7b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Urban_Jungle.jpg differ
diff --git a/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Yellow_Beach.jpg b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Yellow_Beach.jpg
new file mode 100644
index 00000000000..d7ac076640b
Binary files /dev/null and b/assets/images/FishEye_Photos/Sample_Photos/Tracy Galindo/Fashion_Yellow_Beach.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/._Sample Photos b/assets/images/FishEye_Photos/__MACOSX/._Sample Photos
new file mode 100644
index 00000000000..da5b10d4f4e
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/._Sample Photos differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._.DS_Store b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._.DS_Store
new file mode 100644
index 00000000000..0681c47a740
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._.DS_Store differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Ellie Rose b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Ellie Rose
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Ellie Rose differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Marcel b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Marcel
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Marcel differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Mimi b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Mimi
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Mimi differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Nabeel b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Nabeel
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Nabeel differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Photographers ID Photos b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Photographers ID Photos
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Photographers ID Photos differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Rhode b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Rhode
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Rhode differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Tracy b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Tracy
new file mode 100644
index 00000000000..934d1032f76
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/._Tracy differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Connected_Curves.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Connected_Curves.jpg
new file mode 100644
index 00000000000..6ac39fac223
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Connected_Curves.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Cross_Bar.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Cross_Bar.jpg
new file mode 100644
index 00000000000..4388b1ea2c8
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Cross_Bar.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Horseshoe.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Horseshoe.jpg
new file mode 100644
index 00000000000..996741056d8
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Horseshoe.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Water_on_Modern.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Water_on_Modern.jpg
new file mode 100644
index 00000000000..5d847062218
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_Water_on_Modern.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_White_Light.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_White_Light.jpg
new file mode 100644
index 00000000000..9e90823130a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Architecture_White_Light.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Jump.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Jump.jpg
new file mode 100644
index 00000000000..a0e24af4a6e
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Jump.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Next_Hold.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Next_Hold.jpg
new file mode 100644
index 00000000000..77db8fd71a0
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Next_Hold.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Race_End.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Race_End.jpg
new file mode 100644
index 00000000000..e7c52ca57bc
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Race_End.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Sky_Cross.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Sky_Cross.jpg
new file mode 100644
index 00000000000..813172e5b68
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Sky_Cross.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Tricks_in_the_air.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Tricks_in_the_air.mp4
new file mode 100644
index 00000000000..2156761a071
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._Sport_Tricks_in_the_air.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._sport_water_tunnel.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._sport_water_tunnel.jpg
new file mode 100644
index 00000000000..17374d75236
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Ellie Rose/._sport_water_tunnel.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Corner_Room.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Corner_Room.jpg
new file mode 100644
index 00000000000..91e4af5ccc7
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Corner_Room.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Dome.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Dome.jpg
new file mode 100644
index 00000000000..6a92ba3462a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_Dome.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_On_a_hill.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_On_a_hill.jpg
new file mode 100644
index 00000000000..f4efcb46197
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_On_a_hill.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4
new file mode 100644
index 00000000000..66c92270109
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecture_coverr_circle_empty_highway_in_buenos_aires_587740985637.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecure_Contrast.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecure_Contrast.jpg
new file mode 100644
index 00000000000..1cb369c6293
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Architecure_Contrast.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel _Adventure_Door.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel _Adventure_Door.jpg
new file mode 100644
index 00000000000..c93a56e7b71
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel _Adventure_Door.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Bike_and_Stair.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Bike_and_Stair.jpg
new file mode 100644
index 00000000000..509d438545a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Bike_and_Stair.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_OpenMountain.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_OpenMountain.jpg
new file mode 100644
index 00000000000..850e6be2c99
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_OpenMountain.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_SunsetonCanals.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_SunsetonCanals.jpg
new file mode 100644
index 00000000000..ab0222fc7b8
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_SunsetonCanals.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Tower.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Tower.jpg
new file mode 100644
index 00000000000..ed7515c5f03
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Marcel/._Travel_Tower.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._.DS_Store b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._.DS_Store
new file mode 100644
index 00000000000..0681c47a740
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._.DS_Store differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Rainbow.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Rainbow.jpg
new file mode 100644
index 00000000000..df5bfa70166
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Rainbow.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Wild_Horses_in_the_mountains.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Wild_Horses_in_the_mountains.mp4
new file mode 100644
index 00000000000..c3556207aa2
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Animals_Wild_Horses_in_the_mountains.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_BenevidesWedding.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_BenevidesWedding.jpg
new file mode 100644
index 00000000000..b637df7656e
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_BenevidesWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_PintoWedding.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_PintoWedding.jpg
new file mode 100644
index 00000000000..38381000adf
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_PintoWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_SeasideWedding.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_SeasideWedding.jpg
new file mode 100644
index 00000000000..b63cd8fa5d2
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Event_SeasideWedding.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Background.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Background.jpg
new file mode 100644
index 00000000000..75b29279e40
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Background.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Nora.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Nora.jpg
new file mode 100644
index 00000000000..30ea1b6c678
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Nora.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Wednesday.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Wednesday.jpg
new file mode 100644
index 00000000000..518b35ac73a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Portrait_Wednesday.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_HillsideColor.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_HillsideColor.jpg
new file mode 100644
index 00000000000..2b567db5728
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_HillsideColor.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_Lonesome.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_Lonesome.jpg
new file mode 100644
index 00000000000..400b9283bae
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Mimi/._Travel_Lonesome.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._.DS_Store b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._.DS_Store
new file mode 100644
index 00000000000..0681c47a740
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._.DS_Store differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_AfternoonBreak.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_AfternoonBreak.jpg
new file mode 100644
index 00000000000..ed601872090
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_AfternoonBreak.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Alexandra.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Alexandra.jpg
new file mode 100644
index 00000000000..2ff68316f54
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Alexandra.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Shaw.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Shaw.jpg
new file mode 100644
index 00000000000..f4bdfc1b295
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Shaw.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Sunkissed.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Sunkissed.jpg
new file mode 100644
index 00000000000..015ddaedb93
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Portrait_Sunkissed.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Boat_Wanderer.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Boat_Wanderer.jpg
new file mode 100644
index 00000000000..41cf57257a4
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Boat_Wanderer.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Bridge_into_Forest.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Bridge_into_Forest.jpg
new file mode 100644
index 00000000000..25a23919aed
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Bridge_into_Forest.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_On_the_Road.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_On_the_Road.jpg
new file mode 100644
index 00000000000..49058bd3b1c
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_On_the_Road.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Outdoor_Baths.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Outdoor_Baths.jpg
new file mode 100644
index 00000000000..8e6e7b8595c
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Outdoor_Baths.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Road_into_Hill.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Road_into_Hill.jpg
new file mode 100644
index 00000000000..09c40a0769f
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Road_into_Hill.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Rock_Mountains.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Rock_Mountains.mp4
new file mode 100644
index 00000000000..622ea057b86
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Nabeel/._Travel_Rock_Mountains.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._.DS_Store b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._.DS_Store
new file mode 100644
index 00000000000..0681c47a740
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._.DS_Store differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._EllieRoseWilkens.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._EllieRoseWilkens.jpg
new file mode 100644
index 00000000000..6be190c7524
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._EllieRoseWilkens.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MarcelNikolic.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MarcelNikolic.jpg
new file mode 100644
index 00000000000..eed9637dfc3
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MarcelNikolic.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MimiKeel.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MimiKeel.jpg
new file mode 100644
index 00000000000..ee7aaf585e9
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._MimiKeel.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._NabeelBradford.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._NabeelBradford.jpg
new file mode 100644
index 00000000000..3fa66d3125c
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._NabeelBradford.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._RhodeDubois.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._RhodeDubois.jpg
new file mode 100644
index 00000000000..4ed6857e43c
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._RhodeDubois.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._TracyGalindo.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._TracyGalindo.jpg
new file mode 100644
index 00000000000..a73f45c86a4
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Photographers ID Photos/._TracyGalindo.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Majesty.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Majesty.jpg
new file mode 100644
index 00000000000..3ac2f15c100
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Majesty.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Puppiness.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Puppiness.mp4
new file mode 100644
index 00000000000..996c0605612
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Animals_Puppiness.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_Emcee.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_Emcee.jpg
new file mode 100644
index 00000000000..a373c23f524
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_Emcee.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_KeyboardCheck.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_KeyboardCheck.jpg
new file mode 100644
index 00000000000..db4ab3a099c
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_KeyboardCheck.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_ProductPitch.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_ProductPitch.jpg
new file mode 100644
index 00000000000..1da441fd612
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_ProductPitch.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_VentureConference.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_VentureConference.jpg
new file mode 100644
index 00000000000..f90197653d9
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Event_VentureConference.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Melody_Red_on_Stripes.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Melody_Red_on_Stripes.jpg
new file mode 100644
index 00000000000..9354d120836
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Melody_Red_on_Stripes.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Wings.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Wings.jpg
new file mode 100644
index 00000000000..5163247849f
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Fashion_Wings.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_2000_with_8.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_2000_with_8.jpg
new file mode 100644
index 00000000000..4ac1d72e7ee
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_2000_with_8.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_Butterfly.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_Butterfly.jpg
new file mode 100644
index 00000000000..591e9e833ba
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Rhode/._Sport_Butterfly.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Mine.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Mine.jpg
new file mode 100644
index 00000000000..2e794c15a11
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Mine.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Purple_light.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Purple_light.jpg
new file mode 100644
index 00000000000..84e62017c4a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Purple_light.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Triangle_Man.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Triangle_Man.jpg
new file mode 100644
index 00000000000..6a2f0dcb7e0
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Triangle_Man.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Wooden_Horse_Sculpture.mp4 b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Wooden_Horse_Sculpture.mp4
new file mode 100644
index 00000000000..ff3c8892048
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Art_Wooden_Horse_Sculpture.mp4 differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_18thAnniversary.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_18thAnniversary.jpg
new file mode 100644
index 00000000000..a878b96e6d9
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_18thAnniversary.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_Sparklers.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_Sparklers.jpg
new file mode 100644
index 00000000000..4c30abedf2b
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_Sparklers.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_WeddingGazebo.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_WeddingGazebo.jpg
new file mode 100644
index 00000000000..e33bb71e7a2
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Event_WeddingGazebo.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Pattern_on_Pattern.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Pattern_on_Pattern.jpg
new file mode 100644
index 00000000000..33ec1a529a1
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Pattern_on_Pattern.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Urban_Jungle.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Urban_Jungle.jpg
new file mode 100644
index 00000000000..396e63372c6
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Urban_Jungle.jpg differ
diff --git a/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Yellow_Beach.jpg b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Yellow_Beach.jpg
new file mode 100644
index 00000000000..7a59633906a
Binary files /dev/null and b/assets/images/FishEye_Photos/__MACOSX/Sample Photos/Tracy/._Fashion_Yellow_Beach.jpg differ
diff --git a/css/modal.css b/css/modal.css
new file mode 100644
index 00000000000..03769b5f8fa
--- /dev/null
+++ b/css/modal.css
@@ -0,0 +1,128 @@
+/*MODAL style */
+
+#contact__modal {
+ display: none;
+ border-radius: 5px;
+ background-color: #DB8876;
+ width: 50%;
+ flex-direction: column;
+ align-items: center;
+ padding: 35px;
+ margin: 180px auto;
+}
+.modal__form {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-evenly;
+ width: 100%;
+ min-height: 900px;
+}
+.modal__form--header{
+ display: flex;
+ justify-content: space-between;
+ flex-direction: row;
+ width: 100%;
+ margin: 0;
+}
+
+.modal__form--BtnClose{
+ background-color: #DB8876;
+ width: 50px;
+ height: 50px;
+ cursor: pointer;
+}
+.modal__form--BtnClose:hover, .modal__form--BtnClose:focus{
+ transform: scale(1.1);
+ outline: 2px solid #901C1C;
+}
+.modal__form--BtnClose:before{
+ display: flex;
+ justify-content: center;
+ content: "\f659";
+ font-family: 'bootstrap-icons';
+ color: white;
+ background-color: #DB8876;
+ font-size: 50px;
+ height: 100%;
+ width: 100%;
+}
+
+.modal__form--title{
+ font-size: 64px;
+ font-weight: 400;
+ text-align: center;
+ margin: 0;
+}
+.modal__form--photographerName{
+ font-size: 64px;
+ font-weight: 400;
+ margin: 0;
+}
+
+form {
+ display: flex;
+ width: 100%;
+ flex-direction: column;
+ align-items: flex-start;
+}
+
+form label {
+ color: #312E2E;
+ font-size: 36px;
+}
+
+form div {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ align-items: self-start;
+ margin-bottom: 26px;
+}
+
+form input {
+ width: 100%;
+ height: 68px;
+ border: none;
+ border-radius: 5px;
+}
+form textarea{
+ width: 100%;
+ border: none;
+ border-radius: 5px;
+}
+::placeholder{
+ font-size: 24px;
+ font-family: "DM Sans", sans-serif;
+ color: black;
+}
+.formData[data-error-visible]::after{
+ content: attr(data-error);
+ font-size: 24px;
+ font-weight: bold;
+ text-decoration: underline 2px double #901C1C;
+ font-family: "DM Sans", sans-serif;
+ color: #0B0D0D;
+
+ opacity: 0;
+}
+.formData[data-error-visible="true"]::after{
+ opacity: 1;
+}
+.text-control[data-error-visible="true"]{
+ border: 5px solid #901C1C;
+}
+.contact__form--submitBtn{
+ background-color: #901C1C;
+ color: white;
+ font-size: 18px;
+ font-weight: 700;
+ border: none;
+ border-radius: 5px;
+ width: 42%;
+ height: 68px;
+ cursor: pointer;
+}
+.contact__form--submitBtn:hover, .contact__form--submitBtn:focus{
+ border: #312E2E 2px solid;
+ transform: scale(1.1);
+}
\ No newline at end of file
diff --git a/css/photographer.css b/css/photographer.css
index 81854c023b9..7ed1b00fdb1 100644
--- a/css/photographer.css
+++ b/css/photographer.css
@@ -1,16 +1,125 @@
-#contact_modal {
+*, ::after, ::before{
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ font-family: 'DM Sans', sans-serif;
+}
+nav{
display: none;
+ position: sticky;
+ top: 2%;
+ left: 1%;
+}
+#skipLink{
+ display: block;
+ position: sticky;
+ top: 2%;
+ left: 1%;
+ background-color: #901C1C;
+ width: 60px;
+ height: 60px;
+}
+#skipLink:focus, #skipLink:hover{
+ outline: #901C1C solid 2px;
+ padding: 5px;
+ transform: scale(1.1);
+}
+#skipLink::before{
+ content: "\f12E";
+ color: white;
+ font-size: 50px;
+ font-family: 'bootstrap-icons';
+ font-weight: 700;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+.Fisheye__header{
+ height: 135px;
+ position: relative;
+}
+
+.Fisheye__header--link, .logo{
+ margin:0;
+}
+
+.Fisheye__header--link{
+ position: absolute;
+ top:30%;
+ left: 11%;
+}
+.Fisheye__header--link:focus{
+ outline: #901C1C solid 2px;
+ padding: 5px;
+ transform: scale(1.1);
}
-.photograph-header {
+.Fisheye__header--link::before{
+ content: "";
+ position: absolute;
+ bottom: 3%;
+ left: 50%;
+ width: 0;
+ height: 2px;
+ background-color: #901C1C;
+ transform: translateX(-50%);
+ transition: width 0.5s ease-in-out;
+ z-index: -1;
+}
+.Fisheye__header--link:hover::before, .Fisheye__header--link:focus::before{
+ width: 100%;
+
+}
+#main{
+ padding: 0 120px;
+}
+.photograph__header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ padding: 40px;
background-color: #FAFAFA;
height: 300px;
- margin: 0 100px;
+ border-radius: 5px;
+
}
-
-.contact_button {
+.photograph__profile{
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+.photograph__profile--portrait {
+ max-height: 200px;
+ max-width: 200px;
+ object-fit: cover;
+ clip-path: circle(36% at 50% 50%);
+ object-position: center;
+ transform: scale(1.4);
+
+}
+.photograph__profile--name{
+ color: #901C1C;
+ font-size: 64px;
+ font-weight: 400;
+ margin: 0%;
+}
+.photograph__profile--location{
+ color: #901C1C;
+ font-size: 24px;
+ font-weight: 700;
+}
+.photograph__profile--tagline{
+
+ font-size: 18px;
+ font-weight: 400;
+ align-self: flex-start;
+ padding-top: 20px ;
+}
+.contact__button {
font-size: 20px;
- font-weight: bold;
+ font-weight: 700;
color: white;
padding: 11px;
width: 170px;
@@ -20,57 +129,374 @@
border-radius: 5px;
cursor: pointer;
}
+.contact__button:hover{
+ background-color: #db8876;
+ color: black;
+ border: solid 2px black;
+}
+.contact__button:focus{
+ background-color: #db8876;
+ color: black;
+ border: solid 2px black;
+}
-.modal {
- border-radius: 5px;
- background-color: #DB8876;
- width: 50%;
+/*FilterSection Style*/
+
+#filter__section{
display: flex;
- flex-direction: column;
align-items: center;
- justify-content: space-between;
- padding: 35px;
- margin: auto;
+ height: 50px;
+ gap: 10px;
+ margin-top: 10px;
}
-
-.modal header {
+#filter__section h2{
+ font-size: 18px;
+ font-weight: 700;
+}
+.filter{
+ position: relative;
+ height: 100%;
+}
+.filter__Dropdown{
+ z-index: 10;
+ position: absolute;
+ border-radius: 5px;
+ overflow: hidden;
+}
+.rotate{
+ transform: rotate(180deg);
+}
+.filter__Dropdown--Ul{
+ display: block;
+ max-height: 0;
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ max-height: 0;
+ background-color: #901C1C;
+ transition: max-height .1s ease-in-out;
+}
+.dropdown__option{
+ position: relative;
+ width: 150px;
+}
+.dropdown__option::before{
+ content: "";
+ position: absolute;
+ top: 0px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 85%;
+ height: 1px;
+ background-color: #fff;
+
+}
+.filter__Dropdown--Btn, .dropdown__option--btn{
+ height: 50px;
+ padding: 15px;
+ color: #fff;
+ font-size: 18px;
+ background-color: #901C1C;
+ border: none;
+}
+.filter__Dropdown--Btn{
+ display: flex;
justify-content: space-between;
+ align-items: center;
+ width: 150px;
+ background-color: #901C1C;
+}
+.dropdown__option--btn{
width: 100%;
+ text-align: left;
+ display: block;
}
-
-.modal header img {
- cursor: pointer;
+.dropdown__option:hover,
+.dropdown__option:focus,
+.filter__Dropdown--Btn:hover,
+.filter__Dropdown--Btn:focus{
+ background-color: #db8876;
+ color: black;
+ border: solid 2px black;
+}
+.dropdown__option--btn:hover,
+.dropdown__option--btn:focus{
+ background-color: #db8876;
+ color: black;
+ text-decoration: underline;
+}
+.fa-chevron-up::before{
+ content: "\F27C";
+ font-family: 'bootstrap-icons';
+ font-size: 30px;
+ color: #fff;
+}
+.curtain__effect {
+ max-height: 200px;
}
-.modal header h2 {
- font-size: 64px;
- font-weight: normal;
- text-align: center;
+/*Gallery Style*/
+.media__container{
+ position: relative;
+}
+.picture__container{
+ position: relative;
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ gap: 30px 60px;
+ margin-top: 20px;
+}
+.gallery__card{
+ display: flex;
+ flex-flow: column;
+ border-radius: 5px;
+ gap: 10px;
+ width: 350px;
+ height: 351px;
+}
+.gallery__card--link{
+ text-decoration: none;
+}
+.gallery__card--link:focus, .gallery__card--link:hover{
+ outline: 2px solid #901C1C;
+ border-radius: 5px;
+ transform: scale(1.05);
+}
+.gallery__card--link figure{
+ height: 300px;
+ margin: 0;
+}
+.gallery__card--media{
+ height: 100%;
+ width: 100%;
+ object-fit: cover;
+ object-position: center;
+ border-radius: 5px;
+}
+.gallery__card figcaption{
+ display: flex;
+ flex-flow: row;
+ justify-content: space-between;
+ max-width: 350px;
+ border-radius: 5px;
+ gap: 10px;
}
-form {
+figcaption h2{
+ font-size:22px;
+ font-weight: 400;
+ color: #901C1C;
+}
+.nbLike{
+ font-size: 24px;
+ font-weight: 500;
+ color: #901C1C;
+}
+.container__PictureLike{
+ display: flex;
+ align-items: baseline;
+ gap: 5px;
+}
+.container__PictureLike:focus{
+ outline: 2px solid #901C1C;
+ transform: scale(1.05);
+}
+.btn__like{
+ height: 21px;
+ width: 21px;
+ border: none;
+ background-color: transparent;
+ text-align: center;
+}
+.btn__like:focus{
+ outline: 2px solid #901C1C;
+ transform: scale(1.05);
+}
+.btn__like:focus .fa-heart::before{
+ transform: scale(1.05);
+ color: #db8876;
+}
+.btn__like span{
+ height: 21px;
+ width: 21px;
+
+}
+.fa-heart:hover::before{
+ color: #db8876;
+}
+.fa-heart::before{
+ content: "\F415";
+ font-family: 'bootstrap-icons';
+ font-weight: 900;
+ font-size: 20px;
+ color: #901C1C;
+}
+.photographer__aside{
display: flex;
+ justify-content: space-around;
+ align-items: center;
+ position: sticky;
+ width: 376px;
+ height: 35px;
+ bottom:0;
+ left: 100%;
+ background-color: #db8876;
+ border-radius: 5px;
+ padding: 5px;
+ font-size: 24px;
+ font-weight: 500;
+}
+.photographer__aside:hover, .photographer__aside:focus{
+ outline: #901C1C solid 2px;
+}
+.Like__Heart{
+ margin-left: 10px;
+
+}
+.Like__Heart::before{
+ content: "\F415";
+ font-family: 'bootstrap-icons';
+ font-weight: 900;
+ font-size: 20px;
+ color: black;
+
+}
+.animeCard{
+ animation: fade .2s ease-in-out;
+}
+/* Lightbox */
+.lightbox{
+ display: none;
+ justify-content: center;
width: 100%;
- flex-direction: column;
- align-items: flex-start;
+ max-height: 100%;
+ align-items: center;
}
-
-form label {
- color: #312E2E;
- font-size: 36px;
+.lightbox__container{
+ position: relative;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ max-width: 1253px;
+ max-height: 1024px;
+ height: 100%;
+ padding: 30px 70px 0;
+ border-radius: 5px;
+ opacity: 0;
+ transform: translateY(-150px);
+ animation: fadeIn .3s ease-in-out forwards;
}
-
-form div {
+.lightbox__container--media{
display: flex;
flex-direction: column;
width: 100%;
- align-items: self-start;
- margin-bottom: 26px;
+ height: 100%;
+
}
-
-form input {
+.lightbox__container--media figcaption{
+ display: flex;
+ align-items: center;
+ width: 100%;
+ height: 50px;
+ margin-top: 10px;
+ font-size: 24px;
+ color: #901C1C;
+}
+.lightbox__container--media img,
+.lightbox__container--media video{
width: 100%;
- height: 68px;
+ max-height: 900px;
+ object-fit: cover;
+}
+.lightbox__container--media video:focus{
+ outline: 2px solid #901C1C;
+}
+.lightbox__container--closeBtn,
+.lightbox__container--arrowNext,
+.lightbox__container--arrowPrevious{
+ background-color: transparent;
border: none;
+ color: #901C1C;
+ ;
+}
+.lightbox__container--closeBtn{
+ z-index: 100;
+ position: absolute;
+ top: 3.75%;
+ right: 0.5%;
+ height: 55px;
+ width: 55px;
+ text-align: center;
+}
+.lightbox__container--closeBtn:focus,.lightbox__container--closeBtn:hover{
+ outline: 2px solid #901C1C;
+}
+
+.lightbox__container--closeBtn::before{
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ content: "\f659";
+ font-family: 'bootstrap-icons';
+ font-size: 70px;
+ height: 55px;
+ width: 55px;
+}
+.lightbox__container--arrowNext,
+.lightbox__container--arrowPrevious{
+ z-index: 100;
+ position: absolute;
+ top: 50%;
border-radius: 5px;
-}
\ No newline at end of file
+ transform: translateY(-50%);
+ height: 70px;
+ width: 45px;
+}
+.lightbox__container--arrowNext{
+ left: 94%;
+}
+.lightbox__container--arrowNext:hover{
+ top: 50%;
+}
+.lightbox__container--arrowPrevious{
+ right: 94%;
+}
+.lightbox__container--arrowNext::before,
+.lightbox__container--arrowPrevious::before{
+ display: flex;
+ justify-content: center;
+ font-weight: 700;
+ font-size: 70px;
+ color: #901C1C;
+ height: 70px;
+ width: 45px;
+
+}
+.lightbox__container--arrowNext::before{
+ content: "\f27B";
+ font-family: 'bootstrap-icons';
+
+}
+.lightbox__container--arrowPrevious::before{
+ content: "\F27A";
+ font-family: 'bootstrap-icons';
+}
+.lightbox__container--arrowNext:focus,.lightbox__container--arrowNext:hover,
+.lightbox__container--arrowPrevious:focus,.lightbox__container--arrowPrevious:hover{
+ outline: #901C1C solid 2px;
+}
+.lightbox__container--arrowNext:focus,.lightbox__container--arrowNext:hover{
+ left: 95%;
+}
+.lightbox__container--arrowPrevious:focus,.lightbox__container--arrowPrevious:hover{
+ right: 95%;
+}
+
+/* ANIMATION */
+@keyframes fadeIn {
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
diff --git a/css/style.css b/css/style.css
index e4dafd3521b..22531a18233 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,11 +1,18 @@
@import url("photographer.css");
-
+:root {
+ --fa-rotate-angle: 0deg; /* Valeur par défaut */
+}
+/* Correction pour FontAwesome */
+.fa-rotate-by {
+ transform: rotate(var(--fa-rotate-angle, 0deg));
+}
body {
font-family: "DM Sans", sans-serif;
margin: 0;
}
-
-
+a{
+ text-decoration: none;
+}
header {
display: flex;
flex-direction: row;
@@ -24,27 +31,95 @@ h1 {
margin-left: 100px;
}
-.photographer_section {
+.photographer {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 70px;
margin-top: 100px;
}
-.photographer_section article {
+.photographerCard {
justify-self: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
+ width: 200px;
+ height: 310px;
+}
+.photographer__link {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-decoration: none;
+ color: #000;
+
+}
+.photographer__link:focus{
+ outline: #901C1C solid 2px;
+}
+.photographer__link:hover, .photographer__link:focus{
+ transform: scale(1.15);
+ padding-bottom: 10px;
+
+}
+.photographer__link:hover .photographer__link--name::before, .photographer__link:focus .photographer__link--name::before {
+ width: 80%;
}
-.photographer_section article h2 {
+.photographer__link--thumbnail {
+ width: 200px;
+ height: 200px;
+ object-fit: cover;
+ overflow-clip-margin: unset;/*Correction pixelisation de l'image sous chrome. Propriété récente non reconnu par le w3c- L'alternative avec image-rendering n'est pas fonctionnelle*/
+ clip-path: circle(36% at 50% 50%);
+ object-position: center;
+ transform: scale(1.4);
+}
+.photographer__link--name::before {
+ content: "";
+ position: absolute;
+ width: 0;
+ bottom: 10%;
+ left: 50%;
+ height: 2px;
+ background-color: #D3573C;
+ transform: translateX(-50%);
+ transition: width 0.5s ease-in-out ;
+}
+.photographer__link--name{
color: #D3573C;
font-size: 36px;
+ font-weight: 400;
+ text-align: center;
+ width: max-content;
+ position: relative;
+
}
-
-.photographer_section article img {
- height: 200px;
- width: 200px;
+.photographer__info{
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding-top: 5px;
+}
+/*Modification de la taille de police pour faciliter la lecture*/
+.photographer__info--location{
+ color: #901C1C;
+ font-size: 18px;
+ font-weight: 400;
+ text-align: center;
+}
+.photographer__info--tagline{
+ font-size: 16px;
+ font-weight: 400;
+ text-align: center;
+ min-width: 200px;
+ min-height: 42px;
+}
+.photographer__info--price{
+ font-size: 14px;
+ font-weight: 400;
+ text-align: center;
+ color: #757575;
}
\ No newline at end of file
diff --git a/data/photographers.json b/data/photographers.json
index 2b517249787..2df14e6744d 100644
--- a/data/photographers.json
+++ b/data/photographers.json
@@ -285,7 +285,7 @@
{
"id": 34513453,
"photographerId": 527,
- "title": "Shaw Potrait",
+ "title": "Shaw Portrait",
"image": "Portrait_Shaw.jpg",
"likes": 52,
"date": "2017-04-21",
@@ -331,7 +331,7 @@
{
"id": 2525345343,
"photographerId": 243,
- "title": "Wednesday Potrait",
+ "title": "Wednesday Portrait",
"image": "Portrait_Wednesday.jpg",
"likes": 34,
"date": "2019-04-07",
@@ -413,7 +413,7 @@
{
"id": 2523434,
"photographerId": 195,
- "title": "Senset on Canals, Venice",
+ "title": "Sunset on Canals, Venice",
"image": "Travel_SunsetonCanals.jpg",
"likes": 53,
"date": "2019-05-06",
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 00000000000..6d1eeba04b3
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,9 @@
+import globals from "globals";
+import pluginJs from "@eslint/js";
+
+
+/** @type {import('eslint').Linter.Config[]} */
+export default [
+ {languageOptions: { globals: globals.browser }},
+ pluginJs.configs.recommended,
+];
\ No newline at end of file
diff --git a/index.html b/index.html
index 7927da414a0..68179469c4d 100644
--- a/index.html
+++ b/index.html
@@ -1,21 +1,24 @@
-
-
+
+
+ Fisheye - Accueil
+
+
- Fisheye
+
+
-
+
Nos photographes
-
-
-
-
+
+
+
diff --git a/node_modules/.bin/acorn b/node_modules/.bin/acorn
new file mode 100644
index 00000000000..679bd163cc4
--- /dev/null
+++ b/node_modules/.bin/acorn
@@ -0,0 +1,16 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+ *CYGWIN*|*MINGW*|*MSYS*)
+ if command -v cygpath > /dev/null 2>&1; then
+ basedir=`cygpath -w "$basedir"`
+ fi
+ ;;
+esac
+
+if [ -x "$basedir/node" ]; then
+ exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
+else
+ exec node "$basedir/../acorn/bin/acorn" "$@"
+fi
diff --git a/node_modules/.bin/acorn.cmd b/node_modules/.bin/acorn.cmd
new file mode 100644
index 00000000000..a9324df955b
--- /dev/null
+++ b/node_modules/.bin/acorn.cmd
@@ -0,0 +1,17 @@
+@ECHO off
+GOTO start
+:find_dp0
+SET dp0=%~dp0
+EXIT /b
+:start
+SETLOCAL
+CALL :find_dp0
+
+IF EXIST "%dp0%\node.exe" (
+ SET "_prog=%dp0%\node.exe"
+) ELSE (
+ SET "_prog=node"
+ SET PATHEXT=%PATHEXT:;.JS;=;%
+)
+
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %*
diff --git a/node_modules/.bin/acorn.ps1 b/node_modules/.bin/acorn.ps1
new file mode 100644
index 00000000000..6f6dcddf3be
--- /dev/null
+++ b/node_modules/.bin/acorn.ps1
@@ -0,0 +1,28 @@
+#!/usr/bin/env pwsh
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
+
+$exe=""
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
+ # Fix case when both the Windows and Linux builds of Node
+ # are installed in the same directory
+ $exe=".exe"
+}
+$ret=0
+if (Test-Path "$basedir/node$exe") {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
+ } else {
+ & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
+ }
+ $ret=$LASTEXITCODE
+} else {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
+ } else {
+ & "node$exe" "$basedir/../acorn/bin/acorn" $args
+ }
+ $ret=$LASTEXITCODE
+}
+exit $ret
diff --git a/node_modules/.bin/eslint b/node_modules/.bin/eslint
new file mode 100644
index 00000000000..d450ee1f995
--- /dev/null
+++ b/node_modules/.bin/eslint
@@ -0,0 +1,16 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+ *CYGWIN*|*MINGW*|*MSYS*)
+ if command -v cygpath > /dev/null 2>&1; then
+ basedir=`cygpath -w "$basedir"`
+ fi
+ ;;
+esac
+
+if [ -x "$basedir/node" ]; then
+ exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
+else
+ exec node "$basedir/../eslint/bin/eslint.js" "$@"
+fi
diff --git a/node_modules/.bin/eslint.cmd b/node_modules/.bin/eslint.cmd
new file mode 100644
index 00000000000..032901a59ec
--- /dev/null
+++ b/node_modules/.bin/eslint.cmd
@@ -0,0 +1,17 @@
+@ECHO off
+GOTO start
+:find_dp0
+SET dp0=%~dp0
+EXIT /b
+:start
+SETLOCAL
+CALL :find_dp0
+
+IF EXIST "%dp0%\node.exe" (
+ SET "_prog=%dp0%\node.exe"
+) ELSE (
+ SET "_prog=node"
+ SET PATHEXT=%PATHEXT:;.JS;=;%
+)
+
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\eslint\bin\eslint.js" %*
diff --git a/node_modules/.bin/eslint.ps1 b/node_modules/.bin/eslint.ps1
new file mode 100644
index 00000000000..155bec495cf
--- /dev/null
+++ b/node_modules/.bin/eslint.ps1
@@ -0,0 +1,28 @@
+#!/usr/bin/env pwsh
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
+
+$exe=""
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
+ # Fix case when both the Windows and Linux builds of Node
+ # are installed in the same directory
+ $exe=".exe"
+}
+$ret=0
+if (Test-Path "$basedir/node$exe") {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
+ } else {
+ & "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
+ }
+ $ret=$LASTEXITCODE
+} else {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "node$exe" "$basedir/../eslint/bin/eslint.js" $args
+ } else {
+ & "node$exe" "$basedir/../eslint/bin/eslint.js" $args
+ }
+ $ret=$LASTEXITCODE
+}
+exit $ret
diff --git a/node_modules/.bin/js-yaml b/node_modules/.bin/js-yaml
new file mode 100644
index 00000000000..82416ef1f52
--- /dev/null
+++ b/node_modules/.bin/js-yaml
@@ -0,0 +1,16 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+ *CYGWIN*|*MINGW*|*MSYS*)
+ if command -v cygpath > /dev/null 2>&1; then
+ basedir=`cygpath -w "$basedir"`
+ fi
+ ;;
+esac
+
+if [ -x "$basedir/node" ]; then
+ exec "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
+else
+ exec node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
+fi
diff --git a/node_modules/.bin/js-yaml.cmd b/node_modules/.bin/js-yaml.cmd
new file mode 100644
index 00000000000..453312b6d91
--- /dev/null
+++ b/node_modules/.bin/js-yaml.cmd
@@ -0,0 +1,17 @@
+@ECHO off
+GOTO start
+:find_dp0
+SET dp0=%~dp0
+EXIT /b
+:start
+SETLOCAL
+CALL :find_dp0
+
+IF EXIST "%dp0%\node.exe" (
+ SET "_prog=%dp0%\node.exe"
+) ELSE (
+ SET "_prog=node"
+ SET PATHEXT=%PATHEXT:;.JS;=;%
+)
+
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\js-yaml\bin\js-yaml.js" %*
diff --git a/node_modules/.bin/js-yaml.ps1 b/node_modules/.bin/js-yaml.ps1
new file mode 100644
index 00000000000..2acfc61c35d
--- /dev/null
+++ b/node_modules/.bin/js-yaml.ps1
@@ -0,0 +1,28 @@
+#!/usr/bin/env pwsh
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
+
+$exe=""
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
+ # Fix case when both the Windows and Linux builds of Node
+ # are installed in the same directory
+ $exe=".exe"
+}
+$ret=0
+if (Test-Path "$basedir/node$exe") {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
+ } else {
+ & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
+ }
+ $ret=$LASTEXITCODE
+} else {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
+ } else {
+ & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
+ }
+ $ret=$LASTEXITCODE
+}
+exit $ret
diff --git a/node_modules/.bin/node-which b/node_modules/.bin/node-which
new file mode 100644
index 00000000000..b49b03f7dea
--- /dev/null
+++ b/node_modules/.bin/node-which
@@ -0,0 +1,16 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+ *CYGWIN*|*MINGW*|*MSYS*)
+ if command -v cygpath > /dev/null 2>&1; then
+ basedir=`cygpath -w "$basedir"`
+ fi
+ ;;
+esac
+
+if [ -x "$basedir/node" ]; then
+ exec "$basedir/node" "$basedir/../which/bin/node-which" "$@"
+else
+ exec node "$basedir/../which/bin/node-which" "$@"
+fi
diff --git a/node_modules/.bin/node-which.cmd b/node_modules/.bin/node-which.cmd
new file mode 100644
index 00000000000..8738aed88e6
--- /dev/null
+++ b/node_modules/.bin/node-which.cmd
@@ -0,0 +1,17 @@
+@ECHO off
+GOTO start
+:find_dp0
+SET dp0=%~dp0
+EXIT /b
+:start
+SETLOCAL
+CALL :find_dp0
+
+IF EXIST "%dp0%\node.exe" (
+ SET "_prog=%dp0%\node.exe"
+) ELSE (
+ SET "_prog=node"
+ SET PATHEXT=%PATHEXT:;.JS;=;%
+)
+
+endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %*
diff --git a/node_modules/.bin/node-which.ps1 b/node_modules/.bin/node-which.ps1
new file mode 100644
index 00000000000..cfb09e84443
--- /dev/null
+++ b/node_modules/.bin/node-which.ps1
@@ -0,0 +1,28 @@
+#!/usr/bin/env pwsh
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
+
+$exe=""
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
+ # Fix case when both the Windows and Linux builds of Node
+ # are installed in the same directory
+ $exe=".exe"
+}
+$ret=0
+if (Test-Path "$basedir/node$exe") {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
+ } else {
+ & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
+ }
+ $ret=$LASTEXITCODE
+} else {
+ # Support pipeline input
+ if ($MyInvocation.ExpectingInput) {
+ $input | & "node$exe" "$basedir/../which/bin/node-which" $args
+ } else {
+ & "node$exe" "$basedir/../which/bin/node-which" $args
+ }
+ $ret=$LASTEXITCODE
+}
+exit $ret
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
new file mode 100644
index 00000000000..19ed055fdfd
--- /dev/null
+++ b/node_modules/.package-lock.json
@@ -0,0 +1,1104 @@
+{
+ "name": "lb_oc_dev8app_fisheye.github.io",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz",
+ "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",
+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.19.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.0.tgz",
+ "integrity": "sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.4",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz",
+ "integrity": "sha512-7ATR9F0e4W85D/0w7cU0SNj7qkAexMG+bAHEZOjo9akvGuhHE2m7umzWzfnpa0XAg5Kxc1BWmtPMV67jJ+9VUg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz",
+ "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.16.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz",
+ "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz",
+ "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz",
+ "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.6",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz",
+ "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/acorn": {
+ "version": "8.14.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
+ "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/bootstrap": {
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
+ "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.3.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.16.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz",
+ "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.19.0",
+ "@eslint/core": "^0.9.0",
+ "@eslint/eslintrc": "^3.2.0",
+ "@eslint/js": "9.16.0",
+ "@eslint/plugin-kit": "^0.2.3",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.1",
+ "@types/estree": "^1.0.6",
+ "@types/json-schema": "^7.0.15",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.5",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.2.0",
+ "eslint-visitor-keys": "^4.2.0",
+ "espree": "^10.3.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz",
+ "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",
+ "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz",
+ "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.14.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",
+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz",
+ "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "15.12.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-15.12.0.tgz",
+ "integrity": "sha512-1+gLErljJFhbOVyaetcwJiJ4+eLe45S2E7P5UiZ9xGfeq3ATQf5DOv9G7MH3gGbKQLkzmNh2DxfZwLdw+j6oTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ }
+}
diff --git a/node_modules/@eslint-community/eslint-utils/LICENSE b/node_modules/@eslint-community/eslint-utils/LICENSE
new file mode 100644
index 00000000000..883ee1f612d
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@eslint-community/eslint-utils/README.md b/node_modules/@eslint-community/eslint-utils/README.md
new file mode 100644
index 00000000000..90552a94ef0
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/README.md
@@ -0,0 +1,37 @@
+# @eslint-community/eslint-utils
+
+[![npm version](https://img.shields.io/npm/v/@eslint-community/eslint-utils.svg)](https://www.npmjs.com/package/@eslint-community/eslint-utils)
+[![Downloads/month](https://img.shields.io/npm/dm/@eslint-community/eslint-utils.svg)](http://www.npmtrends.com/@eslint-community/eslint-utils)
+[![Build Status](https://github.com/eslint-community/eslint-utils/workflows/CI/badge.svg)](https://github.com/eslint-community/eslint-utils/actions)
+[![Coverage Status](https://codecov.io/gh/eslint-community/eslint-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/eslint-utils)
+
+## 🏁 Goal
+
+This package provides utility functions and classes for make ESLint custom rules.
+
+For examples:
+
+- [`getStaticValue`](https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
+- [`ReferenceTracker`](https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.
+
+## 📖 Usage
+
+See [documentation](https://eslint-community.github.io/eslint-utils).
+
+## 📰 Changelog
+
+See [releases](https://github.com/eslint-community/eslint-utils/releases).
+
+## ❤️ Contributing
+
+Welcome contributing!
+
+Please use GitHub's Issues/PRs.
+
+### Development Tools
+
+- `npm test` runs tests and measures coverage.
+- `npm run clean` removes the coverage result of `npm test` command.
+- `npm run coverage` shows the coverage result of the last `npm test` command.
+- `npm run lint` runs ESLint.
+- `npm run watch` runs tests on each file change.
diff --git a/node_modules/@eslint-community/eslint-utils/index.js b/node_modules/@eslint-community/eslint-utils/index.js
new file mode 100644
index 00000000000..7221c828159
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/index.js
@@ -0,0 +1,2059 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+var eslintVisitorKeys = require('eslint-visitor-keys');
+
+/**
+ * Get the innermost scope which contains a given location.
+ * @param {Scope} initialScope The initial scope to search.
+ * @param {Node} node The location to search.
+ * @returns {Scope} The innermost scope.
+ */
+function getInnermostScope(initialScope, node) {
+ const location = node.range[0];
+
+ let scope = initialScope;
+ let found = false;
+ do {
+ found = false;
+ for (const childScope of scope.childScopes) {
+ const range = childScope.block.range;
+
+ if (range[0] <= location && location < range[1]) {
+ scope = childScope;
+ found = true;
+ break
+ }
+ }
+ } while (found)
+
+ return scope
+}
+
+/**
+ * Find the variable of a given name.
+ * @param {Scope} initialScope The scope to start finding.
+ * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.
+ * @returns {Variable|null} The found variable or null.
+ */
+function findVariable(initialScope, nameOrNode) {
+ let name = "";
+ let scope = initialScope;
+
+ if (typeof nameOrNode === "string") {
+ name = nameOrNode;
+ } else {
+ name = nameOrNode.name;
+ scope = getInnermostScope(scope, nameOrNode);
+ }
+
+ while (scope != null) {
+ const variable = scope.set.get(name);
+ if (variable != null) {
+ return variable
+ }
+ scope = scope.upper;
+ }
+
+ return null
+}
+
+/**
+ * Creates the negate function of the given function.
+ * @param {function(Token):boolean} f - The function to negate.
+ * @returns {function(Token):boolean} Negated function.
+ */
+function negate(f) {
+ return (token) => !f(token)
+}
+
+/**
+ * Checks if the given token is a PunctuatorToken with the given value
+ * @param {Token} token - The token to check.
+ * @param {string} value - The value to check.
+ * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.
+ */
+function isPunctuatorTokenWithValue(token, value) {
+ return token.type === "Punctuator" && token.value === value
+}
+
+/**
+ * Checks if the given token is an arrow token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an arrow token.
+ */
+function isArrowToken(token) {
+ return isPunctuatorTokenWithValue(token, "=>")
+}
+
+/**
+ * Checks if the given token is a comma token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a comma token.
+ */
+function isCommaToken(token) {
+ return isPunctuatorTokenWithValue(token, ",")
+}
+
+/**
+ * Checks if the given token is a semicolon token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a semicolon token.
+ */
+function isSemicolonToken(token) {
+ return isPunctuatorTokenWithValue(token, ";")
+}
+
+/**
+ * Checks if the given token is a colon token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a colon token.
+ */
+function isColonToken(token) {
+ return isPunctuatorTokenWithValue(token, ":")
+}
+
+/**
+ * Checks if the given token is an opening parenthesis token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening parenthesis token.
+ */
+function isOpeningParenToken(token) {
+ return isPunctuatorTokenWithValue(token, "(")
+}
+
+/**
+ * Checks if the given token is a closing parenthesis token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing parenthesis token.
+ */
+function isClosingParenToken(token) {
+ return isPunctuatorTokenWithValue(token, ")")
+}
+
+/**
+ * Checks if the given token is an opening square bracket token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening square bracket token.
+ */
+function isOpeningBracketToken(token) {
+ return isPunctuatorTokenWithValue(token, "[")
+}
+
+/**
+ * Checks if the given token is a closing square bracket token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing square bracket token.
+ */
+function isClosingBracketToken(token) {
+ return isPunctuatorTokenWithValue(token, "]")
+}
+
+/**
+ * Checks if the given token is an opening brace token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening brace token.
+ */
+function isOpeningBraceToken(token) {
+ return isPunctuatorTokenWithValue(token, "{")
+}
+
+/**
+ * Checks if the given token is a closing brace token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing brace token.
+ */
+function isClosingBraceToken(token) {
+ return isPunctuatorTokenWithValue(token, "}")
+}
+
+/**
+ * Checks if the given token is a comment token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a comment token.
+ */
+function isCommentToken(token) {
+ return ["Block", "Line", "Shebang"].includes(token.type)
+}
+
+const isNotArrowToken = negate(isArrowToken);
+const isNotCommaToken = negate(isCommaToken);
+const isNotSemicolonToken = negate(isSemicolonToken);
+const isNotColonToken = negate(isColonToken);
+const isNotOpeningParenToken = negate(isOpeningParenToken);
+const isNotClosingParenToken = negate(isClosingParenToken);
+const isNotOpeningBracketToken = negate(isOpeningBracketToken);
+const isNotClosingBracketToken = negate(isClosingBracketToken);
+const isNotOpeningBraceToken = negate(isOpeningBraceToken);
+const isNotClosingBraceToken = negate(isClosingBraceToken);
+const isNotCommentToken = negate(isCommentToken);
+
+/**
+ * Get the `(` token of the given function node.
+ * @param {Node} node - The function node to get.
+ * @param {SourceCode} sourceCode - The source code object to get tokens.
+ * @returns {Token} `(` token.
+ */
+function getOpeningParenOfParams(node, sourceCode) {
+ return node.id
+ ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
+ : sourceCode.getFirstToken(node, isOpeningParenToken)
+}
+
+/**
+ * Get the location of the given function node for reporting.
+ * @param {Node} node - The function node to get.
+ * @param {SourceCode} sourceCode - The source code object to get tokens.
+ * @returns {string} The location of the function node for reporting.
+ */
+function getFunctionHeadLocation(node, sourceCode) {
+ const parent = node.parent;
+ let start = null;
+ let end = null;
+
+ if (node.type === "ArrowFunctionExpression") {
+ const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
+
+ start = arrowToken.loc.start;
+ end = arrowToken.loc.end;
+ } else if (
+ parent.type === "Property" ||
+ parent.type === "MethodDefinition" ||
+ parent.type === "PropertyDefinition"
+ ) {
+ start = parent.loc.start;
+ end = getOpeningParenOfParams(node, sourceCode).loc.start;
+ } else {
+ start = node.loc.start;
+ end = getOpeningParenOfParams(node, sourceCode).loc.start;
+ }
+
+ return {
+ start: { ...start },
+ end: { ...end },
+ }
+}
+
+/* globals globalThis, global, self, window */
+
+const globalObject =
+ typeof globalThis !== "undefined"
+ ? globalThis
+ : typeof self !== "undefined"
+ ? self
+ : typeof window !== "undefined"
+ ? window
+ : typeof global !== "undefined"
+ ? global
+ : {};
+
+const builtinNames = Object.freeze(
+ new Set([
+ "Array",
+ "ArrayBuffer",
+ "BigInt",
+ "BigInt64Array",
+ "BigUint64Array",
+ "Boolean",
+ "DataView",
+ "Date",
+ "decodeURI",
+ "decodeURIComponent",
+ "encodeURI",
+ "encodeURIComponent",
+ "escape",
+ "Float32Array",
+ "Float64Array",
+ "Function",
+ "Infinity",
+ "Int16Array",
+ "Int32Array",
+ "Int8Array",
+ "isFinite",
+ "isNaN",
+ "isPrototypeOf",
+ "JSON",
+ "Map",
+ "Math",
+ "NaN",
+ "Number",
+ "Object",
+ "parseFloat",
+ "parseInt",
+ "Promise",
+ "Proxy",
+ "Reflect",
+ "RegExp",
+ "Set",
+ "String",
+ "Symbol",
+ "Uint16Array",
+ "Uint32Array",
+ "Uint8Array",
+ "Uint8ClampedArray",
+ "undefined",
+ "unescape",
+ "WeakMap",
+ "WeakSet",
+ ]),
+);
+const callAllowed = new Set(
+ [
+ Array.isArray,
+ Array.of,
+ Array.prototype.at,
+ Array.prototype.concat,
+ Array.prototype.entries,
+ Array.prototype.every,
+ Array.prototype.filter,
+ Array.prototype.find,
+ Array.prototype.findIndex,
+ Array.prototype.flat,
+ Array.prototype.includes,
+ Array.prototype.indexOf,
+ Array.prototype.join,
+ Array.prototype.keys,
+ Array.prototype.lastIndexOf,
+ Array.prototype.slice,
+ Array.prototype.some,
+ Array.prototype.toString,
+ Array.prototype.values,
+ typeof BigInt === "function" ? BigInt : undefined,
+ Boolean,
+ Date,
+ Date.parse,
+ decodeURI,
+ decodeURIComponent,
+ encodeURI,
+ encodeURIComponent,
+ escape,
+ isFinite,
+ isNaN,
+ isPrototypeOf,
+ Map,
+ Map.prototype.entries,
+ Map.prototype.get,
+ Map.prototype.has,
+ Map.prototype.keys,
+ Map.prototype.values,
+ ...Object.getOwnPropertyNames(Math)
+ .filter((k) => k !== "random")
+ .map((k) => Math[k])
+ .filter((f) => typeof f === "function"),
+ Number,
+ Number.isFinite,
+ Number.isNaN,
+ Number.parseFloat,
+ Number.parseInt,
+ Number.prototype.toExponential,
+ Number.prototype.toFixed,
+ Number.prototype.toPrecision,
+ Number.prototype.toString,
+ Object,
+ Object.entries,
+ Object.is,
+ Object.isExtensible,
+ Object.isFrozen,
+ Object.isSealed,
+ Object.keys,
+ Object.values,
+ parseFloat,
+ parseInt,
+ RegExp,
+ Set,
+ Set.prototype.entries,
+ Set.prototype.has,
+ Set.prototype.keys,
+ Set.prototype.values,
+ String,
+ String.fromCharCode,
+ String.fromCodePoint,
+ String.raw,
+ String.prototype.at,
+ String.prototype.charAt,
+ String.prototype.charCodeAt,
+ String.prototype.codePointAt,
+ String.prototype.concat,
+ String.prototype.endsWith,
+ String.prototype.includes,
+ String.prototype.indexOf,
+ String.prototype.lastIndexOf,
+ String.prototype.normalize,
+ String.prototype.padEnd,
+ String.prototype.padStart,
+ String.prototype.slice,
+ String.prototype.startsWith,
+ String.prototype.substr,
+ String.prototype.substring,
+ String.prototype.toLowerCase,
+ String.prototype.toString,
+ String.prototype.toUpperCase,
+ String.prototype.trim,
+ String.prototype.trimEnd,
+ String.prototype.trimLeft,
+ String.prototype.trimRight,
+ String.prototype.trimStart,
+ Symbol.for,
+ Symbol.keyFor,
+ unescape,
+ ].filter((f) => typeof f === "function"),
+);
+const callPassThrough = new Set([
+ Object.freeze,
+ Object.preventExtensions,
+ Object.seal,
+]);
+
+/** @type {ReadonlyArray]>} */
+const getterAllowed = [
+ [Map, new Set(["size"])],
+ [
+ RegExp,
+ new Set([
+ "dotAll",
+ "flags",
+ "global",
+ "hasIndices",
+ "ignoreCase",
+ "multiline",
+ "source",
+ "sticky",
+ "unicode",
+ ]),
+ ],
+ [Set, new Set(["size"])],
+];
+
+/**
+ * Get the property descriptor.
+ * @param {object} object The object to get.
+ * @param {string|number|symbol} name The property name to get.
+ */
+function getPropertyDescriptor(object, name) {
+ let x = object;
+ while ((typeof x === "object" || typeof x === "function") && x !== null) {
+ const d = Object.getOwnPropertyDescriptor(x, name);
+ if (d) {
+ return d
+ }
+ x = Object.getPrototypeOf(x);
+ }
+ return null
+}
+
+/**
+ * Check if a property is getter or not.
+ * @param {object} object The object to check.
+ * @param {string|number|symbol} name The property name to check.
+ */
+function isGetter(object, name) {
+ const d = getPropertyDescriptor(object, name);
+ return d != null && d.get != null
+}
+
+/**
+ * Get the element values of a given node list.
+ * @param {Node[]} nodeList The node list to get values.
+ * @param {Scope|undefined} initialScope The initial scope to find variables.
+ * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.
+ */
+function getElementValues(nodeList, initialScope) {
+ const valueList = [];
+
+ for (let i = 0; i < nodeList.length; ++i) {
+ const elementNode = nodeList[i];
+
+ if (elementNode == null) {
+ valueList.length = i + 1;
+ } else if (elementNode.type === "SpreadElement") {
+ const argument = getStaticValueR(elementNode.argument, initialScope);
+ if (argument == null) {
+ return null
+ }
+ valueList.push(...argument.value);
+ } else {
+ const element = getStaticValueR(elementNode, initialScope);
+ if (element == null) {
+ return null
+ }
+ valueList.push(element.value);
+ }
+ }
+
+ return valueList
+}
+
+/**
+ * Returns whether the given variable is never written to after initialization.
+ * @param {import("eslint").Scope.Variable} variable
+ * @returns {boolean}
+ */
+function isEffectivelyConst(variable) {
+ const refs = variable.references;
+
+ const inits = refs.filter((r) => r.init).length;
+ const reads = refs.filter((r) => r.isReadOnly()).length;
+ if (inits === 1 && reads + inits === refs.length) {
+ // there is only one init and all other references only read
+ return true
+ }
+ return false
+}
+
+const operations = Object.freeze({
+ ArrayExpression(node, initialScope) {
+ const elements = getElementValues(node.elements, initialScope);
+ return elements != null ? { value: elements } : null
+ },
+
+ AssignmentExpression(node, initialScope) {
+ if (node.operator === "=") {
+ return getStaticValueR(node.right, initialScope)
+ }
+ return null
+ },
+
+ //eslint-disable-next-line complexity
+ BinaryExpression(node, initialScope) {
+ if (node.operator === "in" || node.operator === "instanceof") {
+ // Not supported.
+ return null
+ }
+
+ const left = getStaticValueR(node.left, initialScope);
+ const right = getStaticValueR(node.right, initialScope);
+ if (left != null && right != null) {
+ switch (node.operator) {
+ case "==":
+ return { value: left.value == right.value } //eslint-disable-line eqeqeq
+ case "!=":
+ return { value: left.value != right.value } //eslint-disable-line eqeqeq
+ case "===":
+ return { value: left.value === right.value }
+ case "!==":
+ return { value: left.value !== right.value }
+ case "<":
+ return { value: left.value < right.value }
+ case "<=":
+ return { value: left.value <= right.value }
+ case ">":
+ return { value: left.value > right.value }
+ case ">=":
+ return { value: left.value >= right.value }
+ case "<<":
+ return { value: left.value << right.value }
+ case ">>":
+ return { value: left.value >> right.value }
+ case ">>>":
+ return { value: left.value >>> right.value }
+ case "+":
+ return { value: left.value + right.value }
+ case "-":
+ return { value: left.value - right.value }
+ case "*":
+ return { value: left.value * right.value }
+ case "/":
+ return { value: left.value / right.value }
+ case "%":
+ return { value: left.value % right.value }
+ case "**":
+ return { value: left.value ** right.value }
+ case "|":
+ return { value: left.value | right.value }
+ case "^":
+ return { value: left.value ^ right.value }
+ case "&":
+ return { value: left.value & right.value }
+
+ // no default
+ }
+ }
+
+ return null
+ },
+
+ CallExpression(node, initialScope) {
+ const calleeNode = node.callee;
+ const args = getElementValues(node.arguments, initialScope);
+
+ if (args != null) {
+ if (calleeNode.type === "MemberExpression") {
+ if (calleeNode.property.type === "PrivateIdentifier") {
+ return null
+ }
+ const object = getStaticValueR(calleeNode.object, initialScope);
+ if (object != null) {
+ if (
+ object.value == null &&
+ (object.optional || node.optional)
+ ) {
+ return { value: undefined, optional: true }
+ }
+ const property = getStaticPropertyNameValue(
+ calleeNode,
+ initialScope,
+ );
+
+ if (property != null) {
+ const receiver = object.value;
+ const methodName = property.value;
+ if (callAllowed.has(receiver[methodName])) {
+ return { value: receiver[methodName](...args) }
+ }
+ if (callPassThrough.has(receiver[methodName])) {
+ return { value: args[0] }
+ }
+ }
+ }
+ } else {
+ const callee = getStaticValueR(calleeNode, initialScope);
+ if (callee != null) {
+ if (callee.value == null && node.optional) {
+ return { value: undefined, optional: true }
+ }
+ const func = callee.value;
+ if (callAllowed.has(func)) {
+ return { value: func(...args) }
+ }
+ if (callPassThrough.has(func)) {
+ return { value: args[0] }
+ }
+ }
+ }
+ }
+
+ return null
+ },
+
+ ConditionalExpression(node, initialScope) {
+ const test = getStaticValueR(node.test, initialScope);
+ if (test != null) {
+ return test.value
+ ? getStaticValueR(node.consequent, initialScope)
+ : getStaticValueR(node.alternate, initialScope)
+ }
+ return null
+ },
+
+ ExpressionStatement(node, initialScope) {
+ return getStaticValueR(node.expression, initialScope)
+ },
+
+ Identifier(node, initialScope) {
+ if (initialScope != null) {
+ const variable = findVariable(initialScope, node);
+
+ // Built-in globals.
+ if (
+ variable != null &&
+ variable.defs.length === 0 &&
+ builtinNames.has(variable.name) &&
+ variable.name in globalObject
+ ) {
+ return { value: globalObject[variable.name] }
+ }
+
+ // Constants.
+ if (variable != null && variable.defs.length === 1) {
+ const def = variable.defs[0];
+ if (
+ def.parent &&
+ def.type === "Variable" &&
+ (def.parent.kind === "const" ||
+ isEffectivelyConst(variable)) &&
+ // TODO(mysticatea): don't support destructuring here.
+ def.node.id.type === "Identifier"
+ ) {
+ return getStaticValueR(def.node.init, initialScope)
+ }
+ }
+ }
+ return null
+ },
+
+ Literal(node) {
+ //istanbul ignore if : this is implementation-specific behavior.
+ if ((node.regex != null || node.bigint != null) && node.value == null) {
+ // It was a RegExp/BigInt literal, but Node.js didn't support it.
+ return null
+ }
+ return { value: node.value }
+ },
+
+ LogicalExpression(node, initialScope) {
+ const left = getStaticValueR(node.left, initialScope);
+ if (left != null) {
+ if (
+ (node.operator === "||" && Boolean(left.value) === true) ||
+ (node.operator === "&&" && Boolean(left.value) === false) ||
+ (node.operator === "??" && left.value != null)
+ ) {
+ return left
+ }
+
+ const right = getStaticValueR(node.right, initialScope);
+ if (right != null) {
+ return right
+ }
+ }
+
+ return null
+ },
+
+ MemberExpression(node, initialScope) {
+ if (node.property.type === "PrivateIdentifier") {
+ return null
+ }
+ const object = getStaticValueR(node.object, initialScope);
+ if (object != null) {
+ if (object.value == null && (object.optional || node.optional)) {
+ return { value: undefined, optional: true }
+ }
+ const property = getStaticPropertyNameValue(node, initialScope);
+
+ if (property != null) {
+ if (!isGetter(object.value, property.value)) {
+ return { value: object.value[property.value] }
+ }
+
+ for (const [classFn, allowed] of getterAllowed) {
+ if (
+ object.value instanceof classFn &&
+ allowed.has(property.value)
+ ) {
+ return { value: object.value[property.value] }
+ }
+ }
+ }
+ }
+ return null
+ },
+
+ ChainExpression(node, initialScope) {
+ const expression = getStaticValueR(node.expression, initialScope);
+ if (expression != null) {
+ return { value: expression.value }
+ }
+ return null
+ },
+
+ NewExpression(node, initialScope) {
+ const callee = getStaticValueR(node.callee, initialScope);
+ const args = getElementValues(node.arguments, initialScope);
+
+ if (callee != null && args != null) {
+ const Func = callee.value;
+ if (callAllowed.has(Func)) {
+ return { value: new Func(...args) }
+ }
+ }
+
+ return null
+ },
+
+ ObjectExpression(node, initialScope) {
+ const object = {};
+
+ for (const propertyNode of node.properties) {
+ if (propertyNode.type === "Property") {
+ if (propertyNode.kind !== "init") {
+ return null
+ }
+ const key = getStaticPropertyNameValue(
+ propertyNode,
+ initialScope,
+ );
+ const value = getStaticValueR(propertyNode.value, initialScope);
+ if (key == null || value == null) {
+ return null
+ }
+ object[key.value] = value.value;
+ } else if (
+ propertyNode.type === "SpreadElement" ||
+ propertyNode.type === "ExperimentalSpreadProperty"
+ ) {
+ const argument = getStaticValueR(
+ propertyNode.argument,
+ initialScope,
+ );
+ if (argument == null) {
+ return null
+ }
+ Object.assign(object, argument.value);
+ } else {
+ return null
+ }
+ }
+
+ return { value: object }
+ },
+
+ SequenceExpression(node, initialScope) {
+ const last = node.expressions[node.expressions.length - 1];
+ return getStaticValueR(last, initialScope)
+ },
+
+ TaggedTemplateExpression(node, initialScope) {
+ const tag = getStaticValueR(node.tag, initialScope);
+ const expressions = getElementValues(
+ node.quasi.expressions,
+ initialScope,
+ );
+
+ if (tag != null && expressions != null) {
+ const func = tag.value;
+ const strings = node.quasi.quasis.map((q) => q.value.cooked);
+ strings.raw = node.quasi.quasis.map((q) => q.value.raw);
+
+ if (func === String.raw) {
+ return { value: func(strings, ...expressions) }
+ }
+ }
+
+ return null
+ },
+
+ TemplateLiteral(node, initialScope) {
+ const expressions = getElementValues(node.expressions, initialScope);
+ if (expressions != null) {
+ let value = node.quasis[0].value.cooked;
+ for (let i = 0; i < expressions.length; ++i) {
+ value += expressions[i];
+ value += node.quasis[i + 1].value.cooked;
+ }
+ return { value }
+ }
+ return null
+ },
+
+ UnaryExpression(node, initialScope) {
+ if (node.operator === "delete") {
+ // Not supported.
+ return null
+ }
+ if (node.operator === "void") {
+ return { value: undefined }
+ }
+
+ const arg = getStaticValueR(node.argument, initialScope);
+ if (arg != null) {
+ switch (node.operator) {
+ case "-":
+ return { value: -arg.value }
+ case "+":
+ return { value: +arg.value } //eslint-disable-line no-implicit-coercion
+ case "!":
+ return { value: !arg.value }
+ case "~":
+ return { value: ~arg.value }
+ case "typeof":
+ return { value: typeof arg.value }
+
+ // no default
+ }
+ }
+
+ return null
+ },
+});
+
+/**
+ * Get the value of a given node if it's a static value.
+ * @param {Node} node The node to get.
+ * @param {Scope|undefined} initialScope The scope to start finding variable.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.
+ */
+function getStaticValueR(node, initialScope) {
+ if (node != null && Object.hasOwnProperty.call(operations, node.type)) {
+ return operations[node.type](node, initialScope)
+ }
+ return null
+}
+
+/**
+ * Get the static value of property name from a MemberExpression node or a Property node.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.
+ */
+function getStaticPropertyNameValue(node, initialScope) {
+ const nameNode = node.type === "Property" ? node.key : node.property;
+
+ if (node.computed) {
+ return getStaticValueR(nameNode, initialScope)
+ }
+
+ if (nameNode.type === "Identifier") {
+ return { value: nameNode.name }
+ }
+
+ if (nameNode.type === "Literal") {
+ if (nameNode.bigint) {
+ return { value: nameNode.bigint }
+ }
+ return { value: String(nameNode.value) }
+ }
+
+ return null
+}
+
+/**
+ * Get the value of a given node if it's a static value.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.
+ */
+function getStaticValue(node, initialScope = null) {
+ try {
+ return getStaticValueR(node, initialScope)
+ } catch (_error) {
+ return null
+ }
+}
+
+/**
+ * Get the value of a given node if it's a literal or a template literal.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.
+ * @returns {string|null} The value of the node, or `null`.
+ */
+function getStringIfConstant(node, initialScope = null) {
+ // Handle the literals that the platform doesn't support natively.
+ if (node && node.type === "Literal" && node.value === null) {
+ if (node.regex) {
+ return `/${node.regex.pattern}/${node.regex.flags}`
+ }
+ if (node.bigint) {
+ return node.bigint
+ }
+ }
+
+ const evaluated = getStaticValue(node, initialScope);
+ return evaluated && String(evaluated.value)
+}
+
+/**
+ * Get the property name from a MemberExpression node or a Property node.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
+ * @returns {string|null} The property name of the node.
+ */
+function getPropertyName(node, initialScope) {
+ switch (node.type) {
+ case "MemberExpression":
+ if (node.computed) {
+ return getStringIfConstant(node.property, initialScope)
+ }
+ if (node.property.type === "PrivateIdentifier") {
+ return null
+ }
+ return node.property.name
+
+ case "Property":
+ case "MethodDefinition":
+ case "PropertyDefinition":
+ if (node.computed) {
+ return getStringIfConstant(node.key, initialScope)
+ }
+ if (node.key.type === "Literal") {
+ return String(node.key.value)
+ }
+ if (node.key.type === "PrivateIdentifier") {
+ return null
+ }
+ return node.key.name
+
+ // no default
+ }
+
+ return null
+}
+
+/**
+ * Get the name and kind of the given function node.
+ * @param {ASTNode} node - The function node to get.
+ * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.
+ * @returns {string} The name and kind of the function node.
+ */
+// eslint-disable-next-line complexity
+function getFunctionNameWithKind(node, sourceCode) {
+ const parent = node.parent;
+ const tokens = [];
+ const isObjectMethod = parent.type === "Property" && parent.value === node;
+ const isClassMethod =
+ parent.type === "MethodDefinition" && parent.value === node;
+ const isClassFieldMethod =
+ parent.type === "PropertyDefinition" && parent.value === node;
+
+ // Modifiers.
+ if (isClassMethod || isClassFieldMethod) {
+ if (parent.static) {
+ tokens.push("static");
+ }
+ if (parent.key.type === "PrivateIdentifier") {
+ tokens.push("private");
+ }
+ }
+ if (node.async) {
+ tokens.push("async");
+ }
+ if (node.generator) {
+ tokens.push("generator");
+ }
+
+ // Kinds.
+ if (isObjectMethod || isClassMethod) {
+ if (parent.kind === "constructor") {
+ return "constructor"
+ }
+ if (parent.kind === "get") {
+ tokens.push("getter");
+ } else if (parent.kind === "set") {
+ tokens.push("setter");
+ } else {
+ tokens.push("method");
+ }
+ } else if (isClassFieldMethod) {
+ tokens.push("method");
+ } else {
+ if (node.type === "ArrowFunctionExpression") {
+ tokens.push("arrow");
+ }
+ tokens.push("function");
+ }
+
+ // Names.
+ if (isObjectMethod || isClassMethod || isClassFieldMethod) {
+ if (parent.key.type === "PrivateIdentifier") {
+ tokens.push(`#${parent.key.name}`);
+ } else {
+ const name = getPropertyName(parent);
+ if (name) {
+ tokens.push(`'${name}'`);
+ } else if (sourceCode) {
+ const keyText = sourceCode.getText(parent.key);
+ if (!keyText.includes("\n")) {
+ tokens.push(`[${keyText}]`);
+ }
+ }
+ }
+ } else if (node.id) {
+ tokens.push(`'${node.id.name}'`);
+ } else if (
+ parent.type === "VariableDeclarator" &&
+ parent.id &&
+ parent.id.type === "Identifier"
+ ) {
+ tokens.push(`'${parent.id.name}'`);
+ } else if (
+ (parent.type === "AssignmentExpression" ||
+ parent.type === "AssignmentPattern") &&
+ parent.left &&
+ parent.left.type === "Identifier"
+ ) {
+ tokens.push(`'${parent.left.name}'`);
+ } else if (
+ parent.type === "ExportDefaultDeclaration" &&
+ parent.declaration === node
+ ) {
+ tokens.push("'default'");
+ }
+
+ return tokens.join(" ")
+}
+
+const typeConversionBinaryOps = Object.freeze(
+ new Set([
+ "==",
+ "!=",
+ "<",
+ "<=",
+ ">",
+ ">=",
+ "<<",
+ ">>",
+ ">>>",
+ "+",
+ "-",
+ "*",
+ "/",
+ "%",
+ "|",
+ "^",
+ "&",
+ "in",
+ ]),
+);
+const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"]));
+
+/**
+ * Check whether the given value is an ASTNode or not.
+ * @param {any} x The value to check.
+ * @returns {boolean} `true` if the value is an ASTNode.
+ */
+function isNode(x) {
+ return x !== null && typeof x === "object" && typeof x.type === "string"
+}
+
+const visitor = Object.freeze(
+ Object.assign(Object.create(null), {
+ $visit(node, options, visitorKeys) {
+ const { type } = node;
+
+ if (typeof this[type] === "function") {
+ return this[type](node, options, visitorKeys)
+ }
+
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+
+ $visitChildren(node, options, visitorKeys) {
+ const { type } = node;
+
+ for (const key of visitorKeys[type] || eslintVisitorKeys.getKeys(node)) {
+ const value = node[key];
+
+ if (Array.isArray(value)) {
+ for (const element of value) {
+ if (
+ isNode(element) &&
+ this.$visit(element, options, visitorKeys)
+ ) {
+ return true
+ }
+ }
+ } else if (
+ isNode(value) &&
+ this.$visit(value, options, visitorKeys)
+ ) {
+ return true
+ }
+ }
+
+ return false
+ },
+
+ ArrowFunctionExpression() {
+ return false
+ },
+ AssignmentExpression() {
+ return true
+ },
+ AwaitExpression() {
+ return true
+ },
+ BinaryExpression(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ typeConversionBinaryOps.has(node.operator) &&
+ (node.left.type !== "Literal" || node.right.type !== "Literal")
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ CallExpression() {
+ return true
+ },
+ FunctionExpression() {
+ return false
+ },
+ ImportExpression() {
+ return true
+ },
+ MemberExpression(node, options, visitorKeys) {
+ if (options.considerGetters) {
+ return true
+ }
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.property.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ MethodDefinition(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ NewExpression() {
+ return true
+ },
+ Property(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ PropertyDefinition(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ UnaryExpression(node, options, visitorKeys) {
+ if (node.operator === "delete") {
+ return true
+ }
+ if (
+ options.considerImplicitTypeConversion &&
+ typeConversionUnaryOps.has(node.operator) &&
+ node.argument.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ UpdateExpression() {
+ return true
+ },
+ YieldExpression() {
+ return true
+ },
+ }),
+);
+
+/**
+ * Check whether a given node has any side effect or not.
+ * @param {Node} node The node to get.
+ * @param {SourceCode} sourceCode The source code object.
+ * @param {object} [options] The option object.
+ * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.
+ * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.
+ * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
+ * @returns {boolean} `true` if the node has a certain side effect.
+ */
+function hasSideEffect(
+ node,
+ sourceCode,
+ { considerGetters = false, considerImplicitTypeConversion = false } = {},
+) {
+ return visitor.$visit(
+ node,
+ { considerGetters, considerImplicitTypeConversion },
+ sourceCode.visitorKeys || eslintVisitorKeys.KEYS,
+ )
+}
+
+/**
+ * Get the left parenthesis of the parent node syntax if it exists.
+ * E.g., `if (a) {}` then the `(`.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {Token|null} The left parenthesis of the parent node syntax
+ */
+function getParentSyntaxParen(node, sourceCode) {
+ const parent = node.parent;
+
+ switch (parent.type) {
+ case "CallExpression":
+ case "NewExpression":
+ if (parent.arguments.length === 1 && parent.arguments[0] === node) {
+ return sourceCode.getTokenAfter(
+ parent.callee,
+ isOpeningParenToken,
+ )
+ }
+ return null
+
+ case "DoWhileStatement":
+ if (parent.test === node) {
+ return sourceCode.getTokenAfter(
+ parent.body,
+ isOpeningParenToken,
+ )
+ }
+ return null
+
+ case "IfStatement":
+ case "WhileStatement":
+ if (parent.test === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "ImportExpression":
+ if (parent.source === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "SwitchStatement":
+ if (parent.discriminant === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "WithStatement":
+ if (parent.object === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ default:
+ return null
+ }
+}
+
+/**
+ * Check whether a given node is parenthesized or not.
+ * @param {number} times The number of parantheses.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {boolean} `true` if the node is parenthesized the given times.
+ */
+/**
+ * Check whether a given node is parenthesized or not.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {boolean} `true` if the node is parenthesized.
+ */
+function isParenthesized(
+ timesOrNode,
+ nodeOrSourceCode,
+ optionalSourceCode,
+) {
+ let times, node, sourceCode, maybeLeftParen, maybeRightParen;
+ if (typeof timesOrNode === "number") {
+ times = timesOrNode | 0;
+ node = nodeOrSourceCode;
+ sourceCode = optionalSourceCode;
+ if (!(times >= 1)) {
+ throw new TypeError("'times' should be a positive integer.")
+ }
+ } else {
+ times = 1;
+ node = timesOrNode;
+ sourceCode = nodeOrSourceCode;
+ }
+
+ if (
+ node == null ||
+ // `Program` can't be parenthesized
+ node.parent == null ||
+ // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`
+ (node.parent.type === "CatchClause" && node.parent.param === node)
+ ) {
+ return false
+ }
+
+ maybeLeftParen = maybeRightParen = node;
+ do {
+ maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen);
+ maybeRightParen = sourceCode.getTokenAfter(maybeRightParen);
+ } while (
+ maybeLeftParen != null &&
+ maybeRightParen != null &&
+ isOpeningParenToken(maybeLeftParen) &&
+ isClosingParenToken(maybeRightParen) &&
+ // Avoid false positive such as `if (a) {}`
+ maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&
+ --times > 0
+ )
+
+ return times === 0
+}
+
+/**
+ * @author Toru Nagashima
+ * See LICENSE file in root directory for full license.
+ */
+
+const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu;
+
+/** @type {WeakMap} */
+const internal = new WeakMap();
+
+/**
+ * Check whether a given character is escaped or not.
+ * @param {string} str The string to check.
+ * @param {number} index The location of the character to check.
+ * @returns {boolean} `true` if the character is escaped.
+ */
+function isEscaped(str, index) {
+ let escaped = false;
+ for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {
+ escaped = !escaped;
+ }
+ return escaped
+}
+
+/**
+ * Replace a given string by a given matcher.
+ * @param {PatternMatcher} matcher The pattern matcher.
+ * @param {string} str The string to be replaced.
+ * @param {string} replacement The new substring to replace each matched part.
+ * @returns {string} The replaced string.
+ */
+function replaceS(matcher, str, replacement) {
+ const chunks = [];
+ let index = 0;
+
+ /** @type {RegExpExecArray} */
+ let match = null;
+
+ /**
+ * @param {string} key The placeholder.
+ * @returns {string} The replaced string.
+ */
+ function replacer(key) {
+ switch (key) {
+ case "$$":
+ return "$"
+ case "$&":
+ return match[0]
+ case "$`":
+ return str.slice(0, match.index)
+ case "$'":
+ return str.slice(match.index + match[0].length)
+ default: {
+ const i = key.slice(1);
+ if (i in match) {
+ return match[i]
+ }
+ return key
+ }
+ }
+ }
+
+ for (match of matcher.execAll(str)) {
+ chunks.push(str.slice(index, match.index));
+ chunks.push(replacement.replace(placeholder, replacer));
+ index = match.index + match[0].length;
+ }
+ chunks.push(str.slice(index));
+
+ return chunks.join("")
+}
+
+/**
+ * Replace a given string by a given matcher.
+ * @param {PatternMatcher} matcher The pattern matcher.
+ * @param {string} str The string to be replaced.
+ * @param {(...strs[])=>string} replace The function to replace each matched part.
+ * @returns {string} The replaced string.
+ */
+function replaceF(matcher, str, replace) {
+ const chunks = [];
+ let index = 0;
+
+ for (const match of matcher.execAll(str)) {
+ chunks.push(str.slice(index, match.index));
+ chunks.push(String(replace(...match, match.index, match.input)));
+ index = match.index + match[0].length;
+ }
+ chunks.push(str.slice(index));
+
+ return chunks.join("")
+}
+
+/**
+ * The class to find patterns as considering escape sequences.
+ */
+class PatternMatcher {
+ /**
+ * Initialize this matcher.
+ * @param {RegExp} pattern The pattern to match.
+ * @param {{escaped:boolean}} options The options.
+ */
+ constructor(pattern, { escaped = false } = {}) {
+ if (!(pattern instanceof RegExp)) {
+ throw new TypeError("'pattern' should be a RegExp instance.")
+ }
+ if (!pattern.flags.includes("g")) {
+ throw new Error("'pattern' should contains 'g' flag.")
+ }
+
+ internal.set(this, {
+ pattern: new RegExp(pattern.source, pattern.flags),
+ escaped: Boolean(escaped),
+ });
+ }
+
+ /**
+ * Find the pattern in a given string.
+ * @param {string} str The string to find.
+ * @returns {IterableIterator} The iterator which iterate the matched information.
+ */
+ *execAll(str) {
+ const { pattern, escaped } = internal.get(this);
+ let match = null;
+ let lastIndex = 0;
+
+ pattern.lastIndex = 0;
+ while ((match = pattern.exec(str)) != null) {
+ if (escaped || !isEscaped(str, match.index)) {
+ lastIndex = pattern.lastIndex;
+ yield match;
+ pattern.lastIndex = lastIndex;
+ }
+ }
+ }
+
+ /**
+ * Check whether the pattern is found in a given string.
+ * @param {string} str The string to check.
+ * @returns {boolean} `true` if the pattern was found in the string.
+ */
+ test(str) {
+ const it = this.execAll(str);
+ const ret = it.next();
+ return !ret.done
+ }
+
+ /**
+ * Replace a given string.
+ * @param {string} str The string to be replaced.
+ * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.
+ * @returns {string} The replaced string.
+ */
+ [Symbol.replace](str, replacer) {
+ return typeof replacer === "function"
+ ? replaceF(this, String(str), replacer)
+ : replaceS(this, String(str), String(replacer))
+ }
+}
+
+const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u;
+const has = Function.call.bind(Object.hasOwnProperty);
+
+const READ = Symbol("read");
+const CALL = Symbol("call");
+const CONSTRUCT = Symbol("construct");
+const ESM = Symbol("esm");
+
+const requireCall = { require: { [CALL]: true } };
+
+/**
+ * Check whether a given variable is modified or not.
+ * @param {Variable} variable The variable to check.
+ * @returns {boolean} `true` if the variable is modified.
+ */
+function isModifiedGlobal(variable) {
+ return (
+ variable == null ||
+ variable.defs.length !== 0 ||
+ variable.references.some((r) => r.isWrite())
+ )
+}
+
+/**
+ * Check if the value of a given node is passed through to the parent syntax as-is.
+ * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.
+ * @param {Node} node A node to check.
+ * @returns {boolean} `true` if the node is passed through.
+ */
+function isPassThrough(node) {
+ const parent = node.parent;
+
+ switch (parent && parent.type) {
+ case "ConditionalExpression":
+ return parent.consequent === node || parent.alternate === node
+ case "LogicalExpression":
+ return true
+ case "SequenceExpression":
+ return parent.expressions[parent.expressions.length - 1] === node
+ case "ChainExpression":
+ return true
+
+ default:
+ return false
+ }
+}
+
+/**
+ * The reference tracker.
+ */
+class ReferenceTracker {
+ /**
+ * Initialize this tracker.
+ * @param {Scope} globalScope The global scope.
+ * @param {object} [options] The options.
+ * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules.
+ * @param {string[]} [options.globalObjectNames=["global","globalThis","self","window"]] The variable names for Global Object.
+ */
+ constructor(
+ globalScope,
+ {
+ mode = "strict",
+ globalObjectNames = ["global", "globalThis", "self", "window"],
+ } = {},
+ ) {
+ this.variableStack = [];
+ this.globalScope = globalScope;
+ this.mode = mode;
+ this.globalObjectNames = globalObjectNames.slice(0);
+ }
+
+ /**
+ * Iterate the references of global variables.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateGlobalReferences(traceMap) {
+ for (const key of Object.keys(traceMap)) {
+ const nextTraceMap = traceMap[key];
+ const path = [key];
+ const variable = this.globalScope.set.get(key);
+
+ if (isModifiedGlobal(variable)) {
+ continue
+ }
+
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ nextTraceMap,
+ true,
+ );
+ }
+
+ for (const key of this.globalObjectNames) {
+ const path = [];
+ const variable = this.globalScope.set.get(key);
+
+ if (isModifiedGlobal(variable)) {
+ continue
+ }
+
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ traceMap,
+ false,
+ );
+ }
+ }
+
+ /**
+ * Iterate the references of CommonJS modules.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateCjsReferences(traceMap) {
+ for (const { node } of this.iterateGlobalReferences(requireCall)) {
+ const key = getStringIfConstant(node.arguments[0]);
+ if (key == null || !has(traceMap, key)) {
+ continue
+ }
+
+ const nextTraceMap = traceMap[key];
+ const path = [key];
+
+ if (nextTraceMap[READ]) {
+ yield {
+ node,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iteratePropertyReferences(node, path, nextTraceMap);
+ }
+ }
+
+ /**
+ * Iterate the references of ES modules.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateEsmReferences(traceMap) {
+ const programNode = this.globalScope.block;
+
+ for (const node of programNode.body) {
+ if (!IMPORT_TYPE.test(node.type) || node.source == null) {
+ continue
+ }
+ const moduleId = node.source.value;
+
+ if (!has(traceMap, moduleId)) {
+ continue
+ }
+ const nextTraceMap = traceMap[moduleId];
+ const path = [moduleId];
+
+ if (nextTraceMap[READ]) {
+ yield { node, path, type: READ, info: nextTraceMap[READ] };
+ }
+
+ if (node.type === "ExportAllDeclaration") {
+ for (const key of Object.keys(nextTraceMap)) {
+ const exportTraceMap = nextTraceMap[key];
+ if (exportTraceMap[READ]) {
+ yield {
+ node,
+ path: path.concat(key),
+ type: READ,
+ info: exportTraceMap[READ],
+ };
+ }
+ }
+ } else {
+ for (const specifier of node.specifiers) {
+ const esm = has(nextTraceMap, ESM);
+ const it = this._iterateImportReferences(
+ specifier,
+ path,
+ esm
+ ? nextTraceMap
+ : this.mode === "legacy"
+ ? { default: nextTraceMap, ...nextTraceMap }
+ : { default: nextTraceMap },
+ );
+
+ if (esm) {
+ yield* it;
+ } else {
+ for (const report of it) {
+ report.path = report.path.filter(exceptDefault);
+ if (
+ report.path.length >= 2 ||
+ report.type !== READ
+ ) {
+ yield report;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Iterate the references for a given variable.
+ * @param {Variable} variable The variable to iterate that references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @param {boolean} shouldReport = The flag to report those references.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateVariableReferences(variable, path, traceMap, shouldReport) {
+ if (this.variableStack.includes(variable)) {
+ return
+ }
+ this.variableStack.push(variable);
+ try {
+ for (const reference of variable.references) {
+ if (!reference.isRead()) {
+ continue
+ }
+ const node = reference.identifier;
+
+ if (shouldReport && traceMap[READ]) {
+ yield { node, path, type: READ, info: traceMap[READ] };
+ }
+ yield* this._iteratePropertyReferences(node, path, traceMap);
+ }
+ } finally {
+ this.variableStack.pop();
+ }
+ }
+
+ /**
+ * Iterate the references for a given AST node.
+ * @param rootNode The AST node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ //eslint-disable-next-line complexity
+ *_iteratePropertyReferences(rootNode, path, traceMap) {
+ let node = rootNode;
+ while (isPassThrough(node)) {
+ node = node.parent;
+ }
+
+ const parent = node.parent;
+ if (parent.type === "MemberExpression") {
+ if (parent.object === node) {
+ const key = getPropertyName(parent);
+ if (key == null || !has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: parent,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iteratePropertyReferences(
+ parent,
+ path,
+ nextTraceMap,
+ );
+ }
+ return
+ }
+ if (parent.type === "CallExpression") {
+ if (parent.callee === node && traceMap[CALL]) {
+ yield { node: parent, path, type: CALL, info: traceMap[CALL] };
+ }
+ return
+ }
+ if (parent.type === "NewExpression") {
+ if (parent.callee === node && traceMap[CONSTRUCT]) {
+ yield {
+ node: parent,
+ path,
+ type: CONSTRUCT,
+ info: traceMap[CONSTRUCT],
+ };
+ }
+ return
+ }
+ if (parent.type === "AssignmentExpression") {
+ if (parent.right === node) {
+ yield* this._iterateLhsReferences(parent.left, path, traceMap);
+ yield* this._iteratePropertyReferences(parent, path, traceMap);
+ }
+ return
+ }
+ if (parent.type === "AssignmentPattern") {
+ if (parent.right === node) {
+ yield* this._iterateLhsReferences(parent.left, path, traceMap);
+ }
+ return
+ }
+ if (parent.type === "VariableDeclarator") {
+ if (parent.init === node) {
+ yield* this._iterateLhsReferences(parent.id, path, traceMap);
+ }
+ }
+ }
+
+ /**
+ * Iterate the references for a given Pattern node.
+ * @param {Node} patternNode The Pattern node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateLhsReferences(patternNode, path, traceMap) {
+ if (patternNode.type === "Identifier") {
+ const variable = findVariable(this.globalScope, patternNode);
+ if (variable != null) {
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ traceMap,
+ false,
+ );
+ }
+ return
+ }
+ if (patternNode.type === "ObjectPattern") {
+ for (const property of patternNode.properties) {
+ const key = getPropertyName(property);
+
+ if (key == null || !has(traceMap, key)) {
+ continue
+ }
+
+ const nextPath = path.concat(key);
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: property,
+ path: nextPath,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iterateLhsReferences(
+ property.value,
+ nextPath,
+ nextTraceMap,
+ );
+ }
+ return
+ }
+ if (patternNode.type === "AssignmentPattern") {
+ yield* this._iterateLhsReferences(patternNode.left, path, traceMap);
+ }
+ }
+
+ /**
+ * Iterate the references for a given ModuleSpecifier node.
+ * @param {Node} specifierNode The ModuleSpecifier node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateImportReferences(specifierNode, path, traceMap) {
+ const type = specifierNode.type;
+
+ if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") {
+ const key =
+ type === "ImportDefaultSpecifier"
+ ? "default"
+ : specifierNode.imported.name;
+ if (!has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: specifierNode,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iterateVariableReferences(
+ findVariable(this.globalScope, specifierNode.local),
+ path,
+ nextTraceMap,
+ false,
+ );
+
+ return
+ }
+
+ if (type === "ImportNamespaceSpecifier") {
+ yield* this._iterateVariableReferences(
+ findVariable(this.globalScope, specifierNode.local),
+ path,
+ traceMap,
+ false,
+ );
+ return
+ }
+
+ if (type === "ExportSpecifier") {
+ const key = specifierNode.local.name;
+ if (!has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: specifierNode,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ }
+ }
+}
+
+ReferenceTracker.READ = READ;
+ReferenceTracker.CALL = CALL;
+ReferenceTracker.CONSTRUCT = CONSTRUCT;
+ReferenceTracker.ESM = ESM;
+
+/**
+ * This is a predicate function for Array#filter.
+ * @param {string} name A name part.
+ * @param {number} index The index of the name.
+ * @returns {boolean} `false` if it's default.
+ */
+function exceptDefault(name, index) {
+ return !(index === 1 && name === "default")
+}
+
+var index = {
+ CALL,
+ CONSTRUCT,
+ ESM,
+ findVariable,
+ getFunctionHeadLocation,
+ getFunctionNameWithKind,
+ getInnermostScope,
+ getPropertyName,
+ getStaticValue,
+ getStringIfConstant,
+ hasSideEffect,
+ isArrowToken,
+ isClosingBraceToken,
+ isClosingBracketToken,
+ isClosingParenToken,
+ isColonToken,
+ isCommaToken,
+ isCommentToken,
+ isNotArrowToken,
+ isNotClosingBraceToken,
+ isNotClosingBracketToken,
+ isNotClosingParenToken,
+ isNotColonToken,
+ isNotCommaToken,
+ isNotCommentToken,
+ isNotOpeningBraceToken,
+ isNotOpeningBracketToken,
+ isNotOpeningParenToken,
+ isNotSemicolonToken,
+ isOpeningBraceToken,
+ isOpeningBracketToken,
+ isOpeningParenToken,
+ isParenthesized,
+ isSemicolonToken,
+ PatternMatcher,
+ READ,
+ ReferenceTracker,
+};
+
+exports.CALL = CALL;
+exports.CONSTRUCT = CONSTRUCT;
+exports.ESM = ESM;
+exports.PatternMatcher = PatternMatcher;
+exports.READ = READ;
+exports.ReferenceTracker = ReferenceTracker;
+exports["default"] = index;
+exports.findVariable = findVariable;
+exports.getFunctionHeadLocation = getFunctionHeadLocation;
+exports.getFunctionNameWithKind = getFunctionNameWithKind;
+exports.getInnermostScope = getInnermostScope;
+exports.getPropertyName = getPropertyName;
+exports.getStaticValue = getStaticValue;
+exports.getStringIfConstant = getStringIfConstant;
+exports.hasSideEffect = hasSideEffect;
+exports.isArrowToken = isArrowToken;
+exports.isClosingBraceToken = isClosingBraceToken;
+exports.isClosingBracketToken = isClosingBracketToken;
+exports.isClosingParenToken = isClosingParenToken;
+exports.isColonToken = isColonToken;
+exports.isCommaToken = isCommaToken;
+exports.isCommentToken = isCommentToken;
+exports.isNotArrowToken = isNotArrowToken;
+exports.isNotClosingBraceToken = isNotClosingBraceToken;
+exports.isNotClosingBracketToken = isNotClosingBracketToken;
+exports.isNotClosingParenToken = isNotClosingParenToken;
+exports.isNotColonToken = isNotColonToken;
+exports.isNotCommaToken = isNotCommaToken;
+exports.isNotCommentToken = isNotCommentToken;
+exports.isNotOpeningBraceToken = isNotOpeningBraceToken;
+exports.isNotOpeningBracketToken = isNotOpeningBracketToken;
+exports.isNotOpeningParenToken = isNotOpeningParenToken;
+exports.isNotSemicolonToken = isNotSemicolonToken;
+exports.isOpeningBraceToken = isOpeningBraceToken;
+exports.isOpeningBracketToken = isOpeningBracketToken;
+exports.isOpeningParenToken = isOpeningParenToken;
+exports.isParenthesized = isParenthesized;
+exports.isSemicolonToken = isSemicolonToken;
+//# sourceMappingURL=index.js.map
diff --git a/node_modules/@eslint-community/eslint-utils/index.js.map b/node_modules/@eslint-community/eslint-utils/index.js.map
new file mode 100644
index 00000000000..7f3d78932bb
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sources":["src/get-innermost-scope.mjs","src/find-variable.mjs","src/token-predicate.mjs","src/get-function-head-location.mjs","src/get-static-value.mjs","src/get-string-if-constant.mjs","src/get-property-name.mjs","src/get-function-name-with-kind.mjs","src/has-side-effect.mjs","src/is-parenthesized.mjs","src/pattern-matcher.mjs","src/reference-tracker.mjs","src/index.mjs"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope.mjs\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return (token) => !f(token)\n}\n\n/**\n * Checks if the given token is a PunctuatorToken with the given value\n * @param {Token} token - The token to check.\n * @param {string} value - The value to check.\n * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.\n */\nfunction isPunctuatorTokenWithValue(token, value) {\n return token.type === \"Punctuator\" && token.value === value\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return isPunctuatorTokenWithValue(token, \"=>\")\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return isPunctuatorTokenWithValue(token, \",\")\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return isPunctuatorTokenWithValue(token, \";\")\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return isPunctuatorTokenWithValue(token, \":\")\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return isPunctuatorTokenWithValue(token, \"(\")\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return isPunctuatorTokenWithValue(token, \")\")\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"[\")\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"]\")\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"{\")\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"}\")\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return [\"Block\", \"Line\", \"Shebang\"].includes(token.type)\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\" ||\n parent.type === \"PropertyDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: { ...start },\n end: { ...end },\n }\n}\n","/* globals globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable.mjs\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ]),\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n Array.of,\n Array.prototype.at,\n Array.prototype.concat,\n Array.prototype.entries,\n Array.prototype.every,\n Array.prototype.filter,\n Array.prototype.find,\n Array.prototype.findIndex,\n Array.prototype.flat,\n Array.prototype.includes,\n Array.prototype.indexOf,\n Array.prototype.join,\n Array.prototype.keys,\n Array.prototype.lastIndexOf,\n Array.prototype.slice,\n Array.prototype.some,\n Array.prototype.toString,\n Array.prototype.values,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n Map,\n Map.prototype.entries,\n Map.prototype.get,\n Map.prototype.has,\n Map.prototype.keys,\n Map.prototype.values,\n ...Object.getOwnPropertyNames(Math)\n .filter((k) => k !== \"random\")\n .map((k) => Math[k])\n .filter((f) => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Number.prototype.toExponential,\n Number.prototype.toFixed,\n Number.prototype.toPrecision,\n Number.prototype.toString,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n Set,\n Set.prototype.entries,\n Set.prototype.has,\n Set.prototype.keys,\n Set.prototype.values,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n String.prototype.at,\n String.prototype.charAt,\n String.prototype.charCodeAt,\n String.prototype.codePointAt,\n String.prototype.concat,\n String.prototype.endsWith,\n String.prototype.includes,\n String.prototype.indexOf,\n String.prototype.lastIndexOf,\n String.prototype.normalize,\n String.prototype.padEnd,\n String.prototype.padStart,\n String.prototype.slice,\n String.prototype.startsWith,\n String.prototype.substr,\n String.prototype.substring,\n String.prototype.toLowerCase,\n String.prototype.toString,\n String.prototype.toUpperCase,\n String.prototype.trim,\n String.prototype.trimEnd,\n String.prototype.trimLeft,\n String.prototype.trimRight,\n String.prototype.trimStart,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter((f) => typeof f === \"function\"),\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/** @type {ReadonlyArray]>} */\nconst getterAllowed = [\n [Map, new Set([\"size\"])],\n [\n RegExp,\n new Set([\n \"dotAll\",\n \"flags\",\n \"global\",\n \"hasIndices\",\n \"ignoreCase\",\n \"multiline\",\n \"source\",\n \"sticky\",\n \"unicode\",\n ]),\n ],\n [Set, new Set([\"size\"])],\n]\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\n/**\n * Returns whether the given variable is never written to after initialization.\n * @param {import(\"eslint\").Scope.Variable} variable\n * @returns {boolean}\n */\nfunction isEffectivelyConst(variable) {\n const refs = variable.references\n\n const inits = refs.filter((r) => r.init).length\n const reads = refs.filter((r) => r.isReadOnly()).length\n if (inits === 1 && reads + inits === refs.length) {\n // there is only one init and all other references only read\n return true\n }\n return false\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: left.value ** right.value }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n if (calleeNode.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(calleeNode.object, initialScope)\n if (object != null) {\n if (\n object.value == null &&\n (object.optional || node.optional)\n ) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(\n calleeNode,\n initialScope,\n )\n\n if (property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n if (callee.value == null && node.optional) {\n return { value: undefined, optional: true }\n }\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.type === \"Variable\" &&\n (def.parent.kind === \"const\" ||\n isEffectivelyConst(variable)) &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false) ||\n (node.operator === \"??\" && left.value != null)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(node.object, initialScope)\n if (object != null) {\n if (object.value == null && (object.optional || node.optional)) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(node, initialScope)\n\n if (property != null) {\n if (!isGetter(object.value, property.value)) {\n return { value: object.value[property.value] }\n }\n\n for (const [classFn, allowed] of getterAllowed) {\n if (\n object.value instanceof classFn &&\n allowed.has(property.value)\n ) {\n return { value: object.value[property.value] }\n }\n }\n }\n }\n return null\n },\n\n ChainExpression(node, initialScope) {\n const expression = getStaticValueR(node.expression, initialScope)\n if (expression != null) {\n return { value: expression.value }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = getStaticPropertyNameValue(\n propertyNode,\n initialScope,\n )\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope,\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope,\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map((q) => q.value.cooked)\n strings.raw = node.quasi.quasis.map((q) => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the static value of property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.\n */\nfunction getStaticPropertyNameValue(node, initialScope) {\n const nameNode = node.type === \"Property\" ? node.key : node.property\n\n if (node.computed) {\n return getStaticValueR(nameNode, initialScope)\n }\n\n if (nameNode.type === \"Identifier\") {\n return { value: nameNode.name }\n }\n\n if (nameNode.type === \"Literal\") {\n if (nameNode.bigint) {\n return { value: nameNode.bigint }\n }\n return { value: String(nameNode.value) }\n }\n\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value.mjs\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n case \"PropertyDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n if (node.key.type === \"PrivateIdentifier\") {\n return null\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name.mjs\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.\n * @returns {string} The name and kind of the function node.\n */\n// eslint-disable-next-line complexity\nexport function getFunctionNameWithKind(node, sourceCode) {\n const parent = node.parent\n const tokens = []\n const isObjectMethod = parent.type === \"Property\" && parent.value === node\n const isClassMethod =\n parent.type === \"MethodDefinition\" && parent.value === node\n const isClassFieldMethod =\n parent.type === \"PropertyDefinition\" && parent.value === node\n\n // Modifiers.\n if (isClassMethod || isClassFieldMethod) {\n if (parent.static) {\n tokens.push(\"static\")\n }\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(\"private\")\n }\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n // Kinds.\n if (isObjectMethod || isClassMethod) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else if (isClassFieldMethod) {\n tokens.push(\"method\")\n } else {\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\")\n }\n tokens.push(\"function\")\n }\n\n // Names.\n if (isObjectMethod || isClassMethod || isClassFieldMethod) {\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(`#${parent.key.name}`)\n } else {\n const name = getPropertyName(parent)\n if (name) {\n tokens.push(`'${name}'`)\n } else if (sourceCode) {\n const keyText = sourceCode.getText(parent.key)\n if (!keyText.includes(\"\\n\")) {\n tokens.push(`[${keyText}]`)\n }\n }\n }\n } else if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else if (\n parent.type === \"VariableDeclarator\" &&\n parent.id &&\n parent.id.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.id.name}'`)\n } else if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left &&\n parent.left.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.left.name}'`)\n } else if (\n parent.type === \"ExportDefaultDeclaration\" &&\n parent.declaration === node\n ) {\n tokens.push(\"'default'\")\n }\n\n return tokens.join(\" \")\n}\n","import { getKeys, KEYS } from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ]),\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(x) {\n return x !== null && typeof x === \"object\" && typeof x.type === \"string\"\n}\n\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n isNode(element) &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (\n isNode(value) &&\n this.$visit(value, options, visitorKeys)\n ) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n PropertyDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n }),\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {},\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || KEYS,\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode,\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (\n node == null ||\n // `Program` can't be parenthesized\n node.parent == null ||\n // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`\n (node.parent.type === \"CatchClause\" && node.parent.param === node)\n ) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some((r) => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n case \"ChainExpression\":\n return true\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"globalThis\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"globalThis\", \"self\", \"window\"],\n } = {},\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true,\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? { default: nextTraceMap, ...nextTraceMap }\n : { default: nextTraceMap },\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap,\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap,\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false,\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false,\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location.mjs\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind.mjs\"\nimport { getInnermostScope } from \"./get-innermost-scope.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStaticValue } from \"./get-static-value.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\nimport { hasSideEffect } from \"./has-side-effect.mjs\"\nimport { isParenthesized } from \"./is-parenthesized.mjs\"\nimport { PatternMatcher } from \"./pattern-matcher.mjs\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker.mjs\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate.mjs\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":["getKeys","KEYS"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;AACtD,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;AAClC;AACA,IAAI,IAAI,KAAK,GAAG,aAAY;AAC5B,IAAI,IAAI,KAAK,GAAG,MAAK;AACrB,IAAI,GAAG;AACP,QA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gBAAgB,CAAC,GAAG,GAAG,IAAG;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;AACpC,IAAI,OAAO,EAAE,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,SAAS,CAAC;AAC/C;;ACvZA,YAAe;AACf,IAAI,IAAI;AACR,IAAI,SAAS;AACb,IAAI,GAAG;AACP,IAAI,YAAY;AAChB,IAAI,uBAAuB;AAC3B,IAAI,uBAAuB;AAC3B,IAAI,iBAAiB;AACrB,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,mBAAmB;AACvB,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,iBAAiB;AACrB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,mBAAmB;AACvB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@eslint-community/eslint-utils/index.mjs b/node_modules/@eslint-community/eslint-utils/index.mjs
new file mode 100644
index 00000000000..b96d3c98300
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/index.mjs
@@ -0,0 +1,2018 @@
+import { getKeys, KEYS } from 'eslint-visitor-keys';
+
+/**
+ * Get the innermost scope which contains a given location.
+ * @param {Scope} initialScope The initial scope to search.
+ * @param {Node} node The location to search.
+ * @returns {Scope} The innermost scope.
+ */
+function getInnermostScope(initialScope, node) {
+ const location = node.range[0];
+
+ let scope = initialScope;
+ let found = false;
+ do {
+ found = false;
+ for (const childScope of scope.childScopes) {
+ const range = childScope.block.range;
+
+ if (range[0] <= location && location < range[1]) {
+ scope = childScope;
+ found = true;
+ break
+ }
+ }
+ } while (found)
+
+ return scope
+}
+
+/**
+ * Find the variable of a given name.
+ * @param {Scope} initialScope The scope to start finding.
+ * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.
+ * @returns {Variable|null} The found variable or null.
+ */
+function findVariable(initialScope, nameOrNode) {
+ let name = "";
+ let scope = initialScope;
+
+ if (typeof nameOrNode === "string") {
+ name = nameOrNode;
+ } else {
+ name = nameOrNode.name;
+ scope = getInnermostScope(scope, nameOrNode);
+ }
+
+ while (scope != null) {
+ const variable = scope.set.get(name);
+ if (variable != null) {
+ return variable
+ }
+ scope = scope.upper;
+ }
+
+ return null
+}
+
+/**
+ * Creates the negate function of the given function.
+ * @param {function(Token):boolean} f - The function to negate.
+ * @returns {function(Token):boolean} Negated function.
+ */
+function negate(f) {
+ return (token) => !f(token)
+}
+
+/**
+ * Checks if the given token is a PunctuatorToken with the given value
+ * @param {Token} token - The token to check.
+ * @param {string} value - The value to check.
+ * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.
+ */
+function isPunctuatorTokenWithValue(token, value) {
+ return token.type === "Punctuator" && token.value === value
+}
+
+/**
+ * Checks if the given token is an arrow token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an arrow token.
+ */
+function isArrowToken(token) {
+ return isPunctuatorTokenWithValue(token, "=>")
+}
+
+/**
+ * Checks if the given token is a comma token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a comma token.
+ */
+function isCommaToken(token) {
+ return isPunctuatorTokenWithValue(token, ",")
+}
+
+/**
+ * Checks if the given token is a semicolon token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a semicolon token.
+ */
+function isSemicolonToken(token) {
+ return isPunctuatorTokenWithValue(token, ";")
+}
+
+/**
+ * Checks if the given token is a colon token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a colon token.
+ */
+function isColonToken(token) {
+ return isPunctuatorTokenWithValue(token, ":")
+}
+
+/**
+ * Checks if the given token is an opening parenthesis token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening parenthesis token.
+ */
+function isOpeningParenToken(token) {
+ return isPunctuatorTokenWithValue(token, "(")
+}
+
+/**
+ * Checks if the given token is a closing parenthesis token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing parenthesis token.
+ */
+function isClosingParenToken(token) {
+ return isPunctuatorTokenWithValue(token, ")")
+}
+
+/**
+ * Checks if the given token is an opening square bracket token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening square bracket token.
+ */
+function isOpeningBracketToken(token) {
+ return isPunctuatorTokenWithValue(token, "[")
+}
+
+/**
+ * Checks if the given token is a closing square bracket token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing square bracket token.
+ */
+function isClosingBracketToken(token) {
+ return isPunctuatorTokenWithValue(token, "]")
+}
+
+/**
+ * Checks if the given token is an opening brace token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is an opening brace token.
+ */
+function isOpeningBraceToken(token) {
+ return isPunctuatorTokenWithValue(token, "{")
+}
+
+/**
+ * Checks if the given token is a closing brace token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a closing brace token.
+ */
+function isClosingBraceToken(token) {
+ return isPunctuatorTokenWithValue(token, "}")
+}
+
+/**
+ * Checks if the given token is a comment token or not.
+ * @param {Token} token - The token to check.
+ * @returns {boolean} `true` if the token is a comment token.
+ */
+function isCommentToken(token) {
+ return ["Block", "Line", "Shebang"].includes(token.type)
+}
+
+const isNotArrowToken = negate(isArrowToken);
+const isNotCommaToken = negate(isCommaToken);
+const isNotSemicolonToken = negate(isSemicolonToken);
+const isNotColonToken = negate(isColonToken);
+const isNotOpeningParenToken = negate(isOpeningParenToken);
+const isNotClosingParenToken = negate(isClosingParenToken);
+const isNotOpeningBracketToken = negate(isOpeningBracketToken);
+const isNotClosingBracketToken = negate(isClosingBracketToken);
+const isNotOpeningBraceToken = negate(isOpeningBraceToken);
+const isNotClosingBraceToken = negate(isClosingBraceToken);
+const isNotCommentToken = negate(isCommentToken);
+
+/**
+ * Get the `(` token of the given function node.
+ * @param {Node} node - The function node to get.
+ * @param {SourceCode} sourceCode - The source code object to get tokens.
+ * @returns {Token} `(` token.
+ */
+function getOpeningParenOfParams(node, sourceCode) {
+ return node.id
+ ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
+ : sourceCode.getFirstToken(node, isOpeningParenToken)
+}
+
+/**
+ * Get the location of the given function node for reporting.
+ * @param {Node} node - The function node to get.
+ * @param {SourceCode} sourceCode - The source code object to get tokens.
+ * @returns {string} The location of the function node for reporting.
+ */
+function getFunctionHeadLocation(node, sourceCode) {
+ const parent = node.parent;
+ let start = null;
+ let end = null;
+
+ if (node.type === "ArrowFunctionExpression") {
+ const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
+
+ start = arrowToken.loc.start;
+ end = arrowToken.loc.end;
+ } else if (
+ parent.type === "Property" ||
+ parent.type === "MethodDefinition" ||
+ parent.type === "PropertyDefinition"
+ ) {
+ start = parent.loc.start;
+ end = getOpeningParenOfParams(node, sourceCode).loc.start;
+ } else {
+ start = node.loc.start;
+ end = getOpeningParenOfParams(node, sourceCode).loc.start;
+ }
+
+ return {
+ start: { ...start },
+ end: { ...end },
+ }
+}
+
+/* globals globalThis, global, self, window */
+
+const globalObject =
+ typeof globalThis !== "undefined"
+ ? globalThis
+ : typeof self !== "undefined"
+ ? self
+ : typeof window !== "undefined"
+ ? window
+ : typeof global !== "undefined"
+ ? global
+ : {};
+
+const builtinNames = Object.freeze(
+ new Set([
+ "Array",
+ "ArrayBuffer",
+ "BigInt",
+ "BigInt64Array",
+ "BigUint64Array",
+ "Boolean",
+ "DataView",
+ "Date",
+ "decodeURI",
+ "decodeURIComponent",
+ "encodeURI",
+ "encodeURIComponent",
+ "escape",
+ "Float32Array",
+ "Float64Array",
+ "Function",
+ "Infinity",
+ "Int16Array",
+ "Int32Array",
+ "Int8Array",
+ "isFinite",
+ "isNaN",
+ "isPrototypeOf",
+ "JSON",
+ "Map",
+ "Math",
+ "NaN",
+ "Number",
+ "Object",
+ "parseFloat",
+ "parseInt",
+ "Promise",
+ "Proxy",
+ "Reflect",
+ "RegExp",
+ "Set",
+ "String",
+ "Symbol",
+ "Uint16Array",
+ "Uint32Array",
+ "Uint8Array",
+ "Uint8ClampedArray",
+ "undefined",
+ "unescape",
+ "WeakMap",
+ "WeakSet",
+ ]),
+);
+const callAllowed = new Set(
+ [
+ Array.isArray,
+ Array.of,
+ Array.prototype.at,
+ Array.prototype.concat,
+ Array.prototype.entries,
+ Array.prototype.every,
+ Array.prototype.filter,
+ Array.prototype.find,
+ Array.prototype.findIndex,
+ Array.prototype.flat,
+ Array.prototype.includes,
+ Array.prototype.indexOf,
+ Array.prototype.join,
+ Array.prototype.keys,
+ Array.prototype.lastIndexOf,
+ Array.prototype.slice,
+ Array.prototype.some,
+ Array.prototype.toString,
+ Array.prototype.values,
+ typeof BigInt === "function" ? BigInt : undefined,
+ Boolean,
+ Date,
+ Date.parse,
+ decodeURI,
+ decodeURIComponent,
+ encodeURI,
+ encodeURIComponent,
+ escape,
+ isFinite,
+ isNaN,
+ isPrototypeOf,
+ Map,
+ Map.prototype.entries,
+ Map.prototype.get,
+ Map.prototype.has,
+ Map.prototype.keys,
+ Map.prototype.values,
+ ...Object.getOwnPropertyNames(Math)
+ .filter((k) => k !== "random")
+ .map((k) => Math[k])
+ .filter((f) => typeof f === "function"),
+ Number,
+ Number.isFinite,
+ Number.isNaN,
+ Number.parseFloat,
+ Number.parseInt,
+ Number.prototype.toExponential,
+ Number.prototype.toFixed,
+ Number.prototype.toPrecision,
+ Number.prototype.toString,
+ Object,
+ Object.entries,
+ Object.is,
+ Object.isExtensible,
+ Object.isFrozen,
+ Object.isSealed,
+ Object.keys,
+ Object.values,
+ parseFloat,
+ parseInt,
+ RegExp,
+ Set,
+ Set.prototype.entries,
+ Set.prototype.has,
+ Set.prototype.keys,
+ Set.prototype.values,
+ String,
+ String.fromCharCode,
+ String.fromCodePoint,
+ String.raw,
+ String.prototype.at,
+ String.prototype.charAt,
+ String.prototype.charCodeAt,
+ String.prototype.codePointAt,
+ String.prototype.concat,
+ String.prototype.endsWith,
+ String.prototype.includes,
+ String.prototype.indexOf,
+ String.prototype.lastIndexOf,
+ String.prototype.normalize,
+ String.prototype.padEnd,
+ String.prototype.padStart,
+ String.prototype.slice,
+ String.prototype.startsWith,
+ String.prototype.substr,
+ String.prototype.substring,
+ String.prototype.toLowerCase,
+ String.prototype.toString,
+ String.prototype.toUpperCase,
+ String.prototype.trim,
+ String.prototype.trimEnd,
+ String.prototype.trimLeft,
+ String.prototype.trimRight,
+ String.prototype.trimStart,
+ Symbol.for,
+ Symbol.keyFor,
+ unescape,
+ ].filter((f) => typeof f === "function"),
+);
+const callPassThrough = new Set([
+ Object.freeze,
+ Object.preventExtensions,
+ Object.seal,
+]);
+
+/** @type {ReadonlyArray]>} */
+const getterAllowed = [
+ [Map, new Set(["size"])],
+ [
+ RegExp,
+ new Set([
+ "dotAll",
+ "flags",
+ "global",
+ "hasIndices",
+ "ignoreCase",
+ "multiline",
+ "source",
+ "sticky",
+ "unicode",
+ ]),
+ ],
+ [Set, new Set(["size"])],
+];
+
+/**
+ * Get the property descriptor.
+ * @param {object} object The object to get.
+ * @param {string|number|symbol} name The property name to get.
+ */
+function getPropertyDescriptor(object, name) {
+ let x = object;
+ while ((typeof x === "object" || typeof x === "function") && x !== null) {
+ const d = Object.getOwnPropertyDescriptor(x, name);
+ if (d) {
+ return d
+ }
+ x = Object.getPrototypeOf(x);
+ }
+ return null
+}
+
+/**
+ * Check if a property is getter or not.
+ * @param {object} object The object to check.
+ * @param {string|number|symbol} name The property name to check.
+ */
+function isGetter(object, name) {
+ const d = getPropertyDescriptor(object, name);
+ return d != null && d.get != null
+}
+
+/**
+ * Get the element values of a given node list.
+ * @param {Node[]} nodeList The node list to get values.
+ * @param {Scope|undefined} initialScope The initial scope to find variables.
+ * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.
+ */
+function getElementValues(nodeList, initialScope) {
+ const valueList = [];
+
+ for (let i = 0; i < nodeList.length; ++i) {
+ const elementNode = nodeList[i];
+
+ if (elementNode == null) {
+ valueList.length = i + 1;
+ } else if (elementNode.type === "SpreadElement") {
+ const argument = getStaticValueR(elementNode.argument, initialScope);
+ if (argument == null) {
+ return null
+ }
+ valueList.push(...argument.value);
+ } else {
+ const element = getStaticValueR(elementNode, initialScope);
+ if (element == null) {
+ return null
+ }
+ valueList.push(element.value);
+ }
+ }
+
+ return valueList
+}
+
+/**
+ * Returns whether the given variable is never written to after initialization.
+ * @param {import("eslint").Scope.Variable} variable
+ * @returns {boolean}
+ */
+function isEffectivelyConst(variable) {
+ const refs = variable.references;
+
+ const inits = refs.filter((r) => r.init).length;
+ const reads = refs.filter((r) => r.isReadOnly()).length;
+ if (inits === 1 && reads + inits === refs.length) {
+ // there is only one init and all other references only read
+ return true
+ }
+ return false
+}
+
+const operations = Object.freeze({
+ ArrayExpression(node, initialScope) {
+ const elements = getElementValues(node.elements, initialScope);
+ return elements != null ? { value: elements } : null
+ },
+
+ AssignmentExpression(node, initialScope) {
+ if (node.operator === "=") {
+ return getStaticValueR(node.right, initialScope)
+ }
+ return null
+ },
+
+ //eslint-disable-next-line complexity
+ BinaryExpression(node, initialScope) {
+ if (node.operator === "in" || node.operator === "instanceof") {
+ // Not supported.
+ return null
+ }
+
+ const left = getStaticValueR(node.left, initialScope);
+ const right = getStaticValueR(node.right, initialScope);
+ if (left != null && right != null) {
+ switch (node.operator) {
+ case "==":
+ return { value: left.value == right.value } //eslint-disable-line eqeqeq
+ case "!=":
+ return { value: left.value != right.value } //eslint-disable-line eqeqeq
+ case "===":
+ return { value: left.value === right.value }
+ case "!==":
+ return { value: left.value !== right.value }
+ case "<":
+ return { value: left.value < right.value }
+ case "<=":
+ return { value: left.value <= right.value }
+ case ">":
+ return { value: left.value > right.value }
+ case ">=":
+ return { value: left.value >= right.value }
+ case "<<":
+ return { value: left.value << right.value }
+ case ">>":
+ return { value: left.value >> right.value }
+ case ">>>":
+ return { value: left.value >>> right.value }
+ case "+":
+ return { value: left.value + right.value }
+ case "-":
+ return { value: left.value - right.value }
+ case "*":
+ return { value: left.value * right.value }
+ case "/":
+ return { value: left.value / right.value }
+ case "%":
+ return { value: left.value % right.value }
+ case "**":
+ return { value: left.value ** right.value }
+ case "|":
+ return { value: left.value | right.value }
+ case "^":
+ return { value: left.value ^ right.value }
+ case "&":
+ return { value: left.value & right.value }
+
+ // no default
+ }
+ }
+
+ return null
+ },
+
+ CallExpression(node, initialScope) {
+ const calleeNode = node.callee;
+ const args = getElementValues(node.arguments, initialScope);
+
+ if (args != null) {
+ if (calleeNode.type === "MemberExpression") {
+ if (calleeNode.property.type === "PrivateIdentifier") {
+ return null
+ }
+ const object = getStaticValueR(calleeNode.object, initialScope);
+ if (object != null) {
+ if (
+ object.value == null &&
+ (object.optional || node.optional)
+ ) {
+ return { value: undefined, optional: true }
+ }
+ const property = getStaticPropertyNameValue(
+ calleeNode,
+ initialScope,
+ );
+
+ if (property != null) {
+ const receiver = object.value;
+ const methodName = property.value;
+ if (callAllowed.has(receiver[methodName])) {
+ return { value: receiver[methodName](...args) }
+ }
+ if (callPassThrough.has(receiver[methodName])) {
+ return { value: args[0] }
+ }
+ }
+ }
+ } else {
+ const callee = getStaticValueR(calleeNode, initialScope);
+ if (callee != null) {
+ if (callee.value == null && node.optional) {
+ return { value: undefined, optional: true }
+ }
+ const func = callee.value;
+ if (callAllowed.has(func)) {
+ return { value: func(...args) }
+ }
+ if (callPassThrough.has(func)) {
+ return { value: args[0] }
+ }
+ }
+ }
+ }
+
+ return null
+ },
+
+ ConditionalExpression(node, initialScope) {
+ const test = getStaticValueR(node.test, initialScope);
+ if (test != null) {
+ return test.value
+ ? getStaticValueR(node.consequent, initialScope)
+ : getStaticValueR(node.alternate, initialScope)
+ }
+ return null
+ },
+
+ ExpressionStatement(node, initialScope) {
+ return getStaticValueR(node.expression, initialScope)
+ },
+
+ Identifier(node, initialScope) {
+ if (initialScope != null) {
+ const variable = findVariable(initialScope, node);
+
+ // Built-in globals.
+ if (
+ variable != null &&
+ variable.defs.length === 0 &&
+ builtinNames.has(variable.name) &&
+ variable.name in globalObject
+ ) {
+ return { value: globalObject[variable.name] }
+ }
+
+ // Constants.
+ if (variable != null && variable.defs.length === 1) {
+ const def = variable.defs[0];
+ if (
+ def.parent &&
+ def.type === "Variable" &&
+ (def.parent.kind === "const" ||
+ isEffectivelyConst(variable)) &&
+ // TODO(mysticatea): don't support destructuring here.
+ def.node.id.type === "Identifier"
+ ) {
+ return getStaticValueR(def.node.init, initialScope)
+ }
+ }
+ }
+ return null
+ },
+
+ Literal(node) {
+ //istanbul ignore if : this is implementation-specific behavior.
+ if ((node.regex != null || node.bigint != null) && node.value == null) {
+ // It was a RegExp/BigInt literal, but Node.js didn't support it.
+ return null
+ }
+ return { value: node.value }
+ },
+
+ LogicalExpression(node, initialScope) {
+ const left = getStaticValueR(node.left, initialScope);
+ if (left != null) {
+ if (
+ (node.operator === "||" && Boolean(left.value) === true) ||
+ (node.operator === "&&" && Boolean(left.value) === false) ||
+ (node.operator === "??" && left.value != null)
+ ) {
+ return left
+ }
+
+ const right = getStaticValueR(node.right, initialScope);
+ if (right != null) {
+ return right
+ }
+ }
+
+ return null
+ },
+
+ MemberExpression(node, initialScope) {
+ if (node.property.type === "PrivateIdentifier") {
+ return null
+ }
+ const object = getStaticValueR(node.object, initialScope);
+ if (object != null) {
+ if (object.value == null && (object.optional || node.optional)) {
+ return { value: undefined, optional: true }
+ }
+ const property = getStaticPropertyNameValue(node, initialScope);
+
+ if (property != null) {
+ if (!isGetter(object.value, property.value)) {
+ return { value: object.value[property.value] }
+ }
+
+ for (const [classFn, allowed] of getterAllowed) {
+ if (
+ object.value instanceof classFn &&
+ allowed.has(property.value)
+ ) {
+ return { value: object.value[property.value] }
+ }
+ }
+ }
+ }
+ return null
+ },
+
+ ChainExpression(node, initialScope) {
+ const expression = getStaticValueR(node.expression, initialScope);
+ if (expression != null) {
+ return { value: expression.value }
+ }
+ return null
+ },
+
+ NewExpression(node, initialScope) {
+ const callee = getStaticValueR(node.callee, initialScope);
+ const args = getElementValues(node.arguments, initialScope);
+
+ if (callee != null && args != null) {
+ const Func = callee.value;
+ if (callAllowed.has(Func)) {
+ return { value: new Func(...args) }
+ }
+ }
+
+ return null
+ },
+
+ ObjectExpression(node, initialScope) {
+ const object = {};
+
+ for (const propertyNode of node.properties) {
+ if (propertyNode.type === "Property") {
+ if (propertyNode.kind !== "init") {
+ return null
+ }
+ const key = getStaticPropertyNameValue(
+ propertyNode,
+ initialScope,
+ );
+ const value = getStaticValueR(propertyNode.value, initialScope);
+ if (key == null || value == null) {
+ return null
+ }
+ object[key.value] = value.value;
+ } else if (
+ propertyNode.type === "SpreadElement" ||
+ propertyNode.type === "ExperimentalSpreadProperty"
+ ) {
+ const argument = getStaticValueR(
+ propertyNode.argument,
+ initialScope,
+ );
+ if (argument == null) {
+ return null
+ }
+ Object.assign(object, argument.value);
+ } else {
+ return null
+ }
+ }
+
+ return { value: object }
+ },
+
+ SequenceExpression(node, initialScope) {
+ const last = node.expressions[node.expressions.length - 1];
+ return getStaticValueR(last, initialScope)
+ },
+
+ TaggedTemplateExpression(node, initialScope) {
+ const tag = getStaticValueR(node.tag, initialScope);
+ const expressions = getElementValues(
+ node.quasi.expressions,
+ initialScope,
+ );
+
+ if (tag != null && expressions != null) {
+ const func = tag.value;
+ const strings = node.quasi.quasis.map((q) => q.value.cooked);
+ strings.raw = node.quasi.quasis.map((q) => q.value.raw);
+
+ if (func === String.raw) {
+ return { value: func(strings, ...expressions) }
+ }
+ }
+
+ return null
+ },
+
+ TemplateLiteral(node, initialScope) {
+ const expressions = getElementValues(node.expressions, initialScope);
+ if (expressions != null) {
+ let value = node.quasis[0].value.cooked;
+ for (let i = 0; i < expressions.length; ++i) {
+ value += expressions[i];
+ value += node.quasis[i + 1].value.cooked;
+ }
+ return { value }
+ }
+ return null
+ },
+
+ UnaryExpression(node, initialScope) {
+ if (node.operator === "delete") {
+ // Not supported.
+ return null
+ }
+ if (node.operator === "void") {
+ return { value: undefined }
+ }
+
+ const arg = getStaticValueR(node.argument, initialScope);
+ if (arg != null) {
+ switch (node.operator) {
+ case "-":
+ return { value: -arg.value }
+ case "+":
+ return { value: +arg.value } //eslint-disable-line no-implicit-coercion
+ case "!":
+ return { value: !arg.value }
+ case "~":
+ return { value: ~arg.value }
+ case "typeof":
+ return { value: typeof arg.value }
+
+ // no default
+ }
+ }
+
+ return null
+ },
+});
+
+/**
+ * Get the value of a given node if it's a static value.
+ * @param {Node} node The node to get.
+ * @param {Scope|undefined} initialScope The scope to start finding variable.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.
+ */
+function getStaticValueR(node, initialScope) {
+ if (node != null && Object.hasOwnProperty.call(operations, node.type)) {
+ return operations[node.type](node, initialScope)
+ }
+ return null
+}
+
+/**
+ * Get the static value of property name from a MemberExpression node or a Property node.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.
+ */
+function getStaticPropertyNameValue(node, initialScope) {
+ const nameNode = node.type === "Property" ? node.key : node.property;
+
+ if (node.computed) {
+ return getStaticValueR(nameNode, initialScope)
+ }
+
+ if (nameNode.type === "Identifier") {
+ return { value: nameNode.name }
+ }
+
+ if (nameNode.type === "Literal") {
+ if (nameNode.bigint) {
+ return { value: nameNode.bigint }
+ }
+ return { value: String(nameNode.value) }
+ }
+
+ return null
+}
+
+/**
+ * Get the value of a given node if it's a static value.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.
+ * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.
+ */
+function getStaticValue(node, initialScope = null) {
+ try {
+ return getStaticValueR(node, initialScope)
+ } catch (_error) {
+ return null
+ }
+}
+
+/**
+ * Get the value of a given node if it's a literal or a template literal.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.
+ * @returns {string|null} The value of the node, or `null`.
+ */
+function getStringIfConstant(node, initialScope = null) {
+ // Handle the literals that the platform doesn't support natively.
+ if (node && node.type === "Literal" && node.value === null) {
+ if (node.regex) {
+ return `/${node.regex.pattern}/${node.regex.flags}`
+ }
+ if (node.bigint) {
+ return node.bigint
+ }
+ }
+
+ const evaluated = getStaticValue(node, initialScope);
+ return evaluated && String(evaluated.value)
+}
+
+/**
+ * Get the property name from a MemberExpression node or a Property node.
+ * @param {Node} node The node to get.
+ * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
+ * @returns {string|null} The property name of the node.
+ */
+function getPropertyName(node, initialScope) {
+ switch (node.type) {
+ case "MemberExpression":
+ if (node.computed) {
+ return getStringIfConstant(node.property, initialScope)
+ }
+ if (node.property.type === "PrivateIdentifier") {
+ return null
+ }
+ return node.property.name
+
+ case "Property":
+ case "MethodDefinition":
+ case "PropertyDefinition":
+ if (node.computed) {
+ return getStringIfConstant(node.key, initialScope)
+ }
+ if (node.key.type === "Literal") {
+ return String(node.key.value)
+ }
+ if (node.key.type === "PrivateIdentifier") {
+ return null
+ }
+ return node.key.name
+
+ // no default
+ }
+
+ return null
+}
+
+/**
+ * Get the name and kind of the given function node.
+ * @param {ASTNode} node - The function node to get.
+ * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.
+ * @returns {string} The name and kind of the function node.
+ */
+// eslint-disable-next-line complexity
+function getFunctionNameWithKind(node, sourceCode) {
+ const parent = node.parent;
+ const tokens = [];
+ const isObjectMethod = parent.type === "Property" && parent.value === node;
+ const isClassMethod =
+ parent.type === "MethodDefinition" && parent.value === node;
+ const isClassFieldMethod =
+ parent.type === "PropertyDefinition" && parent.value === node;
+
+ // Modifiers.
+ if (isClassMethod || isClassFieldMethod) {
+ if (parent.static) {
+ tokens.push("static");
+ }
+ if (parent.key.type === "PrivateIdentifier") {
+ tokens.push("private");
+ }
+ }
+ if (node.async) {
+ tokens.push("async");
+ }
+ if (node.generator) {
+ tokens.push("generator");
+ }
+
+ // Kinds.
+ if (isObjectMethod || isClassMethod) {
+ if (parent.kind === "constructor") {
+ return "constructor"
+ }
+ if (parent.kind === "get") {
+ tokens.push("getter");
+ } else if (parent.kind === "set") {
+ tokens.push("setter");
+ } else {
+ tokens.push("method");
+ }
+ } else if (isClassFieldMethod) {
+ tokens.push("method");
+ } else {
+ if (node.type === "ArrowFunctionExpression") {
+ tokens.push("arrow");
+ }
+ tokens.push("function");
+ }
+
+ // Names.
+ if (isObjectMethod || isClassMethod || isClassFieldMethod) {
+ if (parent.key.type === "PrivateIdentifier") {
+ tokens.push(`#${parent.key.name}`);
+ } else {
+ const name = getPropertyName(parent);
+ if (name) {
+ tokens.push(`'${name}'`);
+ } else if (sourceCode) {
+ const keyText = sourceCode.getText(parent.key);
+ if (!keyText.includes("\n")) {
+ tokens.push(`[${keyText}]`);
+ }
+ }
+ }
+ } else if (node.id) {
+ tokens.push(`'${node.id.name}'`);
+ } else if (
+ parent.type === "VariableDeclarator" &&
+ parent.id &&
+ parent.id.type === "Identifier"
+ ) {
+ tokens.push(`'${parent.id.name}'`);
+ } else if (
+ (parent.type === "AssignmentExpression" ||
+ parent.type === "AssignmentPattern") &&
+ parent.left &&
+ parent.left.type === "Identifier"
+ ) {
+ tokens.push(`'${parent.left.name}'`);
+ } else if (
+ parent.type === "ExportDefaultDeclaration" &&
+ parent.declaration === node
+ ) {
+ tokens.push("'default'");
+ }
+
+ return tokens.join(" ")
+}
+
+const typeConversionBinaryOps = Object.freeze(
+ new Set([
+ "==",
+ "!=",
+ "<",
+ "<=",
+ ">",
+ ">=",
+ "<<",
+ ">>",
+ ">>>",
+ "+",
+ "-",
+ "*",
+ "/",
+ "%",
+ "|",
+ "^",
+ "&",
+ "in",
+ ]),
+);
+const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"]));
+
+/**
+ * Check whether the given value is an ASTNode or not.
+ * @param {any} x The value to check.
+ * @returns {boolean} `true` if the value is an ASTNode.
+ */
+function isNode(x) {
+ return x !== null && typeof x === "object" && typeof x.type === "string"
+}
+
+const visitor = Object.freeze(
+ Object.assign(Object.create(null), {
+ $visit(node, options, visitorKeys) {
+ const { type } = node;
+
+ if (typeof this[type] === "function") {
+ return this[type](node, options, visitorKeys)
+ }
+
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+
+ $visitChildren(node, options, visitorKeys) {
+ const { type } = node;
+
+ for (const key of visitorKeys[type] || getKeys(node)) {
+ const value = node[key];
+
+ if (Array.isArray(value)) {
+ for (const element of value) {
+ if (
+ isNode(element) &&
+ this.$visit(element, options, visitorKeys)
+ ) {
+ return true
+ }
+ }
+ } else if (
+ isNode(value) &&
+ this.$visit(value, options, visitorKeys)
+ ) {
+ return true
+ }
+ }
+
+ return false
+ },
+
+ ArrowFunctionExpression() {
+ return false
+ },
+ AssignmentExpression() {
+ return true
+ },
+ AwaitExpression() {
+ return true
+ },
+ BinaryExpression(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ typeConversionBinaryOps.has(node.operator) &&
+ (node.left.type !== "Literal" || node.right.type !== "Literal")
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ CallExpression() {
+ return true
+ },
+ FunctionExpression() {
+ return false
+ },
+ ImportExpression() {
+ return true
+ },
+ MemberExpression(node, options, visitorKeys) {
+ if (options.considerGetters) {
+ return true
+ }
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.property.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ MethodDefinition(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ NewExpression() {
+ return true
+ },
+ Property(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ PropertyDefinition(node, options, visitorKeys) {
+ if (
+ options.considerImplicitTypeConversion &&
+ node.computed &&
+ node.key.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ UnaryExpression(node, options, visitorKeys) {
+ if (node.operator === "delete") {
+ return true
+ }
+ if (
+ options.considerImplicitTypeConversion &&
+ typeConversionUnaryOps.has(node.operator) &&
+ node.argument.type !== "Literal"
+ ) {
+ return true
+ }
+ return this.$visitChildren(node, options, visitorKeys)
+ },
+ UpdateExpression() {
+ return true
+ },
+ YieldExpression() {
+ return true
+ },
+ }),
+);
+
+/**
+ * Check whether a given node has any side effect or not.
+ * @param {Node} node The node to get.
+ * @param {SourceCode} sourceCode The source code object.
+ * @param {object} [options] The option object.
+ * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.
+ * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.
+ * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
+ * @returns {boolean} `true` if the node has a certain side effect.
+ */
+function hasSideEffect(
+ node,
+ sourceCode,
+ { considerGetters = false, considerImplicitTypeConversion = false } = {},
+) {
+ return visitor.$visit(
+ node,
+ { considerGetters, considerImplicitTypeConversion },
+ sourceCode.visitorKeys || KEYS,
+ )
+}
+
+/**
+ * Get the left parenthesis of the parent node syntax if it exists.
+ * E.g., `if (a) {}` then the `(`.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {Token|null} The left parenthesis of the parent node syntax
+ */
+function getParentSyntaxParen(node, sourceCode) {
+ const parent = node.parent;
+
+ switch (parent.type) {
+ case "CallExpression":
+ case "NewExpression":
+ if (parent.arguments.length === 1 && parent.arguments[0] === node) {
+ return sourceCode.getTokenAfter(
+ parent.callee,
+ isOpeningParenToken,
+ )
+ }
+ return null
+
+ case "DoWhileStatement":
+ if (parent.test === node) {
+ return sourceCode.getTokenAfter(
+ parent.body,
+ isOpeningParenToken,
+ )
+ }
+ return null
+
+ case "IfStatement":
+ case "WhileStatement":
+ if (parent.test === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "ImportExpression":
+ if (parent.source === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "SwitchStatement":
+ if (parent.discriminant === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ case "WithStatement":
+ if (parent.object === node) {
+ return sourceCode.getFirstToken(parent, 1)
+ }
+ return null
+
+ default:
+ return null
+ }
+}
+
+/**
+ * Check whether a given node is parenthesized or not.
+ * @param {number} times The number of parantheses.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {boolean} `true` if the node is parenthesized the given times.
+ */
+/**
+ * Check whether a given node is parenthesized or not.
+ * @param {Node} node The AST node to check.
+ * @param {SourceCode} sourceCode The source code object to get tokens.
+ * @returns {boolean} `true` if the node is parenthesized.
+ */
+function isParenthesized(
+ timesOrNode,
+ nodeOrSourceCode,
+ optionalSourceCode,
+) {
+ let times, node, sourceCode, maybeLeftParen, maybeRightParen;
+ if (typeof timesOrNode === "number") {
+ times = timesOrNode | 0;
+ node = nodeOrSourceCode;
+ sourceCode = optionalSourceCode;
+ if (!(times >= 1)) {
+ throw new TypeError("'times' should be a positive integer.")
+ }
+ } else {
+ times = 1;
+ node = timesOrNode;
+ sourceCode = nodeOrSourceCode;
+ }
+
+ if (
+ node == null ||
+ // `Program` can't be parenthesized
+ node.parent == null ||
+ // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`
+ (node.parent.type === "CatchClause" && node.parent.param === node)
+ ) {
+ return false
+ }
+
+ maybeLeftParen = maybeRightParen = node;
+ do {
+ maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen);
+ maybeRightParen = sourceCode.getTokenAfter(maybeRightParen);
+ } while (
+ maybeLeftParen != null &&
+ maybeRightParen != null &&
+ isOpeningParenToken(maybeLeftParen) &&
+ isClosingParenToken(maybeRightParen) &&
+ // Avoid false positive such as `if (a) {}`
+ maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&
+ --times > 0
+ )
+
+ return times === 0
+}
+
+/**
+ * @author Toru Nagashima
+ * See LICENSE file in root directory for full license.
+ */
+
+const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu;
+
+/** @type {WeakMap} */
+const internal = new WeakMap();
+
+/**
+ * Check whether a given character is escaped or not.
+ * @param {string} str The string to check.
+ * @param {number} index The location of the character to check.
+ * @returns {boolean} `true` if the character is escaped.
+ */
+function isEscaped(str, index) {
+ let escaped = false;
+ for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {
+ escaped = !escaped;
+ }
+ return escaped
+}
+
+/**
+ * Replace a given string by a given matcher.
+ * @param {PatternMatcher} matcher The pattern matcher.
+ * @param {string} str The string to be replaced.
+ * @param {string} replacement The new substring to replace each matched part.
+ * @returns {string} The replaced string.
+ */
+function replaceS(matcher, str, replacement) {
+ const chunks = [];
+ let index = 0;
+
+ /** @type {RegExpExecArray} */
+ let match = null;
+
+ /**
+ * @param {string} key The placeholder.
+ * @returns {string} The replaced string.
+ */
+ function replacer(key) {
+ switch (key) {
+ case "$$":
+ return "$"
+ case "$&":
+ return match[0]
+ case "$`":
+ return str.slice(0, match.index)
+ case "$'":
+ return str.slice(match.index + match[0].length)
+ default: {
+ const i = key.slice(1);
+ if (i in match) {
+ return match[i]
+ }
+ return key
+ }
+ }
+ }
+
+ for (match of matcher.execAll(str)) {
+ chunks.push(str.slice(index, match.index));
+ chunks.push(replacement.replace(placeholder, replacer));
+ index = match.index + match[0].length;
+ }
+ chunks.push(str.slice(index));
+
+ return chunks.join("")
+}
+
+/**
+ * Replace a given string by a given matcher.
+ * @param {PatternMatcher} matcher The pattern matcher.
+ * @param {string} str The string to be replaced.
+ * @param {(...strs[])=>string} replace The function to replace each matched part.
+ * @returns {string} The replaced string.
+ */
+function replaceF(matcher, str, replace) {
+ const chunks = [];
+ let index = 0;
+
+ for (const match of matcher.execAll(str)) {
+ chunks.push(str.slice(index, match.index));
+ chunks.push(String(replace(...match, match.index, match.input)));
+ index = match.index + match[0].length;
+ }
+ chunks.push(str.slice(index));
+
+ return chunks.join("")
+}
+
+/**
+ * The class to find patterns as considering escape sequences.
+ */
+class PatternMatcher {
+ /**
+ * Initialize this matcher.
+ * @param {RegExp} pattern The pattern to match.
+ * @param {{escaped:boolean}} options The options.
+ */
+ constructor(pattern, { escaped = false } = {}) {
+ if (!(pattern instanceof RegExp)) {
+ throw new TypeError("'pattern' should be a RegExp instance.")
+ }
+ if (!pattern.flags.includes("g")) {
+ throw new Error("'pattern' should contains 'g' flag.")
+ }
+
+ internal.set(this, {
+ pattern: new RegExp(pattern.source, pattern.flags),
+ escaped: Boolean(escaped),
+ });
+ }
+
+ /**
+ * Find the pattern in a given string.
+ * @param {string} str The string to find.
+ * @returns {IterableIterator} The iterator which iterate the matched information.
+ */
+ *execAll(str) {
+ const { pattern, escaped } = internal.get(this);
+ let match = null;
+ let lastIndex = 0;
+
+ pattern.lastIndex = 0;
+ while ((match = pattern.exec(str)) != null) {
+ if (escaped || !isEscaped(str, match.index)) {
+ lastIndex = pattern.lastIndex;
+ yield match;
+ pattern.lastIndex = lastIndex;
+ }
+ }
+ }
+
+ /**
+ * Check whether the pattern is found in a given string.
+ * @param {string} str The string to check.
+ * @returns {boolean} `true` if the pattern was found in the string.
+ */
+ test(str) {
+ const it = this.execAll(str);
+ const ret = it.next();
+ return !ret.done
+ }
+
+ /**
+ * Replace a given string.
+ * @param {string} str The string to be replaced.
+ * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.
+ * @returns {string} The replaced string.
+ */
+ [Symbol.replace](str, replacer) {
+ return typeof replacer === "function"
+ ? replaceF(this, String(str), replacer)
+ : replaceS(this, String(str), String(replacer))
+ }
+}
+
+const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u;
+const has = Function.call.bind(Object.hasOwnProperty);
+
+const READ = Symbol("read");
+const CALL = Symbol("call");
+const CONSTRUCT = Symbol("construct");
+const ESM = Symbol("esm");
+
+const requireCall = { require: { [CALL]: true } };
+
+/**
+ * Check whether a given variable is modified or not.
+ * @param {Variable} variable The variable to check.
+ * @returns {boolean} `true` if the variable is modified.
+ */
+function isModifiedGlobal(variable) {
+ return (
+ variable == null ||
+ variable.defs.length !== 0 ||
+ variable.references.some((r) => r.isWrite())
+ )
+}
+
+/**
+ * Check if the value of a given node is passed through to the parent syntax as-is.
+ * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.
+ * @param {Node} node A node to check.
+ * @returns {boolean} `true` if the node is passed through.
+ */
+function isPassThrough(node) {
+ const parent = node.parent;
+
+ switch (parent && parent.type) {
+ case "ConditionalExpression":
+ return parent.consequent === node || parent.alternate === node
+ case "LogicalExpression":
+ return true
+ case "SequenceExpression":
+ return parent.expressions[parent.expressions.length - 1] === node
+ case "ChainExpression":
+ return true
+
+ default:
+ return false
+ }
+}
+
+/**
+ * The reference tracker.
+ */
+class ReferenceTracker {
+ /**
+ * Initialize this tracker.
+ * @param {Scope} globalScope The global scope.
+ * @param {object} [options] The options.
+ * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules.
+ * @param {string[]} [options.globalObjectNames=["global","globalThis","self","window"]] The variable names for Global Object.
+ */
+ constructor(
+ globalScope,
+ {
+ mode = "strict",
+ globalObjectNames = ["global", "globalThis", "self", "window"],
+ } = {},
+ ) {
+ this.variableStack = [];
+ this.globalScope = globalScope;
+ this.mode = mode;
+ this.globalObjectNames = globalObjectNames.slice(0);
+ }
+
+ /**
+ * Iterate the references of global variables.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateGlobalReferences(traceMap) {
+ for (const key of Object.keys(traceMap)) {
+ const nextTraceMap = traceMap[key];
+ const path = [key];
+ const variable = this.globalScope.set.get(key);
+
+ if (isModifiedGlobal(variable)) {
+ continue
+ }
+
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ nextTraceMap,
+ true,
+ );
+ }
+
+ for (const key of this.globalObjectNames) {
+ const path = [];
+ const variable = this.globalScope.set.get(key);
+
+ if (isModifiedGlobal(variable)) {
+ continue
+ }
+
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ traceMap,
+ false,
+ );
+ }
+ }
+
+ /**
+ * Iterate the references of CommonJS modules.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateCjsReferences(traceMap) {
+ for (const { node } of this.iterateGlobalReferences(requireCall)) {
+ const key = getStringIfConstant(node.arguments[0]);
+ if (key == null || !has(traceMap, key)) {
+ continue
+ }
+
+ const nextTraceMap = traceMap[key];
+ const path = [key];
+
+ if (nextTraceMap[READ]) {
+ yield {
+ node,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iteratePropertyReferences(node, path, nextTraceMap);
+ }
+ }
+
+ /**
+ * Iterate the references of ES modules.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *iterateEsmReferences(traceMap) {
+ const programNode = this.globalScope.block;
+
+ for (const node of programNode.body) {
+ if (!IMPORT_TYPE.test(node.type) || node.source == null) {
+ continue
+ }
+ const moduleId = node.source.value;
+
+ if (!has(traceMap, moduleId)) {
+ continue
+ }
+ const nextTraceMap = traceMap[moduleId];
+ const path = [moduleId];
+
+ if (nextTraceMap[READ]) {
+ yield { node, path, type: READ, info: nextTraceMap[READ] };
+ }
+
+ if (node.type === "ExportAllDeclaration") {
+ for (const key of Object.keys(nextTraceMap)) {
+ const exportTraceMap = nextTraceMap[key];
+ if (exportTraceMap[READ]) {
+ yield {
+ node,
+ path: path.concat(key),
+ type: READ,
+ info: exportTraceMap[READ],
+ };
+ }
+ }
+ } else {
+ for (const specifier of node.specifiers) {
+ const esm = has(nextTraceMap, ESM);
+ const it = this._iterateImportReferences(
+ specifier,
+ path,
+ esm
+ ? nextTraceMap
+ : this.mode === "legacy"
+ ? { default: nextTraceMap, ...nextTraceMap }
+ : { default: nextTraceMap },
+ );
+
+ if (esm) {
+ yield* it;
+ } else {
+ for (const report of it) {
+ report.path = report.path.filter(exceptDefault);
+ if (
+ report.path.length >= 2 ||
+ report.type !== READ
+ ) {
+ yield report;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Iterate the references for a given variable.
+ * @param {Variable} variable The variable to iterate that references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @param {boolean} shouldReport = The flag to report those references.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateVariableReferences(variable, path, traceMap, shouldReport) {
+ if (this.variableStack.includes(variable)) {
+ return
+ }
+ this.variableStack.push(variable);
+ try {
+ for (const reference of variable.references) {
+ if (!reference.isRead()) {
+ continue
+ }
+ const node = reference.identifier;
+
+ if (shouldReport && traceMap[READ]) {
+ yield { node, path, type: READ, info: traceMap[READ] };
+ }
+ yield* this._iteratePropertyReferences(node, path, traceMap);
+ }
+ } finally {
+ this.variableStack.pop();
+ }
+ }
+
+ /**
+ * Iterate the references for a given AST node.
+ * @param rootNode The AST node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ //eslint-disable-next-line complexity
+ *_iteratePropertyReferences(rootNode, path, traceMap) {
+ let node = rootNode;
+ while (isPassThrough(node)) {
+ node = node.parent;
+ }
+
+ const parent = node.parent;
+ if (parent.type === "MemberExpression") {
+ if (parent.object === node) {
+ const key = getPropertyName(parent);
+ if (key == null || !has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: parent,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iteratePropertyReferences(
+ parent,
+ path,
+ nextTraceMap,
+ );
+ }
+ return
+ }
+ if (parent.type === "CallExpression") {
+ if (parent.callee === node && traceMap[CALL]) {
+ yield { node: parent, path, type: CALL, info: traceMap[CALL] };
+ }
+ return
+ }
+ if (parent.type === "NewExpression") {
+ if (parent.callee === node && traceMap[CONSTRUCT]) {
+ yield {
+ node: parent,
+ path,
+ type: CONSTRUCT,
+ info: traceMap[CONSTRUCT],
+ };
+ }
+ return
+ }
+ if (parent.type === "AssignmentExpression") {
+ if (parent.right === node) {
+ yield* this._iterateLhsReferences(parent.left, path, traceMap);
+ yield* this._iteratePropertyReferences(parent, path, traceMap);
+ }
+ return
+ }
+ if (parent.type === "AssignmentPattern") {
+ if (parent.right === node) {
+ yield* this._iterateLhsReferences(parent.left, path, traceMap);
+ }
+ return
+ }
+ if (parent.type === "VariableDeclarator") {
+ if (parent.init === node) {
+ yield* this._iterateLhsReferences(parent.id, path, traceMap);
+ }
+ }
+ }
+
+ /**
+ * Iterate the references for a given Pattern node.
+ * @param {Node} patternNode The Pattern node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateLhsReferences(patternNode, path, traceMap) {
+ if (patternNode.type === "Identifier") {
+ const variable = findVariable(this.globalScope, patternNode);
+ if (variable != null) {
+ yield* this._iterateVariableReferences(
+ variable,
+ path,
+ traceMap,
+ false,
+ );
+ }
+ return
+ }
+ if (patternNode.type === "ObjectPattern") {
+ for (const property of patternNode.properties) {
+ const key = getPropertyName(property);
+
+ if (key == null || !has(traceMap, key)) {
+ continue
+ }
+
+ const nextPath = path.concat(key);
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: property,
+ path: nextPath,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iterateLhsReferences(
+ property.value,
+ nextPath,
+ nextTraceMap,
+ );
+ }
+ return
+ }
+ if (patternNode.type === "AssignmentPattern") {
+ yield* this._iterateLhsReferences(patternNode.left, path, traceMap);
+ }
+ }
+
+ /**
+ * Iterate the references for a given ModuleSpecifier node.
+ * @param {Node} specifierNode The ModuleSpecifier node to iterate references.
+ * @param {string[]} path The current path.
+ * @param {object} traceMap The trace map.
+ * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
+ */
+ *_iterateImportReferences(specifierNode, path, traceMap) {
+ const type = specifierNode.type;
+
+ if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") {
+ const key =
+ type === "ImportDefaultSpecifier"
+ ? "default"
+ : specifierNode.imported.name;
+ if (!has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: specifierNode,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ yield* this._iterateVariableReferences(
+ findVariable(this.globalScope, specifierNode.local),
+ path,
+ nextTraceMap,
+ false,
+ );
+
+ return
+ }
+
+ if (type === "ImportNamespaceSpecifier") {
+ yield* this._iterateVariableReferences(
+ findVariable(this.globalScope, specifierNode.local),
+ path,
+ traceMap,
+ false,
+ );
+ return
+ }
+
+ if (type === "ExportSpecifier") {
+ const key = specifierNode.local.name;
+ if (!has(traceMap, key)) {
+ return
+ }
+
+ path = path.concat(key); //eslint-disable-line no-param-reassign
+ const nextTraceMap = traceMap[key];
+ if (nextTraceMap[READ]) {
+ yield {
+ node: specifierNode,
+ path,
+ type: READ,
+ info: nextTraceMap[READ],
+ };
+ }
+ }
+ }
+}
+
+ReferenceTracker.READ = READ;
+ReferenceTracker.CALL = CALL;
+ReferenceTracker.CONSTRUCT = CONSTRUCT;
+ReferenceTracker.ESM = ESM;
+
+/**
+ * This is a predicate function for Array#filter.
+ * @param {string} name A name part.
+ * @param {number} index The index of the name.
+ * @returns {boolean} `false` if it's default.
+ */
+function exceptDefault(name, index) {
+ return !(index === 1 && name === "default")
+}
+
+var index = {
+ CALL,
+ CONSTRUCT,
+ ESM,
+ findVariable,
+ getFunctionHeadLocation,
+ getFunctionNameWithKind,
+ getInnermostScope,
+ getPropertyName,
+ getStaticValue,
+ getStringIfConstant,
+ hasSideEffect,
+ isArrowToken,
+ isClosingBraceToken,
+ isClosingBracketToken,
+ isClosingParenToken,
+ isColonToken,
+ isCommaToken,
+ isCommentToken,
+ isNotArrowToken,
+ isNotClosingBraceToken,
+ isNotClosingBracketToken,
+ isNotClosingParenToken,
+ isNotColonToken,
+ isNotCommaToken,
+ isNotCommentToken,
+ isNotOpeningBraceToken,
+ isNotOpeningBracketToken,
+ isNotOpeningParenToken,
+ isNotSemicolonToken,
+ isOpeningBraceToken,
+ isOpeningBracketToken,
+ isOpeningParenToken,
+ isParenthesized,
+ isSemicolonToken,
+ PatternMatcher,
+ READ,
+ ReferenceTracker,
+};
+
+export { CALL, CONSTRUCT, ESM, PatternMatcher, READ, ReferenceTracker, index as default, findVariable, getFunctionHeadLocation, getFunctionNameWithKind, getInnermostScope, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isParenthesized, isSemicolonToken };
+//# sourceMappingURL=index.mjs.map
diff --git a/node_modules/@eslint-community/eslint-utils/index.mjs.map b/node_modules/@eslint-community/eslint-utils/index.mjs.map
new file mode 100644
index 00000000000..8b9cf9a0c00
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/index.mjs.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.mjs","sources":["src/get-innermost-scope.mjs","src/find-variable.mjs","src/token-predicate.mjs","src/get-function-head-location.mjs","src/get-static-value.mjs","src/get-string-if-constant.mjs","src/get-property-name.mjs","src/get-function-name-with-kind.mjs","src/has-side-effect.mjs","src/is-parenthesized.mjs","src/pattern-matcher.mjs","src/reference-tracker.mjs","src/index.mjs"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope.mjs\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return (token) => !f(token)\n}\n\n/**\n * Checks if the given token is a PunctuatorToken with the given value\n * @param {Token} token - The token to check.\n * @param {string} value - The value to check.\n * @returns {boolean} `true` if the token is a PunctuatorToken with the given value.\n */\nfunction isPunctuatorTokenWithValue(token, value) {\n return token.type === \"Punctuator\" && token.value === value\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return isPunctuatorTokenWithValue(token, \"=>\")\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return isPunctuatorTokenWithValue(token, \",\")\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return isPunctuatorTokenWithValue(token, \";\")\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return isPunctuatorTokenWithValue(token, \":\")\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return isPunctuatorTokenWithValue(token, \"(\")\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return isPunctuatorTokenWithValue(token, \")\")\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"[\")\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return isPunctuatorTokenWithValue(token, \"]\")\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"{\")\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return isPunctuatorTokenWithValue(token, \"}\")\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return [\"Block\", \"Line\", \"Shebang\"].includes(token.type)\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\" ||\n parent.type === \"PropertyDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: { ...start },\n end: { ...end },\n }\n}\n","/* globals globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable.mjs\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ]),\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n Array.of,\n Array.prototype.at,\n Array.prototype.concat,\n Array.prototype.entries,\n Array.prototype.every,\n Array.prototype.filter,\n Array.prototype.find,\n Array.prototype.findIndex,\n Array.prototype.flat,\n Array.prototype.includes,\n Array.prototype.indexOf,\n Array.prototype.join,\n Array.prototype.keys,\n Array.prototype.lastIndexOf,\n Array.prototype.slice,\n Array.prototype.some,\n Array.prototype.toString,\n Array.prototype.values,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n Map,\n Map.prototype.entries,\n Map.prototype.get,\n Map.prototype.has,\n Map.prototype.keys,\n Map.prototype.values,\n ...Object.getOwnPropertyNames(Math)\n .filter((k) => k !== \"random\")\n .map((k) => Math[k])\n .filter((f) => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Number.prototype.toExponential,\n Number.prototype.toFixed,\n Number.prototype.toPrecision,\n Number.prototype.toString,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n Set,\n Set.prototype.entries,\n Set.prototype.has,\n Set.prototype.keys,\n Set.prototype.values,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n String.prototype.at,\n String.prototype.charAt,\n String.prototype.charCodeAt,\n String.prototype.codePointAt,\n String.prototype.concat,\n String.prototype.endsWith,\n String.prototype.includes,\n String.prototype.indexOf,\n String.prototype.lastIndexOf,\n String.prototype.normalize,\n String.prototype.padEnd,\n String.prototype.padStart,\n String.prototype.slice,\n String.prototype.startsWith,\n String.prototype.substr,\n String.prototype.substring,\n String.prototype.toLowerCase,\n String.prototype.toString,\n String.prototype.toUpperCase,\n String.prototype.trim,\n String.prototype.trimEnd,\n String.prototype.trimLeft,\n String.prototype.trimRight,\n String.prototype.trimStart,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter((f) => typeof f === \"function\"),\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/** @type {ReadonlyArray]>} */\nconst getterAllowed = [\n [Map, new Set([\"size\"])],\n [\n RegExp,\n new Set([\n \"dotAll\",\n \"flags\",\n \"global\",\n \"hasIndices\",\n \"ignoreCase\",\n \"multiline\",\n \"source\",\n \"sticky\",\n \"unicode\",\n ]),\n ],\n [Set, new Set([\"size\"])],\n]\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\n/**\n * Returns whether the given variable is never written to after initialization.\n * @param {import(\"eslint\").Scope.Variable} variable\n * @returns {boolean}\n */\nfunction isEffectivelyConst(variable) {\n const refs = variable.references\n\n const inits = refs.filter((r) => r.init).length\n const reads = refs.filter((r) => r.isReadOnly()).length\n if (inits === 1 && reads + inits === refs.length) {\n // there is only one init and all other references only read\n return true\n }\n return false\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: left.value ** right.value }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n if (calleeNode.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(calleeNode.object, initialScope)\n if (object != null) {\n if (\n object.value == null &&\n (object.optional || node.optional)\n ) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(\n calleeNode,\n initialScope,\n )\n\n if (property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n if (callee.value == null && node.optional) {\n return { value: undefined, optional: true }\n }\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.type === \"Variable\" &&\n (def.parent.kind === \"const\" ||\n isEffectivelyConst(variable)) &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false) ||\n (node.operator === \"??\" && left.value != null)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n const object = getStaticValueR(node.object, initialScope)\n if (object != null) {\n if (object.value == null && (object.optional || node.optional)) {\n return { value: undefined, optional: true }\n }\n const property = getStaticPropertyNameValue(node, initialScope)\n\n if (property != null) {\n if (!isGetter(object.value, property.value)) {\n return { value: object.value[property.value] }\n }\n\n for (const [classFn, allowed] of getterAllowed) {\n if (\n object.value instanceof classFn &&\n allowed.has(property.value)\n ) {\n return { value: object.value[property.value] }\n }\n }\n }\n }\n return null\n },\n\n ChainExpression(node, initialScope) {\n const expression = getStaticValueR(node.expression, initialScope)\n if (expression != null) {\n return { value: expression.value }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = getStaticPropertyNameValue(\n propertyNode,\n initialScope,\n )\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope,\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope,\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map((q) => q.value.cooked)\n strings.raw = node.quasi.quasis.map((q) => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the static value of property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the property name of the node, or `null`.\n */\nfunction getStaticPropertyNameValue(node, initialScope) {\n const nameNode = node.type === \"Property\" ? node.key : node.property\n\n if (node.computed) {\n return getStaticValueR(nameNode, initialScope)\n }\n\n if (nameNode.type === \"Identifier\") {\n return { value: nameNode.name }\n }\n\n if (nameNode.type === \"Literal\") {\n if (nameNode.bigint) {\n return { value: nameNode.bigint }\n }\n return { value: String(nameNode.value) }\n }\n\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|{value:undefined,optional?:true}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value.mjs\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n if (node.property.type === \"PrivateIdentifier\") {\n return null\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n case \"PropertyDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n if (node.key.type === \"PrivateIdentifier\") {\n return null\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name.mjs\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @param {SourceCode} [sourceCode] The source code object to get the code of computed property keys.\n * @returns {string} The name and kind of the function node.\n */\n// eslint-disable-next-line complexity\nexport function getFunctionNameWithKind(node, sourceCode) {\n const parent = node.parent\n const tokens = []\n const isObjectMethod = parent.type === \"Property\" && parent.value === node\n const isClassMethod =\n parent.type === \"MethodDefinition\" && parent.value === node\n const isClassFieldMethod =\n parent.type === \"PropertyDefinition\" && parent.value === node\n\n // Modifiers.\n if (isClassMethod || isClassFieldMethod) {\n if (parent.static) {\n tokens.push(\"static\")\n }\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(\"private\")\n }\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n // Kinds.\n if (isObjectMethod || isClassMethod) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else if (isClassFieldMethod) {\n tokens.push(\"method\")\n } else {\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\")\n }\n tokens.push(\"function\")\n }\n\n // Names.\n if (isObjectMethod || isClassMethod || isClassFieldMethod) {\n if (parent.key.type === \"PrivateIdentifier\") {\n tokens.push(`#${parent.key.name}`)\n } else {\n const name = getPropertyName(parent)\n if (name) {\n tokens.push(`'${name}'`)\n } else if (sourceCode) {\n const keyText = sourceCode.getText(parent.key)\n if (!keyText.includes(\"\\n\")) {\n tokens.push(`[${keyText}]`)\n }\n }\n }\n } else if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else if (\n parent.type === \"VariableDeclarator\" &&\n parent.id &&\n parent.id.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.id.name}'`)\n } else if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left &&\n parent.left.type === \"Identifier\"\n ) {\n tokens.push(`'${parent.left.name}'`)\n } else if (\n parent.type === \"ExportDefaultDeclaration\" &&\n parent.declaration === node\n ) {\n tokens.push(\"'default'\")\n }\n\n return tokens.join(\" \")\n}\n","import { getKeys, KEYS } from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ]),\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\n\n/**\n * Check whether the given value is an ASTNode or not.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is an ASTNode.\n */\nfunction isNode(x) {\n return x !== null && typeof x === \"object\" && typeof x.type === \"string\"\n}\n\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n isNode(element) &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (\n isNode(value) &&\n this.$visit(value, options, visitorKeys)\n ) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n PropertyDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n }),\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {},\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || KEYS,\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate.mjs\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken,\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode,\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (\n node == null ||\n // `Program` can't be parenthesized\n node.parent == null ||\n // `CatchClause.param` can't be parenthesized, example `try {} catch (error) {}`\n (node.parent.type === \"CatchClause\" && node.parent.param === node)\n ) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima \n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some((r) => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n case \"ChainExpression\":\n return true\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"globalThis\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"globalThis\", \"self\", \"window\"],\n } = {},\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true,\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? { default: nextTraceMap, ...nextTraceMap }\n : { default: nextTraceMap },\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap,\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false,\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap,\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false,\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false,\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable.mjs\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location.mjs\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind.mjs\"\nimport { getInnermostScope } from \"./get-innermost-scope.mjs\"\nimport { getPropertyName } from \"./get-property-name.mjs\"\nimport { getStaticValue } from \"./get-static-value.mjs\"\nimport { getStringIfConstant } from \"./get-string-if-constant.mjs\"\nimport { hasSideEffect } from \"./has-side-effect.mjs\"\nimport { isParenthesized } from \"./is-parenthesized.mjs\"\nimport { PatternMatcher } from \"./pattern-matcher.mjs\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker.mjs\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate.mjs\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;AACtD,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;AAClC;AACA,IAAI,IAAI,KAAK,GAAG,aAAY;AAC5B,IAAI,IAAI,KAAK,GAAG,MAAK;AACrB,IAAI,GAAG;AACP,QAAQ,KAAK,GAAG,MAAK;AACrB,QAAQ,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE;AACpD,YAAY,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,MAAK;AAChD;AACA,YAAY,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE;AAC7D,gBAAgB,KAAK,GAAG,WAAU;AAClC,gBAAgB,KAAK,GAAG,KAAI;AAC5B,gBAAgB,KAAK;AACrB,aAAa;AACb,SAAS;AACT,KAAK,QAAQ,KAAK,CAAC;AACnB;AACA,IAAI,OAAO,KAAK;AAChB;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,YAAY,EAAE,UAAU,EAAE;AACvD,IAAI,IAAI,IAAI,GAAG,GAAE;AACjB,IAAI,IAAI,KAAK,GAAG,aAAY;AAC5B;AACA,IAAI,IAAI,OAAO,UAAU,KAAK,QAAQ,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B,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,iBAAiB;AACrB,IAAI,sBAAsB;AAC1B,IAAI,wBAAwB;AAC5B,IAAI,sBAAsB;AAC1B,IAAI,mBAAmB;AACvB,IAAI,mBAAmB;AACvB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,cAAc;AAClB,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB;;;;"}
\ No newline at end of file
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE
new file mode 100644
index 00000000000..17a25538d9b
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright contributors
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md
new file mode 100644
index 00000000000..cab81032030
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/README.md
@@ -0,0 +1,105 @@
+# eslint-visitor-keys
+
+[![npm version](https://img.shields.io/npm/v/eslint-visitor-keys.svg)](https://www.npmjs.com/package/eslint-visitor-keys)
+[![Downloads/month](https://img.shields.io/npm/dm/eslint-visitor-keys.svg)](http://www.npmtrends.com/eslint-visitor-keys)
+[![Build Status](https://github.com/eslint/eslint-visitor-keys/workflows/CI/badge.svg)](https://github.com/eslint/eslint-visitor-keys/actions)
+
+Constants and utilities about visitor keys to traverse AST.
+
+## 💿 Installation
+
+Use [npm] to install.
+
+```bash
+$ npm install eslint-visitor-keys
+```
+
+### Requirements
+
+- [Node.js] `^12.22.0`, `^14.17.0`, or `>=16.0.0`
+
+
+## 📖 Usage
+
+To use in an ESM file:
+
+```js
+import * as evk from "eslint-visitor-keys"
+```
+
+To use in a CommonJS file:
+
+```js
+const evk = require("eslint-visitor-keys")
+```
+
+### evk.KEYS
+
+> type: `{ [type: string]: string[] | undefined }`
+
+Visitor keys. This keys are frozen.
+
+This is an object. Keys are the type of [ESTree] nodes. Their values are an array of property names which have child nodes.
+
+For example:
+
+```
+console.log(evk.KEYS.AssignmentExpression) // → ["left", "right"]
+```
+
+### evk.getKeys(node)
+
+> type: `(node: object) => string[]`
+
+Get the visitor keys of a given AST node.
+
+This is similar to `Object.keys(node)` of ES Standard, but some keys are excluded: `parent`, `leadingComments`, `trailingComments`, and names which start with `_`.
+
+This will be used to traverse unknown nodes.
+
+For example:
+
+```js
+const node = {
+ type: "AssignmentExpression",
+ left: { type: "Identifier", name: "foo" },
+ right: { type: "Literal", value: 0 }
+}
+console.log(evk.getKeys(node)) // → ["type", "left", "right"]
+```
+
+### evk.unionWith(additionalKeys)
+
+> type: `(additionalKeys: object) => { [type: string]: string[] | undefined }`
+
+Make the union set with `evk.KEYS` and the given keys.
+
+- The order of keys is, `additionalKeys` is at first, then `evk.KEYS` is concatenated after that.
+- It removes duplicated keys as keeping the first one.
+
+For example:
+
+```js
+console.log(evk.unionWith({
+ MethodDefinition: ["decorators"]
+})) // → { ..., MethodDefinition: ["decorators", "key", "value"], ... }
+```
+
+## 📰 Change log
+
+See [GitHub releases](https://github.com/eslint/eslint-visitor-keys/releases).
+
+## 🍻 Contributing
+
+Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer-guide/contributing/).
+
+### Development commands
+
+- `npm test` runs tests and measures code coverage.
+- `npm run lint` checks source codes with ESLint.
+- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser.
+
+
+[npm]: https://www.npmjs.com/
+[Node.js]: https://nodejs.org/
+[ESTree]: https://github.com/estree/estree
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
new file mode 100644
index 00000000000..00f91bcc483
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
@@ -0,0 +1,384 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+/**
+ * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
+ */
+
+/**
+ * @type {VisitorKeys}
+ */
+const KEYS = {
+ ArrayExpression: [
+ "elements"
+ ],
+ ArrayPattern: [
+ "elements"
+ ],
+ ArrowFunctionExpression: [
+ "params",
+ "body"
+ ],
+ AssignmentExpression: [
+ "left",
+ "right"
+ ],
+ AssignmentPattern: [
+ "left",
+ "right"
+ ],
+ AwaitExpression: [
+ "argument"
+ ],
+ BinaryExpression: [
+ "left",
+ "right"
+ ],
+ BlockStatement: [
+ "body"
+ ],
+ BreakStatement: [
+ "label"
+ ],
+ CallExpression: [
+ "callee",
+ "arguments"
+ ],
+ CatchClause: [
+ "param",
+ "body"
+ ],
+ ChainExpression: [
+ "expression"
+ ],
+ ClassBody: [
+ "body"
+ ],
+ ClassDeclaration: [
+ "id",
+ "superClass",
+ "body"
+ ],
+ ClassExpression: [
+ "id",
+ "superClass",
+ "body"
+ ],
+ ConditionalExpression: [
+ "test",
+ "consequent",
+ "alternate"
+ ],
+ ContinueStatement: [
+ "label"
+ ],
+ DebuggerStatement: [],
+ DoWhileStatement: [
+ "body",
+ "test"
+ ],
+ EmptyStatement: [],
+ ExperimentalRestProperty: [
+ "argument"
+ ],
+ ExperimentalSpreadProperty: [
+ "argument"
+ ],
+ ExportAllDeclaration: [
+ "exported",
+ "source"
+ ],
+ ExportDefaultDeclaration: [
+ "declaration"
+ ],
+ ExportNamedDeclaration: [
+ "declaration",
+ "specifiers",
+ "source"
+ ],
+ ExportSpecifier: [
+ "exported",
+ "local"
+ ],
+ ExpressionStatement: [
+ "expression"
+ ],
+ ForInStatement: [
+ "left",
+ "right",
+ "body"
+ ],
+ ForOfStatement: [
+ "left",
+ "right",
+ "body"
+ ],
+ ForStatement: [
+ "init",
+ "test",
+ "update",
+ "body"
+ ],
+ FunctionDeclaration: [
+ "id",
+ "params",
+ "body"
+ ],
+ FunctionExpression: [
+ "id",
+ "params",
+ "body"
+ ],
+ Identifier: [],
+ IfStatement: [
+ "test",
+ "consequent",
+ "alternate"
+ ],
+ ImportDeclaration: [
+ "specifiers",
+ "source"
+ ],
+ ImportDefaultSpecifier: [
+ "local"
+ ],
+ ImportExpression: [
+ "source"
+ ],
+ ImportNamespaceSpecifier: [
+ "local"
+ ],
+ ImportSpecifier: [
+ "imported",
+ "local"
+ ],
+ JSXAttribute: [
+ "name",
+ "value"
+ ],
+ JSXClosingElement: [
+ "name"
+ ],
+ JSXClosingFragment: [],
+ JSXElement: [
+ "openingElement",
+ "children",
+ "closingElement"
+ ],
+ JSXEmptyExpression: [],
+ JSXExpressionContainer: [
+ "expression"
+ ],
+ JSXFragment: [
+ "openingFragment",
+ "children",
+ "closingFragment"
+ ],
+ JSXIdentifier: [],
+ JSXMemberExpression: [
+ "object",
+ "property"
+ ],
+ JSXNamespacedName: [
+ "namespace",
+ "name"
+ ],
+ JSXOpeningElement: [
+ "name",
+ "attributes"
+ ],
+ JSXOpeningFragment: [],
+ JSXSpreadAttribute: [
+ "argument"
+ ],
+ JSXSpreadChild: [
+ "expression"
+ ],
+ JSXText: [],
+ LabeledStatement: [
+ "label",
+ "body"
+ ],
+ Literal: [],
+ LogicalExpression: [
+ "left",
+ "right"
+ ],
+ MemberExpression: [
+ "object",
+ "property"
+ ],
+ MetaProperty: [
+ "meta",
+ "property"
+ ],
+ MethodDefinition: [
+ "key",
+ "value"
+ ],
+ NewExpression: [
+ "callee",
+ "arguments"
+ ],
+ ObjectExpression: [
+ "properties"
+ ],
+ ObjectPattern: [
+ "properties"
+ ],
+ PrivateIdentifier: [],
+ Program: [
+ "body"
+ ],
+ Property: [
+ "key",
+ "value"
+ ],
+ PropertyDefinition: [
+ "key",
+ "value"
+ ],
+ RestElement: [
+ "argument"
+ ],
+ ReturnStatement: [
+ "argument"
+ ],
+ SequenceExpression: [
+ "expressions"
+ ],
+ SpreadElement: [
+ "argument"
+ ],
+ StaticBlock: [
+ "body"
+ ],
+ Super: [],
+ SwitchCase: [
+ "test",
+ "consequent"
+ ],
+ SwitchStatement: [
+ "discriminant",
+ "cases"
+ ],
+ TaggedTemplateExpression: [
+ "tag",
+ "quasi"
+ ],
+ TemplateElement: [],
+ TemplateLiteral: [
+ "quasis",
+ "expressions"
+ ],
+ ThisExpression: [],
+ ThrowStatement: [
+ "argument"
+ ],
+ TryStatement: [
+ "block",
+ "handler",
+ "finalizer"
+ ],
+ UnaryExpression: [
+ "argument"
+ ],
+ UpdateExpression: [
+ "argument"
+ ],
+ VariableDeclaration: [
+ "declarations"
+ ],
+ VariableDeclarator: [
+ "id",
+ "init"
+ ],
+ WhileStatement: [
+ "test",
+ "body"
+ ],
+ WithStatement: [
+ "object",
+ "body"
+ ],
+ YieldExpression: [
+ "argument"
+ ]
+};
+
+// Types.
+const NODE_TYPES = Object.keys(KEYS);
+
+// Freeze the keys.
+for (const type of NODE_TYPES) {
+ Object.freeze(KEYS[type]);
+}
+Object.freeze(KEYS);
+
+/**
+ * @author Toru Nagashima
+ * See LICENSE file in root directory for full license.
+ */
+
+/**
+ * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
+ */
+
+// List to ignore keys.
+const KEY_BLACKLIST = new Set([
+ "parent",
+ "leadingComments",
+ "trailingComments"
+]);
+
+/**
+ * Check whether a given key should be used or not.
+ * @param {string} key The key to check.
+ * @returns {boolean} `true` if the key should be used.
+ */
+function filterKey(key) {
+ return !KEY_BLACKLIST.has(key) && key[0] !== "_";
+}
+
+/**
+ * Get visitor keys of a given node.
+ * @param {object} node The AST node to get keys.
+ * @returns {readonly string[]} Visitor keys of the node.
+ */
+function getKeys(node) {
+ return Object.keys(node).filter(filterKey);
+}
+
+// Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
+// eslint-disable-next-line valid-jsdoc
+/**
+ * Make the union set with `KEYS` and given keys.
+ * @param {VisitorKeys} additionalKeys The additional keys.
+ * @returns {VisitorKeys} The union set.
+ */
+function unionWith(additionalKeys) {
+ const retv = /** @type {{
+ [type: string]: ReadonlyArray
+ }} */ (Object.assign({}, KEYS));
+
+ for (const type of Object.keys(additionalKeys)) {
+ if (Object.prototype.hasOwnProperty.call(retv, type)) {
+ const keys = new Set(additionalKeys[type]);
+
+ for (const key of retv[type]) {
+ keys.add(key);
+ }
+
+ retv[type] = Object.freeze(Array.from(keys));
+ } else {
+ retv[type] = Object.freeze(Array.from(additionalKeys[type]));
+ }
+ }
+
+ return Object.freeze(retv);
+}
+
+exports.KEYS = KEYS;
+exports.getKeys = getKeys;
+exports.unionWith = unionWith;
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts
new file mode 100644
index 00000000000..c7c28ed37b8
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts
@@ -0,0 +1,27 @@
+type VisitorKeys$1 = {
+ readonly [type: string]: readonly string[];
+};
+/**
+ * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
+ */
+/**
+ * @type {VisitorKeys}
+ */
+declare const KEYS: VisitorKeys$1;
+
+/**
+ * Get visitor keys of a given node.
+ * @param {object} node The AST node to get keys.
+ * @returns {readonly string[]} Visitor keys of the node.
+ */
+declare function getKeys(node: object): readonly string[];
+/**
+ * Make the union set with `KEYS` and given keys.
+ * @param {VisitorKeys} additionalKeys The additional keys.
+ * @returns {VisitorKeys} The union set.
+ */
+declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
+
+type VisitorKeys = VisitorKeys$1;
+
+export { KEYS, VisitorKeys, getKeys, unionWith };
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts
new file mode 100644
index 00000000000..46bd87e27ae
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/index.d.ts
@@ -0,0 +1,16 @@
+/**
+ * Get visitor keys of a given node.
+ * @param {object} node The AST node to get keys.
+ * @returns {readonly string[]} Visitor keys of the node.
+ */
+export function getKeys(node: object): readonly string[];
+/**
+ * Make the union set with `KEYS` and given keys.
+ * @param {VisitorKeys} additionalKeys The additional keys.
+ * @returns {VisitorKeys} The union set.
+ */
+export function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
+export { KEYS };
+export type VisitorKeys = import('./visitor-keys.js').VisitorKeys;
+import KEYS from "./visitor-keys.js";
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts
new file mode 100644
index 00000000000..57a952c508f
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts
@@ -0,0 +1,12 @@
+export default KEYS;
+export type VisitorKeys = {
+ readonly [type: string]: readonly string[];
+};
+/**
+ * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
+ */
+/**
+ * @type {VisitorKeys}
+ */
+declare const KEYS: VisitorKeys;
+//# sourceMappingURL=visitor-keys.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js
new file mode 100644
index 00000000000..3622816d632
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/index.js
@@ -0,0 +1,65 @@
+/**
+ * @author Toru Nagashima
+ * See LICENSE file in root directory for full license.
+ */
+import KEYS from "./visitor-keys.js";
+
+/**
+ * @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
+ */
+
+// List to ignore keys.
+const KEY_BLACKLIST = new Set([
+ "parent",
+ "leadingComments",
+ "trailingComments"
+]);
+
+/**
+ * Check whether a given key should be used or not.
+ * @param {string} key The key to check.
+ * @returns {boolean} `true` if the key should be used.
+ */
+function filterKey(key) {
+ return !KEY_BLACKLIST.has(key) && key[0] !== "_";
+}
+
+/**
+ * Get visitor keys of a given node.
+ * @param {object} node The AST node to get keys.
+ * @returns {readonly string[]} Visitor keys of the node.
+ */
+export function getKeys(node) {
+ return Object.keys(node).filter(filterKey);
+}
+
+// Disable valid-jsdoc rule because it reports syntax error on the type of @returns.
+// eslint-disable-next-line valid-jsdoc
+/**
+ * Make the union set with `KEYS` and given keys.
+ * @param {VisitorKeys} additionalKeys The additional keys.
+ * @returns {VisitorKeys} The union set.
+ */
+export function unionWith(additionalKeys) {
+ const retv = /** @type {{
+ [type: string]: ReadonlyArray
+ }} */ (Object.assign({}, KEYS));
+
+ for (const type of Object.keys(additionalKeys)) {
+ if (Object.prototype.hasOwnProperty.call(retv, type)) {
+ const keys = new Set(additionalKeys[type]);
+
+ for (const key of retv[type]) {
+ keys.add(key);
+ }
+
+ retv[type] = Object.freeze(Array.from(keys));
+ } else {
+ retv[type] = Object.freeze(Array.from(additionalKeys[type]));
+ }
+ }
+
+ return Object.freeze(retv);
+}
+
+export { KEYS };
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js
new file mode 100644
index 00000000000..ccf2b1f9a3f
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/lib/visitor-keys.js
@@ -0,0 +1,315 @@
+/**
+ * @typedef {{ readonly [type: string]: ReadonlyArray }} VisitorKeys
+ */
+
+/**
+ * @type {VisitorKeys}
+ */
+const KEYS = {
+ ArrayExpression: [
+ "elements"
+ ],
+ ArrayPattern: [
+ "elements"
+ ],
+ ArrowFunctionExpression: [
+ "params",
+ "body"
+ ],
+ AssignmentExpression: [
+ "left",
+ "right"
+ ],
+ AssignmentPattern: [
+ "left",
+ "right"
+ ],
+ AwaitExpression: [
+ "argument"
+ ],
+ BinaryExpression: [
+ "left",
+ "right"
+ ],
+ BlockStatement: [
+ "body"
+ ],
+ BreakStatement: [
+ "label"
+ ],
+ CallExpression: [
+ "callee",
+ "arguments"
+ ],
+ CatchClause: [
+ "param",
+ "body"
+ ],
+ ChainExpression: [
+ "expression"
+ ],
+ ClassBody: [
+ "body"
+ ],
+ ClassDeclaration: [
+ "id",
+ "superClass",
+ "body"
+ ],
+ ClassExpression: [
+ "id",
+ "superClass",
+ "body"
+ ],
+ ConditionalExpression: [
+ "test",
+ "consequent",
+ "alternate"
+ ],
+ ContinueStatement: [
+ "label"
+ ],
+ DebuggerStatement: [],
+ DoWhileStatement: [
+ "body",
+ "test"
+ ],
+ EmptyStatement: [],
+ ExperimentalRestProperty: [
+ "argument"
+ ],
+ ExperimentalSpreadProperty: [
+ "argument"
+ ],
+ ExportAllDeclaration: [
+ "exported",
+ "source"
+ ],
+ ExportDefaultDeclaration: [
+ "declaration"
+ ],
+ ExportNamedDeclaration: [
+ "declaration",
+ "specifiers",
+ "source"
+ ],
+ ExportSpecifier: [
+ "exported",
+ "local"
+ ],
+ ExpressionStatement: [
+ "expression"
+ ],
+ ForInStatement: [
+ "left",
+ "right",
+ "body"
+ ],
+ ForOfStatement: [
+ "left",
+ "right",
+ "body"
+ ],
+ ForStatement: [
+ "init",
+ "test",
+ "update",
+ "body"
+ ],
+ FunctionDeclaration: [
+ "id",
+ "params",
+ "body"
+ ],
+ FunctionExpression: [
+ "id",
+ "params",
+ "body"
+ ],
+ Identifier: [],
+ IfStatement: [
+ "test",
+ "consequent",
+ "alternate"
+ ],
+ ImportDeclaration: [
+ "specifiers",
+ "source"
+ ],
+ ImportDefaultSpecifier: [
+ "local"
+ ],
+ ImportExpression: [
+ "source"
+ ],
+ ImportNamespaceSpecifier: [
+ "local"
+ ],
+ ImportSpecifier: [
+ "imported",
+ "local"
+ ],
+ JSXAttribute: [
+ "name",
+ "value"
+ ],
+ JSXClosingElement: [
+ "name"
+ ],
+ JSXClosingFragment: [],
+ JSXElement: [
+ "openingElement",
+ "children",
+ "closingElement"
+ ],
+ JSXEmptyExpression: [],
+ JSXExpressionContainer: [
+ "expression"
+ ],
+ JSXFragment: [
+ "openingFragment",
+ "children",
+ "closingFragment"
+ ],
+ JSXIdentifier: [],
+ JSXMemberExpression: [
+ "object",
+ "property"
+ ],
+ JSXNamespacedName: [
+ "namespace",
+ "name"
+ ],
+ JSXOpeningElement: [
+ "name",
+ "attributes"
+ ],
+ JSXOpeningFragment: [],
+ JSXSpreadAttribute: [
+ "argument"
+ ],
+ JSXSpreadChild: [
+ "expression"
+ ],
+ JSXText: [],
+ LabeledStatement: [
+ "label",
+ "body"
+ ],
+ Literal: [],
+ LogicalExpression: [
+ "left",
+ "right"
+ ],
+ MemberExpression: [
+ "object",
+ "property"
+ ],
+ MetaProperty: [
+ "meta",
+ "property"
+ ],
+ MethodDefinition: [
+ "key",
+ "value"
+ ],
+ NewExpression: [
+ "callee",
+ "arguments"
+ ],
+ ObjectExpression: [
+ "properties"
+ ],
+ ObjectPattern: [
+ "properties"
+ ],
+ PrivateIdentifier: [],
+ Program: [
+ "body"
+ ],
+ Property: [
+ "key",
+ "value"
+ ],
+ PropertyDefinition: [
+ "key",
+ "value"
+ ],
+ RestElement: [
+ "argument"
+ ],
+ ReturnStatement: [
+ "argument"
+ ],
+ SequenceExpression: [
+ "expressions"
+ ],
+ SpreadElement: [
+ "argument"
+ ],
+ StaticBlock: [
+ "body"
+ ],
+ Super: [],
+ SwitchCase: [
+ "test",
+ "consequent"
+ ],
+ SwitchStatement: [
+ "discriminant",
+ "cases"
+ ],
+ TaggedTemplateExpression: [
+ "tag",
+ "quasi"
+ ],
+ TemplateElement: [],
+ TemplateLiteral: [
+ "quasis",
+ "expressions"
+ ],
+ ThisExpression: [],
+ ThrowStatement: [
+ "argument"
+ ],
+ TryStatement: [
+ "block",
+ "handler",
+ "finalizer"
+ ],
+ UnaryExpression: [
+ "argument"
+ ],
+ UpdateExpression: [
+ "argument"
+ ],
+ VariableDeclaration: [
+ "declarations"
+ ],
+ VariableDeclarator: [
+ "id",
+ "init"
+ ],
+ WhileStatement: [
+ "test",
+ "body"
+ ],
+ WithStatement: [
+ "object",
+ "body"
+ ],
+ YieldExpression: [
+ "argument"
+ ]
+};
+
+// Types.
+const NODE_TYPES = Object.keys(KEYS);
+
+// Freeze the keys.
+for (const type of NODE_TYPES) {
+ Object.freeze(KEYS[type]);
+}
+Object.freeze(KEYS);
+
+export default KEYS;
diff --git a/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json
new file mode 100644
index 00000000000..b9d51ce0e68
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys/package.json
@@ -0,0 +1,74 @@
+{
+ "name": "eslint-visitor-keys",
+ "version": "3.4.3",
+ "description": "Constants and utilities about visitor keys to traverse AST.",
+ "type": "module",
+ "main": "dist/eslint-visitor-keys.cjs",
+ "types": "./dist/index.d.ts",
+ "exports": {
+ ".": [
+ {
+ "import": "./lib/index.js",
+ "require": "./dist/eslint-visitor-keys.cjs"
+ },
+ "./dist/eslint-visitor-keys.cjs"
+ ],
+ "./package.json": "./package.json"
+ },
+ "files": [
+ "dist/index.d.ts",
+ "dist/visitor-keys.d.ts",
+ "dist/eslint-visitor-keys.cjs",
+ "dist/eslint-visitor-keys.d.cts",
+ "lib"
+ ],
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "devDependencies": {
+ "@types/estree": "^0.0.51",
+ "@types/estree-jsx": "^0.0.1",
+ "@typescript-eslint/parser": "^5.14.0",
+ "c8": "^7.11.0",
+ "chai": "^4.3.6",
+ "eslint": "^7.29.0",
+ "eslint-config-eslint": "^7.0.0",
+ "eslint-plugin-jsdoc": "^35.4.0",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-release": "^3.2.0",
+ "esquery": "^1.4.0",
+ "json-diff": "^0.7.3",
+ "mocha": "^9.2.1",
+ "opener": "^1.5.2",
+ "rollup": "^2.70.0",
+ "rollup-plugin-dts": "^4.2.3",
+ "tsd": "^0.19.1",
+ "typescript": "^4.6.2"
+ },
+ "scripts": {
+ "build": "npm run build:cjs && npm run build:types",
+ "build:cjs": "rollup -c",
+ "build:debug": "npm run build:cjs -- -m && npm run build:types",
+ "build:keys": "node tools/build-keys-from-ts",
+ "build:types": "tsc",
+ "lint": "eslint .",
+ "prepare": "npm run build",
+ "release:generate:latest": "eslint-generate-release",
+ "release:generate:alpha": "eslint-generate-prerelease alpha",
+ "release:generate:beta": "eslint-generate-prerelease beta",
+ "release:generate:rc": "eslint-generate-prerelease rc",
+ "release:publish": "eslint-publish-release",
+ "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types",
+ "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html",
+ "test:types": "tsd"
+ },
+ "repository": "eslint/eslint-visitor-keys",
+ "funding": "https://opencollective.com/eslint",
+ "keywords": [],
+ "author": "Toru Nagashima (https://github.com/mysticatea)",
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/eslint/eslint-visitor-keys/issues"
+ },
+ "homepage": "https://github.com/eslint/eslint-visitor-keys#readme"
+}
diff --git a/node_modules/@eslint-community/eslint-utils/package.json b/node_modules/@eslint-community/eslint-utils/package.json
new file mode 100644
index 00000000000..1addaa9a981
--- /dev/null
+++ b/node_modules/@eslint-community/eslint-utils/package.json
@@ -0,0 +1,80 @@
+{
+ "name": "@eslint-community/eslint-utils",
+ "version": "4.4.1",
+ "description": "Utilities for ESLint plugins.",
+ "keywords": [
+ "eslint"
+ ],
+ "homepage": "https://github.com/eslint-community/eslint-utils#readme",
+ "bugs": {
+ "url": "https://github.com/eslint-community/eslint-utils/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/eslint-community/eslint-utils"
+ },
+ "license": "MIT",
+ "author": "Toru Nagashima",
+ "sideEffects": false,
+ "exports": {
+ ".": {
+ "import": "./index.mjs",
+ "require": "./index.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "main": "index",
+ "module": "index.mjs",
+ "files": [
+ "index.*"
+ ],
+ "scripts": {
+ "prebuild": "npm run -s clean",
+ "build": "rollup -c",
+ "clean": "rimraf .nyc_output coverage index.*",
+ "coverage": "opener ./coverage/lcov-report/index.html",
+ "docs:build": "vitepress build docs",
+ "docs:watch": "vitepress dev docs",
+ "format": "npm run -s format:prettier -- --write",
+ "format:prettier": "prettier .",
+ "format:check": "npm run -s format:prettier -- --check",
+ "lint:eslint": "eslint .",
+ "lint:format": "npm run -s format:check",
+ "lint:installed-check": "installed-check -v -i installed-check -i npm-run-all2 -i knip",
+ "lint:knip": "knip",
+ "lint": "run-p lint:*",
+ "test": "c8 mocha --reporter dot \"test/*.mjs\"",
+ "preversion": "npm test && npm run -s build",
+ "postversion": "git push && git push --tags",
+ "prewatch": "npm run -s clean",
+ "watch": "warun \"{src,test}/**/*.mjs\" -- npm run -s test:mocha"
+ },
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "devDependencies": {
+ "@eslint-community/eslint-plugin-mysticatea": "^15.6.1",
+ "c8": "^8.0.1",
+ "dot-prop": "^7.2.0",
+ "eslint": "^8.57.1",
+ "installed-check": "^8.0.1",
+ "knip": "^5.33.3",
+ "mocha": "^9.2.2",
+ "npm-run-all2": "^6.2.3",
+ "opener": "^1.5.2",
+ "prettier": "2.8.8",
+ "rimraf": "^3.0.2",
+ "rollup": "^2.79.2",
+ "rollup-plugin-sourcemaps": "^0.6.3",
+ "semver": "^7.6.3",
+ "vitepress": "^1.4.1",
+ "warun": "^1.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": "https://opencollective.com/eslint"
+}
diff --git a/node_modules/@eslint-community/regexpp/LICENSE b/node_modules/@eslint-community/regexpp/LICENSE
new file mode 100644
index 00000000000..883ee1f612d
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Toru Nagashima
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/@eslint-community/regexpp/README.md b/node_modules/@eslint-community/regexpp/README.md
new file mode 100644
index 00000000000..9728af519c6
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/README.md
@@ -0,0 +1,177 @@
+# @eslint-community/regexpp
+
+[![npm version](https://img.shields.io/npm/v/@eslint-community/regexpp.svg)](https://www.npmjs.com/package/@eslint-community/regexpp)
+[![Downloads/month](https://img.shields.io/npm/dm/@eslint-community/regexpp.svg)](http://www.npmtrends.com/@eslint-community/regexpp)
+[![Build Status](https://github.com/eslint-community/regexpp/workflows/CI/badge.svg)](https://github.com/eslint-community/regexpp/actions)
+[![codecov](https://codecov.io/gh/eslint-community/regexpp/branch/main/graph/badge.svg)](https://codecov.io/gh/eslint-community/regexpp)
+
+A regular expression parser for ECMAScript.
+
+## 💿 Installation
+
+```bash
+$ npm install @eslint-community/regexpp
+```
+
+- require Node@^12.0.0 || ^14.0.0 || >=16.0.0.
+
+## 📖 Usage
+
+```ts
+import {
+ AST,
+ RegExpParser,
+ RegExpValidator,
+ RegExpVisitor,
+ parseRegExpLiteral,
+ validateRegExpLiteral,
+ visitRegExpAST
+} from "@eslint-community/regexpp"
+```
+
+### parseRegExpLiteral(source, options?)
+
+Parse a given regular expression literal then make AST object.
+
+This is equivalent to `new RegExpParser(options).parseLiteral(source)`.
+
+- **Parameters:**
+ - `source` (`string | RegExp`) The source code to parse.
+ - `options?` ([`RegExpParser.Options`]) The options to parse.
+- **Return:**
+ - The AST of the regular expression.
+
+### validateRegExpLiteral(source, options?)
+
+Validate a given regular expression literal.
+
+This is equivalent to `new RegExpValidator(options).validateLiteral(source)`.
+
+- **Parameters:**
+ - `source` (`string`) The source code to validate.
+ - `options?` ([`RegExpValidator.Options`]) The options to validate.
+
+### visitRegExpAST(ast, handlers)
+
+Visit each node of a given AST.
+
+This is equivalent to `new RegExpVisitor(handlers).visit(ast)`.
+
+- **Parameters:**
+ - `ast` ([`AST.Node`]) The AST to visit.
+ - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
+
+### RegExpParser
+
+#### new RegExpParser(options?)
+
+- **Parameters:**
+ - `options?` ([`RegExpParser.Options`]) The options to parse.
+
+#### parser.parseLiteral(source, start?, end?)
+
+Parse a regular expression literal.
+
+- **Parameters:**
+ - `source` (`string`) The source code to parse. E.g. `"/abc/g"`.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+- **Return:**
+ - The AST of the regular expression.
+
+#### parser.parsePattern(source, start?, end?, flags?)
+
+Parse a regular expression pattern.
+
+- **Parameters:**
+ - `source` (`string`) The source code to parse. E.g. `"abc"`.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+ - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
+- **Return:**
+ - The AST of the regular expression pattern.
+
+#### parser.parseFlags(source, start?, end?)
+
+Parse a regular expression flags.
+
+- **Parameters:**
+ - `source` (`string`) The source code to parse. E.g. `"gim"`.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+- **Return:**
+ - The AST of the regular expression flags.
+
+### RegExpValidator
+
+#### new RegExpValidator(options)
+
+- **Parameters:**
+ - `options` ([`RegExpValidator.Options`]) The options to validate.
+
+#### validator.validateLiteral(source, start, end)
+
+Validate a regular expression literal.
+
+- **Parameters:**
+ - `source` (`string`) The source code to validate.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+
+#### validator.validatePattern(source, start, end, flags)
+
+Validate a regular expression pattern.
+
+- **Parameters:**
+ - `source` (`string`) The source code to validate.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+ - `flags?` (`{ unicode?: boolean, unicodeSets?: boolean }`) The flags to enable Unicode mode, and Unicode Set mode.
+
+#### validator.validateFlags(source, start, end)
+
+Validate a regular expression flags.
+
+- **Parameters:**
+ - `source` (`string`) The source code to validate.
+ - `start?` (`number`) The start index in the source code. Default is `0`.
+ - `end?` (`number`) The end index in the source code. Default is `source.length`.
+
+### RegExpVisitor
+
+#### new RegExpVisitor(handlers)
+
+- **Parameters:**
+ - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.
+
+#### visitor.visit(ast)
+
+Validate a regular expression literal.
+
+- **Parameters:**
+ - `ast` ([`AST.Node`]) The AST to visit.
+
+## 📰 Changelog
+
+- [GitHub Releases](https://github.com/eslint-community/regexpp/releases)
+
+## 🍻 Contributing
+
+Welcome contributing!
+
+Please use GitHub's Issues/PRs.
+
+### Development Tools
+
+- `npm test` runs tests and measures coverage.
+- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.
+- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.
+- `npm run lint` runs ESLint.
+- `npm run update:test` updates test fixtures.
+- `npm run update:ids` updates `src/unicode/ids.ts`.
+- `npm run watch` runs tests with `--watch` option.
+
+[`AST.Node`]: src/ast.ts#L4
+[`RegExpParser.Options`]: src/parser.ts#L743
+[`RegExpValidator.Options`]: src/validator.ts#L220
+[`RegExpVisitor.Handlers`]: src/visitor.ts#L291
diff --git a/node_modules/@eslint-community/regexpp/index.d.ts b/node_modules/@eslint-community/regexpp/index.d.ts
new file mode 100644
index 00000000000..c75657aadab
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/index.d.ts
@@ -0,0 +1,1163 @@
+// Generated by dts-bundle v0.7.3
+
+declare module "@eslint-community/regexpp" {
+ import * as AST from "@eslint-community/regexpp/ast";
+ import { RegExpParser } from "@eslint-community/regexpp/parser";
+ import { RegExpValidator } from "@eslint-community/regexpp/validator";
+ import { RegExpVisitor } from "@eslint-community/regexpp/visitor";
+ export { RegExpSyntaxError } from "@eslint-community/regexpp/regexp-syntax-error";
+ export { AST, RegExpParser, RegExpValidator };
+ /**
+ * Parse a given regular expression literal then make AST object.
+ * @param source The source code to parse.
+ * @param options The options to parse.
+ * @returns The AST of the regular expression.
+ */
+ export function parseRegExpLiteral(
+ source: RegExp | string,
+ options?: RegExpParser.Options
+ ): AST.RegExpLiteral;
+ /**
+ * Validate a given regular expression literal.
+ * @param source The source code to validate.
+ * @param options The options to validate.
+ */
+ export function validateRegExpLiteral(
+ source: string,
+ options?: RegExpValidator.Options
+ ): void;
+ export function visitRegExpAST(
+ node: AST.Node,
+ handlers: RegExpVisitor.Handlers
+ ): void;
+}
+
+declare module "@eslint-community/regexpp/ast" {
+ /**
+ * The type which includes all nodes.
+ */
+ export type Node = BranchNode | LeafNode;
+ /**
+ * The type which includes all branch nodes.
+ */
+ export type BranchNode =
+ | Alternative
+ | CapturingGroup
+ | CharacterClass
+ | CharacterClassRange
+ | ClassIntersection
+ | ClassStringDisjunction
+ | ClassSubtraction
+ | ExpressionCharacterClass
+ | Group
+ | LookaroundAssertion
+ | Modifiers
+ | Pattern
+ | Quantifier
+ | RegExpLiteral
+ | StringAlternative;
+ /**
+ * The type which includes all leaf nodes.
+ */
+ export type LeafNode =
+ | Backreference
+ | BoundaryAssertion
+ | Character
+ | CharacterSet
+ | Flags
+ | ModifierFlags;
+ /**
+ * The type which includes all atom nodes.
+ */
+ export type Element = Assertion | QuantifiableElement | Quantifier;
+ /**
+ * The type which includes all atom nodes that Quantifier node can have as children.
+ */
+ export type QuantifiableElement =
+ | Backreference
+ | CapturingGroup
+ | Character
+ | CharacterClass
+ | CharacterSet
+ | ExpressionCharacterClass
+ | Group
+ | LookaheadAssertion;
+ /**
+ * The type which includes all character class atom nodes.
+ */
+ export type CharacterClassElement =
+ | ClassRangesCharacterClassElement
+ | UnicodeSetsCharacterClassElement;
+ export type ClassRangesCharacterClassElement =
+ | Character
+ | CharacterClassRange
+ | CharacterUnicodePropertyCharacterSet
+ | EscapeCharacterSet;
+ export type UnicodeSetsCharacterClassElement =
+ | Character
+ | CharacterClassRange
+ | ClassStringDisjunction
+ | EscapeCharacterSet
+ | ExpressionCharacterClass
+ | UnicodePropertyCharacterSet
+ | UnicodeSetsCharacterClass;
+ /**
+ * The type which defines common properties for all node types.
+ */
+ export interface NodeBase {
+ /** The node type. */
+ type: Node["type"];
+ /** The parent node. */
+ parent: Node["parent"];
+ /** The 0-based index that this node starts. */
+ start: number;
+ /** The 0-based index that this node ends. */
+ end: number;
+ /** The raw text of this node. */
+ raw: string;
+ }
+ /**
+ * The root node.
+ */
+ export interface RegExpLiteral extends NodeBase {
+ type: "RegExpLiteral";
+ parent: null;
+ pattern: Pattern;
+ flags: Flags;
+ }
+ /**
+ * The pattern.
+ */
+ export interface Pattern extends NodeBase {
+ type: "Pattern";
+ parent: RegExpLiteral | null;
+ alternatives: Alternative[];
+ }
+ /**
+ * The alternative.
+ * E.g. `a|b`
+ */
+ export interface Alternative extends NodeBase {
+ type: "Alternative";
+ parent: CapturingGroup | Group | LookaroundAssertion | Pattern;
+ elements: Element[];
+ }
+ /**
+ * The uncapturing group.
+ * E.g. `(?:ab)`
+ */
+ export interface Group extends NodeBase {
+ type: "Group";
+ parent: Alternative | Quantifier;
+ modifiers: Modifiers | null;
+ alternatives: Alternative[];
+ }
+ /**
+ * The capturing group.
+ * E.g. `(ab)`, `(?ab)`
+ */
+ export interface CapturingGroup extends NodeBase {
+ type: "CapturingGroup";
+ parent: Alternative | Quantifier;
+ name: string | null;
+ alternatives: Alternative[];
+ references: Backreference[];
+ }
+ /**
+ * The lookaround assertion.
+ */
+ export type LookaroundAssertion = LookaheadAssertion | LookbehindAssertion;
+ /**
+ * The lookahead assertion.
+ * E.g. `(?=ab)`, `(?!ab)`
+ */
+ export interface LookaheadAssertion extends NodeBase {
+ type: "Assertion";
+ parent: Alternative | Quantifier;
+ kind: "lookahead";
+ negate: boolean;
+ alternatives: Alternative[];
+ }
+ /**
+ * The lookbehind assertion.
+ * E.g. `(?<=ab)`, `(?`
+ */
+ export type Backreference = AmbiguousBackreference | UnambiguousBackreference;
+ interface BaseBackreference extends NodeBase {
+ type: "Backreference";
+ parent: Alternative | Quantifier;
+ ref: number | string;
+ ambiguous: boolean;
+ resolved: CapturingGroup | CapturingGroup[];
+ }
+ export interface AmbiguousBackreference extends BaseBackreference {
+ ref: string;
+ ambiguous: true;
+ resolved: CapturingGroup[];
+ }
+ export interface UnambiguousBackreference extends BaseBackreference {
+ ambiguous: false;
+ resolved: CapturingGroup;
+ }
+ /**
+ * The modifiers.
+ */
+ export interface Modifiers extends NodeBase {
+ type: "Modifiers";
+ parent: Group;
+ /**
+ * The add modifier flags.
+ */
+ add: ModifierFlags;
+ /**
+ * The remove modifier flags.
+ *
+ * `null` means no remove modifier flags. e.g. `(?ims:x)`
+ * The reason for `null` is that there is no position where the remove modifier flags appears. Must be behind the minus mark.
+ */
+ remove: ModifierFlags | null;
+ }
+ /**
+ * The modifier flags.
+ */
+ export interface ModifierFlags extends NodeBase {
+ type: "ModifierFlags";
+ parent: Modifiers;
+ dotAll: boolean;
+ ignoreCase: boolean;
+ multiline: boolean;
+ }
+ /**
+ * The flags.
+ */
+ export interface Flags extends NodeBase {
+ type: "Flags";
+ parent: RegExpLiteral | null;
+ dotAll: boolean;
+ global: boolean;
+ hasIndices: boolean;
+ ignoreCase: boolean;
+ multiline: boolean;
+ sticky: boolean;
+ unicode: boolean;
+ unicodeSets: boolean;
+ }
+ export {};
+}
+
+declare module "@eslint-community/regexpp/parser" {
+ import type {
+ Flags,
+ RegExpLiteral,
+ Pattern,
+ } from "@eslint-community/regexpp/ast";
+ import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions";
+ export namespace RegExpParser {
+ /**
+ * The options for RegExpParser construction.
+ */
+ interface Options {
+ /**
+ * The flag to disable Annex B syntax. Default is `false`.
+ */
+ strict?: boolean;
+ /**
+ * ECMAScript version. Default is `2025`.
+ * - `2015` added `u` and `y` flags.
+ * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
+ * and Unicode Property Escape.
+ * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes.
+ * - `2022` added `d` flag.
+ * - `2023` added more valid Unicode Property Escapes.
+ * - `2024` added `v` flag.
+ * - `2025` added duplicate named capturing groups, modifiers.
+ */
+ ecmaVersion?: EcmaVersion;
+ }
+ }
+ export class RegExpParser {
+ /**
+ * Initialize this parser.
+ * @param options The options of parser.
+ */
+ constructor(options?: RegExpParser.Options);
+ /**
+ * Parse a regular expression literal. E.g. "/abc/g"
+ * @param source The source code to parse.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @returns The AST of the given regular expression.
+ */
+ parseLiteral(source: string, start?: number, end?: number): RegExpLiteral;
+ /**
+ * Parse a regular expression flags. E.g. "gim"
+ * @param source The source code to parse.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @returns The AST of the given flags.
+ */
+ parseFlags(source: string, start?: number, end?: number): Flags;
+ /**
+ * Parse a regular expression pattern. E.g. "abc"
+ * @param source The source code to parse.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @param flags The flags.
+ * @returns The AST of the given pattern.
+ */
+ parsePattern(
+ source: string,
+ start?: number,
+ end?: number,
+ flags?: {
+ unicode?: boolean;
+ unicodeSets?: boolean;
+ }
+ ): Pattern;
+ /**
+ * @deprecated Backward compatibility
+ * Use object `flags` instead of boolean `uFlag`.
+ *
+ * @param source The source code to parse.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @param uFlag The flag to set unicode mode.
+ * @returns The AST of the given pattern.
+ */
+ parsePattern(
+ source: string,
+ start?: number,
+ end?: number,
+ uFlag?: boolean
+ ): Pattern;
+ }
+}
+
+declare module "@eslint-community/regexpp/validator" {
+ import type { EcmaVersion } from "@eslint-community/regexpp/ecma-versions";
+ export type RegExpValidatorSourceContext = {
+ readonly source: string;
+ readonly start: number;
+ readonly end: number;
+ readonly kind: "flags" | "literal" | "pattern";
+ };
+ export namespace RegExpValidator {
+ /**
+ * The options for RegExpValidator construction.
+ */
+ interface Options {
+ /**
+ * The flag to disable Annex B syntax. Default is `false`.
+ */
+ strict?: boolean;
+ /**
+ * ECMAScript version. Default is `2025`.
+ * - `2015` added `u` and `y` flags.
+ * - `2018` added `s` flag, Named Capturing Group, Lookbehind Assertion,
+ * and Unicode Property Escape.
+ * - `2019`, `2020`, and `2021` added more valid Unicode Property Escapes.
+ * - `2022` added `d` flag.
+ * - `2023` added more valid Unicode Property Escapes.
+ * - `2024` added `v` flag.
+ * - `2025` added duplicate named capturing groups, modifiers.
+ */
+ ecmaVersion?: EcmaVersion;
+ /**
+ * A function that is called when the validator entered a RegExp literal.
+ * @param start The 0-based index of the first character.
+ */
+ onLiteralEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left a RegExp literal.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onLiteralLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator found flags.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param flags.global `g` flag.
+ * @param flags.ignoreCase `i` flag.
+ * @param flags.multiline `m` flag.
+ * @param flags.unicode `u` flag.
+ * @param flags.sticky `y` flag.
+ * @param flags.dotAll `s` flag.
+ * @param flags.hasIndices `d` flag.
+ * @param flags.unicodeSets `v` flag.
+ */
+ onRegExpFlags?: (
+ start: number,
+ end: number,
+ flags: {
+ global: boolean;
+ ignoreCase: boolean;
+ multiline: boolean;
+ unicode: boolean;
+ sticky: boolean;
+ dotAll: boolean;
+ hasIndices: boolean;
+ unicodeSets: boolean;
+ }
+ ) => void;
+ /**
+ * A function that is called when the validator found flags.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param global `g` flag.
+ * @param ignoreCase `i` flag.
+ * @param multiline `m` flag.
+ * @param unicode `u` flag.
+ * @param sticky `y` flag.
+ * @param dotAll `s` flag.
+ * @param hasIndices `d` flag.
+ *
+ * @deprecated Use `onRegExpFlags` instead.
+ */
+ onFlags?: (
+ start: number,
+ end: number,
+ global: boolean,
+ ignoreCase: boolean,
+ multiline: boolean,
+ unicode: boolean,
+ sticky: boolean,
+ dotAll: boolean,
+ hasIndices: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator entered a pattern.
+ * @param start The 0-based index of the first character.
+ */
+ onPatternEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left a pattern.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onPatternLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator entered a disjunction.
+ * @param start The 0-based index of the first character.
+ */
+ onDisjunctionEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left a disjunction.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onDisjunctionLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator entered an alternative.
+ * @param start The 0-based index of the first character.
+ * @param index The 0-based index of alternatives in a disjunction.
+ */
+ onAlternativeEnter?: (start: number, index: number) => void;
+ /**
+ * A function that is called when the validator left an alternative.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param index The 0-based index of alternatives in a disjunction.
+ */
+ onAlternativeLeave?: (start: number, end: number, index: number) => void;
+ /**
+ * A function that is called when the validator entered an uncapturing group.
+ * @param start The 0-based index of the first character.
+ */
+ onGroupEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left an uncapturing group.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onGroupLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator entered a modifiers.
+ * @param start The 0-based index of the first character.
+ */
+ onModifiersEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left a modifiers.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onModifiersLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator found an add modifiers.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param flags flags.
+ * @param flags.ignoreCase `i` flag.
+ * @param flags.multiline `m` flag.
+ * @param flags.dotAll `s` flag.
+ */
+ onAddModifiers?: (
+ start: number,
+ end: number,
+ flags: {
+ ignoreCase: boolean;
+ multiline: boolean;
+ dotAll: boolean;
+ }
+ ) => void;
+ /**
+ * A function that is called when the validator found a remove modifiers.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param flags flags.
+ * @param flags.ignoreCase `i` flag.
+ * @param flags.multiline `m` flag.
+ * @param flags.dotAll `s` flag.
+ */
+ onRemoveModifiers?: (
+ start: number,
+ end: number,
+ flags: {
+ ignoreCase: boolean;
+ multiline: boolean;
+ dotAll: boolean;
+ }
+ ) => void;
+ /**
+ * A function that is called when the validator entered a capturing group.
+ * @param start The 0-based index of the first character.
+ * @param name The group name.
+ */
+ onCapturingGroupEnter?: (start: number, name: string | null) => void;
+ /**
+ * A function that is called when the validator left a capturing group.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param name The group name.
+ */
+ onCapturingGroupLeave?: (
+ start: number,
+ end: number,
+ name: string | null
+ ) => void;
+ /**
+ * A function that is called when the validator found a quantifier.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param min The minimum number of repeating.
+ * @param max The maximum number of repeating.
+ * @param greedy The flag to choose the longest matching.
+ */
+ onQuantifier?: (
+ start: number,
+ end: number,
+ min: number,
+ max: number,
+ greedy: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator entered a lookahead/lookbehind assertion.
+ * @param start The 0-based index of the first character.
+ * @param kind The kind of the assertion.
+ * @param negate The flag which represents that the assertion is negative.
+ */
+ onLookaroundAssertionEnter?: (
+ start: number,
+ kind: "lookahead" | "lookbehind",
+ negate: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator left a lookahead/lookbehind assertion.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the assertion.
+ * @param negate The flag which represents that the assertion is negative.
+ */
+ onLookaroundAssertionLeave?: (
+ start: number,
+ end: number,
+ kind: "lookahead" | "lookbehind",
+ negate: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator found an edge boundary assertion.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the assertion.
+ */
+ onEdgeAssertion?: (
+ start: number,
+ end: number,
+ kind: "end" | "start"
+ ) => void;
+ /**
+ * A function that is called when the validator found a word boundary assertion.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the assertion.
+ * @param negate The flag which represents that the assertion is negative.
+ */
+ onWordBoundaryAssertion?: (
+ start: number,
+ end: number,
+ kind: "word",
+ negate: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator found a dot.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the character set.
+ */
+ onAnyCharacterSet?: (start: number, end: number, kind: "any") => void;
+ /**
+ * A function that is called when the validator found a character set escape.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the character set.
+ * @param negate The flag which represents that the character set is negative.
+ */
+ onEscapeCharacterSet?: (
+ start: number,
+ end: number,
+ kind: "digit" | "space" | "word",
+ negate: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator found a Unicode proerty escape.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param kind The kind of the character set.
+ * @param key The property name.
+ * @param value The property value.
+ * @param negate The flag which represents that the character set is negative.
+ * @param strings If true, the given property is property of strings.
+ */
+ onUnicodePropertyCharacterSet?: (
+ start: number,
+ end: number,
+ kind: "property",
+ key: string,
+ value: string | null,
+ negate: boolean,
+ strings: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator found a character.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param value The code point of the character.
+ */
+ onCharacter?: (start: number, end: number, value: number) => void;
+ /**
+ * A function that is called when the validator found a backreference.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param ref The key of the referred capturing group.
+ */
+ onBackreference?: (
+ start: number,
+ end: number,
+ ref: number | string
+ ) => void;
+ /**
+ * A function that is called when the validator entered a character class.
+ * @param start The 0-based index of the first character.
+ * @param negate The flag which represents that the character class is negative.
+ * @param unicodeSets `true` if unicodeSets mode.
+ */
+ onCharacterClassEnter?: (
+ start: number,
+ negate: boolean,
+ unicodeSets: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator left a character class.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param negate The flag which represents that the character class is negative.
+ */
+ onCharacterClassLeave?: (
+ start: number,
+ end: number,
+ negate: boolean
+ ) => void;
+ /**
+ * A function that is called when the validator found a character class range.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param min The minimum code point of the range.
+ * @param max The maximum code point of the range.
+ */
+ onCharacterClassRange?: (
+ start: number,
+ end: number,
+ min: number,
+ max: number
+ ) => void;
+ /**
+ * A function that is called when the validator found a class intersection.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onClassIntersection?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator found a class subtraction.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onClassSubtraction?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator entered a class string disjunction.
+ * @param start The 0-based index of the first character.
+ */
+ onClassStringDisjunctionEnter?: (start: number) => void;
+ /**
+ * A function that is called when the validator left a class string disjunction.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ */
+ onClassStringDisjunctionLeave?: (start: number, end: number) => void;
+ /**
+ * A function that is called when the validator entered a string alternative.
+ * @param start The 0-based index of the first character.
+ * @param index The 0-based index of alternatives in a disjunction.
+ */
+ onStringAlternativeEnter?: (start: number, index: number) => void;
+ /**
+ * A function that is called when the validator left a string alternative.
+ * @param start The 0-based index of the first character.
+ * @param end The next 0-based index of the last character.
+ * @param index The 0-based index of alternatives in a disjunction.
+ */
+ onStringAlternativeLeave?: (
+ start: number,
+ end: number,
+ index: number
+ ) => void;
+ }
+ }
+ /**
+ * The regular expression validator.
+ */
+ export class RegExpValidator {
+ /**
+ * Initialize this validator.
+ * @param options The options of validator.
+ */
+ constructor(options?: RegExpValidator.Options);
+ /**
+ * Validate a regular expression literal. E.g. "/abc/g"
+ * @param source The source code to validate.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ */
+ validateLiteral(source: string, start?: number, end?: number): void;
+ /**
+ * Validate a regular expression flags. E.g. "gim"
+ * @param source The source code to validate.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ */
+ validateFlags(source: string, start?: number, end?: number): void;
+ /**
+ * Validate a regular expression pattern. E.g. "abc"
+ * @param source The source code to validate.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @param flags The flags.
+ */
+ validatePattern(
+ source: string,
+ start?: number,
+ end?: number,
+ flags?: {
+ unicode?: boolean;
+ unicodeSets?: boolean;
+ }
+ ): void;
+ /**
+ * @deprecated Backward compatibility
+ * Use object `flags` instead of boolean `uFlag`.
+ * @param source The source code to validate.
+ * @param start The start index in the source code.
+ * @param end The end index in the source code.
+ * @param uFlag The flag to set unicode mode.
+ */
+ validatePattern(
+ source: string,
+ start?: number,
+ end?: number,
+ uFlag?: boolean
+ ): void;
+ }
+}
+
+declare module "@eslint-community/regexpp/visitor" {
+ import type {
+ Alternative,
+ Assertion,
+ Backreference,
+ CapturingGroup,
+ Character,
+ CharacterClass,
+ CharacterClassRange,
+ CharacterSet,
+ ClassIntersection,
+ ClassStringDisjunction,
+ ClassSubtraction,
+ ExpressionCharacterClass,
+ Flags,
+ Group,
+ ModifierFlags,
+ Modifiers,
+ Node,
+ Pattern,
+ Quantifier,
+ RegExpLiteral,
+ StringAlternative,
+ } from "@eslint-community/regexpp/ast";
+ /**
+ * The visitor to walk on AST.
+ */
+ export class RegExpVisitor {
+ /**
+ * Initialize this visitor.
+ * @param handlers Callbacks for each node.
+ */
+ constructor(handlers: RegExpVisitor.Handlers);
+ /**
+ * Visit a given node and descendant nodes.
+ * @param node The root node to visit tree.
+ */
+ visit(node: Node): void;
+ }
+ export namespace RegExpVisitor {
+ interface Handlers {
+ onAlternativeEnter?: (node: Alternative) => void;
+ onAlternativeLeave?: (node: Alternative) => void;
+ onAssertionEnter?: (node: Assertion) => void;
+ onAssertionLeave?: (node: Assertion) => void;
+ onBackreferenceEnter?: (node: Backreference) => void;
+ onBackreferenceLeave?: (node: Backreference) => void;
+ onCapturingGroupEnter?: (node: CapturingGroup) => void;
+ onCapturingGroupLeave?: (node: CapturingGroup) => void;
+ onCharacterEnter?: (node: Character) => void;
+ onCharacterLeave?: (node: Character) => void;
+ onCharacterClassEnter?: (node: CharacterClass) => void;
+ onCharacterClassLeave?: (node: CharacterClass) => void;
+ onCharacterClassRangeEnter?: (node: CharacterClassRange) => void;
+ onCharacterClassRangeLeave?: (node: CharacterClassRange) => void;
+ onCharacterSetEnter?: (node: CharacterSet) => void;
+ onCharacterSetLeave?: (node: CharacterSet) => void;
+ onClassIntersectionEnter?: (node: ClassIntersection) => void;
+ onClassIntersectionLeave?: (node: ClassIntersection) => void;
+ onClassStringDisjunctionEnter?: (node: ClassStringDisjunction) => void;
+ onClassStringDisjunctionLeave?: (node: ClassStringDisjunction) => void;
+ onClassSubtractionEnter?: (node: ClassSubtraction) => void;
+ onClassSubtractionLeave?: (node: ClassSubtraction) => void;
+ onExpressionCharacterClassEnter?: (
+ node: ExpressionCharacterClass
+ ) => void;
+ onExpressionCharacterClassLeave?: (
+ node: ExpressionCharacterClass
+ ) => void;
+ onFlagsEnter?: (node: Flags) => void;
+ onFlagsLeave?: (node: Flags) => void;
+ onGroupEnter?: (node: Group) => void;
+ onGroupLeave?: (node: Group) => void;
+ onModifierFlagsEnter?: (node: ModifierFlags) => void;
+ onModifierFlagsLeave?: (node: ModifierFlags) => void;
+ onModifiersEnter?: (node: Modifiers) => void;
+ onModifiersLeave?: (node: Modifiers) => void;
+ onPatternEnter?: (node: Pattern) => void;
+ onPatternLeave?: (node: Pattern) => void;
+ onQuantifierEnter?: (node: Quantifier) => void;
+ onQuantifierLeave?: (node: Quantifier) => void;
+ onRegExpLiteralEnter?: (node: RegExpLiteral) => void;
+ onRegExpLiteralLeave?: (node: RegExpLiteral) => void;
+ onStringAlternativeEnter?: (node: StringAlternative) => void;
+ onStringAlternativeLeave?: (node: StringAlternative) => void;
+ }
+ }
+}
+
+declare module "@eslint-community/regexpp/regexp-syntax-error" {
+ import type { RegExpValidatorSourceContext } from "@eslint-community/regexpp/validator";
+ export class RegExpSyntaxError extends SyntaxError {
+ index: number;
+ constructor(message: string, index: number);
+ }
+ export function newRegExpSyntaxError(
+ srcCtx: RegExpValidatorSourceContext,
+ flags: {
+ unicode: boolean;
+ unicodeSets: boolean;
+ },
+ index: number,
+ message: string
+ ): RegExpSyntaxError;
+}
+
+declare module "@eslint-community/regexpp/ecma-versions" {
+ export type EcmaVersion =
+ | 5
+ | 2015
+ | 2016
+ | 2017
+ | 2018
+ | 2019
+ | 2020
+ | 2021
+ | 2022
+ | 2023
+ | 2024
+ | 2025;
+ export const latestEcmaVersion = 2025;
+}
diff --git a/node_modules/@eslint-community/regexpp/index.js b/node_modules/@eslint-community/regexpp/index.js
new file mode 100644
index 00000000000..ac5d686eb54
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/index.js
@@ -0,0 +1,3037 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+var ast = /*#__PURE__*/Object.freeze({
+ __proto__: null
+});
+
+const latestEcmaVersion = 2025;
+
+let largeIdStartRanges = undefined;
+let largeIdContinueRanges = undefined;
+function isIdStart(cp) {
+ if (cp < 0x41)
+ return false;
+ if (cp < 0x5b)
+ return true;
+ if (cp < 0x61)
+ return false;
+ if (cp < 0x7b)
+ return true;
+ return isLargeIdStart(cp);
+}
+function isIdContinue(cp) {
+ if (cp < 0x30)
+ return false;
+ if (cp < 0x3a)
+ return true;
+ if (cp < 0x41)
+ return false;
+ if (cp < 0x5b)
+ return true;
+ if (cp === 0x5f)
+ return true;
+ if (cp < 0x61)
+ return false;
+ if (cp < 0x7b)
+ return true;
+ return isLargeIdStart(cp) || isLargeIdContinue(cp);
+}
+function isLargeIdStart(cp) {
+ return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges()));
+}
+function isLargeIdContinue(cp) {
+ return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges()));
+}
+function initLargeIdStartRanges() {
+ return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p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1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y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4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n");
+}
+function isInRange(cp, ranges) {
+ let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0;
+ while (l < r) {
+ i = ((l + r) / 2) | 0;
+ min = ranges[2 * i];
+ max = ranges[2 * i + 1];
+ if (cp < min) {
+ r = i;
+ }
+ else if (cp > max) {
+ l = i + 1;
+ }
+ else {
+ return true;
+ }
+ }
+ return false;
+}
+function restoreRanges(data) {
+ let last = 0;
+ return data.split(" ").map((s) => (last += parseInt(s, 36) | 0));
+}
+
+class DataSet {
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025) {
+ this._raw2018 = raw2018;
+ this._raw2019 = raw2019;
+ this._raw2020 = raw2020;
+ this._raw2021 = raw2021;
+ this._raw2022 = raw2022;
+ this._raw2023 = raw2023;
+ this._raw2024 = raw2024;
+ this._raw2025 = raw2025;
+ }
+ get es2018() {
+ var _a;
+ return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" "))));
+ }
+ get es2019() {
+ var _a;
+ return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" "))));
+ }
+ get es2020() {
+ var _a;
+ return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" "))));
+ }
+ get es2021() {
+ var _a;
+ return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" "))));
+ }
+ get es2022() {
+ var _a;
+ return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" "))));
+ }
+ get es2023() {
+ var _a;
+ return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" "))));
+ }
+ get es2024() {
+ var _a;
+ return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" "))));
+ }
+ get es2025() {
+ var _a;
+ return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" "))));
+ }
+}
+const gcNameSet = new Set(["General_Category", "gc"]);
+const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
+const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", "");
+const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", "", "");
+const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", "");
+const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", "");
+function isValidUnicodeProperty(version, name, value) {
+ if (gcNameSet.has(name)) {
+ return version >= 2018 && gcValueSets.es2018.has(value);
+ }
+ if (scNameSet.has(name)) {
+ return ((version >= 2018 && scValueSets.es2018.has(value)) ||
+ (version >= 2019 && scValueSets.es2019.has(value)) ||
+ (version >= 2020 && scValueSets.es2020.has(value)) ||
+ (version >= 2021 && scValueSets.es2021.has(value)) ||
+ (version >= 2022 && scValueSets.es2022.has(value)) ||
+ (version >= 2023 && scValueSets.es2023.has(value)));
+ }
+ return false;
+}
+function isValidLoneUnicodeProperty(version, value) {
+ return ((version >= 2018 && binPropertySets.es2018.has(value)) ||
+ (version >= 2019 && binPropertySets.es2019.has(value)) ||
+ (version >= 2021 && binPropertySets.es2021.has(value)));
+}
+function isValidLoneUnicodePropertyOfString(version, value) {
+ return version >= 2024 && binPropertyOfStringsSets.es2024.has(value);
+}
+
+const BACKSPACE = 0x08;
+const CHARACTER_TABULATION = 0x09;
+const LINE_FEED = 0x0a;
+const LINE_TABULATION = 0x0b;
+const FORM_FEED = 0x0c;
+const CARRIAGE_RETURN = 0x0d;
+const EXCLAMATION_MARK = 0x21;
+const NUMBER_SIGN = 0x23;
+const DOLLAR_SIGN = 0x24;
+const PERCENT_SIGN = 0x25;
+const AMPERSAND = 0x26;
+const LEFT_PARENTHESIS = 0x28;
+const RIGHT_PARENTHESIS = 0x29;
+const ASTERISK = 0x2a;
+const PLUS_SIGN = 0x2b;
+const COMMA = 0x2c;
+const HYPHEN_MINUS = 0x2d;
+const FULL_STOP = 0x2e;
+const SOLIDUS = 0x2f;
+const DIGIT_ZERO = 0x30;
+const DIGIT_ONE = 0x31;
+const DIGIT_SEVEN = 0x37;
+const DIGIT_NINE = 0x39;
+const COLON = 0x3a;
+const SEMICOLON = 0x3b;
+const LESS_THAN_SIGN = 0x3c;
+const EQUALS_SIGN = 0x3d;
+const GREATER_THAN_SIGN = 0x3e;
+const QUESTION_MARK = 0x3f;
+const COMMERCIAL_AT = 0x40;
+const LATIN_CAPITAL_LETTER_A = 0x41;
+const LATIN_CAPITAL_LETTER_B = 0x42;
+const LATIN_CAPITAL_LETTER_D = 0x44;
+const LATIN_CAPITAL_LETTER_F = 0x46;
+const LATIN_CAPITAL_LETTER_P = 0x50;
+const LATIN_CAPITAL_LETTER_S = 0x53;
+const LATIN_CAPITAL_LETTER_W = 0x57;
+const LATIN_CAPITAL_LETTER_Z = 0x5a;
+const LOW_LINE = 0x5f;
+const LATIN_SMALL_LETTER_A = 0x61;
+const LATIN_SMALL_LETTER_B = 0x62;
+const LATIN_SMALL_LETTER_C = 0x63;
+const LATIN_SMALL_LETTER_D = 0x64;
+const LATIN_SMALL_LETTER_F = 0x66;
+const LATIN_SMALL_LETTER_G = 0x67;
+const LATIN_SMALL_LETTER_I = 0x69;
+const LATIN_SMALL_LETTER_K = 0x6b;
+const LATIN_SMALL_LETTER_M = 0x6d;
+const LATIN_SMALL_LETTER_N = 0x6e;
+const LATIN_SMALL_LETTER_P = 0x70;
+const LATIN_SMALL_LETTER_Q = 0x71;
+const LATIN_SMALL_LETTER_R = 0x72;
+const LATIN_SMALL_LETTER_S = 0x73;
+const LATIN_SMALL_LETTER_T = 0x74;
+const LATIN_SMALL_LETTER_U = 0x75;
+const LATIN_SMALL_LETTER_V = 0x76;
+const LATIN_SMALL_LETTER_W = 0x77;
+const LATIN_SMALL_LETTER_X = 0x78;
+const LATIN_SMALL_LETTER_Y = 0x79;
+const LATIN_SMALL_LETTER_Z = 0x7a;
+const LEFT_SQUARE_BRACKET = 0x5b;
+const REVERSE_SOLIDUS = 0x5c;
+const RIGHT_SQUARE_BRACKET = 0x5d;
+const CIRCUMFLEX_ACCENT = 0x5e;
+const GRAVE_ACCENT = 0x60;
+const LEFT_CURLY_BRACKET = 0x7b;
+const VERTICAL_LINE = 0x7c;
+const RIGHT_CURLY_BRACKET = 0x7d;
+const TILDE = 0x7e;
+const ZERO_WIDTH_NON_JOINER = 0x200c;
+const ZERO_WIDTH_JOINER = 0x200d;
+const LINE_SEPARATOR = 0x2028;
+const PARAGRAPH_SEPARATOR = 0x2029;
+const MIN_CODE_POINT = 0x00;
+const MAX_CODE_POINT = 0x10ffff;
+function isLatinLetter(code) {
+ return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) ||
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z));
+}
+function isDecimalDigit(code) {
+ return code >= DIGIT_ZERO && code <= DIGIT_NINE;
+}
+function isOctalDigit(code) {
+ return code >= DIGIT_ZERO && code <= DIGIT_SEVEN;
+}
+function isHexDigit(code) {
+ return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) ||
+ (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) ||
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F));
+}
+function isLineTerminator(code) {
+ return (code === LINE_FEED ||
+ code === CARRIAGE_RETURN ||
+ code === LINE_SEPARATOR ||
+ code === PARAGRAPH_SEPARATOR);
+}
+function isValidUnicode(code) {
+ return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT;
+}
+function digitToInt(code) {
+ if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) {
+ return code - LATIN_SMALL_LETTER_A + 10;
+ }
+ if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) {
+ return code - LATIN_CAPITAL_LETTER_A + 10;
+ }
+ return code - DIGIT_ZERO;
+}
+function isLeadSurrogate(code) {
+ return code >= 0xd800 && code <= 0xdbff;
+}
+function isTrailSurrogate(code) {
+ return code >= 0xdc00 && code <= 0xdfff;
+}
+function combineSurrogatePair(lead, trail) {
+ return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000;
+}
+
+class GroupSpecifiersAsES2018 {
+ constructor() {
+ this.groupName = new Set();
+ }
+ clear() {
+ this.groupName.clear();
+ }
+ isEmpty() {
+ return !this.groupName.size;
+ }
+ hasInPattern(name) {
+ return this.groupName.has(name);
+ }
+ hasInScope(name) {
+ return this.hasInPattern(name);
+ }
+ addToScope(name) {
+ this.groupName.add(name);
+ }
+ enterDisjunction() {
+ }
+ enterAlternative() {
+ }
+ leaveDisjunction() {
+ }
+}
+class BranchID {
+ constructor(parent, base) {
+ this.parent = parent;
+ this.base = base !== null && base !== void 0 ? base : this;
+ }
+ separatedFrom(other) {
+ var _a, _b;
+ if (this.base === other.base && this !== other) {
+ return true;
+ }
+ if (other.parent && this.separatedFrom(other.parent)) {
+ return true;
+ }
+ return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false;
+ }
+ child() {
+ return new BranchID(this, null);
+ }
+ sibling() {
+ return new BranchID(this.parent, this.base);
+ }
+}
+class GroupSpecifiersAsES2025 {
+ constructor() {
+ this.branchID = new BranchID(null, null);
+ this.groupNames = new Map();
+ }
+ clear() {
+ this.branchID = new BranchID(null, null);
+ this.groupNames.clear();
+ }
+ isEmpty() {
+ return !this.groupNames.size;
+ }
+ enterDisjunction() {
+ this.branchID = this.branchID.child();
+ }
+ enterAlternative(index) {
+ if (index === 0) {
+ return;
+ }
+ this.branchID = this.branchID.sibling();
+ }
+ leaveDisjunction() {
+ this.branchID = this.branchID.parent;
+ }
+ hasInPattern(name) {
+ return this.groupNames.has(name);
+ }
+ hasInScope(name) {
+ const branches = this.groupNames.get(name);
+ if (!branches) {
+ return false;
+ }
+ for (const branch of branches) {
+ if (!branch.separatedFrom(this.branchID)) {
+ return true;
+ }
+ }
+ return false;
+ }
+ addToScope(name) {
+ const branches = this.groupNames.get(name);
+ if (branches) {
+ branches.push(this.branchID);
+ return;
+ }
+ this.groupNames.set(name, [this.branchID]);
+ }
+}
+
+const legacyImpl = {
+ at(s, end, i) {
+ return i < end ? s.charCodeAt(i) : -1;
+ },
+ width(c) {
+ return 1;
+ },
+};
+const unicodeImpl = {
+ at(s, end, i) {
+ return i < end ? s.codePointAt(i) : -1;
+ },
+ width(c) {
+ return c > 0xffff ? 2 : 1;
+ },
+};
+class Reader {
+ constructor() {
+ this._impl = legacyImpl;
+ this._s = "";
+ this._i = 0;
+ this._end = 0;
+ this._cp1 = -1;
+ this._w1 = 1;
+ this._cp2 = -1;
+ this._w2 = 1;
+ this._cp3 = -1;
+ this._w3 = 1;
+ this._cp4 = -1;
+ }
+ get source() {
+ return this._s;
+ }
+ get index() {
+ return this._i;
+ }
+ get currentCodePoint() {
+ return this._cp1;
+ }
+ get nextCodePoint() {
+ return this._cp2;
+ }
+ get nextCodePoint2() {
+ return this._cp3;
+ }
+ get nextCodePoint3() {
+ return this._cp4;
+ }
+ reset(source, start, end, uFlag) {
+ this._impl = uFlag ? unicodeImpl : legacyImpl;
+ this._s = source;
+ this._end = end;
+ this.rewind(start);
+ }
+ rewind(index) {
+ const impl = this._impl;
+ this._i = index;
+ this._cp1 = impl.at(this._s, this._end, index);
+ this._w1 = impl.width(this._cp1);
+ this._cp2 = impl.at(this._s, this._end, index + this._w1);
+ this._w2 = impl.width(this._cp2);
+ this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2);
+ this._w3 = impl.width(this._cp3);
+ this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3);
+ }
+ advance() {
+ if (this._cp1 !== -1) {
+ const impl = this._impl;
+ this._i += this._w1;
+ this._cp1 = this._cp2;
+ this._w1 = this._w2;
+ this._cp2 = this._cp3;
+ this._w2 = impl.width(this._cp2);
+ this._cp3 = this._cp4;
+ this._w3 = impl.width(this._cp3);
+ this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3);
+ }
+ }
+ eat(cp) {
+ if (this._cp1 === cp) {
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eat2(cp1, cp2) {
+ if (this._cp1 === cp1 && this._cp2 === cp2) {
+ this.advance();
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eat3(cp1, cp2, cp3) {
+ if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) {
+ this.advance();
+ this.advance();
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+}
+
+class RegExpSyntaxError extends SyntaxError {
+ constructor(message, index) {
+ super(message);
+ this.index = index;
+ }
+}
+function newRegExpSyntaxError(srcCtx, flags, index, message) {
+ let source = "";
+ if (srcCtx.kind === "literal") {
+ const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end);
+ if (literal) {
+ source = `: ${literal}`;
+ }
+ }
+ else if (srcCtx.kind === "pattern") {
+ const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end);
+ const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`;
+ source = `: /${pattern}/${flagsText}`;
+ }
+ return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index);
+}
+
+const SYNTAX_CHARACTER = new Set([
+ CIRCUMFLEX_ACCENT,
+ DOLLAR_SIGN,
+ REVERSE_SOLIDUS,
+ FULL_STOP,
+ ASTERISK,
+ PLUS_SIGN,
+ QUESTION_MARK,
+ LEFT_PARENTHESIS,
+ RIGHT_PARENTHESIS,
+ LEFT_SQUARE_BRACKET,
+ RIGHT_SQUARE_BRACKET,
+ LEFT_CURLY_BRACKET,
+ RIGHT_CURLY_BRACKET,
+ VERTICAL_LINE,
+]);
+const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([
+ AMPERSAND,
+ EXCLAMATION_MARK,
+ NUMBER_SIGN,
+ DOLLAR_SIGN,
+ PERCENT_SIGN,
+ ASTERISK,
+ PLUS_SIGN,
+ COMMA,
+ FULL_STOP,
+ COLON,
+ SEMICOLON,
+ LESS_THAN_SIGN,
+ EQUALS_SIGN,
+ GREATER_THAN_SIGN,
+ QUESTION_MARK,
+ COMMERCIAL_AT,
+ CIRCUMFLEX_ACCENT,
+ GRAVE_ACCENT,
+ TILDE,
+]);
+const CLASS_SET_SYNTAX_CHARACTER = new Set([
+ LEFT_PARENTHESIS,
+ RIGHT_PARENTHESIS,
+ LEFT_SQUARE_BRACKET,
+ RIGHT_SQUARE_BRACKET,
+ LEFT_CURLY_BRACKET,
+ RIGHT_CURLY_BRACKET,
+ SOLIDUS,
+ HYPHEN_MINUS,
+ REVERSE_SOLIDUS,
+ VERTICAL_LINE,
+]);
+const CLASS_SET_RESERVED_PUNCTUATOR = new Set([
+ AMPERSAND,
+ HYPHEN_MINUS,
+ EXCLAMATION_MARK,
+ NUMBER_SIGN,
+ PERCENT_SIGN,
+ COMMA,
+ COLON,
+ SEMICOLON,
+ LESS_THAN_SIGN,
+ EQUALS_SIGN,
+ GREATER_THAN_SIGN,
+ COMMERCIAL_AT,
+ GRAVE_ACCENT,
+ TILDE,
+]);
+const FLAG_PROP_TO_CODEPOINT = {
+ global: LATIN_SMALL_LETTER_G,
+ ignoreCase: LATIN_SMALL_LETTER_I,
+ multiline: LATIN_SMALL_LETTER_M,
+ unicode: LATIN_SMALL_LETTER_U,
+ sticky: LATIN_SMALL_LETTER_Y,
+ dotAll: LATIN_SMALL_LETTER_S,
+ hasIndices: LATIN_SMALL_LETTER_D,
+ unicodeSets: LATIN_SMALL_LETTER_V,
+};
+const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k]));
+function isSyntaxCharacter(cp) {
+ return SYNTAX_CHARACTER.has(cp);
+}
+function isClassSetReservedDoublePunctuatorCharacter(cp) {
+ return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp);
+}
+function isClassSetSyntaxCharacter(cp) {
+ return CLASS_SET_SYNTAX_CHARACTER.has(cp);
+}
+function isClassSetReservedPunctuator(cp) {
+ return CLASS_SET_RESERVED_PUNCTUATOR.has(cp);
+}
+function isIdentifierStartChar(cp) {
+ return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE;
+}
+function isIdentifierPartChar(cp) {
+ return (isIdContinue(cp) ||
+ cp === DOLLAR_SIGN ||
+ cp === ZERO_WIDTH_NON_JOINER ||
+ cp === ZERO_WIDTH_JOINER);
+}
+function isUnicodePropertyNameCharacter(cp) {
+ return isLatinLetter(cp) || cp === LOW_LINE;
+}
+function isUnicodePropertyValueCharacter(cp) {
+ return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp);
+}
+function isRegularExpressionModifier(ch) {
+ return (ch === LATIN_SMALL_LETTER_I ||
+ ch === LATIN_SMALL_LETTER_M ||
+ ch === LATIN_SMALL_LETTER_S);
+}
+class RegExpValidator {
+ constructor(options) {
+ this._reader = new Reader();
+ this._unicodeMode = false;
+ this._unicodeSetsMode = false;
+ this._nFlag = false;
+ this._lastIntValue = 0;
+ this._lastRange = {
+ min: 0,
+ max: Number.POSITIVE_INFINITY,
+ };
+ this._lastStrValue = "";
+ this._lastAssertionIsQuantifiable = false;
+ this._numCapturingParens = 0;
+ this._backreferenceNames = new Set();
+ this._srcCtx = null;
+ this._options = options !== null && options !== void 0 ? options : {};
+ this._groupSpecifiers =
+ this.ecmaVersion >= 2025
+ ? new GroupSpecifiersAsES2025()
+ : new GroupSpecifiersAsES2018();
+ }
+ validateLiteral(source, start = 0, end = source.length) {
+ this._srcCtx = { source, start, end, kind: "literal" };
+ this._unicodeSetsMode = this._unicodeMode = this._nFlag = false;
+ this.reset(source, start, end);
+ this.onLiteralEnter(start);
+ if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) {
+ const flagStart = this.index;
+ const unicode = source.includes("u", flagStart);
+ const unicodeSets = source.includes("v", flagStart);
+ this.validateFlagsInternal(source, flagStart, end);
+ this.validatePatternInternal(source, start + 1, flagStart - 1, {
+ unicode,
+ unicodeSets,
+ });
+ }
+ else if (start >= end) {
+ this.raise("Empty");
+ }
+ else {
+ const c = String.fromCodePoint(this.currentCodePoint);
+ this.raise(`Unexpected character '${c}'`);
+ }
+ this.onLiteralLeave(start, end);
+ }
+ validateFlags(source, start = 0, end = source.length) {
+ this._srcCtx = { source, start, end, kind: "flags" };
+ this.validateFlagsInternal(source, start, end);
+ }
+ validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ this._srcCtx = { source, start, end, kind: "pattern" };
+ this.validatePatternInternal(source, start, end, uFlagOrFlags);
+ }
+ validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end);
+ this._unicodeMode = mode.unicodeMode;
+ this._nFlag = mode.nFlag;
+ this._unicodeSetsMode = mode.unicodeSetsMode;
+ this.reset(source, start, end);
+ this.consumePattern();
+ if (!this._nFlag &&
+ this.ecmaVersion >= 2018 &&
+ !this._groupSpecifiers.isEmpty()) {
+ this._nFlag = true;
+ this.rewind(start);
+ this.consumePattern();
+ }
+ }
+ validateFlagsInternal(source, start, end) {
+ const flags = this.parseFlags(source, start, end);
+ this.onRegExpFlags(start, end, flags);
+ }
+ _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) {
+ let unicode = false;
+ let unicodeSets = false;
+ if (uFlagOrFlags && this.ecmaVersion >= 2015) {
+ if (typeof uFlagOrFlags === "object") {
+ unicode = Boolean(uFlagOrFlags.unicode);
+ if (this.ecmaVersion >= 2024) {
+ unicodeSets = Boolean(uFlagOrFlags.unicodeSets);
+ }
+ }
+ else {
+ unicode = uFlagOrFlags;
+ }
+ }
+ if (unicode && unicodeSets) {
+ this.raise("Invalid regular expression flags", {
+ index: sourceEnd + 1,
+ unicode,
+ unicodeSets,
+ });
+ }
+ const unicodeMode = unicode || unicodeSets;
+ const nFlag = (unicode && this.ecmaVersion >= 2018) ||
+ unicodeSets ||
+ Boolean(this._options.strict && this.ecmaVersion >= 2023);
+ const unicodeSetsMode = unicodeSets;
+ return { unicodeMode, nFlag, unicodeSetsMode };
+ }
+ get strict() {
+ return Boolean(this._options.strict) || this._unicodeMode;
+ }
+ get ecmaVersion() {
+ var _a;
+ return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
+ }
+ onLiteralEnter(start) {
+ if (this._options.onLiteralEnter) {
+ this._options.onLiteralEnter(start);
+ }
+ }
+ onLiteralLeave(start, end) {
+ if (this._options.onLiteralLeave) {
+ this._options.onLiteralLeave(start, end);
+ }
+ }
+ onRegExpFlags(start, end, flags) {
+ if (this._options.onRegExpFlags) {
+ this._options.onRegExpFlags(start, end, flags);
+ }
+ if (this._options.onFlags) {
+ this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices);
+ }
+ }
+ onPatternEnter(start) {
+ if (this._options.onPatternEnter) {
+ this._options.onPatternEnter(start);
+ }
+ }
+ onPatternLeave(start, end) {
+ if (this._options.onPatternLeave) {
+ this._options.onPatternLeave(start, end);
+ }
+ }
+ onDisjunctionEnter(start) {
+ if (this._options.onDisjunctionEnter) {
+ this._options.onDisjunctionEnter(start);
+ }
+ }
+ onDisjunctionLeave(start, end) {
+ if (this._options.onDisjunctionLeave) {
+ this._options.onDisjunctionLeave(start, end);
+ }
+ }
+ onAlternativeEnter(start, index) {
+ if (this._options.onAlternativeEnter) {
+ this._options.onAlternativeEnter(start, index);
+ }
+ }
+ onAlternativeLeave(start, end, index) {
+ if (this._options.onAlternativeLeave) {
+ this._options.onAlternativeLeave(start, end, index);
+ }
+ }
+ onGroupEnter(start) {
+ if (this._options.onGroupEnter) {
+ this._options.onGroupEnter(start);
+ }
+ }
+ onGroupLeave(start, end) {
+ if (this._options.onGroupLeave) {
+ this._options.onGroupLeave(start, end);
+ }
+ }
+ onModifiersEnter(start) {
+ if (this._options.onModifiersEnter) {
+ this._options.onModifiersEnter(start);
+ }
+ }
+ onModifiersLeave(start, end) {
+ if (this._options.onModifiersLeave) {
+ this._options.onModifiersLeave(start, end);
+ }
+ }
+ onAddModifiers(start, end, flags) {
+ if (this._options.onAddModifiers) {
+ this._options.onAddModifiers(start, end, flags);
+ }
+ }
+ onRemoveModifiers(start, end, flags) {
+ if (this._options.onRemoveModifiers) {
+ this._options.onRemoveModifiers(start, end, flags);
+ }
+ }
+ onCapturingGroupEnter(start, name) {
+ if (this._options.onCapturingGroupEnter) {
+ this._options.onCapturingGroupEnter(start, name);
+ }
+ }
+ onCapturingGroupLeave(start, end, name) {
+ if (this._options.onCapturingGroupLeave) {
+ this._options.onCapturingGroupLeave(start, end, name);
+ }
+ }
+ onQuantifier(start, end, min, max, greedy) {
+ if (this._options.onQuantifier) {
+ this._options.onQuantifier(start, end, min, max, greedy);
+ }
+ }
+ onLookaroundAssertionEnter(start, kind, negate) {
+ if (this._options.onLookaroundAssertionEnter) {
+ this._options.onLookaroundAssertionEnter(start, kind, negate);
+ }
+ }
+ onLookaroundAssertionLeave(start, end, kind, negate) {
+ if (this._options.onLookaroundAssertionLeave) {
+ this._options.onLookaroundAssertionLeave(start, end, kind, negate);
+ }
+ }
+ onEdgeAssertion(start, end, kind) {
+ if (this._options.onEdgeAssertion) {
+ this._options.onEdgeAssertion(start, end, kind);
+ }
+ }
+ onWordBoundaryAssertion(start, end, kind, negate) {
+ if (this._options.onWordBoundaryAssertion) {
+ this._options.onWordBoundaryAssertion(start, end, kind, negate);
+ }
+ }
+ onAnyCharacterSet(start, end, kind) {
+ if (this._options.onAnyCharacterSet) {
+ this._options.onAnyCharacterSet(start, end, kind);
+ }
+ }
+ onEscapeCharacterSet(start, end, kind, negate) {
+ if (this._options.onEscapeCharacterSet) {
+ this._options.onEscapeCharacterSet(start, end, kind, negate);
+ }
+ }
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
+ if (this._options.onUnicodePropertyCharacterSet) {
+ this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings);
+ }
+ }
+ onCharacter(start, end, value) {
+ if (this._options.onCharacter) {
+ this._options.onCharacter(start, end, value);
+ }
+ }
+ onBackreference(start, end, ref) {
+ if (this._options.onBackreference) {
+ this._options.onBackreference(start, end, ref);
+ }
+ }
+ onCharacterClassEnter(start, negate, unicodeSets) {
+ if (this._options.onCharacterClassEnter) {
+ this._options.onCharacterClassEnter(start, negate, unicodeSets);
+ }
+ }
+ onCharacterClassLeave(start, end, negate) {
+ if (this._options.onCharacterClassLeave) {
+ this._options.onCharacterClassLeave(start, end, negate);
+ }
+ }
+ onCharacterClassRange(start, end, min, max) {
+ if (this._options.onCharacterClassRange) {
+ this._options.onCharacterClassRange(start, end, min, max);
+ }
+ }
+ onClassIntersection(start, end) {
+ if (this._options.onClassIntersection) {
+ this._options.onClassIntersection(start, end);
+ }
+ }
+ onClassSubtraction(start, end) {
+ if (this._options.onClassSubtraction) {
+ this._options.onClassSubtraction(start, end);
+ }
+ }
+ onClassStringDisjunctionEnter(start) {
+ if (this._options.onClassStringDisjunctionEnter) {
+ this._options.onClassStringDisjunctionEnter(start);
+ }
+ }
+ onClassStringDisjunctionLeave(start, end) {
+ if (this._options.onClassStringDisjunctionLeave) {
+ this._options.onClassStringDisjunctionLeave(start, end);
+ }
+ }
+ onStringAlternativeEnter(start, index) {
+ if (this._options.onStringAlternativeEnter) {
+ this._options.onStringAlternativeEnter(start, index);
+ }
+ }
+ onStringAlternativeLeave(start, end, index) {
+ if (this._options.onStringAlternativeLeave) {
+ this._options.onStringAlternativeLeave(start, end, index);
+ }
+ }
+ get index() {
+ return this._reader.index;
+ }
+ get currentCodePoint() {
+ return this._reader.currentCodePoint;
+ }
+ get nextCodePoint() {
+ return this._reader.nextCodePoint;
+ }
+ get nextCodePoint2() {
+ return this._reader.nextCodePoint2;
+ }
+ get nextCodePoint3() {
+ return this._reader.nextCodePoint3;
+ }
+ reset(source, start, end) {
+ this._reader.reset(source, start, end, this._unicodeMode);
+ }
+ rewind(index) {
+ this._reader.rewind(index);
+ }
+ advance() {
+ this._reader.advance();
+ }
+ eat(cp) {
+ return this._reader.eat(cp);
+ }
+ eat2(cp1, cp2) {
+ return this._reader.eat2(cp1, cp2);
+ }
+ eat3(cp1, cp2, cp3) {
+ return this._reader.eat3(cp1, cp2, cp3);
+ }
+ raise(message, context) {
+ var _a, _b, _c;
+ throw newRegExpSyntaxError(this._srcCtx, {
+ unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode),
+ unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode,
+ }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message);
+ }
+ eatRegExpBody() {
+ const start = this.index;
+ let inClass = false;
+ let escaped = false;
+ for (;;) {
+ const cp = this.currentCodePoint;
+ if (cp === -1 || isLineTerminator(cp)) {
+ const kind = inClass ? "character class" : "regular expression";
+ this.raise(`Unterminated ${kind}`);
+ }
+ if (escaped) {
+ escaped = false;
+ }
+ else if (cp === REVERSE_SOLIDUS) {
+ escaped = true;
+ }
+ else if (cp === LEFT_SQUARE_BRACKET) {
+ inClass = true;
+ }
+ else if (cp === RIGHT_SQUARE_BRACKET) {
+ inClass = false;
+ }
+ else if ((cp === SOLIDUS && !inClass) ||
+ (cp === ASTERISK && this.index === start)) {
+ break;
+ }
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ consumePattern() {
+ const start = this.index;
+ this._numCapturingParens = this.countCapturingParens();
+ this._groupSpecifiers.clear();
+ this._backreferenceNames.clear();
+ this.onPatternEnter(start);
+ this.consumeDisjunction();
+ const cp = this.currentCodePoint;
+ if (this.currentCodePoint !== -1) {
+ if (cp === RIGHT_PARENTHESIS) {
+ this.raise("Unmatched ')'");
+ }
+ if (cp === REVERSE_SOLIDUS) {
+ this.raise("\\ at end of pattern");
+ }
+ if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) {
+ this.raise("Lone quantifier brackets");
+ }
+ const c = String.fromCodePoint(cp);
+ this.raise(`Unexpected character '${c}'`);
+ }
+ for (const name of this._backreferenceNames) {
+ if (!this._groupSpecifiers.hasInPattern(name)) {
+ this.raise("Invalid named capture referenced");
+ }
+ }
+ this.onPatternLeave(start, this.index);
+ }
+ countCapturingParens() {
+ const start = this.index;
+ let inClass = false;
+ let escaped = false;
+ let count = 0;
+ let cp = 0;
+ while ((cp = this.currentCodePoint) !== -1) {
+ if (escaped) {
+ escaped = false;
+ }
+ else if (cp === REVERSE_SOLIDUS) {
+ escaped = true;
+ }
+ else if (cp === LEFT_SQUARE_BRACKET) {
+ inClass = true;
+ }
+ else if (cp === RIGHT_SQUARE_BRACKET) {
+ inClass = false;
+ }
+ else if (cp === LEFT_PARENTHESIS &&
+ !inClass &&
+ (this.nextCodePoint !== QUESTION_MARK ||
+ (this.nextCodePoint2 === LESS_THAN_SIGN &&
+ this.nextCodePoint3 !== EQUALS_SIGN &&
+ this.nextCodePoint3 !== EXCLAMATION_MARK))) {
+ count += 1;
+ }
+ this.advance();
+ }
+ this.rewind(start);
+ return count;
+ }
+ consumeDisjunction() {
+ const start = this.index;
+ let i = 0;
+ this._groupSpecifiers.enterDisjunction();
+ this.onDisjunctionEnter(start);
+ do {
+ this.consumeAlternative(i++);
+ } while (this.eat(VERTICAL_LINE));
+ if (this.consumeQuantifier(true)) {
+ this.raise("Nothing to repeat");
+ }
+ if (this.eat(LEFT_CURLY_BRACKET)) {
+ this.raise("Lone quantifier brackets");
+ }
+ this.onDisjunctionLeave(start, this.index);
+ this._groupSpecifiers.leaveDisjunction();
+ }
+ consumeAlternative(i) {
+ const start = this.index;
+ this._groupSpecifiers.enterAlternative(i);
+ this.onAlternativeEnter(start, i);
+ while (this.currentCodePoint !== -1 && this.consumeTerm()) {
+ }
+ this.onAlternativeLeave(start, this.index, i);
+ }
+ consumeTerm() {
+ if (this._unicodeMode || this.strict) {
+ return (this.consumeAssertion() ||
+ (this.consumeAtom() && this.consumeOptionalQuantifier()));
+ }
+ return ((this.consumeAssertion() &&
+ (!this._lastAssertionIsQuantifiable ||
+ this.consumeOptionalQuantifier())) ||
+ (this.consumeExtendedAtom() && this.consumeOptionalQuantifier()));
+ }
+ consumeOptionalQuantifier() {
+ this.consumeQuantifier();
+ return true;
+ }
+ consumeAssertion() {
+ const start = this.index;
+ this._lastAssertionIsQuantifiable = false;
+ if (this.eat(CIRCUMFLEX_ACCENT)) {
+ this.onEdgeAssertion(start, this.index, "start");
+ return true;
+ }
+ if (this.eat(DOLLAR_SIGN)) {
+ this.onEdgeAssertion(start, this.index, "end");
+ return true;
+ }
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) {
+ this.onWordBoundaryAssertion(start, this.index, "word", true);
+ return true;
+ }
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) {
+ this.onWordBoundaryAssertion(start, this.index, "word", false);
+ return true;
+ }
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
+ const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN);
+ let negate = false;
+ if (this.eat(EQUALS_SIGN) ||
+ (negate = this.eat(EXCLAMATION_MARK))) {
+ const kind = lookbehind ? "lookbehind" : "lookahead";
+ this.onLookaroundAssertionEnter(start, kind, negate);
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this._lastAssertionIsQuantifiable = !lookbehind && !this.strict;
+ this.onLookaroundAssertionLeave(start, this.index, kind, negate);
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeQuantifier(noConsume = false) {
+ const start = this.index;
+ let min = 0;
+ let max = 0;
+ let greedy = false;
+ if (this.eat(ASTERISK)) {
+ min = 0;
+ max = Number.POSITIVE_INFINITY;
+ }
+ else if (this.eat(PLUS_SIGN)) {
+ min = 1;
+ max = Number.POSITIVE_INFINITY;
+ }
+ else if (this.eat(QUESTION_MARK)) {
+ min = 0;
+ max = 1;
+ }
+ else if (this.eatBracedQuantifier(noConsume)) {
+ ({ min, max } = this._lastRange);
+ }
+ else {
+ return false;
+ }
+ greedy = !this.eat(QUESTION_MARK);
+ if (!noConsume) {
+ this.onQuantifier(start, this.index, min, max, greedy);
+ }
+ return true;
+ }
+ eatBracedQuantifier(noError) {
+ const start = this.index;
+ if (this.eat(LEFT_CURLY_BRACKET)) {
+ if (this.eatDecimalDigits()) {
+ const min = this._lastIntValue;
+ let max = min;
+ if (this.eat(COMMA)) {
+ max = this.eatDecimalDigits()
+ ? this._lastIntValue
+ : Number.POSITIVE_INFINITY;
+ }
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
+ if (!noError && max < min) {
+ this.raise("numbers out of order in {} quantifier");
+ }
+ this._lastRange = { min, max };
+ return true;
+ }
+ }
+ if (!noError && (this._unicodeMode || this.strict)) {
+ this.raise("Incomplete quantifier");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeAtom() {
+ return (this.consumePatternCharacter() ||
+ this.consumeDot() ||
+ this.consumeReverseSolidusAtomEscape() ||
+ Boolean(this.consumeCharacterClass()) ||
+ this.consumeCapturingGroup() ||
+ this.consumeUncapturingGroup());
+ }
+ consumeDot() {
+ if (this.eat(FULL_STOP)) {
+ this.onAnyCharacterSet(this.index - 1, this.index, "any");
+ return true;
+ }
+ return false;
+ }
+ consumeReverseSolidusAtomEscape() {
+ const start = this.index;
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeAtomEscape()) {
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeUncapturingGroup() {
+ const start = this.index;
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
+ this.onGroupEnter(start);
+ if (this.ecmaVersion >= 2025) {
+ this.consumeModifiers();
+ }
+ if (!this.eat(COLON)) {
+ this.rewind(start + 1);
+ this.raise("Invalid group");
+ }
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this.onGroupLeave(start, this.index);
+ return true;
+ }
+ return false;
+ }
+ consumeModifiers() {
+ const start = this.index;
+ const hasAddModifiers = this.eatModifiers();
+ const addModifiersEnd = this.index;
+ const hasHyphen = this.eat(HYPHEN_MINUS);
+ if (!hasAddModifiers && !hasHyphen) {
+ return false;
+ }
+ this.onModifiersEnter(start);
+ const addModifiers = this.parseModifiers(start, addModifiersEnd);
+ this.onAddModifiers(start, addModifiersEnd, addModifiers);
+ if (hasHyphen) {
+ const modifiersStart = this.index;
+ if (!this.eatModifiers() &&
+ !hasAddModifiers &&
+ this.currentCodePoint === COLON) {
+ this.raise("Invalid empty flags");
+ }
+ const modifiers = this.parseModifiers(modifiersStart, this.index);
+ for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) {
+ if (addModifiers[flagName]) {
+ this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`);
+ }
+ }
+ this.onRemoveModifiers(modifiersStart, this.index, modifiers);
+ }
+ this.onModifiersLeave(start, this.index);
+ return true;
+ }
+ consumeCapturingGroup() {
+ const start = this.index;
+ if (this.eat(LEFT_PARENTHESIS)) {
+ let name = null;
+ if (this.ecmaVersion >= 2018) {
+ if (this.consumeGroupSpecifier()) {
+ name = this._lastStrValue;
+ }
+ else if (this.currentCodePoint === QUESTION_MARK) {
+ this.rewind(start);
+ return false;
+ }
+ }
+ else if (this.currentCodePoint === QUESTION_MARK) {
+ this.rewind(start);
+ return false;
+ }
+ this.onCapturingGroupEnter(start, name);
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this.onCapturingGroupLeave(start, this.index, name);
+ return true;
+ }
+ return false;
+ }
+ consumeExtendedAtom() {
+ return (this.consumeDot() ||
+ this.consumeReverseSolidusAtomEscape() ||
+ this.consumeReverseSolidusFollowedByC() ||
+ Boolean(this.consumeCharacterClass()) ||
+ this.consumeCapturingGroup() ||
+ this.consumeUncapturingGroup() ||
+ this.consumeInvalidBracedQuantifier() ||
+ this.consumeExtendedPatternCharacter());
+ }
+ consumeReverseSolidusFollowedByC() {
+ const start = this.index;
+ if (this.currentCodePoint === REVERSE_SOLIDUS &&
+ this.nextCodePoint === LATIN_SMALL_LETTER_C) {
+ this._lastIntValue = this.currentCodePoint;
+ this.advance();
+ this.onCharacter(start, this.index, REVERSE_SOLIDUS);
+ return true;
+ }
+ return false;
+ }
+ consumeInvalidBracedQuantifier() {
+ if (this.eatBracedQuantifier(true)) {
+ this.raise("Nothing to repeat");
+ }
+ return false;
+ }
+ consumePatternCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 && !isSyntaxCharacter(cp)) {
+ this.advance();
+ this.onCharacter(start, this.index, cp);
+ return true;
+ }
+ return false;
+ }
+ consumeExtendedPatternCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 &&
+ cp !== CIRCUMFLEX_ACCENT &&
+ cp !== DOLLAR_SIGN &&
+ cp !== REVERSE_SOLIDUS &&
+ cp !== FULL_STOP &&
+ cp !== ASTERISK &&
+ cp !== PLUS_SIGN &&
+ cp !== QUESTION_MARK &&
+ cp !== LEFT_PARENTHESIS &&
+ cp !== RIGHT_PARENTHESIS &&
+ cp !== LEFT_SQUARE_BRACKET &&
+ cp !== VERTICAL_LINE) {
+ this.advance();
+ this.onCharacter(start, this.index, cp);
+ return true;
+ }
+ return false;
+ }
+ consumeGroupSpecifier() {
+ const start = this.index;
+ if (this.eat(QUESTION_MARK)) {
+ if (this.eatGroupName()) {
+ if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) {
+ this._groupSpecifiers.addToScope(this._lastStrValue);
+ return true;
+ }
+ this.raise("Duplicate capture group name");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeAtomEscape() {
+ if (this.consumeBackreference() ||
+ this.consumeCharacterClassEscape() ||
+ this.consumeCharacterEscape() ||
+ (this._nFlag && this.consumeKGroupName())) {
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ return false;
+ }
+ consumeBackreference() {
+ const start = this.index;
+ if (this.eatDecimalEscape()) {
+ const n = this._lastIntValue;
+ if (n <= this._numCapturingParens) {
+ this.onBackreference(start - 1, this.index, n);
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeCharacterClassEscape() {
+ var _a;
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_D)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_D)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", true);
+ return {};
+ }
+ if (this.eat(LATIN_SMALL_LETTER_S)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "space", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_S)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "space", true);
+ return {};
+ }
+ if (this.eat(LATIN_SMALL_LETTER_W)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "word", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_W)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "word", true);
+ return {};
+ }
+ let negate = false;
+ if (this._unicodeMode &&
+ this.ecmaVersion >= 2018 &&
+ (this.eat(LATIN_SMALL_LETTER_P) ||
+ (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) {
+ this._lastIntValue = -1;
+ let result = null;
+ if (this.eat(LEFT_CURLY_BRACKET) &&
+ (result = this.eatUnicodePropertyValueExpression()) &&
+ this.eat(RIGHT_CURLY_BRACKET)) {
+ if (negate && result.strings) {
+ this.raise("Invalid property name");
+ }
+ this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false);
+ return { mayContainStrings: result.strings };
+ }
+ this.raise("Invalid property name");
+ }
+ return null;
+ }
+ consumeCharacterEscape() {
+ const start = this.index;
+ if (this.eatControlEscape() ||
+ this.eatCControlLetter() ||
+ this.eatZero() ||
+ this.eatHexEscapeSequence() ||
+ this.eatRegExpUnicodeEscapeSequence() ||
+ (!this.strict &&
+ !this._unicodeMode &&
+ this.eatLegacyOctalEscapeSequence()) ||
+ this.eatIdentityEscape()) {
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ return false;
+ }
+ consumeKGroupName() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_K)) {
+ if (this.eatGroupName()) {
+ const groupName = this._lastStrValue;
+ this._backreferenceNames.add(groupName);
+ this.onBackreference(start - 1, this.index, groupName);
+ return true;
+ }
+ this.raise("Invalid named reference");
+ }
+ return false;
+ }
+ consumeCharacterClass() {
+ const start = this.index;
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
+ this.onCharacterClassEnter(start, negate, this._unicodeSetsMode);
+ const result = this.consumeClassContents();
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
+ if (this.currentCodePoint === -1) {
+ this.raise("Unterminated character class");
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (negate && result.mayContainStrings) {
+ this.raise("Negated character class may contain strings");
+ }
+ this.onCharacterClassLeave(start, this.index, negate);
+ return result;
+ }
+ return null;
+ }
+ consumeClassContents() {
+ if (this._unicodeSetsMode) {
+ if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) {
+ return {};
+ }
+ const result = this.consumeClassSetExpression();
+ return result;
+ }
+ const strict = this.strict || this._unicodeMode;
+ for (;;) {
+ const rangeStart = this.index;
+ if (!this.consumeClassAtom()) {
+ break;
+ }
+ const min = this._lastIntValue;
+ if (!this.eat(HYPHEN_MINUS)) {
+ continue;
+ }
+ this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS);
+ if (!this.consumeClassAtom()) {
+ break;
+ }
+ const max = this._lastIntValue;
+ if (min === -1 || max === -1) {
+ if (strict) {
+ this.raise("Invalid character class");
+ }
+ continue;
+ }
+ if (min > max) {
+ this.raise("Range out of order in character class");
+ }
+ this.onCharacterClassRange(rangeStart, this.index, min, max);
+ }
+ return {};
+ }
+ consumeClassAtom() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 &&
+ cp !== REVERSE_SOLIDUS &&
+ cp !== RIGHT_SQUARE_BRACKET) {
+ this.advance();
+ this._lastIntValue = cp;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeClassEscape()) {
+ return true;
+ }
+ if (!this.strict &&
+ this.currentCodePoint === LATIN_SMALL_LETTER_C) {
+ this._lastIntValue = REVERSE_SOLIDUS;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeClassEscape() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
+ this._lastIntValue = BACKSPACE;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this._unicodeMode && this.eat(HYPHEN_MINUS)) {
+ this._lastIntValue = HYPHEN_MINUS;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ let cp = 0;
+ if (!this.strict &&
+ !this._unicodeMode &&
+ this.currentCodePoint === LATIN_SMALL_LETTER_C &&
+ (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) {
+ this.advance();
+ this.advance();
+ this._lastIntValue = cp % 0x20;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ return (Boolean(this.consumeCharacterClassEscape()) ||
+ this.consumeCharacterEscape());
+ }
+ consumeClassSetExpression() {
+ const start = this.index;
+ let mayContainStrings = false;
+ let result = null;
+ if (this.consumeClassSetCharacter()) {
+ if (this.consumeClassSetRangeFromOperator(start)) {
+ this.consumeClassUnionRight({});
+ return {};
+ }
+ mayContainStrings = false;
+ }
+ else if ((result = this.consumeClassSetOperand())) {
+ mayContainStrings = result.mayContainStrings;
+ }
+ else {
+ const cp = this.currentCodePoint;
+ if (cp === REVERSE_SOLIDUS) {
+ this.advance();
+ this.raise("Invalid escape");
+ }
+ if (cp === this.nextCodePoint &&
+ isClassSetReservedDoublePunctuatorCharacter(cp)) {
+ this.raise("Invalid set operation in character class");
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
+ while (this.currentCodePoint !== AMPERSAND &&
+ (result = this.consumeClassSetOperand())) {
+ this.onClassIntersection(start, this.index);
+ if (!result.mayContainStrings) {
+ mayContainStrings = false;
+ }
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
+ continue;
+ }
+ return { mayContainStrings };
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
+ while (this.consumeClassSetOperand()) {
+ this.onClassSubtraction(start, this.index);
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
+ continue;
+ }
+ return { mayContainStrings };
+ }
+ this.raise("Invalid character in character class");
+ }
+ return this.consumeClassUnionRight({ mayContainStrings });
+ }
+ consumeClassUnionRight(leftResult) {
+ let mayContainStrings = leftResult.mayContainStrings;
+ for (;;) {
+ const start = this.index;
+ if (this.consumeClassSetCharacter()) {
+ this.consumeClassSetRangeFromOperator(start);
+ continue;
+ }
+ const result = this.consumeClassSetOperand();
+ if (result) {
+ if (result.mayContainStrings) {
+ mayContainStrings = true;
+ }
+ continue;
+ }
+ break;
+ }
+ return { mayContainStrings };
+ }
+ consumeClassSetRangeFromOperator(start) {
+ const currentStart = this.index;
+ const min = this._lastIntValue;
+ if (this.eat(HYPHEN_MINUS)) {
+ if (this.consumeClassSetCharacter()) {
+ const max = this._lastIntValue;
+ if (min === -1 || max === -1) {
+ this.raise("Invalid character class");
+ }
+ if (min > max) {
+ this.raise("Range out of order in character class");
+ }
+ this.onCharacterClassRange(start, this.index, min, max);
+ return true;
+ }
+ this.rewind(currentStart);
+ }
+ return false;
+ }
+ consumeClassSetOperand() {
+ let result = null;
+ if ((result = this.consumeNestedClass())) {
+ return result;
+ }
+ if ((result = this.consumeClassStringDisjunction())) {
+ return result;
+ }
+ if (this.consumeClassSetCharacter()) {
+ return {};
+ }
+ return null;
+ }
+ consumeNestedClass() {
+ const start = this.index;
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
+ this.onCharacterClassEnter(start, negate, true);
+ const result = this.consumeClassContents();
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
+ this.raise("Unterminated character class");
+ }
+ if (negate && result.mayContainStrings) {
+ this.raise("Negated character class may contain strings");
+ }
+ this.onCharacterClassLeave(start, this.index, negate);
+ return result;
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ const result = this.consumeCharacterClassEscape();
+ if (result) {
+ return result;
+ }
+ this.rewind(start);
+ }
+ return null;
+ }
+ consumeClassStringDisjunction() {
+ const start = this.index;
+ if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) {
+ this.onClassStringDisjunctionEnter(start);
+ let i = 0;
+ let mayContainStrings = false;
+ do {
+ if (this.consumeClassString(i++).mayContainStrings) {
+ mayContainStrings = true;
+ }
+ } while (this.eat(VERTICAL_LINE));
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
+ this.onClassStringDisjunctionLeave(start, this.index);
+ return { mayContainStrings };
+ }
+ this.raise("Unterminated class string disjunction");
+ }
+ return null;
+ }
+ consumeClassString(i) {
+ const start = this.index;
+ let count = 0;
+ this.onStringAlternativeEnter(start, i);
+ while (this.currentCodePoint !== -1 &&
+ this.consumeClassSetCharacter()) {
+ count++;
+ }
+ this.onStringAlternativeLeave(start, this.index, i);
+ return { mayContainStrings: count !== 1 };
+ }
+ consumeClassSetCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== this.nextCodePoint ||
+ !isClassSetReservedDoublePunctuatorCharacter(cp)) {
+ if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) {
+ this._lastIntValue = cp;
+ this.advance();
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeCharacterEscape()) {
+ return true;
+ }
+ if (isClassSetReservedPunctuator(this.currentCodePoint)) {
+ this._lastIntValue = this.currentCodePoint;
+ this.advance();
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
+ this._lastIntValue = BACKSPACE;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatGroupName() {
+ if (this.eat(LESS_THAN_SIGN)) {
+ if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) {
+ return true;
+ }
+ this.raise("Invalid capture group name");
+ }
+ return false;
+ }
+ eatRegExpIdentifierName() {
+ if (this.eatRegExpIdentifierStart()) {
+ this._lastStrValue = String.fromCodePoint(this._lastIntValue);
+ while (this.eatRegExpIdentifierPart()) {
+ this._lastStrValue += String.fromCodePoint(this._lastIntValue);
+ }
+ return true;
+ }
+ return false;
+ }
+ eatRegExpIdentifierStart() {
+ const start = this.index;
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
+ let cp = this.currentCodePoint;
+ this.advance();
+ if (cp === REVERSE_SOLIDUS &&
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
+ cp = this._lastIntValue;
+ }
+ else if (forceUFlag &&
+ isLeadSurrogate(cp) &&
+ isTrailSurrogate(this.currentCodePoint)) {
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
+ this.advance();
+ }
+ if (isIdentifierStartChar(cp)) {
+ this._lastIntValue = cp;
+ return true;
+ }
+ if (this.index !== start) {
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpIdentifierPart() {
+ const start = this.index;
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
+ let cp = this.currentCodePoint;
+ this.advance();
+ if (cp === REVERSE_SOLIDUS &&
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
+ cp = this._lastIntValue;
+ }
+ else if (forceUFlag &&
+ isLeadSurrogate(cp) &&
+ isTrailSurrogate(this.currentCodePoint)) {
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
+ this.advance();
+ }
+ if (isIdentifierPartChar(cp)) {
+ this._lastIntValue = cp;
+ return true;
+ }
+ if (this.index !== start) {
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatCControlLetter() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_C)) {
+ if (this.eatControlLetter()) {
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatZero() {
+ if (this.currentCodePoint === DIGIT_ZERO &&
+ !isDecimalDigit(this.nextCodePoint)) {
+ this._lastIntValue = 0;
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eatControlEscape() {
+ if (this.eat(LATIN_SMALL_LETTER_F)) {
+ this._lastIntValue = FORM_FEED;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_N)) {
+ this._lastIntValue = LINE_FEED;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_R)) {
+ this._lastIntValue = CARRIAGE_RETURN;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_T)) {
+ this._lastIntValue = CHARACTER_TABULATION;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_V)) {
+ this._lastIntValue = LINE_TABULATION;
+ return true;
+ }
+ return false;
+ }
+ eatControlLetter() {
+ const cp = this.currentCodePoint;
+ if (isLatinLetter(cp)) {
+ this.advance();
+ this._lastIntValue = cp % 0x20;
+ return true;
+ }
+ return false;
+ }
+ eatRegExpUnicodeEscapeSequence(forceUFlag = false) {
+ const start = this.index;
+ const uFlag = forceUFlag || this._unicodeMode;
+ if (this.eat(LATIN_SMALL_LETTER_U)) {
+ if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) ||
+ this.eatFixedHexDigits(4) ||
+ (uFlag && this.eatRegExpUnicodeCodePointEscape())) {
+ return true;
+ }
+ if (this.strict || uFlag) {
+ this.raise("Invalid unicode escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpUnicodeSurrogatePairEscape() {
+ const start = this.index;
+ if (this.eatFixedHexDigits(4)) {
+ const lead = this._lastIntValue;
+ if (isLeadSurrogate(lead) &&
+ this.eat(REVERSE_SOLIDUS) &&
+ this.eat(LATIN_SMALL_LETTER_U) &&
+ this.eatFixedHexDigits(4)) {
+ const trail = this._lastIntValue;
+ if (isTrailSurrogate(trail)) {
+ this._lastIntValue = combineSurrogatePair(lead, trail);
+ return true;
+ }
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpUnicodeCodePointEscape() {
+ const start = this.index;
+ if (this.eat(LEFT_CURLY_BRACKET) &&
+ this.eatHexDigits() &&
+ this.eat(RIGHT_CURLY_BRACKET) &&
+ isValidUnicode(this._lastIntValue)) {
+ return true;
+ }
+ this.rewind(start);
+ return false;
+ }
+ eatIdentityEscape() {
+ const cp = this.currentCodePoint;
+ if (this.isValidIdentityEscape(cp)) {
+ this._lastIntValue = cp;
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ isValidIdentityEscape(cp) {
+ if (cp === -1) {
+ return false;
+ }
+ if (this._unicodeMode) {
+ return isSyntaxCharacter(cp) || cp === SOLIDUS;
+ }
+ if (this.strict) {
+ return !isIdContinue(cp);
+ }
+ if (this._nFlag) {
+ return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K);
+ }
+ return cp !== LATIN_SMALL_LETTER_C;
+ }
+ eatDecimalEscape() {
+ this._lastIntValue = 0;
+ let cp = this.currentCodePoint;
+ if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) {
+ do {
+ this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO);
+ this.advance();
+ } while ((cp = this.currentCodePoint) >= DIGIT_ZERO &&
+ cp <= DIGIT_NINE);
+ return true;
+ }
+ return false;
+ }
+ eatUnicodePropertyValueExpression() {
+ const start = this.index;
+ if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) {
+ const key = this._lastStrValue;
+ if (this.eatUnicodePropertyValue()) {
+ const value = this._lastStrValue;
+ if (isValidUnicodeProperty(this.ecmaVersion, key, value)) {
+ return {
+ key,
+ value: value || null,
+ };
+ }
+ this.raise("Invalid property name");
+ }
+ }
+ this.rewind(start);
+ if (this.eatLoneUnicodePropertyNameOrValue()) {
+ const nameOrValue = this._lastStrValue;
+ if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) {
+ return {
+ key: "General_Category",
+ value: nameOrValue || null,
+ };
+ }
+ if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) {
+ return {
+ key: nameOrValue,
+ value: null,
+ };
+ }
+ if (this._unicodeSetsMode &&
+ isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) {
+ return {
+ key: nameOrValue,
+ value: null,
+ strings: true,
+ };
+ }
+ this.raise("Invalid property name");
+ }
+ return null;
+ }
+ eatUnicodePropertyName() {
+ this._lastStrValue = "";
+ while (isUnicodePropertyNameCharacter(this.currentCodePoint)) {
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
+ this.advance();
+ }
+ return this._lastStrValue !== "";
+ }
+ eatUnicodePropertyValue() {
+ this._lastStrValue = "";
+ while (isUnicodePropertyValueCharacter(this.currentCodePoint)) {
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
+ this.advance();
+ }
+ return this._lastStrValue !== "";
+ }
+ eatLoneUnicodePropertyNameOrValue() {
+ return this.eatUnicodePropertyValue();
+ }
+ eatHexEscapeSequence() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_X)) {
+ if (this.eatFixedHexDigits(2)) {
+ return true;
+ }
+ if (this._unicodeMode || this.strict) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatDecimalDigits() {
+ const start = this.index;
+ this._lastIntValue = 0;
+ while (isDecimalDigit(this.currentCodePoint)) {
+ this._lastIntValue =
+ 10 * this._lastIntValue + digitToInt(this.currentCodePoint);
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ eatHexDigits() {
+ const start = this.index;
+ this._lastIntValue = 0;
+ while (isHexDigit(this.currentCodePoint)) {
+ this._lastIntValue =
+ 16 * this._lastIntValue + digitToInt(this.currentCodePoint);
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ eatLegacyOctalEscapeSequence() {
+ if (this.eatOctalDigit()) {
+ const n1 = this._lastIntValue;
+ if (this.eatOctalDigit()) {
+ const n2 = this._lastIntValue;
+ if (n1 <= 3 && this.eatOctalDigit()) {
+ this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue;
+ }
+ else {
+ this._lastIntValue = n1 * 8 + n2;
+ }
+ }
+ else {
+ this._lastIntValue = n1;
+ }
+ return true;
+ }
+ return false;
+ }
+ eatOctalDigit() {
+ const cp = this.currentCodePoint;
+ if (isOctalDigit(cp)) {
+ this.advance();
+ this._lastIntValue = cp - DIGIT_ZERO;
+ return true;
+ }
+ this._lastIntValue = 0;
+ return false;
+ }
+ eatFixedHexDigits(length) {
+ const start = this.index;
+ this._lastIntValue = 0;
+ for (let i = 0; i < length; ++i) {
+ const cp = this.currentCodePoint;
+ if (!isHexDigit(cp)) {
+ this.rewind(start);
+ return false;
+ }
+ this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp);
+ this.advance();
+ }
+ return true;
+ }
+ eatModifiers() {
+ let ate = false;
+ while (isRegularExpressionModifier(this.currentCodePoint)) {
+ this.advance();
+ ate = true;
+ }
+ return ate;
+ }
+ parseModifiers(start, end) {
+ const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end);
+ return { ignoreCase, multiline, dotAll };
+ }
+ parseFlags(source, start, end) {
+ const flags = {
+ global: false,
+ ignoreCase: false,
+ multiline: false,
+ unicode: false,
+ sticky: false,
+ dotAll: false,
+ hasIndices: false,
+ unicodeSets: false,
+ };
+ const validFlags = new Set();
+ validFlags.add(LATIN_SMALL_LETTER_G);
+ validFlags.add(LATIN_SMALL_LETTER_I);
+ validFlags.add(LATIN_SMALL_LETTER_M);
+ if (this.ecmaVersion >= 2015) {
+ validFlags.add(LATIN_SMALL_LETTER_U);
+ validFlags.add(LATIN_SMALL_LETTER_Y);
+ if (this.ecmaVersion >= 2018) {
+ validFlags.add(LATIN_SMALL_LETTER_S);
+ if (this.ecmaVersion >= 2022) {
+ validFlags.add(LATIN_SMALL_LETTER_D);
+ if (this.ecmaVersion >= 2024) {
+ validFlags.add(LATIN_SMALL_LETTER_V);
+ }
+ }
+ }
+ }
+ for (let i = start; i < end; ++i) {
+ const flag = source.charCodeAt(i);
+ if (validFlags.has(flag)) {
+ const prop = FLAG_CODEPOINT_TO_PROP[flag];
+ if (flags[prop]) {
+ this.raise(`Duplicated flag '${source[i]}'`, {
+ index: start,
+ });
+ }
+ flags[prop] = true;
+ }
+ else {
+ this.raise(`Invalid flag '${source[i]}'`, { index: start });
+ }
+ }
+ return flags;
+ }
+}
+
+const DUMMY_PATTERN = {};
+const DUMMY_FLAGS = {};
+const DUMMY_CAPTURING_GROUP = {};
+function isClassSetOperand(node) {
+ return (node.type === "Character" ||
+ node.type === "CharacterSet" ||
+ node.type === "CharacterClass" ||
+ node.type === "ExpressionCharacterClass" ||
+ node.type === "ClassStringDisjunction");
+}
+class RegExpParserState {
+ constructor(options) {
+ var _a;
+ this._node = DUMMY_PATTERN;
+ this._expressionBufferMap = new Map();
+ this._flags = DUMMY_FLAGS;
+ this._backreferences = [];
+ this._capturingGroups = [];
+ this.source = "";
+ this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict);
+ this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
+ }
+ get pattern() {
+ if (this._node.type !== "Pattern") {
+ throw new Error("UnknownError");
+ }
+ return this._node;
+ }
+ get flags() {
+ if (this._flags.type !== "Flags") {
+ throw new Error("UnknownError");
+ }
+ return this._flags;
+ }
+ onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) {
+ this._flags = {
+ type: "Flags",
+ parent: null,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ global,
+ ignoreCase,
+ multiline,
+ unicode,
+ sticky,
+ dotAll,
+ hasIndices,
+ unicodeSets,
+ };
+ }
+ onPatternEnter(start) {
+ this._node = {
+ type: "Pattern",
+ parent: null,
+ start,
+ end: start,
+ raw: "",
+ alternatives: [],
+ };
+ this._backreferences.length = 0;
+ this._capturingGroups.length = 0;
+ }
+ onPatternLeave(start, end) {
+ this._node.end = end;
+ this._node.raw = this.source.slice(start, end);
+ for (const reference of this._backreferences) {
+ const ref = reference.ref;
+ const groups = typeof ref === "number"
+ ? [this._capturingGroups[ref - 1]]
+ : this._capturingGroups.filter((g) => g.name === ref);
+ if (groups.length === 1) {
+ const group = groups[0];
+ reference.ambiguous = false;
+ reference.resolved = group;
+ }
+ else {
+ reference.ambiguous = true;
+ reference.resolved = groups;
+ }
+ for (const group of groups) {
+ group.references.push(reference);
+ }
+ }
+ }
+ onAlternativeEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Assertion" &&
+ parent.type !== "CapturingGroup" &&
+ parent.type !== "Group" &&
+ parent.type !== "Pattern") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "Alternative",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ elements: [],
+ };
+ parent.alternatives.push(this._node);
+ }
+ onAlternativeLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onGroupEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const group = {
+ type: "Group",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ modifiers: null,
+ alternatives: [],
+ };
+ this._node = group;
+ parent.elements.push(this._node);
+ }
+ onGroupLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Group" || node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onModifiersEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Group") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "Modifiers",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ add: null,
+ remove: null,
+ };
+ parent.modifiers = this._node;
+ }
+ onModifiersLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Modifiers" || node.parent.type !== "Group") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
+ const parent = this._node;
+ if (parent.type !== "Modifiers") {
+ throw new Error("UnknownError");
+ }
+ parent.add = {
+ type: "ModifierFlags",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ignoreCase,
+ multiline,
+ dotAll,
+ };
+ }
+ onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
+ const parent = this._node;
+ if (parent.type !== "Modifiers") {
+ throw new Error("UnknownError");
+ }
+ parent.remove = {
+ type: "ModifierFlags",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ignoreCase,
+ multiline,
+ dotAll,
+ };
+ }
+ onCapturingGroupEnter(start, name) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "CapturingGroup",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ name,
+ alternatives: [],
+ references: [],
+ };
+ parent.elements.push(this._node);
+ this._capturingGroups.push(this._node);
+ }
+ onCapturingGroupLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "CapturingGroup" ||
+ node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onQuantifier(start, end, min, max, greedy) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const element = parent.elements.pop();
+ if (element == null ||
+ element.type === "Quantifier" ||
+ (element.type === "Assertion" && element.kind !== "lookahead")) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "Quantifier",
+ parent,
+ start: element.start,
+ end,
+ raw: this.source.slice(element.start, end),
+ min,
+ max,
+ greedy,
+ element,
+ };
+ parent.elements.push(node);
+ element.parent = node;
+ }
+ onLookaroundAssertionEnter(start, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const node = (this._node = {
+ type: "Assertion",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ kind,
+ negate,
+ alternatives: [],
+ });
+ parent.elements.push(node);
+ }
+ onLookaroundAssertionLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Assertion" || node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onEdgeAssertion(start, end, kind) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Assertion",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ });
+ }
+ onWordBoundaryAssertion(start, end, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Assertion",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ negate,
+ });
+ }
+ onAnyCharacterSet(start, end, kind) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "CharacterSet",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ });
+ }
+ onEscapeCharacterSet(start, end, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "CharacterSet",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ negate,
+ });
+ }
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ const base = {
+ type: "CharacterSet",
+ parent: null,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ strings: null,
+ key,
+ };
+ if (strings) {
+ if ((parent.type === "CharacterClass" && !parent.unicodeSets) ||
+ negate ||
+ value !== null) {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
+ }
+ else {
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
+ }
+ }
+ onCharacter(start, end, value) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" &&
+ parent.type !== "CharacterClass" &&
+ parent.type !== "StringAlternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Character",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ value,
+ });
+ }
+ onBackreference(start, end, ref) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "Backreference",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ref,
+ ambiguous: false,
+ resolved: DUMMY_CAPTURING_GROUP,
+ };
+ parent.elements.push(node);
+ this._backreferences.push(node);
+ }
+ onCharacterClassEnter(start, negate, unicodeSets) {
+ const parent = this._node;
+ const base = {
+ type: "CharacterClass",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ unicodeSets,
+ negate,
+ elements: [],
+ };
+ if (parent.type === "Alternative") {
+ const node = Object.assign(Object.assign({}, base), { parent });
+ this._node = node;
+ parent.elements.push(node);
+ }
+ else if (parent.type === "CharacterClass" &&
+ parent.unicodeSets &&
+ unicodeSets) {
+ const node = Object.assign(Object.assign({}, base), { parent,
+ unicodeSets });
+ this._node = node;
+ parent.elements.push(node);
+ }
+ else {
+ throw new Error("UnknownError");
+ }
+ }
+ onCharacterClassLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "CharacterClass" ||
+ (node.parent.type !== "Alternative" &&
+ node.parent.type !== "CharacterClass")) {
+ throw new Error("UnknownError");
+ }
+ const parent = node.parent;
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = parent;
+ const expression = this._expressionBufferMap.get(node);
+ if (!expression) {
+ return;
+ }
+ if (node.elements.length > 0) {
+ throw new Error("UnknownError");
+ }
+ this._expressionBufferMap.delete(node);
+ const newNode = {
+ type: "ExpressionCharacterClass",
+ parent,
+ start: node.start,
+ end: node.end,
+ raw: node.raw,
+ negate: node.negate,
+ expression,
+ };
+ expression.parent = newNode;
+ if (node !== parent.elements.pop()) {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push(newNode);
+ }
+ onCharacterClassRange(start, end) {
+ const parent = this._node;
+ if (parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ const elements = parent.elements;
+ const max = elements.pop();
+ if (!max || max.type !== "Character") {
+ throw new Error("UnknownError");
+ }
+ if (!parent.unicodeSets) {
+ const hyphen = elements.pop();
+ if (!hyphen ||
+ hyphen.type !== "Character" ||
+ hyphen.value !== HYPHEN_MINUS) {
+ throw new Error("UnknownError");
+ }
+ }
+ const min = elements.pop();
+ if (!min || min.type !== "Character") {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "CharacterClassRange",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ min,
+ max,
+ };
+ min.parent = node;
+ max.parent = node;
+ elements.push(node);
+ }
+ onClassIntersection(start, end) {
+ var _a;
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ const right = parent.elements.pop();
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
+ if (!left ||
+ !right ||
+ left.type === "ClassSubtraction" ||
+ (left.type !== "ClassIntersection" && !isClassSetOperand(left)) ||
+ !isClassSetOperand(right)) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "ClassIntersection",
+ parent: parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ left,
+ right,
+ };
+ left.parent = node;
+ right.parent = node;
+ this._expressionBufferMap.set(parent, node);
+ }
+ onClassSubtraction(start, end) {
+ var _a;
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ const right = parent.elements.pop();
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
+ if (!left ||
+ !right ||
+ left.type === "ClassIntersection" ||
+ (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) ||
+ !isClassSetOperand(right)) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "ClassSubtraction",
+ parent: parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ left,
+ right,
+ };
+ left.parent = node;
+ right.parent = node;
+ this._expressionBufferMap.set(parent, node);
+ }
+ onClassStringDisjunctionEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "ClassStringDisjunction",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ alternatives: [],
+ };
+ parent.elements.push(this._node);
+ }
+ onClassStringDisjunctionLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "ClassStringDisjunction" ||
+ node.parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onStringAlternativeEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "ClassStringDisjunction") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "StringAlternative",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ elements: [],
+ };
+ parent.alternatives.push(this._node);
+ }
+ onStringAlternativeLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "StringAlternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+}
+class RegExpParser {
+ constructor(options) {
+ this._state = new RegExpParserState(options);
+ this._validator = new RegExpValidator(this._state);
+ }
+ parseLiteral(source, start = 0, end = source.length) {
+ this._state.source = source;
+ this._validator.validateLiteral(source, start, end);
+ const pattern = this._state.pattern;
+ const flags = this._state.flags;
+ const literal = {
+ type: "RegExpLiteral",
+ parent: null,
+ start,
+ end,
+ raw: source,
+ pattern,
+ flags,
+ };
+ pattern.parent = literal;
+ flags.parent = literal;
+ return literal;
+ }
+ parseFlags(source, start = 0, end = source.length) {
+ this._state.source = source;
+ this._validator.validateFlags(source, start, end);
+ return this._state.flags;
+ }
+ parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ this._state.source = source;
+ this._validator.validatePattern(source, start, end, uFlagOrFlags);
+ return this._state.pattern;
+ }
+}
+
+class RegExpVisitor {
+ constructor(handlers) {
+ this._handlers = handlers;
+ }
+ visit(node) {
+ switch (node.type) {
+ case "Alternative":
+ this.visitAlternative(node);
+ break;
+ case "Assertion":
+ this.visitAssertion(node);
+ break;
+ case "Backreference":
+ this.visitBackreference(node);
+ break;
+ case "CapturingGroup":
+ this.visitCapturingGroup(node);
+ break;
+ case "Character":
+ this.visitCharacter(node);
+ break;
+ case "CharacterClass":
+ this.visitCharacterClass(node);
+ break;
+ case "CharacterClassRange":
+ this.visitCharacterClassRange(node);
+ break;
+ case "CharacterSet":
+ this.visitCharacterSet(node);
+ break;
+ case "ClassIntersection":
+ this.visitClassIntersection(node);
+ break;
+ case "ClassStringDisjunction":
+ this.visitClassStringDisjunction(node);
+ break;
+ case "ClassSubtraction":
+ this.visitClassSubtraction(node);
+ break;
+ case "ExpressionCharacterClass":
+ this.visitExpressionCharacterClass(node);
+ break;
+ case "Flags":
+ this.visitFlags(node);
+ break;
+ case "Group":
+ this.visitGroup(node);
+ break;
+ case "Modifiers":
+ this.visitModifiers(node);
+ break;
+ case "ModifierFlags":
+ this.visitModifierFlags(node);
+ break;
+ case "Pattern":
+ this.visitPattern(node);
+ break;
+ case "Quantifier":
+ this.visitQuantifier(node);
+ break;
+ case "RegExpLiteral":
+ this.visitRegExpLiteral(node);
+ break;
+ case "StringAlternative":
+ this.visitStringAlternative(node);
+ break;
+ default:
+ throw new Error(`Unknown type: ${node.type}`);
+ }
+ }
+ visitAlternative(node) {
+ if (this._handlers.onAlternativeEnter) {
+ this._handlers.onAlternativeEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onAlternativeLeave) {
+ this._handlers.onAlternativeLeave(node);
+ }
+ }
+ visitAssertion(node) {
+ if (this._handlers.onAssertionEnter) {
+ this._handlers.onAssertionEnter(node);
+ }
+ if (node.kind === "lookahead" || node.kind === "lookbehind") {
+ node.alternatives.forEach(this.visit, this);
+ }
+ if (this._handlers.onAssertionLeave) {
+ this._handlers.onAssertionLeave(node);
+ }
+ }
+ visitBackreference(node) {
+ if (this._handlers.onBackreferenceEnter) {
+ this._handlers.onBackreferenceEnter(node);
+ }
+ if (this._handlers.onBackreferenceLeave) {
+ this._handlers.onBackreferenceLeave(node);
+ }
+ }
+ visitCapturingGroup(node) {
+ if (this._handlers.onCapturingGroupEnter) {
+ this._handlers.onCapturingGroupEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onCapturingGroupLeave) {
+ this._handlers.onCapturingGroupLeave(node);
+ }
+ }
+ visitCharacter(node) {
+ if (this._handlers.onCharacterEnter) {
+ this._handlers.onCharacterEnter(node);
+ }
+ if (this._handlers.onCharacterLeave) {
+ this._handlers.onCharacterLeave(node);
+ }
+ }
+ visitCharacterClass(node) {
+ if (this._handlers.onCharacterClassEnter) {
+ this._handlers.onCharacterClassEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onCharacterClassLeave) {
+ this._handlers.onCharacterClassLeave(node);
+ }
+ }
+ visitCharacterClassRange(node) {
+ if (this._handlers.onCharacterClassRangeEnter) {
+ this._handlers.onCharacterClassRangeEnter(node);
+ }
+ this.visitCharacter(node.min);
+ this.visitCharacter(node.max);
+ if (this._handlers.onCharacterClassRangeLeave) {
+ this._handlers.onCharacterClassRangeLeave(node);
+ }
+ }
+ visitCharacterSet(node) {
+ if (this._handlers.onCharacterSetEnter) {
+ this._handlers.onCharacterSetEnter(node);
+ }
+ if (this._handlers.onCharacterSetLeave) {
+ this._handlers.onCharacterSetLeave(node);
+ }
+ }
+ visitClassIntersection(node) {
+ if (this._handlers.onClassIntersectionEnter) {
+ this._handlers.onClassIntersectionEnter(node);
+ }
+ this.visit(node.left);
+ this.visit(node.right);
+ if (this._handlers.onClassIntersectionLeave) {
+ this._handlers.onClassIntersectionLeave(node);
+ }
+ }
+ visitClassStringDisjunction(node) {
+ if (this._handlers.onClassStringDisjunctionEnter) {
+ this._handlers.onClassStringDisjunctionEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onClassStringDisjunctionLeave) {
+ this._handlers.onClassStringDisjunctionLeave(node);
+ }
+ }
+ visitClassSubtraction(node) {
+ if (this._handlers.onClassSubtractionEnter) {
+ this._handlers.onClassSubtractionEnter(node);
+ }
+ this.visit(node.left);
+ this.visit(node.right);
+ if (this._handlers.onClassSubtractionLeave) {
+ this._handlers.onClassSubtractionLeave(node);
+ }
+ }
+ visitExpressionCharacterClass(node) {
+ if (this._handlers.onExpressionCharacterClassEnter) {
+ this._handlers.onExpressionCharacterClassEnter(node);
+ }
+ this.visit(node.expression);
+ if (this._handlers.onExpressionCharacterClassLeave) {
+ this._handlers.onExpressionCharacterClassLeave(node);
+ }
+ }
+ visitFlags(node) {
+ if (this._handlers.onFlagsEnter) {
+ this._handlers.onFlagsEnter(node);
+ }
+ if (this._handlers.onFlagsLeave) {
+ this._handlers.onFlagsLeave(node);
+ }
+ }
+ visitGroup(node) {
+ if (this._handlers.onGroupEnter) {
+ this._handlers.onGroupEnter(node);
+ }
+ if (node.modifiers) {
+ this.visit(node.modifiers);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onGroupLeave) {
+ this._handlers.onGroupLeave(node);
+ }
+ }
+ visitModifiers(node) {
+ if (this._handlers.onModifiersEnter) {
+ this._handlers.onModifiersEnter(node);
+ }
+ if (node.add) {
+ this.visit(node.add);
+ }
+ if (node.remove) {
+ this.visit(node.remove);
+ }
+ if (this._handlers.onModifiersLeave) {
+ this._handlers.onModifiersLeave(node);
+ }
+ }
+ visitModifierFlags(node) {
+ if (this._handlers.onModifierFlagsEnter) {
+ this._handlers.onModifierFlagsEnter(node);
+ }
+ if (this._handlers.onModifierFlagsLeave) {
+ this._handlers.onModifierFlagsLeave(node);
+ }
+ }
+ visitPattern(node) {
+ if (this._handlers.onPatternEnter) {
+ this._handlers.onPatternEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onPatternLeave) {
+ this._handlers.onPatternLeave(node);
+ }
+ }
+ visitQuantifier(node) {
+ if (this._handlers.onQuantifierEnter) {
+ this._handlers.onQuantifierEnter(node);
+ }
+ this.visit(node.element);
+ if (this._handlers.onQuantifierLeave) {
+ this._handlers.onQuantifierLeave(node);
+ }
+ }
+ visitRegExpLiteral(node) {
+ if (this._handlers.onRegExpLiteralEnter) {
+ this._handlers.onRegExpLiteralEnter(node);
+ }
+ this.visitPattern(node.pattern);
+ this.visitFlags(node.flags);
+ if (this._handlers.onRegExpLiteralLeave) {
+ this._handlers.onRegExpLiteralLeave(node);
+ }
+ }
+ visitStringAlternative(node) {
+ if (this._handlers.onStringAlternativeEnter) {
+ this._handlers.onStringAlternativeEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onStringAlternativeLeave) {
+ this._handlers.onStringAlternativeLeave(node);
+ }
+ }
+}
+
+function parseRegExpLiteral(source, options) {
+ return new RegExpParser(options).parseLiteral(String(source));
+}
+function validateRegExpLiteral(source, options) {
+ new RegExpValidator(options).validateLiteral(source);
+}
+function visitRegExpAST(node, handlers) {
+ new RegExpVisitor(handlers).visit(node);
+}
+
+exports.AST = ast;
+exports.RegExpParser = RegExpParser;
+exports.RegExpSyntaxError = RegExpSyntaxError;
+exports.RegExpValidator = RegExpValidator;
+exports.parseRegExpLiteral = parseRegExpLiteral;
+exports.validateRegExpLiteral = validateRegExpLiteral;
+exports.visitRegExpAST = visitRegExpAST;
+//# sourceMappingURL=index.js.map
diff --git a/node_modules/@eslint-community/regexpp/index.js.map b/node_modules/@eslint-community/regexpp/index.js.map
new file mode 100644
index 00000000000..a13b289a036
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.ts",".temp/src/parser.ts",".temp/src/visitor.ts",".temp/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;AAaO,MAAM,iBAAiB,GAAG,IAAI;;ACTrC,IAAI,kBAAkB,GAAyB,SAAS,CAAA;AACxD,IAAI,qBAAqB,GAAyB,SAAS,CAAA;AAErD,SAAU,SAAS,CAAC,EAAU,EAAA;IAChC,IAAI,EAA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AAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;ACpTe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;;;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@eslint-community/regexpp/index.mjs b/node_modules/@eslint-community/regexpp/index.mjs
new file mode 100644
index 00000000000..7652c62b604
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/index.mjs
@@ -0,0 +1,3027 @@
+var ast = /*#__PURE__*/Object.freeze({
+ __proto__: null
+});
+
+const latestEcmaVersion = 2025;
+
+let largeIdStartRanges = undefined;
+let largeIdContinueRanges = undefined;
+function isIdStart(cp) {
+ if (cp < 0x41)
+ return false;
+ if (cp < 0x5b)
+ return true;
+ if (cp < 0x61)
+ return false;
+ if (cp < 0x7b)
+ return true;
+ return isLargeIdStart(cp);
+}
+function isIdContinue(cp) {
+ if (cp < 0x30)
+ return false;
+ if (cp < 0x3a)
+ return true;
+ if (cp < 0x41)
+ return false;
+ if (cp < 0x5b)
+ return true;
+ if (cp === 0x5f)
+ return true;
+ if (cp < 0x61)
+ return false;
+ if (cp < 0x7b)
+ return true;
+ return isLargeIdStart(cp) || isLargeIdContinue(cp);
+}
+function isLargeIdStart(cp) {
+ return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges()));
+}
+function isLargeIdContinue(cp) {
+ return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges()));
+}
+function initLargeIdStartRanges() {
+ return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 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 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f");
+}
+function initLargeIdContinueRanges() {
+ return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 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 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n");
+}
+function isInRange(cp, ranges) {
+ let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0;
+ while (l < r) {
+ i = ((l + r) / 2) | 0;
+ min = ranges[2 * i];
+ max = ranges[2 * i + 1];
+ if (cp < min) {
+ r = i;
+ }
+ else if (cp > max) {
+ l = i + 1;
+ }
+ else {
+ return true;
+ }
+ }
+ return false;
+}
+function restoreRanges(data) {
+ let last = 0;
+ return data.split(" ").map((s) => (last += parseInt(s, 36) | 0));
+}
+
+class DataSet {
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025) {
+ this._raw2018 = raw2018;
+ this._raw2019 = raw2019;
+ this._raw2020 = raw2020;
+ this._raw2021 = raw2021;
+ this._raw2022 = raw2022;
+ this._raw2023 = raw2023;
+ this._raw2024 = raw2024;
+ this._raw2025 = raw2025;
+ }
+ get es2018() {
+ var _a;
+ return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" "))));
+ }
+ get es2019() {
+ var _a;
+ return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" "))));
+ }
+ get es2020() {
+ var _a;
+ return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" "))));
+ }
+ get es2021() {
+ var _a;
+ return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" "))));
+ }
+ get es2022() {
+ var _a;
+ return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" "))));
+ }
+ get es2023() {
+ var _a;
+ return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" "))));
+ }
+ get es2024() {
+ var _a;
+ return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" "))));
+ }
+ get es2025() {
+ var _a;
+ return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" "))));
+ }
+}
+const gcNameSet = new Set(["General_Category", "gc"]);
+const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
+const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", "");
+const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", "", "");
+const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", "");
+const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", "");
+function isValidUnicodeProperty(version, name, value) {
+ if (gcNameSet.has(name)) {
+ return version >= 2018 && gcValueSets.es2018.has(value);
+ }
+ if (scNameSet.has(name)) {
+ return ((version >= 2018 && scValueSets.es2018.has(value)) ||
+ (version >= 2019 && scValueSets.es2019.has(value)) ||
+ (version >= 2020 && scValueSets.es2020.has(value)) ||
+ (version >= 2021 && scValueSets.es2021.has(value)) ||
+ (version >= 2022 && scValueSets.es2022.has(value)) ||
+ (version >= 2023 && scValueSets.es2023.has(value)));
+ }
+ return false;
+}
+function isValidLoneUnicodeProperty(version, value) {
+ return ((version >= 2018 && binPropertySets.es2018.has(value)) ||
+ (version >= 2019 && binPropertySets.es2019.has(value)) ||
+ (version >= 2021 && binPropertySets.es2021.has(value)));
+}
+function isValidLoneUnicodePropertyOfString(version, value) {
+ return version >= 2024 && binPropertyOfStringsSets.es2024.has(value);
+}
+
+const BACKSPACE = 0x08;
+const CHARACTER_TABULATION = 0x09;
+const LINE_FEED = 0x0a;
+const LINE_TABULATION = 0x0b;
+const FORM_FEED = 0x0c;
+const CARRIAGE_RETURN = 0x0d;
+const EXCLAMATION_MARK = 0x21;
+const NUMBER_SIGN = 0x23;
+const DOLLAR_SIGN = 0x24;
+const PERCENT_SIGN = 0x25;
+const AMPERSAND = 0x26;
+const LEFT_PARENTHESIS = 0x28;
+const RIGHT_PARENTHESIS = 0x29;
+const ASTERISK = 0x2a;
+const PLUS_SIGN = 0x2b;
+const COMMA = 0x2c;
+const HYPHEN_MINUS = 0x2d;
+const FULL_STOP = 0x2e;
+const SOLIDUS = 0x2f;
+const DIGIT_ZERO = 0x30;
+const DIGIT_ONE = 0x31;
+const DIGIT_SEVEN = 0x37;
+const DIGIT_NINE = 0x39;
+const COLON = 0x3a;
+const SEMICOLON = 0x3b;
+const LESS_THAN_SIGN = 0x3c;
+const EQUALS_SIGN = 0x3d;
+const GREATER_THAN_SIGN = 0x3e;
+const QUESTION_MARK = 0x3f;
+const COMMERCIAL_AT = 0x40;
+const LATIN_CAPITAL_LETTER_A = 0x41;
+const LATIN_CAPITAL_LETTER_B = 0x42;
+const LATIN_CAPITAL_LETTER_D = 0x44;
+const LATIN_CAPITAL_LETTER_F = 0x46;
+const LATIN_CAPITAL_LETTER_P = 0x50;
+const LATIN_CAPITAL_LETTER_S = 0x53;
+const LATIN_CAPITAL_LETTER_W = 0x57;
+const LATIN_CAPITAL_LETTER_Z = 0x5a;
+const LOW_LINE = 0x5f;
+const LATIN_SMALL_LETTER_A = 0x61;
+const LATIN_SMALL_LETTER_B = 0x62;
+const LATIN_SMALL_LETTER_C = 0x63;
+const LATIN_SMALL_LETTER_D = 0x64;
+const LATIN_SMALL_LETTER_F = 0x66;
+const LATIN_SMALL_LETTER_G = 0x67;
+const LATIN_SMALL_LETTER_I = 0x69;
+const LATIN_SMALL_LETTER_K = 0x6b;
+const LATIN_SMALL_LETTER_M = 0x6d;
+const LATIN_SMALL_LETTER_N = 0x6e;
+const LATIN_SMALL_LETTER_P = 0x70;
+const LATIN_SMALL_LETTER_Q = 0x71;
+const LATIN_SMALL_LETTER_R = 0x72;
+const LATIN_SMALL_LETTER_S = 0x73;
+const LATIN_SMALL_LETTER_T = 0x74;
+const LATIN_SMALL_LETTER_U = 0x75;
+const LATIN_SMALL_LETTER_V = 0x76;
+const LATIN_SMALL_LETTER_W = 0x77;
+const LATIN_SMALL_LETTER_X = 0x78;
+const LATIN_SMALL_LETTER_Y = 0x79;
+const LATIN_SMALL_LETTER_Z = 0x7a;
+const LEFT_SQUARE_BRACKET = 0x5b;
+const REVERSE_SOLIDUS = 0x5c;
+const RIGHT_SQUARE_BRACKET = 0x5d;
+const CIRCUMFLEX_ACCENT = 0x5e;
+const GRAVE_ACCENT = 0x60;
+const LEFT_CURLY_BRACKET = 0x7b;
+const VERTICAL_LINE = 0x7c;
+const RIGHT_CURLY_BRACKET = 0x7d;
+const TILDE = 0x7e;
+const ZERO_WIDTH_NON_JOINER = 0x200c;
+const ZERO_WIDTH_JOINER = 0x200d;
+const LINE_SEPARATOR = 0x2028;
+const PARAGRAPH_SEPARATOR = 0x2029;
+const MIN_CODE_POINT = 0x00;
+const MAX_CODE_POINT = 0x10ffff;
+function isLatinLetter(code) {
+ return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) ||
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z));
+}
+function isDecimalDigit(code) {
+ return code >= DIGIT_ZERO && code <= DIGIT_NINE;
+}
+function isOctalDigit(code) {
+ return code >= DIGIT_ZERO && code <= DIGIT_SEVEN;
+}
+function isHexDigit(code) {
+ return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) ||
+ (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) ||
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F));
+}
+function isLineTerminator(code) {
+ return (code === LINE_FEED ||
+ code === CARRIAGE_RETURN ||
+ code === LINE_SEPARATOR ||
+ code === PARAGRAPH_SEPARATOR);
+}
+function isValidUnicode(code) {
+ return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT;
+}
+function digitToInt(code) {
+ if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) {
+ return code - LATIN_SMALL_LETTER_A + 10;
+ }
+ if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) {
+ return code - LATIN_CAPITAL_LETTER_A + 10;
+ }
+ return code - DIGIT_ZERO;
+}
+function isLeadSurrogate(code) {
+ return code >= 0xd800 && code <= 0xdbff;
+}
+function isTrailSurrogate(code) {
+ return code >= 0xdc00 && code <= 0xdfff;
+}
+function combineSurrogatePair(lead, trail) {
+ return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000;
+}
+
+class GroupSpecifiersAsES2018 {
+ constructor() {
+ this.groupName = new Set();
+ }
+ clear() {
+ this.groupName.clear();
+ }
+ isEmpty() {
+ return !this.groupName.size;
+ }
+ hasInPattern(name) {
+ return this.groupName.has(name);
+ }
+ hasInScope(name) {
+ return this.hasInPattern(name);
+ }
+ addToScope(name) {
+ this.groupName.add(name);
+ }
+ enterDisjunction() {
+ }
+ enterAlternative() {
+ }
+ leaveDisjunction() {
+ }
+}
+class BranchID {
+ constructor(parent, base) {
+ this.parent = parent;
+ this.base = base !== null && base !== void 0 ? base : this;
+ }
+ separatedFrom(other) {
+ var _a, _b;
+ if (this.base === other.base && this !== other) {
+ return true;
+ }
+ if (other.parent && this.separatedFrom(other.parent)) {
+ return true;
+ }
+ return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false;
+ }
+ child() {
+ return new BranchID(this, null);
+ }
+ sibling() {
+ return new BranchID(this.parent, this.base);
+ }
+}
+class GroupSpecifiersAsES2025 {
+ constructor() {
+ this.branchID = new BranchID(null, null);
+ this.groupNames = new Map();
+ }
+ clear() {
+ this.branchID = new BranchID(null, null);
+ this.groupNames.clear();
+ }
+ isEmpty() {
+ return !this.groupNames.size;
+ }
+ enterDisjunction() {
+ this.branchID = this.branchID.child();
+ }
+ enterAlternative(index) {
+ if (index === 0) {
+ return;
+ }
+ this.branchID = this.branchID.sibling();
+ }
+ leaveDisjunction() {
+ this.branchID = this.branchID.parent;
+ }
+ hasInPattern(name) {
+ return this.groupNames.has(name);
+ }
+ hasInScope(name) {
+ const branches = this.groupNames.get(name);
+ if (!branches) {
+ return false;
+ }
+ for (const branch of branches) {
+ if (!branch.separatedFrom(this.branchID)) {
+ return true;
+ }
+ }
+ return false;
+ }
+ addToScope(name) {
+ const branches = this.groupNames.get(name);
+ if (branches) {
+ branches.push(this.branchID);
+ return;
+ }
+ this.groupNames.set(name, [this.branchID]);
+ }
+}
+
+const legacyImpl = {
+ at(s, end, i) {
+ return i < end ? s.charCodeAt(i) : -1;
+ },
+ width(c) {
+ return 1;
+ },
+};
+const unicodeImpl = {
+ at(s, end, i) {
+ return i < end ? s.codePointAt(i) : -1;
+ },
+ width(c) {
+ return c > 0xffff ? 2 : 1;
+ },
+};
+class Reader {
+ constructor() {
+ this._impl = legacyImpl;
+ this._s = "";
+ this._i = 0;
+ this._end = 0;
+ this._cp1 = -1;
+ this._w1 = 1;
+ this._cp2 = -1;
+ this._w2 = 1;
+ this._cp3 = -1;
+ this._w3 = 1;
+ this._cp4 = -1;
+ }
+ get source() {
+ return this._s;
+ }
+ get index() {
+ return this._i;
+ }
+ get currentCodePoint() {
+ return this._cp1;
+ }
+ get nextCodePoint() {
+ return this._cp2;
+ }
+ get nextCodePoint2() {
+ return this._cp3;
+ }
+ get nextCodePoint3() {
+ return this._cp4;
+ }
+ reset(source, start, end, uFlag) {
+ this._impl = uFlag ? unicodeImpl : legacyImpl;
+ this._s = source;
+ this._end = end;
+ this.rewind(start);
+ }
+ rewind(index) {
+ const impl = this._impl;
+ this._i = index;
+ this._cp1 = impl.at(this._s, this._end, index);
+ this._w1 = impl.width(this._cp1);
+ this._cp2 = impl.at(this._s, this._end, index + this._w1);
+ this._w2 = impl.width(this._cp2);
+ this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2);
+ this._w3 = impl.width(this._cp3);
+ this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3);
+ }
+ advance() {
+ if (this._cp1 !== -1) {
+ const impl = this._impl;
+ this._i += this._w1;
+ this._cp1 = this._cp2;
+ this._w1 = this._w2;
+ this._cp2 = this._cp3;
+ this._w2 = impl.width(this._cp2);
+ this._cp3 = this._cp4;
+ this._w3 = impl.width(this._cp3);
+ this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3);
+ }
+ }
+ eat(cp) {
+ if (this._cp1 === cp) {
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eat2(cp1, cp2) {
+ if (this._cp1 === cp1 && this._cp2 === cp2) {
+ this.advance();
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eat3(cp1, cp2, cp3) {
+ if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) {
+ this.advance();
+ this.advance();
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+}
+
+class RegExpSyntaxError extends SyntaxError {
+ constructor(message, index) {
+ super(message);
+ this.index = index;
+ }
+}
+function newRegExpSyntaxError(srcCtx, flags, index, message) {
+ let source = "";
+ if (srcCtx.kind === "literal") {
+ const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end);
+ if (literal) {
+ source = `: ${literal}`;
+ }
+ }
+ else if (srcCtx.kind === "pattern") {
+ const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end);
+ const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`;
+ source = `: /${pattern}/${flagsText}`;
+ }
+ return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index);
+}
+
+const SYNTAX_CHARACTER = new Set([
+ CIRCUMFLEX_ACCENT,
+ DOLLAR_SIGN,
+ REVERSE_SOLIDUS,
+ FULL_STOP,
+ ASTERISK,
+ PLUS_SIGN,
+ QUESTION_MARK,
+ LEFT_PARENTHESIS,
+ RIGHT_PARENTHESIS,
+ LEFT_SQUARE_BRACKET,
+ RIGHT_SQUARE_BRACKET,
+ LEFT_CURLY_BRACKET,
+ RIGHT_CURLY_BRACKET,
+ VERTICAL_LINE,
+]);
+const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([
+ AMPERSAND,
+ EXCLAMATION_MARK,
+ NUMBER_SIGN,
+ DOLLAR_SIGN,
+ PERCENT_SIGN,
+ ASTERISK,
+ PLUS_SIGN,
+ COMMA,
+ FULL_STOP,
+ COLON,
+ SEMICOLON,
+ LESS_THAN_SIGN,
+ EQUALS_SIGN,
+ GREATER_THAN_SIGN,
+ QUESTION_MARK,
+ COMMERCIAL_AT,
+ CIRCUMFLEX_ACCENT,
+ GRAVE_ACCENT,
+ TILDE,
+]);
+const CLASS_SET_SYNTAX_CHARACTER = new Set([
+ LEFT_PARENTHESIS,
+ RIGHT_PARENTHESIS,
+ LEFT_SQUARE_BRACKET,
+ RIGHT_SQUARE_BRACKET,
+ LEFT_CURLY_BRACKET,
+ RIGHT_CURLY_BRACKET,
+ SOLIDUS,
+ HYPHEN_MINUS,
+ REVERSE_SOLIDUS,
+ VERTICAL_LINE,
+]);
+const CLASS_SET_RESERVED_PUNCTUATOR = new Set([
+ AMPERSAND,
+ HYPHEN_MINUS,
+ EXCLAMATION_MARK,
+ NUMBER_SIGN,
+ PERCENT_SIGN,
+ COMMA,
+ COLON,
+ SEMICOLON,
+ LESS_THAN_SIGN,
+ EQUALS_SIGN,
+ GREATER_THAN_SIGN,
+ COMMERCIAL_AT,
+ GRAVE_ACCENT,
+ TILDE,
+]);
+const FLAG_PROP_TO_CODEPOINT = {
+ global: LATIN_SMALL_LETTER_G,
+ ignoreCase: LATIN_SMALL_LETTER_I,
+ multiline: LATIN_SMALL_LETTER_M,
+ unicode: LATIN_SMALL_LETTER_U,
+ sticky: LATIN_SMALL_LETTER_Y,
+ dotAll: LATIN_SMALL_LETTER_S,
+ hasIndices: LATIN_SMALL_LETTER_D,
+ unicodeSets: LATIN_SMALL_LETTER_V,
+};
+const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k]));
+function isSyntaxCharacter(cp) {
+ return SYNTAX_CHARACTER.has(cp);
+}
+function isClassSetReservedDoublePunctuatorCharacter(cp) {
+ return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp);
+}
+function isClassSetSyntaxCharacter(cp) {
+ return CLASS_SET_SYNTAX_CHARACTER.has(cp);
+}
+function isClassSetReservedPunctuator(cp) {
+ return CLASS_SET_RESERVED_PUNCTUATOR.has(cp);
+}
+function isIdentifierStartChar(cp) {
+ return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE;
+}
+function isIdentifierPartChar(cp) {
+ return (isIdContinue(cp) ||
+ cp === DOLLAR_SIGN ||
+ cp === ZERO_WIDTH_NON_JOINER ||
+ cp === ZERO_WIDTH_JOINER);
+}
+function isUnicodePropertyNameCharacter(cp) {
+ return isLatinLetter(cp) || cp === LOW_LINE;
+}
+function isUnicodePropertyValueCharacter(cp) {
+ return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp);
+}
+function isRegularExpressionModifier(ch) {
+ return (ch === LATIN_SMALL_LETTER_I ||
+ ch === LATIN_SMALL_LETTER_M ||
+ ch === LATIN_SMALL_LETTER_S);
+}
+class RegExpValidator {
+ constructor(options) {
+ this._reader = new Reader();
+ this._unicodeMode = false;
+ this._unicodeSetsMode = false;
+ this._nFlag = false;
+ this._lastIntValue = 0;
+ this._lastRange = {
+ min: 0,
+ max: Number.POSITIVE_INFINITY,
+ };
+ this._lastStrValue = "";
+ this._lastAssertionIsQuantifiable = false;
+ this._numCapturingParens = 0;
+ this._backreferenceNames = new Set();
+ this._srcCtx = null;
+ this._options = options !== null && options !== void 0 ? options : {};
+ this._groupSpecifiers =
+ this.ecmaVersion >= 2025
+ ? new GroupSpecifiersAsES2025()
+ : new GroupSpecifiersAsES2018();
+ }
+ validateLiteral(source, start = 0, end = source.length) {
+ this._srcCtx = { source, start, end, kind: "literal" };
+ this._unicodeSetsMode = this._unicodeMode = this._nFlag = false;
+ this.reset(source, start, end);
+ this.onLiteralEnter(start);
+ if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) {
+ const flagStart = this.index;
+ const unicode = source.includes("u", flagStart);
+ const unicodeSets = source.includes("v", flagStart);
+ this.validateFlagsInternal(source, flagStart, end);
+ this.validatePatternInternal(source, start + 1, flagStart - 1, {
+ unicode,
+ unicodeSets,
+ });
+ }
+ else if (start >= end) {
+ this.raise("Empty");
+ }
+ else {
+ const c = String.fromCodePoint(this.currentCodePoint);
+ this.raise(`Unexpected character '${c}'`);
+ }
+ this.onLiteralLeave(start, end);
+ }
+ validateFlags(source, start = 0, end = source.length) {
+ this._srcCtx = { source, start, end, kind: "flags" };
+ this.validateFlagsInternal(source, start, end);
+ }
+ validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ this._srcCtx = { source, start, end, kind: "pattern" };
+ this.validatePatternInternal(source, start, end, uFlagOrFlags);
+ }
+ validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end);
+ this._unicodeMode = mode.unicodeMode;
+ this._nFlag = mode.nFlag;
+ this._unicodeSetsMode = mode.unicodeSetsMode;
+ this.reset(source, start, end);
+ this.consumePattern();
+ if (!this._nFlag &&
+ this.ecmaVersion >= 2018 &&
+ !this._groupSpecifiers.isEmpty()) {
+ this._nFlag = true;
+ this.rewind(start);
+ this.consumePattern();
+ }
+ }
+ validateFlagsInternal(source, start, end) {
+ const flags = this.parseFlags(source, start, end);
+ this.onRegExpFlags(start, end, flags);
+ }
+ _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) {
+ let unicode = false;
+ let unicodeSets = false;
+ if (uFlagOrFlags && this.ecmaVersion >= 2015) {
+ if (typeof uFlagOrFlags === "object") {
+ unicode = Boolean(uFlagOrFlags.unicode);
+ if (this.ecmaVersion >= 2024) {
+ unicodeSets = Boolean(uFlagOrFlags.unicodeSets);
+ }
+ }
+ else {
+ unicode = uFlagOrFlags;
+ }
+ }
+ if (unicode && unicodeSets) {
+ this.raise("Invalid regular expression flags", {
+ index: sourceEnd + 1,
+ unicode,
+ unicodeSets,
+ });
+ }
+ const unicodeMode = unicode || unicodeSets;
+ const nFlag = (unicode && this.ecmaVersion >= 2018) ||
+ unicodeSets ||
+ Boolean(this._options.strict && this.ecmaVersion >= 2023);
+ const unicodeSetsMode = unicodeSets;
+ return { unicodeMode, nFlag, unicodeSetsMode };
+ }
+ get strict() {
+ return Boolean(this._options.strict) || this._unicodeMode;
+ }
+ get ecmaVersion() {
+ var _a;
+ return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
+ }
+ onLiteralEnter(start) {
+ if (this._options.onLiteralEnter) {
+ this._options.onLiteralEnter(start);
+ }
+ }
+ onLiteralLeave(start, end) {
+ if (this._options.onLiteralLeave) {
+ this._options.onLiteralLeave(start, end);
+ }
+ }
+ onRegExpFlags(start, end, flags) {
+ if (this._options.onRegExpFlags) {
+ this._options.onRegExpFlags(start, end, flags);
+ }
+ if (this._options.onFlags) {
+ this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices);
+ }
+ }
+ onPatternEnter(start) {
+ if (this._options.onPatternEnter) {
+ this._options.onPatternEnter(start);
+ }
+ }
+ onPatternLeave(start, end) {
+ if (this._options.onPatternLeave) {
+ this._options.onPatternLeave(start, end);
+ }
+ }
+ onDisjunctionEnter(start) {
+ if (this._options.onDisjunctionEnter) {
+ this._options.onDisjunctionEnter(start);
+ }
+ }
+ onDisjunctionLeave(start, end) {
+ if (this._options.onDisjunctionLeave) {
+ this._options.onDisjunctionLeave(start, end);
+ }
+ }
+ onAlternativeEnter(start, index) {
+ if (this._options.onAlternativeEnter) {
+ this._options.onAlternativeEnter(start, index);
+ }
+ }
+ onAlternativeLeave(start, end, index) {
+ if (this._options.onAlternativeLeave) {
+ this._options.onAlternativeLeave(start, end, index);
+ }
+ }
+ onGroupEnter(start) {
+ if (this._options.onGroupEnter) {
+ this._options.onGroupEnter(start);
+ }
+ }
+ onGroupLeave(start, end) {
+ if (this._options.onGroupLeave) {
+ this._options.onGroupLeave(start, end);
+ }
+ }
+ onModifiersEnter(start) {
+ if (this._options.onModifiersEnter) {
+ this._options.onModifiersEnter(start);
+ }
+ }
+ onModifiersLeave(start, end) {
+ if (this._options.onModifiersLeave) {
+ this._options.onModifiersLeave(start, end);
+ }
+ }
+ onAddModifiers(start, end, flags) {
+ if (this._options.onAddModifiers) {
+ this._options.onAddModifiers(start, end, flags);
+ }
+ }
+ onRemoveModifiers(start, end, flags) {
+ if (this._options.onRemoveModifiers) {
+ this._options.onRemoveModifiers(start, end, flags);
+ }
+ }
+ onCapturingGroupEnter(start, name) {
+ if (this._options.onCapturingGroupEnter) {
+ this._options.onCapturingGroupEnter(start, name);
+ }
+ }
+ onCapturingGroupLeave(start, end, name) {
+ if (this._options.onCapturingGroupLeave) {
+ this._options.onCapturingGroupLeave(start, end, name);
+ }
+ }
+ onQuantifier(start, end, min, max, greedy) {
+ if (this._options.onQuantifier) {
+ this._options.onQuantifier(start, end, min, max, greedy);
+ }
+ }
+ onLookaroundAssertionEnter(start, kind, negate) {
+ if (this._options.onLookaroundAssertionEnter) {
+ this._options.onLookaroundAssertionEnter(start, kind, negate);
+ }
+ }
+ onLookaroundAssertionLeave(start, end, kind, negate) {
+ if (this._options.onLookaroundAssertionLeave) {
+ this._options.onLookaroundAssertionLeave(start, end, kind, negate);
+ }
+ }
+ onEdgeAssertion(start, end, kind) {
+ if (this._options.onEdgeAssertion) {
+ this._options.onEdgeAssertion(start, end, kind);
+ }
+ }
+ onWordBoundaryAssertion(start, end, kind, negate) {
+ if (this._options.onWordBoundaryAssertion) {
+ this._options.onWordBoundaryAssertion(start, end, kind, negate);
+ }
+ }
+ onAnyCharacterSet(start, end, kind) {
+ if (this._options.onAnyCharacterSet) {
+ this._options.onAnyCharacterSet(start, end, kind);
+ }
+ }
+ onEscapeCharacterSet(start, end, kind, negate) {
+ if (this._options.onEscapeCharacterSet) {
+ this._options.onEscapeCharacterSet(start, end, kind, negate);
+ }
+ }
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
+ if (this._options.onUnicodePropertyCharacterSet) {
+ this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings);
+ }
+ }
+ onCharacter(start, end, value) {
+ if (this._options.onCharacter) {
+ this._options.onCharacter(start, end, value);
+ }
+ }
+ onBackreference(start, end, ref) {
+ if (this._options.onBackreference) {
+ this._options.onBackreference(start, end, ref);
+ }
+ }
+ onCharacterClassEnter(start, negate, unicodeSets) {
+ if (this._options.onCharacterClassEnter) {
+ this._options.onCharacterClassEnter(start, negate, unicodeSets);
+ }
+ }
+ onCharacterClassLeave(start, end, negate) {
+ if (this._options.onCharacterClassLeave) {
+ this._options.onCharacterClassLeave(start, end, negate);
+ }
+ }
+ onCharacterClassRange(start, end, min, max) {
+ if (this._options.onCharacterClassRange) {
+ this._options.onCharacterClassRange(start, end, min, max);
+ }
+ }
+ onClassIntersection(start, end) {
+ if (this._options.onClassIntersection) {
+ this._options.onClassIntersection(start, end);
+ }
+ }
+ onClassSubtraction(start, end) {
+ if (this._options.onClassSubtraction) {
+ this._options.onClassSubtraction(start, end);
+ }
+ }
+ onClassStringDisjunctionEnter(start) {
+ if (this._options.onClassStringDisjunctionEnter) {
+ this._options.onClassStringDisjunctionEnter(start);
+ }
+ }
+ onClassStringDisjunctionLeave(start, end) {
+ if (this._options.onClassStringDisjunctionLeave) {
+ this._options.onClassStringDisjunctionLeave(start, end);
+ }
+ }
+ onStringAlternativeEnter(start, index) {
+ if (this._options.onStringAlternativeEnter) {
+ this._options.onStringAlternativeEnter(start, index);
+ }
+ }
+ onStringAlternativeLeave(start, end, index) {
+ if (this._options.onStringAlternativeLeave) {
+ this._options.onStringAlternativeLeave(start, end, index);
+ }
+ }
+ get index() {
+ return this._reader.index;
+ }
+ get currentCodePoint() {
+ return this._reader.currentCodePoint;
+ }
+ get nextCodePoint() {
+ return this._reader.nextCodePoint;
+ }
+ get nextCodePoint2() {
+ return this._reader.nextCodePoint2;
+ }
+ get nextCodePoint3() {
+ return this._reader.nextCodePoint3;
+ }
+ reset(source, start, end) {
+ this._reader.reset(source, start, end, this._unicodeMode);
+ }
+ rewind(index) {
+ this._reader.rewind(index);
+ }
+ advance() {
+ this._reader.advance();
+ }
+ eat(cp) {
+ return this._reader.eat(cp);
+ }
+ eat2(cp1, cp2) {
+ return this._reader.eat2(cp1, cp2);
+ }
+ eat3(cp1, cp2, cp3) {
+ return this._reader.eat3(cp1, cp2, cp3);
+ }
+ raise(message, context) {
+ var _a, _b, _c;
+ throw newRegExpSyntaxError(this._srcCtx, {
+ unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode),
+ unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode,
+ }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message);
+ }
+ eatRegExpBody() {
+ const start = this.index;
+ let inClass = false;
+ let escaped = false;
+ for (;;) {
+ const cp = this.currentCodePoint;
+ if (cp === -1 || isLineTerminator(cp)) {
+ const kind = inClass ? "character class" : "regular expression";
+ this.raise(`Unterminated ${kind}`);
+ }
+ if (escaped) {
+ escaped = false;
+ }
+ else if (cp === REVERSE_SOLIDUS) {
+ escaped = true;
+ }
+ else if (cp === LEFT_SQUARE_BRACKET) {
+ inClass = true;
+ }
+ else if (cp === RIGHT_SQUARE_BRACKET) {
+ inClass = false;
+ }
+ else if ((cp === SOLIDUS && !inClass) ||
+ (cp === ASTERISK && this.index === start)) {
+ break;
+ }
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ consumePattern() {
+ const start = this.index;
+ this._numCapturingParens = this.countCapturingParens();
+ this._groupSpecifiers.clear();
+ this._backreferenceNames.clear();
+ this.onPatternEnter(start);
+ this.consumeDisjunction();
+ const cp = this.currentCodePoint;
+ if (this.currentCodePoint !== -1) {
+ if (cp === RIGHT_PARENTHESIS) {
+ this.raise("Unmatched ')'");
+ }
+ if (cp === REVERSE_SOLIDUS) {
+ this.raise("\\ at end of pattern");
+ }
+ if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) {
+ this.raise("Lone quantifier brackets");
+ }
+ const c = String.fromCodePoint(cp);
+ this.raise(`Unexpected character '${c}'`);
+ }
+ for (const name of this._backreferenceNames) {
+ if (!this._groupSpecifiers.hasInPattern(name)) {
+ this.raise("Invalid named capture referenced");
+ }
+ }
+ this.onPatternLeave(start, this.index);
+ }
+ countCapturingParens() {
+ const start = this.index;
+ let inClass = false;
+ let escaped = false;
+ let count = 0;
+ let cp = 0;
+ while ((cp = this.currentCodePoint) !== -1) {
+ if (escaped) {
+ escaped = false;
+ }
+ else if (cp === REVERSE_SOLIDUS) {
+ escaped = true;
+ }
+ else if (cp === LEFT_SQUARE_BRACKET) {
+ inClass = true;
+ }
+ else if (cp === RIGHT_SQUARE_BRACKET) {
+ inClass = false;
+ }
+ else if (cp === LEFT_PARENTHESIS &&
+ !inClass &&
+ (this.nextCodePoint !== QUESTION_MARK ||
+ (this.nextCodePoint2 === LESS_THAN_SIGN &&
+ this.nextCodePoint3 !== EQUALS_SIGN &&
+ this.nextCodePoint3 !== EXCLAMATION_MARK))) {
+ count += 1;
+ }
+ this.advance();
+ }
+ this.rewind(start);
+ return count;
+ }
+ consumeDisjunction() {
+ const start = this.index;
+ let i = 0;
+ this._groupSpecifiers.enterDisjunction();
+ this.onDisjunctionEnter(start);
+ do {
+ this.consumeAlternative(i++);
+ } while (this.eat(VERTICAL_LINE));
+ if (this.consumeQuantifier(true)) {
+ this.raise("Nothing to repeat");
+ }
+ if (this.eat(LEFT_CURLY_BRACKET)) {
+ this.raise("Lone quantifier brackets");
+ }
+ this.onDisjunctionLeave(start, this.index);
+ this._groupSpecifiers.leaveDisjunction();
+ }
+ consumeAlternative(i) {
+ const start = this.index;
+ this._groupSpecifiers.enterAlternative(i);
+ this.onAlternativeEnter(start, i);
+ while (this.currentCodePoint !== -1 && this.consumeTerm()) {
+ }
+ this.onAlternativeLeave(start, this.index, i);
+ }
+ consumeTerm() {
+ if (this._unicodeMode || this.strict) {
+ return (this.consumeAssertion() ||
+ (this.consumeAtom() && this.consumeOptionalQuantifier()));
+ }
+ return ((this.consumeAssertion() &&
+ (!this._lastAssertionIsQuantifiable ||
+ this.consumeOptionalQuantifier())) ||
+ (this.consumeExtendedAtom() && this.consumeOptionalQuantifier()));
+ }
+ consumeOptionalQuantifier() {
+ this.consumeQuantifier();
+ return true;
+ }
+ consumeAssertion() {
+ const start = this.index;
+ this._lastAssertionIsQuantifiable = false;
+ if (this.eat(CIRCUMFLEX_ACCENT)) {
+ this.onEdgeAssertion(start, this.index, "start");
+ return true;
+ }
+ if (this.eat(DOLLAR_SIGN)) {
+ this.onEdgeAssertion(start, this.index, "end");
+ return true;
+ }
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) {
+ this.onWordBoundaryAssertion(start, this.index, "word", true);
+ return true;
+ }
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) {
+ this.onWordBoundaryAssertion(start, this.index, "word", false);
+ return true;
+ }
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
+ const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN);
+ let negate = false;
+ if (this.eat(EQUALS_SIGN) ||
+ (negate = this.eat(EXCLAMATION_MARK))) {
+ const kind = lookbehind ? "lookbehind" : "lookahead";
+ this.onLookaroundAssertionEnter(start, kind, negate);
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this._lastAssertionIsQuantifiable = !lookbehind && !this.strict;
+ this.onLookaroundAssertionLeave(start, this.index, kind, negate);
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeQuantifier(noConsume = false) {
+ const start = this.index;
+ let min = 0;
+ let max = 0;
+ let greedy = false;
+ if (this.eat(ASTERISK)) {
+ min = 0;
+ max = Number.POSITIVE_INFINITY;
+ }
+ else if (this.eat(PLUS_SIGN)) {
+ min = 1;
+ max = Number.POSITIVE_INFINITY;
+ }
+ else if (this.eat(QUESTION_MARK)) {
+ min = 0;
+ max = 1;
+ }
+ else if (this.eatBracedQuantifier(noConsume)) {
+ ({ min, max } = this._lastRange);
+ }
+ else {
+ return false;
+ }
+ greedy = !this.eat(QUESTION_MARK);
+ if (!noConsume) {
+ this.onQuantifier(start, this.index, min, max, greedy);
+ }
+ return true;
+ }
+ eatBracedQuantifier(noError) {
+ const start = this.index;
+ if (this.eat(LEFT_CURLY_BRACKET)) {
+ if (this.eatDecimalDigits()) {
+ const min = this._lastIntValue;
+ let max = min;
+ if (this.eat(COMMA)) {
+ max = this.eatDecimalDigits()
+ ? this._lastIntValue
+ : Number.POSITIVE_INFINITY;
+ }
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
+ if (!noError && max < min) {
+ this.raise("numbers out of order in {} quantifier");
+ }
+ this._lastRange = { min, max };
+ return true;
+ }
+ }
+ if (!noError && (this._unicodeMode || this.strict)) {
+ this.raise("Incomplete quantifier");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeAtom() {
+ return (this.consumePatternCharacter() ||
+ this.consumeDot() ||
+ this.consumeReverseSolidusAtomEscape() ||
+ Boolean(this.consumeCharacterClass()) ||
+ this.consumeCapturingGroup() ||
+ this.consumeUncapturingGroup());
+ }
+ consumeDot() {
+ if (this.eat(FULL_STOP)) {
+ this.onAnyCharacterSet(this.index - 1, this.index, "any");
+ return true;
+ }
+ return false;
+ }
+ consumeReverseSolidusAtomEscape() {
+ const start = this.index;
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeAtomEscape()) {
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeUncapturingGroup() {
+ const start = this.index;
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
+ this.onGroupEnter(start);
+ if (this.ecmaVersion >= 2025) {
+ this.consumeModifiers();
+ }
+ if (!this.eat(COLON)) {
+ this.rewind(start + 1);
+ this.raise("Invalid group");
+ }
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this.onGroupLeave(start, this.index);
+ return true;
+ }
+ return false;
+ }
+ consumeModifiers() {
+ const start = this.index;
+ const hasAddModifiers = this.eatModifiers();
+ const addModifiersEnd = this.index;
+ const hasHyphen = this.eat(HYPHEN_MINUS);
+ if (!hasAddModifiers && !hasHyphen) {
+ return false;
+ }
+ this.onModifiersEnter(start);
+ const addModifiers = this.parseModifiers(start, addModifiersEnd);
+ this.onAddModifiers(start, addModifiersEnd, addModifiers);
+ if (hasHyphen) {
+ const modifiersStart = this.index;
+ if (!this.eatModifiers() &&
+ !hasAddModifiers &&
+ this.currentCodePoint === COLON) {
+ this.raise("Invalid empty flags");
+ }
+ const modifiers = this.parseModifiers(modifiersStart, this.index);
+ for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) {
+ if (addModifiers[flagName]) {
+ this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`);
+ }
+ }
+ this.onRemoveModifiers(modifiersStart, this.index, modifiers);
+ }
+ this.onModifiersLeave(start, this.index);
+ return true;
+ }
+ consumeCapturingGroup() {
+ const start = this.index;
+ if (this.eat(LEFT_PARENTHESIS)) {
+ let name = null;
+ if (this.ecmaVersion >= 2018) {
+ if (this.consumeGroupSpecifier()) {
+ name = this._lastStrValue;
+ }
+ else if (this.currentCodePoint === QUESTION_MARK) {
+ this.rewind(start);
+ return false;
+ }
+ }
+ else if (this.currentCodePoint === QUESTION_MARK) {
+ this.rewind(start);
+ return false;
+ }
+ this.onCapturingGroupEnter(start, name);
+ this.consumeDisjunction();
+ if (!this.eat(RIGHT_PARENTHESIS)) {
+ this.raise("Unterminated group");
+ }
+ this.onCapturingGroupLeave(start, this.index, name);
+ return true;
+ }
+ return false;
+ }
+ consumeExtendedAtom() {
+ return (this.consumeDot() ||
+ this.consumeReverseSolidusAtomEscape() ||
+ this.consumeReverseSolidusFollowedByC() ||
+ Boolean(this.consumeCharacterClass()) ||
+ this.consumeCapturingGroup() ||
+ this.consumeUncapturingGroup() ||
+ this.consumeInvalidBracedQuantifier() ||
+ this.consumeExtendedPatternCharacter());
+ }
+ consumeReverseSolidusFollowedByC() {
+ const start = this.index;
+ if (this.currentCodePoint === REVERSE_SOLIDUS &&
+ this.nextCodePoint === LATIN_SMALL_LETTER_C) {
+ this._lastIntValue = this.currentCodePoint;
+ this.advance();
+ this.onCharacter(start, this.index, REVERSE_SOLIDUS);
+ return true;
+ }
+ return false;
+ }
+ consumeInvalidBracedQuantifier() {
+ if (this.eatBracedQuantifier(true)) {
+ this.raise("Nothing to repeat");
+ }
+ return false;
+ }
+ consumePatternCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 && !isSyntaxCharacter(cp)) {
+ this.advance();
+ this.onCharacter(start, this.index, cp);
+ return true;
+ }
+ return false;
+ }
+ consumeExtendedPatternCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 &&
+ cp !== CIRCUMFLEX_ACCENT &&
+ cp !== DOLLAR_SIGN &&
+ cp !== REVERSE_SOLIDUS &&
+ cp !== FULL_STOP &&
+ cp !== ASTERISK &&
+ cp !== PLUS_SIGN &&
+ cp !== QUESTION_MARK &&
+ cp !== LEFT_PARENTHESIS &&
+ cp !== RIGHT_PARENTHESIS &&
+ cp !== LEFT_SQUARE_BRACKET &&
+ cp !== VERTICAL_LINE) {
+ this.advance();
+ this.onCharacter(start, this.index, cp);
+ return true;
+ }
+ return false;
+ }
+ consumeGroupSpecifier() {
+ const start = this.index;
+ if (this.eat(QUESTION_MARK)) {
+ if (this.eatGroupName()) {
+ if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) {
+ this._groupSpecifiers.addToScope(this._lastStrValue);
+ return true;
+ }
+ this.raise("Duplicate capture group name");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeAtomEscape() {
+ if (this.consumeBackreference() ||
+ this.consumeCharacterClassEscape() ||
+ this.consumeCharacterEscape() ||
+ (this._nFlag && this.consumeKGroupName())) {
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ return false;
+ }
+ consumeBackreference() {
+ const start = this.index;
+ if (this.eatDecimalEscape()) {
+ const n = this._lastIntValue;
+ if (n <= this._numCapturingParens) {
+ this.onBackreference(start - 1, this.index, n);
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeCharacterClassEscape() {
+ var _a;
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_D)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_D)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", true);
+ return {};
+ }
+ if (this.eat(LATIN_SMALL_LETTER_S)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "space", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_S)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "space", true);
+ return {};
+ }
+ if (this.eat(LATIN_SMALL_LETTER_W)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "word", false);
+ return {};
+ }
+ if (this.eat(LATIN_CAPITAL_LETTER_W)) {
+ this._lastIntValue = -1;
+ this.onEscapeCharacterSet(start - 1, this.index, "word", true);
+ return {};
+ }
+ let negate = false;
+ if (this._unicodeMode &&
+ this.ecmaVersion >= 2018 &&
+ (this.eat(LATIN_SMALL_LETTER_P) ||
+ (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) {
+ this._lastIntValue = -1;
+ let result = null;
+ if (this.eat(LEFT_CURLY_BRACKET) &&
+ (result = this.eatUnicodePropertyValueExpression()) &&
+ this.eat(RIGHT_CURLY_BRACKET)) {
+ if (negate && result.strings) {
+ this.raise("Invalid property name");
+ }
+ this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false);
+ return { mayContainStrings: result.strings };
+ }
+ this.raise("Invalid property name");
+ }
+ return null;
+ }
+ consumeCharacterEscape() {
+ const start = this.index;
+ if (this.eatControlEscape() ||
+ this.eatCControlLetter() ||
+ this.eatZero() ||
+ this.eatHexEscapeSequence() ||
+ this.eatRegExpUnicodeEscapeSequence() ||
+ (!this.strict &&
+ !this._unicodeMode &&
+ this.eatLegacyOctalEscapeSequence()) ||
+ this.eatIdentityEscape()) {
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ return false;
+ }
+ consumeKGroupName() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_K)) {
+ if (this.eatGroupName()) {
+ const groupName = this._lastStrValue;
+ this._backreferenceNames.add(groupName);
+ this.onBackreference(start - 1, this.index, groupName);
+ return true;
+ }
+ this.raise("Invalid named reference");
+ }
+ return false;
+ }
+ consumeCharacterClass() {
+ const start = this.index;
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
+ this.onCharacterClassEnter(start, negate, this._unicodeSetsMode);
+ const result = this.consumeClassContents();
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
+ if (this.currentCodePoint === -1) {
+ this.raise("Unterminated character class");
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (negate && result.mayContainStrings) {
+ this.raise("Negated character class may contain strings");
+ }
+ this.onCharacterClassLeave(start, this.index, negate);
+ return result;
+ }
+ return null;
+ }
+ consumeClassContents() {
+ if (this._unicodeSetsMode) {
+ if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) {
+ return {};
+ }
+ const result = this.consumeClassSetExpression();
+ return result;
+ }
+ const strict = this.strict || this._unicodeMode;
+ for (;;) {
+ const rangeStart = this.index;
+ if (!this.consumeClassAtom()) {
+ break;
+ }
+ const min = this._lastIntValue;
+ if (!this.eat(HYPHEN_MINUS)) {
+ continue;
+ }
+ this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS);
+ if (!this.consumeClassAtom()) {
+ break;
+ }
+ const max = this._lastIntValue;
+ if (min === -1 || max === -1) {
+ if (strict) {
+ this.raise("Invalid character class");
+ }
+ continue;
+ }
+ if (min > max) {
+ this.raise("Range out of order in character class");
+ }
+ this.onCharacterClassRange(rangeStart, this.index, min, max);
+ }
+ return {};
+ }
+ consumeClassAtom() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== -1 &&
+ cp !== REVERSE_SOLIDUS &&
+ cp !== RIGHT_SQUARE_BRACKET) {
+ this.advance();
+ this._lastIntValue = cp;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeClassEscape()) {
+ return true;
+ }
+ if (!this.strict &&
+ this.currentCodePoint === LATIN_SMALL_LETTER_C) {
+ this._lastIntValue = REVERSE_SOLIDUS;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.strict || this._unicodeMode) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ consumeClassEscape() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
+ this._lastIntValue = BACKSPACE;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this._unicodeMode && this.eat(HYPHEN_MINUS)) {
+ this._lastIntValue = HYPHEN_MINUS;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ let cp = 0;
+ if (!this.strict &&
+ !this._unicodeMode &&
+ this.currentCodePoint === LATIN_SMALL_LETTER_C &&
+ (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) {
+ this.advance();
+ this.advance();
+ this._lastIntValue = cp % 0x20;
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
+ return true;
+ }
+ return (Boolean(this.consumeCharacterClassEscape()) ||
+ this.consumeCharacterEscape());
+ }
+ consumeClassSetExpression() {
+ const start = this.index;
+ let mayContainStrings = false;
+ let result = null;
+ if (this.consumeClassSetCharacter()) {
+ if (this.consumeClassSetRangeFromOperator(start)) {
+ this.consumeClassUnionRight({});
+ return {};
+ }
+ mayContainStrings = false;
+ }
+ else if ((result = this.consumeClassSetOperand())) {
+ mayContainStrings = result.mayContainStrings;
+ }
+ else {
+ const cp = this.currentCodePoint;
+ if (cp === REVERSE_SOLIDUS) {
+ this.advance();
+ this.raise("Invalid escape");
+ }
+ if (cp === this.nextCodePoint &&
+ isClassSetReservedDoublePunctuatorCharacter(cp)) {
+ this.raise("Invalid set operation in character class");
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
+ while (this.currentCodePoint !== AMPERSAND &&
+ (result = this.consumeClassSetOperand())) {
+ this.onClassIntersection(start, this.index);
+ if (!result.mayContainStrings) {
+ mayContainStrings = false;
+ }
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
+ continue;
+ }
+ return { mayContainStrings };
+ }
+ this.raise("Invalid character in character class");
+ }
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
+ while (this.consumeClassSetOperand()) {
+ this.onClassSubtraction(start, this.index);
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
+ continue;
+ }
+ return { mayContainStrings };
+ }
+ this.raise("Invalid character in character class");
+ }
+ return this.consumeClassUnionRight({ mayContainStrings });
+ }
+ consumeClassUnionRight(leftResult) {
+ let mayContainStrings = leftResult.mayContainStrings;
+ for (;;) {
+ const start = this.index;
+ if (this.consumeClassSetCharacter()) {
+ this.consumeClassSetRangeFromOperator(start);
+ continue;
+ }
+ const result = this.consumeClassSetOperand();
+ if (result) {
+ if (result.mayContainStrings) {
+ mayContainStrings = true;
+ }
+ continue;
+ }
+ break;
+ }
+ return { mayContainStrings };
+ }
+ consumeClassSetRangeFromOperator(start) {
+ const currentStart = this.index;
+ const min = this._lastIntValue;
+ if (this.eat(HYPHEN_MINUS)) {
+ if (this.consumeClassSetCharacter()) {
+ const max = this._lastIntValue;
+ if (min === -1 || max === -1) {
+ this.raise("Invalid character class");
+ }
+ if (min > max) {
+ this.raise("Range out of order in character class");
+ }
+ this.onCharacterClassRange(start, this.index, min, max);
+ return true;
+ }
+ this.rewind(currentStart);
+ }
+ return false;
+ }
+ consumeClassSetOperand() {
+ let result = null;
+ if ((result = this.consumeNestedClass())) {
+ return result;
+ }
+ if ((result = this.consumeClassStringDisjunction())) {
+ return result;
+ }
+ if (this.consumeClassSetCharacter()) {
+ return {};
+ }
+ return null;
+ }
+ consumeNestedClass() {
+ const start = this.index;
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
+ this.onCharacterClassEnter(start, negate, true);
+ const result = this.consumeClassContents();
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
+ this.raise("Unterminated character class");
+ }
+ if (negate && result.mayContainStrings) {
+ this.raise("Negated character class may contain strings");
+ }
+ this.onCharacterClassLeave(start, this.index, negate);
+ return result;
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ const result = this.consumeCharacterClassEscape();
+ if (result) {
+ return result;
+ }
+ this.rewind(start);
+ }
+ return null;
+ }
+ consumeClassStringDisjunction() {
+ const start = this.index;
+ if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) {
+ this.onClassStringDisjunctionEnter(start);
+ let i = 0;
+ let mayContainStrings = false;
+ do {
+ if (this.consumeClassString(i++).mayContainStrings) {
+ mayContainStrings = true;
+ }
+ } while (this.eat(VERTICAL_LINE));
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
+ this.onClassStringDisjunctionLeave(start, this.index);
+ return { mayContainStrings };
+ }
+ this.raise("Unterminated class string disjunction");
+ }
+ return null;
+ }
+ consumeClassString(i) {
+ const start = this.index;
+ let count = 0;
+ this.onStringAlternativeEnter(start, i);
+ while (this.currentCodePoint !== -1 &&
+ this.consumeClassSetCharacter()) {
+ count++;
+ }
+ this.onStringAlternativeLeave(start, this.index, i);
+ return { mayContainStrings: count !== 1 };
+ }
+ consumeClassSetCharacter() {
+ const start = this.index;
+ const cp = this.currentCodePoint;
+ if (cp !== this.nextCodePoint ||
+ !isClassSetReservedDoublePunctuatorCharacter(cp)) {
+ if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) {
+ this._lastIntValue = cp;
+ this.advance();
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ }
+ if (this.eat(REVERSE_SOLIDUS)) {
+ if (this.consumeCharacterEscape()) {
+ return true;
+ }
+ if (isClassSetReservedPunctuator(this.currentCodePoint)) {
+ this._lastIntValue = this.currentCodePoint;
+ this.advance();
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
+ this._lastIntValue = BACKSPACE;
+ this.onCharacter(start, this.index, this._lastIntValue);
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatGroupName() {
+ if (this.eat(LESS_THAN_SIGN)) {
+ if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) {
+ return true;
+ }
+ this.raise("Invalid capture group name");
+ }
+ return false;
+ }
+ eatRegExpIdentifierName() {
+ if (this.eatRegExpIdentifierStart()) {
+ this._lastStrValue = String.fromCodePoint(this._lastIntValue);
+ while (this.eatRegExpIdentifierPart()) {
+ this._lastStrValue += String.fromCodePoint(this._lastIntValue);
+ }
+ return true;
+ }
+ return false;
+ }
+ eatRegExpIdentifierStart() {
+ const start = this.index;
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
+ let cp = this.currentCodePoint;
+ this.advance();
+ if (cp === REVERSE_SOLIDUS &&
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
+ cp = this._lastIntValue;
+ }
+ else if (forceUFlag &&
+ isLeadSurrogate(cp) &&
+ isTrailSurrogate(this.currentCodePoint)) {
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
+ this.advance();
+ }
+ if (isIdentifierStartChar(cp)) {
+ this._lastIntValue = cp;
+ return true;
+ }
+ if (this.index !== start) {
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpIdentifierPart() {
+ const start = this.index;
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
+ let cp = this.currentCodePoint;
+ this.advance();
+ if (cp === REVERSE_SOLIDUS &&
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
+ cp = this._lastIntValue;
+ }
+ else if (forceUFlag &&
+ isLeadSurrogate(cp) &&
+ isTrailSurrogate(this.currentCodePoint)) {
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
+ this.advance();
+ }
+ if (isIdentifierPartChar(cp)) {
+ this._lastIntValue = cp;
+ return true;
+ }
+ if (this.index !== start) {
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatCControlLetter() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_C)) {
+ if (this.eatControlLetter()) {
+ return true;
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatZero() {
+ if (this.currentCodePoint === DIGIT_ZERO &&
+ !isDecimalDigit(this.nextCodePoint)) {
+ this._lastIntValue = 0;
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ eatControlEscape() {
+ if (this.eat(LATIN_SMALL_LETTER_F)) {
+ this._lastIntValue = FORM_FEED;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_N)) {
+ this._lastIntValue = LINE_FEED;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_R)) {
+ this._lastIntValue = CARRIAGE_RETURN;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_T)) {
+ this._lastIntValue = CHARACTER_TABULATION;
+ return true;
+ }
+ if (this.eat(LATIN_SMALL_LETTER_V)) {
+ this._lastIntValue = LINE_TABULATION;
+ return true;
+ }
+ return false;
+ }
+ eatControlLetter() {
+ const cp = this.currentCodePoint;
+ if (isLatinLetter(cp)) {
+ this.advance();
+ this._lastIntValue = cp % 0x20;
+ return true;
+ }
+ return false;
+ }
+ eatRegExpUnicodeEscapeSequence(forceUFlag = false) {
+ const start = this.index;
+ const uFlag = forceUFlag || this._unicodeMode;
+ if (this.eat(LATIN_SMALL_LETTER_U)) {
+ if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) ||
+ this.eatFixedHexDigits(4) ||
+ (uFlag && this.eatRegExpUnicodeCodePointEscape())) {
+ return true;
+ }
+ if (this.strict || uFlag) {
+ this.raise("Invalid unicode escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpUnicodeSurrogatePairEscape() {
+ const start = this.index;
+ if (this.eatFixedHexDigits(4)) {
+ const lead = this._lastIntValue;
+ if (isLeadSurrogate(lead) &&
+ this.eat(REVERSE_SOLIDUS) &&
+ this.eat(LATIN_SMALL_LETTER_U) &&
+ this.eatFixedHexDigits(4)) {
+ const trail = this._lastIntValue;
+ if (isTrailSurrogate(trail)) {
+ this._lastIntValue = combineSurrogatePair(lead, trail);
+ return true;
+ }
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatRegExpUnicodeCodePointEscape() {
+ const start = this.index;
+ if (this.eat(LEFT_CURLY_BRACKET) &&
+ this.eatHexDigits() &&
+ this.eat(RIGHT_CURLY_BRACKET) &&
+ isValidUnicode(this._lastIntValue)) {
+ return true;
+ }
+ this.rewind(start);
+ return false;
+ }
+ eatIdentityEscape() {
+ const cp = this.currentCodePoint;
+ if (this.isValidIdentityEscape(cp)) {
+ this._lastIntValue = cp;
+ this.advance();
+ return true;
+ }
+ return false;
+ }
+ isValidIdentityEscape(cp) {
+ if (cp === -1) {
+ return false;
+ }
+ if (this._unicodeMode) {
+ return isSyntaxCharacter(cp) || cp === SOLIDUS;
+ }
+ if (this.strict) {
+ return !isIdContinue(cp);
+ }
+ if (this._nFlag) {
+ return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K);
+ }
+ return cp !== LATIN_SMALL_LETTER_C;
+ }
+ eatDecimalEscape() {
+ this._lastIntValue = 0;
+ let cp = this.currentCodePoint;
+ if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) {
+ do {
+ this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO);
+ this.advance();
+ } while ((cp = this.currentCodePoint) >= DIGIT_ZERO &&
+ cp <= DIGIT_NINE);
+ return true;
+ }
+ return false;
+ }
+ eatUnicodePropertyValueExpression() {
+ const start = this.index;
+ if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) {
+ const key = this._lastStrValue;
+ if (this.eatUnicodePropertyValue()) {
+ const value = this._lastStrValue;
+ if (isValidUnicodeProperty(this.ecmaVersion, key, value)) {
+ return {
+ key,
+ value: value || null,
+ };
+ }
+ this.raise("Invalid property name");
+ }
+ }
+ this.rewind(start);
+ if (this.eatLoneUnicodePropertyNameOrValue()) {
+ const nameOrValue = this._lastStrValue;
+ if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) {
+ return {
+ key: "General_Category",
+ value: nameOrValue || null,
+ };
+ }
+ if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) {
+ return {
+ key: nameOrValue,
+ value: null,
+ };
+ }
+ if (this._unicodeSetsMode &&
+ isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) {
+ return {
+ key: nameOrValue,
+ value: null,
+ strings: true,
+ };
+ }
+ this.raise("Invalid property name");
+ }
+ return null;
+ }
+ eatUnicodePropertyName() {
+ this._lastStrValue = "";
+ while (isUnicodePropertyNameCharacter(this.currentCodePoint)) {
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
+ this.advance();
+ }
+ return this._lastStrValue !== "";
+ }
+ eatUnicodePropertyValue() {
+ this._lastStrValue = "";
+ while (isUnicodePropertyValueCharacter(this.currentCodePoint)) {
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
+ this.advance();
+ }
+ return this._lastStrValue !== "";
+ }
+ eatLoneUnicodePropertyNameOrValue() {
+ return this.eatUnicodePropertyValue();
+ }
+ eatHexEscapeSequence() {
+ const start = this.index;
+ if (this.eat(LATIN_SMALL_LETTER_X)) {
+ if (this.eatFixedHexDigits(2)) {
+ return true;
+ }
+ if (this._unicodeMode || this.strict) {
+ this.raise("Invalid escape");
+ }
+ this.rewind(start);
+ }
+ return false;
+ }
+ eatDecimalDigits() {
+ const start = this.index;
+ this._lastIntValue = 0;
+ while (isDecimalDigit(this.currentCodePoint)) {
+ this._lastIntValue =
+ 10 * this._lastIntValue + digitToInt(this.currentCodePoint);
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ eatHexDigits() {
+ const start = this.index;
+ this._lastIntValue = 0;
+ while (isHexDigit(this.currentCodePoint)) {
+ this._lastIntValue =
+ 16 * this._lastIntValue + digitToInt(this.currentCodePoint);
+ this.advance();
+ }
+ return this.index !== start;
+ }
+ eatLegacyOctalEscapeSequence() {
+ if (this.eatOctalDigit()) {
+ const n1 = this._lastIntValue;
+ if (this.eatOctalDigit()) {
+ const n2 = this._lastIntValue;
+ if (n1 <= 3 && this.eatOctalDigit()) {
+ this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue;
+ }
+ else {
+ this._lastIntValue = n1 * 8 + n2;
+ }
+ }
+ else {
+ this._lastIntValue = n1;
+ }
+ return true;
+ }
+ return false;
+ }
+ eatOctalDigit() {
+ const cp = this.currentCodePoint;
+ if (isOctalDigit(cp)) {
+ this.advance();
+ this._lastIntValue = cp - DIGIT_ZERO;
+ return true;
+ }
+ this._lastIntValue = 0;
+ return false;
+ }
+ eatFixedHexDigits(length) {
+ const start = this.index;
+ this._lastIntValue = 0;
+ for (let i = 0; i < length; ++i) {
+ const cp = this.currentCodePoint;
+ if (!isHexDigit(cp)) {
+ this.rewind(start);
+ return false;
+ }
+ this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp);
+ this.advance();
+ }
+ return true;
+ }
+ eatModifiers() {
+ let ate = false;
+ while (isRegularExpressionModifier(this.currentCodePoint)) {
+ this.advance();
+ ate = true;
+ }
+ return ate;
+ }
+ parseModifiers(start, end) {
+ const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end);
+ return { ignoreCase, multiline, dotAll };
+ }
+ parseFlags(source, start, end) {
+ const flags = {
+ global: false,
+ ignoreCase: false,
+ multiline: false,
+ unicode: false,
+ sticky: false,
+ dotAll: false,
+ hasIndices: false,
+ unicodeSets: false,
+ };
+ const validFlags = new Set();
+ validFlags.add(LATIN_SMALL_LETTER_G);
+ validFlags.add(LATIN_SMALL_LETTER_I);
+ validFlags.add(LATIN_SMALL_LETTER_M);
+ if (this.ecmaVersion >= 2015) {
+ validFlags.add(LATIN_SMALL_LETTER_U);
+ validFlags.add(LATIN_SMALL_LETTER_Y);
+ if (this.ecmaVersion >= 2018) {
+ validFlags.add(LATIN_SMALL_LETTER_S);
+ if (this.ecmaVersion >= 2022) {
+ validFlags.add(LATIN_SMALL_LETTER_D);
+ if (this.ecmaVersion >= 2024) {
+ validFlags.add(LATIN_SMALL_LETTER_V);
+ }
+ }
+ }
+ }
+ for (let i = start; i < end; ++i) {
+ const flag = source.charCodeAt(i);
+ if (validFlags.has(flag)) {
+ const prop = FLAG_CODEPOINT_TO_PROP[flag];
+ if (flags[prop]) {
+ this.raise(`Duplicated flag '${source[i]}'`, {
+ index: start,
+ });
+ }
+ flags[prop] = true;
+ }
+ else {
+ this.raise(`Invalid flag '${source[i]}'`, { index: start });
+ }
+ }
+ return flags;
+ }
+}
+
+const DUMMY_PATTERN = {};
+const DUMMY_FLAGS = {};
+const DUMMY_CAPTURING_GROUP = {};
+function isClassSetOperand(node) {
+ return (node.type === "Character" ||
+ node.type === "CharacterSet" ||
+ node.type === "CharacterClass" ||
+ node.type === "ExpressionCharacterClass" ||
+ node.type === "ClassStringDisjunction");
+}
+class RegExpParserState {
+ constructor(options) {
+ var _a;
+ this._node = DUMMY_PATTERN;
+ this._expressionBufferMap = new Map();
+ this._flags = DUMMY_FLAGS;
+ this._backreferences = [];
+ this._capturingGroups = [];
+ this.source = "";
+ this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict);
+ this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
+ }
+ get pattern() {
+ if (this._node.type !== "Pattern") {
+ throw new Error("UnknownError");
+ }
+ return this._node;
+ }
+ get flags() {
+ if (this._flags.type !== "Flags") {
+ throw new Error("UnknownError");
+ }
+ return this._flags;
+ }
+ onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) {
+ this._flags = {
+ type: "Flags",
+ parent: null,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ global,
+ ignoreCase,
+ multiline,
+ unicode,
+ sticky,
+ dotAll,
+ hasIndices,
+ unicodeSets,
+ };
+ }
+ onPatternEnter(start) {
+ this._node = {
+ type: "Pattern",
+ parent: null,
+ start,
+ end: start,
+ raw: "",
+ alternatives: [],
+ };
+ this._backreferences.length = 0;
+ this._capturingGroups.length = 0;
+ }
+ onPatternLeave(start, end) {
+ this._node.end = end;
+ this._node.raw = this.source.slice(start, end);
+ for (const reference of this._backreferences) {
+ const ref = reference.ref;
+ const groups = typeof ref === "number"
+ ? [this._capturingGroups[ref - 1]]
+ : this._capturingGroups.filter((g) => g.name === ref);
+ if (groups.length === 1) {
+ const group = groups[0];
+ reference.ambiguous = false;
+ reference.resolved = group;
+ }
+ else {
+ reference.ambiguous = true;
+ reference.resolved = groups;
+ }
+ for (const group of groups) {
+ group.references.push(reference);
+ }
+ }
+ }
+ onAlternativeEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Assertion" &&
+ parent.type !== "CapturingGroup" &&
+ parent.type !== "Group" &&
+ parent.type !== "Pattern") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "Alternative",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ elements: [],
+ };
+ parent.alternatives.push(this._node);
+ }
+ onAlternativeLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onGroupEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const group = {
+ type: "Group",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ modifiers: null,
+ alternatives: [],
+ };
+ this._node = group;
+ parent.elements.push(this._node);
+ }
+ onGroupLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Group" || node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onModifiersEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "Group") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "Modifiers",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ add: null,
+ remove: null,
+ };
+ parent.modifiers = this._node;
+ }
+ onModifiersLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Modifiers" || node.parent.type !== "Group") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
+ const parent = this._node;
+ if (parent.type !== "Modifiers") {
+ throw new Error("UnknownError");
+ }
+ parent.add = {
+ type: "ModifierFlags",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ignoreCase,
+ multiline,
+ dotAll,
+ };
+ }
+ onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
+ const parent = this._node;
+ if (parent.type !== "Modifiers") {
+ throw new Error("UnknownError");
+ }
+ parent.remove = {
+ type: "ModifierFlags",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ignoreCase,
+ multiline,
+ dotAll,
+ };
+ }
+ onCapturingGroupEnter(start, name) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "CapturingGroup",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ name,
+ alternatives: [],
+ references: [],
+ };
+ parent.elements.push(this._node);
+ this._capturingGroups.push(this._node);
+ }
+ onCapturingGroupLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "CapturingGroup" ||
+ node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onQuantifier(start, end, min, max, greedy) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const element = parent.elements.pop();
+ if (element == null ||
+ element.type === "Quantifier" ||
+ (element.type === "Assertion" && element.kind !== "lookahead")) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "Quantifier",
+ parent,
+ start: element.start,
+ end,
+ raw: this.source.slice(element.start, end),
+ min,
+ max,
+ greedy,
+ element,
+ };
+ parent.elements.push(node);
+ element.parent = node;
+ }
+ onLookaroundAssertionEnter(start, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const node = (this._node = {
+ type: "Assertion",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ kind,
+ negate,
+ alternatives: [],
+ });
+ parent.elements.push(node);
+ }
+ onLookaroundAssertionLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "Assertion" || node.parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onEdgeAssertion(start, end, kind) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Assertion",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ });
+ }
+ onWordBoundaryAssertion(start, end, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Assertion",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ negate,
+ });
+ }
+ onAnyCharacterSet(start, end, kind) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "CharacterSet",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ });
+ }
+ onEscapeCharacterSet(start, end, kind, negate) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "CharacterSet",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ negate,
+ });
+ }
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ const base = {
+ type: "CharacterSet",
+ parent: null,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ kind,
+ strings: null,
+ key,
+ };
+ if (strings) {
+ if ((parent.type === "CharacterClass" && !parent.unicodeSets) ||
+ negate ||
+ value !== null) {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
+ }
+ else {
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
+ }
+ }
+ onCharacter(start, end, value) {
+ const parent = this._node;
+ if (parent.type !== "Alternative" &&
+ parent.type !== "CharacterClass" &&
+ parent.type !== "StringAlternative") {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push({
+ type: "Character",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ value,
+ });
+ }
+ onBackreference(start, end, ref) {
+ const parent = this._node;
+ if (parent.type !== "Alternative") {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "Backreference",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ ref,
+ ambiguous: false,
+ resolved: DUMMY_CAPTURING_GROUP,
+ };
+ parent.elements.push(node);
+ this._backreferences.push(node);
+ }
+ onCharacterClassEnter(start, negate, unicodeSets) {
+ const parent = this._node;
+ const base = {
+ type: "CharacterClass",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ unicodeSets,
+ negate,
+ elements: [],
+ };
+ if (parent.type === "Alternative") {
+ const node = Object.assign(Object.assign({}, base), { parent });
+ this._node = node;
+ parent.elements.push(node);
+ }
+ else if (parent.type === "CharacterClass" &&
+ parent.unicodeSets &&
+ unicodeSets) {
+ const node = Object.assign(Object.assign({}, base), { parent,
+ unicodeSets });
+ this._node = node;
+ parent.elements.push(node);
+ }
+ else {
+ throw new Error("UnknownError");
+ }
+ }
+ onCharacterClassLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "CharacterClass" ||
+ (node.parent.type !== "Alternative" &&
+ node.parent.type !== "CharacterClass")) {
+ throw new Error("UnknownError");
+ }
+ const parent = node.parent;
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = parent;
+ const expression = this._expressionBufferMap.get(node);
+ if (!expression) {
+ return;
+ }
+ if (node.elements.length > 0) {
+ throw new Error("UnknownError");
+ }
+ this._expressionBufferMap.delete(node);
+ const newNode = {
+ type: "ExpressionCharacterClass",
+ parent,
+ start: node.start,
+ end: node.end,
+ raw: node.raw,
+ negate: node.negate,
+ expression,
+ };
+ expression.parent = newNode;
+ if (node !== parent.elements.pop()) {
+ throw new Error("UnknownError");
+ }
+ parent.elements.push(newNode);
+ }
+ onCharacterClassRange(start, end) {
+ const parent = this._node;
+ if (parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ const elements = parent.elements;
+ const max = elements.pop();
+ if (!max || max.type !== "Character") {
+ throw new Error("UnknownError");
+ }
+ if (!parent.unicodeSets) {
+ const hyphen = elements.pop();
+ if (!hyphen ||
+ hyphen.type !== "Character" ||
+ hyphen.value !== HYPHEN_MINUS) {
+ throw new Error("UnknownError");
+ }
+ }
+ const min = elements.pop();
+ if (!min || min.type !== "Character") {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "CharacterClassRange",
+ parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ min,
+ max,
+ };
+ min.parent = node;
+ max.parent = node;
+ elements.push(node);
+ }
+ onClassIntersection(start, end) {
+ var _a;
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ const right = parent.elements.pop();
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
+ if (!left ||
+ !right ||
+ left.type === "ClassSubtraction" ||
+ (left.type !== "ClassIntersection" && !isClassSetOperand(left)) ||
+ !isClassSetOperand(right)) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "ClassIntersection",
+ parent: parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ left,
+ right,
+ };
+ left.parent = node;
+ right.parent = node;
+ this._expressionBufferMap.set(parent, node);
+ }
+ onClassSubtraction(start, end) {
+ var _a;
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ const right = parent.elements.pop();
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
+ if (!left ||
+ !right ||
+ left.type === "ClassIntersection" ||
+ (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) ||
+ !isClassSetOperand(right)) {
+ throw new Error("UnknownError");
+ }
+ const node = {
+ type: "ClassSubtraction",
+ parent: parent,
+ start,
+ end,
+ raw: this.source.slice(start, end),
+ left,
+ right,
+ };
+ left.parent = node;
+ right.parent = node;
+ this._expressionBufferMap.set(parent, node);
+ }
+ onClassStringDisjunctionEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "ClassStringDisjunction",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ alternatives: [],
+ };
+ parent.elements.push(this._node);
+ }
+ onClassStringDisjunctionLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "ClassStringDisjunction" ||
+ node.parent.type !== "CharacterClass") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+ onStringAlternativeEnter(start) {
+ const parent = this._node;
+ if (parent.type !== "ClassStringDisjunction") {
+ throw new Error("UnknownError");
+ }
+ this._node = {
+ type: "StringAlternative",
+ parent,
+ start,
+ end: start,
+ raw: "",
+ elements: [],
+ };
+ parent.alternatives.push(this._node);
+ }
+ onStringAlternativeLeave(start, end) {
+ const node = this._node;
+ if (node.type !== "StringAlternative") {
+ throw new Error("UnknownError");
+ }
+ node.end = end;
+ node.raw = this.source.slice(start, end);
+ this._node = node.parent;
+ }
+}
+class RegExpParser {
+ constructor(options) {
+ this._state = new RegExpParserState(options);
+ this._validator = new RegExpValidator(this._state);
+ }
+ parseLiteral(source, start = 0, end = source.length) {
+ this._state.source = source;
+ this._validator.validateLiteral(source, start, end);
+ const pattern = this._state.pattern;
+ const flags = this._state.flags;
+ const literal = {
+ type: "RegExpLiteral",
+ parent: null,
+ start,
+ end,
+ raw: source,
+ pattern,
+ flags,
+ };
+ pattern.parent = literal;
+ flags.parent = literal;
+ return literal;
+ }
+ parseFlags(source, start = 0, end = source.length) {
+ this._state.source = source;
+ this._validator.validateFlags(source, start, end);
+ return this._state.flags;
+ }
+ parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
+ this._state.source = source;
+ this._validator.validatePattern(source, start, end, uFlagOrFlags);
+ return this._state.pattern;
+ }
+}
+
+class RegExpVisitor {
+ constructor(handlers) {
+ this._handlers = handlers;
+ }
+ visit(node) {
+ switch (node.type) {
+ case "Alternative":
+ this.visitAlternative(node);
+ break;
+ case "Assertion":
+ this.visitAssertion(node);
+ break;
+ case "Backreference":
+ this.visitBackreference(node);
+ break;
+ case "CapturingGroup":
+ this.visitCapturingGroup(node);
+ break;
+ case "Character":
+ this.visitCharacter(node);
+ break;
+ case "CharacterClass":
+ this.visitCharacterClass(node);
+ break;
+ case "CharacterClassRange":
+ this.visitCharacterClassRange(node);
+ break;
+ case "CharacterSet":
+ this.visitCharacterSet(node);
+ break;
+ case "ClassIntersection":
+ this.visitClassIntersection(node);
+ break;
+ case "ClassStringDisjunction":
+ this.visitClassStringDisjunction(node);
+ break;
+ case "ClassSubtraction":
+ this.visitClassSubtraction(node);
+ break;
+ case "ExpressionCharacterClass":
+ this.visitExpressionCharacterClass(node);
+ break;
+ case "Flags":
+ this.visitFlags(node);
+ break;
+ case "Group":
+ this.visitGroup(node);
+ break;
+ case "Modifiers":
+ this.visitModifiers(node);
+ break;
+ case "ModifierFlags":
+ this.visitModifierFlags(node);
+ break;
+ case "Pattern":
+ this.visitPattern(node);
+ break;
+ case "Quantifier":
+ this.visitQuantifier(node);
+ break;
+ case "RegExpLiteral":
+ this.visitRegExpLiteral(node);
+ break;
+ case "StringAlternative":
+ this.visitStringAlternative(node);
+ break;
+ default:
+ throw new Error(`Unknown type: ${node.type}`);
+ }
+ }
+ visitAlternative(node) {
+ if (this._handlers.onAlternativeEnter) {
+ this._handlers.onAlternativeEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onAlternativeLeave) {
+ this._handlers.onAlternativeLeave(node);
+ }
+ }
+ visitAssertion(node) {
+ if (this._handlers.onAssertionEnter) {
+ this._handlers.onAssertionEnter(node);
+ }
+ if (node.kind === "lookahead" || node.kind === "lookbehind") {
+ node.alternatives.forEach(this.visit, this);
+ }
+ if (this._handlers.onAssertionLeave) {
+ this._handlers.onAssertionLeave(node);
+ }
+ }
+ visitBackreference(node) {
+ if (this._handlers.onBackreferenceEnter) {
+ this._handlers.onBackreferenceEnter(node);
+ }
+ if (this._handlers.onBackreferenceLeave) {
+ this._handlers.onBackreferenceLeave(node);
+ }
+ }
+ visitCapturingGroup(node) {
+ if (this._handlers.onCapturingGroupEnter) {
+ this._handlers.onCapturingGroupEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onCapturingGroupLeave) {
+ this._handlers.onCapturingGroupLeave(node);
+ }
+ }
+ visitCharacter(node) {
+ if (this._handlers.onCharacterEnter) {
+ this._handlers.onCharacterEnter(node);
+ }
+ if (this._handlers.onCharacterLeave) {
+ this._handlers.onCharacterLeave(node);
+ }
+ }
+ visitCharacterClass(node) {
+ if (this._handlers.onCharacterClassEnter) {
+ this._handlers.onCharacterClassEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onCharacterClassLeave) {
+ this._handlers.onCharacterClassLeave(node);
+ }
+ }
+ visitCharacterClassRange(node) {
+ if (this._handlers.onCharacterClassRangeEnter) {
+ this._handlers.onCharacterClassRangeEnter(node);
+ }
+ this.visitCharacter(node.min);
+ this.visitCharacter(node.max);
+ if (this._handlers.onCharacterClassRangeLeave) {
+ this._handlers.onCharacterClassRangeLeave(node);
+ }
+ }
+ visitCharacterSet(node) {
+ if (this._handlers.onCharacterSetEnter) {
+ this._handlers.onCharacterSetEnter(node);
+ }
+ if (this._handlers.onCharacterSetLeave) {
+ this._handlers.onCharacterSetLeave(node);
+ }
+ }
+ visitClassIntersection(node) {
+ if (this._handlers.onClassIntersectionEnter) {
+ this._handlers.onClassIntersectionEnter(node);
+ }
+ this.visit(node.left);
+ this.visit(node.right);
+ if (this._handlers.onClassIntersectionLeave) {
+ this._handlers.onClassIntersectionLeave(node);
+ }
+ }
+ visitClassStringDisjunction(node) {
+ if (this._handlers.onClassStringDisjunctionEnter) {
+ this._handlers.onClassStringDisjunctionEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onClassStringDisjunctionLeave) {
+ this._handlers.onClassStringDisjunctionLeave(node);
+ }
+ }
+ visitClassSubtraction(node) {
+ if (this._handlers.onClassSubtractionEnter) {
+ this._handlers.onClassSubtractionEnter(node);
+ }
+ this.visit(node.left);
+ this.visit(node.right);
+ if (this._handlers.onClassSubtractionLeave) {
+ this._handlers.onClassSubtractionLeave(node);
+ }
+ }
+ visitExpressionCharacterClass(node) {
+ if (this._handlers.onExpressionCharacterClassEnter) {
+ this._handlers.onExpressionCharacterClassEnter(node);
+ }
+ this.visit(node.expression);
+ if (this._handlers.onExpressionCharacterClassLeave) {
+ this._handlers.onExpressionCharacterClassLeave(node);
+ }
+ }
+ visitFlags(node) {
+ if (this._handlers.onFlagsEnter) {
+ this._handlers.onFlagsEnter(node);
+ }
+ if (this._handlers.onFlagsLeave) {
+ this._handlers.onFlagsLeave(node);
+ }
+ }
+ visitGroup(node) {
+ if (this._handlers.onGroupEnter) {
+ this._handlers.onGroupEnter(node);
+ }
+ if (node.modifiers) {
+ this.visit(node.modifiers);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onGroupLeave) {
+ this._handlers.onGroupLeave(node);
+ }
+ }
+ visitModifiers(node) {
+ if (this._handlers.onModifiersEnter) {
+ this._handlers.onModifiersEnter(node);
+ }
+ if (node.add) {
+ this.visit(node.add);
+ }
+ if (node.remove) {
+ this.visit(node.remove);
+ }
+ if (this._handlers.onModifiersLeave) {
+ this._handlers.onModifiersLeave(node);
+ }
+ }
+ visitModifierFlags(node) {
+ if (this._handlers.onModifierFlagsEnter) {
+ this._handlers.onModifierFlagsEnter(node);
+ }
+ if (this._handlers.onModifierFlagsLeave) {
+ this._handlers.onModifierFlagsLeave(node);
+ }
+ }
+ visitPattern(node) {
+ if (this._handlers.onPatternEnter) {
+ this._handlers.onPatternEnter(node);
+ }
+ node.alternatives.forEach(this.visit, this);
+ if (this._handlers.onPatternLeave) {
+ this._handlers.onPatternLeave(node);
+ }
+ }
+ visitQuantifier(node) {
+ if (this._handlers.onQuantifierEnter) {
+ this._handlers.onQuantifierEnter(node);
+ }
+ this.visit(node.element);
+ if (this._handlers.onQuantifierLeave) {
+ this._handlers.onQuantifierLeave(node);
+ }
+ }
+ visitRegExpLiteral(node) {
+ if (this._handlers.onRegExpLiteralEnter) {
+ this._handlers.onRegExpLiteralEnter(node);
+ }
+ this.visitPattern(node.pattern);
+ this.visitFlags(node.flags);
+ if (this._handlers.onRegExpLiteralLeave) {
+ this._handlers.onRegExpLiteralLeave(node);
+ }
+ }
+ visitStringAlternative(node) {
+ if (this._handlers.onStringAlternativeEnter) {
+ this._handlers.onStringAlternativeEnter(node);
+ }
+ node.elements.forEach(this.visit, this);
+ if (this._handlers.onStringAlternativeLeave) {
+ this._handlers.onStringAlternativeLeave(node);
+ }
+ }
+}
+
+function parseRegExpLiteral(source, options) {
+ return new RegExpParser(options).parseLiteral(String(source));
+}
+function validateRegExpLiteral(source, options) {
+ new RegExpValidator(options).validateLiteral(source);
+}
+function visitRegExpAST(node, handlers) {
+ new RegExpVisitor(handlers).visit(node);
+}
+
+export { ast as AST, RegExpParser, RegExpSyntaxError, RegExpValidator, parseRegExpLiteral, validateRegExpLiteral, visitRegExpAST };
+//# sourceMappingURL=index.mjs.map
diff --git a/node_modules/@eslint-community/regexpp/index.mjs.map b/node_modules/@eslint-community/regexpp/index.mjs.map
new file mode 100644
index 00000000000..0d1c5f786f8
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/index.mjs.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.mjs.map","sources":[".temp/src/ecma-versions.ts",".temp/unicode/src/unicode/ids.ts",".temp/unicode/src/unicode/properties.ts",".temp/unicode/src/unicode/index.ts",".temp/src/group-specifiers.ts",".temp/src/reader.ts",".temp/src/regexp-syntax-error.ts",".temp/src/validator.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B,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;QACD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;AACvC,QAAA,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE;AACzC,YAAA,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAA;AAChD,SAAA;KACJ;AACJ;;ACpTe,SAAA,kBAAkB,CAC9B,MAAuB,EACvB,OAA8B,EAAA;AAE9B,IAAA,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;AACjE,CAAC;AAOe,SAAA,qBAAqB,CACjC,MAAc,EACd,OAAiC,EAAA;IAEjC,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;AACxD,CAAC;AAEe,SAAA,cAAc,CAC1B,IAAc,EACd,QAAgC,EAAA;IAEhC,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C;;;;"}
\ No newline at end of file
diff --git a/node_modules/@eslint-community/regexpp/package.json b/node_modules/@eslint-community/regexpp/package.json
new file mode 100644
index 00000000000..39cbfde7dd7
--- /dev/null
+++ b/node_modules/@eslint-community/regexpp/package.json
@@ -0,0 +1,91 @@
+{
+ "name": "@eslint-community/regexpp",
+ "version": "4.12.1",
+ "description": "Regular expression parser for ECMAScript.",
+ "keywords": [
+ "regexp",
+ "regular",
+ "expression",
+ "parser",
+ "validator",
+ "ast",
+ "abstract",
+ "syntax",
+ "tree",
+ "ecmascript",
+ "es2015",
+ "es2016",
+ "es2017",
+ "es2018",
+ "es2019",
+ "es2020",
+ "es2021",
+ "annexB"
+ ],
+ "homepage": "https://github.com/eslint-community/regexpp#readme",
+ "bugs": {
+ "url": "https://github.com/eslint-community/regexpp/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/eslint-community/regexpp"
+ },
+ "license": "MIT",
+ "author": "Toru Nagashima",
+ "exports": {
+ ".": {
+ "types": "./index.d.ts",
+ "import": "./index.mjs",
+ "default": "./index.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "main": "index",
+ "files": [
+ "index.*"
+ ],
+ "scripts": {
+ "prebuild": "npm run -s clean",
+ "build": "run-s build:*",
+ "build:tsc": "tsc --module es2015",
+ "build:rollup": "rollup -c",
+ "build:dts": "npm run -s build:tsc -- --removeComments false && dts-bundle --name @eslint-community/regexpp --main .temp/index.d.ts --out ../index.d.ts && prettier --write index.d.ts",
+ "clean": "rimraf .temp index.*",
+ "lint": "eslint . --ext .ts",
+ "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
+ "debug": "mocha --require ts-node/register/transpile-only \"test/*.ts\" --reporter dot --timeout 10000",
+ "update:test": "ts-node scripts/update-fixtures.ts",
+ "update:unicode": "run-s update:unicode:*",
+ "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts",
+ "update:unicode:props": "ts-node scripts/update-unicode-properties.ts",
+ "update:test262:extract": "ts-node -T scripts/extract-test262.ts",
+ "preversion": "npm test && npm run -s build",
+ "postversion": "git push && git push --tags",
+ "prewatch": "npm run -s clean",
+ "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions ts --watch --growl"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "@eslint-community/eslint-plugin-mysticatea": "^15.5.1",
+ "@rollup/plugin-node-resolve": "^14.1.0",
+ "@types/eslint": "^8.44.3",
+ "@types/jsdom": "^16.2.15",
+ "@types/mocha": "^9.1.1",
+ "@types/node": "^12.20.55",
+ "dts-bundle": "^0.7.3",
+ "eslint": "^8.50.0",
+ "js-tokens": "^8.0.2",
+ "jsdom": "^19.0.0",
+ "mocha": "^9.2.2",
+ "npm-run-all2": "^6.2.2",
+ "nyc": "^14.1.1",
+ "rimraf": "^3.0.2",
+ "rollup": "^2.79.1",
+ "rollup-plugin-sourcemaps": "^0.6.3",
+ "ts-node": "^10.9.1",
+ "typescript": "~5.0.2"
+ },
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+}
diff --git a/node_modules/@eslint/config-array/LICENSE b/node_modules/@eslint/config-array/LICENSE
new file mode 100644
index 00000000000..261eeb9e9f8
--- /dev/null
+++ b/node_modules/@eslint/config-array/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/node_modules/@eslint/config-array/README.md b/node_modules/@eslint/config-array/README.md
new file mode 100644
index 00000000000..9d343aaec3e
--- /dev/null
+++ b/node_modules/@eslint/config-array/README.md
@@ -0,0 +1,358 @@
+# Config Array
+
+## Description
+
+A config array is a way of managing configurations that are based on glob pattern matching of filenames. Each config array contains the information needed to determine the correct configuration for any file based on the filename.
+
+**Note:** This is a generic package that can be used outside of ESLint. It contains no ESLint-specific functionality.
+
+## Installation
+
+For Node.js and compatible runtimes:
+
+```shell
+npm install @eslint/config-array
+# or
+yarn add @eslint/config-array
+# or
+pnpm install @eslint/config-array
+# or
+bun install @eslint/config-array
+```
+
+For Deno:
+
+```shell
+deno add @eslint/config-array
+```
+
+## Background
+
+The basic idea is that all configuration, including overrides, can be represented by a single array where each item in the array is a config object. Config objects appearing later in the array override config objects appearing earlier in the array. You can calculate a config for a given file by traversing all config objects in the array to find the ones that match the filename. Matching is done by specifying glob patterns in `files` and `ignores` properties on each config object. Here's an example:
+
+```js
+export default [
+ // match all JSON files
+ {
+ name: "JSON Handler",
+ files: ["**/*.json"],
+ handler: jsonHandler,
+ },
+
+ // match only package.json
+ {
+ name: "package.json Handler",
+ files: ["package.json"],
+ handler: packageJsonHandler,
+ },
+];
+```
+
+In this example, there are two config objects: the first matches all JSON files in all directories and the second matches just `package.json` in the base path directory (all the globs are evaluated as relative to a base path that can be specified). When you retrieve a configuration for `foo.json`, only the first config object matches so `handler` is equal to `jsonHandler`; when you retrieve a configuration for `package.json`, `handler` is equal to `packageJsonHandler` (because both config objects match, the second one wins).
+
+## Usage
+
+First, import the `ConfigArray` constructor:
+
+```js
+import { ConfigArray } from "@eslint/config-array";
+
+// or using CommonJS
+
+const { ConfigArray } = require("@eslint/config-array");
+```
+
+When you create a new instance of `ConfigArray`, you must pass in two arguments: an array of configs and an options object. The array of configs is most likely read in from a configuration file, so here's a typical example:
+
+```js
+const configFilename = path.resolve(process.cwd(), "my.config.js");
+const { default: rawConfigs } = await import(configFilename);
+const configs = new ConfigArray(rawConfigs, {
+ // the path to match filenames from
+ basePath: process.cwd(),
+
+ // additional items in each config
+ schema: mySchema,
+});
+```
+
+This example reads in an object or array from `my.config.js` and passes it into the `ConfigArray` constructor as the first argument. The second argument is an object specifying the `basePath` (the directory in which `my.config.js` is found) and a `schema` to define the additional properties of a config object beyond `files`, `ignores`, and `name`.
+
+### Specifying a Schema
+
+The `schema` option is required for you to use additional properties in config objects. The schema is an object that follows the format of an [`ObjectSchema`](https://npmjs.com/package/@eslint/object-schema). The schema specifies both validation and merge rules that the `ConfigArray` instance needs to combine configs when there are multiple matches. Here's an example:
+
+```js
+const configFilename = path.resolve(process.cwd(), "my.config.js");
+const { default: rawConfigs } = await import(configFilename);
+
+const mySchema = {
+
+ // define the handler key in configs
+ handler: {
+ required: true,
+ merge(a, b) {
+ if (!b) return a;
+ if (!a) return b;
+ },
+ validate(value) {
+ if (typeof value !== "function") {
+ throw new TypeError("Function expected.");
+ }
+ }
+ }
+};
+
+const configs = new ConfigArray(rawConfigs, {
+
+ // the path to match filenames from
+ basePath: process.cwd(),
+
+ // additional item schemas in each config
+ schema: mySchema,
+
+ // additional config types supported (default: [])
+ extraConfigTypes: ["array", "function"];
+});
+```
+
+### Config Arrays
+
+Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as:
+
+```js
+export default [
+ // JS config
+ {
+ files: ["**/*.js"],
+ handler: jsHandler,
+ },
+
+ // JSON configs
+ [
+ // match all JSON files
+ {
+ name: "JSON Handler",
+ files: ["**/*.json"],
+ handler: jsonHandler,
+ },
+
+ // match only package.json
+ {
+ name: "package.json Handler",
+ files: ["package.json"],
+ handler: packageJsonHandler,
+ },
+ ],
+
+ // filename must match function
+ {
+ files: [filePath => filePath.endsWith(".md")],
+ handler: markdownHandler,
+ },
+
+ // filename must match all patterns in subarray
+ {
+ files: [["*.test.*", "*.js"]],
+ handler: jsTestHandler,
+ },
+
+ // filename must not match patterns beginning with !
+ {
+ name: "Non-JS files",
+ files: ["!*.js"],
+ settings: {
+ js: false,
+ },
+ },
+];
+```
+
+In this example, the array contains both config objects and a config array. When a config array is normalized (see details below), it is flattened so only config objects remain. However, the order of evaluation remains the same.
+
+If the `files` array contains a function, then that function is called with the path of the file as it was passed in. The function is expected to return `true` if there is a match and `false` if not. (The `ignores` array can also contain functions.)
+
+If the `files` array contains an item that is an array of strings and functions, then all patterns must match in order for the config to match. In the preceding examples, both `*.test.*` and `*.js` must match in order for the config object to be used.
+
+If a pattern in the files array begins with `!` then it excludes that pattern. In the preceding example, any filename that doesn't end with `.js` will automatically get a `settings.js` property set to `false`.
+
+You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without any other keys, then those ignores will always be applied; otherwise those ignores act as exclusions. Here's an example:
+
+```js
+export default [
+
+ // Always ignored
+ {
+ ignores: ["**/.git/**", "**/node_modules/**"]
+ },
+
+ // .eslintrc.js file is ignored only when .js file matches
+ {
+ files: ["**/*.js"],
+ ignores: [".eslintrc.js"]
+ handler: jsHandler
+ }
+];
+```
+
+You can use negated patterns in `ignores` to exclude a file that was already ignored, such as:
+
+```js
+export default [
+ // Ignore all JSON files except tsconfig.json
+ {
+ files: ["**/*"],
+ ignores: ["**/*.json", "!tsconfig.json"],
+ },
+];
+```
+
+### Config Functions
+
+Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example:
+
+```js
+export default [
+ // JS config
+ {
+ files: ["**/*.js"],
+ handler: jsHandler,
+ },
+
+ // JSON configs
+ function (context) {
+ return [
+ // match all JSON files
+ {
+ name: context.name + " JSON Handler",
+ files: ["**/*.json"],
+ handler: jsonHandler,
+ },
+
+ // match only package.json
+ {
+ name: context.name + " package.json Handler",
+ files: ["package.json"],
+ handler: packageJsonHandler,
+ },
+ ];
+ },
+];
+```
+
+When a config array is normalized, each function is executed and replaced in the config array with the return value.
+
+**Note:** Config functions can also be async.
+
+### Normalizing Config Arrays
+
+Once a config array has been created and loaded with all of the raw config data, it must be normalized before it can be used. The normalization process goes through and flattens the config array as well as executing all config functions to get their final values.
+
+To normalize a config array, call the `normalize()` method and pass in a context object:
+
+```js
+await configs.normalize({
+ name: "MyApp",
+});
+```
+
+The `normalize()` method returns a promise, so be sure to use the `await` operator. The config array instance is normalized in-place, so you don't need to create a new variable.
+
+If you want to disallow async config functions, you can call `normalizeSync()` instead. This method is completely synchronous and does not require using the `await` operator as it does not return a promise:
+
+```js
+await configs.normalizeSync({
+ name: "MyApp",
+});
+```
+
+**Important:** Once a `ConfigArray` is normalized, it cannot be changed further. You can, however, create a new `ConfigArray` and pass in the normalized instance to create an unnormalized copy.
+
+### Getting Config for a File
+
+To get the config for a file, use the `getConfig()` method on a normalized config array and pass in the filename to get a config for:
+
+```js
+// pass in filename
+const fileConfig = configs.getConfig(
+ path.resolve(process.cwd(), "package.json"),
+);
+```
+
+The config array always returns an object, even if there are no configs matching the given filename. You can then inspect the returned config object to determine how to proceed.
+
+A few things to keep in mind:
+
+- If a filename is not an absolute path, it will be resolved relative to the base path directory.
+- The returned config object never has `files`, `ignores`, or `name` properties; the only properties on the object will be the other configuration options specified.
+- The config array caches configs, so subsequent calls to `getConfig()` with the same filename will return in a fast lookup rather than another calculation.
+- A config will only be generated if the filename matches an entry in a `files` key. A config will not be generated without matching a `files` key (configs without a `files` key are only applied when another config with a `files` key is applied; configs without `files` are never applied on their own). Any config with a `files` key entry that is `*` or ends with `/**` or `/*` will only be applied if another entry in the same `files` key matches or another config matches.
+
+## Determining Ignored Paths
+
+You can determine if a file is ignored by using the `isFileIgnored()` method and passing in the path of any file, as in this example:
+
+```js
+const ignored = configs.isFileIgnored("/foo/bar/baz.txt");
+```
+
+A file is considered ignored if any of the following is true:
+
+- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/a.js` is considered ignored.
+- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/baz/a.js` is considered ignored.
+- **It matches an ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored.
+- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored.
+- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored.
+
+For directories, use the `isDirectoryIgnored()` method and pass in the path of any directory, as in this example:
+
+```js
+const ignored = configs.isDirectoryIgnored("/foo/bar/");
+```
+
+A directory is considered ignored if any of the following is true:
+
+- **It's parent directory is ignored.** For example, if `foo` is in `ignores`, then `foo/baz` is considered ignored.
+- **It has an ancestor directory that is ignored.** For example, if `foo` is in `ignores`, then `foo/bar/baz/a.js` is considered ignored.
+- **It matches and ignored file pattern.** For example, if `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored.
+- **If it matches an entry in `files` and also in `ignores`.** For example, if `**/*.js` is in `files` and `**/a.js` is in `ignores`, then `foo/a.js` and `foo/baz/a.js` are considered ignored.
+- **The file is outside the `basePath`.** If the `basePath` is `/usr/me`, then `/foo/a.js` is considered ignored.
+
+**Important:** A pattern such as `foo/**` means that `foo` and `foo/` are _not_ ignored whereas `foo/bar` is ignored. If you want to ignore `foo` and all of its subdirectories, use the pattern `foo` or `foo/` in `ignores`.
+
+## Caching Mechanisms
+
+Each `ConfigArray` aggressively caches configuration objects to avoid unnecessary work. This caching occurs in two ways:
+
+1. **File-based Caching.** For each filename that is passed into a method, the resulting config is cached against that filename so you're always guaranteed to get the same object returned from `getConfig()` whenever you pass the same filename in.
+2. **Index-based Caching.** Whenever a config is calculated, the config elements that were used to create the config are also cached. So if a given filename matches elements 1, 5, and 7, the resulting config is cached with a key of `1,5,7`. That way, if another file is passed that matches the same config elements, the result is already known and doesn't have to be recalculated. That means two files that match all the same elements will return the same config from `getConfig()`.
+
+## Acknowledgements
+
+The design of this project was influenced by feedback on the ESLint RFC, and incorporates ideas from:
+
+- Teddy Katz (@not-an-aardvark)
+- Toru Nagashima (@mysticatea)
+- Kai Cataldo (@kaicataldo)
+
+## License
+
+Apache 2.0
+
+
+
+
+## Sponsors
+
+The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate)
+to get your logo on our READMEs and [website](https://eslint.org/sponsors).
+
+
Platinum Sponsors
+
Gold Sponsors
+
Silver Sponsors
+
Bronze Sponsors
+
+
Technology Sponsors
+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
+
+
diff --git a/node_modules/@eslint/config-array/dist/cjs/index.cjs b/node_modules/@eslint/config-array/dist/cjs/index.cjs
new file mode 100644
index 00000000000..cc033c31523
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/cjs/index.cjs
@@ -0,0 +1,1304 @@
+'use strict';
+
+var posixPath = require('./std__path/posix.cjs');
+var windowsPath = require('./std__path/windows.cjs');
+var minimatch = require('minimatch');
+var createDebug = require('debug');
+var objectSchema = require('@eslint/object-schema');
+
+function _interopNamespaceDefault(e) {
+ var n = Object.create(null);
+ if (e) {
+ Object.keys(e).forEach(function (k) {
+ if (k !== 'default') {
+ var d = Object.getOwnPropertyDescriptor(e, k);
+ Object.defineProperty(n, k, d.get ? d : {
+ enumerable: true,
+ get: function () { return e[k]; }
+ });
+ }
+ });
+ }
+ n.default = e;
+ return Object.freeze(n);
+}
+
+var posixPath__namespace = /*#__PURE__*/_interopNamespaceDefault(posixPath);
+var windowsPath__namespace = /*#__PURE__*/_interopNamespaceDefault(windowsPath);
+
+/**
+ * @fileoverview ConfigSchema
+ * @author Nicholas C. Zakas
+ */
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */
+/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * A strategy that does nothing.
+ * @type {PropertyDefinition}
+ */
+const NOOP_STRATEGY = {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate() {},
+};
+
+//------------------------------------------------------------------------------
+// Exports
+//------------------------------------------------------------------------------
+
+/**
+ * The base schema that every ConfigArray uses.
+ * @type {ObjectDefinition}
+ */
+const baseSchema = Object.freeze({
+ name: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate(value) {
+ if (typeof value !== "string") {
+ throw new TypeError("Property must be a string.");
+ }
+ },
+ },
+ files: NOOP_STRATEGY,
+ ignores: NOOP_STRATEGY,
+});
+
+/**
+ * @fileoverview ConfigSchema
+ * @author Nicholas C. Zakas
+ */
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * Asserts that a given value is an array.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array.
+ */
+function assertIsArray(value) {
+ if (!Array.isArray(value)) {
+ throw new TypeError("Expected value to be an array.");
+ }
+}
+
+/**
+ * Asserts that a given value is an array containing only strings and functions.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array of strings and functions.
+ */
+function assertIsArrayOfStringsAndFunctions(value) {
+ assertIsArray(value);
+
+ if (
+ value.some(
+ item => typeof item !== "string" && typeof item !== "function",
+ )
+ ) {
+ throw new TypeError(
+ "Expected array to only contain strings and functions.",
+ );
+ }
+}
+
+/**
+ * Asserts that a given value is a non-empty array.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array or an empty array.
+ */
+function assertIsNonEmptyArray(value) {
+ if (!Array.isArray(value) || value.length === 0) {
+ throw new TypeError("Expected value to be a non-empty array.");
+ }
+}
+
+//------------------------------------------------------------------------------
+// Exports
+//------------------------------------------------------------------------------
+
+/**
+ * The schema for `files` and `ignores` that every ConfigArray uses.
+ * @type {ObjectDefinition}
+ */
+const filesAndIgnoresSchema = Object.freeze({
+ files: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate(value) {
+ // first check if it's an array
+ assertIsNonEmptyArray(value);
+
+ // then check each member
+ value.forEach(item => {
+ if (Array.isArray(item)) {
+ assertIsArrayOfStringsAndFunctions(item);
+ } else if (
+ typeof item !== "string" &&
+ typeof item !== "function"
+ ) {
+ throw new TypeError(
+ "Items must be a string, a function, or an array of strings and functions.",
+ );
+ }
+ });
+ },
+ },
+ ignores: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate: assertIsArrayOfStringsAndFunctions,
+ },
+});
+
+/**
+ * @fileoverview ConfigArray
+ * @author Nicholas C. Zakas
+ */
+
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+/** @typedef {import("./types.ts").ConfigObject} ConfigObject */
+/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */
+/** @typedef {import("minimatch").IMinimatch} IMinimatch */
+/** @typedef {import("@jsr/std__path")} PathImpl */
+
+/*
+ * This is a bit of a hack to make TypeScript happy with the Rollup-created
+ * CommonJS file. Rollup doesn't do object destructuring for imported files
+ * and instead imports the default via `require()`. This messes up type checking
+ * for `ObjectSchema`. To work around that, we just import the type manually
+ * and give it a different name to use in the JSDoc comments.
+ */
+/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+const Minimatch = minimatch.Minimatch;
+const debug = createDebug("@eslint/config-array");
+
+/**
+ * A cache for minimatch instances.
+ * @type {Map}
+ */
+const minimatchCache = new Map();
+
+/**
+ * A cache for negated minimatch instances.
+ * @type {Map}
+ */
+const negatedMinimatchCache = new Map();
+
+/**
+ * Options to use with minimatch.
+ * @type {Object}
+ */
+const MINIMATCH_OPTIONS = {
+ // matchBase: true,
+ dot: true,
+ allowWindowsEscape: true,
+};
+
+/**
+ * The types of config objects that are supported.
+ * @type {Set}
+ */
+const CONFIG_TYPES = new Set(["array", "function"]);
+
+/**
+ * Fields that are considered metadata and not part of the config object.
+ * @type {Set}
+ */
+const META_FIELDS = new Set(["name"]);
+
+/**
+ * A schema containing just files and ignores for early validation.
+ * @type {ObjectSchemaInstance}
+ */
+const FILES_AND_IGNORES_SCHEMA = new objectSchema.ObjectSchema(filesAndIgnoresSchema);
+
+// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`.
+
+const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" });
+const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" });
+const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({
+ status: "unconfigured",
+});
+
+// Match two leading dots followed by a slash or the end of input.
+const EXTERNAL_PATH_REGEX = /^\.\.(?:\/|$)/u;
+
+/**
+ * Wrapper error for config validation errors that adds a name to the front of the
+ * error message.
+ */
+class ConfigError extends Error {
+ /**
+ * Creates a new instance.
+ * @param {string} name The config object name causing the error.
+ * @param {number} index The index of the config object in the array.
+ * @param {Object} options The options for the error.
+ * @param {Error} [options.cause] The error that caused this error.
+ * @param {string} [options.message] The message to use for the error.
+ */
+ constructor(name, index, { cause, message }) {
+ const finalMessage = message || cause.message;
+
+ super(`Config ${name}: ${finalMessage}`, { cause });
+
+ // copy over custom properties that aren't represented
+ if (cause) {
+ for (const key of Object.keys(cause)) {
+ if (!(key in this)) {
+ this[key] = cause[key];
+ }
+ }
+ }
+
+ /**
+ * The name of the error.
+ * @type {string}
+ * @readonly
+ */
+ this.name = "ConfigError";
+
+ /**
+ * The index of the config object in the array.
+ * @type {number}
+ * @readonly
+ */
+ this.index = index;
+ }
+}
+
+/**
+ * Gets the name of a config object.
+ * @param {ConfigObject} config The config object to get the name of.
+ * @returns {string} The name of the config object.
+ */
+function getConfigName(config) {
+ if (config && typeof config.name === "string" && config.name) {
+ return `"${config.name}"`;
+ }
+
+ return "(unnamed)";
+}
+
+/**
+ * Rethrows a config error with additional information about the config object.
+ * @param {object} config The config object to get the name of.
+ * @param {number} index The index of the config object in the array.
+ * @param {Error} error The error to rethrow.
+ * @throws {ConfigError} When the error is rethrown for a config.
+ */
+function rethrowConfigError(config, index, error) {
+ const configName = getConfigName(config);
+ throw new ConfigError(configName, index, { cause: error });
+}
+
+/**
+ * Shorthand for checking if a value is a string.
+ * @param {any} value The value to check.
+ * @returns {boolean} True if a string, false if not.
+ */
+function isString(value) {
+ return typeof value === "string";
+}
+
+/**
+ * Creates a function that asserts that the config is valid
+ * during normalization. This checks that the config is not nullish
+ * and that files and ignores keys of a config object are valid as per base schema.
+ * @param {Object} config The config object to check.
+ * @param {number} index The index of the config object in the array.
+ * @returns {void}
+ * @throws {ConfigError} If the files and ignores keys of a config object are not valid.
+ */
+function assertValidBaseConfig(config, index) {
+ if (config === null) {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected null config.",
+ });
+ }
+
+ if (config === undefined) {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected undefined config.",
+ });
+ }
+
+ if (typeof config !== "object") {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected non-object config.",
+ });
+ }
+
+ const validateConfig = {};
+
+ if ("files" in config) {
+ validateConfig.files = config.files;
+ }
+
+ if ("ignores" in config) {
+ validateConfig.ignores = config.ignores;
+ }
+
+ try {
+ FILES_AND_IGNORES_SCHEMA.validate(validateConfig);
+ } catch (validationError) {
+ rethrowConfigError(config, index, validationError);
+ }
+}
+
+/**
+ * Wrapper around minimatch that caches minimatch patterns for
+ * faster matching speed over multiple file path evaluations.
+ * @param {string} filepath The file path to match.
+ * @param {string} pattern The glob pattern to match against.
+ * @param {object} options The minimatch options to use.
+ * @returns
+ */
+function doMatch(filepath, pattern, options = {}) {
+ let cache = minimatchCache;
+
+ if (options.flipNegate) {
+ cache = negatedMinimatchCache;
+ }
+
+ let matcher = cache.get(pattern);
+
+ if (!matcher) {
+ matcher = new Minimatch(
+ pattern,
+ Object.assign({}, MINIMATCH_OPTIONS, options),
+ );
+ cache.set(pattern, matcher);
+ }
+
+ return matcher.match(filepath);
+}
+
+/**
+ * Normalizes a `ConfigArray` by flattening it and executing any functions
+ * that are found inside.
+ * @param {Array} items The items in a `ConfigArray`.
+ * @param {Object} context The context object to pass into any function
+ * found.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {Promise} A flattened array containing only config objects.
+ * @throws {TypeError} When a config function returns a function.
+ */
+async function normalize(items, context, extraConfigTypes) {
+ const allowFunctions = extraConfigTypes.includes("function");
+ const allowArrays = extraConfigTypes.includes("array");
+
+ async function* flatTraverse(array) {
+ for (let item of array) {
+ if (typeof item === "function") {
+ if (!allowFunctions) {
+ throw new TypeError("Unexpected function.");
+ }
+
+ item = item(context);
+ if (item.then) {
+ item = await item;
+ }
+ }
+
+ if (Array.isArray(item)) {
+ if (!allowArrays) {
+ throw new TypeError("Unexpected array.");
+ }
+ yield* flatTraverse(item);
+ } else if (typeof item === "function") {
+ throw new TypeError(
+ "A config function can only return an object or array.",
+ );
+ } else {
+ yield item;
+ }
+ }
+ }
+
+ /*
+ * Async iterables cannot be used with the spread operator, so we need to manually
+ * create the array to return.
+ */
+ const asyncIterable = await flatTraverse(items);
+ const configs = [];
+
+ for await (const config of asyncIterable) {
+ configs.push(config);
+ }
+
+ return configs;
+}
+
+/**
+ * Normalizes a `ConfigArray` by flattening it and executing any functions
+ * that are found inside.
+ * @param {Array} items The items in a `ConfigArray`.
+ * @param {Object} context The context object to pass into any function
+ * found.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {Array} A flattened array containing only config objects.
+ * @throws {TypeError} When a config function returns a function.
+ */
+function normalizeSync(items, context, extraConfigTypes) {
+ const allowFunctions = extraConfigTypes.includes("function");
+ const allowArrays = extraConfigTypes.includes("array");
+
+ function* flatTraverse(array) {
+ for (let item of array) {
+ if (typeof item === "function") {
+ if (!allowFunctions) {
+ throw new TypeError("Unexpected function.");
+ }
+
+ item = item(context);
+ if (item.then) {
+ throw new TypeError(
+ "Async config functions are not supported.",
+ );
+ }
+ }
+
+ if (Array.isArray(item)) {
+ if (!allowArrays) {
+ throw new TypeError("Unexpected array.");
+ }
+
+ yield* flatTraverse(item);
+ } else if (typeof item === "function") {
+ throw new TypeError(
+ "A config function can only return an object or array.",
+ );
+ } else {
+ yield item;
+ }
+ }
+ }
+
+ return [...flatTraverse(items)];
+}
+
+/**
+ * Determines if a given file path should be ignored based on the given
+ * matcher.
+ * @param {Array boolean)>} ignores The ignore patterns to check.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @returns {boolean} True if the path should be ignored and false if not.
+ */
+function shouldIgnorePath(ignores, filePath, relativeFilePath) {
+ return ignores.reduce((ignored, matcher) => {
+ if (!ignored) {
+ if (typeof matcher === "function") {
+ return matcher(filePath);
+ }
+
+ // don't check negated patterns because we're not ignored yet
+ if (!matcher.startsWith("!")) {
+ return doMatch(relativeFilePath, matcher);
+ }
+
+ // otherwise we're still not ignored
+ return false;
+ }
+
+ // only need to check negated patterns because we're ignored
+ if (typeof matcher === "string" && matcher.startsWith("!")) {
+ return !doMatch(relativeFilePath, matcher, {
+ flipNegate: true,
+ });
+ }
+
+ return ignored;
+ }, false);
+}
+
+/**
+ * Determines if a given file path is matched by a config based on
+ * `ignores` only.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @param {Object} config The config object to check.
+ * @returns {boolean} True if the file path is matched by the config,
+ * false if not.
+ */
+function pathMatchesIgnores(filePath, relativeFilePath, config) {
+ return (
+ Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 &&
+ !shouldIgnorePath(config.ignores, filePath, relativeFilePath)
+ );
+}
+
+/**
+ * Determines if a given file path is matched by a config. If the config
+ * has no `files` field, then it matches; otherwise, if a `files` field
+ * is present then we match the globs in `files` and exclude any globs in
+ * `ignores`.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @param {Object} config The config object to check.
+ * @returns {boolean} True if the file path is matched by the config,
+ * false if not.
+ */
+function pathMatches(filePath, relativeFilePath, config) {
+ // match both strings and functions
+ function match(pattern) {
+ if (isString(pattern)) {
+ return doMatch(relativeFilePath, pattern);
+ }
+
+ if (typeof pattern === "function") {
+ return pattern(filePath);
+ }
+
+ throw new TypeError(`Unexpected matcher type ${pattern}.`);
+ }
+
+ // check for all matches to config.files
+ let filePathMatchesPattern = config.files.some(pattern => {
+ if (Array.isArray(pattern)) {
+ return pattern.every(match);
+ }
+
+ return match(pattern);
+ });
+
+ /*
+ * If the file path matches the config.files patterns, then check to see
+ * if there are any files to ignore.
+ */
+ if (filePathMatchesPattern && config.ignores) {
+ filePathMatchesPattern = !shouldIgnorePath(
+ config.ignores,
+ filePath,
+ relativeFilePath,
+ );
+ }
+
+ return filePathMatchesPattern;
+}
+
+/**
+ * Ensures that a ConfigArray has been normalized.
+ * @param {ConfigArray} configArray The ConfigArray to check.
+ * @returns {void}
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+function assertNormalized(configArray) {
+ // TODO: Throw more verbose error
+ if (!configArray.isNormalized()) {
+ throw new Error(
+ "ConfigArray must be normalized to perform this operation.",
+ );
+ }
+}
+
+/**
+ * Ensures that config types are valid.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {void}
+ * @throws {Error} When the config types array is invalid.
+ */
+function assertExtraConfigTypes(extraConfigTypes) {
+ if (extraConfigTypes.length > 2) {
+ throw new TypeError(
+ "configTypes must be an array with at most two items.",
+ );
+ }
+
+ for (const configType of extraConfigTypes) {
+ if (!CONFIG_TYPES.has(configType)) {
+ throw new TypeError(
+ `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`,
+ );
+ }
+ }
+}
+
+/**
+ * Returns path-handling implementations for Unix or Windows, depending on a given absolute path.
+ * @param {string} fileOrDirPath The absolute path to check.
+ * @returns {PathImpl} Path-handling implementations for the specified path.
+ * @throws An error is thrown if the specified argument is not an absolute path.
+ */
+function getPathImpl(fileOrDirPath) {
+ // Posix absolute paths always start with a slash.
+ if (fileOrDirPath.startsWith("/")) {
+ return posixPath__namespace;
+ }
+
+ // Windows absolute paths start with a letter followed by a colon and at least one backslash,
+ // or with two backslashes in the case of UNC paths.
+ // Forward slashed are automatically normalized to backslashes.
+ if (/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(fileOrDirPath)) {
+ return windowsPath__namespace;
+ }
+
+ throw new Error(
+ `Expected an absolute path but received "${fileOrDirPath}"`,
+ );
+}
+
+/**
+ * Converts a given path to a relative path with all separator characters replaced by forward slashes (`"/"`).
+ * @param {string} fileOrDirPath The unprocessed path to convert.
+ * @param {string} namespacedBasePath The namespaced base path of the directory to which the calculated path shall be relative.
+ * @param {PathImpl} path Path-handling implementations.
+ * @returns {string} A relative path with all separator characters replaced by forward slashes.
+ */
+function toRelativePath(fileOrDirPath, namespacedBasePath, path) {
+ const fullPath = path.resolve(namespacedBasePath, fileOrDirPath);
+ const namespacedFullPath = path.toNamespacedPath(fullPath);
+ const relativePath = path.relative(namespacedBasePath, namespacedFullPath);
+ return relativePath.replaceAll(path.SEPARATOR, "/");
+}
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+const ConfigArraySymbol = {
+ isNormalized: Symbol("isNormalized"),
+ configCache: Symbol("configCache"),
+ schema: Symbol("schema"),
+ finalizeConfig: Symbol("finalizeConfig"),
+ preprocessConfig: Symbol("preprocessConfig"),
+};
+
+// used to store calculate data for faster lookup
+const dataCache = new WeakMap();
+
+/**
+ * Represents an array of config objects and provides method for working with
+ * those config objects.
+ */
+class ConfigArray extends Array {
+ /**
+ * The namespaced path of the config file directory.
+ * @type {string}
+ */
+ #namespacedBasePath;
+
+ /**
+ * Path-handling implementations.
+ * @type {PathImpl}
+ */
+ #path;
+
+ /**
+ * Creates a new instance of ConfigArray.
+ * @param {Iterable|Function|Object} configs An iterable yielding config
+ * objects, or a config function, or a config object.
+ * @param {Object} options The options for the ConfigArray.
+ * @param {string} [options.basePath="/"] The absolute path of the config file directory.
+ * Defaults to `"/"`.
+ * @param {boolean} [options.normalized=false] Flag indicating if the
+ * configs have already been normalized.
+ * @param {Object} [options.schema] The additional schema
+ * definitions to use for the ConfigArray schema.
+ * @param {Array} [options.extraConfigTypes] List of config types supported.
+ */
+ constructor(
+ configs,
+ {
+ basePath = "/",
+ normalized = false,
+ schema: customSchema,
+ extraConfigTypes = [],
+ } = {},
+ ) {
+ super();
+
+ /**
+ * Tracks if the array has been normalized.
+ * @property isNormalized
+ * @type {boolean}
+ * @private
+ */
+ this[ConfigArraySymbol.isNormalized] = normalized;
+
+ /**
+ * The schema used for validating and merging configs.
+ * @property schema
+ * @type {ObjectSchemaInstance}
+ * @private
+ */
+ this[ConfigArraySymbol.schema] = new objectSchema.ObjectSchema(
+ Object.assign({}, customSchema, baseSchema),
+ );
+
+ if (!isString(basePath) || !basePath) {
+ throw new TypeError("basePath must be a non-empty string");
+ }
+
+ /**
+ * The path of the config file that this array was loaded from.
+ * This is used to calculate filename matches.
+ * @property basePath
+ * @type {string}
+ */
+ this.basePath = basePath;
+
+ assertExtraConfigTypes(extraConfigTypes);
+
+ /**
+ * The supported config types.
+ * @type {Array}
+ */
+ this.extraConfigTypes = [...extraConfigTypes];
+ Object.freeze(this.extraConfigTypes);
+
+ /**
+ * A cache to store calculated configs for faster repeat lookup.
+ * @property configCache
+ * @type {Map}
+ * @private
+ */
+ this[ConfigArraySymbol.configCache] = new Map();
+
+ // init cache
+ dataCache.set(this, {
+ explicitMatches: new Map(),
+ directoryMatches: new Map(),
+ files: undefined,
+ ignores: undefined,
+ });
+
+ // load the configs into this array
+ if (Array.isArray(configs)) {
+ this.push(...configs);
+ } else {
+ this.push(configs);
+ }
+
+ // select path-handling implementations depending on the base path
+ this.#path = getPathImpl(basePath);
+
+ // On Windows, `path.relative()` returns an absolute path when given two paths on different drives.
+ // The namespaced base path is useful to make sure that calculated relative paths are always relative.
+ // On Unix, it is identical to the base path.
+ this.#namespacedBasePath = this.#path.toNamespacedPath(basePath);
+ }
+
+ /**
+ * Prevent normal array methods from creating a new `ConfigArray` instance.
+ * This is to ensure that methods such as `slice()` won't try to create a
+ * new instance of `ConfigArray` behind the scenes as doing so may throw
+ * an error due to the different constructor signature.
+ * @type {ArrayConstructor} The `Array` constructor.
+ */
+ static get [Symbol.species]() {
+ return Array;
+ }
+
+ /**
+ * Returns the `files` globs from every config object in the array.
+ * This can be used to determine which files will be matched by a
+ * config array or to use as a glob pattern when no patterns are provided
+ * for a command line interface.
+ * @returns {Array} An array of matchers.
+ */
+ get files() {
+ assertNormalized(this);
+
+ // if this data has been cached, retrieve it
+ const cache = dataCache.get(this);
+
+ if (cache.files) {
+ return cache.files;
+ }
+
+ // otherwise calculate it
+
+ const result = [];
+
+ for (const config of this) {
+ if (config.files) {
+ config.files.forEach(filePattern => {
+ result.push(filePattern);
+ });
+ }
+ }
+
+ // store result
+ cache.files = result;
+ dataCache.set(this, cache);
+
+ return result;
+ }
+
+ /**
+ * Returns ignore matchers that should always be ignored regardless of
+ * the matching `files` fields in any configs. This is necessary to mimic
+ * the behavior of things like .gitignore and .eslintignore, allowing a
+ * globbing operation to be faster.
+ * @returns {string[]} An array of string patterns and functions to be ignored.
+ */
+ get ignores() {
+ assertNormalized(this);
+
+ // if this data has been cached, retrieve it
+ const cache = dataCache.get(this);
+
+ if (cache.ignores) {
+ return cache.ignores;
+ }
+
+ // otherwise calculate it
+
+ const result = [];
+
+ for (const config of this) {
+ /*
+ * We only count ignores if there are no other keys in the object.
+ * In this case, it acts list a globally ignored pattern. If there
+ * are additional keys, then ignores act like exclusions.
+ */
+ if (
+ config.ignores &&
+ Object.keys(config).filter(key => !META_FIELDS.has(key))
+ .length === 1
+ ) {
+ result.push(...config.ignores);
+ }
+ }
+
+ // store result
+ cache.ignores = result;
+ dataCache.set(this, cache);
+
+ return result;
+ }
+
+ /**
+ * Indicates if the config array has been normalized.
+ * @returns {boolean} True if the config array is normalized, false if not.
+ */
+ isNormalized() {
+ return this[ConfigArraySymbol.isNormalized];
+ }
+
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {Promise} The current ConfigArray instance.
+ */
+ async normalize(context = {}) {
+ if (!this.isNormalized()) {
+ const normalizedConfigs = await normalize(
+ this,
+ context,
+ this.extraConfigTypes,
+ );
+ this.length = 0;
+ this.push(
+ ...normalizedConfigs.map(
+ this[ConfigArraySymbol.preprocessConfig].bind(this),
+ ),
+ );
+ this.forEach(assertValidBaseConfig);
+ this[ConfigArraySymbol.isNormalized] = true;
+
+ // prevent further changes
+ Object.freeze(this);
+ }
+
+ return this;
+ }
+
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {ConfigArray} The current ConfigArray instance.
+ */
+ normalizeSync(context = {}) {
+ if (!this.isNormalized()) {
+ const normalizedConfigs = normalizeSync(
+ this,
+ context,
+ this.extraConfigTypes,
+ );
+ this.length = 0;
+ this.push(
+ ...normalizedConfigs.map(
+ this[ConfigArraySymbol.preprocessConfig].bind(this),
+ ),
+ );
+ this.forEach(assertValidBaseConfig);
+ this[ConfigArraySymbol.isNormalized] = true;
+
+ // prevent further changes
+ Object.freeze(this);
+ }
+
+ return this;
+ }
+
+ /* eslint-disable class-methods-use-this -- Desired as instance methods */
+
+ /**
+ * Finalizes the state of a config before being cached and returned by
+ * `getConfig()`. Does nothing by default but is provided to be
+ * overridden by subclasses as necessary.
+ * @param {Object} config The config to finalize.
+ * @returns {Object} The finalized config.
+ */
+ [ConfigArraySymbol.finalizeConfig](config) {
+ return config;
+ }
+
+ /**
+ * Preprocesses a config during the normalization process. This is the
+ * method to override if you want to convert an array item before it is
+ * validated for the first time. For example, if you want to replace a
+ * string with an object, this is the method to override.
+ * @param {Object} config The config to preprocess.
+ * @returns {Object} The config to use in place of the argument.
+ */
+ [ConfigArraySymbol.preprocessConfig](config) {
+ return config;
+ }
+
+ /* eslint-enable class-methods-use-this -- Desired as instance methods */
+
+ /**
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
+ * An object with an optional property `config` and property `status`.
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
+ */
+ getConfigWithStatus(filePath) {
+ assertNormalized(this);
+
+ const cache = this[ConfigArraySymbol.configCache];
+
+ // first check the cache for a filename match to avoid duplicate work
+ if (cache.has(filePath)) {
+ return cache.get(filePath);
+ }
+
+ // check to see if the file is outside the base path
+
+ const relativeFilePath = toRelativePath(
+ filePath,
+ this.#namespacedBasePath,
+ this.#path,
+ );
+
+ if (EXTERNAL_PATH_REGEX.test(relativeFilePath)) {
+ debug(`No config for file ${filePath} outside of base path`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL);
+ return CONFIG_WITH_STATUS_EXTERNAL;
+ }
+
+ // next check to see if the file should be ignored
+
+ // check if this should be ignored due to its directory
+ if (this.isDirectoryIgnored(this.#path.dirname(filePath))) {
+ debug(`Ignoring ${filePath} based on directory pattern`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_IGNORED);
+ return CONFIG_WITH_STATUS_IGNORED;
+ }
+
+ if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) {
+ debug(`Ignoring ${filePath} based on file pattern`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_IGNORED);
+ return CONFIG_WITH_STATUS_IGNORED;
+ }
+
+ // filePath isn't automatically ignored, so try to construct config
+
+ const matchingConfigIndices = [];
+ let matchFound = false;
+ const universalPattern = /^\*$|\/\*{1,2}$/u;
+
+ this.forEach((config, index) => {
+ if (!config.files) {
+ if (!config.ignores) {
+ debug(`Universal config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ if (pathMatchesIgnores(filePath, relativeFilePath, config)) {
+ debug(
+ `Matching config found for ${filePath} (based on ignores: ${config.ignores})`,
+ );
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ debug(
+ `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`,
+ );
+ return;
+ }
+
+ /*
+ * If a config has a files pattern * or patterns ending in /** or /*,
+ * and the filePath only matches those patterns, then the config is only
+ * applied if there is another config where the filePath matches
+ * a file with a specific extensions such as *.js.
+ */
+
+ const universalFiles = config.files.filter(pattern =>
+ universalPattern.test(pattern),
+ );
+
+ // universal patterns were found so we need to check the config twice
+ if (universalFiles.length) {
+ debug("Universal files patterns found. Checking carefully.");
+
+ const nonUniversalFiles = config.files.filter(
+ pattern => !universalPattern.test(pattern),
+ );
+
+ // check that the config matches without the non-universal files first
+ if (
+ nonUniversalFiles.length &&
+ pathMatches(filePath, relativeFilePath, {
+ files: nonUniversalFiles,
+ ignores: config.ignores,
+ })
+ ) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ matchFound = true;
+ return;
+ }
+
+ // if there wasn't a match then check if it matches with universal files
+ if (
+ universalFiles.length &&
+ pathMatches(filePath, relativeFilePath, {
+ files: universalFiles,
+ ignores: config.ignores,
+ })
+ ) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ // if we make here, then there was no match
+ return;
+ }
+
+ // the normal case
+ if (pathMatches(filePath, relativeFilePath, config)) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ matchFound = true;
+ }
+ });
+
+ // if matching both files and ignores, there will be no config to create
+ if (!matchFound) {
+ debug(`No matching configs found for ${filePath}`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED);
+ return CONFIG_WITH_STATUS_UNCONFIGURED;
+ }
+
+ // check to see if there is a config cached by indices
+ const indicesKey = matchingConfigIndices.toString();
+ let configWithStatus = cache.get(indicesKey);
+
+ if (configWithStatus) {
+ // also store for filename for faster lookup next time
+ cache.set(filePath, configWithStatus);
+
+ return configWithStatus;
+ }
+
+ // otherwise construct the config
+
+ // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error
+ let finalConfig = matchingConfigIndices.reduce((result, index) => {
+ try {
+ return this[ConfigArraySymbol.schema].merge(
+ result,
+ this[index],
+ );
+ } catch (validationError) {
+ rethrowConfigError(this[index], index, validationError);
+ }
+ }, {});
+
+ finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig);
+
+ configWithStatus = Object.freeze({
+ config: finalConfig,
+ status: "matched",
+ });
+ cache.set(filePath, configWithStatus);
+ cache.set(indicesKey, configWithStatus);
+
+ return configWithStatus;
+ }
+
+ /**
+ * Returns the config object for a given file path.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {Object|undefined} The config object for this file or `undefined`.
+ */
+ getConfig(filePath) {
+ return this.getConfigWithStatus(filePath).config;
+ }
+
+ /**
+ * Determines whether a file has a config or why it doesn't.
+ * @param {string} filePath The path of the file to check.
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
+ * * `"ignored"`: the file is ignored
+ * * `"external"`: the file is outside the base path
+ * * `"unconfigured"`: the file is not matched by any config
+ * * `"matched"`: the file has a matching config
+ */
+ getConfigStatus(filePath) {
+ return this.getConfigWithStatus(filePath).status;
+ }
+
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ * @deprecated Use `isFileIgnored` instead.
+ */
+ isIgnored(filePath) {
+ return this.isFileIgnored(filePath);
+ }
+
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ */
+ isFileIgnored(filePath) {
+ return this.getConfigStatus(filePath) === "ignored";
+ }
+
+ /**
+ * Determines if the given directory is ignored based on the configs.
+ * This checks only default `ignores` that don't have `files` in the
+ * same config. A pattern such as `/foo` be considered to ignore the directory
+ * while a pattern such as `/foo/**` is not considered to ignore the
+ * directory because it is matching files.
+ * @param {string} directoryPath The path of a directory to check.
+ * @returns {boolean} True if the directory is ignored, false if not. Will
+ * return true for any directory that is not inside of `basePath`.
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+ isDirectoryIgnored(directoryPath) {
+ assertNormalized(this);
+
+ const relativeDirectoryPath = toRelativePath(
+ directoryPath,
+ this.#namespacedBasePath,
+ this.#path,
+ );
+
+ // basePath directory can never be ignored
+ if (relativeDirectoryPath === "") {
+ return false;
+ }
+
+ if (EXTERNAL_PATH_REGEX.test(relativeDirectoryPath)) {
+ return true;
+ }
+
+ // first check the cache
+ const cache = dataCache.get(this).directoryMatches;
+
+ if (cache.has(relativeDirectoryPath)) {
+ return cache.get(relativeDirectoryPath);
+ }
+
+ const directoryParts = relativeDirectoryPath.split("/");
+ let relativeDirectoryToCheck = "";
+ let result;
+
+ /*
+ * In order to get the correct gitignore-style ignores, where an
+ * ignored parent directory cannot have any descendants unignored,
+ * we need to check every directory starting at the parent all
+ * the way down to the actual requested directory.
+ *
+ * We aggressively cache all of this info to make sure we don't
+ * have to recalculate everything for every call.
+ */
+ do {
+ relativeDirectoryToCheck += `${directoryParts.shift()}/`;
+
+ result = shouldIgnorePath(
+ this.ignores,
+ this.#path.join(this.basePath, relativeDirectoryToCheck),
+ relativeDirectoryToCheck,
+ );
+
+ cache.set(relativeDirectoryToCheck, result);
+ } while (!result && directoryParts.length);
+
+ // also cache the result for the requested path
+ cache.set(relativeDirectoryPath, result);
+
+ return result;
+ }
+}
+
+Object.defineProperty(exports, "ObjectSchema", {
+ enumerable: true,
+ get: function () { return objectSchema.ObjectSchema; }
+});
+exports.ConfigArray = ConfigArray;
+exports.ConfigArraySymbol = ConfigArraySymbol;
diff --git a/node_modules/@eslint/config-array/dist/cjs/index.d.cts b/node_modules/@eslint/config-array/dist/cjs/index.d.cts
new file mode 100644
index 00000000000..6fb977e039d
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/cjs/index.d.cts
@@ -0,0 +1,141 @@
+export { ObjectSchema } from "@eslint/object-schema";
+export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition;
+export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition;
+export type ConfigObject = import("./types.ts").ConfigObject;
+export type IMinimatchStatic = import("minimatch").IMinimatchStatic;
+export type IMinimatch = import("minimatch").IMinimatch;
+export type PathImpl = typeof import("@jsr/std__path");
+export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema;
+/**
+ * Represents an array of config objects and provides method for working with
+ * those config objects.
+ */
+export class ConfigArray extends Array {
+ /**
+ * Creates a new instance of ConfigArray.
+ * @param {Iterable|Function|Object} configs An iterable yielding config
+ * objects, or a config function, or a config object.
+ * @param {Object} options The options for the ConfigArray.
+ * @param {string} [options.basePath="/"] The absolute path of the config file directory.
+ * Defaults to `"/"`.
+ * @param {boolean} [options.normalized=false] Flag indicating if the
+ * configs have already been normalized.
+ * @param {Object} [options.schema] The additional schema
+ * definitions to use for the ConfigArray schema.
+ * @param {Array} [options.extraConfigTypes] List of config types supported.
+ */
+ constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: {
+ basePath?: string;
+ normalized?: boolean;
+ schema?: any;
+ extraConfigTypes?: Array;
+ });
+ /**
+ * The path of the config file that this array was loaded from.
+ * This is used to calculate filename matches.
+ * @property basePath
+ * @type {string}
+ */
+ basePath: string;
+ /**
+ * The supported config types.
+ * @type {Array}
+ */
+ extraConfigTypes: Array;
+ /**
+ * Returns the `files` globs from every config object in the array.
+ * This can be used to determine which files will be matched by a
+ * config array or to use as a glob pattern when no patterns are provided
+ * for a command line interface.
+ * @returns {Array} An array of matchers.
+ */
+ get files(): (string | Function)[];
+ /**
+ * Returns ignore matchers that should always be ignored regardless of
+ * the matching `files` fields in any configs. This is necessary to mimic
+ * the behavior of things like .gitignore and .eslintignore, allowing a
+ * globbing operation to be faster.
+ * @returns {string[]} An array of string patterns and functions to be ignored.
+ */
+ get ignores(): string[];
+ /**
+ * Indicates if the config array has been normalized.
+ * @returns {boolean} True if the config array is normalized, false if not.
+ */
+ isNormalized(): boolean;
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {Promise} The current ConfigArray instance.
+ */
+ normalize(context?: any): Promise;
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {ConfigArray} The current ConfigArray instance.
+ */
+ normalizeSync(context?: any): ConfigArray;
+ /**
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
+ * An object with an optional property `config` and property `status`.
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
+ */
+ getConfigWithStatus(filePath: string): {
+ config?: any;
+ status: "ignored" | "external" | "unconfigured" | "matched";
+ };
+ /**
+ * Returns the config object for a given file path.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {Object|undefined} The config object for this file or `undefined`.
+ */
+ getConfig(filePath: string): any | undefined;
+ /**
+ * Determines whether a file has a config or why it doesn't.
+ * @param {string} filePath The path of the file to check.
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
+ * * `"ignored"`: the file is ignored
+ * * `"external"`: the file is outside the base path
+ * * `"unconfigured"`: the file is not matched by any config
+ * * `"matched"`: the file has a matching config
+ */
+ getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched";
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ * @deprecated Use `isFileIgnored` instead.
+ */
+ isIgnored(filePath: string): boolean;
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ */
+ isFileIgnored(filePath: string): boolean;
+ /**
+ * Determines if the given directory is ignored based on the configs.
+ * This checks only default `ignores` that don't have `files` in the
+ * same config. A pattern such as `/foo` be considered to ignore the directory
+ * while a pattern such as `/foo/**` is not considered to ignore the
+ * directory because it is matching files.
+ * @param {string} directoryPath The path of a directory to check.
+ * @returns {boolean} True if the directory is ignored, false if not. Will
+ * return true for any directory that is not inside of `basePath`.
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+ isDirectoryIgnored(directoryPath: string): boolean;
+ #private;
+}
+export namespace ConfigArraySymbol {
+ let isNormalized: symbol;
+ let configCache: symbol;
+ let schema: symbol;
+ let finalizeConfig: symbol;
+ let preprocessConfig: symbol;
+}
diff --git a/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs b/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs
new file mode 100644
index 00000000000..036cff9a3c1
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/cjs/std__path/posix.cjs
@@ -0,0 +1,1323 @@
+'use strict';
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+function assertPath(path) {
+ if (typeof path !== "string") {
+ throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function stripSuffix(name, suffix) {
+ if (suffix.length >= name.length) {
+ return name;
+ }
+ const lenDiff = name.length - suffix.length;
+ for(let i = suffix.length - 1; i >= 0; --i){
+ if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
+ return name;
+ }
+ }
+ return name.slice(0, -suffix.length);
+}
+function lastPathSegment(path, isSep, start = 0) {
+ let matchedNonSeparator = false;
+ let end = path.length;
+ for(let i = path.length - 1; i >= start; --i){
+ if (isSep(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ start = i + 1;
+ break;
+ }
+ } else if (!matchedNonSeparator) {
+ matchedNonSeparator = true;
+ end = i + 1;
+ }
+ }
+ return path.slice(start, end);
+}
+function assertArgs$1(path, suffix) {
+ assertPath(path);
+ if (path.length === 0) return path;
+ if (typeof suffix !== "string") {
+ throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function stripTrailingSeparators(segment, isSep) {
+ if (segment.length <= 1) {
+ return segment;
+ }
+ let end = segment.length;
+ for(let i = segment.length - 1; i > 0; i--){
+ if (isSep(segment.charCodeAt(i))) {
+ end = i;
+ } else {
+ break;
+ }
+ }
+ return segment.slice(0, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Alphabet chars.
+// Non-alphabetic chars.
+const CHAR_DOT = 46; /* . */
+const CHAR_FORWARD_SLASH = 47; /* / */
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function isPosixPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the last portion of a `path`.
+ * Trailing directory separators are ignored, and optional suffix is removed.
+ *
+ * @example Usage
+ * ```ts
+ * import { basename } from "@std/path/posix/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("/home/user/Documents/"), "Documents");
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
+ * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function doesn't automatically strip hash and query parts from
+ * URLs. If your URL contains a hash or query, remove them before passing the
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
+ * and setting the `hash` and `search` properties to empty strings.
+ *
+ * ```ts
+ * import { basename } from "@std/path/posix/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `basename` from `@std/path/posix/unstable-basename`.
+ *
+ * @param path The path to extract the name from.
+ * @param suffix The suffix to remove from extracted name.
+ * @returns The extracted name.
+ */ function basename(path, suffix = "") {
+ assertArgs$1(path, suffix);
+ const lastSegment = lastPathSegment(path, isPosixPathSeparator);
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * The character used to separate entries in the PATH environment variable.
+ */ const DELIMITER = ":";
+/**
+ * The character used to separate components of a file path.
+ */ const SEPARATOR = "/";
+/**
+ * A regular expression that matches one or more path separators.
+ */ const SEPARATOR_PATTERN = /\/+/;
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$3(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the directory path of a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { dirname } from "@std/path/posix/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(dirname("/home/user/Documents/"), "/home/user");
+ * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * ```ts
+ * import { dirname } from "@std/path/posix/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
+ *
+ * @param path The path to get the directory from.
+ * @returns The directory path.
+ */ function dirname(path) {
+ assertArg$3(path);
+ let end = -1;
+ let matchedNonSeparator = false;
+ for(let i = path.length - 1; i >= 1; --i){
+ if (isPosixPathSeparator(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ end = i;
+ break;
+ }
+ } else {
+ matchedNonSeparator = true;
+ }
+ }
+ // No matches. Fallback based on provided path:
+ //
+ // - leading slashes paths
+ // "/foo" => "/"
+ // "///foo" => "/"
+ // - no slash path
+ // "foo" => "."
+ if (end === -1) {
+ return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
+ }
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the extension of the `path` with leading period.
+ *
+ * @example Usage
+ * ```ts
+ * import { extname } from "@std/path/posix/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
+ * assertEquals(extname("/home/user/Documents/"), "");
+ * assertEquals(extname("/home/user/Documents/image.png"), ".png");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function doesn't automatically strip hash and query parts from
+ * URLs. If your URL contains a hash or query, remove them before passing the
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
+ * and setting the `hash` and `search` properties to empty strings.
+ *
+ * ```ts
+ * import { extname } from "@std/path/posix/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
+ * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
+ * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `extname` from `@std/path/posix/unstable-extname`.
+ *
+ * @param path The path to get the extension from.
+ * @returns The extension (ex. for `file.ts` returns `.ts`).
+ */ function extname(path) {
+ assertPath(path);
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ for(let i = path.length - 1; i >= 0; --i){
+ const code = path.charCodeAt(i);
+ if (isPosixPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ return "";
+ }
+ return path.slice(startDot, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function _format(sep, pathObject) {
+ const dir = pathObject.dir || pathObject.root;
+ const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
+ if (!dir) return base;
+ if (base === sep) return dir;
+ if (dir === pathObject.root) return dir + base;
+ return dir + sep + base;
+}
+function assertArg$2(pathObject) {
+ if (pathObject === null || typeof pathObject !== "object") {
+ throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Generate a path from `ParsedPath` object.
+ *
+ * @example Usage
+ * ```ts
+ * import { format } from "@std/path/posix/format";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = format({
+ * root: "/",
+ * dir: "/path/dir",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * assertEquals(path, "/path/dir/file.txt");
+ * ```
+ *
+ * @param pathObject The path object to format.
+ * @returns The formatted path.
+ */ function format(pathObject) {
+ assertArg$2(pathObject);
+ return _format("/", pathObject);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$1(url) {
+ url = url instanceof URL ? url : new URL(url);
+ if (url.protocol !== "file:") {
+ throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a file URL to a path string.
+ *
+ * @example Usage
+ * ```ts
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
+ * ```
+ *
+ * @param url The file URL to convert.
+ * @returns The path string.
+ */ function fromFileUrl(url) {
+ url = assertArg$1(url);
+ return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Verifies whether provided path is absolute.
+ *
+ * @example Usage
+ * ```ts
+ * import { isAbsolute } from "@std/path/posix/is-absolute";
+ * import { assert, assertFalse } from "@std/assert";
+ *
+ * assert(isAbsolute("/home/user/Documents/"));
+ * assertFalse(isAbsolute("home/user/Documents/"));
+ * ```
+ *
+ * @param path The path to verify.
+ * @returns Whether the path is absolute.
+ */ function isAbsolute(path) {
+ assertPath(path);
+ return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Resolves . and .. elements in a path with directory names
+function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
+ let res = "";
+ let lastSegmentLength = 0;
+ let lastSlash = -1;
+ let dots = 0;
+ let code;
+ for(let i = 0; i <= path.length; ++i){
+ if (i < path.length) code = path.charCodeAt(i);
+ else if (isPathSeparator(code)) break;
+ else code = CHAR_FORWARD_SLASH;
+ if (isPathSeparator(code)) {
+ if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
+ if (res.length > 2) {
+ const lastSlashIndex = res.lastIndexOf(separator);
+ if (lastSlashIndex === -1) {
+ res = "";
+ lastSegmentLength = 0;
+ } else {
+ res = res.slice(0, lastSlashIndex);
+ lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
+ }
+ lastSlash = i;
+ dots = 0;
+ continue;
+ } else if (res.length === 2 || res.length === 1) {
+ res = "";
+ lastSegmentLength = 0;
+ lastSlash = i;
+ dots = 0;
+ continue;
+ }
+ }
+ if (allowAboveRoot) {
+ if (res.length > 0) res += `${separator}..`;
+ else res = "..";
+ lastSegmentLength = 2;
+ }
+ } else {
+ if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
+ else res = path.slice(lastSlash + 1, i);
+ lastSegmentLength = i - lastSlash - 1;
+ }
+ lastSlash = i;
+ dots = 0;
+ } else if (code === CHAR_DOT && dots !== -1) {
+ ++dots;
+ } else {
+ dots = -1;
+ }
+ }
+ return res;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalize } from "@std/path/posix/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = normalize("/foo/bar//baz/asdf/quux/..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function will remove the double slashes from a URL's scheme.
+ * Hence, do not pass a full URL to this function. Instead, pass the pathname of
+ * the URL.
+ *
+ * ```ts
+ * import { normalize } from "@std/path/posix/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const url = new URL("https://deno.land");
+ * url.pathname = normalize("//std//assert//.//mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/assert/mod.ts");
+ *
+ * url.pathname = normalize("std/assert/../async/retry.ts");
+ * assertEquals(url.href, "https://deno.land/std/async/retry.ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
+ *
+ * @param path The path to normalize.
+ * @returns The normalized path.
+ */ function normalize(path) {
+ assertArg(path);
+ const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
+ // Normalize the path
+ path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator);
+ if (path.length === 0 && !isAbsolute) path = ".";
+ if (path.length > 0 && trailingSeparator) path += "/";
+ if (isAbsolute) return `/${path}`;
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
+ *
+ * @example Usage
+ * ```ts
+ * import { join } from "@std/path/posix/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = join("/foo", "bar", "baz/asdf", "quux", "..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @example Working with URLs
+ * ```ts
+ * import { join } from "@std/path/posix/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const url = new URL("https://deno.land");
+ * url.pathname = join("std", "path", "mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
+ *
+ * url.pathname = join("//std", "path/", "/mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `join` from `@std/path/posix/unstable-join`.
+ *
+ * @param paths The paths to join.
+ * @returns The joined path.
+ */ function join(...paths) {
+ if (paths.length === 0) return ".";
+ paths.forEach((path)=>assertPath(path));
+ const joined = paths.filter((path)=>path.length > 0).join("/");
+ return joined === "" ? "." : normalize(joined);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return a `ParsedPath` object of the `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { parse } from "@std/path/posix/parse";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = parse("/home/user/file.txt");
+ * assertEquals(path, {
+ * root: "/",
+ * dir: "/home/user",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * ```
+ *
+ * @param path The path to parse.
+ * @returns The parsed path object.
+ */ function parse(path) {
+ assertPath(path);
+ const ret = {
+ root: "",
+ dir: "",
+ base: "",
+ ext: "",
+ name: ""
+ };
+ if (path.length === 0) return ret;
+ const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ let start;
+ if (isAbsolute) {
+ ret.root = "/";
+ start = 1;
+ } else {
+ start = 0;
+ }
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ let i = path.length - 1;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Get non-dir info
+ for(; i >= start; --i){
+ const code = path.charCodeAt(i);
+ if (isPosixPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ if (end !== -1) {
+ if (startPart === 0 && isAbsolute) {
+ ret.base = ret.name = path.slice(1, end);
+ } else {
+ ret.base = ret.name = path.slice(startPart, end);
+ }
+ }
+ // Fallback to '/' in case there is no basename
+ ret.base = ret.base || "/";
+ } else {
+ if (startPart === 0 && isAbsolute) {
+ ret.name = path.slice(1, startDot);
+ ret.base = path.slice(1, end);
+ } else {
+ ret.name = path.slice(startPart, startDot);
+ ret.base = path.slice(startPart, end);
+ }
+ ret.ext = path.slice(startDot, end);
+ }
+ if (startPart > 0) {
+ ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator);
+ } else if (isAbsolute) ret.dir = "/";
+ return ret;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path segments into a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { resolve } from "@std/path/posix/resolve";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = resolve("/foo", "bar", "baz/asdf", "quux", "..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @param pathSegments The path segments to resolve.
+ * @returns The resolved path.
+ */ function resolve(...pathSegments) {
+ let resolvedPath = "";
+ let resolvedAbsolute = false;
+ for(let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--){
+ let path;
+ if (i >= 0) path = pathSegments[i];
+ else {
+ // deno-lint-ignore no-explicit-any
+ const { Deno } = globalThis;
+ if (typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a relative path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ }
+ assertPath(path);
+ // Skip empty entries
+ if (path.length === 0) {
+ continue;
+ }
+ resolvedPath = `${path}/${resolvedPath}`;
+ resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ }
+ // At this point the path should be resolved to a full absolute path, but
+ // handle relative paths to be safe (might happen when Deno.cwd() fails)
+ // Normalize the path
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
+ if (resolvedAbsolute) {
+ if (resolvedPath.length > 0) return `/${resolvedPath}`;
+ else return "/";
+ } else if (resolvedPath.length > 0) return resolvedPath;
+ else return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArgs(from, to) {
+ assertPath(from);
+ assertPath(to);
+ if (from === to) return "";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the relative path from `from` to `to` based on current working directory.
+ *
+ * If `from` and `to` are the same, return an empty string.
+ *
+ * @example Usage
+ * ```ts
+ * import { relative } from "@std/path/posix/relative";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb");
+ * assertEquals(path, "../../impl/bbb");
+ * ```
+ *
+ * @param from The path to start from.
+ * @param to The path to reach.
+ * @returns The relative path.
+ */ function relative(from, to) {
+ assertArgs(from, to);
+ from = resolve(from);
+ to = resolve(to);
+ if (from === to) return "";
+ // Trim any leading backslashes
+ let fromStart = 1;
+ const fromEnd = from.length;
+ for(; fromStart < fromEnd; ++fromStart){
+ if (!isPosixPathSeparator(from.charCodeAt(fromStart))) break;
+ }
+ const fromLen = fromEnd - fromStart;
+ // Trim any leading backslashes
+ let toStart = 1;
+ const toEnd = to.length;
+ for(; toStart < toEnd; ++toStart){
+ if (!isPosixPathSeparator(to.charCodeAt(toStart))) break;
+ }
+ const toLen = toEnd - toStart;
+ // Compare paths to find the longest common path from root
+ const length = fromLen < toLen ? fromLen : toLen;
+ let lastCommonSep = -1;
+ let i = 0;
+ for(; i <= length; ++i){
+ if (i === length) {
+ if (toLen > length) {
+ if (isPosixPathSeparator(to.charCodeAt(toStart + i))) {
+ // We get here if `from` is the exact base path for `to`.
+ // For example: from='/foo/bar'; to='/foo/bar/baz'
+ return to.slice(toStart + i + 1);
+ } else if (i === 0) {
+ // We get here if `from` is the root
+ // For example: from='/'; to='/foo'
+ return to.slice(toStart + i);
+ }
+ } else if (fromLen > length) {
+ if (isPosixPathSeparator(from.charCodeAt(fromStart + i))) {
+ // We get here if `to` is the exact base path for `from`.
+ // For example: from='/foo/bar/baz'; to='/foo/bar'
+ lastCommonSep = i;
+ } else if (i === 0) {
+ // We get here if `to` is the root.
+ // For example: from='/foo'; to='/'
+ lastCommonSep = 0;
+ }
+ }
+ break;
+ }
+ const fromCode = from.charCodeAt(fromStart + i);
+ const toCode = to.charCodeAt(toStart + i);
+ if (fromCode !== toCode) break;
+ else if (isPosixPathSeparator(fromCode)) lastCommonSep = i;
+ }
+ let out = "";
+ // Generate the relative path based on the path difference between `to`
+ // and `from`
+ for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
+ if (i === fromEnd || isPosixPathSeparator(from.charCodeAt(i))) {
+ if (out.length === 0) out += "..";
+ else out += "/..";
+ }
+ }
+ // Lastly, append the rest of the destination (`to`) path that comes after
+ // the common path parts
+ if (out.length > 0) return out + to.slice(toStart + lastCommonSep);
+ else {
+ toStart += lastCommonSep;
+ if (isPosixPathSeparator(to.charCodeAt(toStart))) ++toStart;
+ return to.slice(toStart);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const WHITESPACE_ENCODINGS = {
+ "\u0009": "%09",
+ "\u000A": "%0A",
+ "\u000B": "%0B",
+ "\u000C": "%0C",
+ "\u000D": "%0D",
+ "\u0020": "%20"
+};
+function encodeWhitespace(string) {
+ return string.replaceAll(/[\s]/g, (c)=>{
+ return WHITESPACE_ENCODINGS[c] ?? c;
+ });
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path string to a file URL.
+ *
+ * @example Usage
+ * ```ts
+ * import { toFileUrl } from "@std/path/posix/to-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo"));
+ * assertEquals(toFileUrl("/home/foo bar"), new URL("file:///home/foo%20bar"));
+ * ```
+ *
+ * @param path The path to convert.
+ * @returns The file URL.
+ */ function toFileUrl(path) {
+ if (!isAbsolute(path)) {
+ throw new TypeError(`Path must be absolute: received "${path}"`);
+ }
+ const url = new URL("file:///");
+ url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path to a namespaced path. This function returns the path as is on posix.
+ *
+ * @example Usage
+ * ```ts
+ * import { toNamespacedPath } from "@std/path/posix/to-namespaced-path";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toNamespacedPath("/home/foo"), "/home/foo");
+ * ```
+ *
+ * @param path The path.
+ * @returns The namespaced path.
+ */ function toNamespacedPath(path) {
+ // Non-op on posix systems
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function common$1(paths, sep) {
+ const [first = "", ...remaining] = paths;
+ const parts = first.split(sep);
+ let endOfPrefix = parts.length;
+ let append = "";
+ for (const path of remaining){
+ const compare = path.split(sep);
+ if (compare.length <= endOfPrefix) {
+ endOfPrefix = compare.length;
+ append = "";
+ }
+ for(let i = 0; i < endOfPrefix; i++){
+ if (compare[i] !== parts[i]) {
+ endOfPrefix = i;
+ append = i === 0 ? "" : sep;
+ break;
+ }
+ }
+ }
+ return parts.slice(0, endOfPrefix).join(sep) + append;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/** Determines the common path from a set of paths for POSIX systems.
+ *
+ * @example Usage
+ * ```ts
+ * import { common } from "@std/path/posix/common";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = common([
+ * "./deno/std/path/mod.ts",
+ * "./deno/std/fs/mod.ts",
+ * ]);
+ * assertEquals(path, "./deno/std/");
+ * ```
+ *
+ * @param paths The paths to compare.
+ * @returns The common path.
+ */ function common(paths) {
+ return common$1(paths, SEPARATOR);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
+ * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
+ */ const REG_EXP_ESCAPE_CHARS = [
+ "!",
+ "$",
+ "(",
+ ")",
+ "*",
+ "+",
+ ".",
+ "=",
+ "?",
+ "[",
+ "\\",
+ "^",
+ "{",
+ "|"
+];
+const RANGE_ESCAPE_CHARS = [
+ "-",
+ "\\",
+ "]"
+];
+function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
+caseInsensitive = false } = {}) {
+ if (glob === "") {
+ return /(?!)/;
+ }
+ // Remove trailing separators.
+ let newLength = glob.length;
+ for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
+ glob = glob.slice(0, newLength);
+ let regExpString = "";
+ // Terminates correctly. Trust that `j` is incremented every iteration.
+ for(let j = 0; j < glob.length;){
+ let segment = "";
+ const groupStack = [];
+ let inRange = false;
+ let inEscape = false;
+ let endsWithSep = false;
+ let i = j;
+ // Terminates with `i` at the non-inclusive end of the current segment.
+ for(; i < glob.length && !c.seps.includes(glob[i]); i++){
+ if (inEscape) {
+ inEscape = false;
+ const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
+ segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ continue;
+ }
+ if (glob[i] === c.escapePrefix) {
+ inEscape = true;
+ continue;
+ }
+ if (glob[i] === "[") {
+ if (!inRange) {
+ inRange = true;
+ segment += "[";
+ if (glob[i + 1] === "!") {
+ i++;
+ segment += "^";
+ } else if (glob[i + 1] === "^") {
+ i++;
+ segment += "\\^";
+ }
+ continue;
+ } else if (glob[i + 1] === ":") {
+ let k = i + 1;
+ let value = "";
+ while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
+ value += glob[k + 1];
+ k++;
+ }
+ if (glob[k + 1] === ":" && glob[k + 2] === "]") {
+ i = k + 2;
+ if (value === "alnum") segment += "\\dA-Za-z";
+ else if (value === "alpha") segment += "A-Za-z";
+ else if (value === "ascii") segment += "\x00-\x7F";
+ else if (value === "blank") segment += "\t ";
+ else if (value === "cntrl") segment += "\x00-\x1F\x7F";
+ else if (value === "digit") segment += "\\d";
+ else if (value === "graph") segment += "\x21-\x7E";
+ else if (value === "lower") segment += "a-z";
+ else if (value === "print") segment += "\x20-\x7E";
+ else if (value === "punct") {
+ segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
+ } else if (value === "space") segment += "\\s\v";
+ else if (value === "upper") segment += "A-Z";
+ else if (value === "word") segment += "\\w";
+ else if (value === "xdigit") segment += "\\dA-Fa-f";
+ continue;
+ }
+ }
+ }
+ if (glob[i] === "]" && inRange) {
+ inRange = false;
+ segment += "]";
+ continue;
+ }
+ if (inRange) {
+ segment += glob[i];
+ continue;
+ }
+ if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += ")";
+ const type = groupStack.pop();
+ if (type === "!") {
+ segment += c.wildcard;
+ } else if (type !== "@") {
+ segment += type;
+ }
+ continue;
+ }
+ if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "+" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("+");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "@" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("@");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "?") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("?");
+ segment += "(?:";
+ } else {
+ segment += ".";
+ }
+ continue;
+ }
+ if (glob[i] === "!" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("!");
+ segment += "(?!";
+ continue;
+ }
+ if (glob[i] === "{") {
+ groupStack.push("BRACE");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
+ groupStack.pop();
+ segment += ")";
+ continue;
+ }
+ if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "*") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("*");
+ segment += "(?:";
+ } else {
+ const prevChar = glob[i - 1];
+ let numStars = 1;
+ while(glob[i + 1] === "*"){
+ i++;
+ numStars++;
+ }
+ const nextChar = glob[i + 1];
+ if (globstarOption && numStars === 2 && [
+ ...c.seps,
+ undefined
+ ].includes(prevChar) && [
+ ...c.seps,
+ undefined
+ ].includes(nextChar)) {
+ segment += c.globstar;
+ endsWithSep = true;
+ } else {
+ segment += c.wildcard;
+ }
+ }
+ continue;
+ }
+ segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ }
+ // Check for unclosed groups or a dangling backslash.
+ if (groupStack.length > 0 || inRange || inEscape) {
+ // Parse failure. Take all characters from this segment literally.
+ segment = "";
+ for (const c of glob.slice(j, i)){
+ segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
+ endsWithSep = false;
+ }
+ }
+ regExpString += segment;
+ if (!endsWithSep) {
+ regExpString += i < glob.length ? c.sep : c.sepMaybe;
+ endsWithSep = true;
+ }
+ // Terminates with `i` at the start of the next segment.
+ while(c.seps.includes(glob[i]))i++;
+ j = i;
+ }
+ regExpString = `^${regExpString}$`;
+ return new RegExp(regExpString, caseInsensitive ? "i" : "");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const constants = {
+ sep: "/+",
+ sepMaybe: "/*",
+ seps: [
+ "/"
+ ],
+ globstar: "(?:[^/]*(?:/|$)+)*",
+ wildcard: "[^/]*",
+ escapePrefix: "\\"
+};
+/** Convert a glob string to a regular expression.
+ *
+ * Tries to match bash glob expansion as closely as possible.
+ *
+ * Basic glob syntax:
+ * - `*` - Matches everything without leaving the path segment.
+ * - `?` - Matches any single character.
+ * - `{foo,bar}` - Matches `foo` or `bar`.
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
+ * - `[[::]]` - Matches any character belonging to ``.
+ * - `[[:alnum:]]` - Matches any digit or letter.
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
+ * for a complete list of supported character classes.
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
+ * - \` - Escapes the next character for `os` set to `"windows"`.
+ * - `/` - Path separator.
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
+ *
+ * Extended syntax:
+ * - Requires `{ extended: true }`.
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
+ *
+ * Globstar syntax:
+ * - Requires `{ globstar: true }`.
+ * - `**` - Matches any number of any path segments.
+ * - Must comprise its entire path segment in the provided glob.
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
+ *
+ * Note the following properties:
+ * - The generated `RegExp` is anchored at both start and end.
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
+ * provided glob have no meaning and are discarded.
+ * - Absolute globs will only match absolute paths, etc.
+ * - Empty globs will match nothing.
+ * - Any special glob syntax must be contained to one path segment. For example,
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
+ * first segment ends with an unclosed group.
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
+ * parse error has occurred. Every character for that segment is taken
+ * literally in this event.
+ *
+ * Limitations:
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
+ * the group occurs not nested at the end of the segment.
+ *
+ * @example Usage
+ * ```ts
+ * import { globToRegExp } from "@std/path/posix/glob-to-regexp";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
+ * ```
+ *
+ * @param glob Glob string to convert.
+ * @param options Conversion options.
+ * @returns The regular expression equivalent to the glob.
+ */ function globToRegExp(glob, options = {}) {
+ return _globToRegExp(constants, glob, options);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Test whether the given string is a glob.
+ *
+ * @example Usage
+ * ```ts
+ * import { isGlob } from "@std/path/is-glob";
+ * import { assert } from "@std/assert";
+ *
+ * assert(!isGlob("foo/bar/../baz"));
+ * assert(isGlob("foo/*ar/../baz"));
+ * ```
+ *
+ * @param str String to test.
+ * @returns `true` if the given string is a glob, otherwise `false`
+ */ function isGlob(str) {
+ const chars = {
+ "{": "}",
+ "(": ")",
+ "[": "]"
+ };
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
+ if (str === "") {
+ return false;
+ }
+ let match;
+ while(match = regex.exec(str)){
+ if (match[2]) return true;
+ let idx = match.index + match[0].length;
+ // if an open bracket/brace/paren is escaped,
+ // set the index to the next closing character
+ const open = match[1];
+ const close = open ? chars[open] : null;
+ if (open && close) {
+ const n = str.indexOf(close, idx);
+ if (n !== -1) {
+ idx = n + 1;
+ }
+ }
+ str = str.slice(idx);
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalizeGlob } from "@std/path/posix/normalize-glob";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = normalizeGlob("foo/bar/../*", { globstar: true });
+ * assertEquals(path, "foo/*");
+ * ```
+ *
+ * @param glob The glob to normalize.
+ * @param options The options to use.
+ * @returns The normalized path.
+ */ function normalizeGlob(glob, { globstar = false } = {}) {
+ if (glob.match(/\0/g)) {
+ throw new Error(`Glob contains invalid characters: "${glob}"`);
+ }
+ if (!globstar) {
+ return normalize(glob);
+ }
+ const s = SEPARATOR_PATTERN.source;
+ const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
+ return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { joinGlobs } from "@std/path/posix/join-globs";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
+ * assertEquals(path, "foo/bar/**");
+ * ```
+ *
+ * @param globs The globs to join.
+ * @param options The options to use.
+ * @returns The joined path.
+ */ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
+ if (!globstar || globs.length === 0) {
+ return join(...globs);
+ }
+ let joined;
+ for (const glob of globs){
+ const path = glob;
+ if (path.length > 0) {
+ if (!joined) joined = path;
+ else joined += `${SEPARATOR}${path}`;
+ }
+ }
+ if (!joined) return ".";
+ return normalizeGlob(joined, {
+ extended,
+ globstar
+ });
+}
+
+exports.DELIMITER = DELIMITER;
+exports.SEPARATOR = SEPARATOR;
+exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN;
+exports.basename = basename;
+exports.common = common;
+exports.dirname = dirname;
+exports.extname = extname;
+exports.format = format;
+exports.fromFileUrl = fromFileUrl;
+exports.globToRegExp = globToRegExp;
+exports.isAbsolute = isAbsolute;
+exports.isGlob = isGlob;
+exports.join = join;
+exports.joinGlobs = joinGlobs;
+exports.normalize = normalize;
+exports.normalizeGlob = normalizeGlob;
+exports.parse = parse;
+exports.relative = relative;
+exports.resolve = resolve;
+exports.toFileUrl = toFileUrl;
+exports.toNamespacedPath = toNamespacedPath;
diff --git a/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs b/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs
new file mode 100644
index 00000000000..95616595435
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/cjs/std__path/windows.cjs
@@ -0,0 +1,1669 @@
+'use strict';
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+function assertPath(path) {
+ if (typeof path !== "string") {
+ throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function stripSuffix(name, suffix) {
+ if (suffix.length >= name.length) {
+ return name;
+ }
+ const lenDiff = name.length - suffix.length;
+ for(let i = suffix.length - 1; i >= 0; --i){
+ if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
+ return name;
+ }
+ }
+ return name.slice(0, -suffix.length);
+}
+function lastPathSegment(path, isSep, start = 0) {
+ let matchedNonSeparator = false;
+ let end = path.length;
+ for(let i = path.length - 1; i >= start; --i){
+ if (isSep(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ start = i + 1;
+ break;
+ }
+ } else if (!matchedNonSeparator) {
+ matchedNonSeparator = true;
+ end = i + 1;
+ }
+ }
+ return path.slice(start, end);
+}
+function assertArgs$1(path, suffix) {
+ assertPath(path);
+ if (path.length === 0) return path;
+ if (typeof suffix !== "string") {
+ throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Alphabet chars.
+const CHAR_UPPERCASE_A = 65; /* A */
+const CHAR_LOWERCASE_A = 97; /* a */
+const CHAR_UPPERCASE_Z = 90; /* Z */
+const CHAR_LOWERCASE_Z = 122; /* z */
+// Non-alphabetic chars.
+const CHAR_DOT = 46; /* . */
+const CHAR_FORWARD_SLASH = 47; /* / */
+const CHAR_BACKWARD_SLASH = 92; /* \ */
+const CHAR_COLON = 58; /* : */
+const CHAR_QUESTION_MARK = 63; /* ? */
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function stripTrailingSeparators(segment, isSep) {
+ if (segment.length <= 1) {
+ return segment;
+ }
+ let end = segment.length;
+ for(let i = segment.length - 1; i > 0; i--){
+ if (isSep(segment.charCodeAt(i))) {
+ end = i;
+ } else {
+ break;
+ }
+ }
+ return segment.slice(0, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function isPosixPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH;
+}
+function isPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
+}
+function isWindowsDeviceRoot(code) {
+ return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the last portion of a `path`.
+ * Trailing directory separators are ignored, and optional suffix is removed.
+ *
+ * @example Usage
+ * ```ts
+ * import { basename } from "@std/path/windows/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("C:\\user\\Documents\\"), "Documents");
+ * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
+ * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `basename` from `@std/path/windows/unstable-basename`.
+ *
+ * @param path The path to extract the name from.
+ * @param suffix The suffix to remove from extracted name.
+ * @returns The extracted name.
+ */ function basename(path, suffix = "") {
+ assertArgs$1(path, suffix);
+ // Check for a drive letter prefix so as not to mistake the following
+ // path separator as an extra separator at the end of the path that can be
+ // disregarded
+ let start = 0;
+ if (path.length >= 2) {
+ const drive = path.charCodeAt(0);
+ if (isWindowsDeviceRoot(drive)) {
+ if (path.charCodeAt(1) === CHAR_COLON) start = 2;
+ }
+ }
+ const lastSegment = lastPathSegment(path, isPathSeparator, start);
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator);
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * The character used to separate entries in the PATH environment variable.
+ */ const DELIMITER = ";";
+/**
+ * The character used to separate components of a file path.
+ */ const SEPARATOR = "\\";
+/**
+ * A regular expression that matches one or more path separators.
+ */ const SEPARATOR_PATTERN = /[\\/]+/;
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$3(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the directory path of a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { dirname } from "@std/path/windows/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const dir = dirname("C:\\foo\\bar\\baz.ext");
+ * assertEquals(dir, "C:\\foo\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `dirname` from `@std/path/windows/unstable-dirname`.
+ *
+ * @param path The path to get the directory from.
+ * @returns The directory path.
+ */ function dirname(path) {
+ assertArg$3(path);
+ const len = path.length;
+ let rootEnd = -1;
+ let end = -1;
+ let matchedSlash = true;
+ let offset = 0;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ rootEnd = offset = 1;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ return path;
+ }
+ if (j !== last) {
+ // We matched a UNC root with leftovers
+ // Offset by 1 to include the separator after the UNC root to
+ // treat it as a "normal root" on top of a (UNC) root
+ rootEnd = offset = j + 1;
+ }
+ }
+ }
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ rootEnd = offset = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3;
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid
+ // unnecessary work
+ return path;
+ }
+ for(let i = len - 1; i >= offset; --i){
+ if (isPathSeparator(path.charCodeAt(i))) {
+ if (!matchedSlash) {
+ end = i;
+ break;
+ }
+ } else {
+ // We saw the first non-path separator
+ matchedSlash = false;
+ }
+ }
+ if (end === -1) {
+ if (rootEnd === -1) return ".";
+ else end = rootEnd;
+ }
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the extension of the `path` with leading period.
+ *
+ * @example Usage
+ * ```ts
+ * import { extname } from "@std/path/windows/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const ext = extname("file.ts");
+ * assertEquals(ext, ".ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `extname` from `@std/path/windows/unstable-extname`.
+ *
+ * @param path The path to get the extension from.
+ * @returns The extension of the `path`.
+ */ function extname(path) {
+ assertPath(path);
+ let start = 0;
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Check for a drive letter prefix so as not to mistake the following
+ // path separator as an extra separator at the end of the path that can be
+ // disregarded
+ if (path.length >= 2 && path.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path.charCodeAt(0))) {
+ start = startPart = 2;
+ }
+ for(let i = path.length - 1; i >= start; --i){
+ const code = path.charCodeAt(i);
+ if (isPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ return "";
+ }
+ return path.slice(startDot, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function _format(sep, pathObject) {
+ const dir = pathObject.dir || pathObject.root;
+ const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
+ if (!dir) return base;
+ if (base === sep) return dir;
+ if (dir === pathObject.root) return dir + base;
+ return dir + sep + base;
+}
+function assertArg$2(pathObject) {
+ if (pathObject === null || typeof pathObject !== "object") {
+ throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Generate a path from `ParsedPath` object.
+ *
+ * @example Usage
+ * ```ts
+ * import { format } from "@std/path/windows/format";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = format({
+ * root: "C:\\",
+ * dir: "C:\\path\\dir",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * assertEquals(path, "C:\\path\\dir\\file.txt");
+ * ```
+ *
+ * @param pathObject The path object to format.
+ * @returns The formatted path.
+ */ function format(pathObject) {
+ assertArg$2(pathObject);
+ return _format("\\", pathObject);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$1(url) {
+ url = url instanceof URL ? url : new URL(url);
+ if (url.protocol !== "file:") {
+ throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a file URL to a path string.
+ *
+ * @example Usage
+ * ```ts
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
+ * ```
+ *
+ * @param url The file URL to convert.
+ * @returns The path string.
+ */ function fromFileUrl(url) {
+ url = assertArg$1(url);
+ let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
+ if (url.hostname !== "") {
+ // Note: The `URL` implementation guarantees that the drive letter and
+ // hostname are mutually exclusive. Otherwise it would not have been valid
+ // to append the hostname and path like this.
+ path = `\\\\${url.hostname}${path}`;
+ }
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Verifies whether provided path is absolute.
+ *
+ * @example Usage
+ * ```ts
+ * import { isAbsolute } from "@std/path/windows/is-absolute";
+ * import { assert, assertFalse } from "@std/assert";
+ *
+ * assert(isAbsolute("C:\\foo\\bar"));
+ * assertFalse(isAbsolute("..\\baz"));
+ * ```
+ *
+ * @param path The path to verify.
+ * @returns `true` if the path is absolute, `false` otherwise.
+ */ function isAbsolute(path) {
+ assertPath(path);
+ const len = path.length;
+ if (len === 0) return false;
+ const code = path.charCodeAt(0);
+ if (isPathSeparator(code)) {
+ return true;
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
+ if (isPathSeparator(path.charCodeAt(2))) return true;
+ }
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Resolves . and .. elements in a path with directory names
+function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
+ let res = "";
+ let lastSegmentLength = 0;
+ let lastSlash = -1;
+ let dots = 0;
+ let code;
+ for(let i = 0; i <= path.length; ++i){
+ if (i < path.length) code = path.charCodeAt(i);
+ else if (isPathSeparator(code)) break;
+ else code = CHAR_FORWARD_SLASH;
+ if (isPathSeparator(code)) {
+ if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
+ if (res.length > 2) {
+ const lastSlashIndex = res.lastIndexOf(separator);
+ if (lastSlashIndex === -1) {
+ res = "";
+ lastSegmentLength = 0;
+ } else {
+ res = res.slice(0, lastSlashIndex);
+ lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
+ }
+ lastSlash = i;
+ dots = 0;
+ continue;
+ } else if (res.length === 2 || res.length === 1) {
+ res = "";
+ lastSegmentLength = 0;
+ lastSlash = i;
+ dots = 0;
+ continue;
+ }
+ }
+ if (allowAboveRoot) {
+ if (res.length > 0) res += `${separator}..`;
+ else res = "..";
+ lastSegmentLength = 2;
+ }
+ } else {
+ if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
+ else res = path.slice(lastSlash + 1, i);
+ lastSegmentLength = i - lastSlash - 1;
+ }
+ lastSlash = i;
+ dots = 0;
+ } else if (code === CHAR_DOT && dots !== -1) {
+ ++dots;
+ } else {
+ dots = -1;
+ }
+ }
+ return res;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalize } from "@std/path/windows/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const normalized = normalize("C:\\foo\\..\\bar");
+ * assertEquals(normalized, "C:\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `normalize` from `@std/path/windows/unstable-normalize`.
+ *
+ * @param path The path to normalize
+ * @returns The normalized path
+ */ function normalize(path) {
+ assertArg(path);
+ const len = path.length;
+ let rootEnd = 0;
+ let device;
+ let isAbsolute = false;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ // If we started with a separator, we know we at least have an absolute
+ // path of some kind (UNC or otherwise)
+ isAbsolute = true;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ const firstPart = path.slice(last, j);
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ // Return the normalized version of the UNC root since there
+ // is nothing left to process
+ return `\\\\${firstPart}\\${path.slice(last)}\\`;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
+ rootEnd = j;
+ }
+ }
+ }
+ } else {
+ rootEnd = 1;
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ device = path.slice(0, 2);
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ // Treat separator following drive name as an absolute path
+ // indicator
+ isAbsolute = true;
+ rootEnd = 3;
+ }
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid unnecessary
+ // work
+ return "\\";
+ }
+ let tail;
+ if (rootEnd < len) {
+ tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator);
+ } else {
+ tail = "";
+ }
+ if (tail.length === 0 && !isAbsolute) tail = ".";
+ if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
+ tail += "\\";
+ }
+ if (device === undefined) {
+ if (isAbsolute) {
+ if (tail.length > 0) return `\\${tail}`;
+ else return "\\";
+ }
+ return tail;
+ } else if (isAbsolute) {
+ if (tail.length > 0) return `${device}\\${tail}`;
+ else return `${device}\\`;
+ }
+ return device + tail;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
+ *
+ * @example Usage
+ * ```ts
+ * import { join } from "@std/path/windows/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const joined = join("C:\\foo", "bar", "baz\\..");
+ * assertEquals(joined, "C:\\foo\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `join` from `@std/path/windows/unstable-join`.
+ *
+ * @param paths The paths to join.
+ * @returns The joined path.
+ */ function join(...paths) {
+ paths.forEach((path)=>assertPath(path));
+ paths = paths.filter((path)=>path.length > 0);
+ if (paths.length === 0) return ".";
+ // Make sure that the joined path doesn't start with two slashes, because
+ // normalize() will mistake it for an UNC path then.
+ //
+ // This step is skipped when it is very clear that the user actually
+ // intended to point at an UNC path. This is assumed when the first
+ // non-empty string arguments starts with exactly two slashes followed by
+ // at least one more non-slash character.
+ //
+ // Note that for normalize() to treat a path as an UNC path it needs to
+ // have at least 2 components, so we don't filter for that here.
+ // This means that the user can use join to construct UNC paths from
+ // a server name and a share name; for example:
+ // path.join('//server', 'share') -> '\\\\server\\share\\'
+ let needsReplace = true;
+ let slashCount = 0;
+ const firstPart = paths[0];
+ if (isPathSeparator(firstPart.charCodeAt(0))) {
+ ++slashCount;
+ const firstLen = firstPart.length;
+ if (firstLen > 1) {
+ if (isPathSeparator(firstPart.charCodeAt(1))) {
+ ++slashCount;
+ if (firstLen > 2) {
+ if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
+ else {
+ // We matched a UNC path in the first part
+ needsReplace = false;
+ }
+ }
+ }
+ }
+ }
+ let joined = paths.join("\\");
+ if (needsReplace) {
+ // Find any more consecutive slashes we need to replace
+ for(; slashCount < joined.length; ++slashCount){
+ if (!isPathSeparator(joined.charCodeAt(slashCount))) break;
+ }
+ // Replace the slashes if needed
+ if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`;
+ }
+ return normalize(joined);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return a `ParsedPath` object of the `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { parse } from "@std/path/windows/parse";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const parsed = parse("C:\\foo\\bar\\baz.ext");
+ * assertEquals(parsed, {
+ * root: "C:\\",
+ * dir: "C:\\foo\\bar",
+ * base: "baz.ext",
+ * ext: ".ext",
+ * name: "baz",
+ * });
+ * ```
+ *
+ * @param path The path to parse.
+ * @returns The `ParsedPath` object.
+ */ function parse(path) {
+ assertPath(path);
+ const ret = {
+ root: "",
+ dir: "",
+ base: "",
+ ext: "",
+ name: ""
+ };
+ const len = path.length;
+ if (len === 0) return ret;
+ let rootEnd = 0;
+ let code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ rootEnd = 1;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ rootEnd = j;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ rootEnd = j + 1;
+ }
+ }
+ }
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ if (len === 3) {
+ // `path` contains just a drive root, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ ret.base = "\\";
+ return ret;
+ }
+ rootEnd = 3;
+ }
+ } else {
+ // `path` contains just a relative drive root, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ return ret;
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ ret.base = "\\";
+ return ret;
+ }
+ if (rootEnd > 0) ret.root = path.slice(0, rootEnd);
+ let startDot = -1;
+ let startPart = rootEnd;
+ let end = -1;
+ let matchedSlash = true;
+ let i = path.length - 1;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Get non-dir info
+ for(; i >= rootEnd; --i){
+ code = path.charCodeAt(i);
+ if (isPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ if (end !== -1) {
+ ret.base = ret.name = path.slice(startPart, end);
+ }
+ } else {
+ ret.name = path.slice(startPart, startDot);
+ ret.base = path.slice(startPart, end);
+ ret.ext = path.slice(startDot, end);
+ }
+ // Fallback to '\' in case there is no basename
+ ret.base = ret.base || "\\";
+ // If the directory is the root, use the entire root as the `dir` including
+ // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the
+ // trailing slash (`C:\abc\def` -> `C:\abc`).
+ if (startPart > 0 && startPart !== rootEnd) {
+ ret.dir = path.slice(0, startPart - 1);
+ } else ret.dir = ret.root;
+ return ret;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path segments into a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { resolve } from "@std/path/windows/resolve";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const resolved = resolve("C:\\foo\\bar", "..\\baz");
+ * assertEquals(resolved, "C:\\foo\\baz");
+ * ```
+ *
+ * @param pathSegments The path segments to process to path
+ * @returns The resolved path
+ */ function resolve(...pathSegments) {
+ let resolvedDevice = "";
+ let resolvedTail = "";
+ let resolvedAbsolute = false;
+ for(let i = pathSegments.length - 1; i >= -1; i--){
+ let path;
+ // deno-lint-ignore no-explicit-any
+ const { Deno } = globalThis;
+ if (i >= 0) {
+ path = pathSegments[i];
+ } else if (!resolvedDevice) {
+ if (typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ } else {
+ if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a relative path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ // Verify that a cwd was found and that it actually points
+ // to our drive. If not, default to the drive's root.
+ if (path === undefined || path.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) {
+ path = `${resolvedDevice}\\`;
+ }
+ }
+ assertPath(path);
+ const len = path.length;
+ // Skip empty entries
+ if (len === 0) continue;
+ let rootEnd = 0;
+ let device = "";
+ let isAbsolute = false;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ // If we started with a separator, we know we at least have an
+ // absolute path of some kind (UNC or otherwise)
+ isAbsolute = true;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ const firstPart = path.slice(last, j);
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ device = `\\\\${firstPart}\\${path.slice(last)}`;
+ rootEnd = j;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
+ rootEnd = j;
+ }
+ }
+ }
+ } else {
+ rootEnd = 1;
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ device = path.slice(0, 2);
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ // Treat separator following drive name as an absolute path
+ // indicator
+ isAbsolute = true;
+ rootEnd = 3;
+ }
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator
+ rootEnd = 1;
+ isAbsolute = true;
+ }
+ if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) {
+ continue;
+ }
+ if (resolvedDevice.length === 0 && device.length > 0) {
+ resolvedDevice = device;
+ }
+ if (!resolvedAbsolute) {
+ resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
+ resolvedAbsolute = isAbsolute;
+ }
+ if (resolvedAbsolute && resolvedDevice.length > 0) break;
+ }
+ // At this point the path should be resolved to a full absolute path,
+ // but handle relative paths to be safe (might happen when Deno.cwd()
+ // fails)
+ // Normalize the tail path
+ resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
+ return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArgs(from, to) {
+ assertPath(from);
+ assertPath(to);
+ if (from === to) return "";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the relative path from `from` to `to` based on current working directory.
+ *
+ * An example in windws, for instance:
+ * from = 'C:\\orandea\\test\\aaa'
+ * to = 'C:\\orandea\\impl\\bbb'
+ * The output of the function should be: '..\\..\\impl\\bbb'
+ *
+ * @example Usage
+ * ```ts
+ * import { relative } from "@std/path/windows/relative";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb");
+ * assertEquals(relativePath, "..\\..\\impl\\bbb");
+ * ```
+ *
+ * @param from The path from which to calculate the relative path
+ * @param to The path to which to calculate the relative path
+ * @returns The relative path from `from` to `to`
+ */ function relative(from, to) {
+ assertArgs(from, to);
+ const fromOrig = resolve(from);
+ const toOrig = resolve(to);
+ if (fromOrig === toOrig) return "";
+ from = fromOrig.toLowerCase();
+ to = toOrig.toLowerCase();
+ if (from === to) return "";
+ // Trim any leading backslashes
+ let fromStart = 0;
+ let fromEnd = from.length;
+ for(; fromStart < fromEnd; ++fromStart){
+ if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) break;
+ }
+ // Trim trailing backslashes (applicable to UNC paths only)
+ for(; fromEnd - 1 > fromStart; --fromEnd){
+ if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) break;
+ }
+ const fromLen = fromEnd - fromStart;
+ // Trim any leading backslashes
+ let toStart = 0;
+ let toEnd = to.length;
+ for(; toStart < toEnd; ++toStart){
+ if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) break;
+ }
+ // Trim trailing backslashes (applicable to UNC paths only)
+ for(; toEnd - 1 > toStart; --toEnd){
+ if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) break;
+ }
+ const toLen = toEnd - toStart;
+ // Compare paths to find the longest common path from root
+ const length = fromLen < toLen ? fromLen : toLen;
+ let lastCommonSep = -1;
+ let i = 0;
+ for(; i <= length; ++i){
+ if (i === length) {
+ if (toLen > length) {
+ if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {
+ // We get here if `from` is the exact base path for `to`.
+ // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
+ return toOrig.slice(toStart + i + 1);
+ } else if (i === 2) {
+ // We get here if `from` is the device root.
+ // For example: from='C:\\'; to='C:\\foo'
+ return toOrig.slice(toStart + i);
+ }
+ }
+ if (fromLen > length) {
+ if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {
+ // We get here if `to` is the exact base path for `from`.
+ // For example: from='C:\\foo\\bar'; to='C:\\foo'
+ lastCommonSep = i;
+ } else if (i === 2) {
+ // We get here if `to` is the device root.
+ // For example: from='C:\\foo\\bar'; to='C:\\'
+ lastCommonSep = 3;
+ }
+ }
+ break;
+ }
+ const fromCode = from.charCodeAt(fromStart + i);
+ const toCode = to.charCodeAt(toStart + i);
+ if (fromCode !== toCode) break;
+ else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i;
+ }
+ // We found a mismatch before the first common path separator was seen, so
+ // return the original `to`.
+ if (i !== length && lastCommonSep === -1) {
+ return toOrig;
+ }
+ let out = "";
+ if (lastCommonSep === -1) lastCommonSep = 0;
+ // Generate the relative path based on the path difference between `to` and
+ // `from`
+ for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
+ if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {
+ if (out.length === 0) out += "..";
+ else out += "\\..";
+ }
+ }
+ // Lastly, append the rest of the destination (`to`) path that comes after
+ // the common path parts
+ if (out.length > 0) {
+ return out + toOrig.slice(toStart + lastCommonSep, toEnd);
+ } else {
+ toStart += lastCommonSep;
+ if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) ++toStart;
+ return toOrig.slice(toStart, toEnd);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const WHITESPACE_ENCODINGS = {
+ "\u0009": "%09",
+ "\u000A": "%0A",
+ "\u000B": "%0B",
+ "\u000C": "%0C",
+ "\u000D": "%0D",
+ "\u0020": "%20"
+};
+function encodeWhitespace(string) {
+ return string.replaceAll(/[\s]/g, (c)=>{
+ return WHITESPACE_ENCODINGS[c] ?? c;
+ });
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path string to a file URL.
+ *
+ * @example Usage
+ * ```ts
+ * import { toFileUrl } from "@std/path/windows/to-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
+ * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
+ * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
+ * ```
+ * @param path The path to convert.
+ * @returns The file URL.
+ */ function toFileUrl(path) {
+ if (!isAbsolute(path)) {
+ throw new TypeError(`Path must be absolute: received "${path}"`);
+ }
+ const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/);
+ const url = new URL("file:///");
+ url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25"));
+ if (hostname !== undefined && hostname !== "localhost") {
+ url.hostname = hostname;
+ if (!url.hostname) {
+ throw new TypeError(`Invalid hostname: "${url.hostname}"`);
+ }
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path to a namespace path
+ *
+ * @example Usage
+ * ```ts
+ * import { toNamespacedPath } from "@std/path/windows/to-namespaced-path";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const namespaced = toNamespacedPath("C:\\foo\\bar");
+ * assertEquals(namespaced, "\\\\?\\C:\\foo\\bar");
+ * ```
+ *
+ * @param path The path to resolve to namespaced path
+ * @returns The resolved namespaced path
+ */ function toNamespacedPath(path) {
+ // Note: this will *probably* throw somewhere.
+ if (typeof path !== "string") return path;
+ if (path.length === 0) return "";
+ const resolvedPath = resolve(path);
+ if (resolvedPath.length >= 3) {
+ if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {
+ // Possible UNC root
+ if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {
+ const code = resolvedPath.charCodeAt(2);
+ if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {
+ // Matched non-long UNC root, convert the path to a long UNC path
+ return `\\\\?\\UNC\\${resolvedPath.slice(2)}`;
+ }
+ }
+ } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) {
+ // Possible device root
+ if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {
+ // Matched device root, convert the path to a long UNC path
+ return `\\\\?\\${resolvedPath}`;
+ }
+ }
+ }
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function common$1(paths, sep) {
+ const [first = "", ...remaining] = paths;
+ const parts = first.split(sep);
+ let endOfPrefix = parts.length;
+ let append = "";
+ for (const path of remaining){
+ const compare = path.split(sep);
+ if (compare.length <= endOfPrefix) {
+ endOfPrefix = compare.length;
+ append = "";
+ }
+ for(let i = 0; i < endOfPrefix; i++){
+ if (compare[i] !== parts[i]) {
+ endOfPrefix = i;
+ append = i === 0 ? "" : sep;
+ break;
+ }
+ }
+ }
+ return parts.slice(0, endOfPrefix).join(sep) + append;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Determines the common path from a set of paths for Windows systems.
+ *
+ * @example Usage
+ * ```ts
+ * import { common } from "@std/path/windows/common";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = common([
+ * "C:\\foo\\bar",
+ * "C:\\foo\\baz",
+ * ]);
+ * assertEquals(path, "C:\\foo\\");
+ * ```
+ *
+ * @param paths The paths to compare.
+ * @returns The common path.
+ */ function common(paths) {
+ return common$1(paths, SEPARATOR);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
+ * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
+ */ const REG_EXP_ESCAPE_CHARS = [
+ "!",
+ "$",
+ "(",
+ ")",
+ "*",
+ "+",
+ ".",
+ "=",
+ "?",
+ "[",
+ "\\",
+ "^",
+ "{",
+ "|"
+];
+const RANGE_ESCAPE_CHARS = [
+ "-",
+ "\\",
+ "]"
+];
+function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
+caseInsensitive = false } = {}) {
+ if (glob === "") {
+ return /(?!)/;
+ }
+ // Remove trailing separators.
+ let newLength = glob.length;
+ for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
+ glob = glob.slice(0, newLength);
+ let regExpString = "";
+ // Terminates correctly. Trust that `j` is incremented every iteration.
+ for(let j = 0; j < glob.length;){
+ let segment = "";
+ const groupStack = [];
+ let inRange = false;
+ let inEscape = false;
+ let endsWithSep = false;
+ let i = j;
+ // Terminates with `i` at the non-inclusive end of the current segment.
+ for(; i < glob.length && !c.seps.includes(glob[i]); i++){
+ if (inEscape) {
+ inEscape = false;
+ const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
+ segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ continue;
+ }
+ if (glob[i] === c.escapePrefix) {
+ inEscape = true;
+ continue;
+ }
+ if (glob[i] === "[") {
+ if (!inRange) {
+ inRange = true;
+ segment += "[";
+ if (glob[i + 1] === "!") {
+ i++;
+ segment += "^";
+ } else if (glob[i + 1] === "^") {
+ i++;
+ segment += "\\^";
+ }
+ continue;
+ } else if (glob[i + 1] === ":") {
+ let k = i + 1;
+ let value = "";
+ while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
+ value += glob[k + 1];
+ k++;
+ }
+ if (glob[k + 1] === ":" && glob[k + 2] === "]") {
+ i = k + 2;
+ if (value === "alnum") segment += "\\dA-Za-z";
+ else if (value === "alpha") segment += "A-Za-z";
+ else if (value === "ascii") segment += "\x00-\x7F";
+ else if (value === "blank") segment += "\t ";
+ else if (value === "cntrl") segment += "\x00-\x1F\x7F";
+ else if (value === "digit") segment += "\\d";
+ else if (value === "graph") segment += "\x21-\x7E";
+ else if (value === "lower") segment += "a-z";
+ else if (value === "print") segment += "\x20-\x7E";
+ else if (value === "punct") {
+ segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
+ } else if (value === "space") segment += "\\s\v";
+ else if (value === "upper") segment += "A-Z";
+ else if (value === "word") segment += "\\w";
+ else if (value === "xdigit") segment += "\\dA-Fa-f";
+ continue;
+ }
+ }
+ }
+ if (glob[i] === "]" && inRange) {
+ inRange = false;
+ segment += "]";
+ continue;
+ }
+ if (inRange) {
+ segment += glob[i];
+ continue;
+ }
+ if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += ")";
+ const type = groupStack.pop();
+ if (type === "!") {
+ segment += c.wildcard;
+ } else if (type !== "@") {
+ segment += type;
+ }
+ continue;
+ }
+ if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "+" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("+");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "@" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("@");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "?") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("?");
+ segment += "(?:";
+ } else {
+ segment += ".";
+ }
+ continue;
+ }
+ if (glob[i] === "!" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("!");
+ segment += "(?!";
+ continue;
+ }
+ if (glob[i] === "{") {
+ groupStack.push("BRACE");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
+ groupStack.pop();
+ segment += ")";
+ continue;
+ }
+ if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "*") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("*");
+ segment += "(?:";
+ } else {
+ const prevChar = glob[i - 1];
+ let numStars = 1;
+ while(glob[i + 1] === "*"){
+ i++;
+ numStars++;
+ }
+ const nextChar = glob[i + 1];
+ if (globstarOption && numStars === 2 && [
+ ...c.seps,
+ undefined
+ ].includes(prevChar) && [
+ ...c.seps,
+ undefined
+ ].includes(nextChar)) {
+ segment += c.globstar;
+ endsWithSep = true;
+ } else {
+ segment += c.wildcard;
+ }
+ }
+ continue;
+ }
+ segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ }
+ // Check for unclosed groups or a dangling backslash.
+ if (groupStack.length > 0 || inRange || inEscape) {
+ // Parse failure. Take all characters from this segment literally.
+ segment = "";
+ for (const c of glob.slice(j, i)){
+ segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
+ endsWithSep = false;
+ }
+ }
+ regExpString += segment;
+ if (!endsWithSep) {
+ regExpString += i < glob.length ? c.sep : c.sepMaybe;
+ endsWithSep = true;
+ }
+ // Terminates with `i` at the start of the next segment.
+ while(c.seps.includes(glob[i]))i++;
+ j = i;
+ }
+ regExpString = `^${regExpString}$`;
+ return new RegExp(regExpString, caseInsensitive ? "i" : "");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const constants = {
+ sep: "(?:\\\\|/)+",
+ sepMaybe: "(?:\\\\|/)*",
+ seps: [
+ "\\",
+ "/"
+ ],
+ globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
+ wildcard: "[^\\\\/]*",
+ escapePrefix: "`"
+};
+/** Convert a glob string to a regular expression.
+ *
+ * Tries to match bash glob expansion as closely as possible.
+ *
+ * Basic glob syntax:
+ * - `*` - Matches everything without leaving the path segment.
+ * - `?` - Matches any single character.
+ * - `{foo,bar}` - Matches `foo` or `bar`.
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
+ * - `[[::]]` - Matches any character belonging to ``.
+ * - `[[:alnum:]]` - Matches any digit or letter.
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
+ * for a complete list of supported character classes.
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
+ * - \` - Escapes the next character for `os` set to `"windows"`.
+ * - `/` - Path separator.
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
+ *
+ * Extended syntax:
+ * - Requires `{ extended: true }`.
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
+ *
+ * Globstar syntax:
+ * - Requires `{ globstar: true }`.
+ * - `**` - Matches any number of any path segments.
+ * - Must comprise its entire path segment in the provided glob.
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
+ *
+ * Note the following properties:
+ * - The generated `RegExp` is anchored at both start and end.
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
+ * provided glob have no meaning and are discarded.
+ * - Absolute globs will only match absolute paths, etc.
+ * - Empty globs will match nothing.
+ * - Any special glob syntax must be contained to one path segment. For example,
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
+ * first segment ends with an unclosed group.
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
+ * parse error has occurred. Every character for that segment is taken
+ * literally in this event.
+ *
+ * Limitations:
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
+ * the group occurs not nested at the end of the segment.
+ *
+ * @example Usage
+ * ```ts
+ * import { globToRegExp } from "@std/path/windows/glob-to-regexp";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
+ * ```
+ *
+ * @param glob Glob string to convert.
+ * @param options Conversion options.
+ * @returns The regular expression equivalent to the glob.
+ */ function globToRegExp(glob, options = {}) {
+ return _globToRegExp(constants, glob, options);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Test whether the given string is a glob.
+ *
+ * @example Usage
+ * ```ts
+ * import { isGlob } from "@std/path/is-glob";
+ * import { assert } from "@std/assert";
+ *
+ * assert(!isGlob("foo/bar/../baz"));
+ * assert(isGlob("foo/*ar/../baz"));
+ * ```
+ *
+ * @param str String to test.
+ * @returns `true` if the given string is a glob, otherwise `false`
+ */ function isGlob(str) {
+ const chars = {
+ "{": "}",
+ "(": ")",
+ "[": "]"
+ };
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
+ if (str === "") {
+ return false;
+ }
+ let match;
+ while(match = regex.exec(str)){
+ if (match[2]) return true;
+ let idx = match.index + match[0].length;
+ // if an open bracket/brace/paren is escaped,
+ // set the index to the next closing character
+ const open = match[1];
+ const close = open ? chars[open] : null;
+ if (open && close) {
+ const n = str.indexOf(close, idx);
+ if (n !== -1) {
+ idx = n + 1;
+ }
+ }
+ str = str.slice(idx);
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalizeGlob } from "@std/path/windows/normalize-glob";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true });
+ * assertEquals(normalized, "**\\bar");
+ * ```
+ *
+ * @param glob The glob pattern to normalize.
+ * @param options The options for glob pattern.
+ * @returns The normalized glob pattern.
+ */ function normalizeGlob(glob, { globstar = false } = {}) {
+ if (glob.match(/\0/g)) {
+ throw new Error(`Glob contains invalid characters: "${glob}"`);
+ }
+ if (!globstar) {
+ return normalize(glob);
+ }
+ const s = SEPARATOR_PATTERN.source;
+ const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
+ return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ *
+ * ```ts
+ * import { joinGlobs } from "@std/path/windows/join-globs";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const joined = joinGlobs(["foo", "**", "bar"], { globstar: true });
+ * assertEquals(joined, "foo\\**\\bar");
+ * ```
+ *
+ * @param globs The globs to join.
+ * @param options The options for glob pattern.
+ * @returns The joined glob pattern.
+ */ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
+ if (!globstar || globs.length === 0) {
+ return join(...globs);
+ }
+ let joined;
+ for (const glob of globs){
+ const path = glob;
+ if (path.length > 0) {
+ if (!joined) joined = path;
+ else joined += `${SEPARATOR}${path}`;
+ }
+ }
+ if (!joined) return ".";
+ return normalizeGlob(joined, {
+ extended,
+ globstar
+ });
+}
+
+exports.DELIMITER = DELIMITER;
+exports.SEPARATOR = SEPARATOR;
+exports.SEPARATOR_PATTERN = SEPARATOR_PATTERN;
+exports.basename = basename;
+exports.common = common;
+exports.dirname = dirname;
+exports.extname = extname;
+exports.format = format;
+exports.fromFileUrl = fromFileUrl;
+exports.globToRegExp = globToRegExp;
+exports.isAbsolute = isAbsolute;
+exports.isGlob = isGlob;
+exports.join = join;
+exports.joinGlobs = joinGlobs;
+exports.normalize = normalize;
+exports.normalizeGlob = normalizeGlob;
+exports.parse = parse;
+exports.relative = relative;
+exports.resolve = resolve;
+exports.toFileUrl = toFileUrl;
+exports.toNamespacedPath = toNamespacedPath;
diff --git a/node_modules/@eslint/config-array/dist/cjs/types.ts b/node_modules/@eslint/config-array/dist/cjs/types.ts
new file mode 100644
index 00000000000..1af40113892
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/cjs/types.ts
@@ -0,0 +1,24 @@
+/**
+ * @fileoverview Types for the config-array package.
+ * @author Nicholas C. Zakas
+ */
+
+export interface ConfigObject {
+ /**
+ * The files to include.
+ */
+ files?: string[];
+
+ /**
+ * The files to exclude.
+ */
+ ignores?: string[];
+
+ /**
+ * The name of the config object.
+ */
+ name?: string;
+
+ // may also have any number of other properties
+ [key: string]: unknown;
+}
diff --git a/node_modules/@eslint/config-array/dist/esm/index.d.ts b/node_modules/@eslint/config-array/dist/esm/index.d.ts
new file mode 100644
index 00000000000..6fb977e039d
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/index.d.ts
@@ -0,0 +1,141 @@
+export { ObjectSchema } from "@eslint/object-schema";
+export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition;
+export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition;
+export type ConfigObject = import("./types.ts").ConfigObject;
+export type IMinimatchStatic = import("minimatch").IMinimatchStatic;
+export type IMinimatch = import("minimatch").IMinimatch;
+export type PathImpl = typeof import("@jsr/std__path");
+export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema;
+/**
+ * Represents an array of config objects and provides method for working with
+ * those config objects.
+ */
+export class ConfigArray extends Array {
+ /**
+ * Creates a new instance of ConfigArray.
+ * @param {Iterable|Function|Object} configs An iterable yielding config
+ * objects, or a config function, or a config object.
+ * @param {Object} options The options for the ConfigArray.
+ * @param {string} [options.basePath="/"] The absolute path of the config file directory.
+ * Defaults to `"/"`.
+ * @param {boolean} [options.normalized=false] Flag indicating if the
+ * configs have already been normalized.
+ * @param {Object} [options.schema] The additional schema
+ * definitions to use for the ConfigArray schema.
+ * @param {Array} [options.extraConfigTypes] List of config types supported.
+ */
+ constructor(configs: Iterable | Function | any, { basePath, normalized, schema: customSchema, extraConfigTypes, }?: {
+ basePath?: string;
+ normalized?: boolean;
+ schema?: any;
+ extraConfigTypes?: Array;
+ });
+ /**
+ * The path of the config file that this array was loaded from.
+ * This is used to calculate filename matches.
+ * @property basePath
+ * @type {string}
+ */
+ basePath: string;
+ /**
+ * The supported config types.
+ * @type {Array}
+ */
+ extraConfigTypes: Array;
+ /**
+ * Returns the `files` globs from every config object in the array.
+ * This can be used to determine which files will be matched by a
+ * config array or to use as a glob pattern when no patterns are provided
+ * for a command line interface.
+ * @returns {Array} An array of matchers.
+ */
+ get files(): (string | Function)[];
+ /**
+ * Returns ignore matchers that should always be ignored regardless of
+ * the matching `files` fields in any configs. This is necessary to mimic
+ * the behavior of things like .gitignore and .eslintignore, allowing a
+ * globbing operation to be faster.
+ * @returns {string[]} An array of string patterns and functions to be ignored.
+ */
+ get ignores(): string[];
+ /**
+ * Indicates if the config array has been normalized.
+ * @returns {boolean} True if the config array is normalized, false if not.
+ */
+ isNormalized(): boolean;
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {Promise} The current ConfigArray instance.
+ */
+ normalize(context?: any): Promise;
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {ConfigArray} The current ConfigArray instance.
+ */
+ normalizeSync(context?: any): ConfigArray;
+ /**
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
+ * An object with an optional property `config` and property `status`.
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
+ */
+ getConfigWithStatus(filePath: string): {
+ config?: any;
+ status: "ignored" | "external" | "unconfigured" | "matched";
+ };
+ /**
+ * Returns the config object for a given file path.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {Object|undefined} The config object for this file or `undefined`.
+ */
+ getConfig(filePath: string): any | undefined;
+ /**
+ * Determines whether a file has a config or why it doesn't.
+ * @param {string} filePath The path of the file to check.
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
+ * * `"ignored"`: the file is ignored
+ * * `"external"`: the file is outside the base path
+ * * `"unconfigured"`: the file is not matched by any config
+ * * `"matched"`: the file has a matching config
+ */
+ getConfigStatus(filePath: string): "ignored" | "external" | "unconfigured" | "matched";
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ * @deprecated Use `isFileIgnored` instead.
+ */
+ isIgnored(filePath: string): boolean;
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ */
+ isFileIgnored(filePath: string): boolean;
+ /**
+ * Determines if the given directory is ignored based on the configs.
+ * This checks only default `ignores` that don't have `files` in the
+ * same config. A pattern such as `/foo` be considered to ignore the directory
+ * while a pattern such as `/foo/**` is not considered to ignore the
+ * directory because it is matching files.
+ * @param {string} directoryPath The path of a directory to check.
+ * @returns {boolean} True if the directory is ignored, false if not. Will
+ * return true for any directory that is not inside of `basePath`.
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+ isDirectoryIgnored(directoryPath: string): boolean;
+ #private;
+}
+export namespace ConfigArraySymbol {
+ let isNormalized: symbol;
+ let configCache: symbol;
+ let schema: symbol;
+ let finalizeConfig: symbol;
+ let preprocessConfig: symbol;
+}
diff --git a/node_modules/@eslint/config-array/dist/esm/index.js b/node_modules/@eslint/config-array/dist/esm/index.js
new file mode 100644
index 00000000000..1e68f33e3d6
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/index.js
@@ -0,0 +1,1279 @@
+// @ts-self-types="./index.d.ts"
+import * as posixPath from './std__path/posix.js';
+import * as windowsPath from './std__path/windows.js';
+import minimatch from 'minimatch';
+import createDebug from 'debug';
+import { ObjectSchema } from '@eslint/object-schema';
+export { ObjectSchema } from '@eslint/object-schema';
+
+/**
+ * @fileoverview ConfigSchema
+ * @author Nicholas C. Zakas
+ */
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */
+/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * A strategy that does nothing.
+ * @type {PropertyDefinition}
+ */
+const NOOP_STRATEGY = {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate() {},
+};
+
+//------------------------------------------------------------------------------
+// Exports
+//------------------------------------------------------------------------------
+
+/**
+ * The base schema that every ConfigArray uses.
+ * @type {ObjectDefinition}
+ */
+const baseSchema = Object.freeze({
+ name: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate(value) {
+ if (typeof value !== "string") {
+ throw new TypeError("Property must be a string.");
+ }
+ },
+ },
+ files: NOOP_STRATEGY,
+ ignores: NOOP_STRATEGY,
+});
+
+/**
+ * @fileoverview ConfigSchema
+ * @author Nicholas C. Zakas
+ */
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * Asserts that a given value is an array.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array.
+ */
+function assertIsArray(value) {
+ if (!Array.isArray(value)) {
+ throw new TypeError("Expected value to be an array.");
+ }
+}
+
+/**
+ * Asserts that a given value is an array containing only strings and functions.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array of strings and functions.
+ */
+function assertIsArrayOfStringsAndFunctions(value) {
+ assertIsArray(value);
+
+ if (
+ value.some(
+ item => typeof item !== "string" && typeof item !== "function",
+ )
+ ) {
+ throw new TypeError(
+ "Expected array to only contain strings and functions.",
+ );
+ }
+}
+
+/**
+ * Asserts that a given value is a non-empty array.
+ * @param {*} value The value to check.
+ * @returns {void}
+ * @throws {TypeError} When the value is not an array or an empty array.
+ */
+function assertIsNonEmptyArray(value) {
+ if (!Array.isArray(value) || value.length === 0) {
+ throw new TypeError("Expected value to be a non-empty array.");
+ }
+}
+
+//------------------------------------------------------------------------------
+// Exports
+//------------------------------------------------------------------------------
+
+/**
+ * The schema for `files` and `ignores` that every ConfigArray uses.
+ * @type {ObjectDefinition}
+ */
+const filesAndIgnoresSchema = Object.freeze({
+ files: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate(value) {
+ // first check if it's an array
+ assertIsNonEmptyArray(value);
+
+ // then check each member
+ value.forEach(item => {
+ if (Array.isArray(item)) {
+ assertIsArrayOfStringsAndFunctions(item);
+ } else if (
+ typeof item !== "string" &&
+ typeof item !== "function"
+ ) {
+ throw new TypeError(
+ "Items must be a string, a function, or an array of strings and functions.",
+ );
+ }
+ });
+ },
+ },
+ ignores: {
+ required: false,
+ merge() {
+ return undefined;
+ },
+ validate: assertIsArrayOfStringsAndFunctions,
+ },
+});
+
+/**
+ * @fileoverview ConfigArray
+ * @author Nicholas C. Zakas
+ */
+
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+/** @typedef {import("./types.ts").ConfigObject} ConfigObject */
+/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */
+/** @typedef {import("minimatch").IMinimatch} IMinimatch */
+/** @typedef {import("@jsr/std__path")} PathImpl */
+
+/*
+ * This is a bit of a hack to make TypeScript happy with the Rollup-created
+ * CommonJS file. Rollup doesn't do object destructuring for imported files
+ * and instead imports the default via `require()`. This messes up type checking
+ * for `ObjectSchema`. To work around that, we just import the type manually
+ * and give it a different name to use in the JSDoc comments.
+ */
+/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+const Minimatch = minimatch.Minimatch;
+const debug = createDebug("@eslint/config-array");
+
+/**
+ * A cache for minimatch instances.
+ * @type {Map}
+ */
+const minimatchCache = new Map();
+
+/**
+ * A cache for negated minimatch instances.
+ * @type {Map}
+ */
+const negatedMinimatchCache = new Map();
+
+/**
+ * Options to use with minimatch.
+ * @type {Object}
+ */
+const MINIMATCH_OPTIONS = {
+ // matchBase: true,
+ dot: true,
+ allowWindowsEscape: true,
+};
+
+/**
+ * The types of config objects that are supported.
+ * @type {Set}
+ */
+const CONFIG_TYPES = new Set(["array", "function"]);
+
+/**
+ * Fields that are considered metadata and not part of the config object.
+ * @type {Set}
+ */
+const META_FIELDS = new Set(["name"]);
+
+/**
+ * A schema containing just files and ignores for early validation.
+ * @type {ObjectSchemaInstance}
+ */
+const FILES_AND_IGNORES_SCHEMA = new ObjectSchema(filesAndIgnoresSchema);
+
+// Precomputed constant objects returned by `ConfigArray.getConfigWithStatus`.
+
+const CONFIG_WITH_STATUS_EXTERNAL = Object.freeze({ status: "external" });
+const CONFIG_WITH_STATUS_IGNORED = Object.freeze({ status: "ignored" });
+const CONFIG_WITH_STATUS_UNCONFIGURED = Object.freeze({
+ status: "unconfigured",
+});
+
+// Match two leading dots followed by a slash or the end of input.
+const EXTERNAL_PATH_REGEX = /^\.\.(?:\/|$)/u;
+
+/**
+ * Wrapper error for config validation errors that adds a name to the front of the
+ * error message.
+ */
+class ConfigError extends Error {
+ /**
+ * Creates a new instance.
+ * @param {string} name The config object name causing the error.
+ * @param {number} index The index of the config object in the array.
+ * @param {Object} options The options for the error.
+ * @param {Error} [options.cause] The error that caused this error.
+ * @param {string} [options.message] The message to use for the error.
+ */
+ constructor(name, index, { cause, message }) {
+ const finalMessage = message || cause.message;
+
+ super(`Config ${name}: ${finalMessage}`, { cause });
+
+ // copy over custom properties that aren't represented
+ if (cause) {
+ for (const key of Object.keys(cause)) {
+ if (!(key in this)) {
+ this[key] = cause[key];
+ }
+ }
+ }
+
+ /**
+ * The name of the error.
+ * @type {string}
+ * @readonly
+ */
+ this.name = "ConfigError";
+
+ /**
+ * The index of the config object in the array.
+ * @type {number}
+ * @readonly
+ */
+ this.index = index;
+ }
+}
+
+/**
+ * Gets the name of a config object.
+ * @param {ConfigObject} config The config object to get the name of.
+ * @returns {string} The name of the config object.
+ */
+function getConfigName(config) {
+ if (config && typeof config.name === "string" && config.name) {
+ return `"${config.name}"`;
+ }
+
+ return "(unnamed)";
+}
+
+/**
+ * Rethrows a config error with additional information about the config object.
+ * @param {object} config The config object to get the name of.
+ * @param {number} index The index of the config object in the array.
+ * @param {Error} error The error to rethrow.
+ * @throws {ConfigError} When the error is rethrown for a config.
+ */
+function rethrowConfigError(config, index, error) {
+ const configName = getConfigName(config);
+ throw new ConfigError(configName, index, { cause: error });
+}
+
+/**
+ * Shorthand for checking if a value is a string.
+ * @param {any} value The value to check.
+ * @returns {boolean} True if a string, false if not.
+ */
+function isString(value) {
+ return typeof value === "string";
+}
+
+/**
+ * Creates a function that asserts that the config is valid
+ * during normalization. This checks that the config is not nullish
+ * and that files and ignores keys of a config object are valid as per base schema.
+ * @param {Object} config The config object to check.
+ * @param {number} index The index of the config object in the array.
+ * @returns {void}
+ * @throws {ConfigError} If the files and ignores keys of a config object are not valid.
+ */
+function assertValidBaseConfig(config, index) {
+ if (config === null) {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected null config.",
+ });
+ }
+
+ if (config === undefined) {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected undefined config.",
+ });
+ }
+
+ if (typeof config !== "object") {
+ throw new ConfigError(getConfigName(config), index, {
+ message: "Unexpected non-object config.",
+ });
+ }
+
+ const validateConfig = {};
+
+ if ("files" in config) {
+ validateConfig.files = config.files;
+ }
+
+ if ("ignores" in config) {
+ validateConfig.ignores = config.ignores;
+ }
+
+ try {
+ FILES_AND_IGNORES_SCHEMA.validate(validateConfig);
+ } catch (validationError) {
+ rethrowConfigError(config, index, validationError);
+ }
+}
+
+/**
+ * Wrapper around minimatch that caches minimatch patterns for
+ * faster matching speed over multiple file path evaluations.
+ * @param {string} filepath The file path to match.
+ * @param {string} pattern The glob pattern to match against.
+ * @param {object} options The minimatch options to use.
+ * @returns
+ */
+function doMatch(filepath, pattern, options = {}) {
+ let cache = minimatchCache;
+
+ if (options.flipNegate) {
+ cache = negatedMinimatchCache;
+ }
+
+ let matcher = cache.get(pattern);
+
+ if (!matcher) {
+ matcher = new Minimatch(
+ pattern,
+ Object.assign({}, MINIMATCH_OPTIONS, options),
+ );
+ cache.set(pattern, matcher);
+ }
+
+ return matcher.match(filepath);
+}
+
+/**
+ * Normalizes a `ConfigArray` by flattening it and executing any functions
+ * that are found inside.
+ * @param {Array} items The items in a `ConfigArray`.
+ * @param {Object} context The context object to pass into any function
+ * found.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {Promise} A flattened array containing only config objects.
+ * @throws {TypeError} When a config function returns a function.
+ */
+async function normalize(items, context, extraConfigTypes) {
+ const allowFunctions = extraConfigTypes.includes("function");
+ const allowArrays = extraConfigTypes.includes("array");
+
+ async function* flatTraverse(array) {
+ for (let item of array) {
+ if (typeof item === "function") {
+ if (!allowFunctions) {
+ throw new TypeError("Unexpected function.");
+ }
+
+ item = item(context);
+ if (item.then) {
+ item = await item;
+ }
+ }
+
+ if (Array.isArray(item)) {
+ if (!allowArrays) {
+ throw new TypeError("Unexpected array.");
+ }
+ yield* flatTraverse(item);
+ } else if (typeof item === "function") {
+ throw new TypeError(
+ "A config function can only return an object or array.",
+ );
+ } else {
+ yield item;
+ }
+ }
+ }
+
+ /*
+ * Async iterables cannot be used with the spread operator, so we need to manually
+ * create the array to return.
+ */
+ const asyncIterable = await flatTraverse(items);
+ const configs = [];
+
+ for await (const config of asyncIterable) {
+ configs.push(config);
+ }
+
+ return configs;
+}
+
+/**
+ * Normalizes a `ConfigArray` by flattening it and executing any functions
+ * that are found inside.
+ * @param {Array} items The items in a `ConfigArray`.
+ * @param {Object} context The context object to pass into any function
+ * found.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {Array} A flattened array containing only config objects.
+ * @throws {TypeError} When a config function returns a function.
+ */
+function normalizeSync(items, context, extraConfigTypes) {
+ const allowFunctions = extraConfigTypes.includes("function");
+ const allowArrays = extraConfigTypes.includes("array");
+
+ function* flatTraverse(array) {
+ for (let item of array) {
+ if (typeof item === "function") {
+ if (!allowFunctions) {
+ throw new TypeError("Unexpected function.");
+ }
+
+ item = item(context);
+ if (item.then) {
+ throw new TypeError(
+ "Async config functions are not supported.",
+ );
+ }
+ }
+
+ if (Array.isArray(item)) {
+ if (!allowArrays) {
+ throw new TypeError("Unexpected array.");
+ }
+
+ yield* flatTraverse(item);
+ } else if (typeof item === "function") {
+ throw new TypeError(
+ "A config function can only return an object or array.",
+ );
+ } else {
+ yield item;
+ }
+ }
+ }
+
+ return [...flatTraverse(items)];
+}
+
+/**
+ * Determines if a given file path should be ignored based on the given
+ * matcher.
+ * @param {Array boolean)>} ignores The ignore patterns to check.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @returns {boolean} True if the path should be ignored and false if not.
+ */
+function shouldIgnorePath(ignores, filePath, relativeFilePath) {
+ return ignores.reduce((ignored, matcher) => {
+ if (!ignored) {
+ if (typeof matcher === "function") {
+ return matcher(filePath);
+ }
+
+ // don't check negated patterns because we're not ignored yet
+ if (!matcher.startsWith("!")) {
+ return doMatch(relativeFilePath, matcher);
+ }
+
+ // otherwise we're still not ignored
+ return false;
+ }
+
+ // only need to check negated patterns because we're ignored
+ if (typeof matcher === "string" && matcher.startsWith("!")) {
+ return !doMatch(relativeFilePath, matcher, {
+ flipNegate: true,
+ });
+ }
+
+ return ignored;
+ }, false);
+}
+
+/**
+ * Determines if a given file path is matched by a config based on
+ * `ignores` only.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @param {Object} config The config object to check.
+ * @returns {boolean} True if the file path is matched by the config,
+ * false if not.
+ */
+function pathMatchesIgnores(filePath, relativeFilePath, config) {
+ return (
+ Object.keys(config).filter(key => !META_FIELDS.has(key)).length > 1 &&
+ !shouldIgnorePath(config.ignores, filePath, relativeFilePath)
+ );
+}
+
+/**
+ * Determines if a given file path is matched by a config. If the config
+ * has no `files` field, then it matches; otherwise, if a `files` field
+ * is present then we match the globs in `files` and exclude any globs in
+ * `ignores`.
+ * @param {string} filePath The unprocessed file path to check.
+ * @param {string} relativeFilePath The path of the file to check relative to the base path,
+ * using forward slash (`"/"`) as a separator.
+ * @param {Object} config The config object to check.
+ * @returns {boolean} True if the file path is matched by the config,
+ * false if not.
+ */
+function pathMatches(filePath, relativeFilePath, config) {
+ // match both strings and functions
+ function match(pattern) {
+ if (isString(pattern)) {
+ return doMatch(relativeFilePath, pattern);
+ }
+
+ if (typeof pattern === "function") {
+ return pattern(filePath);
+ }
+
+ throw new TypeError(`Unexpected matcher type ${pattern}.`);
+ }
+
+ // check for all matches to config.files
+ let filePathMatchesPattern = config.files.some(pattern => {
+ if (Array.isArray(pattern)) {
+ return pattern.every(match);
+ }
+
+ return match(pattern);
+ });
+
+ /*
+ * If the file path matches the config.files patterns, then check to see
+ * if there are any files to ignore.
+ */
+ if (filePathMatchesPattern && config.ignores) {
+ filePathMatchesPattern = !shouldIgnorePath(
+ config.ignores,
+ filePath,
+ relativeFilePath,
+ );
+ }
+
+ return filePathMatchesPattern;
+}
+
+/**
+ * Ensures that a ConfigArray has been normalized.
+ * @param {ConfigArray} configArray The ConfigArray to check.
+ * @returns {void}
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+function assertNormalized(configArray) {
+ // TODO: Throw more verbose error
+ if (!configArray.isNormalized()) {
+ throw new Error(
+ "ConfigArray must be normalized to perform this operation.",
+ );
+ }
+}
+
+/**
+ * Ensures that config types are valid.
+ * @param {Array} extraConfigTypes The config types to check.
+ * @returns {void}
+ * @throws {Error} When the config types array is invalid.
+ */
+function assertExtraConfigTypes(extraConfigTypes) {
+ if (extraConfigTypes.length > 2) {
+ throw new TypeError(
+ "configTypes must be an array with at most two items.",
+ );
+ }
+
+ for (const configType of extraConfigTypes) {
+ if (!CONFIG_TYPES.has(configType)) {
+ throw new TypeError(
+ `Unexpected config type "${configType}" found. Expected one of: "object", "array", "function".`,
+ );
+ }
+ }
+}
+
+/**
+ * Returns path-handling implementations for Unix or Windows, depending on a given absolute path.
+ * @param {string} fileOrDirPath The absolute path to check.
+ * @returns {PathImpl} Path-handling implementations for the specified path.
+ * @throws An error is thrown if the specified argument is not an absolute path.
+ */
+function getPathImpl(fileOrDirPath) {
+ // Posix absolute paths always start with a slash.
+ if (fileOrDirPath.startsWith("/")) {
+ return posixPath;
+ }
+
+ // Windows absolute paths start with a letter followed by a colon and at least one backslash,
+ // or with two backslashes in the case of UNC paths.
+ // Forward slashed are automatically normalized to backslashes.
+ if (/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(fileOrDirPath)) {
+ return windowsPath;
+ }
+
+ throw new Error(
+ `Expected an absolute path but received "${fileOrDirPath}"`,
+ );
+}
+
+/**
+ * Converts a given path to a relative path with all separator characters replaced by forward slashes (`"/"`).
+ * @param {string} fileOrDirPath The unprocessed path to convert.
+ * @param {string} namespacedBasePath The namespaced base path of the directory to which the calculated path shall be relative.
+ * @param {PathImpl} path Path-handling implementations.
+ * @returns {string} A relative path with all separator characters replaced by forward slashes.
+ */
+function toRelativePath(fileOrDirPath, namespacedBasePath, path) {
+ const fullPath = path.resolve(namespacedBasePath, fileOrDirPath);
+ const namespacedFullPath = path.toNamespacedPath(fullPath);
+ const relativePath = path.relative(namespacedBasePath, namespacedFullPath);
+ return relativePath.replaceAll(path.SEPARATOR, "/");
+}
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+const ConfigArraySymbol = {
+ isNormalized: Symbol("isNormalized"),
+ configCache: Symbol("configCache"),
+ schema: Symbol("schema"),
+ finalizeConfig: Symbol("finalizeConfig"),
+ preprocessConfig: Symbol("preprocessConfig"),
+};
+
+// used to store calculate data for faster lookup
+const dataCache = new WeakMap();
+
+/**
+ * Represents an array of config objects and provides method for working with
+ * those config objects.
+ */
+class ConfigArray extends Array {
+ /**
+ * The namespaced path of the config file directory.
+ * @type {string}
+ */
+ #namespacedBasePath;
+
+ /**
+ * Path-handling implementations.
+ * @type {PathImpl}
+ */
+ #path;
+
+ /**
+ * Creates a new instance of ConfigArray.
+ * @param {Iterable|Function|Object} configs An iterable yielding config
+ * objects, or a config function, or a config object.
+ * @param {Object} options The options for the ConfigArray.
+ * @param {string} [options.basePath="/"] The absolute path of the config file directory.
+ * Defaults to `"/"`.
+ * @param {boolean} [options.normalized=false] Flag indicating if the
+ * configs have already been normalized.
+ * @param {Object} [options.schema] The additional schema
+ * definitions to use for the ConfigArray schema.
+ * @param {Array} [options.extraConfigTypes] List of config types supported.
+ */
+ constructor(
+ configs,
+ {
+ basePath = "/",
+ normalized = false,
+ schema: customSchema,
+ extraConfigTypes = [],
+ } = {},
+ ) {
+ super();
+
+ /**
+ * Tracks if the array has been normalized.
+ * @property isNormalized
+ * @type {boolean}
+ * @private
+ */
+ this[ConfigArraySymbol.isNormalized] = normalized;
+
+ /**
+ * The schema used for validating and merging configs.
+ * @property schema
+ * @type {ObjectSchemaInstance}
+ * @private
+ */
+ this[ConfigArraySymbol.schema] = new ObjectSchema(
+ Object.assign({}, customSchema, baseSchema),
+ );
+
+ if (!isString(basePath) || !basePath) {
+ throw new TypeError("basePath must be a non-empty string");
+ }
+
+ /**
+ * The path of the config file that this array was loaded from.
+ * This is used to calculate filename matches.
+ * @property basePath
+ * @type {string}
+ */
+ this.basePath = basePath;
+
+ assertExtraConfigTypes(extraConfigTypes);
+
+ /**
+ * The supported config types.
+ * @type {Array}
+ */
+ this.extraConfigTypes = [...extraConfigTypes];
+ Object.freeze(this.extraConfigTypes);
+
+ /**
+ * A cache to store calculated configs for faster repeat lookup.
+ * @property configCache
+ * @type {Map}
+ * @private
+ */
+ this[ConfigArraySymbol.configCache] = new Map();
+
+ // init cache
+ dataCache.set(this, {
+ explicitMatches: new Map(),
+ directoryMatches: new Map(),
+ files: undefined,
+ ignores: undefined,
+ });
+
+ // load the configs into this array
+ if (Array.isArray(configs)) {
+ this.push(...configs);
+ } else {
+ this.push(configs);
+ }
+
+ // select path-handling implementations depending on the base path
+ this.#path = getPathImpl(basePath);
+
+ // On Windows, `path.relative()` returns an absolute path when given two paths on different drives.
+ // The namespaced base path is useful to make sure that calculated relative paths are always relative.
+ // On Unix, it is identical to the base path.
+ this.#namespacedBasePath = this.#path.toNamespacedPath(basePath);
+ }
+
+ /**
+ * Prevent normal array methods from creating a new `ConfigArray` instance.
+ * This is to ensure that methods such as `slice()` won't try to create a
+ * new instance of `ConfigArray` behind the scenes as doing so may throw
+ * an error due to the different constructor signature.
+ * @type {ArrayConstructor} The `Array` constructor.
+ */
+ static get [Symbol.species]() {
+ return Array;
+ }
+
+ /**
+ * Returns the `files` globs from every config object in the array.
+ * This can be used to determine which files will be matched by a
+ * config array or to use as a glob pattern when no patterns are provided
+ * for a command line interface.
+ * @returns {Array} An array of matchers.
+ */
+ get files() {
+ assertNormalized(this);
+
+ // if this data has been cached, retrieve it
+ const cache = dataCache.get(this);
+
+ if (cache.files) {
+ return cache.files;
+ }
+
+ // otherwise calculate it
+
+ const result = [];
+
+ for (const config of this) {
+ if (config.files) {
+ config.files.forEach(filePattern => {
+ result.push(filePattern);
+ });
+ }
+ }
+
+ // store result
+ cache.files = result;
+ dataCache.set(this, cache);
+
+ return result;
+ }
+
+ /**
+ * Returns ignore matchers that should always be ignored regardless of
+ * the matching `files` fields in any configs. This is necessary to mimic
+ * the behavior of things like .gitignore and .eslintignore, allowing a
+ * globbing operation to be faster.
+ * @returns {string[]} An array of string patterns and functions to be ignored.
+ */
+ get ignores() {
+ assertNormalized(this);
+
+ // if this data has been cached, retrieve it
+ const cache = dataCache.get(this);
+
+ if (cache.ignores) {
+ return cache.ignores;
+ }
+
+ // otherwise calculate it
+
+ const result = [];
+
+ for (const config of this) {
+ /*
+ * We only count ignores if there are no other keys in the object.
+ * In this case, it acts list a globally ignored pattern. If there
+ * are additional keys, then ignores act like exclusions.
+ */
+ if (
+ config.ignores &&
+ Object.keys(config).filter(key => !META_FIELDS.has(key))
+ .length === 1
+ ) {
+ result.push(...config.ignores);
+ }
+ }
+
+ // store result
+ cache.ignores = result;
+ dataCache.set(this, cache);
+
+ return result;
+ }
+
+ /**
+ * Indicates if the config array has been normalized.
+ * @returns {boolean} True if the config array is normalized, false if not.
+ */
+ isNormalized() {
+ return this[ConfigArraySymbol.isNormalized];
+ }
+
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {Promise} The current ConfigArray instance.
+ */
+ async normalize(context = {}) {
+ if (!this.isNormalized()) {
+ const normalizedConfigs = await normalize(
+ this,
+ context,
+ this.extraConfigTypes,
+ );
+ this.length = 0;
+ this.push(
+ ...normalizedConfigs.map(
+ this[ConfigArraySymbol.preprocessConfig].bind(this),
+ ),
+ );
+ this.forEach(assertValidBaseConfig);
+ this[ConfigArraySymbol.isNormalized] = true;
+
+ // prevent further changes
+ Object.freeze(this);
+ }
+
+ return this;
+ }
+
+ /**
+ * Normalizes a config array by flattening embedded arrays and executing
+ * config functions.
+ * @param {Object} [context] The context object for config functions.
+ * @returns {ConfigArray} The current ConfigArray instance.
+ */
+ normalizeSync(context = {}) {
+ if (!this.isNormalized()) {
+ const normalizedConfigs = normalizeSync(
+ this,
+ context,
+ this.extraConfigTypes,
+ );
+ this.length = 0;
+ this.push(
+ ...normalizedConfigs.map(
+ this[ConfigArraySymbol.preprocessConfig].bind(this),
+ ),
+ );
+ this.forEach(assertValidBaseConfig);
+ this[ConfigArraySymbol.isNormalized] = true;
+
+ // prevent further changes
+ Object.freeze(this);
+ }
+
+ return this;
+ }
+
+ /* eslint-disable class-methods-use-this -- Desired as instance methods */
+
+ /**
+ * Finalizes the state of a config before being cached and returned by
+ * `getConfig()`. Does nothing by default but is provided to be
+ * overridden by subclasses as necessary.
+ * @param {Object} config The config to finalize.
+ * @returns {Object} The finalized config.
+ */
+ [ConfigArraySymbol.finalizeConfig](config) {
+ return config;
+ }
+
+ /**
+ * Preprocesses a config during the normalization process. This is the
+ * method to override if you want to convert an array item before it is
+ * validated for the first time. For example, if you want to replace a
+ * string with an object, this is the method to override.
+ * @param {Object} config The config to preprocess.
+ * @returns {Object} The config to use in place of the argument.
+ */
+ [ConfigArraySymbol.preprocessConfig](config) {
+ return config;
+ }
+
+ /* eslint-enable class-methods-use-this -- Desired as instance methods */
+
+ /**
+ * Returns the config object for a given file path and a status that can be used to determine why a file has no config.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {{ config?: Object, status: "ignored"|"external"|"unconfigured"|"matched" }}
+ * An object with an optional property `config` and property `status`.
+ * `config` is the config object for the specified file as returned by {@linkcode ConfigArray.getConfig},
+ * `status` a is one of the constants returned by {@linkcode ConfigArray.getConfigStatus}.
+ */
+ getConfigWithStatus(filePath) {
+ assertNormalized(this);
+
+ const cache = this[ConfigArraySymbol.configCache];
+
+ // first check the cache for a filename match to avoid duplicate work
+ if (cache.has(filePath)) {
+ return cache.get(filePath);
+ }
+
+ // check to see if the file is outside the base path
+
+ const relativeFilePath = toRelativePath(
+ filePath,
+ this.#namespacedBasePath,
+ this.#path,
+ );
+
+ if (EXTERNAL_PATH_REGEX.test(relativeFilePath)) {
+ debug(`No config for file ${filePath} outside of base path`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_EXTERNAL);
+ return CONFIG_WITH_STATUS_EXTERNAL;
+ }
+
+ // next check to see if the file should be ignored
+
+ // check if this should be ignored due to its directory
+ if (this.isDirectoryIgnored(this.#path.dirname(filePath))) {
+ debug(`Ignoring ${filePath} based on directory pattern`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_IGNORED);
+ return CONFIG_WITH_STATUS_IGNORED;
+ }
+
+ if (shouldIgnorePath(this.ignores, filePath, relativeFilePath)) {
+ debug(`Ignoring ${filePath} based on file pattern`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_IGNORED);
+ return CONFIG_WITH_STATUS_IGNORED;
+ }
+
+ // filePath isn't automatically ignored, so try to construct config
+
+ const matchingConfigIndices = [];
+ let matchFound = false;
+ const universalPattern = /^\*$|\/\*{1,2}$/u;
+
+ this.forEach((config, index) => {
+ if (!config.files) {
+ if (!config.ignores) {
+ debug(`Universal config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ if (pathMatchesIgnores(filePath, relativeFilePath, config)) {
+ debug(
+ `Matching config found for ${filePath} (based on ignores: ${config.ignores})`,
+ );
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ debug(
+ `Skipped config found for ${filePath} (based on ignores: ${config.ignores})`,
+ );
+ return;
+ }
+
+ /*
+ * If a config has a files pattern * or patterns ending in /** or /*,
+ * and the filePath only matches those patterns, then the config is only
+ * applied if there is another config where the filePath matches
+ * a file with a specific extensions such as *.js.
+ */
+
+ const universalFiles = config.files.filter(pattern =>
+ universalPattern.test(pattern),
+ );
+
+ // universal patterns were found so we need to check the config twice
+ if (universalFiles.length) {
+ debug("Universal files patterns found. Checking carefully.");
+
+ const nonUniversalFiles = config.files.filter(
+ pattern => !universalPattern.test(pattern),
+ );
+
+ // check that the config matches without the non-universal files first
+ if (
+ nonUniversalFiles.length &&
+ pathMatches(filePath, relativeFilePath, {
+ files: nonUniversalFiles,
+ ignores: config.ignores,
+ })
+ ) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ matchFound = true;
+ return;
+ }
+
+ // if there wasn't a match then check if it matches with universal files
+ if (
+ universalFiles.length &&
+ pathMatches(filePath, relativeFilePath, {
+ files: universalFiles,
+ ignores: config.ignores,
+ })
+ ) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ return;
+ }
+
+ // if we make here, then there was no match
+ return;
+ }
+
+ // the normal case
+ if (pathMatches(filePath, relativeFilePath, config)) {
+ debug(`Matching config found for ${filePath}`);
+ matchingConfigIndices.push(index);
+ matchFound = true;
+ }
+ });
+
+ // if matching both files and ignores, there will be no config to create
+ if (!matchFound) {
+ debug(`No matching configs found for ${filePath}`);
+
+ // cache and return result
+ cache.set(filePath, CONFIG_WITH_STATUS_UNCONFIGURED);
+ return CONFIG_WITH_STATUS_UNCONFIGURED;
+ }
+
+ // check to see if there is a config cached by indices
+ const indicesKey = matchingConfigIndices.toString();
+ let configWithStatus = cache.get(indicesKey);
+
+ if (configWithStatus) {
+ // also store for filename for faster lookup next time
+ cache.set(filePath, configWithStatus);
+
+ return configWithStatus;
+ }
+
+ // otherwise construct the config
+
+ // eslint-disable-next-line array-callback-return, consistent-return -- rethrowConfigError always throws an error
+ let finalConfig = matchingConfigIndices.reduce((result, index) => {
+ try {
+ return this[ConfigArraySymbol.schema].merge(
+ result,
+ this[index],
+ );
+ } catch (validationError) {
+ rethrowConfigError(this[index], index, validationError);
+ }
+ }, {});
+
+ finalConfig = this[ConfigArraySymbol.finalizeConfig](finalConfig);
+
+ configWithStatus = Object.freeze({
+ config: finalConfig,
+ status: "matched",
+ });
+ cache.set(filePath, configWithStatus);
+ cache.set(indicesKey, configWithStatus);
+
+ return configWithStatus;
+ }
+
+ /**
+ * Returns the config object for a given file path.
+ * @param {string} filePath The path of a file to get a config for.
+ * @returns {Object|undefined} The config object for this file or `undefined`.
+ */
+ getConfig(filePath) {
+ return this.getConfigWithStatus(filePath).config;
+ }
+
+ /**
+ * Determines whether a file has a config or why it doesn't.
+ * @param {string} filePath The path of the file to check.
+ * @returns {"ignored"|"external"|"unconfigured"|"matched"} One of the following values:
+ * * `"ignored"`: the file is ignored
+ * * `"external"`: the file is outside the base path
+ * * `"unconfigured"`: the file is not matched by any config
+ * * `"matched"`: the file has a matching config
+ */
+ getConfigStatus(filePath) {
+ return this.getConfigWithStatus(filePath).status;
+ }
+
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ * @deprecated Use `isFileIgnored` instead.
+ */
+ isIgnored(filePath) {
+ return this.isFileIgnored(filePath);
+ }
+
+ /**
+ * Determines if the given filepath is ignored based on the configs.
+ * @param {string} filePath The path of a file to check.
+ * @returns {boolean} True if the path is ignored, false if not.
+ */
+ isFileIgnored(filePath) {
+ return this.getConfigStatus(filePath) === "ignored";
+ }
+
+ /**
+ * Determines if the given directory is ignored based on the configs.
+ * This checks only default `ignores` that don't have `files` in the
+ * same config. A pattern such as `/foo` be considered to ignore the directory
+ * while a pattern such as `/foo/**` is not considered to ignore the
+ * directory because it is matching files.
+ * @param {string} directoryPath The path of a directory to check.
+ * @returns {boolean} True if the directory is ignored, false if not. Will
+ * return true for any directory that is not inside of `basePath`.
+ * @throws {Error} When the `ConfigArray` is not normalized.
+ */
+ isDirectoryIgnored(directoryPath) {
+ assertNormalized(this);
+
+ const relativeDirectoryPath = toRelativePath(
+ directoryPath,
+ this.#namespacedBasePath,
+ this.#path,
+ );
+
+ // basePath directory can never be ignored
+ if (relativeDirectoryPath === "") {
+ return false;
+ }
+
+ if (EXTERNAL_PATH_REGEX.test(relativeDirectoryPath)) {
+ return true;
+ }
+
+ // first check the cache
+ const cache = dataCache.get(this).directoryMatches;
+
+ if (cache.has(relativeDirectoryPath)) {
+ return cache.get(relativeDirectoryPath);
+ }
+
+ const directoryParts = relativeDirectoryPath.split("/");
+ let relativeDirectoryToCheck = "";
+ let result;
+
+ /*
+ * In order to get the correct gitignore-style ignores, where an
+ * ignored parent directory cannot have any descendants unignored,
+ * we need to check every directory starting at the parent all
+ * the way down to the actual requested directory.
+ *
+ * We aggressively cache all of this info to make sure we don't
+ * have to recalculate everything for every call.
+ */
+ do {
+ relativeDirectoryToCheck += `${directoryParts.shift()}/`;
+
+ result = shouldIgnorePath(
+ this.ignores,
+ this.#path.join(this.basePath, relativeDirectoryToCheck),
+ relativeDirectoryToCheck,
+ );
+
+ cache.set(relativeDirectoryToCheck, result);
+ } while (!result && directoryParts.length);
+
+ // also cache the result for the requested path
+ cache.set(relativeDirectoryPath, result);
+
+ return result;
+ }
+}
+
+export { ConfigArray, ConfigArraySymbol };
diff --git a/node_modules/@eslint/config-array/dist/esm/std__path/posix.js b/node_modules/@eslint/config-array/dist/esm/std__path/posix.js
new file mode 100644
index 00000000000..f966096976b
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/std__path/posix.js
@@ -0,0 +1,1301 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+function assertPath(path) {
+ if (typeof path !== "string") {
+ throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function stripSuffix(name, suffix) {
+ if (suffix.length >= name.length) {
+ return name;
+ }
+ const lenDiff = name.length - suffix.length;
+ for(let i = suffix.length - 1; i >= 0; --i){
+ if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
+ return name;
+ }
+ }
+ return name.slice(0, -suffix.length);
+}
+function lastPathSegment(path, isSep, start = 0) {
+ let matchedNonSeparator = false;
+ let end = path.length;
+ for(let i = path.length - 1; i >= start; --i){
+ if (isSep(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ start = i + 1;
+ break;
+ }
+ } else if (!matchedNonSeparator) {
+ matchedNonSeparator = true;
+ end = i + 1;
+ }
+ }
+ return path.slice(start, end);
+}
+function assertArgs$1(path, suffix) {
+ assertPath(path);
+ if (path.length === 0) return path;
+ if (typeof suffix !== "string") {
+ throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function stripTrailingSeparators(segment, isSep) {
+ if (segment.length <= 1) {
+ return segment;
+ }
+ let end = segment.length;
+ for(let i = segment.length - 1; i > 0; i--){
+ if (isSep(segment.charCodeAt(i))) {
+ end = i;
+ } else {
+ break;
+ }
+ }
+ return segment.slice(0, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Alphabet chars.
+// Non-alphabetic chars.
+const CHAR_DOT = 46; /* . */
+const CHAR_FORWARD_SLASH = 47; /* / */
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function isPosixPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the last portion of a `path`.
+ * Trailing directory separators are ignored, and optional suffix is removed.
+ *
+ * @example Usage
+ * ```ts
+ * import { basename } from "@std/path/posix/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("/home/user/Documents/"), "Documents");
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
+ * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function doesn't automatically strip hash and query parts from
+ * URLs. If your URL contains a hash or query, remove them before passing the
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
+ * and setting the `hash` and `search` properties to empty strings.
+ *
+ * ```ts
+ * import { basename } from "@std/path/posix/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
+ * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `basename` from `@std/path/posix/unstable-basename`.
+ *
+ * @param path The path to extract the name from.
+ * @param suffix The suffix to remove from extracted name.
+ * @returns The extracted name.
+ */ function basename(path, suffix = "") {
+ assertArgs$1(path, suffix);
+ const lastSegment = lastPathSegment(path, isPosixPathSeparator);
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * The character used to separate entries in the PATH environment variable.
+ */ const DELIMITER = ":";
+/**
+ * The character used to separate components of a file path.
+ */ const SEPARATOR = "/";
+/**
+ * A regular expression that matches one or more path separators.
+ */ const SEPARATOR_PATTERN = /\/+/;
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$3(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the directory path of a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { dirname } from "@std/path/posix/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(dirname("/home/user/Documents/"), "/home/user");
+ * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * ```ts
+ * import { dirname } from "@std/path/posix/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
+ *
+ * @param path The path to get the directory from.
+ * @returns The directory path.
+ */ function dirname(path) {
+ assertArg$3(path);
+ let end = -1;
+ let matchedNonSeparator = false;
+ for(let i = path.length - 1; i >= 1; --i){
+ if (isPosixPathSeparator(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ end = i;
+ break;
+ }
+ } else {
+ matchedNonSeparator = true;
+ }
+ }
+ // No matches. Fallback based on provided path:
+ //
+ // - leading slashes paths
+ // "/foo" => "/"
+ // "///foo" => "/"
+ // - no slash path
+ // "foo" => "."
+ if (end === -1) {
+ return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
+ }
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the extension of the `path` with leading period.
+ *
+ * @example Usage
+ * ```ts
+ * import { extname } from "@std/path/posix/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
+ * assertEquals(extname("/home/user/Documents/"), "");
+ * assertEquals(extname("/home/user/Documents/image.png"), ".png");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function doesn't automatically strip hash and query parts from
+ * URLs. If your URL contains a hash or query, remove them before passing the
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
+ * and setting the `hash` and `search` properties to empty strings.
+ *
+ * ```ts
+ * import { extname } from "@std/path/posix/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
+ * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
+ * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `extname` from `@std/path/posix/unstable-extname`.
+ *
+ * @param path The path to get the extension from.
+ * @returns The extension (ex. for `file.ts` returns `.ts`).
+ */ function extname(path) {
+ assertPath(path);
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ for(let i = path.length - 1; i >= 0; --i){
+ const code = path.charCodeAt(i);
+ if (isPosixPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ return "";
+ }
+ return path.slice(startDot, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function _format(sep, pathObject) {
+ const dir = pathObject.dir || pathObject.root;
+ const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
+ if (!dir) return base;
+ if (base === sep) return dir;
+ if (dir === pathObject.root) return dir + base;
+ return dir + sep + base;
+}
+function assertArg$2(pathObject) {
+ if (pathObject === null || typeof pathObject !== "object") {
+ throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Generate a path from `ParsedPath` object.
+ *
+ * @example Usage
+ * ```ts
+ * import { format } from "@std/path/posix/format";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = format({
+ * root: "/",
+ * dir: "/path/dir",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * assertEquals(path, "/path/dir/file.txt");
+ * ```
+ *
+ * @param pathObject The path object to format.
+ * @returns The formatted path.
+ */ function format(pathObject) {
+ assertArg$2(pathObject);
+ return _format("/", pathObject);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$1(url) {
+ url = url instanceof URL ? url : new URL(url);
+ if (url.protocol !== "file:") {
+ throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a file URL to a path string.
+ *
+ * @example Usage
+ * ```ts
+ * import { fromFileUrl } from "@std/path/posix/from-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
+ * ```
+ *
+ * @param url The file URL to convert.
+ * @returns The path string.
+ */ function fromFileUrl(url) {
+ url = assertArg$1(url);
+ return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Verifies whether provided path is absolute.
+ *
+ * @example Usage
+ * ```ts
+ * import { isAbsolute } from "@std/path/posix/is-absolute";
+ * import { assert, assertFalse } from "@std/assert";
+ *
+ * assert(isAbsolute("/home/user/Documents/"));
+ * assertFalse(isAbsolute("home/user/Documents/"));
+ * ```
+ *
+ * @param path The path to verify.
+ * @returns Whether the path is absolute.
+ */ function isAbsolute(path) {
+ assertPath(path);
+ return path.length > 0 && isPosixPathSeparator(path.charCodeAt(0));
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Resolves . and .. elements in a path with directory names
+function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
+ let res = "";
+ let lastSegmentLength = 0;
+ let lastSlash = -1;
+ let dots = 0;
+ let code;
+ for(let i = 0; i <= path.length; ++i){
+ if (i < path.length) code = path.charCodeAt(i);
+ else if (isPathSeparator(code)) break;
+ else code = CHAR_FORWARD_SLASH;
+ if (isPathSeparator(code)) {
+ if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
+ if (res.length > 2) {
+ const lastSlashIndex = res.lastIndexOf(separator);
+ if (lastSlashIndex === -1) {
+ res = "";
+ lastSegmentLength = 0;
+ } else {
+ res = res.slice(0, lastSlashIndex);
+ lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
+ }
+ lastSlash = i;
+ dots = 0;
+ continue;
+ } else if (res.length === 2 || res.length === 1) {
+ res = "";
+ lastSegmentLength = 0;
+ lastSlash = i;
+ dots = 0;
+ continue;
+ }
+ }
+ if (allowAboveRoot) {
+ if (res.length > 0) res += `${separator}..`;
+ else res = "..";
+ lastSegmentLength = 2;
+ }
+ } else {
+ if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
+ else res = path.slice(lastSlash + 1, i);
+ lastSegmentLength = i - lastSlash - 1;
+ }
+ lastSlash = i;
+ dots = 0;
+ } else if (code === CHAR_DOT && dots !== -1) {
+ ++dots;
+ } else {
+ dots = -1;
+ }
+ }
+ return res;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalize } from "@std/path/posix/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = normalize("/foo/bar//baz/asdf/quux/..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @example Working with URLs
+ *
+ * Note: This function will remove the double slashes from a URL's scheme.
+ * Hence, do not pass a full URL to this function. Instead, pass the pathname of
+ * the URL.
+ *
+ * ```ts
+ * import { normalize } from "@std/path/posix/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const url = new URL("https://deno.land");
+ * url.pathname = normalize("//std//assert//.//mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/assert/mod.ts");
+ *
+ * url.pathname = normalize("std/assert/../async/retry.ts");
+ * assertEquals(url.href, "https://deno.land/std/async/retry.ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
+ *
+ * @param path The path to normalize.
+ * @returns The normalized path.
+ */ function normalize(path) {
+ assertArg(path);
+ const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
+ // Normalize the path
+ path = normalizeString(path, !isAbsolute, "/", isPosixPathSeparator);
+ if (path.length === 0 && !isAbsolute) path = ".";
+ if (path.length > 0 && trailingSeparator) path += "/";
+ if (isAbsolute) return `/${path}`;
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
+ *
+ * @example Usage
+ * ```ts
+ * import { join } from "@std/path/posix/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = join("/foo", "bar", "baz/asdf", "quux", "..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @example Working with URLs
+ * ```ts
+ * import { join } from "@std/path/posix/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const url = new URL("https://deno.land");
+ * url.pathname = join("std", "path", "mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
+ *
+ * url.pathname = join("//std", "path/", "/mod.ts");
+ * assertEquals(url.href, "https://deno.land/std/path/mod.ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `join` from `@std/path/posix/unstable-join`.
+ *
+ * @param paths The paths to join.
+ * @returns The joined path.
+ */ function join(...paths) {
+ if (paths.length === 0) return ".";
+ paths.forEach((path)=>assertPath(path));
+ const joined = paths.filter((path)=>path.length > 0).join("/");
+ return joined === "" ? "." : normalize(joined);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return a `ParsedPath` object of the `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { parse } from "@std/path/posix/parse";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = parse("/home/user/file.txt");
+ * assertEquals(path, {
+ * root: "/",
+ * dir: "/home/user",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * ```
+ *
+ * @param path The path to parse.
+ * @returns The parsed path object.
+ */ function parse(path) {
+ assertPath(path);
+ const ret = {
+ root: "",
+ dir: "",
+ base: "",
+ ext: "",
+ name: ""
+ };
+ if (path.length === 0) return ret;
+ const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ let start;
+ if (isAbsolute) {
+ ret.root = "/";
+ start = 1;
+ } else {
+ start = 0;
+ }
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ let i = path.length - 1;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Get non-dir info
+ for(; i >= start; --i){
+ const code = path.charCodeAt(i);
+ if (isPosixPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ if (end !== -1) {
+ if (startPart === 0 && isAbsolute) {
+ ret.base = ret.name = path.slice(1, end);
+ } else {
+ ret.base = ret.name = path.slice(startPart, end);
+ }
+ }
+ // Fallback to '/' in case there is no basename
+ ret.base = ret.base || "/";
+ } else {
+ if (startPart === 0 && isAbsolute) {
+ ret.name = path.slice(1, startDot);
+ ret.base = path.slice(1, end);
+ } else {
+ ret.name = path.slice(startPart, startDot);
+ ret.base = path.slice(startPart, end);
+ }
+ ret.ext = path.slice(startDot, end);
+ }
+ if (startPart > 0) {
+ ret.dir = stripTrailingSeparators(path.slice(0, startPart - 1), isPosixPathSeparator);
+ } else if (isAbsolute) ret.dir = "/";
+ return ret;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path segments into a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { resolve } from "@std/path/posix/resolve";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = resolve("/foo", "bar", "baz/asdf", "quux", "..");
+ * assertEquals(path, "/foo/bar/baz/asdf");
+ * ```
+ *
+ * @param pathSegments The path segments to resolve.
+ * @returns The resolved path.
+ */ function resolve(...pathSegments) {
+ let resolvedPath = "";
+ let resolvedAbsolute = false;
+ for(let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--){
+ let path;
+ if (i >= 0) path = pathSegments[i];
+ else {
+ // deno-lint-ignore no-explicit-any
+ const { Deno } = globalThis;
+ if (typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a relative path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ }
+ assertPath(path);
+ // Skip empty entries
+ if (path.length === 0) {
+ continue;
+ }
+ resolvedPath = `${path}/${resolvedPath}`;
+ resolvedAbsolute = isPosixPathSeparator(path.charCodeAt(0));
+ }
+ // At this point the path should be resolved to a full absolute path, but
+ // handle relative paths to be safe (might happen when Deno.cwd() fails)
+ // Normalize the path
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, "/", isPosixPathSeparator);
+ if (resolvedAbsolute) {
+ if (resolvedPath.length > 0) return `/${resolvedPath}`;
+ else return "/";
+ } else if (resolvedPath.length > 0) return resolvedPath;
+ else return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArgs(from, to) {
+ assertPath(from);
+ assertPath(to);
+ if (from === to) return "";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the relative path from `from` to `to` based on current working directory.
+ *
+ * If `from` and `to` are the same, return an empty string.
+ *
+ * @example Usage
+ * ```ts
+ * import { relative } from "@std/path/posix/relative";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = relative("/data/orandea/test/aaa", "/data/orandea/impl/bbb");
+ * assertEquals(path, "../../impl/bbb");
+ * ```
+ *
+ * @param from The path to start from.
+ * @param to The path to reach.
+ * @returns The relative path.
+ */ function relative(from, to) {
+ assertArgs(from, to);
+ from = resolve(from);
+ to = resolve(to);
+ if (from === to) return "";
+ // Trim any leading backslashes
+ let fromStart = 1;
+ const fromEnd = from.length;
+ for(; fromStart < fromEnd; ++fromStart){
+ if (!isPosixPathSeparator(from.charCodeAt(fromStart))) break;
+ }
+ const fromLen = fromEnd - fromStart;
+ // Trim any leading backslashes
+ let toStart = 1;
+ const toEnd = to.length;
+ for(; toStart < toEnd; ++toStart){
+ if (!isPosixPathSeparator(to.charCodeAt(toStart))) break;
+ }
+ const toLen = toEnd - toStart;
+ // Compare paths to find the longest common path from root
+ const length = fromLen < toLen ? fromLen : toLen;
+ let lastCommonSep = -1;
+ let i = 0;
+ for(; i <= length; ++i){
+ if (i === length) {
+ if (toLen > length) {
+ if (isPosixPathSeparator(to.charCodeAt(toStart + i))) {
+ // We get here if `from` is the exact base path for `to`.
+ // For example: from='/foo/bar'; to='/foo/bar/baz'
+ return to.slice(toStart + i + 1);
+ } else if (i === 0) {
+ // We get here if `from` is the root
+ // For example: from='/'; to='/foo'
+ return to.slice(toStart + i);
+ }
+ } else if (fromLen > length) {
+ if (isPosixPathSeparator(from.charCodeAt(fromStart + i))) {
+ // We get here if `to` is the exact base path for `from`.
+ // For example: from='/foo/bar/baz'; to='/foo/bar'
+ lastCommonSep = i;
+ } else if (i === 0) {
+ // We get here if `to` is the root.
+ // For example: from='/foo'; to='/'
+ lastCommonSep = 0;
+ }
+ }
+ break;
+ }
+ const fromCode = from.charCodeAt(fromStart + i);
+ const toCode = to.charCodeAt(toStart + i);
+ if (fromCode !== toCode) break;
+ else if (isPosixPathSeparator(fromCode)) lastCommonSep = i;
+ }
+ let out = "";
+ // Generate the relative path based on the path difference between `to`
+ // and `from`
+ for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
+ if (i === fromEnd || isPosixPathSeparator(from.charCodeAt(i))) {
+ if (out.length === 0) out += "..";
+ else out += "/..";
+ }
+ }
+ // Lastly, append the rest of the destination (`to`) path that comes after
+ // the common path parts
+ if (out.length > 0) return out + to.slice(toStart + lastCommonSep);
+ else {
+ toStart += lastCommonSep;
+ if (isPosixPathSeparator(to.charCodeAt(toStart))) ++toStart;
+ return to.slice(toStart);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const WHITESPACE_ENCODINGS = {
+ "\u0009": "%09",
+ "\u000A": "%0A",
+ "\u000B": "%0B",
+ "\u000C": "%0C",
+ "\u000D": "%0D",
+ "\u0020": "%20"
+};
+function encodeWhitespace(string) {
+ return string.replaceAll(/[\s]/g, (c)=>{
+ return WHITESPACE_ENCODINGS[c] ?? c;
+ });
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path string to a file URL.
+ *
+ * @example Usage
+ * ```ts
+ * import { toFileUrl } from "@std/path/posix/to-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toFileUrl("/home/foo"), new URL("file:///home/foo"));
+ * assertEquals(toFileUrl("/home/foo bar"), new URL("file:///home/foo%20bar"));
+ * ```
+ *
+ * @param path The path to convert.
+ * @returns The file URL.
+ */ function toFileUrl(path) {
+ if (!isAbsolute(path)) {
+ throw new TypeError(`Path must be absolute: received "${path}"`);
+ }
+ const url = new URL("file:///");
+ url.pathname = encodeWhitespace(path.replace(/%/g, "%25").replace(/\\/g, "%5C"));
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path to a namespaced path. This function returns the path as is on posix.
+ *
+ * @example Usage
+ * ```ts
+ * import { toNamespacedPath } from "@std/path/posix/to-namespaced-path";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toNamespacedPath("/home/foo"), "/home/foo");
+ * ```
+ *
+ * @param path The path.
+ * @returns The namespaced path.
+ */ function toNamespacedPath(path) {
+ // Non-op on posix systems
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function common$1(paths, sep) {
+ const [first = "", ...remaining] = paths;
+ const parts = first.split(sep);
+ let endOfPrefix = parts.length;
+ let append = "";
+ for (const path of remaining){
+ const compare = path.split(sep);
+ if (compare.length <= endOfPrefix) {
+ endOfPrefix = compare.length;
+ append = "";
+ }
+ for(let i = 0; i < endOfPrefix; i++){
+ if (compare[i] !== parts[i]) {
+ endOfPrefix = i;
+ append = i === 0 ? "" : sep;
+ break;
+ }
+ }
+ }
+ return parts.slice(0, endOfPrefix).join(sep) + append;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/** Determines the common path from a set of paths for POSIX systems.
+ *
+ * @example Usage
+ * ```ts
+ * import { common } from "@std/path/posix/common";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = common([
+ * "./deno/std/path/mod.ts",
+ * "./deno/std/fs/mod.ts",
+ * ]);
+ * assertEquals(path, "./deno/std/");
+ * ```
+ *
+ * @param paths The paths to compare.
+ * @returns The common path.
+ */ function common(paths) {
+ return common$1(paths, SEPARATOR);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
+ * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
+ */ const REG_EXP_ESCAPE_CHARS = [
+ "!",
+ "$",
+ "(",
+ ")",
+ "*",
+ "+",
+ ".",
+ "=",
+ "?",
+ "[",
+ "\\",
+ "^",
+ "{",
+ "|"
+];
+const RANGE_ESCAPE_CHARS = [
+ "-",
+ "\\",
+ "]"
+];
+function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
+caseInsensitive = false } = {}) {
+ if (glob === "") {
+ return /(?!)/;
+ }
+ // Remove trailing separators.
+ let newLength = glob.length;
+ for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
+ glob = glob.slice(0, newLength);
+ let regExpString = "";
+ // Terminates correctly. Trust that `j` is incremented every iteration.
+ for(let j = 0; j < glob.length;){
+ let segment = "";
+ const groupStack = [];
+ let inRange = false;
+ let inEscape = false;
+ let endsWithSep = false;
+ let i = j;
+ // Terminates with `i` at the non-inclusive end of the current segment.
+ for(; i < glob.length && !c.seps.includes(glob[i]); i++){
+ if (inEscape) {
+ inEscape = false;
+ const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
+ segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ continue;
+ }
+ if (glob[i] === c.escapePrefix) {
+ inEscape = true;
+ continue;
+ }
+ if (glob[i] === "[") {
+ if (!inRange) {
+ inRange = true;
+ segment += "[";
+ if (glob[i + 1] === "!") {
+ i++;
+ segment += "^";
+ } else if (glob[i + 1] === "^") {
+ i++;
+ segment += "\\^";
+ }
+ continue;
+ } else if (glob[i + 1] === ":") {
+ let k = i + 1;
+ let value = "";
+ while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
+ value += glob[k + 1];
+ k++;
+ }
+ if (glob[k + 1] === ":" && glob[k + 2] === "]") {
+ i = k + 2;
+ if (value === "alnum") segment += "\\dA-Za-z";
+ else if (value === "alpha") segment += "A-Za-z";
+ else if (value === "ascii") segment += "\x00-\x7F";
+ else if (value === "blank") segment += "\t ";
+ else if (value === "cntrl") segment += "\x00-\x1F\x7F";
+ else if (value === "digit") segment += "\\d";
+ else if (value === "graph") segment += "\x21-\x7E";
+ else if (value === "lower") segment += "a-z";
+ else if (value === "print") segment += "\x20-\x7E";
+ else if (value === "punct") {
+ segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
+ } else if (value === "space") segment += "\\s\v";
+ else if (value === "upper") segment += "A-Z";
+ else if (value === "word") segment += "\\w";
+ else if (value === "xdigit") segment += "\\dA-Fa-f";
+ continue;
+ }
+ }
+ }
+ if (glob[i] === "]" && inRange) {
+ inRange = false;
+ segment += "]";
+ continue;
+ }
+ if (inRange) {
+ segment += glob[i];
+ continue;
+ }
+ if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += ")";
+ const type = groupStack.pop();
+ if (type === "!") {
+ segment += c.wildcard;
+ } else if (type !== "@") {
+ segment += type;
+ }
+ continue;
+ }
+ if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "+" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("+");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "@" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("@");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "?") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("?");
+ segment += "(?:";
+ } else {
+ segment += ".";
+ }
+ continue;
+ }
+ if (glob[i] === "!" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("!");
+ segment += "(?!";
+ continue;
+ }
+ if (glob[i] === "{") {
+ groupStack.push("BRACE");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
+ groupStack.pop();
+ segment += ")";
+ continue;
+ }
+ if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "*") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("*");
+ segment += "(?:";
+ } else {
+ const prevChar = glob[i - 1];
+ let numStars = 1;
+ while(glob[i + 1] === "*"){
+ i++;
+ numStars++;
+ }
+ const nextChar = glob[i + 1];
+ if (globstarOption && numStars === 2 && [
+ ...c.seps,
+ undefined
+ ].includes(prevChar) && [
+ ...c.seps,
+ undefined
+ ].includes(nextChar)) {
+ segment += c.globstar;
+ endsWithSep = true;
+ } else {
+ segment += c.wildcard;
+ }
+ }
+ continue;
+ }
+ segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ }
+ // Check for unclosed groups or a dangling backslash.
+ if (groupStack.length > 0 || inRange || inEscape) {
+ // Parse failure. Take all characters from this segment literally.
+ segment = "";
+ for (const c of glob.slice(j, i)){
+ segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
+ endsWithSep = false;
+ }
+ }
+ regExpString += segment;
+ if (!endsWithSep) {
+ regExpString += i < glob.length ? c.sep : c.sepMaybe;
+ endsWithSep = true;
+ }
+ // Terminates with `i` at the start of the next segment.
+ while(c.seps.includes(glob[i]))i++;
+ j = i;
+ }
+ regExpString = `^${regExpString}$`;
+ return new RegExp(regExpString, caseInsensitive ? "i" : "");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const constants = {
+ sep: "/+",
+ sepMaybe: "/*",
+ seps: [
+ "/"
+ ],
+ globstar: "(?:[^/]*(?:/|$)+)*",
+ wildcard: "[^/]*",
+ escapePrefix: "\\"
+};
+/** Convert a glob string to a regular expression.
+ *
+ * Tries to match bash glob expansion as closely as possible.
+ *
+ * Basic glob syntax:
+ * - `*` - Matches everything without leaving the path segment.
+ * - `?` - Matches any single character.
+ * - `{foo,bar}` - Matches `foo` or `bar`.
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
+ * - `[[::]]` - Matches any character belonging to ``.
+ * - `[[:alnum:]]` - Matches any digit or letter.
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
+ * for a complete list of supported character classes.
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
+ * - \` - Escapes the next character for `os` set to `"windows"`.
+ * - `/` - Path separator.
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
+ *
+ * Extended syntax:
+ * - Requires `{ extended: true }`.
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
+ *
+ * Globstar syntax:
+ * - Requires `{ globstar: true }`.
+ * - `**` - Matches any number of any path segments.
+ * - Must comprise its entire path segment in the provided glob.
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
+ *
+ * Note the following properties:
+ * - The generated `RegExp` is anchored at both start and end.
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
+ * provided glob have no meaning and are discarded.
+ * - Absolute globs will only match absolute paths, etc.
+ * - Empty globs will match nothing.
+ * - Any special glob syntax must be contained to one path segment. For example,
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
+ * first segment ends with an unclosed group.
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
+ * parse error has occurred. Every character for that segment is taken
+ * literally in this event.
+ *
+ * Limitations:
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
+ * the group occurs not nested at the end of the segment.
+ *
+ * @example Usage
+ * ```ts
+ * import { globToRegExp } from "@std/path/posix/glob-to-regexp";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
+ * ```
+ *
+ * @param glob Glob string to convert.
+ * @param options Conversion options.
+ * @returns The regular expression equivalent to the glob.
+ */ function globToRegExp(glob, options = {}) {
+ return _globToRegExp(constants, glob, options);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Test whether the given string is a glob.
+ *
+ * @example Usage
+ * ```ts
+ * import { isGlob } from "@std/path/is-glob";
+ * import { assert } from "@std/assert";
+ *
+ * assert(!isGlob("foo/bar/../baz"));
+ * assert(isGlob("foo/*ar/../baz"));
+ * ```
+ *
+ * @param str String to test.
+ * @returns `true` if the given string is a glob, otherwise `false`
+ */ function isGlob(str) {
+ const chars = {
+ "{": "}",
+ "(": ")",
+ "[": "]"
+ };
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
+ if (str === "") {
+ return false;
+ }
+ let match;
+ while(match = regex.exec(str)){
+ if (match[2]) return true;
+ let idx = match.index + match[0].length;
+ // if an open bracket/brace/paren is escaped,
+ // set the index to the next closing character
+ const open = match[1];
+ const close = open ? chars[open] : null;
+ if (open && close) {
+ const n = str.indexOf(close, idx);
+ if (n !== -1) {
+ idx = n + 1;
+ }
+ }
+ str = str.slice(idx);
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalizeGlob } from "@std/path/posix/normalize-glob";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = normalizeGlob("foo/bar/../*", { globstar: true });
+ * assertEquals(path, "foo/*");
+ * ```
+ *
+ * @param glob The glob to normalize.
+ * @param options The options to use.
+ * @returns The normalized path.
+ */ function normalizeGlob(glob, { globstar = false } = {}) {
+ if (glob.match(/\0/g)) {
+ throw new Error(`Glob contains invalid characters: "${glob}"`);
+ }
+ if (!globstar) {
+ return normalize(glob);
+ }
+ const s = SEPARATOR_PATTERN.source;
+ const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
+ return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { joinGlobs } from "@std/path/posix/join-globs";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
+ * assertEquals(path, "foo/bar/**");
+ * ```
+ *
+ * @param globs The globs to join.
+ * @param options The options to use.
+ * @returns The joined path.
+ */ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
+ if (!globstar || globs.length === 0) {
+ return join(...globs);
+ }
+ let joined;
+ for (const glob of globs){
+ const path = glob;
+ if (path.length > 0) {
+ if (!joined) joined = path;
+ else joined += `${SEPARATOR}${path}`;
+ }
+ }
+ if (!joined) return ".";
+ return normalizeGlob(joined, {
+ extended,
+ globstar
+ });
+}
+
+export { DELIMITER, SEPARATOR, SEPARATOR_PATTERN, basename, common, dirname, extname, format, fromFileUrl, globToRegExp, isAbsolute, isGlob, join, joinGlobs, normalize, normalizeGlob, parse, relative, resolve, toFileUrl, toNamespacedPath };
diff --git a/node_modules/@eslint/config-array/dist/esm/std__path/windows.js b/node_modules/@eslint/config-array/dist/esm/std__path/windows.js
new file mode 100644
index 00000000000..ae8759d8fb3
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/std__path/windows.js
@@ -0,0 +1,1647 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+function assertPath(path) {
+ if (typeof path !== "string") {
+ throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function stripSuffix(name, suffix) {
+ if (suffix.length >= name.length) {
+ return name;
+ }
+ const lenDiff = name.length - suffix.length;
+ for(let i = suffix.length - 1; i >= 0; --i){
+ if (name.charCodeAt(lenDiff + i) !== suffix.charCodeAt(i)) {
+ return name;
+ }
+ }
+ return name.slice(0, -suffix.length);
+}
+function lastPathSegment(path, isSep, start = 0) {
+ let matchedNonSeparator = false;
+ let end = path.length;
+ for(let i = path.length - 1; i >= start; --i){
+ if (isSep(path.charCodeAt(i))) {
+ if (matchedNonSeparator) {
+ start = i + 1;
+ break;
+ }
+ } else if (!matchedNonSeparator) {
+ matchedNonSeparator = true;
+ end = i + 1;
+ }
+ }
+ return path.slice(start, end);
+}
+function assertArgs$1(path, suffix) {
+ assertPath(path);
+ if (path.length === 0) return path;
+ if (typeof suffix !== "string") {
+ throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Alphabet chars.
+const CHAR_UPPERCASE_A = 65; /* A */
+const CHAR_LOWERCASE_A = 97; /* a */
+const CHAR_UPPERCASE_Z = 90; /* Z */
+const CHAR_LOWERCASE_Z = 122; /* z */
+// Non-alphabetic chars.
+const CHAR_DOT = 46; /* . */
+const CHAR_FORWARD_SLASH = 47; /* / */
+const CHAR_BACKWARD_SLASH = 92; /* \ */
+const CHAR_COLON = 58; /* : */
+const CHAR_QUESTION_MARK = 63; /* ? */
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function stripTrailingSeparators(segment, isSep) {
+ if (segment.length <= 1) {
+ return segment;
+ }
+ let end = segment.length;
+ for(let i = segment.length - 1; i > 0; i--){
+ if (isSep(segment.charCodeAt(i))) {
+ end = i;
+ } else {
+ break;
+ }
+ }
+ return segment.slice(0, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+function isPosixPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH;
+}
+function isPathSeparator(code) {
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
+}
+function isWindowsDeviceRoot(code) {
+ return code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z || code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the last portion of a `path`.
+ * Trailing directory separators are ignored, and optional suffix is removed.
+ *
+ * @example Usage
+ * ```ts
+ * import { basename } from "@std/path/windows/basename";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(basename("C:\\user\\Documents\\"), "Documents");
+ * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
+ * assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `basename` from `@std/path/windows/unstable-basename`.
+ *
+ * @param path The path to extract the name from.
+ * @param suffix The suffix to remove from extracted name.
+ * @returns The extracted name.
+ */ function basename(path, suffix = "") {
+ assertArgs$1(path, suffix);
+ // Check for a drive letter prefix so as not to mistake the following
+ // path separator as an extra separator at the end of the path that can be
+ // disregarded
+ let start = 0;
+ if (path.length >= 2) {
+ const drive = path.charCodeAt(0);
+ if (isWindowsDeviceRoot(drive)) {
+ if (path.charCodeAt(1) === CHAR_COLON) start = 2;
+ }
+ }
+ const lastSegment = lastPathSegment(path, isPathSeparator, start);
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPathSeparator);
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * The character used to separate entries in the PATH environment variable.
+ */ const DELIMITER = ";";
+/**
+ * The character used to separate components of a file path.
+ */ const SEPARATOR = "\\";
+/**
+ * A regular expression that matches one or more path separators.
+ */ const SEPARATOR_PATTERN = /[\\/]+/;
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$3(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the directory path of a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { dirname } from "@std/path/windows/dirname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const dir = dirname("C:\\foo\\bar\\baz.ext");
+ * assertEquals(dir, "C:\\foo\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `dirname` from `@std/path/windows/unstable-dirname`.
+ *
+ * @param path The path to get the directory from.
+ * @returns The directory path.
+ */ function dirname(path) {
+ assertArg$3(path);
+ const len = path.length;
+ let rootEnd = -1;
+ let end = -1;
+ let matchedSlash = true;
+ let offset = 0;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ rootEnd = offset = 1;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ return path;
+ }
+ if (j !== last) {
+ // We matched a UNC root with leftovers
+ // Offset by 1 to include the separator after the UNC root to
+ // treat it as a "normal root" on top of a (UNC) root
+ rootEnd = offset = j + 1;
+ }
+ }
+ }
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ rootEnd = offset = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) rootEnd = offset = 3;
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid
+ // unnecessary work
+ return path;
+ }
+ for(let i = len - 1; i >= offset; --i){
+ if (isPathSeparator(path.charCodeAt(i))) {
+ if (!matchedSlash) {
+ end = i;
+ break;
+ }
+ } else {
+ // We saw the first non-path separator
+ matchedSlash = false;
+ }
+ }
+ if (end === -1) {
+ if (rootEnd === -1) return ".";
+ else end = rootEnd;
+ }
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the extension of the `path` with leading period.
+ *
+ * @example Usage
+ * ```ts
+ * import { extname } from "@std/path/windows/extname";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const ext = extname("file.ts");
+ * assertEquals(ext, ".ts");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `extname` from `@std/path/windows/unstable-extname`.
+ *
+ * @param path The path to get the extension from.
+ * @returns The extension of the `path`.
+ */ function extname(path) {
+ assertPath(path);
+ let start = 0;
+ let startDot = -1;
+ let startPart = 0;
+ let end = -1;
+ let matchedSlash = true;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Check for a drive letter prefix so as not to mistake the following
+ // path separator as an extra separator at the end of the path that can be
+ // disregarded
+ if (path.length >= 2 && path.charCodeAt(1) === CHAR_COLON && isWindowsDeviceRoot(path.charCodeAt(0))) {
+ start = startPart = 2;
+ }
+ for(let i = path.length - 1; i >= start; --i){
+ const code = path.charCodeAt(i);
+ if (isPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ return "";
+ }
+ return path.slice(startDot, end);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function _format(sep, pathObject) {
+ const dir = pathObject.dir || pathObject.root;
+ const base = pathObject.base || (pathObject.name ?? "") + (pathObject.ext ?? "");
+ if (!dir) return base;
+ if (base === sep) return dir;
+ if (dir === pathObject.root) return dir + base;
+ return dir + sep + base;
+}
+function assertArg$2(pathObject) {
+ if (pathObject === null || typeof pathObject !== "object") {
+ throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Generate a path from `ParsedPath` object.
+ *
+ * @example Usage
+ * ```ts
+ * import { format } from "@std/path/windows/format";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = format({
+ * root: "C:\\",
+ * dir: "C:\\path\\dir",
+ * base: "file.txt",
+ * ext: ".txt",
+ * name: "file"
+ * });
+ * assertEquals(path, "C:\\path\\dir\\file.txt");
+ * ```
+ *
+ * @param pathObject The path object to format.
+ * @returns The formatted path.
+ */ function format(pathObject) {
+ assertArg$2(pathObject);
+ return _format("\\", pathObject);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg$1(url) {
+ url = url instanceof URL ? url : new URL(url);
+ if (url.protocol !== "file:") {
+ throw new TypeError(`URL must be a file URL: received "${url.protocol}"`);
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a file URL to a path string.
+ *
+ * @example Usage
+ * ```ts
+ * import { fromFileUrl } from "@std/path/windows/from-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
+ * assertEquals(fromFileUrl("file:///C:/Users/foo"), "C:\\Users\\foo");
+ * assertEquals(fromFileUrl("file://localhost/home/foo"), "\\home\\foo");
+ * ```
+ *
+ * @param url The file URL to convert.
+ * @returns The path string.
+ */ function fromFileUrl(url) {
+ url = assertArg$1(url);
+ let path = decodeURIComponent(url.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
+ if (url.hostname !== "") {
+ // Note: The `URL` implementation guarantees that the drive letter and
+ // hostname are mutually exclusive. Otherwise it would not have been valid
+ // to append the hostname and path like this.
+ path = `\\\\${url.hostname}${path}`;
+ }
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Verifies whether provided path is absolute.
+ *
+ * @example Usage
+ * ```ts
+ * import { isAbsolute } from "@std/path/windows/is-absolute";
+ * import { assert, assertFalse } from "@std/assert";
+ *
+ * assert(isAbsolute("C:\\foo\\bar"));
+ * assertFalse(isAbsolute("..\\baz"));
+ * ```
+ *
+ * @param path The path to verify.
+ * @returns `true` if the path is absolute, `false` otherwise.
+ */ function isAbsolute(path) {
+ assertPath(path);
+ const len = path.length;
+ if (len === 0) return false;
+ const code = path.charCodeAt(0);
+ if (isPathSeparator(code)) {
+ return true;
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (len > 2 && path.charCodeAt(1) === CHAR_COLON) {
+ if (isPathSeparator(path.charCodeAt(2))) return true;
+ }
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArg(path) {
+ assertPath(path);
+ if (path.length === 0) return ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// Copyright the Browserify authors. MIT License.
+// Ported from https://github.com/browserify/path-browserify/
+// This module is browser compatible.
+// Resolves . and .. elements in a path with directory names
+function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
+ let res = "";
+ let lastSegmentLength = 0;
+ let lastSlash = -1;
+ let dots = 0;
+ let code;
+ for(let i = 0; i <= path.length; ++i){
+ if (i < path.length) code = path.charCodeAt(i);
+ else if (isPathSeparator(code)) break;
+ else code = CHAR_FORWARD_SLASH;
+ if (isPathSeparator(code)) {
+ if (lastSlash === i - 1 || dots === 1) ; else if (lastSlash !== i - 1 && dots === 2) {
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== CHAR_DOT || res.charCodeAt(res.length - 2) !== CHAR_DOT) {
+ if (res.length > 2) {
+ const lastSlashIndex = res.lastIndexOf(separator);
+ if (lastSlashIndex === -1) {
+ res = "";
+ lastSegmentLength = 0;
+ } else {
+ res = res.slice(0, lastSlashIndex);
+ lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);
+ }
+ lastSlash = i;
+ dots = 0;
+ continue;
+ } else if (res.length === 2 || res.length === 1) {
+ res = "";
+ lastSegmentLength = 0;
+ lastSlash = i;
+ dots = 0;
+ continue;
+ }
+ }
+ if (allowAboveRoot) {
+ if (res.length > 0) res += `${separator}..`;
+ else res = "..";
+ lastSegmentLength = 2;
+ }
+ } else {
+ if (res.length > 0) res += separator + path.slice(lastSlash + 1, i);
+ else res = path.slice(lastSlash + 1, i);
+ lastSegmentLength = i - lastSlash - 1;
+ }
+ lastSlash = i;
+ dots = 0;
+ } else if (code === CHAR_DOT && dots !== -1) {
+ ++dots;
+ } else {
+ dots = -1;
+ }
+ }
+ return res;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Normalize the `path`, resolving `'..'` and `'.'` segments.
+ * Note that resolving these segments does not necessarily mean that all will be eliminated.
+ * A `'..'` at the top-level will be preserved, and an empty path is canonically `'.'`.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalize } from "@std/path/windows/normalize";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const normalized = normalize("C:\\foo\\..\\bar");
+ * assertEquals(normalized, "C:\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `normalize` from `@std/path/windows/unstable-normalize`.
+ *
+ * @param path The path to normalize
+ * @returns The normalized path
+ */ function normalize(path) {
+ assertArg(path);
+ const len = path.length;
+ let rootEnd = 0;
+ let device;
+ let isAbsolute = false;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ // If we started with a separator, we know we at least have an absolute
+ // path of some kind (UNC or otherwise)
+ isAbsolute = true;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ const firstPart = path.slice(last, j);
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ // Return the normalized version of the UNC root since there
+ // is nothing left to process
+ return `\\\\${firstPart}\\${path.slice(last)}\\`;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
+ rootEnd = j;
+ }
+ }
+ }
+ } else {
+ rootEnd = 1;
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ device = path.slice(0, 2);
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ // Treat separator following drive name as an absolute path
+ // indicator
+ isAbsolute = true;
+ rootEnd = 3;
+ }
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid unnecessary
+ // work
+ return "\\";
+ }
+ let tail;
+ if (rootEnd < len) {
+ tail = normalizeString(path.slice(rootEnd), !isAbsolute, "\\", isPathSeparator);
+ } else {
+ tail = "";
+ }
+ if (tail.length === 0 && !isAbsolute) tail = ".";
+ if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {
+ tail += "\\";
+ }
+ if (device === undefined) {
+ if (isAbsolute) {
+ if (tail.length > 0) return `\\${tail}`;
+ else return "\\";
+ }
+ return tail;
+ } else if (isAbsolute) {
+ if (tail.length > 0) return `${device}\\${tail}`;
+ else return `${device}\\`;
+ }
+ return device + tail;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Join all given a sequence of `paths`,then normalizes the resulting path.
+ *
+ * @example Usage
+ * ```ts
+ * import { join } from "@std/path/windows/join";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const joined = join("C:\\foo", "bar", "baz\\..");
+ * assertEquals(joined, "C:\\foo\\bar");
+ * ```
+ *
+ * Note: If you are working with file URLs,
+ * use the new version of `join` from `@std/path/windows/unstable-join`.
+ *
+ * @param paths The paths to join.
+ * @returns The joined path.
+ */ function join(...paths) {
+ paths.forEach((path)=>assertPath(path));
+ paths = paths.filter((path)=>path.length > 0);
+ if (paths.length === 0) return ".";
+ // Make sure that the joined path doesn't start with two slashes, because
+ // normalize() will mistake it for an UNC path then.
+ //
+ // This step is skipped when it is very clear that the user actually
+ // intended to point at an UNC path. This is assumed when the first
+ // non-empty string arguments starts with exactly two slashes followed by
+ // at least one more non-slash character.
+ //
+ // Note that for normalize() to treat a path as an UNC path it needs to
+ // have at least 2 components, so we don't filter for that here.
+ // This means that the user can use join to construct UNC paths from
+ // a server name and a share name; for example:
+ // path.join('//server', 'share') -> '\\\\server\\share\\'
+ let needsReplace = true;
+ let slashCount = 0;
+ const firstPart = paths[0];
+ if (isPathSeparator(firstPart.charCodeAt(0))) {
+ ++slashCount;
+ const firstLen = firstPart.length;
+ if (firstLen > 1) {
+ if (isPathSeparator(firstPart.charCodeAt(1))) {
+ ++slashCount;
+ if (firstLen > 2) {
+ if (isPathSeparator(firstPart.charCodeAt(2))) ++slashCount;
+ else {
+ // We matched a UNC path in the first part
+ needsReplace = false;
+ }
+ }
+ }
+ }
+ }
+ let joined = paths.join("\\");
+ if (needsReplace) {
+ // Find any more consecutive slashes we need to replace
+ for(; slashCount < joined.length; ++slashCount){
+ if (!isPathSeparator(joined.charCodeAt(slashCount))) break;
+ }
+ // Replace the slashes if needed
+ if (slashCount >= 2) joined = `\\${joined.slice(slashCount)}`;
+ }
+ return normalize(joined);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return a `ParsedPath` object of the `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { parse } from "@std/path/windows/parse";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const parsed = parse("C:\\foo\\bar\\baz.ext");
+ * assertEquals(parsed, {
+ * root: "C:\\",
+ * dir: "C:\\foo\\bar",
+ * base: "baz.ext",
+ * ext: ".ext",
+ * name: "baz",
+ * });
+ * ```
+ *
+ * @param path The path to parse.
+ * @returns The `ParsedPath` object.
+ */ function parse(path) {
+ assertPath(path);
+ const ret = {
+ root: "",
+ dir: "",
+ base: "",
+ ext: "",
+ name: ""
+ };
+ const len = path.length;
+ if (len === 0) return ret;
+ let rootEnd = 0;
+ let code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ rootEnd = 1;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ rootEnd = j;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ rootEnd = j + 1;
+ }
+ }
+ }
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ if (len === 3) {
+ // `path` contains just a drive root, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ ret.base = "\\";
+ return ret;
+ }
+ rootEnd = 3;
+ }
+ } else {
+ // `path` contains just a relative drive root, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ return ret;
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator, exit early to avoid
+ // unnecessary work
+ ret.root = ret.dir = path;
+ ret.base = "\\";
+ return ret;
+ }
+ if (rootEnd > 0) ret.root = path.slice(0, rootEnd);
+ let startDot = -1;
+ let startPart = rootEnd;
+ let end = -1;
+ let matchedSlash = true;
+ let i = path.length - 1;
+ // Track the state of characters (if any) we see before our first dot and
+ // after any path separator we find
+ let preDotState = 0;
+ // Get non-dir info
+ for(; i >= rootEnd; --i){
+ code = path.charCodeAt(i);
+ if (isPathSeparator(code)) {
+ // If we reached a path separator that was not part of a set of path
+ // separators at the end of the string, stop now
+ if (!matchedSlash) {
+ startPart = i + 1;
+ break;
+ }
+ continue;
+ }
+ if (end === -1) {
+ // We saw the first non-path separator, mark this as the end of our
+ // extension
+ matchedSlash = false;
+ end = i + 1;
+ }
+ if (code === CHAR_DOT) {
+ // If this is our first dot, mark it as the start of our extension
+ if (startDot === -1) startDot = i;
+ else if (preDotState !== 1) preDotState = 1;
+ } else if (startDot !== -1) {
+ // We saw a non-dot and non-path separator before our dot, so we should
+ // have a good chance at having a non-empty extension
+ preDotState = -1;
+ }
+ }
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
+ if (end !== -1) {
+ ret.base = ret.name = path.slice(startPart, end);
+ }
+ } else {
+ ret.name = path.slice(startPart, startDot);
+ ret.base = path.slice(startPart, end);
+ ret.ext = path.slice(startDot, end);
+ }
+ // Fallback to '\' in case there is no basename
+ ret.base = ret.base || "\\";
+ // If the directory is the root, use the entire root as the `dir` including
+ // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the
+ // trailing slash (`C:\abc\def` -> `C:\abc`).
+ if (startPart > 0 && startPart !== rootEnd) {
+ ret.dir = path.slice(0, startPart - 1);
+ } else ret.dir = ret.root;
+ return ret;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path segments into a `path`.
+ *
+ * @example Usage
+ * ```ts
+ * import { resolve } from "@std/path/windows/resolve";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const resolved = resolve("C:\\foo\\bar", "..\\baz");
+ * assertEquals(resolved, "C:\\foo\\baz");
+ * ```
+ *
+ * @param pathSegments The path segments to process to path
+ * @returns The resolved path
+ */ function resolve(...pathSegments) {
+ let resolvedDevice = "";
+ let resolvedTail = "";
+ let resolvedAbsolute = false;
+ for(let i = pathSegments.length - 1; i >= -1; i--){
+ let path;
+ // deno-lint-ignore no-explicit-any
+ const { Deno } = globalThis;
+ if (i >= 0) {
+ path = pathSegments[i];
+ } else if (!resolvedDevice) {
+ if (typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ } else {
+ if (typeof Deno?.env?.get !== "function" || typeof Deno?.cwd !== "function") {
+ throw new TypeError("Resolved a relative path without a current working directory (CWD)");
+ }
+ path = Deno.cwd();
+ // Verify that a cwd was found and that it actually points
+ // to our drive. If not, default to the drive's root.
+ if (path === undefined || path.slice(0, 3).toLowerCase() !== `${resolvedDevice.toLowerCase()}\\`) {
+ path = `${resolvedDevice}\\`;
+ }
+ }
+ assertPath(path);
+ const len = path.length;
+ // Skip empty entries
+ if (len === 0) continue;
+ let rootEnd = 0;
+ let device = "";
+ let isAbsolute = false;
+ const code = path.charCodeAt(0);
+ // Try to match a root
+ if (len > 1) {
+ if (isPathSeparator(code)) {
+ // Possible UNC root
+ // If we started with a separator, we know we at least have an
+ // absolute path of some kind (UNC or otherwise)
+ isAbsolute = true;
+ if (isPathSeparator(path.charCodeAt(1))) {
+ // Matched double path separator at beginning
+ let j = 2;
+ let last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ const firstPart = path.slice(last, j);
+ // Matched!
+ last = j;
+ // Match 1 or more path separators
+ for(; j < len; ++j){
+ if (!isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j < len && j !== last) {
+ // Matched!
+ last = j;
+ // Match 1 or more non-path separators
+ for(; j < len; ++j){
+ if (isPathSeparator(path.charCodeAt(j))) break;
+ }
+ if (j === len) {
+ // We matched a UNC root only
+ device = `\\\\${firstPart}\\${path.slice(last)}`;
+ rootEnd = j;
+ } else if (j !== last) {
+ // We matched a UNC root with leftovers
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
+ rootEnd = j;
+ }
+ }
+ }
+ } else {
+ rootEnd = 1;
+ }
+ } else if (isWindowsDeviceRoot(code)) {
+ // Possible device root
+ if (path.charCodeAt(1) === CHAR_COLON) {
+ device = path.slice(0, 2);
+ rootEnd = 2;
+ if (len > 2) {
+ if (isPathSeparator(path.charCodeAt(2))) {
+ // Treat separator following drive name as an absolute path
+ // indicator
+ isAbsolute = true;
+ rootEnd = 3;
+ }
+ }
+ }
+ }
+ } else if (isPathSeparator(code)) {
+ // `path` contains just a path separator
+ rootEnd = 1;
+ isAbsolute = true;
+ }
+ if (device.length > 0 && resolvedDevice.length > 0 && device.toLowerCase() !== resolvedDevice.toLowerCase()) {
+ continue;
+ }
+ if (resolvedDevice.length === 0 && device.length > 0) {
+ resolvedDevice = device;
+ }
+ if (!resolvedAbsolute) {
+ resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
+ resolvedAbsolute = isAbsolute;
+ }
+ if (resolvedAbsolute && resolvedDevice.length > 0) break;
+ }
+ // At this point the path should be resolved to a full absolute path,
+ // but handle relative paths to be safe (might happen when Deno.cwd()
+ // fails)
+ // Normalize the tail path
+ resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, "\\", isPathSeparator);
+ return resolvedDevice + (resolvedAbsolute ? "\\" : "") + resolvedTail || ".";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function assertArgs(from, to) {
+ assertPath(from);
+ assertPath(to);
+ if (from === to) return "";
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Return the relative path from `from` to `to` based on current working directory.
+ *
+ * An example in windws, for instance:
+ * from = 'C:\\orandea\\test\\aaa'
+ * to = 'C:\\orandea\\impl\\bbb'
+ * The output of the function should be: '..\\..\\impl\\bbb'
+ *
+ * @example Usage
+ * ```ts
+ * import { relative } from "@std/path/windows/relative";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const relativePath = relative("C:\\foobar\\test\\aaa", "C:\\foobar\\impl\\bbb");
+ * assertEquals(relativePath, "..\\..\\impl\\bbb");
+ * ```
+ *
+ * @param from The path from which to calculate the relative path
+ * @param to The path to which to calculate the relative path
+ * @returns The relative path from `from` to `to`
+ */ function relative(from, to) {
+ assertArgs(from, to);
+ const fromOrig = resolve(from);
+ const toOrig = resolve(to);
+ if (fromOrig === toOrig) return "";
+ from = fromOrig.toLowerCase();
+ to = toOrig.toLowerCase();
+ if (from === to) return "";
+ // Trim any leading backslashes
+ let fromStart = 0;
+ let fromEnd = from.length;
+ for(; fromStart < fromEnd; ++fromStart){
+ if (from.charCodeAt(fromStart) !== CHAR_BACKWARD_SLASH) break;
+ }
+ // Trim trailing backslashes (applicable to UNC paths only)
+ for(; fromEnd - 1 > fromStart; --fromEnd){
+ if (from.charCodeAt(fromEnd - 1) !== CHAR_BACKWARD_SLASH) break;
+ }
+ const fromLen = fromEnd - fromStart;
+ // Trim any leading backslashes
+ let toStart = 0;
+ let toEnd = to.length;
+ for(; toStart < toEnd; ++toStart){
+ if (to.charCodeAt(toStart) !== CHAR_BACKWARD_SLASH) break;
+ }
+ // Trim trailing backslashes (applicable to UNC paths only)
+ for(; toEnd - 1 > toStart; --toEnd){
+ if (to.charCodeAt(toEnd - 1) !== CHAR_BACKWARD_SLASH) break;
+ }
+ const toLen = toEnd - toStart;
+ // Compare paths to find the longest common path from root
+ const length = fromLen < toLen ? fromLen : toLen;
+ let lastCommonSep = -1;
+ let i = 0;
+ for(; i <= length; ++i){
+ if (i === length) {
+ if (toLen > length) {
+ if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {
+ // We get here if `from` is the exact base path for `to`.
+ // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz'
+ return toOrig.slice(toStart + i + 1);
+ } else if (i === 2) {
+ // We get here if `from` is the device root.
+ // For example: from='C:\\'; to='C:\\foo'
+ return toOrig.slice(toStart + i);
+ }
+ }
+ if (fromLen > length) {
+ if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {
+ // We get here if `to` is the exact base path for `from`.
+ // For example: from='C:\\foo\\bar'; to='C:\\foo'
+ lastCommonSep = i;
+ } else if (i === 2) {
+ // We get here if `to` is the device root.
+ // For example: from='C:\\foo\\bar'; to='C:\\'
+ lastCommonSep = 3;
+ }
+ }
+ break;
+ }
+ const fromCode = from.charCodeAt(fromStart + i);
+ const toCode = to.charCodeAt(toStart + i);
+ if (fromCode !== toCode) break;
+ else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i;
+ }
+ // We found a mismatch before the first common path separator was seen, so
+ // return the original `to`.
+ if (i !== length && lastCommonSep === -1) {
+ return toOrig;
+ }
+ let out = "";
+ if (lastCommonSep === -1) lastCommonSep = 0;
+ // Generate the relative path based on the path difference between `to` and
+ // `from`
+ for(i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i){
+ if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {
+ if (out.length === 0) out += "..";
+ else out += "\\..";
+ }
+ }
+ // Lastly, append the rest of the destination (`to`) path that comes after
+ // the common path parts
+ if (out.length > 0) {
+ return out + toOrig.slice(toStart + lastCommonSep, toEnd);
+ } else {
+ toStart += lastCommonSep;
+ if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) ++toStart;
+ return toOrig.slice(toStart, toEnd);
+ }
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const WHITESPACE_ENCODINGS = {
+ "\u0009": "%09",
+ "\u000A": "%0A",
+ "\u000B": "%0B",
+ "\u000C": "%0C",
+ "\u000D": "%0D",
+ "\u0020": "%20"
+};
+function encodeWhitespace(string) {
+ return string.replaceAll(/[\s]/g, (c)=>{
+ return WHITESPACE_ENCODINGS[c] ?? c;
+ });
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Converts a path string to a file URL.
+ *
+ * @example Usage
+ * ```ts
+ * import { toFileUrl } from "@std/path/windows/to-file-url";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(toFileUrl("\\home\\foo"), new URL("file:///home/foo"));
+ * assertEquals(toFileUrl("C:\\Users\\foo"), new URL("file:///C:/Users/foo"));
+ * assertEquals(toFileUrl("\\\\127.0.0.1\\home\\foo"), new URL("file://127.0.0.1/home/foo"));
+ * ```
+ * @param path The path to convert.
+ * @returns The file URL.
+ */ function toFileUrl(path) {
+ if (!isAbsolute(path)) {
+ throw new TypeError(`Path must be absolute: received "${path}"`);
+ }
+ const [, hostname, pathname] = path.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/);
+ const url = new URL("file:///");
+ url.pathname = encodeWhitespace(pathname.replace(/%/g, "%25"));
+ if (hostname !== undefined && hostname !== "localhost") {
+ url.hostname = hostname;
+ if (!url.hostname) {
+ throw new TypeError(`Invalid hostname: "${url.hostname}"`);
+ }
+ }
+ return url;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Resolves path to a namespace path
+ *
+ * @example Usage
+ * ```ts
+ * import { toNamespacedPath } from "@std/path/windows/to-namespaced-path";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const namespaced = toNamespacedPath("C:\\foo\\bar");
+ * assertEquals(namespaced, "\\\\?\\C:\\foo\\bar");
+ * ```
+ *
+ * @param path The path to resolve to namespaced path
+ * @returns The resolved namespaced path
+ */ function toNamespacedPath(path) {
+ // Note: this will *probably* throw somewhere.
+ if (typeof path !== "string") return path;
+ if (path.length === 0) return "";
+ const resolvedPath = resolve(path);
+ if (resolvedPath.length >= 3) {
+ if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {
+ // Possible UNC root
+ if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {
+ const code = resolvedPath.charCodeAt(2);
+ if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {
+ // Matched non-long UNC root, convert the path to a long UNC path
+ return `\\\\?\\UNC\\${resolvedPath.slice(2)}`;
+ }
+ }
+ } else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0))) {
+ // Possible device root
+ if (resolvedPath.charCodeAt(1) === CHAR_COLON && resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {
+ // Matched device root, convert the path to a long UNC path
+ return `\\\\?\\${resolvedPath}`;
+ }
+ }
+ }
+ return path;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+function common$1(paths, sep) {
+ const [first = "", ...remaining] = paths;
+ const parts = first.split(sep);
+ let endOfPrefix = parts.length;
+ let append = "";
+ for (const path of remaining){
+ const compare = path.split(sep);
+ if (compare.length <= endOfPrefix) {
+ endOfPrefix = compare.length;
+ append = "";
+ }
+ for(let i = 0; i < endOfPrefix; i++){
+ if (compare[i] !== parts[i]) {
+ endOfPrefix = i;
+ append = i === 0 ? "" : sep;
+ break;
+ }
+ }
+ }
+ return parts.slice(0, endOfPrefix).join(sep) + append;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Determines the common path from a set of paths for Windows systems.
+ *
+ * @example Usage
+ * ```ts
+ * import { common } from "@std/path/windows/common";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const path = common([
+ * "C:\\foo\\bar",
+ * "C:\\foo\\baz",
+ * ]);
+ * assertEquals(path, "C:\\foo\\");
+ * ```
+ *
+ * @param paths The paths to compare.
+ * @returns The common path.
+ */ function common(paths) {
+ return common$1(paths, SEPARATOR);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Options for {@linkcode globToRegExp}, {@linkcode joinGlobs},
+ * {@linkcode normalizeGlob} and {@linkcode expandGlob}.
+ */ const REG_EXP_ESCAPE_CHARS = [
+ "!",
+ "$",
+ "(",
+ ")",
+ "*",
+ "+",
+ ".",
+ "=",
+ "?",
+ "[",
+ "\\",
+ "^",
+ "{",
+ "|"
+];
+const RANGE_ESCAPE_CHARS = [
+ "-",
+ "\\",
+ "]"
+];
+function _globToRegExp(c, glob, { extended = true, globstar: globstarOption = true, // os = osType,
+caseInsensitive = false } = {}) {
+ if (glob === "") {
+ return /(?!)/;
+ }
+ // Remove trailing separators.
+ let newLength = glob.length;
+ for(; newLength > 1 && c.seps.includes(glob[newLength - 1]); newLength--);
+ glob = glob.slice(0, newLength);
+ let regExpString = "";
+ // Terminates correctly. Trust that `j` is incremented every iteration.
+ for(let j = 0; j < glob.length;){
+ let segment = "";
+ const groupStack = [];
+ let inRange = false;
+ let inEscape = false;
+ let endsWithSep = false;
+ let i = j;
+ // Terminates with `i` at the non-inclusive end of the current segment.
+ for(; i < glob.length && !c.seps.includes(glob[i]); i++){
+ if (inEscape) {
+ inEscape = false;
+ const escapeChars = inRange ? RANGE_ESCAPE_CHARS : REG_EXP_ESCAPE_CHARS;
+ segment += escapeChars.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ continue;
+ }
+ if (glob[i] === c.escapePrefix) {
+ inEscape = true;
+ continue;
+ }
+ if (glob[i] === "[") {
+ if (!inRange) {
+ inRange = true;
+ segment += "[";
+ if (glob[i + 1] === "!") {
+ i++;
+ segment += "^";
+ } else if (glob[i + 1] === "^") {
+ i++;
+ segment += "\\^";
+ }
+ continue;
+ } else if (glob[i + 1] === ":") {
+ let k = i + 1;
+ let value = "";
+ while(glob[k + 1] !== undefined && glob[k + 1] !== ":"){
+ value += glob[k + 1];
+ k++;
+ }
+ if (glob[k + 1] === ":" && glob[k + 2] === "]") {
+ i = k + 2;
+ if (value === "alnum") segment += "\\dA-Za-z";
+ else if (value === "alpha") segment += "A-Za-z";
+ else if (value === "ascii") segment += "\x00-\x7F";
+ else if (value === "blank") segment += "\t ";
+ else if (value === "cntrl") segment += "\x00-\x1F\x7F";
+ else if (value === "digit") segment += "\\d";
+ else if (value === "graph") segment += "\x21-\x7E";
+ else if (value === "lower") segment += "a-z";
+ else if (value === "print") segment += "\x20-\x7E";
+ else if (value === "punct") {
+ segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~";
+ } else if (value === "space") segment += "\\s\v";
+ else if (value === "upper") segment += "A-Z";
+ else if (value === "word") segment += "\\w";
+ else if (value === "xdigit") segment += "\\dA-Fa-f";
+ continue;
+ }
+ }
+ }
+ if (glob[i] === "]" && inRange) {
+ inRange = false;
+ segment += "]";
+ continue;
+ }
+ if (inRange) {
+ segment += glob[i];
+ continue;
+ }
+ if (glob[i] === ")" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += ")";
+ const type = groupStack.pop();
+ if (type === "!") {
+ segment += c.wildcard;
+ } else if (type !== "@") {
+ segment += type;
+ }
+ continue;
+ }
+ if (glob[i] === "|" && groupStack.length > 0 && groupStack[groupStack.length - 1] !== "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "+" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("+");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "@" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("@");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "?") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("?");
+ segment += "(?:";
+ } else {
+ segment += ".";
+ }
+ continue;
+ }
+ if (glob[i] === "!" && extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("!");
+ segment += "(?!";
+ continue;
+ }
+ if (glob[i] === "{") {
+ groupStack.push("BRACE");
+ segment += "(?:";
+ continue;
+ }
+ if (glob[i] === "}" && groupStack[groupStack.length - 1] === "BRACE") {
+ groupStack.pop();
+ segment += ")";
+ continue;
+ }
+ if (glob[i] === "," && groupStack[groupStack.length - 1] === "BRACE") {
+ segment += "|";
+ continue;
+ }
+ if (glob[i] === "*") {
+ if (extended && glob[i + 1] === "(") {
+ i++;
+ groupStack.push("*");
+ segment += "(?:";
+ } else {
+ const prevChar = glob[i - 1];
+ let numStars = 1;
+ while(glob[i + 1] === "*"){
+ i++;
+ numStars++;
+ }
+ const nextChar = glob[i + 1];
+ if (globstarOption && numStars === 2 && [
+ ...c.seps,
+ undefined
+ ].includes(prevChar) && [
+ ...c.seps,
+ undefined
+ ].includes(nextChar)) {
+ segment += c.globstar;
+ endsWithSep = true;
+ } else {
+ segment += c.wildcard;
+ }
+ }
+ continue;
+ }
+ segment += REG_EXP_ESCAPE_CHARS.includes(glob[i]) ? `\\${glob[i]}` : glob[i];
+ }
+ // Check for unclosed groups or a dangling backslash.
+ if (groupStack.length > 0 || inRange || inEscape) {
+ // Parse failure. Take all characters from this segment literally.
+ segment = "";
+ for (const c of glob.slice(j, i)){
+ segment += REG_EXP_ESCAPE_CHARS.includes(c) ? `\\${c}` : c;
+ endsWithSep = false;
+ }
+ }
+ regExpString += segment;
+ if (!endsWithSep) {
+ regExpString += i < glob.length ? c.sep : c.sepMaybe;
+ endsWithSep = true;
+ }
+ // Terminates with `i` at the start of the next segment.
+ while(c.seps.includes(glob[i]))i++;
+ j = i;
+ }
+ regExpString = `^${regExpString}$`;
+ return new RegExp(regExpString, caseInsensitive ? "i" : "");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+const constants = {
+ sep: "(?:\\\\|/)+",
+ sepMaybe: "(?:\\\\|/)*",
+ seps: [
+ "\\",
+ "/"
+ ],
+ globstar: "(?:[^\\\\/]*(?:\\\\|/|$)+)*",
+ wildcard: "[^\\\\/]*",
+ escapePrefix: "`"
+};
+/** Convert a glob string to a regular expression.
+ *
+ * Tries to match bash glob expansion as closely as possible.
+ *
+ * Basic glob syntax:
+ * - `*` - Matches everything without leaving the path segment.
+ * - `?` - Matches any single character.
+ * - `{foo,bar}` - Matches `foo` or `bar`.
+ * - `[abcd]` - Matches `a`, `b`, `c` or `d`.
+ * - `[a-d]` - Matches `a`, `b`, `c` or `d`.
+ * - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
+ * - `[[::]]` - Matches any character belonging to ``.
+ * - `[[:alnum:]]` - Matches any digit or letter.
+ * - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
+ * - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
+ * for a complete list of supported character classes.
+ * - `\` - Escapes the next character for an `os` other than `"windows"`.
+ * - \` - Escapes the next character for `os` set to `"windows"`.
+ * - `/` - Path separator.
+ * - `\` - Additional path separator only for `os` set to `"windows"`.
+ *
+ * Extended syntax:
+ * - Requires `{ extended: true }`.
+ * - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
+ * - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
+ * - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
+ * - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
+ * - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
+ * - See https://www.linuxjournal.com/content/bash-extended-globbing.
+ *
+ * Globstar syntax:
+ * - Requires `{ globstar: true }`.
+ * - `**` - Matches any number of any path segments.
+ * - Must comprise its entire path segment in the provided glob.
+ * - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
+ *
+ * Note the following properties:
+ * - The generated `RegExp` is anchored at both start and end.
+ * - Repeating and trailing separators are tolerated. Trailing separators in the
+ * provided glob have no meaning and are discarded.
+ * - Absolute globs will only match absolute paths, etc.
+ * - Empty globs will match nothing.
+ * - Any special glob syntax must be contained to one path segment. For example,
+ * `?(foo|bar/baz)` is invalid. The separator will take precedence and the
+ * first segment ends with an unclosed group.
+ * - If a path segment ends with unclosed groups or a dangling escape prefix, a
+ * parse error has occurred. Every character for that segment is taken
+ * literally in this event.
+ *
+ * Limitations:
+ * - A negative group like `!(foo|bar)` will wrongly be converted to a negative
+ * look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
+ * fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
+ * `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
+ * the group occurs not nested at the end of the segment.
+ *
+ * @example Usage
+ * ```ts
+ * import { globToRegExp } from "@std/path/windows/glob-to-regexp";
+ * import { assertEquals } from "@std/assert";
+ *
+ * assertEquals(globToRegExp("*.js"), /^[^\\/]*\.js(?:\\|\/)*$/);
+ * ```
+ *
+ * @param glob Glob string to convert.
+ * @param options Conversion options.
+ * @returns The regular expression equivalent to the glob.
+ */ function globToRegExp(glob, options = {}) {
+ return _globToRegExp(constants, glob, options);
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Test whether the given string is a glob.
+ *
+ * @example Usage
+ * ```ts
+ * import { isGlob } from "@std/path/is-glob";
+ * import { assert } from "@std/assert";
+ *
+ * assert(!isGlob("foo/bar/../baz"));
+ * assert(isGlob("foo/*ar/../baz"));
+ * ```
+ *
+ * @param str String to test.
+ * @returns `true` if the given string is a glob, otherwise `false`
+ */ function isGlob(str) {
+ const chars = {
+ "{": "}",
+ "(": ")",
+ "[": "]"
+ };
+ const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
+ if (str === "") {
+ return false;
+ }
+ let match;
+ while(match = regex.exec(str)){
+ if (match[2]) return true;
+ let idx = match.index + match[0].length;
+ // if an open bracket/brace/paren is escaped,
+ // set the index to the next closing character
+ const open = match[1];
+ const close = open ? chars[open] : null;
+ if (open && close) {
+ const n = str.indexOf(close, idx);
+ if (n !== -1) {
+ idx = n + 1;
+ }
+ }
+ str = str.slice(idx);
+ }
+ return false;
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ * ```ts
+ * import { normalizeGlob } from "@std/path/windows/normalize-glob";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const normalized = normalizeGlob("**\\foo\\..\\bar", { globstar: true });
+ * assertEquals(normalized, "**\\bar");
+ * ```
+ *
+ * @param glob The glob pattern to normalize.
+ * @param options The options for glob pattern.
+ * @returns The normalized glob pattern.
+ */ function normalizeGlob(glob, { globstar = false } = {}) {
+ if (glob.match(/\0/g)) {
+ throw new Error(`Glob contains invalid characters: "${glob}"`);
+ }
+ if (!globstar) {
+ return normalize(glob);
+ }
+ const s = SEPARATOR_PATTERN.source;
+ const badParentPattern = new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`, "g");
+ return normalize(glob.replace(badParentPattern, "\0")).replace(/\0/g, "..");
+}
+
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+// This module is browser compatible.
+/**
+ * Like join(), but doesn't collapse "**\/.." when `globstar` is true.
+ *
+ * @example Usage
+ *
+ * ```ts
+ * import { joinGlobs } from "@std/path/windows/join-globs";
+ * import { assertEquals } from "@std/assert";
+ *
+ * const joined = joinGlobs(["foo", "**", "bar"], { globstar: true });
+ * assertEquals(joined, "foo\\**\\bar");
+ * ```
+ *
+ * @param globs The globs to join.
+ * @param options The options for glob pattern.
+ * @returns The joined glob pattern.
+ */ function joinGlobs(globs, { extended = true, globstar = false } = {}) {
+ if (!globstar || globs.length === 0) {
+ return join(...globs);
+ }
+ let joined;
+ for (const glob of globs){
+ const path = glob;
+ if (path.length > 0) {
+ if (!joined) joined = path;
+ else joined += `${SEPARATOR}${path}`;
+ }
+ }
+ if (!joined) return ".";
+ return normalizeGlob(joined, {
+ extended,
+ globstar
+ });
+}
+
+export { DELIMITER, SEPARATOR, SEPARATOR_PATTERN, basename, common, dirname, extname, format, fromFileUrl, globToRegExp, isAbsolute, isGlob, join, joinGlobs, normalize, normalizeGlob, parse, relative, resolve, toFileUrl, toNamespacedPath };
diff --git a/node_modules/@eslint/config-array/dist/esm/types.d.ts b/node_modules/@eslint/config-array/dist/esm/types.d.ts
new file mode 100644
index 00000000000..a495d940be0
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/types.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @fileoverview Types for the config-array package.
+ * @author Nicholas C. Zakas
+ */
+export interface ConfigObject {
+ /**
+ * The files to include.
+ */
+ files?: string[];
+ /**
+ * The files to exclude.
+ */
+ ignores?: string[];
+ /**
+ * The name of the config object.
+ */
+ name?: string;
+ [key: string]: unknown;
+}
diff --git a/node_modules/@eslint/config-array/dist/esm/types.ts b/node_modules/@eslint/config-array/dist/esm/types.ts
new file mode 100644
index 00000000000..1af40113892
--- /dev/null
+++ b/node_modules/@eslint/config-array/dist/esm/types.ts
@@ -0,0 +1,24 @@
+/**
+ * @fileoverview Types for the config-array package.
+ * @author Nicholas C. Zakas
+ */
+
+export interface ConfigObject {
+ /**
+ * The files to include.
+ */
+ files?: string[];
+
+ /**
+ * The files to exclude.
+ */
+ ignores?: string[];
+
+ /**
+ * The name of the config object.
+ */
+ name?: string;
+
+ // may also have any number of other properties
+ [key: string]: unknown;
+}
diff --git a/node_modules/@eslint/config-array/package.json b/node_modules/@eslint/config-array/package.json
new file mode 100644
index 00000000000..299906b66e4
--- /dev/null
+++ b/node_modules/@eslint/config-array/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "@eslint/config-array",
+ "version": "0.19.0",
+ "description": "General purpose glob-based configuration matching.",
+ "author": "Nicholas C. Zakas",
+ "type": "module",
+ "main": "dist/esm/index.js",
+ "types": "dist/esm/index.d.ts",
+ "exports": {
+ "require": {
+ "types": "./dist/cjs/index.d.cts",
+ "default": "./dist/cjs/index.cjs"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ }
+ },
+ "files": [
+ "dist"
+ ],
+ "publishConfig": {
+ "access": "public"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/eslint/rewrite.git"
+ },
+ "bugs": {
+ "url": "https://github.com/eslint/rewrite/issues"
+ },
+ "homepage": "https://github.com/eslint/rewrite#readme",
+ "scripts": {
+ "build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
+ "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"",
+ "build:std__path": "rollup -c rollup.std__path-config.js && node fix-std__path-imports",
+ "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts && npm run build:std__path",
+ "test:jsr": "npx jsr@latest publish --dry-run",
+ "pretest": "npm run build",
+ "test": "mocha tests/",
+ "test:coverage": "c8 npm test"
+ },
+ "keywords": [
+ "configuration",
+ "configarray",
+ "config file"
+ ],
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.4",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "devDependencies": {
+ "@jsr/std__path": "^1.0.4",
+ "@types/minimatch": "^3.0.5",
+ "c8": "^9.1.0",
+ "mocha": "^10.4.0",
+ "rollup": "^4.16.2",
+ "rollup-plugin-copy": "^3.5.0",
+ "typescript": "^5.4.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+}
diff --git a/node_modules/@eslint/core/LICENSE b/node_modules/@eslint/core/LICENSE
new file mode 100644
index 00000000000..261eeb9e9f8
--- /dev/null
+++ b/node_modules/@eslint/core/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/node_modules/@eslint/core/README.md b/node_modules/@eslint/core/README.md
new file mode 100644
index 00000000000..6a2576f54fe
--- /dev/null
+++ b/node_modules/@eslint/core/README.md
@@ -0,0 +1,29 @@
+# ESLint Core
+
+## Overview
+
+This package is the future home of the rewritten, runtime-agnostic ESLint core.
+
+Right now, it exports the core types necessary to implement language plugins.
+
+## License
+
+Apache 2.0
+
+
+
+
+## Sponsors
+
+The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate)
+to get your logo on our READMEs and [website](https://eslint.org/sponsors).
+
+
Platinum Sponsors
+
Gold Sponsors
+
Silver Sponsors
+
Bronze Sponsors
+
+
Technology Sponsors
+Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
+
+
diff --git a/node_modules/@eslint/core/dist/cjs/types.d.cts b/node_modules/@eslint/core/dist/cjs/types.d.cts
new file mode 100644
index 00000000000..4ec26b9c2cf
--- /dev/null
+++ b/node_modules/@eslint/core/dist/cjs/types.d.cts
@@ -0,0 +1,735 @@
+/**
+ * @fileoverview Shared types for ESLint Core.
+ */
+import { JSONSchema4 } from "json-schema";
+/**
+ * Represents an error inside of a file.
+ */
+export interface FileError {
+ message: string;
+ line: number;
+ column: number;
+ endLine?: number;
+ endColumn?: number;
+}
+/**
+ * Represents a problem found in a file.
+ */
+export interface FileProblem {
+ ruleId: string | null;
+ message: string;
+ loc: SourceLocation;
+}
+/**
+ * Represents the start and end coordinates of a node inside the source.
+ */
+export interface SourceLocation {
+ start: Position;
+ end: Position;
+}
+/**
+ * Represents the start and end coordinates of a node inside the source with an offset.
+ */
+export interface SourceLocationWithOffset {
+ start: PositionWithOffset;
+ end: PositionWithOffset;
+}
+/**
+ * Represents a location coordinate inside the source. ESLint-style formats
+ * have just `line` and `column` while others may have `offset` as well.
+ */
+export interface Position {
+ line: number;
+ column: number;
+}
+/**
+ * Represents a location coordinate inside the source with an offset.
+ */
+export interface PositionWithOffset extends Position {
+ offset: number;
+}
+/**
+ * Represents a range of characters in the source.
+ */
+export type SourceRange = [number, number];
+/**
+ * What the rule is responsible for finding:
+ * - `problem` means the rule has noticed a potential error.
+ * - `suggestion` means the rule suggests an alternate or better approach.
+ * - `layout` means the rule is looking at spacing, indentation, etc.
+ */
+export type RuleType = "problem" | "suggestion" | "layout";
+/**
+ * The type of fix the rule can provide:
+ * - `code` means the rule can fix syntax.
+ * - `whitespace` means the rule can fix spacing and indentation.
+ */
+export type RuleFixType = "code" | "whitespace";
+/**
+ * An object containing visitor information for a rule. Each method is either the
+ * name of a node type or a selector, or is a method that will be called at specific
+ * times during the traversal.
+ */
+export interface RuleVisitor {
+ /**
+ * Called for each node in the AST or at specific times during the traversal.
+ */
+ [key: string]: (...args: any[]) => void;
+}
+/**
+ * Rule meta information used for documentation.
+ */
+export interface RulesMetaDocs {
+ /**
+ * A short description of the rule.
+ */
+ description?: string | undefined;
+ /**
+ * The URL to the documentation for the rule.
+ */
+ url?: string | undefined;
+ /**
+ * The category the rule falls under.
+ * @deprecated No longer used.
+ */
+ category?: string | undefined;
+ /**
+ * Indicates if the rule is generally recommended for all users.
+ */
+ recommended?: boolean | undefined;
+}
+/**
+ * Meta information about a rule.
+ */
+export interface RulesMeta {
+ /**
+ * Properties that are used when documenting the rule.
+ */
+ docs?: (RulesMetaDocs & ExtRuleDocs) | undefined;
+ /**
+ * The type of rule.
+ */
+ type?: RuleType | undefined;
+ /**
+ * The schema for the rule options. Required if the rule has options.
+ */
+ schema?: JSONSchema4 | JSONSchema4[] | false | undefined;
+ /**
+ * The messages that the rule can report.
+ */
+ messages?: Record;
+ /**
+ * The deprecated rules for the rule.
+ */
+ deprecated?: boolean | undefined;
+ /**
+ * When a rule is deprecated, indicates the rule ID(s) that should be used instead.
+ */
+ replacedBy?: string[] | undefined;
+ /**
+ * Indicates if the rule is fixable, and if so, what type of fix it provides.
+ */
+ fixable?: RuleFixType | undefined;
+ /**
+ * Indicates if the rule may provide suggestions.
+ */
+ hasSuggestions?: boolean | undefined;
+}
+/**
+ * Generic type for `RuleContext`.
+ */
+export interface RuleContextTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RuleOptions: unknown[];
+ Node: unknown;
+}
+/**
+ * Represents the context object that is passed to a rule. This object contains
+ * information about the current state of the linting process and is the rule's
+ * view into the outside world.
+ */
+export interface RuleContext {
+ /**
+ * The current working directory for the session.
+ */
+ cwd: string;
+ /**
+ * Returns the current working directory for the session.
+ * @deprecated Use `cwd` instead.
+ */
+ getCwd(): string;
+ /**
+ * The filename of the file being linted.
+ */
+ filename: string;
+ /**
+ * Returns the filename of the file being linted.
+ * @deprecated Use `filename` instead.
+ */
+ getFilename(): string;
+ /**
+ * The physical filename of the file being linted.
+ */
+ physicalFilename: string;
+ /**
+ * Returns the physical filename of the file being linted.
+ * @deprecated Use `physicalFilename` instead.
+ */
+ getPhysicalFilename(): string;
+ /**
+ * The source code object that the rule is running on.
+ */
+ sourceCode: Options["Code"];
+ /**
+ * Returns the source code object that the rule is running on.
+ * @deprecated Use `sourceCode` instead.
+ */
+ getSourceCode(): Options["Code"];
+ /**
+ * Shared settings for the configuration.
+ */
+ settings: SettingsConfig;
+ /**
+ * Parser-specific options for the configuration.
+ * @deprecated Use `languageOptions.parserOptions` instead.
+ */
+ parserOptions: Record;
+ /**
+ * The language options for the configuration.
+ */
+ languageOptions: Options["LangOptions"];
+ /**
+ * The CommonJS path to the parser used while parsing this file.
+ * @deprecated No longer used.
+ */
+ parserPath: string | undefined;
+ /**
+ * The rule ID.
+ */
+ id: string;
+ /**
+ * The rule's configured options.
+ */
+ options: Options["RuleOptions"];
+ /**
+ * The report function that the rule should use to report problems.
+ * @param violation The violation to report.
+ */
+ report(violation: ViolationReport): void;
+}
+/**
+ * Manager of text edits for a rule fix.
+ */
+export interface RuleTextEditor {
+ /**
+ * Inserts text after the specified node or token.
+ * @param syntaxElement The node or token to insert after.
+ * @param text The edit to insert after the node or token.
+ */
+ insertTextAfter(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Inserts text after the specified range.
+ * @param range The range to insert after.
+ * @param text The edit to insert after the range.
+ */
+ insertTextAfterRange(range: SourceRange, text: string): RuleTextEdit;
+ /**
+ * Inserts text before the specified node or token.
+ * @param syntaxElement A syntax element with location information to insert before.
+ * @param text The edit to insert before the node or token.
+ */
+ insertTextBefore(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Inserts text before the specified range.
+ * @param range The range to insert before.
+ * @param text The edit to insert before the range.
+ */
+ insertTextBeforeRange(range: SourceRange, text: string): RuleTextEdit;
+ /**
+ * Removes the specified node or token.
+ * @param syntaxElement A syntax element with location information to remove.
+ * @returns The edit to remove the node or token.
+ */
+ remove(syntaxElement: EditableSyntaxElement): RuleTextEdit;
+ /**
+ * Removes the specified range.
+ * @param range The range to remove.
+ * @returns The edit to remove the range.
+ */
+ removeRange(range: SourceRange): RuleTextEdit;
+ /**
+ * Replaces the specified node or token with the given text.
+ * @param syntaxElement A syntax element with location information to replace.
+ * @param text The text to replace the node or token with.
+ * @returns The edit to replace the node or token.
+ */
+ replaceText(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Replaces the specified range with the given text.
+ * @param range The range to replace.
+ * @param text The text to replace the range with.
+ * @returns The edit to replace the range.
+ */
+ replaceTextRange(range: SourceRange, text: string): RuleTextEdit;
+}
+/**
+ * Represents a fix for a rule violation implemented as a text edit.
+ */
+export interface RuleTextEdit {
+ /**
+ * The range to replace.
+ */
+ range: SourceRange;
+ /**
+ * The text to insert.
+ */
+ text: string;
+}
+interface ViolationReportBase {
+ /**
+ * The type of node that the violation is for.
+ * @deprecated May be removed in the future.
+ */
+ nodeType?: string | undefined;
+ /**
+ * The data to insert into the message.
+ */
+ data?: Record | undefined;
+ /**
+ * The fix to be applied for the violation.
+ * @param fixer The text editor to apply the fix.
+ * @returns The fix(es) for the violation.
+ */
+ fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null;
+ /**
+ * An array of suggested fixes for the problem. These fixes may change the
+ * behavior of the code, so they are not applied automatically.
+ */
+ suggest?: SuggestedEdit[];
+}
+type ViolationMessage = {
+ message: string;
+} | {
+ messageId: string;
+};
+type ViolationLocation = {
+ loc: SourceLocation;
+} | {
+ node: Node;
+};
+export type ViolationReport = ViolationReportBase & ViolationMessage & ViolationLocation;
+interface SuggestedEditBase {
+ /**
+ * The data to insert into the message.
+ */
+ data?: Record | undefined;
+ /**
+ * The fix to be applied for the suggestion.
+ * @param fixer The text editor to apply the fix.
+ * @returns The fix for the suggestion.
+ */
+ fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null;
+}
+type SuggestionMessage = {
+ desc: string;
+} | {
+ messageId: string;
+};
+/**
+ * A suggested edit for a rule violation.
+ */
+export type SuggestedEdit = SuggestedEditBase & SuggestionMessage;
+/**
+ * Generic options for the `RuleDefinition` type.
+ */
+export interface RuleDefinitionTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RuleOptions: unknown[];
+ Visitor: RuleVisitor;
+ Node: unknown;
+ MessageIds: string;
+ ExtRuleDocs: unknown;
+}
+/**
+ * The definition of an ESLint rule.
+ */
+export interface RuleDefinition {
+ /**
+ * The meta information for the rule.
+ */
+ meta?: RulesMeta;
+ /**
+ * Creates the visitor that ESLint uses to apply the rule during traversal.
+ * @param context The rule context.
+ * @returns The rule visitor.
+ */
+ create(context: RuleContext<{
+ LangOptions: Options["LangOptions"];
+ Code: Options["Code"];
+ RuleOptions: Options["RuleOptions"];
+ Node: Options["Node"];
+ }>): Options["Visitor"];
+}
+/**
+ * The human readable severity level used in a configuration.
+ */
+export type SeverityName = "off" | "warn" | "error";
+/**
+ * The numeric severity level for a rule.
+ *
+ * - `0` means off.
+ * - `1` means warn.
+ * - `2` means error.
+ */
+export type SeverityLevel = 0 | 1 | 2;
+/**
+ * The severity of a rule in a configuration.
+ */
+export type Severity = SeverityName | SeverityLevel;
+/**
+ * Represents the configuration options for the core linter.
+ */
+export interface LinterOptionsConfig {
+ /**
+ * Indicates whether or not inline configuration is evaluated.
+ */
+ noInlineConfig?: boolean;
+ /**
+ * Indicates what to do when an unused disable directive is found.
+ */
+ reportUnusedDisableDirectives?: boolean | Severity;
+}
+/**
+ * Shared settings that are accessible from within plugins.
+ */
+export type SettingsConfig = Record;
+/**
+ * The configuration for a rule.
+ */
+export type RuleConfig = Severity | [Severity, ...unknown[]];
+/**
+ * A collection of rules and their configurations.
+ */
+export type RulesConfig = Record;
+/**
+ * Generic options for the `Language` type.
+ */
+export interface LanguageTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RootNode: unknown;
+ Node: unknown;
+}
+/**
+ * Represents a plugin language.
+ */
+export interface Language {
+ /**
+ * Indicates how ESLint should read the file.
+ */
+ fileType: "text";
+ /**
+ * First line number returned from the parser (text mode only).
+ */
+ lineStart: 0 | 1;
+ /**
+ * First column number returned from the parser (text mode only).
+ */
+ columnStart: 0 | 1;
+ /**
+ * The property to read the node type from. Used in selector querying.
+ */
+ nodeTypeKey: string;
+ /**
+ * The traversal path that tools should take when evaluating the AST
+ */
+ visitorKeys?: Record;
+ /**
+ * Default language options. User-defined options are merged with this object.
+ */
+ defaultLanguageOptions?: LanguageOptions;
+ /**
+ * Validates languageOptions for this language.
+ */
+ validateLanguageOptions(languageOptions: Options["LangOptions"]): void;
+ /**
+ * Normalizes languageOptions for this language.
+ */
+ normalizeLanguageOptions?(languageOptions: Options["LangOptions"]): Options["LangOptions"];
+ /**
+ * Helper for esquery that allows languages to match nodes against
+ * class. esquery currently has classes like `function` that will
+ * match all the various function nodes. This method allows languages
+ * to implement similar shorthands.
+ */
+ matchesSelectorClass?(className: string, node: Options["Node"], ancestry: Options["Node"][]): boolean;
+ /**
+ * Parses the given file input into its component parts. This file should not
+ * throws errors for parsing errors but rather should return any parsing
+ * errors as parse of the ParseResult object.
+ */
+ parse(file: File, context: LanguageContext): ParseResult;
+ /**
+ * Creates SourceCode object that ESLint uses to work with a file.
+ */
+ createSourceCode(file: File, input: OkParseResult, context: LanguageContext): Options["Code"];
+}
+/**
+ * Plugin-defined options for the language.
+ */
+export type LanguageOptions = Record;
+/**
+ * The context object that is passed to the language plugin methods.
+ */
+export interface LanguageContext {
+ languageOptions: LangOptions;
+}
+/**
+ * Represents a file read by ESLint.
+ */
+export interface File {
+ /**
+ * The path that ESLint uses for this file. May be a virtual path
+ * if it was returned by a processor.
+ */
+ path: string;
+ /**
+ * The path to the file on disk. This always maps directly to a file
+ * regardless of whether it was returned from a processor.
+ */
+ physicalPath: string;
+ /**
+ * Indicates if the original source contained a byte-order marker.
+ * ESLint strips the BOM from the `body`, but this info is needed
+ * to correctly apply autofixing.
+ */
+ bom: boolean;
+ /**
+ * The body of the file to parse.
+ */
+ body: string | Uint8Array;
+}
+/**
+ * Represents the successful result of parsing a file.
+ */
+export interface OkParseResult {
+ /**
+ * Indicates if the parse was successful. If true, the parse was successful
+ * and ESLint should continue on to create a SourceCode object and run rules;
+ * if false, ESLint should just report the error(s) without doing anything
+ * else.
+ */
+ ok: true;
+ /**
+ * The abstract syntax tree created by the parser. (only when ok: true)
+ */
+ ast: RootNode;
+ /**
+ * Any additional data that the parser wants to provide.
+ */
+ [key: string]: any;
+}
+/**
+ * Represents the unsuccessful result of parsing a file.
+ */
+export interface NotOkParseResult {
+ /**
+ * Indicates if the parse was successful. If true, the parse was successful
+ * and ESLint should continue on to create a SourceCode object and run rules;
+ * if false, ESLint should just report the error(s) without doing anything
+ * else.
+ */
+ ok: false;
+ /**
+ * Any parsing errors, whether fatal or not. (only when ok: false)
+ */
+ errors: FileError[];
+ /**
+ * Any additional data that the parser wants to provide.
+ */
+ [key: string]: any;
+}
+export type ParseResult = OkParseResult | NotOkParseResult;
+/**
+ * Represents inline configuration found in the source code.
+ */
+interface InlineConfigElement {
+ /**
+ * The location of the inline config element.
+ */
+ loc: SourceLocation;
+ /**
+ * The interpreted configuration from the inline config element.
+ */
+ config: {
+ rules: RulesConfig;
+ };
+}
+/**
+ * Generic options for the `SourceCodeBase` type.
+ */
+interface SourceCodeBaseTypeOptions {
+ LangOptions: LanguageOptions;
+ RootNode: unknown;
+ SyntaxElementWithLoc: unknown;
+ ConfigNode: unknown;
+}
+/**
+ * Represents the basic interface for a source code object.
+ */
+interface SourceCodeBase {
+ /**
+ * Root of the AST.
+ */
+ ast: Options["RootNode"];
+ /**
+ * The traversal path that tools should take when evaluating the AST.
+ * When present, this overrides the `visitorKeys` on the language for
+ * just this source code object.
+ */
+ visitorKeys?: Record;
+ /**
+ * Retrieves the equivalent of `loc` for a given node or token.
+ * @param syntaxElement The node or token to get the location for.
+ * @returns The location of the node or token.
+ */
+ getLoc(syntaxElement: Options["SyntaxElementWithLoc"]): SourceLocation;
+ /**
+ * Retrieves the equivalent of `range` for a given node or token.
+ * @param syntaxElement The node or token to get the range for.
+ * @returns The range of the node or token.
+ */
+ getRange(syntaxElement: Options["SyntaxElementWithLoc"]): SourceRange;
+ /**
+ * Traversal of AST.
+ */
+ traverse(): Iterable;
+ /**
+ * Applies language options passed in from the ESLint core.
+ */
+ applyLanguageOptions?(languageOptions: Options["LangOptions"]): void;
+ /**
+ * Return all of the inline areas where ESLint should be disabled/enabled
+ * along with any problems found in evaluating the directives.
+ */
+ getDisableDirectives?(): {
+ directives: Directive[];
+ problems: FileProblem[];
+ };
+ /**
+ * Returns an array of all inline configuration nodes found in the
+ * source code.
+ */
+ getInlineConfigNodes?(): Options["ConfigNode"][];
+ /**
+ * Applies configuration found inside of the source code. This method is only
+ * called when ESLint is running with inline configuration allowed.
+ */
+ applyInlineConfig?(): {
+ configs: InlineConfigElement[];
+ problems: FileProblem[];
+ };
+ /**
+ * Called by ESLint core to indicate that it has finished providing
+ * information. We now add in all the missing variables and ensure that
+ * state-changing methods cannot be called by rules.
+ * @returns {void}
+ */
+ finalize?(): void;
+}
+/**
+ * Represents the source of a text file being linted.
+ */
+export interface TextSourceCode extends SourceCodeBase {
+ /**
+ * The body of the file that you'd like rule developers to access.
+ */
+ text: string;
+}
+/**
+ * Represents the source of a binary file being linted.
+ */
+export interface BinarySourceCode extends SourceCodeBase {
+ /**
+ * The body of the file that you'd like rule developers to access.
+ */
+ body: Uint8Array;
+}
+export type SourceCode = TextSourceCode | BinarySourceCode;
+/**
+ * Represents a traversal step visiting the AST.
+ */
+export interface VisitTraversalStep {
+ kind: 1;
+ target: unknown;
+ phase: 1 | 2;
+ args: unknown[];
+}
+/**
+ * Represents a traversal step calling a function.
+ */
+export interface CallTraversalStep {
+ kind: 2;
+ target: string;
+ phase?: string;
+ args: unknown[];
+}
+export type TraversalStep = VisitTraversalStep | CallTraversalStep;
+/**
+ * The type of disable directive. This determines how ESLint will disable rules.
+ */
+export type DirectiveType = "disable" | "enable" | "disable-line" | "disable-next-line";
+/**
+ * Represents a disable directive.
+ */
+export interface Directive {
+ /**
+ * The type of directive.
+ */
+ type: DirectiveType;
+ /**
+ * The node of the directive. May be in the AST or a comment/token.
+ */
+ node: unknown;
+ /**
+ * The value of the directive.
+ */
+ value: string;
+ /**
+ * The justification for the directive.
+ */
+ justification?: string;
+}
+export {};
diff --git a/node_modules/@eslint/core/dist/esm/types.d.ts b/node_modules/@eslint/core/dist/esm/types.d.ts
new file mode 100644
index 00000000000..4ec26b9c2cf
--- /dev/null
+++ b/node_modules/@eslint/core/dist/esm/types.d.ts
@@ -0,0 +1,735 @@
+/**
+ * @fileoverview Shared types for ESLint Core.
+ */
+import { JSONSchema4 } from "json-schema";
+/**
+ * Represents an error inside of a file.
+ */
+export interface FileError {
+ message: string;
+ line: number;
+ column: number;
+ endLine?: number;
+ endColumn?: number;
+}
+/**
+ * Represents a problem found in a file.
+ */
+export interface FileProblem {
+ ruleId: string | null;
+ message: string;
+ loc: SourceLocation;
+}
+/**
+ * Represents the start and end coordinates of a node inside the source.
+ */
+export interface SourceLocation {
+ start: Position;
+ end: Position;
+}
+/**
+ * Represents the start and end coordinates of a node inside the source with an offset.
+ */
+export interface SourceLocationWithOffset {
+ start: PositionWithOffset;
+ end: PositionWithOffset;
+}
+/**
+ * Represents a location coordinate inside the source. ESLint-style formats
+ * have just `line` and `column` while others may have `offset` as well.
+ */
+export interface Position {
+ line: number;
+ column: number;
+}
+/**
+ * Represents a location coordinate inside the source with an offset.
+ */
+export interface PositionWithOffset extends Position {
+ offset: number;
+}
+/**
+ * Represents a range of characters in the source.
+ */
+export type SourceRange = [number, number];
+/**
+ * What the rule is responsible for finding:
+ * - `problem` means the rule has noticed a potential error.
+ * - `suggestion` means the rule suggests an alternate or better approach.
+ * - `layout` means the rule is looking at spacing, indentation, etc.
+ */
+export type RuleType = "problem" | "suggestion" | "layout";
+/**
+ * The type of fix the rule can provide:
+ * - `code` means the rule can fix syntax.
+ * - `whitespace` means the rule can fix spacing and indentation.
+ */
+export type RuleFixType = "code" | "whitespace";
+/**
+ * An object containing visitor information for a rule. Each method is either the
+ * name of a node type or a selector, or is a method that will be called at specific
+ * times during the traversal.
+ */
+export interface RuleVisitor {
+ /**
+ * Called for each node in the AST or at specific times during the traversal.
+ */
+ [key: string]: (...args: any[]) => void;
+}
+/**
+ * Rule meta information used for documentation.
+ */
+export interface RulesMetaDocs {
+ /**
+ * A short description of the rule.
+ */
+ description?: string | undefined;
+ /**
+ * The URL to the documentation for the rule.
+ */
+ url?: string | undefined;
+ /**
+ * The category the rule falls under.
+ * @deprecated No longer used.
+ */
+ category?: string | undefined;
+ /**
+ * Indicates if the rule is generally recommended for all users.
+ */
+ recommended?: boolean | undefined;
+}
+/**
+ * Meta information about a rule.
+ */
+export interface RulesMeta {
+ /**
+ * Properties that are used when documenting the rule.
+ */
+ docs?: (RulesMetaDocs & ExtRuleDocs) | undefined;
+ /**
+ * The type of rule.
+ */
+ type?: RuleType | undefined;
+ /**
+ * The schema for the rule options. Required if the rule has options.
+ */
+ schema?: JSONSchema4 | JSONSchema4[] | false | undefined;
+ /**
+ * The messages that the rule can report.
+ */
+ messages?: Record;
+ /**
+ * The deprecated rules for the rule.
+ */
+ deprecated?: boolean | undefined;
+ /**
+ * When a rule is deprecated, indicates the rule ID(s) that should be used instead.
+ */
+ replacedBy?: string[] | undefined;
+ /**
+ * Indicates if the rule is fixable, and if so, what type of fix it provides.
+ */
+ fixable?: RuleFixType | undefined;
+ /**
+ * Indicates if the rule may provide suggestions.
+ */
+ hasSuggestions?: boolean | undefined;
+}
+/**
+ * Generic type for `RuleContext`.
+ */
+export interface RuleContextTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RuleOptions: unknown[];
+ Node: unknown;
+}
+/**
+ * Represents the context object that is passed to a rule. This object contains
+ * information about the current state of the linting process and is the rule's
+ * view into the outside world.
+ */
+export interface RuleContext {
+ /**
+ * The current working directory for the session.
+ */
+ cwd: string;
+ /**
+ * Returns the current working directory for the session.
+ * @deprecated Use `cwd` instead.
+ */
+ getCwd(): string;
+ /**
+ * The filename of the file being linted.
+ */
+ filename: string;
+ /**
+ * Returns the filename of the file being linted.
+ * @deprecated Use `filename` instead.
+ */
+ getFilename(): string;
+ /**
+ * The physical filename of the file being linted.
+ */
+ physicalFilename: string;
+ /**
+ * Returns the physical filename of the file being linted.
+ * @deprecated Use `physicalFilename` instead.
+ */
+ getPhysicalFilename(): string;
+ /**
+ * The source code object that the rule is running on.
+ */
+ sourceCode: Options["Code"];
+ /**
+ * Returns the source code object that the rule is running on.
+ * @deprecated Use `sourceCode` instead.
+ */
+ getSourceCode(): Options["Code"];
+ /**
+ * Shared settings for the configuration.
+ */
+ settings: SettingsConfig;
+ /**
+ * Parser-specific options for the configuration.
+ * @deprecated Use `languageOptions.parserOptions` instead.
+ */
+ parserOptions: Record;
+ /**
+ * The language options for the configuration.
+ */
+ languageOptions: Options["LangOptions"];
+ /**
+ * The CommonJS path to the parser used while parsing this file.
+ * @deprecated No longer used.
+ */
+ parserPath: string | undefined;
+ /**
+ * The rule ID.
+ */
+ id: string;
+ /**
+ * The rule's configured options.
+ */
+ options: Options["RuleOptions"];
+ /**
+ * The report function that the rule should use to report problems.
+ * @param violation The violation to report.
+ */
+ report(violation: ViolationReport): void;
+}
+/**
+ * Manager of text edits for a rule fix.
+ */
+export interface RuleTextEditor {
+ /**
+ * Inserts text after the specified node or token.
+ * @param syntaxElement The node or token to insert after.
+ * @param text The edit to insert after the node or token.
+ */
+ insertTextAfter(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Inserts text after the specified range.
+ * @param range The range to insert after.
+ * @param text The edit to insert after the range.
+ */
+ insertTextAfterRange(range: SourceRange, text: string): RuleTextEdit;
+ /**
+ * Inserts text before the specified node or token.
+ * @param syntaxElement A syntax element with location information to insert before.
+ * @param text The edit to insert before the node or token.
+ */
+ insertTextBefore(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Inserts text before the specified range.
+ * @param range The range to insert before.
+ * @param text The edit to insert before the range.
+ */
+ insertTextBeforeRange(range: SourceRange, text: string): RuleTextEdit;
+ /**
+ * Removes the specified node or token.
+ * @param syntaxElement A syntax element with location information to remove.
+ * @returns The edit to remove the node or token.
+ */
+ remove(syntaxElement: EditableSyntaxElement): RuleTextEdit;
+ /**
+ * Removes the specified range.
+ * @param range The range to remove.
+ * @returns The edit to remove the range.
+ */
+ removeRange(range: SourceRange): RuleTextEdit;
+ /**
+ * Replaces the specified node or token with the given text.
+ * @param syntaxElement A syntax element with location information to replace.
+ * @param text The text to replace the node or token with.
+ * @returns The edit to replace the node or token.
+ */
+ replaceText(syntaxElement: EditableSyntaxElement, text: string): RuleTextEdit;
+ /**
+ * Replaces the specified range with the given text.
+ * @param range The range to replace.
+ * @param text The text to replace the range with.
+ * @returns The edit to replace the range.
+ */
+ replaceTextRange(range: SourceRange, text: string): RuleTextEdit;
+}
+/**
+ * Represents a fix for a rule violation implemented as a text edit.
+ */
+export interface RuleTextEdit {
+ /**
+ * The range to replace.
+ */
+ range: SourceRange;
+ /**
+ * The text to insert.
+ */
+ text: string;
+}
+interface ViolationReportBase {
+ /**
+ * The type of node that the violation is for.
+ * @deprecated May be removed in the future.
+ */
+ nodeType?: string | undefined;
+ /**
+ * The data to insert into the message.
+ */
+ data?: Record | undefined;
+ /**
+ * The fix to be applied for the violation.
+ * @param fixer The text editor to apply the fix.
+ * @returns The fix(es) for the violation.
+ */
+ fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null;
+ /**
+ * An array of suggested fixes for the problem. These fixes may change the
+ * behavior of the code, so they are not applied automatically.
+ */
+ suggest?: SuggestedEdit[];
+}
+type ViolationMessage = {
+ message: string;
+} | {
+ messageId: string;
+};
+type ViolationLocation = {
+ loc: SourceLocation;
+} | {
+ node: Node;
+};
+export type ViolationReport = ViolationReportBase & ViolationMessage & ViolationLocation;
+interface SuggestedEditBase {
+ /**
+ * The data to insert into the message.
+ */
+ data?: Record | undefined;
+ /**
+ * The fix to be applied for the suggestion.
+ * @param fixer The text editor to apply the fix.
+ * @returns The fix for the suggestion.
+ */
+ fix?(fixer: RuleTextEditor): RuleTextEdit | Iterable | null;
+}
+type SuggestionMessage = {
+ desc: string;
+} | {
+ messageId: string;
+};
+/**
+ * A suggested edit for a rule violation.
+ */
+export type SuggestedEdit = SuggestedEditBase & SuggestionMessage;
+/**
+ * Generic options for the `RuleDefinition` type.
+ */
+export interface RuleDefinitionTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RuleOptions: unknown[];
+ Visitor: RuleVisitor;
+ Node: unknown;
+ MessageIds: string;
+ ExtRuleDocs: unknown;
+}
+/**
+ * The definition of an ESLint rule.
+ */
+export interface RuleDefinition {
+ /**
+ * The meta information for the rule.
+ */
+ meta?: RulesMeta;
+ /**
+ * Creates the visitor that ESLint uses to apply the rule during traversal.
+ * @param context The rule context.
+ * @returns The rule visitor.
+ */
+ create(context: RuleContext<{
+ LangOptions: Options["LangOptions"];
+ Code: Options["Code"];
+ RuleOptions: Options["RuleOptions"];
+ Node: Options["Node"];
+ }>): Options["Visitor"];
+}
+/**
+ * The human readable severity level used in a configuration.
+ */
+export type SeverityName = "off" | "warn" | "error";
+/**
+ * The numeric severity level for a rule.
+ *
+ * - `0` means off.
+ * - `1` means warn.
+ * - `2` means error.
+ */
+export type SeverityLevel = 0 | 1 | 2;
+/**
+ * The severity of a rule in a configuration.
+ */
+export type Severity = SeverityName | SeverityLevel;
+/**
+ * Represents the configuration options for the core linter.
+ */
+export interface LinterOptionsConfig {
+ /**
+ * Indicates whether or not inline configuration is evaluated.
+ */
+ noInlineConfig?: boolean;
+ /**
+ * Indicates what to do when an unused disable directive is found.
+ */
+ reportUnusedDisableDirectives?: boolean | Severity;
+}
+/**
+ * Shared settings that are accessible from within plugins.
+ */
+export type SettingsConfig = Record;
+/**
+ * The configuration for a rule.
+ */
+export type RuleConfig = Severity | [Severity, ...unknown[]];
+/**
+ * A collection of rules and their configurations.
+ */
+export type RulesConfig = Record;
+/**
+ * Generic options for the `Language` type.
+ */
+export interface LanguageTypeOptions {
+ LangOptions: LanguageOptions;
+ Code: SourceCode;
+ RootNode: unknown;
+ Node: unknown;
+}
+/**
+ * Represents a plugin language.
+ */
+export interface Language {
+ /**
+ * Indicates how ESLint should read the file.
+ */
+ fileType: "text";
+ /**
+ * First line number returned from the parser (text mode only).
+ */
+ lineStart: 0 | 1;
+ /**
+ * First column number returned from the parser (text mode only).
+ */
+ columnStart: 0 | 1;
+ /**
+ * The property to read the node type from. Used in selector querying.
+ */
+ nodeTypeKey: string;
+ /**
+ * The traversal path that tools should take when evaluating the AST
+ */
+ visitorKeys?: Record;
+ /**
+ * Default language options. User-defined options are merged with this object.
+ */
+ defaultLanguageOptions?: LanguageOptions;
+ /**
+ * Validates languageOptions for this language.
+ */
+ validateLanguageOptions(languageOptions: Options["LangOptions"]): void;
+ /**
+ * Normalizes languageOptions for this language.
+ */
+ normalizeLanguageOptions?(languageOptions: Options["LangOptions"]): Options["LangOptions"];
+ /**
+ * Helper for esquery that allows languages to match nodes against
+ * class. esquery currently has classes like `function` that will
+ * match all the various function nodes. This method allows languages
+ * to implement similar shorthands.
+ */
+ matchesSelectorClass?(className: string, node: Options["Node"], ancestry: Options["Node"][]): boolean;
+ /**
+ * Parses the given file input into its component parts. This file should not
+ * throws errors for parsing errors but rather should return any parsing
+ * errors as parse of the ParseResult object.
+ */
+ parse(file: File, context: LanguageContext): ParseResult;
+ /**
+ * Creates SourceCode object that ESLint uses to work with a file.
+ */
+ createSourceCode(file: File, input: OkParseResult, context: LanguageContext): Options["Code"];
+}
+/**
+ * Plugin-defined options for the language.
+ */
+export type LanguageOptions = Record;
+/**
+ * The context object that is passed to the language plugin methods.
+ */
+export interface LanguageContext {
+ languageOptions: LangOptions;
+}
+/**
+ * Represents a file read by ESLint.
+ */
+export interface File {
+ /**
+ * The path that ESLint uses for this file. May be a virtual path
+ * if it was returned by a processor.
+ */
+ path: string;
+ /**
+ * The path to the file on disk. This always maps directly to a file
+ * regardless of whether it was returned from a processor.
+ */
+ physicalPath: string;
+ /**
+ * Indicates if the original source contained a byte-order marker.
+ * ESLint strips the BOM from the `body`, but this info is needed
+ * to correctly apply autofixing.
+ */
+ bom: boolean;
+ /**
+ * The body of the file to parse.
+ */
+ body: string | Uint8Array;
+}
+/**
+ * Represents the successful result of parsing a file.
+ */
+export interface OkParseResult {
+ /**
+ * Indicates if the parse was successful. If true, the parse was successful
+ * and ESLint should continue on to create a SourceCode object and run rules;
+ * if false, ESLint should just report the error(s) without doing anything
+ * else.
+ */
+ ok: true;
+ /**
+ * The abstract syntax tree created by the parser. (only when ok: true)
+ */
+ ast: RootNode;
+ /**
+ * Any additional data that the parser wants to provide.
+ */
+ [key: string]: any;
+}
+/**
+ * Represents the unsuccessful result of parsing a file.
+ */
+export interface NotOkParseResult {
+ /**
+ * Indicates if the parse was successful. If true, the parse was successful
+ * and ESLint should continue on to create a SourceCode object and run rules;
+ * if false, ESLint should just report the error(s) without doing anything
+ * else.
+ */
+ ok: false;
+ /**
+ * Any parsing errors, whether fatal or not. (only when ok: false)
+ */
+ errors: FileError[];
+ /**
+ * Any additional data that the parser wants to provide.
+ */
+ [key: string]: any;
+}
+export type ParseResult = OkParseResult | NotOkParseResult;
+/**
+ * Represents inline configuration found in the source code.
+ */
+interface InlineConfigElement {
+ /**
+ * The location of the inline config element.
+ */
+ loc: SourceLocation;
+ /**
+ * The interpreted configuration from the inline config element.
+ */
+ config: {
+ rules: RulesConfig;
+ };
+}
+/**
+ * Generic options for the `SourceCodeBase` type.
+ */
+interface SourceCodeBaseTypeOptions {
+ LangOptions: LanguageOptions;
+ RootNode: unknown;
+ SyntaxElementWithLoc: unknown;
+ ConfigNode: unknown;
+}
+/**
+ * Represents the basic interface for a source code object.
+ */
+interface SourceCodeBase {
+ /**
+ * Root of the AST.
+ */
+ ast: Options["RootNode"];
+ /**
+ * The traversal path that tools should take when evaluating the AST.
+ * When present, this overrides the `visitorKeys` on the language for
+ * just this source code object.
+ */
+ visitorKeys?: Record;
+ /**
+ * Retrieves the equivalent of `loc` for a given node or token.
+ * @param syntaxElement The node or token to get the location for.
+ * @returns The location of the node or token.
+ */
+ getLoc(syntaxElement: Options["SyntaxElementWithLoc"]): SourceLocation;
+ /**
+ * Retrieves the equivalent of `range` for a given node or token.
+ * @param syntaxElement The node or token to get the range for.
+ * @returns The range of the node or token.
+ */
+ getRange(syntaxElement: Options["SyntaxElementWithLoc"]): SourceRange;
+ /**
+ * Traversal of AST.
+ */
+ traverse(): Iterable;
+ /**
+ * Applies language options passed in from the ESLint core.
+ */
+ applyLanguageOptions?(languageOptions: Options["LangOptions"]): void;
+ /**
+ * Return all of the inline areas where ESLint should be disabled/enabled
+ * along with any problems found in evaluating the directives.
+ */
+ getDisableDirectives?(): {
+ directives: Directive[];
+ problems: FileProblem[];
+ };
+ /**
+ * Returns an array of all inline configuration nodes found in the
+ * source code.
+ */
+ getInlineConfigNodes?(): Options["ConfigNode"][];
+ /**
+ * Applies configuration found inside of the source code. This method is only
+ * called when ESLint is running with inline configuration allowed.
+ */
+ applyInlineConfig?(): {
+ configs: InlineConfigElement[];
+ problems: FileProblem[];
+ };
+ /**
+ * Called by ESLint core to indicate that it has finished providing
+ * information. We now add in all the missing variables and ensure that
+ * state-changing methods cannot be called by rules.
+ * @returns {void}
+ */
+ finalize?(): void;
+}
+/**
+ * Represents the source of a text file being linted.
+ */
+export interface TextSourceCode extends SourceCodeBase {
+ /**
+ * The body of the file that you'd like rule developers to access.
+ */
+ text: string;
+}
+/**
+ * Represents the source of a binary file being linted.
+ */
+export interface BinarySourceCode extends SourceCodeBase {
+ /**
+ * The body of the file that you'd like rule developers to access.
+ */
+ body: Uint8Array;
+}
+export type SourceCode = TextSourceCode | BinarySourceCode;
+/**
+ * Represents a traversal step visiting the AST.
+ */
+export interface VisitTraversalStep {
+ kind: 1;
+ target: unknown;
+ phase: 1 | 2;
+ args: unknown[];
+}
+/**
+ * Represents a traversal step calling a function.
+ */
+export interface CallTraversalStep {
+ kind: 2;
+ target: string;
+ phase?: string;
+ args: unknown[];
+}
+export type TraversalStep = VisitTraversalStep | CallTraversalStep;
+/**
+ * The type of disable directive. This determines how ESLint will disable rules.
+ */
+export type DirectiveType = "disable" | "enable" | "disable-line" | "disable-next-line";
+/**
+ * Represents a disable directive.
+ */
+export interface Directive {
+ /**
+ * The type of directive.
+ */
+ type: DirectiveType;
+ /**
+ * The node of the directive. May be in the AST or a comment/token.
+ */
+ node: unknown;
+ /**
+ * The value of the directive.
+ */
+ value: string;
+ /**
+ * The justification for the directive.
+ */
+ justification?: string;
+}
+export {};
diff --git a/node_modules/@eslint/core/package.json b/node_modules/@eslint/core/package.json
new file mode 100644
index 00000000000..797e3a656b4
--- /dev/null
+++ b/node_modules/@eslint/core/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "@eslint/core",
+ "version": "0.9.0",
+ "description": "Runtime-agnostic core of ESLint",
+ "type": "module",
+ "types": "./dist/esm/types.d.ts",
+ "exports": {
+ "types": {
+ "import": "./dist/esm/types.d.ts",
+ "require": "./dist/cjs/types.d.cts"
+ }
+ },
+ "files": [
+ "dist"
+ ],
+ "publishConfig": {
+ "access": "public"
+ },
+ "scripts": {
+ "build:cts": "node -e \"fs.cpSync('dist/esm/types.d.ts', 'dist/cjs/types.d.cts')\"",
+ "build": "tsc && npm run build:cts",
+ "test:jsr": "npx jsr@latest publish --dry-run"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/eslint/rewrite.git"
+ },
+ "keywords": [
+ "eslint",
+ "core"
+ ],
+ "author": "Nicholas C. Zakas",
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/eslint/rewrite/issues"
+ },
+ "homepage": "https://github.com/eslint/rewrite#readme",
+ "devDependencies": {
+ "json-schema": "^0.4.0",
+ "typescript": "^5.4.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+}
diff --git a/node_modules/@eslint/eslintrc/LICENSE b/node_modules/@eslint/eslintrc/LICENSE
new file mode 100644
index 00000000000..b607bb36e96
--- /dev/null
+++ b/node_modules/@eslint/eslintrc/LICENSE
@@ -0,0 +1,19 @@
+Copyright OpenJS Foundation and other contributors,
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/@eslint/eslintrc/README.md b/node_modules/@eslint/eslintrc/README.md
new file mode 100644
index 00000000000..cdcf0a6364e
--- /dev/null
+++ b/node_modules/@eslint/eslintrc/README.md
@@ -0,0 +1,126 @@
+# ESLintRC Library
+
+This repository contains the legacy ESLintRC configuration file format for ESLint. This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs.
+
+**Note:** This package is frozen except for critical bug fixes as ESLint moves to a new config system.
+
+## Installation
+
+You can install the package as follows:
+
+```
+npm install @eslint/eslintrc --save-dev
+
+# or
+
+yarn add @eslint/eslintrc -D
+```
+
+## Usage (ESM)
+
+The primary class in this package is `FlatCompat`, which is a utility to translate ESLintRC-style configs into flat configs. Here's how you use it inside of your `eslint.config.js` file:
+
+```js
+import { FlatCompat } from "@eslint/eslintrc";
+import js from "@eslint/js";
+import path from "path";
+import { fileURLToPath } from "url";
+
+// mimic CommonJS variables -- not needed if using CommonJS
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname, // optional; default: process.cwd()
+ resolvePluginsRelativeTo: __dirname, // optional
+ recommendedConfig: js.configs.recommended, // optional unless you're using "eslint:recommended"
+ allConfig: js.configs.all, // optional unless you're using "eslint:all"
+});
+
+export default [
+
+ // mimic ESLintRC-style extends
+ ...compat.extends("standard", "example", "plugin:react/recommended"),
+
+ // mimic environments
+ ...compat.env({
+ es2020: true,
+ node: true
+ }),
+
+ // mimic plugins
+ ...compat.plugins("jsx-a11y", "react"),
+
+ // translate an entire config
+ ...compat.config({
+ plugins: ["jsx-a11y", "react"],
+ extends: "standard",
+ env: {
+ es2020: true,
+ node: true
+ },
+ rules: {
+ semi: "error"
+ }
+ })
+];
+```
+
+## Usage (CommonJS)
+
+Using `FlatCompat` in CommonJS files is similar to ESM, but you'll use `require()` and `module.exports` instead of `import` and `export`. Here's how you use it inside of your `eslint.config.js` CommonJS file:
+
+```js
+const { FlatCompat } = require("@eslint/eslintrc");
+const js = require("@eslint/js");
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname, // optional; default: process.cwd()
+ resolvePluginsRelativeTo: __dirname, // optional
+ recommendedConfig: js.configs.recommended, // optional unless using "eslint:recommended"
+ allConfig: js.configs.all, // optional unless using "eslint:all"
+});
+
+module.exports = [
+
+ // mimic ESLintRC-style extends
+ ...compat.extends("standard", "example", "plugin:react/recommended"),
+
+ // mimic environments
+ ...compat.env({
+ es2020: true,
+ node: true
+ }),
+
+ // mimic plugins
+ ...compat.plugins("jsx-a11y", "react"),
+
+ // translate an entire config
+ ...compat.config({
+ plugins: ["jsx-a11y", "react"],
+ extends: "standard",
+ env: {
+ es2020: true,
+ node: true
+ },
+ rules: {
+ semi: "error"
+ }
+ })
+];
+```
+
+## Troubleshooting
+
+**TypeError: Missing parameter 'recommendedConfig' in FlatCompat constructor**
+
+The `recommendedConfig` option is required when any config uses `eslint:recommended`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:recommended` config.
+
+**TypeError: Missing parameter 'allConfig' in FlatCompat constructor**
+
+The `allConfig` option is required when any config uses `eslint:all`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:all` config.
+
+
+## License
+
+MIT License
diff --git a/node_modules/@eslint/eslintrc/conf/config-schema.js b/node_modules/@eslint/eslintrc/conf/config-schema.js
new file mode 100644
index 00000000000..ada90e135ca
--- /dev/null
+++ b/node_modules/@eslint/eslintrc/conf/config-schema.js
@@ -0,0 +1,79 @@
+/**
+ * @fileoverview Defines a schema for configs.
+ * @author Sylvan Mably
+ */
+
+const baseConfigProperties = {
+ $schema: { type: "string" },
+ env: { type: "object" },
+ extends: { $ref: "#/definitions/stringOrStrings" },
+ globals: { type: "object" },
+ overrides: {
+ type: "array",
+ items: { $ref: "#/definitions/overrideConfig" },
+ additionalItems: false
+ },
+ parser: { type: ["string", "null"] },
+ parserOptions: { type: "object" },
+ plugins: { type: "array" },
+ processor: { type: "string" },
+ rules: { type: "object" },
+ settings: { type: "object" },
+ noInlineConfig: { type: "boolean" },
+ reportUnusedDisableDirectives: { type: "boolean" },
+
+ ecmaFeatures: { type: "object" } // deprecated; logs a warning when used
+};
+
+const configSchema = {
+ definitions: {
+ stringOrStrings: {
+ oneOf: [
+ { type: "string" },
+ {
+ type: "array",
+ items: { type: "string" },
+ additionalItems: false
+ }
+ ]
+ },
+ stringOrStringsRequired: {
+ oneOf: [
+ { type: "string" },
+ {
+ type: "array",
+ items: { type: "string" },
+ additionalItems: false,
+ minItems: 1
+ }
+ ]
+ },
+
+ // Config at top-level.
+ objectConfig: {
+ type: "object",
+ properties: {
+ root: { type: "boolean" },
+ ignorePatterns: { $ref: "#/definitions/stringOrStrings" },
+ ...baseConfigProperties
+ },
+ additionalProperties: false
+ },
+
+ // Config in `overrides`.
+ overrideConfig: {
+ type: "object",
+ properties: {
+ excludedFiles: { $ref: "#/definitions/stringOrStrings" },
+ files: { $ref: "#/definitions/stringOrStringsRequired" },
+ ...baseConfigProperties
+ },
+ required: ["files"],
+ additionalProperties: false
+ }
+ },
+
+ $ref: "#/definitions/objectConfig"
+};
+
+export default configSchema;
diff --git a/node_modules/@eslint/eslintrc/conf/environments.js b/node_modules/@eslint/eslintrc/conf/environments.js
new file mode 100644
index 00000000000..50d1b1d1066
--- /dev/null
+++ b/node_modules/@eslint/eslintrc/conf/environments.js
@@ -0,0 +1,215 @@
+/**
+ * @fileoverview Defines environment settings and globals.
+ * @author Elan Shanker
+ */
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+import globals from "globals";
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * Get the object that has difference.
+ * @param {Record} current The newer object.
+ * @param {Record} prev The older object.
+ * @returns {Record} The difference object.
+ */
+function getDiff(current, prev) {
+ const retv = {};
+
+ for (const [key, value] of Object.entries(current)) {
+ if (!Object.hasOwnProperty.call(prev, key)) {
+ retv[key] = value;
+ }
+ }
+
+ return retv;
+}
+
+const newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...
+const newGlobals2017 = {
+ Atomics: false,
+ SharedArrayBuffer: false
+};
+const newGlobals2020 = {
+ BigInt: false,
+ BigInt64Array: false,
+ BigUint64Array: false,
+ globalThis: false
+};
+
+const newGlobals2021 = {
+ AggregateError: false,
+ FinalizationRegistry: false,
+ WeakRef: false
+};
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+/** @type {Map} */
+export default new Map(Object.entries({
+
+ // Language
+ builtin: {
+ globals: globals.es5
+ },
+ es6: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 6
+ }
+ },
+ es2015: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 6
+ }
+ },
+ es2016: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 7
+ }
+ },
+ es2017: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 8
+ }
+ },
+ es2018: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 9
+ }
+ },
+ es2019: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 10
+ }
+ },
+ es2020: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },
+ parserOptions: {
+ ecmaVersion: 11
+ }
+ },
+ es2021: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 12
+ }
+ },
+ es2022: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 13
+ }
+ },
+ es2023: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 14
+ }
+ },
+ es2024: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 15
+ }
+ },
+
+ // Platforms
+ browser: {
+ globals: globals.browser
+ },
+ node: {
+ globals: globals.node,
+ parserOptions: {
+ ecmaFeatures: {
+ globalReturn: true
+ }
+ }
+ },
+ "shared-node-browser": {
+ globals: globals["shared-node-browser"]
+ },
+ worker: {
+ globals: globals.worker
+ },
+ serviceworker: {
+ globals: globals.serviceworker
+ },
+
+ // Frameworks
+ commonjs: {
+ globals: globals.commonjs,
+ parserOptions: {
+ ecmaFeatures: {
+ globalReturn: true
+ }
+ }
+ },
+ amd: {
+ globals: globals.amd
+ },
+ mocha: {
+ globals: globals.mocha
+ },
+ jasmine: {
+ globals: globals.jasmine
+ },
+ jest: {
+ globals: globals.jest
+ },
+ phantomjs: {
+ globals: globals.phantomjs
+ },
+ jquery: {
+ globals: globals.jquery
+ },
+ qunit: {
+ globals: globals.qunit
+ },
+ prototypejs: {
+ globals: globals.prototypejs
+ },
+ shelljs: {
+ globals: globals.shelljs
+ },
+ meteor: {
+ globals: globals.meteor
+ },
+ mongo: {
+ globals: globals.mongo
+ },
+ protractor: {
+ globals: globals.protractor
+ },
+ applescript: {
+ globals: globals.applescript
+ },
+ nashorn: {
+ globals: globals.nashorn
+ },
+ atomtest: {
+ globals: globals.atomtest
+ },
+ embertest: {
+ globals: globals.embertest
+ },
+ webextensions: {
+ globals: globals.webextensions
+ },
+ greasemonkey: {
+ globals: globals.greasemonkey
+ }
+}));
diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs
new file mode 100644
index 00000000000..c0414cfd65d
--- /dev/null
+++ b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs
@@ -0,0 +1,1203 @@
+'use strict';
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+var util = require('util');
+var path = require('path');
+var Ajv = require('ajv');
+var globals = require('globals');
+
+function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
+
+var util__default = /*#__PURE__*/_interopDefaultLegacy(util);
+var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
+var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv);
+var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals);
+
+/**
+ * @fileoverview Config file operations. This file must be usable in the browser,
+ * so no Node-specific code can be here.
+ * @author Nicholas C. Zakas
+ */
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+
+const RULE_SEVERITY_STRINGS = ["off", "warn", "error"],
+ RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {
+ map[value] = index;
+ return map;
+ }, {}),
+ VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"];
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+/**
+ * Normalizes the severity value of a rule's configuration to a number
+ * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally
+ * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0),
+ * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array
+ * whose first element is one of the above values. Strings are matched case-insensitively.
+ * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.
+ */
+function getRuleSeverity(ruleConfig) {
+ const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;
+
+ if (severityValue === 0 || severityValue === 1 || severityValue === 2) {
+ return severityValue;
+ }
+
+ if (typeof severityValue === "string") {
+ return RULE_SEVERITY[severityValue.toLowerCase()] || 0;
+ }
+
+ return 0;
+}
+
+/**
+ * Converts old-style severity settings (0, 1, 2) into new-style
+ * severity settings (off, warn, error) for all rules. Assumption is that severity
+ * values have already been validated as correct.
+ * @param {Object} config The config object to normalize.
+ * @returns {void}
+ */
+function normalizeToStrings(config) {
+
+ if (config.rules) {
+ Object.keys(config.rules).forEach(ruleId => {
+ const ruleConfig = config.rules[ruleId];
+
+ if (typeof ruleConfig === "number") {
+ config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];
+ } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") {
+ ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];
+ }
+ });
+ }
+}
+
+/**
+ * Determines if the severity for the given rule configuration represents an error.
+ * @param {int|string|Array} ruleConfig The configuration for an individual rule.
+ * @returns {boolean} True if the rule represents an error, false if not.
+ */
+function isErrorSeverity(ruleConfig) {
+ return getRuleSeverity(ruleConfig) === 2;
+}
+
+/**
+ * Checks whether a given config has valid severity or not.
+ * @param {number|string|Array} ruleConfig The configuration for an individual rule.
+ * @returns {boolean} `true` if the configuration has valid severity.
+ */
+function isValidSeverity(ruleConfig) {
+ let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;
+
+ if (typeof severity === "string") {
+ severity = severity.toLowerCase();
+ }
+ return VALID_SEVERITIES.indexOf(severity) !== -1;
+}
+
+/**
+ * Checks whether every rule of a given config has valid severity or not.
+ * @param {Object} config The configuration for rules.
+ * @returns {boolean} `true` if the configuration has valid severity.
+ */
+function isEverySeverityValid(config) {
+ return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));
+}
+
+/**
+ * Normalizes a value for a global in a config
+ * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in
+ * a global directive comment
+ * @returns {("readable"|"writeable"|"off")} The value normalized as a string
+ * @throws Error if global value is invalid
+ */
+function normalizeConfigGlobal(configuredValue) {
+ switch (configuredValue) {
+ case "off":
+ return "off";
+
+ case true:
+ case "true":
+ case "writeable":
+ case "writable":
+ return "writable";
+
+ case null:
+ case false:
+ case "false":
+ case "readable":
+ case "readonly":
+ return "readonly";
+
+ default:
+ throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);
+ }
+}
+
+var ConfigOps = {
+ __proto__: null,
+ getRuleSeverity: getRuleSeverity,
+ normalizeToStrings: normalizeToStrings,
+ isErrorSeverity: isErrorSeverity,
+ isValidSeverity: isValidSeverity,
+ isEverySeverityValid: isEverySeverityValid,
+ normalizeConfigGlobal: normalizeConfigGlobal
+};
+
+/**
+ * @fileoverview Provide the function that emits deprecation warnings.
+ * @author Toru Nagashima
+ */
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+
+// Defitions for deprecation warnings.
+const deprecationWarningMessages = {
+ ESLINT_LEGACY_ECMAFEATURES:
+ "The 'ecmaFeatures' config file property is deprecated and has no effect.",
+ ESLINT_PERSONAL_CONFIG_LOAD:
+ "'~/.eslintrc.*' config files have been deprecated. " +
+ "Please use a config file per project or the '--config' option.",
+ ESLINT_PERSONAL_CONFIG_SUPPRESS:
+ "'~/.eslintrc.*' config files have been deprecated. " +
+ "Please remove it or add 'root:true' to the config files in your " +
+ "projects in order to avoid loading '~/.eslintrc.*' accidentally."
+};
+
+const sourceFileErrorCache = new Set();
+
+/**
+ * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted
+ * for each unique file path, but repeated invocations with the same file path have no effect.
+ * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.
+ * @param {string} source The name of the configuration source to report the warning for.
+ * @param {string} errorCode The warning message to show.
+ * @returns {void}
+ */
+function emitDeprecationWarning(source, errorCode) {
+ const cacheKey = JSON.stringify({ source, errorCode });
+
+ if (sourceFileErrorCache.has(cacheKey)) {
+ return;
+ }
+ sourceFileErrorCache.add(cacheKey);
+
+ const rel = path__default["default"].relative(process.cwd(), source);
+ const message = deprecationWarningMessages[errorCode];
+
+ process.emitWarning(
+ `${message} (found in "${rel}")`,
+ "DeprecationWarning",
+ errorCode
+ );
+}
+
+/**
+ * @fileoverview The instance of Ajv validator.
+ * @author Evgeny Poberezkin
+ */
+
+//-----------------------------------------------------------------------------
+// Helpers
+//-----------------------------------------------------------------------------
+
+/*
+ * Copied from ajv/lib/refs/json-schema-draft-04.json
+ * The MIT License (MIT)
+ * Copyright (c) 2015-2017 Evgeny Poberezkin
+ */
+const metaSchema = {
+ id: "http://json-schema.org/draft-04/schema#",
+ $schema: "http://json-schema.org/draft-04/schema#",
+ description: "Core schema meta-schema",
+ definitions: {
+ schemaArray: {
+ type: "array",
+ minItems: 1,
+ items: { $ref: "#" }
+ },
+ positiveInteger: {
+ type: "integer",
+ minimum: 0
+ },
+ positiveIntegerDefault0: {
+ allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }]
+ },
+ simpleTypes: {
+ enum: ["array", "boolean", "integer", "null", "number", "object", "string"]
+ },
+ stringArray: {
+ type: "array",
+ items: { type: "string" },
+ minItems: 1,
+ uniqueItems: true
+ }
+ },
+ type: "object",
+ properties: {
+ id: {
+ type: "string"
+ },
+ $schema: {
+ type: "string"
+ },
+ title: {
+ type: "string"
+ },
+ description: {
+ type: "string"
+ },
+ default: { },
+ multipleOf: {
+ type: "number",
+ minimum: 0,
+ exclusiveMinimum: true
+ },
+ maximum: {
+ type: "number"
+ },
+ exclusiveMaximum: {
+ type: "boolean",
+ default: false
+ },
+ minimum: {
+ type: "number"
+ },
+ exclusiveMinimum: {
+ type: "boolean",
+ default: false
+ },
+ maxLength: { $ref: "#/definitions/positiveInteger" },
+ minLength: { $ref: "#/definitions/positiveIntegerDefault0" },
+ pattern: {
+ type: "string",
+ format: "regex"
+ },
+ additionalItems: {
+ anyOf: [
+ { type: "boolean" },
+ { $ref: "#" }
+ ],
+ default: { }
+ },
+ items: {
+ anyOf: [
+ { $ref: "#" },
+ { $ref: "#/definitions/schemaArray" }
+ ],
+ default: { }
+ },
+ maxItems: { $ref: "#/definitions/positiveInteger" },
+ minItems: { $ref: "#/definitions/positiveIntegerDefault0" },
+ uniqueItems: {
+ type: "boolean",
+ default: false
+ },
+ maxProperties: { $ref: "#/definitions/positiveInteger" },
+ minProperties: { $ref: "#/definitions/positiveIntegerDefault0" },
+ required: { $ref: "#/definitions/stringArray" },
+ additionalProperties: {
+ anyOf: [
+ { type: "boolean" },
+ { $ref: "#" }
+ ],
+ default: { }
+ },
+ definitions: {
+ type: "object",
+ additionalProperties: { $ref: "#" },
+ default: { }
+ },
+ properties: {
+ type: "object",
+ additionalProperties: { $ref: "#" },
+ default: { }
+ },
+ patternProperties: {
+ type: "object",
+ additionalProperties: { $ref: "#" },
+ default: { }
+ },
+ dependencies: {
+ type: "object",
+ additionalProperties: {
+ anyOf: [
+ { $ref: "#" },
+ { $ref: "#/definitions/stringArray" }
+ ]
+ }
+ },
+ enum: {
+ type: "array",
+ minItems: 1,
+ uniqueItems: true
+ },
+ type: {
+ anyOf: [
+ { $ref: "#/definitions/simpleTypes" },
+ {
+ type: "array",
+ items: { $ref: "#/definitions/simpleTypes" },
+ minItems: 1,
+ uniqueItems: true
+ }
+ ]
+ },
+ format: { type: "string" },
+ allOf: { $ref: "#/definitions/schemaArray" },
+ anyOf: { $ref: "#/definitions/schemaArray" },
+ oneOf: { $ref: "#/definitions/schemaArray" },
+ not: { $ref: "#" }
+ },
+ dependencies: {
+ exclusiveMaximum: ["maximum"],
+ exclusiveMinimum: ["minimum"]
+ },
+ default: { }
+};
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+var ajvOrig = (additionalOptions = {}) => {
+ const ajv = new Ajv__default["default"]({
+ meta: false,
+ useDefaults: true,
+ validateSchema: false,
+ missingRefs: "ignore",
+ verbose: true,
+ schemaId: "auto",
+ ...additionalOptions
+ });
+
+ ajv.addMetaSchema(metaSchema);
+ // eslint-disable-next-line no-underscore-dangle
+ ajv._opts.defaultMeta = metaSchema.id;
+
+ return ajv;
+};
+
+/**
+ * @fileoverview Applies default rule options
+ * @author JoshuaKGoldberg
+ */
+
+/**
+ * Check if the variable contains an object strictly rejecting arrays
+ * @param {unknown} value an object
+ * @returns {boolean} Whether value is an object
+ */
+function isObjectNotArray(value) {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
+
+/**
+ * Deeply merges second on top of first, creating a new {} object if needed.
+ * @param {T} first Base, default value.
+ * @param {U} second User-specified value.
+ * @returns {T | U | (T & U)} Merged equivalent of second on top of first.
+ */
+function deepMergeObjects(first, second) {
+ if (second === void 0) {
+ return first;
+ }
+
+ if (!isObjectNotArray(first) || !isObjectNotArray(second)) {
+ return second;
+ }
+
+ const result = { ...first, ...second };
+
+ for (const key of Object.keys(second)) {
+ if (Object.prototype.propertyIsEnumerable.call(first, key)) {
+ result[key] = deepMergeObjects(first[key], second[key]);
+ }
+ }
+
+ return result;
+}
+
+/**
+ * Deeply merges second on top of first, creating a new [] array if needed.
+ * @param {T[] | undefined} first Base, default values.
+ * @param {U[] | undefined} second User-specified values.
+ * @returns {(T | U | (T & U))[]} Merged equivalent of second on top of first.
+ */
+function deepMergeArrays(first, second) {
+ if (!first || !second) {
+ return second || first || [];
+ }
+
+ return [
+ ...first.map((value, i) => deepMergeObjects(value, second[i])),
+ ...second.slice(first.length)
+ ];
+}
+
+/**
+ * @fileoverview Defines a schema for configs.
+ * @author Sylvan Mably
+ */
+
+const baseConfigProperties = {
+ $schema: { type: "string" },
+ env: { type: "object" },
+ extends: { $ref: "#/definitions/stringOrStrings" },
+ globals: { type: "object" },
+ overrides: {
+ type: "array",
+ items: { $ref: "#/definitions/overrideConfig" },
+ additionalItems: false
+ },
+ parser: { type: ["string", "null"] },
+ parserOptions: { type: "object" },
+ plugins: { type: "array" },
+ processor: { type: "string" },
+ rules: { type: "object" },
+ settings: { type: "object" },
+ noInlineConfig: { type: "boolean" },
+ reportUnusedDisableDirectives: { type: "boolean" },
+
+ ecmaFeatures: { type: "object" } // deprecated; logs a warning when used
+};
+
+const configSchema = {
+ definitions: {
+ stringOrStrings: {
+ oneOf: [
+ { type: "string" },
+ {
+ type: "array",
+ items: { type: "string" },
+ additionalItems: false
+ }
+ ]
+ },
+ stringOrStringsRequired: {
+ oneOf: [
+ { type: "string" },
+ {
+ type: "array",
+ items: { type: "string" },
+ additionalItems: false,
+ minItems: 1
+ }
+ ]
+ },
+
+ // Config at top-level.
+ objectConfig: {
+ type: "object",
+ properties: {
+ root: { type: "boolean" },
+ ignorePatterns: { $ref: "#/definitions/stringOrStrings" },
+ ...baseConfigProperties
+ },
+ additionalProperties: false
+ },
+
+ // Config in `overrides`.
+ overrideConfig: {
+ type: "object",
+ properties: {
+ excludedFiles: { $ref: "#/definitions/stringOrStrings" },
+ files: { $ref: "#/definitions/stringOrStringsRequired" },
+ ...baseConfigProperties
+ },
+ required: ["files"],
+ additionalProperties: false
+ }
+ },
+
+ $ref: "#/definitions/objectConfig"
+};
+
+/**
+ * @fileoverview Defines environment settings and globals.
+ * @author Elan Shanker
+ */
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+/**
+ * Get the object that has difference.
+ * @param {Record} current The newer object.
+ * @param {Record} prev The older object.
+ * @returns {Record} The difference object.
+ */
+function getDiff(current, prev) {
+ const retv = {};
+
+ for (const [key, value] of Object.entries(current)) {
+ if (!Object.hasOwnProperty.call(prev, key)) {
+ retv[key] = value;
+ }
+ }
+
+ return retv;
+}
+
+const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ...
+const newGlobals2017 = {
+ Atomics: false,
+ SharedArrayBuffer: false
+};
+const newGlobals2020 = {
+ BigInt: false,
+ BigInt64Array: false,
+ BigUint64Array: false,
+ globalThis: false
+};
+
+const newGlobals2021 = {
+ AggregateError: false,
+ FinalizationRegistry: false,
+ WeakRef: false
+};
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+/** @type {Map} */
+var environments = new Map(Object.entries({
+
+ // Language
+ builtin: {
+ globals: globals__default["default"].es5
+ },
+ es6: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 6
+ }
+ },
+ es2015: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 6
+ }
+ },
+ es2016: {
+ globals: newGlobals2015,
+ parserOptions: {
+ ecmaVersion: 7
+ }
+ },
+ es2017: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 8
+ }
+ },
+ es2018: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 9
+ }
+ },
+ es2019: {
+ globals: { ...newGlobals2015, ...newGlobals2017 },
+ parserOptions: {
+ ecmaVersion: 10
+ }
+ },
+ es2020: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },
+ parserOptions: {
+ ecmaVersion: 11
+ }
+ },
+ es2021: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 12
+ }
+ },
+ es2022: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 13
+ }
+ },
+ es2023: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 14
+ }
+ },
+ es2024: {
+ globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },
+ parserOptions: {
+ ecmaVersion: 15
+ }
+ },
+
+ // Platforms
+ browser: {
+ globals: globals__default["default"].browser
+ },
+ node: {
+ globals: globals__default["default"].node,
+ parserOptions: {
+ ecmaFeatures: {
+ globalReturn: true
+ }
+ }
+ },
+ "shared-node-browser": {
+ globals: globals__default["default"]["shared-node-browser"]
+ },
+ worker: {
+ globals: globals__default["default"].worker
+ },
+ serviceworker: {
+ globals: globals__default["default"].serviceworker
+ },
+
+ // Frameworks
+ commonjs: {
+ globals: globals__default["default"].commonjs,
+ parserOptions: {
+ ecmaFeatures: {
+ globalReturn: true
+ }
+ }
+ },
+ amd: {
+ globals: globals__default["default"].amd
+ },
+ mocha: {
+ globals: globals__default["default"].mocha
+ },
+ jasmine: {
+ globals: globals__default["default"].jasmine
+ },
+ jest: {
+ globals: globals__default["default"].jest
+ },
+ phantomjs: {
+ globals: globals__default["default"].phantomjs
+ },
+ jquery: {
+ globals: globals__default["default"].jquery
+ },
+ qunit: {
+ globals: globals__default["default"].qunit
+ },
+ prototypejs: {
+ globals: globals__default["default"].prototypejs
+ },
+ shelljs: {
+ globals: globals__default["default"].shelljs
+ },
+ meteor: {
+ globals: globals__default["default"].meteor
+ },
+ mongo: {
+ globals: globals__default["default"].mongo
+ },
+ protractor: {
+ globals: globals__default["default"].protractor
+ },
+ applescript: {
+ globals: globals__default["default"].applescript
+ },
+ nashorn: {
+ globals: globals__default["default"].nashorn
+ },
+ atomtest: {
+ globals: globals__default["default"].atomtest
+ },
+ embertest: {
+ globals: globals__default["default"].embertest
+ },
+ webextensions: {
+ globals: globals__default["default"].webextensions
+ },
+ greasemonkey: {
+ globals: globals__default["default"].greasemonkey
+ }
+}));
+
+/**
+ * @fileoverview Validates configs.
+ * @author Brandon Mills
+ */
+
+const ajv = ajvOrig();
+
+const ruleValidators = new WeakMap();
+const noop = Function.prototype;
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+let validateSchema;
+const severityMap = {
+ error: 2,
+ warn: 1,
+ off: 0
+};
+
+const validated = new WeakSet();
+
+// JSON schema that disallows passing any options
+const noOptionsSchema = Object.freeze({
+ type: "array",
+ minItems: 0,
+ maxItems: 0
+});
+
+//-----------------------------------------------------------------------------
+// Exports
+//-----------------------------------------------------------------------------
+
+class ConfigValidator {
+ constructor({ builtInRules = new Map() } = {}) {
+ this.builtInRules = builtInRules;
+ }
+
+ /**
+ * Gets a complete options schema for a rule.
+ * @param {Rule} rule A rule object
+ * @throws {TypeError} If `meta.schema` is specified but is not an array, object or `false`.
+ * @returns {Object|null} JSON Schema for the rule's options.
+ * `null` if rule wasn't passed or its `meta.schema` is `false`.
+ */
+ getRuleOptionsSchema(rule) {
+ if (!rule) {
+ return null;
+ }
+
+ if (!rule.meta) {
+ return { ...noOptionsSchema }; // default if `meta.schema` is not specified
+ }
+
+ const schema = rule.meta.schema;
+
+ if (typeof schema === "undefined") {
+ return { ...noOptionsSchema }; // default if `meta.schema` is not specified
+ }
+
+ // `schema:false` is an allowed explicit opt-out of options validation for the rule
+ if (schema === false) {
+ return null;
+ }
+
+ if (typeof schema !== "object" || schema === null) {
+ throw new TypeError("Rule's `meta.schema` must be an array or object");
+ }
+
+ // ESLint-specific array form needs to be converted into a valid JSON Schema definition
+ if (Array.isArray(schema)) {
+ if (schema.length) {
+ return {
+ type: "array",
+ items: schema,
+ minItems: 0,
+ maxItems: schema.length
+ };
+ }
+
+ // `schema:[]` is an explicit way to specify that the rule does not accept any options
+ return { ...noOptionsSchema };
+ }
+
+ // `schema: