diff --git a/assets/index-6bec8683.js b/assets/index-1c77d7dc.js similarity index 99% rename from assets/index-6bec8683.js rename to assets/index-1c77d7dc.js index 7131cfc11..fbf7f4d7c 100644 --- a/assets/index-6bec8683.js +++ b/assets/index-1c77d7dc.js @@ -1219,10 +1219,10 @@ var pl=Object.defineProperty;var cl=(e,t,n)=>t in e?pl(e,t,{enumerable:!0,config
 <!-- Latest compiled and minified CSS -->
-<link href="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@0.6.1/dist/styles/css/multiple-select.css" rel="stylesheet">
+<link href="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@0.6.2/dist/styles/css/multiple-select.css" rel="stylesheet">
 
 <!-- Latest compiled and minified JavaScript -->
-<script src="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@0.6.1/dist/multiple-select.js"></script>
+<script src="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@0.6.2/dist/multiple-select.js"></script>
diff --git a/index.html b/index.html index 54686e52c..400f8f1af 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Multiple-Select-Vanilla demo with Vite + TS - + diff --git a/playwright-report/data/00929dbb75bfa454efb54fe61c72abf5e7805683.zip b/playwright-report/data/00929dbb75bfa454efb54fe61c72abf5e7805683.zip deleted file mode 100644 index 6dbb75763..000000000 Binary files a/playwright-report/data/00929dbb75bfa454efb54fe61c72abf5e7805683.zip and /dev/null differ diff --git a/playwright-report/data/02514564e506ec1281ff7040066f156a955a5f84.zip b/playwright-report/data/02514564e506ec1281ff7040066f156a955a5f84.zip deleted file mode 100644 index c6327b8fe..000000000 Binary files a/playwright-report/data/02514564e506ec1281ff7040066f156a955a5f84.zip and /dev/null differ diff --git a/playwright-report/data/06b0c6f40255d2beec6c6a8f1673d5fe98a63c07.zip b/playwright-report/data/06b0c6f40255d2beec6c6a8f1673d5fe98a63c07.zip deleted file mode 100644 index 8fbf3742a..000000000 Binary files a/playwright-report/data/06b0c6f40255d2beec6c6a8f1673d5fe98a63c07.zip and /dev/null differ diff --git a/playwright-report/data/0d68c48c6a2ae9181c74e793ca4d848103ba6142.zip b/playwright-report/data/0d68c48c6a2ae9181c74e793ca4d848103ba6142.zip deleted file mode 100644 index 7f2ea279e..000000000 Binary files a/playwright-report/data/0d68c48c6a2ae9181c74e793ca4d848103ba6142.zip and /dev/null differ diff --git a/playwright-report/data/103df889d87aab02851fca27deecfa09767141e1.zip b/playwright-report/data/103df889d87aab02851fca27deecfa09767141e1.zip deleted file mode 100644 index 23d88fff2..000000000 Binary files a/playwright-report/data/103df889d87aab02851fca27deecfa09767141e1.zip and /dev/null differ diff --git a/playwright-report/data/13be2e530d24d7e050337f4daf039d2326c646db.zip b/playwright-report/data/13be2e530d24d7e050337f4daf039d2326c646db.zip deleted file mode 100644 index dc94cd971..000000000 Binary files a/playwright-report/data/13be2e530d24d7e050337f4daf039d2326c646db.zip and /dev/null differ diff --git a/playwright-report/data/187d15c7b7e2ba41ea3241fbc83afd2eda934a3f.zip b/playwright-report/data/187d15c7b7e2ba41ea3241fbc83afd2eda934a3f.zip deleted file mode 100644 index ec410ea7d..000000000 Binary files a/playwright-report/data/187d15c7b7e2ba41ea3241fbc83afd2eda934a3f.zip and /dev/null differ diff --git a/playwright-report/data/1bb92a89cf810d6ae79afaa43cac096b39e2cd82.zip b/playwright-report/data/1bb92a89cf810d6ae79afaa43cac096b39e2cd82.zip deleted file mode 100644 index afe948c0a..000000000 Binary files a/playwright-report/data/1bb92a89cf810d6ae79afaa43cac096b39e2cd82.zip and /dev/null differ diff --git a/playwright-report/data/25defe00f10d47d98051d8708996dc72b97ab19a.zip b/playwright-report/data/25defe00f10d47d98051d8708996dc72b97ab19a.zip deleted file mode 100644 index cc4b082f3..000000000 Binary files a/playwright-report/data/25defe00f10d47d98051d8708996dc72b97ab19a.zip and /dev/null differ diff --git a/playwright-report/data/291e80471bc3f0d325161a5270d5ca281db003db.zip b/playwright-report/data/291e80471bc3f0d325161a5270d5ca281db003db.zip deleted file mode 100644 index ff755d750..000000000 Binary files a/playwright-report/data/291e80471bc3f0d325161a5270d5ca281db003db.zip and /dev/null differ diff --git a/playwright-report/data/2a222a4ff4ef88bbaf5e4296d0a477b07f0727eb.zip b/playwright-report/data/2a222a4ff4ef88bbaf5e4296d0a477b07f0727eb.zip deleted file mode 100644 index 512c67584..000000000 Binary files a/playwright-report/data/2a222a4ff4ef88bbaf5e4296d0a477b07f0727eb.zip and /dev/null differ diff --git a/playwright-report/data/2bddc8211d7e69c752ce1eb9e67e7e3d681672a6.zip b/playwright-report/data/2bddc8211d7e69c752ce1eb9e67e7e3d681672a6.zip deleted file mode 100644 index 9cb31320f..000000000 Binary files a/playwright-report/data/2bddc8211d7e69c752ce1eb9e67e7e3d681672a6.zip and /dev/null differ diff --git a/playwright-report/data/2f185a462d87e7e4f2ce67776ae00f5f01ba299b.zip b/playwright-report/data/2f185a462d87e7e4f2ce67776ae00f5f01ba299b.zip deleted file mode 100644 index 179f56b05..000000000 Binary files a/playwright-report/data/2f185a462d87e7e4f2ce67776ae00f5f01ba299b.zip and /dev/null differ diff --git a/playwright-report/data/33bfa3687875fc261fce92861c938b657038807f.zip b/playwright-report/data/33bfa3687875fc261fce92861c938b657038807f.zip deleted file mode 100644 index 2780e2cd3..000000000 Binary files a/playwright-report/data/33bfa3687875fc261fce92861c938b657038807f.zip and /dev/null differ diff --git a/playwright-report/data/36589fa70ad8eb6c91bb17b63aacba8bf8e15a7a.zip b/playwright-report/data/36589fa70ad8eb6c91bb17b63aacba8bf8e15a7a.zip deleted file mode 100644 index a6e06344d..000000000 Binary files a/playwright-report/data/36589fa70ad8eb6c91bb17b63aacba8bf8e15a7a.zip and /dev/null differ diff --git a/playwright-report/data/37493c4ee5e548be3fe17ec5881569e02340793b.zip b/playwright-report/data/37493c4ee5e548be3fe17ec5881569e02340793b.zip deleted file mode 100644 index 74d505705..000000000 Binary files a/playwright-report/data/37493c4ee5e548be3fe17ec5881569e02340793b.zip and /dev/null differ diff --git a/playwright-report/data/38b281d9a9732120a18668e2fd08d840528ca20d.zip b/playwright-report/data/38b281d9a9732120a18668e2fd08d840528ca20d.zip deleted file mode 100644 index 33c40566a..000000000 Binary files a/playwright-report/data/38b281d9a9732120a18668e2fd08d840528ca20d.zip and /dev/null differ diff --git a/playwright-report/data/3e37b0733b055642d07db58bb3e4c537a38deaae.zip b/playwright-report/data/3e37b0733b055642d07db58bb3e4c537a38deaae.zip deleted file mode 100644 index 5fea4cc0d..000000000 Binary files a/playwright-report/data/3e37b0733b055642d07db58bb3e4c537a38deaae.zip and /dev/null differ diff --git a/playwright-report/data/3e65df5de96831d2f2f660e36581f0ea8846c989.zip b/playwright-report/data/3e65df5de96831d2f2f660e36581f0ea8846c989.zip deleted file mode 100644 index 397e85ec7..000000000 Binary files a/playwright-report/data/3e65df5de96831d2f2f660e36581f0ea8846c989.zip and /dev/null differ diff --git a/playwright-report/data/3e8dacefe0dbb5cad778c98025fb9d619fc3973c.zip b/playwright-report/data/3e8dacefe0dbb5cad778c98025fb9d619fc3973c.zip deleted file mode 100644 index 2e7663928..000000000 Binary files a/playwright-report/data/3e8dacefe0dbb5cad778c98025fb9d619fc3973c.zip and /dev/null differ diff --git a/playwright-report/data/40ad6338ec6a956160309cb237fdfca9fdfca402.zip b/playwright-report/data/40ad6338ec6a956160309cb237fdfca9fdfca402.zip deleted file mode 100644 index 0ca268137..000000000 Binary files a/playwright-report/data/40ad6338ec6a956160309cb237fdfca9fdfca402.zip and /dev/null differ diff --git a/playwright-report/data/430ca4fa63f1db4c4b7daa644009a2be696273a0.zip b/playwright-report/data/430ca4fa63f1db4c4b7daa644009a2be696273a0.zip deleted file mode 100644 index eeb199dcc..000000000 Binary files a/playwright-report/data/430ca4fa63f1db4c4b7daa644009a2be696273a0.zip and /dev/null differ diff --git a/playwright-report/data/4351ee1cd8b7308de26dac96121c337427215161.zip b/playwright-report/data/4351ee1cd8b7308de26dac96121c337427215161.zip deleted file mode 100644 index 6f9fa309a..000000000 Binary files a/playwright-report/data/4351ee1cd8b7308de26dac96121c337427215161.zip and /dev/null differ diff --git a/playwright-report/data/44f63cabbb40f4718d6c4381958a241ed44e0088.zip b/playwright-report/data/44f63cabbb40f4718d6c4381958a241ed44e0088.zip deleted file mode 100644 index 86726627c..000000000 Binary files a/playwright-report/data/44f63cabbb40f4718d6c4381958a241ed44e0088.zip and /dev/null differ diff --git a/playwright-report/data/4660ada54a4a7f4d2d591dd2e92b9dc6281708c8.zip b/playwright-report/data/4660ada54a4a7f4d2d591dd2e92b9dc6281708c8.zip deleted file mode 100644 index b4794800a..000000000 Binary files a/playwright-report/data/4660ada54a4a7f4d2d591dd2e92b9dc6281708c8.zip and /dev/null differ diff --git a/playwright-report/data/472211ed28b01274c4db7d971e188eccd68655c8.zip b/playwright-report/data/472211ed28b01274c4db7d971e188eccd68655c8.zip deleted file mode 100644 index 14b9afb81..000000000 Binary files a/playwright-report/data/472211ed28b01274c4db7d971e188eccd68655c8.zip and /dev/null differ diff --git a/playwright-report/data/4a3ffd93bff95a0def6170f2f650e3717c7a0924.zip b/playwright-report/data/4a3ffd93bff95a0def6170f2f650e3717c7a0924.zip deleted file mode 100644 index 2a8602e09..000000000 Binary files a/playwright-report/data/4a3ffd93bff95a0def6170f2f650e3717c7a0924.zip and /dev/null differ diff --git a/playwright-report/data/4d509bef87191e2ea8c5496c8da40394f0a58f8c.zip b/playwright-report/data/4d509bef87191e2ea8c5496c8da40394f0a58f8c.zip deleted file mode 100644 index 852fc3e85..000000000 Binary files a/playwright-report/data/4d509bef87191e2ea8c5496c8da40394f0a58f8c.zip and /dev/null differ diff --git a/playwright-report/data/52b266ca23828b142f199ff842ff7c6f9d004785.zip b/playwright-report/data/52b266ca23828b142f199ff842ff7c6f9d004785.zip deleted file mode 100644 index 782f7efc2..000000000 Binary files a/playwright-report/data/52b266ca23828b142f199ff842ff7c6f9d004785.zip and /dev/null differ diff --git a/playwright-report/data/57f373129c9006a5e37a9cc28aefb0d150bd94f7.zip b/playwright-report/data/57f373129c9006a5e37a9cc28aefb0d150bd94f7.zip deleted file mode 100644 index 3bd970744..000000000 Binary files a/playwright-report/data/57f373129c9006a5e37a9cc28aefb0d150bd94f7.zip and /dev/null differ diff --git a/playwright-report/data/5d350029cd4522e7291e72104ee15107fdc23f1e.zip b/playwright-report/data/5d350029cd4522e7291e72104ee15107fdc23f1e.zip deleted file mode 100644 index 2d2063b5a..000000000 Binary files a/playwright-report/data/5d350029cd4522e7291e72104ee15107fdc23f1e.zip and /dev/null differ diff --git a/playwright-report/data/62526d7028b477b664b49aa326b9428cf6319cf6.zip b/playwright-report/data/62526d7028b477b664b49aa326b9428cf6319cf6.zip deleted file mode 100644 index e06c4cf37..000000000 Binary files a/playwright-report/data/62526d7028b477b664b49aa326b9428cf6319cf6.zip and /dev/null differ diff --git a/playwright-report/data/6831fce6890ff528a8b51b8d6f37b4eda2e24cb7.zip b/playwright-report/data/6831fce6890ff528a8b51b8d6f37b4eda2e24cb7.zip deleted file mode 100644 index bab0c813e..000000000 Binary files a/playwright-report/data/6831fce6890ff528a8b51b8d6f37b4eda2e24cb7.zip and /dev/null differ diff --git a/playwright-report/data/6fc4eee94bb8dacc425ee48e5c00a53cb04a7ead.zip b/playwright-report/data/6fc4eee94bb8dacc425ee48e5c00a53cb04a7ead.zip deleted file mode 100644 index cb8eadb9d..000000000 Binary files a/playwright-report/data/6fc4eee94bb8dacc425ee48e5c00a53cb04a7ead.zip and /dev/null differ diff --git a/playwright-report/data/74cd543fd3df8f274a780bbfb381514984b62a23.zip b/playwright-report/data/74cd543fd3df8f274a780bbfb381514984b62a23.zip deleted file mode 100644 index 19abd6a82..000000000 Binary files a/playwright-report/data/74cd543fd3df8f274a780bbfb381514984b62a23.zip and /dev/null differ diff --git a/playwright-report/data/7800830e0b1c6bc6825b5cf3675c4ec773017ba3.zip b/playwright-report/data/7800830e0b1c6bc6825b5cf3675c4ec773017ba3.zip deleted file mode 100644 index 56fd4b663..000000000 Binary files a/playwright-report/data/7800830e0b1c6bc6825b5cf3675c4ec773017ba3.zip and /dev/null differ diff --git a/playwright-report/data/7b45d8e17e83c59ad6e8e837dd977ced75999273.zip b/playwright-report/data/7b45d8e17e83c59ad6e8e837dd977ced75999273.zip deleted file mode 100644 index afb1d9bb9..000000000 Binary files a/playwright-report/data/7b45d8e17e83c59ad6e8e837dd977ced75999273.zip and /dev/null differ diff --git a/playwright-report/data/7c4c19b5ae3362481967f8122f254a83e6835ad5.zip b/playwright-report/data/7c4c19b5ae3362481967f8122f254a83e6835ad5.zip deleted file mode 100644 index 8ae51a15f..000000000 Binary files a/playwright-report/data/7c4c19b5ae3362481967f8122f254a83e6835ad5.zip and /dev/null differ diff --git a/playwright-report/data/7f63beddea6393e9afa4fdb72b34994965028081.zip b/playwright-report/data/7f63beddea6393e9afa4fdb72b34994965028081.zip deleted file mode 100644 index c2ebdf944..000000000 Binary files a/playwright-report/data/7f63beddea6393e9afa4fdb72b34994965028081.zip and /dev/null differ diff --git a/playwright-report/data/891ef3012fcd280b08412ac0388a88189935f398.zip b/playwright-report/data/891ef3012fcd280b08412ac0388a88189935f398.zip deleted file mode 100644 index 147834cbf..000000000 Binary files a/playwright-report/data/891ef3012fcd280b08412ac0388a88189935f398.zip and /dev/null differ diff --git a/playwright-report/data/8b1bb167dbeca67952bf84a7c01d2ac111d4b9ff.zip b/playwright-report/data/8b1bb167dbeca67952bf84a7c01d2ac111d4b9ff.zip deleted file mode 100644 index d5dcd2795..000000000 Binary files a/playwright-report/data/8b1bb167dbeca67952bf84a7c01d2ac111d4b9ff.zip and /dev/null differ diff --git a/playwright-report/data/8e9e45cd3e0782a45b903b353d6c9a603cac135d.zip b/playwright-report/data/8e9e45cd3e0782a45b903b353d6c9a603cac135d.zip deleted file mode 100644 index 031de64d9..000000000 Binary files a/playwright-report/data/8e9e45cd3e0782a45b903b353d6c9a603cac135d.zip and /dev/null differ diff --git a/playwright-report/data/8f8fe7794de14390e1c99df8f9f5afd90a27abd7.zip b/playwright-report/data/8f8fe7794de14390e1c99df8f9f5afd90a27abd7.zip deleted file mode 100644 index d23da9c24..000000000 Binary files a/playwright-report/data/8f8fe7794de14390e1c99df8f9f5afd90a27abd7.zip and /dev/null differ diff --git a/playwright-report/data/92ef70e844962f0ca28189f765f5c9bb5bc34ccc.zip b/playwright-report/data/92ef70e844962f0ca28189f765f5c9bb5bc34ccc.zip deleted file mode 100644 index 5fbc5d30e..000000000 Binary files a/playwright-report/data/92ef70e844962f0ca28189f765f5c9bb5bc34ccc.zip and /dev/null differ diff --git a/playwright-report/data/984b5e4b670bc1e071bf31376c7fdbc14fe5b208.zip b/playwright-report/data/984b5e4b670bc1e071bf31376c7fdbc14fe5b208.zip deleted file mode 100644 index e7f429fd7..000000000 Binary files a/playwright-report/data/984b5e4b670bc1e071bf31376c7fdbc14fe5b208.zip and /dev/null differ diff --git a/playwright-report/data/98fa121ad86ac312f79d6342e351964df3eec0e3.zip b/playwright-report/data/98fa121ad86ac312f79d6342e351964df3eec0e3.zip deleted file mode 100644 index fc2b14f41..000000000 Binary files a/playwright-report/data/98fa121ad86ac312f79d6342e351964df3eec0e3.zip and /dev/null differ diff --git a/playwright-report/data/9bebec2c37c266440c692400a1c1e79cfef73878.zip b/playwright-report/data/9bebec2c37c266440c692400a1c1e79cfef73878.zip deleted file mode 100644 index 2461cd293..000000000 Binary files a/playwright-report/data/9bebec2c37c266440c692400a1c1e79cfef73878.zip and /dev/null differ diff --git a/playwright-report/data/9edae8196e9db105a32c1165348ff06fed3540b2.zip b/playwright-report/data/9edae8196e9db105a32c1165348ff06fed3540b2.zip deleted file mode 100644 index 3a63942f3..000000000 Binary files a/playwright-report/data/9edae8196e9db105a32c1165348ff06fed3540b2.zip and /dev/null differ diff --git a/playwright-report/data/a53cfee9429b94cf93d09db583c380e57edd1c89.zip b/playwright-report/data/a53cfee9429b94cf93d09db583c380e57edd1c89.zip deleted file mode 100644 index 709c82399..000000000 Binary files a/playwright-report/data/a53cfee9429b94cf93d09db583c380e57edd1c89.zip and /dev/null differ diff --git a/playwright-report/data/a67349e94aef2aced62e907a26efc853b05b984d.zip b/playwright-report/data/a67349e94aef2aced62e907a26efc853b05b984d.zip deleted file mode 100644 index 4c94a8756..000000000 Binary files a/playwright-report/data/a67349e94aef2aced62e907a26efc853b05b984d.zip and /dev/null differ diff --git a/playwright-report/data/a75c5843c6a7b65c248f5b6129a99cc57118e28c.zip b/playwright-report/data/a75c5843c6a7b65c248f5b6129a99cc57118e28c.zip deleted file mode 100644 index 18baa5a47..000000000 Binary files a/playwright-report/data/a75c5843c6a7b65c248f5b6129a99cc57118e28c.zip and /dev/null differ diff --git a/playwright-report/data/bcd29927522de1fec2cfeaf9e3bb816252e8835b.zip b/playwright-report/data/bcd29927522de1fec2cfeaf9e3bb816252e8835b.zip deleted file mode 100644 index 285c0636e..000000000 Binary files a/playwright-report/data/bcd29927522de1fec2cfeaf9e3bb816252e8835b.zip and /dev/null differ diff --git a/playwright-report/data/bff182dab093f01983fcdbe6056eec4268447350.zip b/playwright-report/data/bff182dab093f01983fcdbe6056eec4268447350.zip deleted file mode 100644 index 4c6a223ea..000000000 Binary files a/playwright-report/data/bff182dab093f01983fcdbe6056eec4268447350.zip and /dev/null differ diff --git a/playwright-report/data/c4c15a6451b34315d7710f44b1273e2c3062c71f.zip b/playwright-report/data/c4c15a6451b34315d7710f44b1273e2c3062c71f.zip deleted file mode 100644 index cb9c0ea25..000000000 Binary files a/playwright-report/data/c4c15a6451b34315d7710f44b1273e2c3062c71f.zip and /dev/null differ diff --git a/playwright-report/data/c69724bc90a3a5d94c7df7d74a1fac031b84c900.zip b/playwright-report/data/c69724bc90a3a5d94c7df7d74a1fac031b84c900.zip deleted file mode 100644 index 348abc69e..000000000 Binary files a/playwright-report/data/c69724bc90a3a5d94c7df7d74a1fac031b84c900.zip and /dev/null differ diff --git a/playwright-report/data/cb1f3d6ebf9ce7febbc6a6905a911b55a9311180.zip b/playwright-report/data/cb1f3d6ebf9ce7febbc6a6905a911b55a9311180.zip deleted file mode 100644 index 5b4d077c7..000000000 Binary files a/playwright-report/data/cb1f3d6ebf9ce7febbc6a6905a911b55a9311180.zip and /dev/null differ diff --git a/playwright-report/data/cee1ea799a2c0cd8fbe66509605d4f31628e9588.zip b/playwright-report/data/cee1ea799a2c0cd8fbe66509605d4f31628e9588.zip deleted file mode 100644 index a50f84cf1..000000000 Binary files a/playwright-report/data/cee1ea799a2c0cd8fbe66509605d4f31628e9588.zip and /dev/null differ diff --git a/playwright-report/data/cf576b3c0a94dbd1b727931a3b7396ed47502483.zip b/playwright-report/data/cf576b3c0a94dbd1b727931a3b7396ed47502483.zip deleted file mode 100644 index b7ec2502b..000000000 Binary files a/playwright-report/data/cf576b3c0a94dbd1b727931a3b7396ed47502483.zip and /dev/null differ diff --git a/playwright-report/data/cfad1f912c5f88e2c791881fb31265874f2e33c2.zip b/playwright-report/data/cfad1f912c5f88e2c791881fb31265874f2e33c2.zip deleted file mode 100644 index 07df58f77..000000000 Binary files a/playwright-report/data/cfad1f912c5f88e2c791881fb31265874f2e33c2.zip and /dev/null differ diff --git a/playwright-report/data/d6cfa8a8d69fa3be60c2964e0ed6b63794fd4fbe.zip b/playwright-report/data/d6cfa8a8d69fa3be60c2964e0ed6b63794fd4fbe.zip deleted file mode 100644 index 95903b7e2..000000000 Binary files a/playwright-report/data/d6cfa8a8d69fa3be60c2964e0ed6b63794fd4fbe.zip and /dev/null differ diff --git a/playwright-report/data/de693f89d8931307745f5e3d433d25b255c07b34.zip b/playwright-report/data/de693f89d8931307745f5e3d433d25b255c07b34.zip deleted file mode 100644 index 8ae5c95ff..000000000 Binary files a/playwright-report/data/de693f89d8931307745f5e3d433d25b255c07b34.zip and /dev/null differ diff --git a/playwright-report/data/e0bdcb30f124f19d084ee237d3081bbcd119a938.zip b/playwright-report/data/e0bdcb30f124f19d084ee237d3081bbcd119a938.zip deleted file mode 100644 index ce6636054..000000000 Binary files a/playwright-report/data/e0bdcb30f124f19d084ee237d3081bbcd119a938.zip and /dev/null differ diff --git a/playwright-report/data/e66ce0d762d381fea2f9d92d1df3a521db9d9a54.zip b/playwright-report/data/e66ce0d762d381fea2f9d92d1df3a521db9d9a54.zip deleted file mode 100644 index a713534d0..000000000 Binary files a/playwright-report/data/e66ce0d762d381fea2f9d92d1df3a521db9d9a54.zip and /dev/null differ diff --git a/playwright-report/data/e83517df26b4dad2982ad1ab0e04c2105860c13c.zip b/playwright-report/data/e83517df26b4dad2982ad1ab0e04c2105860c13c.zip deleted file mode 100644 index 0c1b2e531..000000000 Binary files a/playwright-report/data/e83517df26b4dad2982ad1ab0e04c2105860c13c.zip and /dev/null differ diff --git a/playwright-report/data/e9c5aaab1fee25591e33aa10890a7654928c5493.zip b/playwright-report/data/e9c5aaab1fee25591e33aa10890a7654928c5493.zip deleted file mode 100644 index 910a40f16..000000000 Binary files a/playwright-report/data/e9c5aaab1fee25591e33aa10890a7654928c5493.zip and /dev/null differ diff --git a/playwright-report/data/ea749a32572fdf44de6310934958b638900b7acf.zip b/playwright-report/data/ea749a32572fdf44de6310934958b638900b7acf.zip deleted file mode 100644 index ccfd4e39d..000000000 Binary files a/playwright-report/data/ea749a32572fdf44de6310934958b638900b7acf.zip and /dev/null differ diff --git a/playwright-report/data/edc5a697e761b9b09982a568a94918653f1577f0.zip b/playwright-report/data/edc5a697e761b9b09982a568a94918653f1577f0.zip deleted file mode 100644 index 3c6f5c592..000000000 Binary files a/playwright-report/data/edc5a697e761b9b09982a568a94918653f1577f0.zip and /dev/null differ diff --git a/playwright-report/data/f3ffaa065234bbd606e8d65026ce73f105e65222.zip b/playwright-report/data/f3ffaa065234bbd606e8d65026ce73f105e65222.zip deleted file mode 100644 index 2edb7e0fb..000000000 Binary files a/playwright-report/data/f3ffaa065234bbd606e8d65026ce73f105e65222.zip and /dev/null differ diff --git a/playwright-report/data/f7e573956b8c3a9b30b925f1e118bd0c7e39feb5.zip b/playwright-report/data/f7e573956b8c3a9b30b925f1e118bd0c7e39feb5.zip deleted file mode 100644 index 27b9bdcdd..000000000 Binary files a/playwright-report/data/f7e573956b8c3a9b30b925f1e118bd0c7e39feb5.zip and /dev/null differ diff --git a/playwright-report/index.html b/playwright-report/index.html deleted file mode 100644 index 4db207ca2..000000000 --- a/playwright-report/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
- - - - \ No newline at end of file diff --git a/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js b/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js deleted file mode 100644 index 389494611..000000000 --- a/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js +++ /dev/null @@ -1,24 +0,0 @@ -import{n as vu,o as gu}from"./wsPort-0625ac95.js";var pa={exports:{}};(function(mr,Or){(function(I,Pe){mr.exports=Pe()})(gu,function(){var I=navigator.userAgent,Pe=navigator.platform,we=/gecko\/\d/i.test(I),He=/MSIE \d/.test(I),$e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),Ce=/Edge\/(\d+)/.exec(I),M=He||$e||Ce,j=M&&(He?document.documentMode||6:+(Ce||$e)[1]),W=!Ce&&/WebKit\//.test(I),ee=W&&/Qt\/\d+\.\d+/.test(I),G=!Ce&&/Chrome\/(\d+)/.exec(I),ue=G&&+G[1],ce=/Opera\//.test(I),Ee=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),Ae=/PhantomJS/.test(I),re=Ee&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),J=/Android/.test(I),te=re||J||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),xe=re||/Mac/.test(Pe),Be=/\bCrOS\b/.test(I),ye=/win/i.test(Pe),Le=ce&&I.match(/Version\/(\d*\.\d*)/);Le&&(Le=Number(Le[1])),Le&&Le>=15&&(ce=!1,W=!0);var Re=xe&&(ee||ce&&(Le==null||Le<12.11)),$=we||M&&j>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var me=function(e,t){var n=e.className,r=X(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return L(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},fe.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Te=[""];function Ue(e){for(;Te.length<=e;)Te.push(de(Te)+" ");return Te[e]}function de(e){return e[e.length-1]}function st(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||A.test(e))}function pe(e,t){return t?t.source.indexOf("\\w")>-1&&T(e)?!0:t.test(e):T(e)}function R(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function q(e){return e.charCodeAt(0)>=768&&ne.test(e)}function be(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function Nt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var zt=null;function Pt(e,t,n){var r;zt=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:zt=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:zt=i)}return r??zt}var vi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,d,h){this.level=u,this.from=d,this.to=h}return function(u,d){var h=d=="ltr"?"L":"R";if(u.length==0||d=="ltr"&&!r.test(u))return!1;for(var b=u.length,m=[],C=0;C-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function _e(e,t){var n=en(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function pt(e){e.prototype.on=function(t,n){E(this,t,n)},e.prototype.off=function(t,n){ut(this,t,n)}}function ft(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function br(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function tn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Zt(e){ft(e),br(e)}function mt(e){return e.target||e.srcElement}function rn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),xe&&e.ctrlKey&&t==1&&(t=3),t}var gi=function(){if(M&&j<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),It;function yi(e){if(It==null){var t=c("span","​");_(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(It=t.offsetWidth<=1&&t.offsetHeight>2&&!(M&&j<8))}var n=It?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var zr;function In(e){if(zr!=null)return zr;var t=_(e,document.createTextNode("AخA")),n=x(t,0,1).getBoundingClientRect(),r=x(t,1,2).getBoundingClientRect();return L(e),!n||n.left==n.right?!1:zr=r.right-n.right<3}var nn=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},or=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Kt=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ut=null;function Fn(e){if(Ut!=null)return Ut;var t=_(e,c("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return Ut=Math.abs(n.left-r.left)>1}var Wt={},lr={};function Wn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Wt[e]=t}function Pr(e,t){lr[e]=t}function Ct(e){if(typeof e=="string"&&lr.hasOwnProperty(e))e=lr[e];else if(e&&typeof e.name=="string"&&lr.hasOwnProperty(e.name)){var t=lr[e.name];typeof t=="string"&&(t={name:t}),e=k(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ct("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ct("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Jt(e,t){t=Ct(t);var n=Wt[t.name];if(!n)return Jt(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ar={};function _n(e,t){var n=ar.hasOwnProperty(e)?ar[e]:ar[e]={};V(t,n)}function Qt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sr(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function on(e,t,n){return e.startState?e.startState(t,n):!0}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.post},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function K(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?g(n,K(e,n).text.length):ga(t,K(e,t.line).text.length)}function ga(e,t){var n=e.ch;return n==null||n>t?g(e.line,t):n<0?g(e.line,0):e}function fo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},qt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(e,t,n){return t instanceof Hn?new qt(e,Qt(e.mode,t.state),n,t.lookAhead):new qt(e,Qt(e.mode,t),n)},qt.prototype.save=function(e){var t=e!==!1?Qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function co(e,t,n,r){var i=[e.state.modeGen],o={};mo(e,t.text,e.doc.mode,n,function(u,d){return i.push(u,d)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var d=e.state.overlays[u],h=1,b=0;n.state=!0,mo(e,t.text,d.mode,n,function(m,C){for(var N=h;bm&&i.splice(h,1,m,i[h+1],O),h+=2,b=Math.min(m,O)}if(C)if(d.opaque)i.splice(N,h-N,m,"overlay "+C),h=N+2;else for(;Ne.options.maxHighlightLength&&Qt(e.doc.mode,r.state),o=co(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ln(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new qt(r,!0,t);var o=ya(e,t,n),l=o>r.first&&K(r,o-1).stateAfter,a=l?qt.fromSaved(r,l,o):new qt(r,on(r.mode),o);return r.iter(o,t,function(s){mi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var vo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function go(e,t,n,r){var i=e.doc,o=i.mode,l;t=le(i,t);var a=K(i,t.line),s=ln(e,t.line,n),u=new Xe(a.text,e.options.tabSize,s),d;for(r&&(d=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&mi(e,t,r,d.pos),d.pos=t.length,h=null):h=yo(bi(n,d,r.state,b),o),b){var m=b[0].name;m&&(h="m-"+(h?m+" "+h:m))}if(!a||u!=h){for(;sl;--a){if(a<=o.first)return o.first;var s=K(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Hn?u.lookAhead:0)<=o.modeFrontier))return a;var d=U(s.text,null,e.options.tabSize);(i==null||r>d)&&(i=a-1,r=d)}return i}function ma(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=K(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Bn(l,o.from,s?null:o.to))}}return r}function Ca(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var H=0;H0)){var d=[s,1],h=S(u.from,a.from),b=S(u.to,a.to);(h<0||!l.inclusiveLeft&&!h)&&d.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&d.push({from:a.to,to:u.to}),i.splice.apply(i,d),s+=d.length-3}}return i}function wo(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||wi(r,o.marker)<0)&&(r=o.marker)}return r}function To(e,t,n,r,i){var o=K(e,t),l=$t&&o.markedSpans;if(l)for(var a=0;a=0&&h<=0||d<=0&&h>=0)&&(d<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?S(u.to,n)>=0:S(u.to,n)>0)||d>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?S(u.from,r)<=0:S(u.from,r)<0)))return!0}}}function _t(e){for(var t;t=Co(e);)e=t.find(-1,!0).line;return e}function Ma(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function Na(e){for(var t,n;t=Un(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ki(e,t){var n=K(e,t),r=_t(n);return n==r?t:Ne(r)}function Lo(e,t){if(t>e.lastLine())return t;var n=K(e,t),r;if(!ur(e,n))return t;for(;r=Un(n);)n=r.find(1,!0).line;return Ne(n)+1}function ur(e,t){var n=$t&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Ir=function(e,t,n){this.text=e,ko(this,t),this.height=n?n(this):1};Ir.prototype.lineNo=function(){return Ne(this)},pt(Ir);function Da(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),wo(e),ko(e,n);var i=r?r(e):1;i!=e.height&&Ft(e,i)}function Aa(e){e.parent=null,wo(e)}var Oa={},za={};function Mo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?za:Oa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function No(e,t){var n=w("span",null,null,W?"padding-right: .1px":null),r={pre:w("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Ea,In(e.display.measure)&&(l=Et(o,e.doc.direction))&&(r.addToken=Fa(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&Ne(o);Wa(o,r,ho(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=B(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=B(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(yi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(W){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return _e(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=B(r.pre.className,r.textClass||"")),r}function Pa(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ea(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?Ia(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,d;if(!s.test(t))e.col+=t.length,d=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,d),M&&j<9&&(u=!0),e.pos+=t.length;else{d=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var b=s.exec(t),m=b?b.index-h:t.length-h;if(m){var C=document.createTextNode(a.slice(h,h+m));M&&j<9?d.appendChild(c("span",[C])):d.appendChild(C),e.map.push(e.pos,e.pos+m,C),e.col+=m,e.pos+=m}if(!b)break;h+=m+1;var N=void 0;if(b[0]==" "){var O=e.cm.options.tabSize,z=O-e.col%O;N=d.appendChild(c("span",Ue(z),"cm-tab")),N.setAttribute("role","presentation"),N.setAttribute("cm-text"," "),e.col+=z}else b[0]=="\r"||b[0]==` -`?(N=d.appendChild(c("span",b[0]=="\r"?"␍":"␤","cm-invalidchar")),N.setAttribute("cm-text",b[0]),e.col+=1):(N=e.cm.options.specialCharPlaceholder(b[0]),N.setAttribute("cm-text",b[0]),M&&j<9?d.appendChild(c("span",[N])):d.appendChild(N),e.col+=1);e.map.push(e.pos,e.pos+1,N),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var F=n||"";r&&(F+=r),i&&(F+=i);var P=c("span",[d],F,o);if(l)for(var H in l)l.hasOwnProperty(H)&&H!="style"&&H!="class"&&P.setAttribute(H,l[H]);return e.content.appendChild(P)}e.content.appendChild(d)}}function Ia(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&h.from<=u));b++);if(h.to>=d)return e(n,r,i,o,l,a,s);e(n,r.slice(0,h.to-u),i,o,null,a,s),o=null,r=r.slice(h.to-u),u=h.to}}}function Do(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Wa(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||ve.collapsed&&Y.to==s&&Y.from==s)){if(Y.to!=null&&Y.to!=s&&m>Y.to&&(m=Y.to,N=""),ve.className&&(C+=" "+ve.className),ve.css&&(b=(b?b+";":"")+ve.css),ve.startStyle&&Y.from==s&&(O+=" "+ve.startStyle),ve.endStyle&&Y.to==m&&(H||(H=[])).push(ve.endStyle,Y.to),ve.title&&((F||(F={})).title=ve.title),ve.attributes)for(var Fe in ve.attributes)(F||(F={}))[Fe]=ve.attributes[Fe];ve.collapsed&&(!z||wi(z.marker,ve)<0)&&(z=Y)}else Y.from>s&&m>Y.from&&(m=Y.from)}if(H)for(var ot=0;ot=a)break;for(var Lt=Math.min(a,m);;){if(d){var wt=s+d.length;if(!z){var Qe=wt>Lt?d.slice(0,Lt-s):d;t.addToken(t,Qe,h?h+C:C,O,s+Qe.length==m?N:"",b,F)}if(wt>=Lt){d=d.slice(Lt-s),s=Lt;break}s=wt,O=""}d=i.slice(o,o=n[u++]),h=Mo(n[u++],t.cm.options)}}}function Ao(e,t,n){this.line=t,this.rest=Na(t),this.size=this.rest?Ne(de(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ur(e,t)}function qn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Wo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Ya(e,t){t=_t(t);var n=Ne(t),r=e.display.externalMeasured=new Ao(e.doc,t,n);r.lineN=n;var i=r.built=No(e,r);return r.text=i.pre,_(e.display.lineMeasure,i.pre),r}function _o(e,t,n,r){return Xt(e,Wr(e,t),n,r)}function Ni(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Ja(e,t,n,r){var i=Bo(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var d=0;d<4;d++){for(;l&&q(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=o.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=o.getBoundingClientRect()}if(M&&j<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+Hr(e.display),top:b.top,bottom:b.bottom}:u=Ho}for(var m=u.top-t.rect.top,C=u.bottom-t.rect.top,N=(m+C)/2,O=t.view.measure.heights,z=0;z=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function d(C,N,O){var z=a[N],F=z.level==1;return l(O?C-1:C,F!=O)}var h=Pt(a,s,u),b=zt,m=d(s,h,u=="before");return b!=null&&(m.other=d(s,b,u!="before")),m}function jo(e,t){var n=0;t=le(e.doc,t),e.options.lineWrapping||(n=Hr(e.display)*t.ch);var r=K(e.doc,t.line),i=er(r)+jn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ai(e,t,n,r,i){var o=g(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Oi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ai(r.first,0,null,-1,-1);var i=Gt(r,n),o=r.first+r.size-1;if(i>o)return Ai(r.first+r.size-1,K(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=K(r,i);;){var a=Va(e,l,i,t,n),s=La(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=K(r,i=u.line)}}function Xo(e,t,n,r){r-=Di(t);var i=t.text.length,o=he(function(l){return Xt(e,n,l-1).bottom<=r},i,0);return i=he(function(l){return Xt(e,n,l).top>r},o,i),{begin:o,end:i}}function Yo(e,t,n,r){n||(n=Wr(e,t));var i=Xn(e,t,Xt(e,n,r),"line").top;return Xo(e,t,n,i)}function zi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Va(e,t,n,r,i){i-=er(t);var o=Wr(e,t),l=Di(t),a=0,s=t.text.length,u=!0,d=Et(t,e.doc.direction);if(d){var h=(e.options.lineWrapping?es:$a)(e,t,n,o,d,r,i);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var b=null,m=null,C=he(function(Z){var Y=Xt(e,o,Z);return Y.top+=l,Y.bottom+=l,zi(Y,r,i,!1)?(Y.top<=i&&Y.left<=r&&(b=Z,m=Y),!0):!1},a,s),N,O,z=!1;if(m){var F=r-m.left=H.bottom?1:0}return C=be(t.text,C,1),Ai(n,C,O,z,r-N)}function $a(e,t,n,r,i,o,l){var a=he(function(h){var b=i[h],m=b.level!=1;return zi(Ht(e,g(n,m?b.to:b.from,m?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,d=Ht(e,g(n,u?s.from:s.to,u?"after":"before"),"line",t,r);zi(d,o,l,!0)&&d.top>l&&(s=i[a-1])}return s}function es(e,t,n,r,i,o,l){var a=Xo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var d=null,h=null,b=0;b=u||m.to<=s)){var C=m.level!=1,N=Xt(e,r,C?Math.min(u,m.to)-1:Math.max(s,m.from)).right,O=NO)&&(d=m,h=O)}}return d||(d=i[i.length-1]),d.fromu&&(d={from:d.from,to:u,level:d.level}),d}var wr;function _r(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wr==null){wr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wr.appendChild(document.createTextNode("x")),wr.appendChild(c("br"));wr.appendChild(document.createTextNode("x"))}_(e.measure,wr);var n=wr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function Hr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Ei(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ei(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Zo(e){var t=_r(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Hr(e.display)-3);return function(i){if(ur(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=K(e.doc,s.line).text).length==s.ch){var d=U(u,u.length,e.options.tabSize)-u.length;s=g(s.line,Math.max(0,Math.round((o-Fo(e.display).left)/Hr(e.display))-d))}return s}function Sr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)$t&&ki(e.doc,t)i.viewFrom?cr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)cr(e);else if(t<=i.viewFrom){var o=Zn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):cr(e)}else if(n>=i.viewTo){var l=Zn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):cr(e)}else{var a=Zn(e,t,t,-1),s=Zn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(qn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):cr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Sr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);se(l,n)==-1&&l.push(n)}}}function cr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zn(e,t,n,r){var i=Sr(e,t),o,l=e.display.view;if(!$t||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;ki(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function ts(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=qn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=qn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Sr(e,n)))),r.viewTo=n}function Jo(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Jn(e,t){return e.top-t.top||e.left-t.left}function rs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Fo(e.display),a=l.left,s=Math.max(r.sizerWidth,xr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function d(P,H,Z,Y){H<0&&(H=0),H=Math.round(H),Y=Math.round(Y),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+P+`px; - top: `+H+"px; width: "+(Z??s-P)+`px; - height: `+(Y-H)+"px"))}function h(P,H,Z){var Y=K(i,P),ve=Y.text.length,Fe,ot;function Ge(Qe,kt){return Yn(e,g(P,Qe),"div",Y,kt)}function Lt(Qe,kt,at){var tt=Yo(e,Y,null,Qe),Ve=kt=="ltr"==(at=="after")?"left":"right",Ye=at=="after"?tt.begin:tt.end-(/\s/.test(Y.text.charAt(tt.end-1))?2:1);return Ge(Ye,Ve)[Ve]}var wt=Et(Y,i.direction);return Nt(wt,H||0,Z??ve,function(Qe,kt,at,tt){var Ve=at=="ltr",Ye=Ge(Qe,Ve?"left":"right"),St=Ge(kt-1,Ve?"right":"left"),Vr=H==null&&Qe==0,yr=Z==null&&kt==ve,dt=tt==0,Yt=!wt||tt==wt.length-1;if(St.top-Ye.top<=3){var lt=(u?Vr:yr)&&dt,so=(u?yr:Vr)&&Yt,ir=lt?a:(Ve?Ye:St).left,Nr=so?s:(Ve?St:Ye).right;d(ir,Ye.top,Nr-ir,Ye.bottom)}else{var Dr,gt,$r,uo;Ve?(Dr=u&&Vr&&dt?a:Ye.left,gt=u?s:Lt(Qe,at,"before"),$r=u?a:Lt(kt,at,"after"),uo=u&&yr&&Yt?s:St.right):(Dr=u?Lt(Qe,at,"before"):a,gt=!u&&Vr&&dt?s:Ye.right,$r=!u&&yr&&Yt?a:St.left,uo=u?Lt(kt,at,"after"):s),d(Dr,Ye.top,gt-Dr,Ye.bottom),Ye.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Br(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vo(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Hi(e))}function _i(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Br(e))},100)}function Hi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),W&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wi(e))}function Br(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,me(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var N=Math.ceil(d/Hr(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function $o(e){if(e.widgets)for(var t=0;t=l&&(o=Gt(t,er(K(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function ns(e,t){if(!je(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!Ae){var l=c("div","​",null,`position: absolute; - top: `+(t.top-n.viewOffset-jn(e.display))+`px; - height: `+(t.bottom-t.top+jt(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function is(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?g(t.line,t.ch+1,"before"):t,t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Ht(e,t),s=!n||n==t?a:Ht(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Bi(e,i),d=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(pn(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}function os(e,t){var n=Bi(e,t);n.scrollTop!=null&&pn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function Bi(e,t){var n=e.display,r=_r(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Mi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Li(n),s=t.topa-r;if(t.topi+o){var d=Math.min(t.top,(u?a:t.bottom)-o);d!=i&&(l.scrollTop=d)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-h,m=xr(e)-n.gutters.offsetWidth,C=t.right-t.left>m;return C&&(t.right=t.left+m),t.left<10?l.scrollLeft=0:t.leftm+b-3&&(l.scrollLeft=t.right+(C?0:10)-m),l}function Ri(e,t){t!=null&&($n(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Rr(e){$n(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,n){(t!=null||n!=null)&&$n(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ls(e,t){$n(e),e.curOp.scrollToPos=t}function $n(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=jo(e,t.from),r=jo(e,t.to);el(e,n,r,t.margin)}}function el(e,t,n,r){var i=Bi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hn(e,i.scrollLeft,i.scrollTop)}function pn(e,t){Math.abs(e.doc.scrollTop-t)<2||(we||Ui(e,{top:t}),tl(e,t,!0),we&&Ui(e),yn(e,100))}function tl(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ll(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Li(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Tr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),E(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),E(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&j<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Tr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tr.prototype.zeroWidthHack=function(){var e=xe&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new fe,this.disableVert=new fe},Tr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Tr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gn=function(){};gn.prototype.update=function(){return{bottom:0,right:0}},gn.prototype.setScrollLeft=function(){},gn.prototype.setScrollTop=function(){},gn.prototype.clear=function(){};function Kr(e,t){t||(t=vn(e));var n=e.display.barWidth,r=e.display.barHeight;rl(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Qn(e),rl(e,vn(e)),n=e.display.barWidth,r=e.display.barHeight}function rl(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var nl={native:Tr,null:gn};function il(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&me(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new nl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),E(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):pn(e,t)},e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var as=0;function Lr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++as,markArrays:null},_a(e.curOp)}function Mr(e){var t=e.curOp;t&&Ba(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ei(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function fs(e){e.updatedDisplay=e.mustUpdate&&Ki(e.cm,e.update)}function cs(e){var t=e.cm,n=t.display;e.updatedDisplay&&Qn(t),e.barMeasure=vn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_o(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ds(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ln(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Qt(t.mode,r.state):null,s=co(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,d=s.classes;d?o.styleClasses=d:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),b=0;!h&&bn)return yn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Tt(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Jo(e)==0)return!1;al(e)&&(cr(e),t.dims=Pi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),$t&&(o=ki(e.doc,o),l=Lo(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;ts(e,o,l),n.viewOffset=er(K(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Jo(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=gs(e);return s>4&&(n.lineDiv.style.display="none"),ms(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ys(u),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,yn(e,400)),n.updateLineNumbers=null,!0}function ol(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==xr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Li(e.display)-Mi(e),n.top)}),t.visible=Vn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vn(e.display,e.doc,n));if(!Ki(e,t))break;Qn(e);var i=vn(e);dn(e),Kr(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new ei(e,t);if(Ki(e,n)){Qn(e),ol(e,n);var r=vn(e);dn(e),Kr(e,r),qi(e,r),n.finish()}}function ms(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(C){var N=C.nextSibling;return W&&xe&&e.display.currentWheelTarget==C?C.style.display="none":C.parentNode.removeChild(C),N}for(var s=r.view,u=r.viewFrom,d=0;d-1&&(m=!1),Oo(e,h,u,n)),m&&(L(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(p(e.options,u)))),l=h.node.nextSibling}u+=h.size}for(;l;)l=a(l)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rt(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function ll(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ei(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),M&&j<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!W&&!(we&&te)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ji(r.gutters,r.lineNumbers),sl(i),n.init(i)}var ti=0,rr=null;M?rr=-.53:we?rr=15:G?rr=-.7:Ee&&(rr=-1/3);function ul(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function xs(e){var t=ul(e);return t.x*=rr,t.y*=rr,t}function fl(e,t){G&&ue==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ul(t),r=n.x,i=n.y,o=rr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&xe&&W){e:for(var d=t.target,h=l.view;d!=a;d=d.parentNode)for(var b=0;b=0&&S(e,r.to())<=0)return n}return-1};var De=function(e,t){this.anchor=e,this.head=t};De.prototype.from=function(){return et(this.anchor,this.head)},De.prototype.to=function(){return Me(this.anchor,this.head)},De.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(b,m){return S(b.from(),m.from())}),n=se(t,i);for(var o=1;o0:s>=0){var u=et(a.from(),l.from()),d=Me(a.to(),l.to()),h=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new De(h?d:u,h?u:d))}}return new At(t,n)}function dr(e,t){return new At([new De(e,t||e)],0)}function hr(e){return e.text?g(e.from.line+e.text.length-1,de(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function cl(e,t){if(S(e,t.from)<0)return e;if(S(e,t.to)<=0)return hr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=hr(t).ch-t.to.ch),g(n,r)}function Xi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,C-1),e.insert(a.line+1,z)}rt(e,"change",e,t)}function pr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),de(e.done)}function yl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Ss(i,i.lastOp==r)))a=de(l.changes),S(t.from,t.to)==0&&S(t.from,a.to)==0?a.to=hr(t):l.changes.push(Ji(e,t));else{var s=de(i.done);for((!s||!s.ranges)&&ni(e.sel,i.done),l={changes:[Ji(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||_e(e,"historyAdded")}function Cs(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ts(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Cs(e,o,de(i.done),t))?i.done[i.done.length-1]=t:ni(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&gl(i.undone)}function ni(e,t){var n=de(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ml(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Ls(e){if(!e)return null;for(var t,n=0;n-1&&(de(a)[h]=u[h],delete u[h])}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=S(t,i)<0;o!=S(n,i)<0?(i=t,t=n):o!=S(t,n)<0&&(t=n)}return new De(i,t)}else return new De(n||t,t)}function ii(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),ct(e,new At([Qi(e.sel.primary(),t,n,i)],0),r)}function xl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(_e(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var h=s.find(r<0?1:-1),b=void 0;if((r<0?d:u)&&(h=Ll(e,h,-r,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(b=S(h,n))&&(r<0?b<0:b>0))return Gr(e,h,t,r,i)}var m=s.find(r<0?-1:1);return(r<0?u:d)&&(m=Ll(e,m,r,m.line==t.line?o:null)),m?Gr(e,m,t,r,i):null}}return t}function li(e,t,n,r,i){var o=r||1,l=Gr(e,t,n,o,i)||!i&&Gr(e,t,n,o,!0)||Gr(e,t,n,-o,i)||!i&&Gr(e,t,n,-o,!0);return l||(e.cantEdit=!0,g(e.first,0))}function Ll(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?le(e,g(t.line-1)):null:n>0&&t.ch==(r||K(e,t.line)).text.length?t.line=0;--i)Dl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Dl(e,t)}}function Dl(e,t){if(!(t.text.length==1&&t.text[0]==""&&S(t.from,t.to)==0)){var n=Xi(e,t);yl(e,t,n,e.cm?e.cm.curOp.id:NaN),xn(e,t,n,xi(e,t));var r=[];pr(e,function(i,o){!o&&se(r,i.history)==-1&&(Pl(i.history,t),r.push(i.history)),xn(i,t,null,xi(i,t))})}}function ai(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--m){var C=b(m);if(C)return C.v}}}}function Al(e,t){if(t!=0&&(e.first+=t,e.sel=new At(st(e.sel.ranges,function(i){return new De(g(i.anchor.line+t,i.anchor.ch),g(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:g(o,K(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vt(e,t.from,t.to),n||(n=Xi(e,t)),e.cm?Ds(e.cm,t,r):Zi(e,t,r),oi(e,n,Ie),e.cantEdit&&li(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ds(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=Ne(_t(K(r,o.line))),r.iter(s,l.line+1,function(m){if(m==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&En(e),Zi(r,t,n,Zo(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(m){var C=Gn(m);C>i.maxLineLength&&(i.maxLine=m,i.maxLineLength=C,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ma(r,o.line),yn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?bt(e):o.line==l.line&&t.text.length==1&&!hl(e.doc,t)?fr(e,o.line,"text"):bt(e,o.line,l.line+1,u);var d=ht(e,"changes"),h=ht(e,"change");if(h||d){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&rt(e,"change",e,b),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function jr(e,t,n,r,i){var o;r||(r=n),S(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),qr(e,{from:n,to:r,text:t,origin:i})}function Ol(e,t,n,r){n1||!(this.children[0]instanceof kn))){var a=[];this.collapse(a),this.children=[new kn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&bt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cl(e.doc)),e&&rt(e,"markerCleared",e,this,r,i),t&&Mr(e),this.parent&&this.parent.clear()}},vr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=w("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(To(e,t.line,t,n,o)||t.line!=n.line&&To(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xa()}o.addToHistory&&yl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(h){s&&o.collapsed&&!s.options.lineWrapping&&_t(h)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Ft(h,0),ka(h,new Bn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(h){ur(e,h)&&Ft(h,0)}),o.clearOnEnter&&E(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(ba(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Il,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)bt(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=n.line;d++)fr(s,d,"text");o.atomic&&Cl(s.doc),rt(s,"markerAdded",s,o)}return o}var Tn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)qr(this,r[s]);a?kl(this,a):this.cm&&Rr(this.cm)}),undo:it(function(){ai(this,"undo")}),redo:it(function(){ai(this,"redo")}),undoSelection:it(function(){ai(this,"undo",!0)}),redoSelection:it(function(){ai(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=le(this,e),t=le(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),le(this,g(n,t))},indexFromPos:function(e){e=le(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),oi(t.doc,dr(n,n)),h)for(var b=0;b=0;a--)jr(e.doc,"",r[a].from,r[a].to,"+delete");Rr(e)})}function $i(e,t,n){var r=be(e.text,t+n,n);return r<0||r>e.text.length?null:r}function eo(e,t,n){var r=$i(e,t.ch,n);return r==null?null:new g(t.line,r,n<0?"after":"before")}function to(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Et(n,t.doc.direction);if(o){var l=i<0?de(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var d=Wr(t,n);u=i<0?n.text.length-1:0;var h=Xt(t,d,u).top;u=he(function(b){return Xt(t,d,b).top==h},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=$i(n,u,1))}else u=i<0?l.to:l.from;return new g(r,u,s)}}return new g(r,i<0?n.text.length:0,i<0?"before":"after")}function Us(e,t,n,r){var i=Et(t,e.doc.direction);if(!i)return eo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Pt(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&b>=d.begin)){var m=h?"before":"after";return new g(n.line,b,m)}}var C=function(z,F,P){for(var H=function(Fe,ot){return ot?new g(n.line,a(Fe,1),"before"):new g(n.line,Fe,"after")};z>=0&&z0==(Z.level!=1),ve=Y?P.begin:a(P.end,-1);if(Z.from<=ve&&ve0?d.end:a(d.begin,-1);return O!=null&&!(r>0&&O==t.text.length)&&(N=C(r>0?0:i.length-1,r,u(O)),N)?N:null}var Nn={selectAll:Ml,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ie)},killLine:function(e){return Zr(e,function(t){if(t.empty()){var n=K(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new g(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),g(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=K(e.doc,i.line-1).text;l&&(i=new g(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),g(i.line-1,l.length-1),i,"+transpose"))}}n.push(new De(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Tt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&S(t,this.pos)==0&&n==this.button};var An,On;function Js(e,t){var n=+new Date;return On&&On.compare(n,e,t)?(An=On=null,"triple"):An&&An.compare(n,e,t)?(On=new no(n,e,t),An=null,"double"):(An=new no(n,e,t),On=null,"single")}function Ql(e){var t=this,n=t.display;if(!(je(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,tr(n,e)){W||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!io(t,e)){var r=kr(t,e),i=rn(e),o=r?Js(r,i):"single";Ze(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Qs(t,i,r,o,e))&&(i==1?r?$s(t,r,o,e):mt(e)==n.scroller&&ft(e):i==2?(r&&ii(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&($?t.display.input.onContextMenu(e):_i(t)))}}}function Qs(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Dn(e,Kl(o,i),i,function(l){if(typeof l=="string"&&(l=Nn[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=ie}finally{e.state.suppressEdits=!1}return a})}function Vs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=Be?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=xe?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(xe?n.altKey:n.ctrlKey)),i}function $s(e,t,n,r){M?setTimeout(We(Vo,e),0):e.curOp.focus=y(ae(e));var i=Vs(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&gi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(S((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(S(l.to(),t)>0||t.xRel<0)?eu(e,r,t,i):tu(e,r,t,i)}function eu(e,t,n,r){var i=e.display,o=!1,l=nt(e,function(u){W&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_i(e)),ut(i.wrapper.ownerDocument,"mouseup",l),ut(i.wrapper.ownerDocument,"mousemove",a),ut(i.scroller,"dragstart",s),ut(i.scroller,"drop",l),o||(ft(u),r.addNew||ii(e.doc,n,null,null,r.extend),W&&!Ee||M&&j==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};W&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,E(i.wrapper.ownerDocument,"mouseup",l),E(i.wrapper.ownerDocument,"mousemove",a),E(i.scroller,"dragstart",s),E(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Vl(e,t,n){if(n=="char")return new De(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new De(g(t.line,0),le(e.doc,g(t.line+1,0)));var r=n(e,t);return new De(r.from,r.to)}function tu(e,t,n,r){M&&_i(e);var i=e.display,o=e.doc;ft(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new De(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new De(n,n)),n=kr(e,t,!0,!0),a=-1;else{var d=Vl(e,n,r.unit);r.extend?l=Qi(l,d.anchor,d.head,r.extend):l=d}r.addNew?a==-1?(a=u.length,ct(o,Bt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ct(o,Bt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Vi(o,a,l,Mt):(a=0,ct(o,new At([l],0),Mt),s=o.sel);var h=n;function b(P){if(S(h,P)!=0)if(h=P,r.unit=="rectangle"){for(var H=[],Z=e.options.tabSize,Y=U(K(o,n.line).text,n.ch,Z),ve=U(K(o,P.line).text,P.ch,Z),Fe=Math.min(Y,ve),ot=Math.max(Y,ve),Ge=Math.min(n.line,P.line),Lt=Math.min(e.lastLine(),Math.max(n.line,P.line));Ge<=Lt;Ge++){var wt=K(o,Ge).text,Qe=yt(wt,Fe,Z);Fe==ot?H.push(new De(g(Ge,Qe),g(Ge,Qe))):wt.length>Qe&&H.push(new De(g(Ge,Qe),g(Ge,yt(wt,ot,Z))))}H.length||H.push(new De(n,n)),ct(o,Bt(e,s.ranges.slice(0,a).concat(H),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(P)}else{var kt=l,at=Vl(e,P,r.unit),tt=kt.anchor,Ve;S(at.anchor,tt)>0?(Ve=at.head,tt=et(kt.from(),at.anchor)):(Ve=at.anchor,tt=Me(kt.to(),at.head));var Ye=s.ranges.slice(0);Ye[a]=ru(e,new De(le(o,tt),Ve)),ct(o,Bt(e,Ye,a),Mt)}}var m=i.wrapper.getBoundingClientRect(),C=0;function N(P){var H=++C,Z=kr(e,P,!0,r.unit=="rectangle");if(Z)if(S(Z,h)!=0){e.curOp.focus=y(ae(e)),b(Z);var Y=Vn(i,o);(Z.line>=Y.to||Z.linem.bottom?20:0;ve&&setTimeout(nt(e,function(){C==H&&(i.scroller.scrollTop+=ve,N(P))}),50)}}function O(P){e.state.selectingText=!1,C=1/0,P&&(ft(P),i.input.focus()),ut(i.wrapper.ownerDocument,"mousemove",z),ut(i.wrapper.ownerDocument,"mouseup",F),o.history.lastSelOrigin=null}var z=nt(e,function(P){P.buttons===0||!rn(P)?O(P):N(P)}),F=nt(e,O);e.state.selectingText=F,E(i.wrapper.ownerDocument,"mousemove",z),E(i.wrapper.ownerDocument,"mouseup",F)}function ru(e,t){var n=t.anchor,r=t.head,i=K(e.doc,n.line);if(S(n,r)==0&&n.sticky==r.sticky)return t;var o=Et(i);if(!o)return t;var l=Pt(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var d=Pt(o,r.ch,r.sticky),h=d-l||(r.ch-n.ch)*(a.level==1?-1:1);d==s-1||d==s?u=h<0:u=h>0}var b=o[s+(u?-1:0)],m=u==(b.level==1),C=m?b.from:b.to,N=m?"after":"before";return n.ch==C&&n.sticky==N?t:new De(new g(n.line,C,N),r)}function $l(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ft(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ht(e,n))return tn(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var d=Gt(e.doc,o),h=e.display.gutterSpecs[s];return _e(e,n,e,d,h.className,t),tn(t)}}}function io(e,t){return $l(e,t,"gutterClick",!0)}function ea(e,t){tr(e.display,t)||nu(e,t)||je(e,t,"contextmenu")||$||e.display.input.onContextMenu(t)}function nu(e,t){return ht(e,"gutterContextMenu")?$l(e,t,"gutterContextMenu",!1):!1}function ta(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cn(e)}var Jr={toString:function(){return"CodeMirror.Init"}},ra={},ci={};function iu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=Jr&&o(a,s,u)}:o)}e.defineOption=n,e.Init=Jr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Yi(r)},!0),n("indentUnit",2,Yi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){bn(r),cn(r),bt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var d=s.text.indexOf(i,u);if(d==-1)break;u=d+i.length,o.push(g(l,d))}l++});for(var a=o.length-1;a>=0;a--)jr(r.doc,i,o[a],g(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Jr&&r.refresh()}),n("specialCharPlaceholder",Pa,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!ye),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ta(r),mn(r)},!0),n("keyMap","default",function(r,i,o){var l=ui(i),a=o!=Jr&&ui(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,lu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=ji(i,r.options.lineNumbers),mn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Ei(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Kr(r)},!0),n("scrollbarStyle","native",function(r){il(r),Kr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=ji(r.options.gutters,i),mn(r)},!0),n("firstLineNumber",1,mn,!0),n("lineNumberFormatter",function(r){return r},mn,!0),n("showCursorWhenSelecting",!1,dn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Br(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,ou),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,dn,!0),n("singleCursorHeightPerLine",!0,dn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bn,!0),n("addModeClass",!1,bn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,bn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function ou(e,t,n){var r=n&&n!=Jr;if(!t!=!r){var i=e.display.dragFunctions,o=t?E:ut;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function lu(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(me(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Ii(e),bt(e),cn(e),setTimeout(function(){return Kr(e)},100)}function Ke(e,t){var n=this;if(!(this instanceof Ke))return new Ke(e,t);this.options=t=t?V(t):{},V(ra,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ke.inputStyles[t.inputStyle](this),o=this.display=new bs(e,r,i,t);o.wrapper.CodeMirror=this,ta(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),il(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},t.autofocus&&!te&&o.input.focus(),M&&j<11&&setTimeout(function(){return n.display.input.reset(!0)},20),au(this),_s(),Lr(this),this.curOp.forceUpdate=!0,pl(this,r),t.autofocus&&!te||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Hi(n)},20):Br(this);for(var l in ci)ci.hasOwnProperty(l)&&ci[l](this,t[l],Jr);al(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}E(t.scroller,"touchstart",function(s){if(!je(e,s)&&!o(s)&&!io(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),E(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),E(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!tr(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var d=e.coordsChar(t.activeTouch,"page"),h;!u.prev||l(u,u.prev)?h=new De(d,d):!u.prev.prev||l(u,u.prev.prev)?h=e.findWordAt(d):h=new De(g(d.line,0),le(e.doc,g(d.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),ft(s)}i()}),E(t.scroller,"touchcancel",i),E(t.scroller,"scroll",function(){t.scroller.clientHeight&&(pn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))}),E(t.scroller,"mousewheel",function(s){return fl(e,s)}),E(t.scroller,"DOMMouseScroll",function(s){return fl(e,s)}),E(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){je(e,s)||Zt(s)},over:function(s){je(e,s)||(Ws(e,s),Zt(s))},start:function(s){return Fs(e,s)},drop:nt(e,Is),leave:function(s){je(e,s)||_l(e)}};var a=t.input.getField();E(a,"keyup",function(s){return Zl.call(e,s)}),E(a,"keydown",nt(e,Yl)),E(a,"keypress",nt(e,Jl)),E(a,"focus",function(s){return Hi(e,s)}),E(a,"blur",function(s){return Br(e,s)})}var oo=[];Ke.defineInitHook=function(e){return oo.push(e)};function zn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=ln(e,t).state:n="prev");var l=e.options.tabSize,a=K(i,t),s=U(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],d;if(!r&&!/\S/.test(a.text))d=0,n="not";else if(n=="smart"&&(d=i.mode.indent(o,a.text.slice(u.length),a.text),d==ie||d>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?d=U(K(i,t-1).text,null,l):d=0:n=="add"?d=s+e.options.indentUnit:n=="subtract"?d=s-e.options.indentUnit:typeof n=="number"&&(d=s+n),d=Math.max(0,d);var h="",b=0;if(e.options.indentWithTabs)for(var m=Math.floor(d/l);m;--m)b+=l,h+=" ";if(bl,s=nn(t),u=null;if(a&&r.ranges.length>1)if(Rt&&Rt.text.join(` -`)==t){if(r.ranges.length%Rt.text.length==0){u=[];for(var d=0;d=0;b--){var m=r.ranges[b],C=m.from(),N=m.to();m.empty()&&(n&&n>0?C=g(C.line,C.ch-n):e.state.overwrite&&!a?N=g(N.line,Math.min(K(o,N.line).text.length,N.ch+de(s).length)):a&&Rt&&Rt.lineWise&&Rt.text.join(` -`)==s.join(` -`)&&(C=N=g(C.line,0)));var O={from:C,to:N,text:u?u[b%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};qr(e.doc,O),rt(e,"inputRead",e,O)}t&&!a&&ia(e,t),Rr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function na(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Tt(t,function(){return lo(t,n,0,null,"paste")}),!0}function ia(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(K(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=zn(e,i.head.line,"smart"));l&&rt(e,"electricInput",e,i.head.line)}}}function oa(e){for(var t=[],n=[],r=0;ro&&(zn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Rr(this));else{var s=a.from(),u=a.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=d;h0&&Vi(this.doc,l,new De(s,b[l].to()),Ie)}}}),getTokenAt:function(r,i){return go(this,r,i)},getLineTokens:function(r,i){return go(this,g(r),i,!0)},getTokenTypeAt:function(r){r=le(this.doc,r);var i=ho(this,K(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=K(this.doc,r)}else a=r;return Xn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-er(a):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return Hr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=Ht(this,le(this.doc,r));var u=r.bottom,d=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>h)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=h&&(u=r.bottom),d+i.offsetWidth>b&&(d=b-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(d=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?d=0:a=="middle"&&(d=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=d+"px"),o&&os(this,{left:d,top:u,right:d+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:vt(Yl),triggerOnKeyPress:vt(Jl),triggerOnKeyUp:Zl,triggerOnMouseDown:vt(Ql),execCommand:function(r){if(Nn.hasOwnProperty(r))return Nn[r].call(null,this)},triggerElectric:vt(function(r){ia(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=le(this.doc,r),u=0;u0&&d(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Ii(this),_e(this,"refresh",this)}),swapDoc:vt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),pl(this,r),cn(this),this.display.input.reset(),hn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function ao(e,t,n,r,i){var o=t,l=n,a=K(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var F=t.line+s;return F=e.first+e.size?!1:(t=new g(F,t.ch,t.sticky),a=K(e,F))}function d(F){var P;if(r=="codepoint"){var H=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(H))P=null;else{var Z=n>0?H>=55296&&H<56320:H>=56320&&H<57343;P=new g(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(Z?2:1))),-n)}}else i?P=Us(e.cm,a,t,n):P=eo(a,t,n);if(P==null)if(!F&&u())t=to(i,e.cm,a,t.line,s);else return!1;else t=P;return!0}if(r=="char"||r=="codepoint")d();else if(r=="column")d(!0);else if(r=="word"||r=="group")for(var h=null,b=r=="group",m=e.cm&&e.cm.getHelper(t,"wordChars"),C=!0;!(n<0&&!d(!C));C=!1){var N=a.text.charAt(t.ch)||` -`,O=pe(N,m)?"w":b&&N==` -`?"n":!b||/\s/.test(N)?null:"p";if(b&&!C&&!O&&(O="s"),h&&h!=O){n<0&&(n=1,d(),t.sticky="after");break}if(O&&(h=O),n>0&&!d(!C))break}var z=li(e,t,o,l,!0);return oe(o,z)&&(z.hitSide=!0),z}function sa(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Ze(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*_r(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Oi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var ze=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ze.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,la(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}E(i,"paste",function(a){!o(a)||je(r,a)||na(a,r)||j<=11&&setTimeout(nt(r,function(){return t.updateFromDOM()}),20)}),E(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),E(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),E(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),E(i,"touchstart",function(){return n.forceCompositionEnd()}),E(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||je(r,a))){if(r.somethingSelected())di({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=oa(r);di({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ie),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Rt.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var d=aa(),h=d.firstChild;r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),h.value=Rt.text.join(` -`);var b=y(i.ownerDocument);Q(h),setTimeout(function(){r.display.lineSpace.removeChild(d),b.focus(),b==i&&n.showPrimarySelection()},50)}}E(i,"copy",l),E(i,"cut",l)},ze.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ze.prototype.prepareSelection=function(){var e=Qo(this.cm,!1);return e.focus=y(this.div.ownerDocument)==this.div,e},ze.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ze.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ze.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ua(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=g(r.line-1,K(e.doc,r.line-1).length)),i.ch==K(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Sr(e,r.line))==0?(l=Ne(t.view[0].line),a=t.view[0].node):(l=Ne(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Sr(e,i.line),u,d;if(s==t.view.length-1?(u=t.viewTo-1,d=t.lineDiv.lastChild):(u=Ne(t.view[s+1].line)-1,d=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(fu(e,a,d,l,u)),b=Vt(e.doc,g(l,0),g(u,K(e.doc,u).text.length));h.length>1&&b.length>1;)if(de(h)==de(b))h.pop(),b.pop(),u--;else if(h[0]==b[0])h.shift(),b.shift(),l++;else break;for(var m=0,C=0,N=h[0],O=b[0],z=Math.min(N.length,O.length);mr.ch&&F.charCodeAt(F.length-C-1)==P.charCodeAt(P.length-C-1);)m--,C++;h[h.length-1]=F.slice(0,F.length-C).replace(/^\u200b+/,""),h[0]=h[0].slice(m).replace(/\u200b+$/,"");var Z=g(l,m),Y=g(u,b.length?de(b).length-C:0);if(h.length>1||h[0]||S(Z,Y))return jr(e.doc,h,Z,Y,"+input"),!0},ze.prototype.ensurePolled=function(){this.forceCompositionEnd()},ze.prototype.reset=function(){this.forceCompositionEnd()},ze.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ze.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ze.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Tt(this.cm,function(){return bt(e.cm)})},ze.prototype.setUneditable=function(e){e.contentEditable="false"},ze.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||nt(this.cm,lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ze.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ze.prototype.onContextMenu=function(){},ze.prototype.resetPosition=function(){},ze.prototype.needsContentAttribute=!0;function ua(e,t){var n=Ni(e,t.line);if(!n||n.hidden)return null;var r=K(e.doc,t.line),i=Wo(n,r,t.line),o=Et(r,e.doc.direction),l="left";if(o){var a=Pt(o,t.ch);l=a%2?"right":"left"}var s=Bo(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function uu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Qr(e,t){return t&&(e.bad=!0),e}function fu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(m){return function(C){return C.id==m}}function d(){l&&(o+=a,s&&(o+=a),l=s=!1)}function h(m){m&&(d(),o+=m)}function b(m){if(m.nodeType==1){var C=m.getAttribute("cm-text");if(C){h(C);return}var N=m.getAttribute("cm-marker"),O;if(N){var z=e.findMarks(g(r,0),g(i+1,0),u(+N));z.length&&(O=z[0].find(0))&&h(Vt(e.doc,O.from,O.to).join(a));return}if(m.getAttribute("contenteditable")=="false")return;var F=/^(pre|div|p|li|table|br)$/i.test(m.nodeName);if(!/^br$/i.test(m.nodeName)&&m.textContent.length==0)return;F&&d();for(var P=0;P=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),E(i,"paste",function(l){je(r,l)||na(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!je(r,l)){if(r.somethingSelected())di({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=oa(r);di({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ie):(n.prevInput="",i.value=a.text.join(` -`),Q(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}E(i,"cut",o),E(i,"copy",o),E(e.scroller,"paste",function(l){if(!(tr(e,l)||je(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),E(e.lineSpace,"selectstart",function(l){tr(e,l)||ft(l)}),E(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),E(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Je.prototype.createField=function(e){this.wrapper=aa(),this.textarea=this.wrapper.firstChild},Je.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Je.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Qo(e);if(e.options.moveInputWithCursor){var i=Ht(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},Je.prototype.showSelection=function(e){var t=this.cm,n=t.display;_(n.cursorDiv,e.cursors),_(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Je.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Q(this.textarea),M&&j>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",M&&j>=9&&(this.hasSelection=null));this.resetting=!1}},Je.prototype.getField=function(){return this.textarea},Je.prototype.supportsTouch=function(){return!1},Je.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||y(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Je.prototype.blur=function(){this.textarea.blur()},Je.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Je.prototype.receivedFocus=function(){this.slowPoll()},Je.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Je.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},Je.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||or(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(M&&j>=9&&this.hasSelection===i||xe&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Je.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Je.prototype.onKeyPress=function(){M&&j>=9&&(this.hasSelection=null),this.fastPoll()},Je.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=kr(n,e),l=r.scroller.scrollTop;if(!o||ce)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&nt(n,ct)(n.doc,dr(o),Ie);var s=i.style.cssText,u=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+`px; - z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;W&&(h=i.ownerDocument.defaultView.scrollY),r.input.focus(),W&&i.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(i.selectionStart!=null){var N=n.somethingSelected(),O="​"+(N?i.value:"");i.value="⇚",i.value=O,t.prevInput=N?"":"​",i.selectionStart=1,i.selectionEnd=O.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,M&&j<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!M||M&&j<9)&&b();var N=0,O=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?nt(n,Ml)(n):N++<10?r.detectingSelectAll=setTimeout(O,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(O,200)}}if(M&&j>=9&&b(),$){Zt(e);var C=function(){ut(window,"mouseup",C),setTimeout(m,20)};E(window,"mouseup",C)}else setTimeout(m,50)},Je.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Je.prototype.setUneditable=function(){},Je.prototype.needsContentAttribute=!1;function du(e,t){if(t=t?V(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=y(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(E(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ut(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Ke(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function hu(e){e.off=ut,e.on=E,e.wheelEventPixels=xs,e.Doc=xt,e.splitLines=nn,e.countColumn=U,e.findColumn=yt,e.isWordChar=T,e.Pass=ie,e.signal=_e,e.Line=Ir,e.changeEnd=hr,e.scrollbarModel=nl,e.Pos=g,e.cmpPos=S,e.modes=Wt,e.mimeModes=lr,e.resolveMode=Ct,e.getMode=Jt,e.modeExtensions=ar,e.extendMode=_n,e.copyState=Qt,e.startState=on,e.innerMode=sr,e.commands=Nn,e.keyMap=nr,e.keyName=Ul,e.isModifierKey=Rl,e.lookupKey=Yr,e.normalizeKeyMap=Ks,e.StringStream=Xe,e.SharedTextMarker=Tn,e.TextMarker=vr,e.LineWidget=Cn,e.e_preventDefault=ft,e.e_stopPropagation=br,e.e_stop=Zt,e.addClass=D,e.contains=v,e.rmClass=me,e.keyNames=gr}iu(Ke),su(Ke);var pu="iter insert remove copy getEditor constructor".split(" ");for(var pi in xt.prototype)xt.prototype.hasOwnProperty(pi)&&se(pu,pi)<0&&(Ke.prototype[pi]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[pi]));return pt(xt),Ke.inputStyles={textarea:Je,contenteditable:ze},Ke.defineMode=function(e){!Ke.defaults.mode&&e!="null"&&(Ke.defaults.mode=e),Wn.apply(this,arguments)},Ke.defineMIME=Pr,Ke.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ke.defineMIME("text/plain","null"),Ke.defineExtension=function(e,t){Ke.prototype[e]=t},Ke.defineDocExtension=function(e,t){xt.prototype[e]=t},Ke.fromTextArea=du,hu(Ke),Ke.version="5.65.9",Ke})})(pa);var Ar=pa.exports;const wu=vu(Ar);var yu={exports:{}};(function(mr,Or){(function(I){I(Ar)})(function(I){I.defineMode("css",function($,X){var me=X.inline;X.propertyKeywords||(X=I.resolveMode("text/css"));var L=$.indentUnit,_=X.tokenHooks,c=X.documentTypes||{},w=X.mediaTypes||{},x=X.mediaFeatures||{},v=X.mediaValueKeywords||{},y=X.propertyKeywords||{},D=X.nonStandardPropertyKeywords||{},B=X.fontProperties||{},Q=X.counterDescriptors||{},ae=X.colorKeywords||{},Ze=X.valueKeywords||{},We=X.allowNested,V=X.lineComment,U=X.supportsAtComponent===!0,fe=$.highlightNonStandardPropertyKeywords!==!1,se,ge;function ie(k,A){return se=A,k}function Ie(k,A){var T=k.next();if(_[T]){var pe=_[T](k,A);if(pe!==!1)return pe}if(T=="@")return k.eatWhile(/[\w\\\-]/),ie("def",k.current());if(T=="="||(T=="~"||T=="|")&&k.eat("="))return ie(null,"compare");if(T=='"'||T=="'")return A.tokenize=Mt(T),A.tokenize(k,A);if(T=="#")return k.eatWhile(/[\w\\\-]/),ie("atom","hash");if(T=="!")return k.match(/^\s*\w*/),ie("keyword","important");if(/\d/.test(T)||T=="."&&k.eat(/\d/))return k.eatWhile(/[\w.%]/),ie("number","unit");if(T==="-"){if(/[\d.]/.test(k.peek()))return k.eatWhile(/[\w.%]/),ie("number","unit");if(k.match(/^-[\w\\\-]*/))return k.eatWhile(/[\w\\\-]/),k.match(/^\s*:/,!1)?ie("variable-2","variable-definition"):ie("variable-2","variable");if(k.match(/^\w+-/))return ie("meta","meta")}else return/[,+>*\/]/.test(T)?ie(null,"select-op"):T=="."&&k.match(/^-?[_a-z][_a-z0-9-]*/i)?ie("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(T)?ie(null,T):k.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(k.current())&&(A.tokenize=Ot),ie("variable callee","variable")):/[\w\\\-]/.test(T)?(k.eatWhile(/[\w\\\-]/),ie("property","word")):ie(null,null)}function Mt(k){return function(A,T){for(var pe=!1,R;(R=A.next())!=null;){if(R==k&&!pe){k==")"&&A.backUp(1);break}pe=!pe&&R=="\\"}return(R==k||!pe&&k!=")")&&(T.tokenize=null),ie("string","string")}}function Ot(k,A){return k.next(),k.match(/^\s*[\"\')]/,!1)?A.tokenize=null:A.tokenize=Mt(")"),ie(null,"(")}function yt(k,A,T){this.type=k,this.indent=A,this.prev=T}function Te(k,A,T,pe){return k.context=new yt(T,A.indentation()+(pe===!1?0:L),k.context),T}function Ue(k){return k.context.prev&&(k.context=k.context.prev),k.context.type}function de(k,A,T){return Oe[T.context.type](k,A,T)}function st(k,A,T,pe){for(var R=pe||1;R>0;R--)T.context=T.context.prev;return de(k,A,T)}function qe(k){var A=k.current().toLowerCase();Ze.hasOwnProperty(A)?ge="atom":ae.hasOwnProperty(A)?ge="keyword":ge="variable"}var Oe={};return Oe.top=function(k,A,T){if(k=="{")return Te(T,A,"block");if(k=="}"&&T.context.prev)return Ue(T);if(U&&/@component/i.test(k))return Te(T,A,"atComponentBlock");if(/^@(-moz-)?document$/i.test(k))return Te(T,A,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(k))return Te(T,A,"atBlock");if(/^@(font-face|counter-style)/i.test(k))return T.stateArg=k,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(k))return"keyframes";if(k&&k.charAt(0)=="@")return Te(T,A,"at");if(k=="hash")ge="builtin";else if(k=="word")ge="tag";else{if(k=="variable-definition")return"maybeprop";if(k=="interpolation")return Te(T,A,"interpolation");if(k==":")return"pseudo";if(We&&k=="(")return Te(T,A,"parens")}return T.context.type},Oe.block=function(k,A,T){if(k=="word"){var pe=A.current().toLowerCase();return y.hasOwnProperty(pe)?(ge="property","maybeprop"):D.hasOwnProperty(pe)?(ge=fe?"string-2":"property","maybeprop"):We?(ge=A.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return k=="meta"?"block":!We&&(k=="hash"||k=="qualifier")?(ge="error","block"):Oe.top(k,A,T)},Oe.maybeprop=function(k,A,T){return k==":"?Te(T,A,"prop"):de(k,A,T)},Oe.prop=function(k,A,T){if(k==";")return Ue(T);if(k=="{"&&We)return Te(T,A,"propBlock");if(k=="}"||k=="{")return st(k,A,T);if(k=="(")return Te(T,A,"parens");if(k=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(A.current()))ge+=" error";else if(k=="word")qe(A);else if(k=="interpolation")return Te(T,A,"interpolation");return"prop"},Oe.propBlock=function(k,A,T){return k=="}"?Ue(T):k=="word"?(ge="property","maybeprop"):T.context.type},Oe.parens=function(k,A,T){return k=="{"||k=="}"?st(k,A,T):k==")"?Ue(T):k=="("?Te(T,A,"parens"):k=="interpolation"?Te(T,A,"interpolation"):(k=="word"&&qe(A),"parens")},Oe.pseudo=function(k,A,T){return k=="meta"?"pseudo":k=="word"?(ge="variable-3",T.context.type):de(k,A,T)},Oe.documentTypes=function(k,A,T){return k=="word"&&c.hasOwnProperty(A.current())?(ge="tag",T.context.type):Oe.atBlock(k,A,T)},Oe.atBlock=function(k,A,T){if(k=="(")return Te(T,A,"atBlock_parens");if(k=="}"||k==";")return st(k,A,T);if(k=="{")return Ue(T)&&Te(T,A,We?"block":"top");if(k=="interpolation")return Te(T,A,"interpolation");if(k=="word"){var pe=A.current().toLowerCase();pe=="only"||pe=="not"||pe=="and"||pe=="or"?ge="keyword":w.hasOwnProperty(pe)?ge="attribute":x.hasOwnProperty(pe)?ge="property":v.hasOwnProperty(pe)?ge="keyword":y.hasOwnProperty(pe)?ge="property":D.hasOwnProperty(pe)?ge=fe?"string-2":"property":Ze.hasOwnProperty(pe)?ge="atom":ae.hasOwnProperty(pe)?ge="keyword":ge="error"}return T.context.type},Oe.atComponentBlock=function(k,A,T){return k=="}"?st(k,A,T):k=="{"?Ue(T)&&Te(T,A,We?"block":"top",!1):(k=="word"&&(ge="error"),T.context.type)},Oe.atBlock_parens=function(k,A,T){return k==")"?Ue(T):k=="{"||k=="}"?st(k,A,T,2):Oe.atBlock(k,A,T)},Oe.restricted_atBlock_before=function(k,A,T){return k=="{"?Te(T,A,"restricted_atBlock"):k=="word"&&T.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):de(k,A,T)},Oe.restricted_atBlock=function(k,A,T){return k=="}"?(T.stateArg=null,Ue(T)):k=="word"?(T.stateArg=="@font-face"&&!B.hasOwnProperty(A.current().toLowerCase())||T.stateArg=="@counter-style"&&!Q.hasOwnProperty(A.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Oe.keyframes=function(k,A,T){return k=="word"?(ge="variable","keyframes"):k=="{"?Te(T,A,"top"):de(k,A,T)},Oe.at=function(k,A,T){return k==";"?Ue(T):k=="{"||k=="}"?st(k,A,T):(k=="word"?ge="tag":k=="hash"&&(ge="builtin"),"at")},Oe.interpolation=function(k,A,T){return k=="}"?Ue(T):k=="{"||k==";"?st(k,A,T):(k=="word"?ge="variable":k!="variable"&&k!="("&&k!=")"&&(ge="error"),"interpolation")},{startState:function(k){return{tokenize:null,state:me?"block":"top",stateArg:null,context:new yt(me?"block":"top",k||0,null)}},token:function(k,A){if(!A.tokenize&&k.eatSpace())return null;var T=(A.tokenize||Ie)(k,A);return T&&typeof T=="object"&&(se=T[1],T=T[0]),ge=T,se!="comment"&&(A.state=Oe[A.state](se,k,A)),ge},indent:function(k,A){var T=k.context,pe=A&&A.charAt(0),R=T.indent;return T.type=="prop"&&(pe=="}"||pe==")")&&(T=T.prev),T.prev&&(pe=="}"&&(T.type=="block"||T.type=="top"||T.type=="interpolation"||T.type=="restricted_atBlock")?(T=T.prev,R=T.indent):(pe==")"&&(T.type=="parens"||T.type=="atBlock_parens")||pe=="{"&&(T.type=="at"||T.type=="atBlock"))&&(R=Math.max(0,T.indent-L))),R},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:V,fold:"brace"}});function Pe($){for(var X={},me=0;me<$.length;++me)X[$[me].toLowerCase()]=!0;return X}var we=["domain","regexp","url","url-prefix"],He=Pe(we),$e=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],Ce=Pe($e),M=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],j=Pe(M),W=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],ee=Pe(W),G=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],ue=Pe(G),ce=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Ee=Pe(ce),Se=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=Pe(Se),re=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],J=Pe(re),te=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],xe=Pe(te),Be=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ye=Pe(Be),Le=we.concat($e).concat(M).concat(W).concat(G).concat(ce).concat(te).concat(Be);I.registerHelper("hintWords","css",Le);function Re($,X){for(var me=!1,L;(L=$.next())!=null;){if(me&&L=="/"){X.tokenize=null;break}me=L=="*"}return["comment","comment"]}I.defineMIME("text/css",{documentTypes:He,mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,fontProperties:Ae,counterDescriptors:J,colorKeywords:xe,valueKeywords:ye,tokenHooks:{"/":function($,X){return $.eat("*")?(X.tokenize=Re,Re($,X)):!1}},name:"css"}),I.defineMIME("text/x-scss",{mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,colorKeywords:xe,valueKeywords:ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($,X){return $.eat("/")?($.skipToEnd(),["comment","comment"]):$.eat("*")?(X.tokenize=Re,Re($,X)):["operator","operator"]},":":function($){return $.match(/^\s*\{/,!1)?[null,null]:!1},$:function($){return $.match(/^[\w-]+/),$.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function($){return $.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),I.defineMIME("text/x-less",{mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,colorKeywords:xe,valueKeywords:ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($,X){return $.eat("/")?($.skipToEnd(),["comment","comment"]):$.eat("*")?(X.tokenize=Re,Re($,X)):["operator","operator"]},"@":function($){return $.eat("{")?[null,"interpolation"]:$.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:($.eatWhile(/[\w\\\-]/),$.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),I.defineMIME("text/x-gss",{documentTypes:He,mediaTypes:Ce,mediaFeatures:j,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,fontProperties:Ae,counterDescriptors:J,colorKeywords:xe,valueKeywords:ye,supportsAtComponent:!0,tokenHooks:{"/":function($,X){return $.eat("*")?(X.tokenize=Re,Re($,X)):!1}},name:"css",helperType:"gss"})})})();var mu=yu.exports,fa={exports:{}},ca;function bu(){return ca||(ca=1,function(mr,Or){(function(I){I(Ar)})(function(I){var Pe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},we={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(He,$e){var Ce=He.indentUnit,M={},j=$e.htmlMode?Pe:we;for(var W in j)M[W]=j[W];for(var W in $e)M[W]=$e[W];var ee,G;function ue(c,w){function x(D){return w.tokenize=D,D(c,w)}var v=c.next();if(v=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?x(Se("atom","]]>")):null:c.match("--")?x(Se("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),x(Ae(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),w.tokenize=Se("meta","?>"),"meta"):(ee=c.eat("/")?"closeTag":"openTag",w.tokenize=ce,"tag bracket");if(v=="&"){var y;return c.eat("#")?c.eat("x")?y=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):y=c.eatWhile(/[\d]/)&&c.eat(";"):y=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),y?"atom":"error"}else return c.eatWhile(/[^&<]/),null}ue.isInText=!0;function ce(c,w){var x=c.next();if(x==">"||x=="/"&&c.eat(">"))return w.tokenize=ue,ee=x==">"?"endTag":"selfcloseTag","tag bracket";if(x=="=")return ee="equals",null;if(x=="<"){w.tokenize=ue,w.state=Be,w.tagName=w.tagStart=null;var v=w.tokenize(c,w);return v?v+" tag error":"tag error"}else return/[\'\"]/.test(x)?(w.tokenize=Ee(x),w.stringStartCol=c.column(),w.tokenize(c,w)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(c){var w=function(x,v){for(;!x.eol();)if(x.next()==c){v.tokenize=ce;break}return"string"};return w.isInAttribute=!0,w}function Se(c,w){return function(x,v){for(;!x.eol();){if(x.match(w)){v.tokenize=ue;break}x.next()}return c}}function Ae(c){return function(w,x){for(var v;(v=w.next())!=null;){if(v=="<")return x.tokenize=Ae(c+1),x.tokenize(w,x);if(v==">")if(c==1){x.tokenize=ue;break}else return x.tokenize=Ae(c-1),x.tokenize(w,x)}return"meta"}}function re(c){return c&&c.toLowerCase()}function J(c,w,x){this.prev=c.context,this.tagName=w||"",this.indent=c.indented,this.startOfLine=x,(M.doNotIndent.hasOwnProperty(w)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function te(c){c.context&&(c.context=c.context.prev)}function xe(c,w){for(var x;;){if(!c.context||(x=c.context.tagName,!M.contextGrabbers.hasOwnProperty(re(x))||!M.contextGrabbers[re(x)].hasOwnProperty(re(w))))return;te(c)}}function Be(c,w,x){return c=="openTag"?(x.tagStart=w.column(),ye):c=="closeTag"?Le:Be}function ye(c,w,x){return c=="word"?(x.tagName=w.current(),G="tag",X):M.allowMissingTagName&&c=="endTag"?(G="tag bracket",X(c,w,x)):(G="error",ye)}function Le(c,w,x){if(c=="word"){var v=w.current();return x.context&&x.context.tagName!=v&&M.implicitlyClosed.hasOwnProperty(re(x.context.tagName))&&te(x),x.context&&x.context.tagName==v||M.matchClosing===!1?(G="tag",Re):(G="tag error",$)}else return M.allowMissingTagName&&c=="endTag"?(G="tag bracket",Re(c,w,x)):(G="error",$)}function Re(c,w,x){return c!="endTag"?(G="error",Re):(te(x),Be)}function $(c,w,x){return G="error",Re(c,w,x)}function X(c,w,x){if(c=="word")return G="attribute",me;if(c=="endTag"||c=="selfcloseTag"){var v=x.tagName,y=x.tagStart;return x.tagName=x.tagStart=null,c=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(re(v))?xe(x,v):(xe(x,v),x.context=new J(x,v,y==x.indented)),Be}return G="error",X}function me(c,w,x){return c=="equals"?L:(M.allowMissing||(G="error"),X(c,w,x))}function L(c,w,x){return c=="string"?_:c=="word"&&M.allowUnquoted?(G="string",X):(G="error",X(c,w,x))}function _(c,w,x){return c=="string"?_:X(c,w,x)}return{startState:function(c){var w={tokenize:ue,state:Be,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(w.baseIndent=c),w},token:function(c,w){if(!w.tagName&&c.sol()&&(w.indented=c.indentation()),c.eatSpace())return null;ee=null;var x=w.tokenize(c,w);return(x||ee)&&x!="comment"&&(G=null,w.state=w.state(ee||x,c,w),G&&(x=G=="error"?x+" error":G)),x},indent:function(c,w,x){var v=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+Ce;if(v&&v.noIndent)return I.Pass;if(c.tokenize!=ce&&c.tokenize!=ue)return x?x.match(/^(\s*)/)[0].length:0;if(c.tagName)return M.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+Ce*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(c){c.state==L&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var w=[],x=c.context;x;x=x.prev)w.push(x.tagName);return w.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),fa.exports}var da={exports:{}},ha;function va(){return ha||(ha=1,function(mr,Or){(function(I){I(Ar)})(function(I){I.defineMode("javascript",function(Pe,we){var He=Pe.indentUnit,$e=we.statementIndent,Ce=we.jsonld,M=we.json||Ce,j=we.trackScope!==!1,W=we.typescript,ee=we.wordCharacters||/[\w$\xa1-\uffff]/,G=function(){function f(et){return{type:et,style:"keyword"}}var p=f("keyword a"),g=f("keyword b"),S=f("keyword c"),oe=f("keyword d"),ke=f("operator"),Me={type:"atom",style:"atom"};return{if:f("if"),while:p,with:p,else:g,do:g,try:g,finally:g,return:oe,break:oe,continue:oe,new:f("new"),delete:S,void:S,throw:S,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:ke,typeof:ke,instanceof:ke,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:f("this"),class:f("class"),super:f("atom"),yield:S,export:f("export"),import:f("import"),extends:S,await:S}}(),ue=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ee(f){for(var p=!1,g,S=!1;(g=f.next())!=null;){if(!p){if(g=="/"&&!S)return;g=="["?S=!0:S&&g=="]"&&(S=!1)}p=!p&&g=="\\"}}var Se,Ae;function re(f,p,g){return Se=f,Ae=g,p}function J(f,p){var g=f.next();if(g=='"'||g=="'")return p.tokenize=te(g),p.tokenize(f,p);if(g=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return re("number","number");if(g=="."&&f.match(".."))return re("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(g))return re(g);if(g=="="&&f.eat(">"))return re("=>","operator");if(g=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return re("number","number");if(/\d/.test(g))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),re("number","number");if(g=="/")return f.eat("*")?(p.tokenize=xe,xe(f,p)):f.eat("/")?(f.skipToEnd(),re("comment","comment")):Gt(f,p,1)?(Ee(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),re("regexp","string-2")):(f.eat("="),re("operator","operator",f.current()));if(g=="`")return p.tokenize=Be,Be(f,p);if(g=="#"&&f.peek()=="!")return f.skipToEnd(),re("meta","meta");if(g=="#"&&f.eatWhile(ee))return re("variable","property");if(g=="<"&&f.match("!--")||g=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),re("comment","comment");if(ue.test(g))return(g!=">"||!p.lexical||p.lexical.type!=">")&&(f.eat("=")?(g=="!"||g=="=")&&f.eat("="):/[<>*+\-|&?]/.test(g)&&(f.eat(g),g==">"&&f.eat(g))),g=="?"&&f.eat(".")?re("."):re("operator","operator",f.current());if(ee.test(g)){f.eatWhile(ee);var S=f.current();if(p.lastType!="."){if(G.propertyIsEnumerable(S)){var oe=G[S];return re(oe.type,oe.style,S)}if(S=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return re("async","keyword",S)}return re("variable","variable",S)}}function te(f){return function(p,g){var S=!1,oe;if(Ce&&p.peek()=="@"&&p.match(ce))return g.tokenize=J,re("jsonld-keyword","meta");for(;(oe=p.next())!=null&&!(oe==f&&!S);)S=!S&&oe=="\\";return S||(g.tokenize=J),re("string","string")}}function xe(f,p){for(var g=!1,S;S=f.next();){if(S=="/"&&g){p.tokenize=J;break}g=S=="*"}return re("comment","comment")}function Be(f,p){for(var g=!1,S;(S=f.next())!=null;){if(!g&&(S=="`"||S=="$"&&f.eat("{"))){p.tokenize=J;break}g=!g&&S=="\\"}return re("quasi","string-2",f.current())}var ye="([{}])";function Le(f,p){p.fatArrowAt&&(p.fatArrowAt=null);var g=f.string.indexOf("=>",f.start);if(!(g<0)){if(W){var S=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,g));S&&(g=S.index)}for(var oe=0,ke=!1,Me=g-1;Me>=0;--Me){var et=f.string.charAt(Me),Dt=ye.indexOf(et);if(Dt>=0&&Dt<3){if(!oe){++Me;break}if(--oe==0){et=="("&&(ke=!0);break}}else if(Dt>=3&&Dt<6)++oe;else if(ee.test(et))ke=!0;else if(/["'\/`]/.test(et))for(;;--Me){if(Me==0)return;var le=f.string.charAt(Me-1);if(le==et&&f.string.charAt(Me-2)!="\\"){Me--;break}}else if(ke&&!oe){++Me;break}}ke&&!oe&&(p.fatArrowAt=Me)}}var Re={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(f,p,g,S,oe,ke){this.indented=f,this.column=p,this.type=g,this.prev=oe,this.info=ke,S!=null&&(this.align=S)}function X(f,p){if(!j)return!1;for(var g=f.localVars;g;g=g.next)if(g.name==p)return!0;for(var S=f.context;S;S=S.prev)for(var g=S.vars;g;g=g.next)if(g.name==p)return!0}function me(f,p,g,S,oe){var ke=f.cc;for(L.state=f,L.stream=oe,L.marked=null,L.cc=ke,L.style=p,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var Me=ke.length?ke.pop():M?ie:se;if(Me(g,S)){for(;ke.length&&ke[ke.length-1].lex;)ke.pop()();return L.marked?L.marked:g=="variable"&&X(f,S)?"variable-2":p}}}var L={state:null,column:null,marked:null,cc:null};function _(){for(var f=arguments.length-1;f>=0;f--)L.cc.push(arguments[f])}function c(){return _.apply(null,arguments),!0}function w(f,p){for(var g=p;g;g=g.next)if(g.name==f)return!0;return!1}function x(f){var p=L.state;if(L.marked="def",!!j){if(p.context){if(p.lexical.info=="var"&&p.context&&p.context.block){var g=v(f,p.context);if(g!=null){p.context=g;return}}else if(!w(f,p.localVars)){p.localVars=new B(f,p.localVars);return}}we.globalVars&&!w(f,p.globalVars)&&(p.globalVars=new B(f,p.globalVars))}}function v(f,p){if(p)if(p.block){var g=v(f,p.prev);return g?g==p.prev?p:new D(g,p.vars,!0):null}else return w(f,p.vars)?p:new D(p.prev,new B(f,p.vars),!1);else return null}function y(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function D(f,p,g){this.prev=f,this.vars=p,this.block=g}function B(f,p){this.name=f,this.next=p}var Q=new B("this",new B("arguments",null));function ae(){L.state.context=new D(L.state.context,L.state.localVars,!1),L.state.localVars=Q}function Ze(){L.state.context=new D(L.state.context,L.state.localVars,!0),L.state.localVars=null}ae.lex=Ze.lex=!0;function We(){L.state.localVars=L.state.context.vars,L.state.context=L.state.context.prev}We.lex=!0;function V(f,p){var g=function(){var S=L.state,oe=S.indented;if(S.lexical.type=="stat")oe=S.lexical.indented;else for(var ke=S.lexical;ke&&ke.type==")"&&ke.align;ke=ke.prev)oe=ke.indented;S.lexical=new $(oe,L.stream.column(),f,null,S.lexical,p)};return g.lex=!0,g}function U(){var f=L.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}U.lex=!0;function fe(f){function p(g){return g==f?c():f==";"||g=="}"||g==")"||g=="]"?_():c(p)}return p}function se(f,p){return f=="var"?c(V("vardef",p),Zt,fe(";"),U):f=="keyword a"?c(V("form"),Mt,se,U):f=="keyword b"?c(V("form"),se,U):f=="keyword d"?L.stream.match(/^\s*$/,!1)?c():c(V("stat"),yt,fe(";"),U):f=="debugger"?c(fe(";")):f=="{"?c(V("}"),Ze,zt,U,We):f==";"?c():f=="if"?(L.state.lexical.info=="else"&&L.state.cc[L.state.cc.length-1]==U&&L.state.cc.pop()(),c(V("form"),Mt,se,U,zr)):f=="function"?c(Kt):f=="for"?c(V("form"),Ze,In,se,We,U):f=="class"||W&&p=="interface"?(L.marked="keyword",c(V("form",f=="class"?f:p),Wn,U)):f=="variable"?W&&p=="declare"?(L.marked="keyword",c(se)):W&&(p=="module"||p=="enum"||p=="type")&&L.stream.match(/^\s*\w/,!1)?(L.marked="keyword",p=="enum"?c(Er):p=="type"?c(Fn,fe("operator"),E,fe(";")):c(V("form"),mt,fe("{"),V("}"),zt,U,U)):W&&p=="namespace"?(L.marked="keyword",c(V("form"),ie,se,U)):W&&p=="abstract"?(L.marked="keyword",c(se)):c(V("stat"),pe):f=="switch"?c(V("form"),Mt,fe("{"),V("}","switch"),Ze,zt,U,U,We):f=="case"?c(ie,fe(":")):f=="default"?c(fe(":")):f=="catch"?c(V("form"),ae,ge,se,U,We):f=="export"?c(V("stat"),ar,U):f=="import"?c(V("stat"),Qt,U):f=="async"?c(se):p=="@"?c(ie,se):_(V("stat"),ie,fe(";"),U)}function ge(f){if(f=="(")return c(Wt,fe(")"))}function ie(f,p){return Ot(f,p,!1)}function Ie(f,p){return Ot(f,p,!0)}function Mt(f){return f!="("?_():c(V(")"),yt,fe(")"),U)}function Ot(f,p,g){if(L.state.fatArrowAt==L.stream.start){var S=g?Oe:qe;if(f=="(")return c(ae,V(")"),he(Wt,")"),U,fe("=>"),S,We);if(f=="variable")return _(ae,mt,fe("=>"),S,We)}var oe=g?Ue:Te;return Re.hasOwnProperty(f)?c(oe):f=="function"?c(Kt,oe):f=="class"||W&&p=="interface"?(L.marked="keyword",c(V("form"),lr,U)):f=="keyword c"||f=="async"?c(g?Ie:ie):f=="("?c(V(")"),yt,fe(")"),U,oe):f=="operator"||f=="spread"?c(g?Ie:ie):f=="["?c(V("]"),Vt,U,oe):f=="{"?Nt(ne,"}",null,oe):f=="quasi"?_(de,oe):f=="new"?c(k(g)):c()}function yt(f){return f.match(/[;\}\)\],]/)?_():_(ie)}function Te(f,p){return f==","?c(yt):Ue(f,p,!1)}function Ue(f,p,g){var S=g==!1?Te:Ue,oe=g==!1?ie:Ie;if(f=="=>")return c(ae,g?Oe:qe,We);if(f=="operator")return/\+\+|--/.test(p)||W&&p=="!"?c(S):W&&p=="<"&&L.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(V(">"),he(E,">"),U,S):p=="?"?c(ie,fe(":"),oe):c(oe);if(f=="quasi")return _(de,S);if(f!=";"){if(f=="(")return Nt(Ie,")","call",S);if(f==".")return c(R,S);if(f=="[")return c(V("]"),yt,fe("]"),U,S);if(W&&p=="as")return L.marked="keyword",c(E,S);if(f=="regexp")return L.state.lastType=L.marked="operator",L.stream.backUp(L.stream.pos-L.stream.start-1),c(oe)}}function de(f,p){return f!="quasi"?_():p.slice(p.length-2)!="${"?c(de):c(yt,st)}function st(f){if(f=="}")return L.marked="string-2",L.state.tokenize=Be,c(de)}function qe(f){return Le(L.stream,L.state),_(f=="{"?se:ie)}function Oe(f){return Le(L.stream,L.state),_(f=="{"?se:Ie)}function k(f){return function(p){return p=="."?c(f?T:A):p=="variable"&&W?c(ft,f?Ue:Te):_(f?Ie:ie)}}function A(f,p){if(p=="target")return L.marked="keyword",c(Te)}function T(f,p){if(p=="target")return L.marked="keyword",c(Ue)}function pe(f){return f==":"?c(U,se):_(Te,fe(";"),U)}function R(f){if(f=="variable")return L.marked="property",c()}function ne(f,p){if(f=="async")return L.marked="property",c(ne);if(f=="variable"||L.style=="keyword"){if(L.marked="property",p=="get"||p=="set")return c(q);var g;return W&&L.state.fatArrowAt==L.stream.start&&(g=L.stream.match(/^\s*:\s*/,!1))&&(L.state.fatArrowAt=L.stream.pos+g[0].length),c(be)}else{if(f=="number"||f=="string")return L.marked=Ce?"property":L.style+" property",c(be);if(f=="jsonld-keyword")return c(be);if(W&&y(p))return L.marked="keyword",c(ne);if(f=="[")return c(ie,Pt,fe("]"),be);if(f=="spread")return c(Ie,be);if(p=="*")return L.marked="keyword",c(ne);if(f==":")return _(be)}}function q(f){return f!="variable"?_(be):(L.marked="property",c(Kt))}function be(f){if(f==":")return c(Ie);if(f=="(")return _(Kt)}function he(f,p,g){function S(oe,ke){if(g?g.indexOf(oe)>-1:oe==","){var Me=L.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),c(function(et,Dt){return et==p||Dt==p?_():_(f)},S)}return oe==p||ke==p?c():g&&g.indexOf(";")>-1?_(f):c(fe(p))}return function(oe,ke){return oe==p||ke==p?c():_(f,S)}}function Nt(f,p,g){for(var S=3;S"),E);if(f=="quasi")return _(je,pt)}function en(f){if(f=="=>")return c(E)}function ut(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(ut):_(_e,ut)}function _e(f,p){if(f=="variable"||L.style=="keyword")return L.marked="property",c(_e);if(p=="?"||f=="number"||f=="string")return c(_e);if(f==":")return c(E);if(f=="[")return c(fe("variable"),vi,fe("]"),_e);if(f=="(")return _(Ut,_e);if(!f.match(/[;\}\)\],]/))return c()}function je(f,p){return f!="quasi"?_():p.slice(p.length-2)!="${"?c(je):c(E,En)}function En(f){if(f=="}")return L.marked="string-2",L.state.tokenize=Be,c(je)}function ht(f,p){return f=="variable"&&L.stream.match(/^\s*[?:]/,!1)||p=="?"?c(ht):f==":"?c(E):f=="spread"?c(ht):_(E)}function pt(f,p){if(p=="<")return c(V(">"),he(E,">"),U,pt);if(p=="|"||f=="."||p=="&")return c(E);if(f=="[")return c(E,fe("]"),pt);if(p=="extends"||p=="implements")return L.marked="keyword",c(E);if(p=="?")return c(E,fe(":"),E)}function ft(f,p){if(p=="<")return c(V(">"),he(E,">"),U,pt)}function br(){return _(E,tn)}function tn(f,p){if(p=="=")return c(E)}function Zt(f,p){return p=="enum"?(L.marked="keyword",c(Er)):_(mt,Pt,It,yi)}function mt(f,p){if(W&&y(p))return L.marked="keyword",c(mt);if(f=="variable")return x(p),c();if(f=="spread")return c(mt);if(f=="[")return Nt(gi,"]");if(f=="{")return Nt(rn,"}")}function rn(f,p){return f=="variable"&&!L.stream.match(/^\s*:/,!1)?(x(p),c(It)):(f=="variable"&&(L.marked="property"),f=="spread"?c(mt):f=="}"?_():f=="["?c(ie,fe("]"),fe(":"),rn):c(fe(":"),mt,It))}function gi(){return _(mt,It)}function It(f,p){if(p=="=")return c(Ie)}function yi(f){if(f==",")return c(Zt)}function zr(f,p){if(f=="keyword b"&&p=="else")return c(V("form","else"),se,U)}function In(f,p){if(p=="await")return c(In);if(f=="(")return c(V(")"),nn,U)}function nn(f){return f=="var"?c(Zt,or):f=="variable"?c(or):_(or)}function or(f,p){return f==")"?c():f==";"?c(or):p=="in"||p=="of"?(L.marked="keyword",c(ie,or)):_(ie,or)}function Kt(f,p){if(p=="*")return L.marked="keyword",c(Kt);if(f=="variable")return x(p),c(Kt);if(f=="(")return c(ae,V(")"),he(Wt,")"),U,Et,se,We);if(W&&p=="<")return c(V(">"),he(br,">"),U,Kt)}function Ut(f,p){if(p=="*")return L.marked="keyword",c(Ut);if(f=="variable")return x(p),c(Ut);if(f=="(")return c(ae,V(")"),he(Wt,")"),U,Et,We);if(W&&p=="<")return c(V(">"),he(br,">"),U,Ut)}function Fn(f,p){if(f=="keyword"||f=="variable")return L.marked="type",c(Fn);if(p=="<")return c(V(">"),he(br,">"),U)}function Wt(f,p){return p=="@"&&c(ie,Wt),f=="spread"?c(Wt):W&&y(p)?(L.marked="keyword",c(Wt)):W&&f=="this"?c(Pt,It):_(mt,Pt,It)}function lr(f,p){return f=="variable"?Wn(f,p):Pr(f,p)}function Wn(f,p){if(f=="variable")return x(p),c(Pr)}function Pr(f,p){if(p=="<")return c(V(">"),he(br,">"),U,Pr);if(p=="extends"||p=="implements"||W&&f==",")return p=="implements"&&(L.marked="keyword"),c(W?E:ie,Pr);if(f=="{")return c(V("}"),Ct,U)}function Ct(f,p){if(f=="async"||f=="variable"&&(p=="static"||p=="get"||p=="set"||W&&y(p))&&L.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return L.marked="keyword",c(Ct);if(f=="variable"||L.style=="keyword")return L.marked="property",c(Jt,Ct);if(f=="number"||f=="string")return c(Jt,Ct);if(f=="[")return c(ie,Pt,fe("]"),Jt,Ct);if(p=="*")return L.marked="keyword",c(Ct);if(W&&f=="(")return _(Ut,Ct);if(f==";"||f==",")return c(Ct);if(f=="}")return c();if(p=="@")return c(ie,Ct)}function Jt(f,p){if(p=="!"||p=="?")return c(Jt);if(f==":")return c(E,It);if(p=="=")return c(Ie);var g=L.state.lexical.prev,S=g&&g.info=="interface";return _(S?Ut:Kt)}function ar(f,p){return p=="*"?(L.marked="keyword",c(K,fe(";"))):p=="default"?(L.marked="keyword",c(ie,fe(";"))):f=="{"?c(he(_n,"}"),K,fe(";")):_(se)}function _n(f,p){if(p=="as")return L.marked="keyword",c(fe("variable"));if(f=="variable")return _(Ie,_n)}function Qt(f){return f=="string"?c():f=="("?_(ie):f=="."?_(Te):_(sr,on,K)}function sr(f,p){return f=="{"?Nt(sr,"}"):(f=="variable"&&x(p),p=="*"&&(L.marked="keyword"),c(Xe))}function on(f){if(f==",")return c(sr,on)}function Xe(f,p){if(p=="as")return L.marked="keyword",c(sr)}function K(f,p){if(p=="from")return L.marked="keyword",c(ie)}function Vt(f){return f=="]"?c():_(he(Ie,"]"))}function Er(){return _(V("form"),mt,fe("{"),V("}"),he(Ft,"}"),U,U)}function Ft(){return _(mt,It)}function Ne(f,p){return f.lastType=="operator"||f.lastType==","||ue.test(p.charAt(0))||/[,.]/.test(p.charAt(0))}function Gt(f,p,g){return p.tokenize==J&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(p.lastType)||p.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(g||0)))}return{startState:function(f){var p={tokenize:J,lastType:"sof",cc:[],lexical:new $((f||0)-He,0,"block",!1),localVars:we.localVars,context:we.localVars&&new D(null,null,!1),indented:f||0};return we.globalVars&&typeof we.globalVars=="object"&&(p.globalVars=we.globalVars),p},token:function(f,p){if(f.sol()&&(p.lexical.hasOwnProperty("align")||(p.lexical.align=!1),p.indented=f.indentation(),Le(f,p)),p.tokenize!=xe&&f.eatSpace())return null;var g=p.tokenize(f,p);return Se=="comment"?g:(p.lastType=Se=="operator"&&(Ae=="++"||Ae=="--")?"incdec":Se,me(p,g,Se,Ae,f))},indent:function(f,p){if(f.tokenize==xe||f.tokenize==Be)return I.Pass;if(f.tokenize!=J)return 0;var g=p&&p.charAt(0),S=f.lexical,oe;if(!/^\s*else\b/.test(p))for(var ke=f.cc.length-1;ke>=0;--ke){var Me=f.cc[ke];if(Me==U)S=S.prev;else if(Me!=zr&&Me!=We)break}for(;(S.type=="stat"||S.type=="form")&&(g=="}"||(oe=f.cc[f.cc.length-1])&&(oe==Te||oe==Ue)&&!/^[,\.=+\-*:?[\(]/.test(p));)S=S.prev;$e&&S.type==")"&&S.prev.type=="stat"&&(S=S.prev);var et=S.type,Dt=g==et;return et=="vardef"?S.indented+(f.lastType=="operator"||f.lastType==","?S.info.length+1:0):et=="form"&&g=="{"?S.indented:et=="form"?S.indented+He:et=="stat"?S.indented+(Ne(f,p)?$e||He:0):S.info=="switch"&&!Dt&&we.doubleIndentSwitch!=!1?S.indented+(/^(?:case|default)\b/.test(p)?He:2*He):S.align?S.column+(Dt?0:1):S.indented+(Dt?0:He)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:M?null:"/*",blockCommentEnd:M?null:"*/",blockCommentContinue:M?null:" * ",lineComment:M?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:M?"json":"javascript",jsonldMode:Ce,jsonMode:M,expressionAllowed:Gt,skipExpression:function(f){me(f,"atom","atom","true",new I.StringStream("",2,null))}}}),I.registerHelper("wordChars","javascript",/[\w$]/),I.defineMIME("text/javascript","javascript"),I.defineMIME("text/ecmascript","javascript"),I.defineMIME("application/javascript","javascript"),I.defineMIME("application/x-javascript","javascript"),I.defineMIME("application/ecmascript","javascript"),I.defineMIME("application/json",{name:"javascript",json:!0}),I.defineMIME("application/x-json",{name:"javascript",json:!0}),I.defineMIME("application/manifest+json",{name:"javascript",json:!0}),I.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),I.defineMIME("text/typescript",{name:"javascript",typescript:!0}),I.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),da.exports}(function(mr,Or){(function(I){I(Ar,bu(),va(),mu)})(function(I){var Pe={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function we(ee,G,ue){var ce=ee.current(),Ee=ce.search(G);return Ee>-1?ee.backUp(ce.length-Ee):ce.match(/<\/?$/)&&(ee.backUp(ce.length),ee.match(G,!1)||ee.match(ce)),ue}var He={};function $e(ee){var G=He[ee];return G||(He[ee]=new RegExp("\\s+"+ee+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function Ce(ee,G){var ue=ee.match($e(G));return ue?/^\s*(.*?)\s*$/.exec(ue[2])[1]:""}function M(ee,G){return new RegExp((G?"^":"")+"","i")}function j(ee,G){for(var ue in ee)for(var ce=G[ue]||(G[ue]=[]),Ee=ee[ue],Se=Ee.length-1;Se>=0;Se--)ce.unshift(Ee[Se])}function W(ee,G){for(var ue=0;ue=0;Ae--)ce.script.unshift(["type",Se[Ae].matches,Se[Ae].mode]);function re(J,te){var xe=ue.token(J,te.htmlState),Be=/\btag\b/.test(xe),ye;if(Be&&!/[<>\s\/]/.test(J.current())&&(ye=te.htmlState.tagName&&te.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(ye))te.inTag=ye+" ";else if(te.inTag&&Be&&/>$/.test(J.current())){var Le=/^([\S]+) (.*)/.exec(te.inTag);te.inTag=null;var Re=J.current()==">"&&W(ce[Le[1]],Le[2]),$=I.getMode(ee,Re),X=M(Le[1],!0),me=M(Le[1],!1);te.token=function(L,_){return L.match(X,!1)?(_.token=re,_.localState=_.localMode=null,null):we(L,me,_.localMode.token(L,_.localState))},te.localMode=$,te.localState=I.startState($,ue.indent(te.htmlState,"",""))}else te.inTag&&(te.inTag+=J.current(),J.eol()&&(te.inTag+=" "));return xe}return{startState:function(){var J=I.startState(ue);return{token:re,inTag:null,localMode:null,localState:null,htmlState:J}},copyState:function(J){var te;return J.localState&&(te=I.copyState(J.localMode,J.localState)),{token:J.token,inTag:J.inTag,localMode:J.localMode,localState:te,htmlState:I.copyState(ue,J.htmlState)}},token:function(J,te){return te.token(J,te)},indent:function(J,te,xe){return!J.localMode||/^\s*<\//.test(te)?ue.indent(J.htmlState,te,xe):J.localMode.indent?J.localMode.indent(J.localState,te,xe):I.Pass},innerMode:function(J){return{state:J.localState||J.htmlState,mode:J.localMode||ue}}}},"xml","javascript","css"),I.defineMIME("text/html","htmlmixed")})})();va();(function(mr,Or){(function(I){I(Ar)})(function(I){function Pe(j){return new RegExp("^(("+j.join(")|(")+"))\\b")}var we=Pe(["and","or","not","is"]),He=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],$e=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];I.registerHelper("hintWords","python",He.concat($e).concat(["exec","print"]));function Ce(j){return j.scopes[j.scopes.length-1]}I.defineMode("python",function(j,W){for(var ee="error",G=W.delimiters||W.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,ue=[W.singleOperators,W.doubleOperators,W.doubleDelimiters,W.tripleDelimiters,W.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],ce=0;cey?X(x):D0&&L(w,x)&&(B+=" "+ee),B}}return Le(w,x)}function Le(w,x,v){if(w.eatSpace())return null;if(!v&&w.match(/^#.*/))return"comment";if(w.match(/^[0-9\.]/,!1)){var y=!1;if(w.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(y=!0),w.match(/^[\d_]+\.\d*/)&&(y=!0),w.match(/^\.\d+/)&&(y=!0),y)return w.eat(/J/i),"number";var D=!1;if(w.match(/^0x[0-9a-f_]+/i)&&(D=!0),w.match(/^0b[01_]+/i)&&(D=!0),w.match(/^0o[0-7_]+/i)&&(D=!0),w.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(w.eat(/J/i),D=!0),w.match(/^0(?![\dx])/i)&&(D=!0),D)return w.eat(/L/i),"number"}if(w.match(te)){var B=w.current().toLowerCase().indexOf("f")!==-1;return B?(x.tokenize=Re(w.current(),x.tokenize),x.tokenize(w,x)):(x.tokenize=$(w.current(),x.tokenize),x.tokenize(w,x))}for(var Q=0;Q=0;)w=w.substr(1);var v=w.length==1,y="string";function D(Q){return function(ae,Ze){var We=Le(ae,Ze,!0);return We=="punctuation"&&(ae.current()=="{"?Ze.tokenize=D(Q+1):ae.current()=="}"&&(Q>1?Ze.tokenize=D(Q-1):Ze.tokenize=B)),We}}function B(Q,ae){for(;!Q.eol();)if(Q.eatWhile(/[^'"\{\}\\]/),Q.eat("\\")){if(Q.next(),v&&Q.eol())return y}else{if(Q.match(w))return ae.tokenize=x,y;if(Q.match("{{"))return y;if(Q.match("{",!1))return ae.tokenize=D(0),Q.current()?y:ae.tokenize(Q,ae);if(Q.match("}}"))return y;if(Q.match("}"))return ee;Q.eat(/['"]/)}if(v){if(W.singleLineStringErrors)return ee;ae.tokenize=x}return y}return B.isString=!0,B}function $(w,x){for(;"rubf".indexOf(w.charAt(0).toLowerCase())>=0;)w=w.substr(1);var v=w.length==1,y="string";function D(B,Q){for(;!B.eol();)if(B.eatWhile(/[^'"\\]/),B.eat("\\")){if(B.next(),v&&B.eol())return y}else{if(B.match(w))return Q.tokenize=x,y;B.eat(/['"]/)}if(v){if(W.singleLineStringErrors)return ee;Q.tokenize=x}return y}return D.isString=!0,D}function X(w){for(;Ce(w).type!="py";)w.scopes.pop();w.scopes.push({offset:Ce(w).offset+j.indentUnit,type:"py",align:null})}function me(w,x,v){var y=w.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:w.column()+1;x.scopes.push({offset:x.indent+Ee,type:v,align:y})}function L(w,x){for(var v=w.indentation();x.scopes.length>1&&Ce(x).offset>v;){if(Ce(x).type!="py")return!0;x.scopes.pop()}return Ce(x).offset!=v}function _(w,x){w.sol()&&(x.beginningOfLine=!0,x.dedent=!1);var v=x.tokenize(w,x),y=w.current();if(x.beginningOfLine&&y=="@")return w.match(J,!1)?"meta":re?"operator":ee;if(/\S/.test(y)&&(x.beginningOfLine=!1),(v=="variable"||v=="builtin")&&x.lastToken=="meta"&&(v="meta"),(y=="pass"||y=="return")&&(x.dedent=!0),y=="lambda"&&(x.lambda=!0),y==":"&&!x.lambda&&Ce(x).type=="py"&&w.match(/^\s*(?:#|$)/,!1)&&X(x),y.length==1&&!/string|comment/.test(v)){var D="[({".indexOf(y);if(D!=-1&&me(w,x,"])}".slice(D,D+1)),D="])}".indexOf(y),D!=-1)if(Ce(x).type==y)x.indent=x.scopes.pop().offset-Ee;else return ee}return x.dedent&&w.eol()&&Ce(x).type=="py"&&x.scopes.length>1&&x.scopes.pop(),v}var c={startState:function(w){return{tokenize:ye,scopes:[{offset:w||0,type:"py",align:null}],indent:w||0,lastToken:null,lambda:!1,dedent:0}},token:function(w,x){var v=x.errorToken;v&&(x.errorToken=!1);var y=_(w,x);return y&&y!="comment"&&(x.lastToken=y=="keyword"||y=="punctuation"?w.current():y),y=="punctuation"&&(y=null),w.eol()&&x.lambda&&(x.lambda=!1),v?y+" "+ee:y},indent:function(w,x){if(w.tokenize!=ye)return w.tokenize.isString?I.Pass:0;var v=Ce(w),y=v.type==x.charAt(0)||v.type=="py"&&!w.dedent&&/^(else:|elif |except |finally:)/.test(x);return v.align!=null?v.align-(y?1:0):v.offset-(y?Ee:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),I.defineMIME("text/x-python","python");var M=function(j){return j.split(" ")};I.defineMIME("text/x-cython",{name:"python",extra_keywords:M("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();(function(mr,Or){(function(I){I(Ar)})(function(I){function Pe(v,y,D,B,Q,ae){this.indented=v,this.column=y,this.type=D,this.info=B,this.align=Q,this.prev=ae}function we(v,y,D,B){var Q=v.indented;return v.context&&v.context.type=="statement"&&D!="statement"&&(Q=v.context.indented),v.context=new Pe(Q,y,D,B,null,v.context)}function He(v){var y=v.context.type;return(y==")"||y=="]"||y=="}")&&(v.indented=v.context.indented),v.context=v.context.prev}function $e(v,y,D){if(y.prevToken=="variable"||y.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(v.string.slice(0,D))||y.typeAtEndOfLine&&v.column()==v.indentation())return!0}function Ce(v){for(;;){if(!v||v.type=="top")return!0;if(v.type=="}"&&v.prev.info!="namespace")return!1;v=v.prev}}I.defineMode("clike",function(v,y){var D=v.indentUnit,B=y.statementIndentUnit||D,Q=y.dontAlignCalls,ae=y.keywords||{},Ze=y.types||{},We=y.builtin||{},V=y.blockKeywords||{},U=y.defKeywords||{},fe=y.atoms||{},se=y.hooks||{},ge=y.multiLineStrings,ie=y.indentStatements!==!1,Ie=y.indentSwitch!==!1,Mt=y.namespaceSeparator,Ot=y.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,yt=y.numberStart||/[\d\.]/,Te=y.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Ue=y.isOperatorChar||/[+\-*&%=<>!?|\/]/,de=y.isIdentifierChar||/[\w\$_\xa1-\uffff]/,st=y.isReservedIdentifier||!1,qe,Oe;function k(R,ne){var q=R.next();if(se[q]){var be=se[q](R,ne);if(be!==!1)return be}if(q=='"'||q=="'")return ne.tokenize=A(q),ne.tokenize(R,ne);if(yt.test(q)){if(R.backUp(1),R.match(Te))return"number";R.next()}if(Ot.test(q))return qe=q,null;if(q=="/"){if(R.eat("*"))return ne.tokenize=T,T(R,ne);if(R.eat("/"))return R.skipToEnd(),"comment"}if(Ue.test(q)){for(;!R.match(/^\/[\/*]/,!1)&&R.eat(Ue););return"operator"}if(R.eatWhile(de),Mt)for(;R.match(Mt);)R.eatWhile(de);var he=R.current();return j(ae,he)?(j(V,he)&&(qe="newstatement"),j(U,he)&&(Oe=!0),"keyword"):j(Ze,he)?"type":j(We,he)||st&&st(he)?(j(V,he)&&(qe="newstatement"),"builtin"):j(fe,he)?"atom":"variable"}function A(R){return function(ne,q){for(var be=!1,he,Nt=!1;(he=ne.next())!=null;){if(he==R&&!be){Nt=!0;break}be=!be&&he=="\\"}return(Nt||!(be||ge))&&(q.tokenize=null),"string"}}function T(R,ne){for(var q=!1,be;be=R.next();){if(be=="/"&&q){ne.tokenize=null;break}q=be=="*"}return"comment"}function pe(R,ne){y.typeFirstDefinitions&&R.eol()&&Ce(ne.context)&&(ne.typeAtEndOfLine=$e(R,ne,R.pos))}return{startState:function(R){return{tokenize:null,context:new Pe((R||0)-D,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(R,ne){var q=ne.context;if(R.sol()&&(q.align==null&&(q.align=!1),ne.indented=R.indentation(),ne.startOfLine=!0),R.eatSpace())return pe(R,ne),null;qe=Oe=null;var be=(ne.tokenize||k)(R,ne);if(be=="comment"||be=="meta")return be;if(q.align==null&&(q.align=!0),qe==";"||qe==":"||qe==","&&R.match(/^\s*(?:\/\/.*)?$/,!1))for(;ne.context.type=="statement";)He(ne);else if(qe=="{")we(ne,R.column(),"}");else if(qe=="[")we(ne,R.column(),"]");else if(qe=="(")we(ne,R.column(),")");else if(qe=="}"){for(;q.type=="statement";)q=He(ne);for(q.type=="}"&&(q=He(ne));q.type=="statement";)q=He(ne)}else qe==q.type?He(ne):ie&&((q.type=="}"||q.type=="top")&&qe!=";"||q.type=="statement"&&qe=="newstatement")&&we(ne,R.column(),"statement",R.current());if(be=="variable"&&(ne.prevToken=="def"||y.typeFirstDefinitions&&$e(R,ne,R.start)&&Ce(ne.context)&&R.match(/^\s*\(/,!1))&&(be="def"),se.token){var he=se.token(R,ne,be);he!==void 0&&(be=he)}return be=="def"&&y.styleDefs===!1&&(be="variable"),ne.startOfLine=!1,ne.prevToken=Oe?"def":be||qe,pe(R,ne),be},indent:function(R,ne){if(R.tokenize!=k&&R.tokenize!=null||R.typeAtEndOfLine)return I.Pass;var q=R.context,be=ne&&ne.charAt(0),he=be==q.type;if(q.type=="statement"&&be=="}"&&(q=q.prev),y.dontIndentStatements)for(;q.type=="statement"&&y.dontIndentStatements.test(q.info);)q=q.prev;if(se.indent){var Nt=se.indent(R,q,ne,D);if(typeof Nt=="number")return Nt}var zt=q.prev&&q.prev.info=="switch";if(y.allmanIndentation&&/[{(]/.test(be)){for(;q.type!="top"&&q.type!="}";)q=q.prev;return q.indented}return q.type=="statement"?q.indented+(be=="{"?0:B):q.align&&(!Q||q.type!=")")?q.column+(he?0:1):q.type==")"&&!he?q.indented+B:q.indented+(he?0:D)+(!he&&zt&&!/^(?:case|default)\b/.test(ne)?D:0)},electricInput:Ie?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function M(v){for(var y={},D=v.split(" "),B=0;B!?|\/#:@]/,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,y){return v.match('""')?(y.tokenize=L,y.tokenize(v,y)):!1},"'":function(v){return v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(v,y){var D=y.context;return D.type=="}"&&D.align&&v.eat(">")?(y.context=new Pe(D.indented,D.column,D.type,D.info,null,D.prev),"operator"):!1},"/":function(v,y){return v.eat("*")?(y.tokenize=_(1),y.tokenize(v,y)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(v){return function(y,D){for(var B=!1,Q,ae=!1;!y.eol();){if(!v&&!B&&y.match('"')){ae=!0;break}if(v&&y.match('"""')){ae=!0;break}Q=y.next(),!B&&Q=="$"&&y.match("{")&&y.skipTo("}"),B=!B&&Q=="\\"&&!v}return(ae||!v)&&(D.tokenize=null),"string"}}me("text/x-kotlin",{name:"clike",keywords:M("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:M("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:M("catch class do else finally for if where try while enum"),defKeywords:M("class val var object interface fun"),atoms:M("true false null this"),hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},"*":function(v,y){return y.prevToken=="."?"variable":"operator"},'"':function(v,y){return y.tokenize=c(v.match('""')),y.tokenize(v,y)},"/":function(v,y){return v.eat("*")?(y.tokenize=_(1),y.tokenize(v,y)):!1},indent:function(v,y,D,B){var Q=D&&D.charAt(0);if((v.prevToken=="}"||v.prevToken==")")&&D=="")return v.indented;if(v.prevToken=="operator"&&D!="}"&&v.context.type!="}"||v.prevToken=="variable"&&Q=="."||(v.prevToken=="}"||v.prevToken==")")&&Q==".")return B*2+y.indented;if(y.align&&y.type=="}")return y.indented+(v.context.type==(D||"").charAt(0)?0:B)}},modeProps:{closeBrackets:{triples:'"'}}}),me(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:M("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:M("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:M("for while do if else struct"),builtin:M("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:M("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":te},modeProps:{fold:["brace","include"]}}),me("text/x-nesc",{name:"clike",keywords:M(W+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:Se,blockKeywords:M(re),atoms:M("null true false"),hooks:{"#":te},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec",{name:"clike",keywords:M(W+" "+G),types:Ae,builtin:M(ue),blockKeywords:M(re+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:M(J+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Be,hooks:{"#":te,"*":xe},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec++",{name:"clike",keywords:M(W+" "+G+" "+ee),types:Ae,builtin:M(ue),blockKeywords:M(re+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:M(J+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Be,hooks:{"#":te,"*":xe,u:Le,U:Le,L:Le,R:Le,0:ye,1:ye,2:ye,3:ye,4:ye,5:ye,6:ye,7:ye,8:ye,9:ye,token:function(v,y,D){if(D=="variable"&&v.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&Re(v.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),me("text/x-squirrel",{name:"clike",keywords:M("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:Se,blockKeywords:M("case catch class else for foreach if switch try while"),defKeywords:M("function local class"),typeFirstDefinitions:!0,atoms:M("true false null"),hooks:{"#":te},modeProps:{fold:["brace","include"]}});var w=null;function x(v){return function(y,D){for(var B=!1,Q,ae=!1;!y.eol();){if(!B&&y.match('"')&&(v=="single"||y.match('""'))){ae=!0;break}if(!B&&y.match("``")){w=x(v),ae=!0;break}Q=y.next(),B=v=="single"&&!B&&Q=="\\"}return ae&&(D.tokenize=null),"string"}}me("text/x-ceylon",{name:"clike",keywords:M("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(v){var y=v.charAt(0);return y===y.toUpperCase()&&y!==y.toLowerCase()},blockKeywords:M("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:M("class dynamic function interface module object package value"),builtin:M("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:M("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,y){return y.tokenize=x(v.match('""')?"triple":"single"),y.tokenize(v,y)},"`":function(v,y){return!w||!v.match("`")?!1:(y.tokenize=w,w=null,y.tokenize(v,y))},"'":function(v){return v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(v,y,D){if((D=="variable"||D=="type")&&y.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();export{wu as default}; diff --git a/playwright-report/trace/assets/wsPort-0625ac95.js b/playwright-report/trace/assets/wsPort-0625ac95.js deleted file mode 100644 index d24778c97..000000000 --- a/playwright-report/trace/assets/wsPort-0625ac95.js +++ /dev/null @@ -1,90 +0,0 @@ -var fp=Object.defineProperty;var dp=(e,t,n)=>t in e?fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var le=(e,t,n)=>(dp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var nw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sc={exports:{}},Ts={},Ec={exports:{}},D={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ei=Symbol.for("react.element"),pp=Symbol.for("react.portal"),mp=Symbol.for("react.fragment"),gp=Symbol.for("react.strict_mode"),vp=Symbol.for("react.profiler"),yp=Symbol.for("react.provider"),wp=Symbol.for("react.context"),Sp=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),xp=Symbol.for("react.memo"),kp=Symbol.for("react.lazy"),Pa=Symbol.iterator;function _p(e){return e===null||typeof e!="object"?null:(e=Pa&&e[Pa]||e["@@iterator"],typeof e=="function"?e:null)}var xc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kc=Object.assign,_c={};function Kn(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||xc}Kn.prototype.isReactComponent={};Kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tc(){}Tc.prototype=Kn.prototype;function Al(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||xc}var Ll=Al.prototype=new Tc;Ll.constructor=Al;kc(Ll,Kn.prototype);Ll.isPureReactComponent=!0;var Ra=Array.isArray,Nc=Object.prototype.hasOwnProperty,bl={current:null},Cc={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nc.call(t,r)&&!Cc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{let o=!1;return r!==void 0&&s(r),e().then(l=>{o||s(l)}),()=>{o=!0}},t),i}function ti(){const e=rn.useRef(null),[t,n]=rn.useState(new DOMRect(0,0,10,10));return rn.useLayoutEffect(()=>{const r=e.current;if(!r)return;const i=new ResizeObserver(s=>{const o=s[s.length-1];o&&o.contentRect&&n(o.contentRect)});return i.observe(r),()=>i.disconnect()},[e]),[t,e]}function Bt(e){if(!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0)+"ms";const t=e/1e3;if(t<60)return t.toFixed(1)+"s";const n=t/60;if(n<60)return n.toFixed(1)+"m";const r=n/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function Op(e){if(e<0||!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0);const t=e/1024;if(t<1e3)return t.toFixed(1)+"K";const n=t/1024;return n<1e3?n.toFixed(1)+"M":(n/1024).toFixed(1)+"G"}function bc(e,t,n,r,i){let s=r||0,o=i!==void 0?i:e.length;for(;s>1;n(t,e[l])>=0?s=l+1:o=l}return o}function zp(e){const t=document.createElement("textarea");t.style.position="absolute",t.style.zIndex="-1000",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function Gi(e,t){const n=e?Mr.getObject(e,t):t,[r,i]=rn.useState(n);return[r,o=>{e&&Mr.setObject(e,o),i(o)}]}class Dp{getString(t,n){return localStorage[t]||n}setString(t,n){localStorage[t]=n,window.saveSettings&&window.saveSettings()}getObject(t,n){if(!localStorage[t])return n;try{return JSON.parse(localStorage[t])}catch{return n}}setObject(t,n){localStorage[t]=JSON.stringify(n),window.saveSettings&&window.saveSettings()}}const Mr=new Dp;function rw(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1);const e=Mr.getString("theme","light-mode"),t=window.matchMedia("(prefers-color-scheme: dark)");(e==="dark-mode"||t.matches)&&document.body.classList.add("dark-mode")}const Rl=new Set;function iw(){const e=Mr.getString("theme","light-mode");let t;e==="dark-mode"?t="light-mode":t="dark-mode",e&&document.body.classList.remove(e),document.body.classList.add(t),Mr.setString("theme",t);for(const n of Rl)n(t)}function sw(e){Rl.add(e)}function ow(e){Rl.delete(e)}function lw(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}var Ic={exports:{}},je={},Pc={exports:{}},Rc={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,$){var z=R.length;R.push($);e:for(;0>>1,ee=R[Q];if(0>>1;Qi(rr,z))mti(wn,rr)?(R[Q]=wn,R[mt]=z,Q=mt):(R[Q]=rr,R[Je]=z,Q=Je);else if(mti(wn,z))R[Q]=wn,R[mt]=z,Q=mt;else break e}}return $}function i(R,$){var z=R.sortIndex-$.sortIndex;return z!==0?z:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,p=null,f=3,y=!1,g=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=R)r(u),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(u)}}function S(R){if(w=!1,v(R),!g)if(n(a)!==null)g=!0,_e(T);else{var $=n(u);$!==null&&Te(S,$.startTime-R)}}function T(R,$){g=!1,w&&(w=!1,h(k),k=-1),y=!0;var z=f;try{for(v($),p=n(a);p!==null&&(!(p.expirationTime>$)||R&&!O());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,f=p.priorityLevel;var ee=Q(p.expirationTime<=$);$=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(a)&&r(a),v($)}else r(a);p=n(a)}if(p!==null)var yn=!0;else{var Je=n(u);Je!==null&&Te(S,Je.startTime-$),yn=!1}return yn}finally{p=null,f=z,y=!1}}var C=!1,E=null,k=-1,N=5,I=-1;function O(){return!(e.unstable_now()-IR||125Q?(R.sortIndex=z,t(u,R),n(a)===null&&R===n(u)&&(w?(h(k),k=-1):w=!0,Te(S,z-Q))):(R.sortIndex=ee,t(a,R),g||y||(g=!0,_e(T))),R},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(R){var $=f;return function(){var z=f;f=$;try{return R.apply(this,arguments)}finally{f=z}}}})(Rc);Pc.exports=Rc;var Fp=Pc.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Mc=b,Ue=Fp;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=Object.prototype.hasOwnProperty,Up=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$a={},Oa={};function jp(e){return _o.call(Oa,e)?!0:_o.call($a,e)?!1:Up.test(e)?Oa[e]=!0:($a[e]=!0,!1)}function Hp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bp(e,t,n,r){if(t===null||typeof t>"u"||Hp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ml=/[\-:]([a-z])/g;function $l(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ol(e,t,n,r){var i=de.hasOwnProperty(t)?de[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` -`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Gs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wr(e):""}function qp(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ks(e.type,!1),e;case 11:return e=Ks(e.type.render,!1),e;case 1:return e=Ks(e.type,!0),e;default:return""}}function Ao(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tn:return"Fragment";case _n:return"Portal";case To:return"Profiler";case zl:return"StrictMode";case No:return"Suspense";case Co:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zc:return(e.displayName||"Context")+".Consumer";case Oc:return(e._context.displayName||"Context")+".Provider";case Dl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fl:return t=e.displayName||null,t!==null?t:Ao(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return Ao(e(t))}catch{}}return null}function Wp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ao(t);case 8:return t===zl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vp(e){var t=Fc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=Vp(e))}function Uc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lo(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jc(e,t){t=t.checked,t!=null&&Ol(e,"checked",t,!1)}function bo(e,t){jc(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Io(e,t.type,n):t.hasOwnProperty("defaultValue")&&Io(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Io(e,t,n){(t!=="number"||Ki(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sr=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qp=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){Qp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Wc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function Vc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Xp=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mo(e,t){if(t){if(Xp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function $o(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oo=null;function Ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,Dn=null,Fn=null;function Ha(e){if(e=ii(e)){if(typeof zo!="function")throw Error(A(280));var t=e.stateNode;t&&(t=bs(t),zo(e.stateNode,e.type,t))}}function Qc(e){Dn?Fn?Fn.push(e):Fn=[e]:Dn=e}function Xc(){if(Dn){var e=Dn,t=Fn;if(Fn=Dn=null,Ha(e),t)for(e=0;e>>=0,e===0?32:31-(sm(e)/om|0)|0}var hi=64,pi=4194304;function Er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Er(l):(s&=o,s!==0&&(r=Er(s)))}else o=n&~i,o!==0?r=Er(o):s!==0&&(r=Er(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function cm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cr),Ja=String.fromCharCode(32),Ya=!1;function mf(e,t){switch(e){case"keyup":return Dm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function Um(e,t){switch(e){case"compositionend":return gf(t);case"keypress":return t.which!==32?null:(Ya=!0,Ja);case"textInput":return e=t.data,e===Ja&&Ya?null:e;default:return null}}function jm(e,t){if(Nn)return e==="compositionend"||!Xl&&mf(e,t)?(e=hf(),$i=Wl=$t=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nu(n)}}function Sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ef(){for(var e=window,t=Ki();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ki(e.document)}return t}function Gl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Km(e){var t=Ef(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sf(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=ru(n,s);var o=ru(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cn=null,Bo=null,Lr=null,qo=!1;function iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||Cn==null||Cn!==Ki(r)||(r=Cn,"selectionStart"in r&&Gl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Hr(Lr,r)||(Lr=r,r=rs(Bo,"onSelect"),0bn||(e.current=Ko[bn],Ko[bn]=null,bn--)}function j(e,t){bn++,Ko[bn]=e.current,e.current=t}var Wt={},ve=Xt(Wt),Pe=Xt(!1),cn=Wt;function qn(e,t){var n=e.type.contextTypes;if(!n)return Wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function ss(){q(Pe),q(ve)}function fu(e,t,n){if(ve.current!==Wt)throw Error(A(168));j(ve,t),j(Pe,n)}function bf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Wp(e)||"Unknown",i));return K({},n,r)}function os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,cn=ve.current,j(ve,e),j(Pe,Pe.current),!0}function du(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=bf(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,q(Pe),q(ve),j(ve,e)):q(Pe),j(Pe,n)}var wt=null,Is=!1,co=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function ag(e){Is=!0,If(e)}function Gt(){if(!co&&wt!==null){co=!0;var e=0,t=U;try{var n=wt;for(U=1;e>=o,i-=o,Et=1<<32-it(t)+i|n<k?(N=E,E=null):N=E.sibling;var I=f(h,E,v[k],S);if(I===null){E===null&&(E=N);break}e&&E&&I.alternate===null&&t(h,E),d=s(I,d,k),C===null?T=I:C.sibling=I,C=I,E=N}if(k===v.length)return n(h,E),V&&Jt(h,k),T;if(E===null){for(;kk?(N=E,E=null):N=E.sibling;var O=f(h,E,I.value,S);if(O===null){E===null&&(E=N);break}e&&E&&O.alternate===null&&t(h,E),d=s(O,d,k),C===null?T=O:C.sibling=O,C=O,E=N}if(I.done)return n(h,E),V&&Jt(h,k),T;if(E===null){for(;!I.done;k++,I=v.next())I=p(h,I.value,S),I!==null&&(d=s(I,d,k),C===null?T=I:C.sibling=I,C=I);return V&&Jt(h,k),T}for(E=r(h,E);!I.done;k++,I=v.next())I=y(E,h,k,I.value,S),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?k:I.key),d=s(I,d,k),C===null?T=I:C.sibling=I,C=I);return e&&E.forEach(function(_){return t(h,_)}),V&&Jt(h,k),T}function x(h,d,v,S){if(typeof v=="object"&&v!==null&&v.type===Tn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ci:e:{for(var T=v.key,C=d;C!==null;){if(C.key===T){if(T=v.type,T===Tn){if(C.tag===7){n(h,C.sibling),d=i(C,v.props.children),d.return=h,h=d;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bt&&wu(T)===C.type){n(h,C.sibling),d=i(C,v.props),d.ref=cr(h,C,v),d.return=h,h=d;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===Tn?(d=on(v.props.children,h.mode,S,v.key),d.return=h,h=d):(S=Hi(v.type,v.key,v.props,null,h.mode,S),S.ref=cr(h,d,v),S.return=h,h=S)}return o(h);case _n:e:{for(C=v.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=i(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=yo(v,h.mode,S),d.return=h,h=d}return o(h);case bt:return C=v._init,x(h,d,C(v._payload),S)}if(Sr(v))return g(h,d,v,S);if(ir(v))return w(h,d,v,S);Si(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,v),d.return=h,h=d):(n(h,d),d=vo(v,h.mode,S),d.return=h,h=d),o(h)):n(h,d)}return x}var Vn=zf(!0),Df=zf(!1),si={},dt=Xt(si),Vr=Xt(si),Qr=Xt(si);function nn(e){if(e===si)throw Error(A(174));return e}function ra(e,t){switch(j(Qr,t),j(Vr,e),j(dt,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ro(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ro(t,e)}q(dt),j(dt,t)}function Qn(){q(dt),q(Vr),q(Qr)}function Ff(e){nn(Qr.current);var t=nn(dt.current),n=Ro(t,e.type);t!==n&&(j(Vr,e),j(dt,n))}function ia(e){Vr.current===e&&(q(dt),q(Vr))}var X=Xt(0);function ds(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=[];function sa(){for(var e=0;en?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{U=n,ho.transition=r}}function ed(){return Ke().memoizedState}function dg(e,t,n){var r=Ht(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},td(e)?nd(t,n):(rd(e,t,n),n=Ee(),e=Xe(e,r,n),e!==null&&id(e,t,r))}function hg(e,t,n){var r=Ht(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(td(e))nd(t,i);else{rd(e,t,i);var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,st(l,o))return}catch{}finally{}n=Ee(),e=Xe(e,r,n),e!==null&&id(e,t,r)}}function td(e){var t=e.alternate;return e===G||t!==null&&t===G}function nd(e,t){br=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rd(e,t,n){Ed(e)?(e=t.interleaved,e===null?(n.next=n,rt===null?rt=[t]:rt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function id(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hl(e,n)}}var ps={readContext:Ge,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},pg={readContext:Ge,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Eu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Gf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dg.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Su,useDebugValue:ca,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Su(!1),t=e[0];return e=fg.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=ut();if(V){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),oe===null)throw Error(A(349));dn&30||Hf(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Eu(qf.bind(null,r,s,e),[e]),r.flags|=2048,Kr(9,Bf.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ut(),t=oe.identifierPrefix;if(V){var n=xt,r=Et;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ct]=t,e[Wr]=r,ld(e,t,!1,!1),t.stateNode=e;e:{switch(o=$o(n,r),n){case"dialog":B("cancel",e),B("close",e),i=r;break;case"iframe":case"object":case"embed":B("load",e),i=r;break;case"video":case"audio":for(i=0;iXn&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ds(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!V)return pe(t),null}else 2*Y()-s.renderingStartTime>Xn&&n!==1073741824&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=X.current,j(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return ga(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}var wg=Ct.ReactCurrentOwner,Le=!1;function ye(e,t,n,r){t.child=e===null?Df(t,null,n,r):Vn(t,e.child,n,r)}function Tu(e,t,n,r,i){n=n.render;var s=t.ref;return jn(t,i),r=la(e,t,n,r,s,i),n=aa(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nt(e,t,i)):(V&&n&&ea(t),t.flags|=1,ye(e,t,r,i),t.child)}function Nu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!ya(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,cd(e,t,s,r,i)):(e=Hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hr,n(o,r)&&e.ref===t.ref)return Nt(e,t,i)}return t.flags|=1,e=Vt(s,r),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Hr(s,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Nt(e,t,i)}return il(e,t,n,r,i)}function fd(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},j($n,ze),ze|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,j($n,ze),ze|=r;else return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,j($n,ze),ze|=e,null;else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,j($n,ze),ze|=r;return ye(e,t,i,n),t.child}function dd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function il(e,t,n,r,i){var s=Re(n)?cn:ve.current;return s=qn(t,s),jn(t,i),n=la(e,t,n,r,s,i),r=aa(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nt(e,t,i)):(V&&r&&ea(t),t.flags|=1,ye(e,t,n,i),t.child)}function Cu(e,t,n,r,i){if(Re(n)){var s=!0;os(t)}else s=!1;if(jn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Mf(t,n,r),Zo(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ge(u):(u=Re(n)?cn:ve.current,u=qn(t,u));var c=n.getDerivedStateFromProps,p=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&gu(t,o,r,u),It=!1;var f=t.memoizedState;o.state=f,us(t,r,o,i),a=t.memoizedState,l!==r||f!==a||Pe.current||It?(typeof c=="function"&&(Yo(t,n,c,r),a=t.memoizedState),(l=It||mu(t,n,l,r,f,a,u))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Pf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:et(t.type,l),o.props=u,p=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ge(a):(a=Re(n)?cn:ve.current,a=qn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||f!==a)&&gu(t,o,r,a),It=!1,f=t.memoizedState,o.state=f,us(t,r,o,i);var g=t.memoizedState;l!==p||f!==g||Pe.current||It?(typeof y=="function"&&(Yo(t,n,y,r),g=t.memoizedState),(u=It||mu(t,n,u,r,f,g,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return sl(e,t,n,r,s,i)}function sl(e,t,n,r,i,s){dd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&du(t,n,!1),Nt(e,t,s);r=t.stateNode,wg.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vn(t,e.child,null,s),t.child=Vn(t,null,l,s)):ye(e,t,l,s),t.memoizedState=r.state,i&&du(t,n,!0),t.child}function hd(e){var t=e.stateNode;t.pendingContext?fu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fu(e,t.context,!1),ra(e,t.containerInfo)}function Au(e,t,n,r,i){return Wn(),na(i),t.flags|=256,ye(e,t,n,r),t.child}var Ei={dehydrated:null,treeContext:null,retryLane:0};function xi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lu(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function pd(e,t,n){var r=t.pendingProps,i=X.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),j(X,i&1),e===null)return tl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ws(i,r,0,null),e=on(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=xi(n),t.memoizedState=Ei,e):ol(t,i));if(i=e.memoizedState,i!==null){if(l=i.dehydrated,l!==null){if(o)return t.flags&256?(t.flags&=-257,ki(e,t,n,Error(A(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ws({mode:"visible",children:r.children},i,0,null),s=on(s,i,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vn(t,e.child,null,n),t.child.memoizedState=xi(n),t.memoizedState=Ei,s);if(!(t.mode&1))t=ki(e,t,n,null);else if(l.data==="$!")t=ki(e,t,n,Error(A(419)));else if(r=(n&e.childLanes)!==0,Le||r){if(r=oe,r!==null){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}r=s&(r.suspendedLanes|n)?0:s,r!==0&&r!==i.retryLane&&(i.retryLane=r,Xe(e,r,-1))}va(),t=ki(e,t,n,Error(A(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ig.bind(null,e),l._reactRetry=t,t=null):(n=i.treeContext,Ae=St(l.nextSibling),Fe=t,V=!0,nt=null,n!==null&&(Be[qe++]=Et,Be[qe++]=xt,Be[qe++]=fn,Et=n.id,xt=n.overflow,fn=t),t=ol(t,t.pendingProps.children),t.flags|=4096);return t}return s?(r=Iu(e,t,r.children,r.fallback,n),s=t.child,i=e.child.memoizedState,s.memoizedState=i===null?xi(n):Lu(i,n),s.childLanes=e.childLanes&~n,t.memoizedState=Ei,r):(n=bu(e,t,r.children,n),t.memoizedState=null,n)}return s?(r=Iu(e,t,r.children,r.fallback,n),s=t.child,i=e.child.memoizedState,s.memoizedState=i===null?xi(n):Lu(i,n),s.childLanes=e.childLanes&~n,t.memoizedState=Ei,r):(n=bu(e,t,r.children,n),t.memoizedState=null,n)}function ol(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bu(e,t,n,r){var i=e.child;return e=i.sibling,n=Vt(i,{mode:"visible",children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Iu(e,t,n,r,i){var s=t.mode;e=e.child;var o=e.sibling,l={mode:"hidden",children:n};return!(s&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Vt(e,l),n.subtreeFlags=e.subtreeFlags&14680064),o!==null?r=Vt(o,r):(r=on(r,s,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ki(e,t,n,r){return r!==null&&na(r),Vn(t,e.child,null,n),e=ol(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jo(e.return,t,n)}function go(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function md(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ye(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pu(e,n,t);else if(e.tag===19)Pu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(j(X,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ds(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),go(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ds(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}go(t,!0,n,null,s);break;case"together":go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sg(e,t,n){switch(t.tag){case 3:hd(t),Wn();break;case 5:Ff(t);break;case 1:Re(t.type)&&os(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;j(ls,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(j(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?pd(e,t,n):(j(X,X.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);j(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return md(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,fd(e,t,n)}return Nt(e,t,n)}function Eg(e,t){switch(ta(t),t.tag){case 1:return Re(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),q(Pe),q(ve),sa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ia(t),null;case 13:if(q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(X),null;case 4:return Qn(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return ga(),null;case 24:return null;default:return null}}var _i=!1,ge=!1,xg=typeof WeakSet=="function"?WeakSet:Set,M=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){J(e,t,r)}}var Ru=!1;function kg(e,t){if(Wo=ts,e=Ef(),Gl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,p=e,f=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(l=o+i),p!==s||r!==0&&p.nodeType!==3||(a=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)f=p,p=y;for(;;){if(p===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(y=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:e,selectionRange:n},ts=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,x=g.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:et(t.type,w),x);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;if(v.nodeType===1)v.textContent="";else if(v.nodeType===9){var S=v.body;S!=null&&(S.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(T){J(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=Ru,Ru=!1,g}function Ir(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ll(t,n,s)}i=i.next}while(i!==r)}}function Ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[Wr],delete t[Go],delete t[og],delete t[lg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vd(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=is));else if(r!==4&&(e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}var ue=null,tt=!1;function At(e,t,n){for(n=n.child;n!==null;)yd(e,t,n),n=n.sibling}function yd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:ge||Mn(n,t);case 6:var r=ue,i=tt;ue=null,At(e,t,n),ue=r,tt=i,ue!==null&&(tt?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(tt?(e=ue,n=n.stateNode,e.nodeType===8?uo(e.parentNode,n):e.nodeType===1&&uo(e,n),Ur(e)):uo(ue,n.stateNode));break;case 4:r=ue,i=tt,ue=n.stateNode.containerInfo,tt=!0,At(e,t,n),ue=r,tt=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ll(n,t,o),i=i.next}while(i!==r)}At(e,t,n);break;case 1:if(!ge&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,At(e,t,n),ge=r):At(e,t,n);break;default:At(e,t,n)}}function $u(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xg),t.forEach(function(r){var i=Pg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tg(r/1960))-r,10e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,vs=0,F&6)throw Error(A(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aY()-pa?sn(e,0):ha|=n),Me(e,t)}function Cd(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=Ee();e=Os(e,t),e!==null&&(ni(e,t,n),Me(e,n))}function Ig(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cd(e,n)}function Pg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Cd(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Sg(e,t,n);Le=!!(e.flags&131072)}else Le=!1,V&&t.flags&1048576&&$f(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=qn(t,ve.current);jn(t,n),i=la(null,t,r,e,i,n);var s=aa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(s=!0,os(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zl(t),i.updater=Ps,t.stateNode=i,i._reactInternals=t,Zo(t,r,e,n),t=sl(null,t,r,!0,s,n)):(t.tag=0,V&&s&&ea(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mg(r),e=et(r,e),i){case 0:t=il(null,t,r,e,n);break e;case 1:t=Cu(null,t,r,e,n);break e;case 11:t=Tu(null,t,r,e,n);break e;case 14:t=Nu(null,t,r,et(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),il(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Cu(e,t,r,i,n);case 3:e:{if(hd(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Pf(e,t),us(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Error(A(423)),t=Au(e,t,r,n,i);break e}else if(r!==i){i=Error(A(424)),t=Au(e,t,r,n,i);break e}else for(Ae=St(t.stateNode.containerInfo.firstChild),Fe=t,V=!0,nt=null,n=Df(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===i){t=Nt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return Ff(t),e===null&&tl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Qo(r,i)?o=null:s!==null&&Qo(r,s)&&(t.flags|=32),dd(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&tl(t),null;case 13:return pd(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Tu(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,j(ls,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Pe.current){t=Nt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=kt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Jo(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(A(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Jo(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jn(t,n),i=Ge(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Nu(e,t,r,i,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Re(r)?(e=!0,os(t)):e=!1,jn(t,n),Mf(t,r,i),Zo(t,r,i,n),sl(null,t,r,!0,e,n);case 19:return md(e,t,n);case 22:return fd(e,t,n)}throw Error(A(156,t.tag))};function Ld(e,t){return tf(e,t)}function Rg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Rg(e,t,n,r)}function ya(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mg(e){if(typeof e=="function")return ya(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dl)return 11;if(e===Fl)return 14}return 2}function Vt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")ya(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return on(n.children,i,s,t);case zl:o=8,i|=8;break;case To:return e=Ve(12,n,t,i|2),e.elementType=To,e.lanes=s,e;case No:return e=Ve(13,n,t,i),e.elementType=No,e.lanes=s,e;case Co:return e=Ve(19,n,t,i),e.elementType=Co,e.lanes=s,e;case Dc:return ws(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Oc:o=10;break e;case zc:o=9;break e;case Dl:o=11;break e;case Fl:o=14;break e;case bt:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ve(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function on(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function ws(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=Dc,e.lanes=n,e.stateNode={},e}function vo(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $g(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ys(0),this.expirationTimes=Ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wa(e,t,n,r,i,s,o,l,a){return e=new $g(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ve(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(s),e}function Og(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rd)}catch(e){console.error(e)}}Rd(),Ic.exports=je;var aw=Ic.exports;const ln=({children:e,title:t="",icon:n,disabled:r=!1,toggled:i=!1,onClick:s=()=>{},style:o})=>{let l=`toolbar-button ${n}`;return i&&(l+=" toggled"),L("button",{className:l,onMouseDown:Bu,onClick:s,onDoubleClick:Bu,title:t,disabled:!!r,style:o,children:[n&&m("span",{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e]})},Bu=e=>{e.stopPropagation(),e.preventDefault()},Bi=Symbol("context"),Md=Symbol("next"),$d=Symbol("prev"),qu=Symbol("events");class uw{constructor(t){le(this,"startTime");le(this,"endTime");le(this,"browserName");le(this,"channel");le(this,"platform");le(this,"wallTime");le(this,"title");le(this,"options");le(this,"pages");le(this,"actions");le(this,"events");le(this,"stdio");le(this,"hasSource");le(this,"sdkLanguage");le(this,"testIdAttributeName");le(this,"sources");le(this,"resources");t.forEach(r=>jg(r));const n=t.find(r=>r.isPrimary);this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.wallTime=t.map(r=>r.wallTime).reduce((r,i)=>Math.min(r||Number.MAX_VALUE,i),Number.MAX_VALUE),this.startTime=t.map(r=>r.startTime).reduce((r,i)=>Math.min(r,i),Number.MAX_VALUE),this.endTime=t.map(r=>r.endTime).reduce((r,i)=>Math.max(r,i),Number.MIN_VALUE),this.pages=[].concat(...t.map(r=>r.pages)),this.actions=Hg(t),this.events=[].concat(...t.map(r=>r.events)),this.stdio=[].concat(...t.map(r=>r.stdio)),this.hasSource=t.some(r=>r.hasSource),this.resources=[...t.map(r=>r.resources)].flat(),this.events.sort((r,i)=>r.time-i.time),this.resources.sort((r,i)=>r._monotonicTime-i._monotonicTime),this.sources=Xg(this.actions)}failedAction(){return this.actions.findLast(t=>t.error)}}function jg(e){for(const n of e.pages)n[Bi]=e;for(let n=0;n=0;n--){const r=e.actions[n];r[Md]=t,r.apiName.includes("route.")||(t=r)}for(const n of e.events)n[Bi]=e}function Hg(e){const t=new Map;let n=0;const r=e.filter(l=>l.isPrimary),i=e.filter(l=>!l.isPrimary);for(const l of r){for(const a of l.actions)t.set(`${a.apiName}@${a.wallTime}`,{...a,context:l});!n&&l.actions.length&&(n=l.actions[0].startTime-l.actions[0].wallTime)}const s=new Map;for(const l of i)for(const a of l.actions){if(n){const p=a.endTime-a.startTime;a.startTime&&(a.startTime=a.wallTime+n),a.endTime&&(a.endTime=a.startTime+p)}const u=`${a.apiName}@${a.wallTime}`,c=t.get(u);if(c&&c.apiName===a.apiName){s.set(a.callId,c.callId),a.error&&(c.error=a.error),a.attachments&&(c.attachments=a.attachments),a.parentId&&(c.parentId=s.get(a.parentId)??a.parentId);continue}a.parentId&&(a.parentId=s.get(a.parentId)??a.parentId),t.set(u,{...a,context:l})}const o=[...t.values()];o.sort((l,a)=>a.parentId===l.callId?-1:l.parentId===a.callId?1:l.wallTime-a.wallTime||l.startTime-a.startTime);for(let l=1;lr.time>=e.startTime&&(!n||r.time{const[l,a]=Gi(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[u,c]=Gi(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[p,f]=b.useState(null),[y,g]=ti();let w;r==="vertical"?(w=u/window.devicePixelRatio,y&&y.heightf({offset:r==="vertical"?d.clientY:d.clientX,size:w}),onMouseUp:()=>f(null),onMouseMove:d=>{if(!d.buttons)f(null);else if(p){const S=(r==="vertical"?d.clientY:d.clientX)-p.offset,T=n?p.size+S:p.size-S,E=d.target.parentElement.getBoundingClientRect(),k=Math.min(Math.max(i,T),(r==="vertical"?E.height:E.width)-i);r==="vertical"?c(k*window.devicePixelRatio):a(k*window.devicePixelRatio)}}})]})};function js(e,t="'"){const n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,'"');if(t==="'")return t+r.replace(/[']/g,"\\'")+t;if(t==='"')return t+r.replace(/["]/g,'\\"')+t;if(t==="`")return t+r.replace(/[`]/g,"`")+t;throw new Error("Invalid escape char")}function Es(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Od(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function We(e){let t="";for(let n=0;n=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":t===0&&n===45&&e.length===1?"\\"+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):"\\"+e.charAt(t)}function be(e){return e.replace(/\u200b/g,"").trim().replace(/\s+/g," ")}function Hs(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function zd(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function ht(e,t){return typeof e!="string"?zd(e):`${JSON.stringify(e)}${t?"s":"i"}`}function we(e,t){return typeof e!="string"?zd(e):`"${e.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${t?"s":"i"}`}const te=function(e,t,n){return e>=t&&e<=n};function Ne(e){return te(e,48,57)}function Wu(e){return Ne(e)||te(e,65,70)||te(e,97,102)}function Jg(e){return te(e,65,90)}function Yg(e){return te(e,97,122)}function Zg(e){return Jg(e)||Yg(e)}function ev(e){return e>=128}function qi(e){return Zg(e)||ev(e)||e===95}function Vu(e){return qi(e)||Ne(e)||e===45}function tv(e){return te(e,0,8)||e===11||te(e,14,31)||e===127}function Wi(e){return e===10}function gt(e){return Wi(e)||e===9||e===32}const nv=1114111;class ka extends Error{constructor(t){super(t),this.name="InvalidCharacterError"}}function rv(e){const t=[];for(let n=0;n=t.length?-1:t[_]},o=function(_){if(_===void 0&&(_=1),_>3)throw"Spec Error: no more than three codepoints of lookahead.";return s(n+_)},l=function(_){return _===void 0&&(_=1),n+=_,i=s(n),!0},a=function(){return n-=1,!0},u=function(_){return _===void 0&&(_=i),_===-1},c=function(){if(p(),l(),gt(i)){for(;gt(o());)l();return new vl}else{if(i===34)return g();if(i===35)if(Vu(o())||h(o(1),o(2))){const _=new Jd("");return v(o(1),o(2),o(3))&&(_.type="id"),_.value=E(),_}else return new me(i);else return i===36?o()===61?(l(),new uv):new me(i):i===39?g():i===40?new sv:i===41?new Qd:i===42?o()===61?(l(),new cv):new me(i):i===43?C()?(a(),f()):new me(i):i===44?new Bd:i===45?C()?(a(),f()):o(1)===45&&o(2)===62?(l(2),new Ud):S()?(a(),y()):new me(i):i===46?C()?(a(),f()):new me(i):i===58?new jd:i===59?new Hd:i===60?o(1)===33&&o(2)===45&&o(3)===45?(l(3),new Fd):new me(i):i===64?v(o(1),o(2),o(3))?new Kd(E()):new me(i):i===91?new Vd:i===92?d()?(a(),y()):new me(i):i===93?new yl:i===94?o()===61?(l(),new av):new me(i):i===123?new qd:i===124?o()===61?(l(),new lv):o()===124?(l(),new Xd):new me(i):i===125?new Wd:i===126?o()===61?(l(),new ov):new me(i):Ne(i)?(a(),f()):qi(i)?(a(),y()):u()?new Qi:new me(i)}},p=function(){for(;o(1)===47&&o(2)===42;)for(l(2);;)if(l(),i===42&&o()===47){l();break}else if(u())return},f=function(){const _=k();if(v(o(1),o(2),o(3))){const P=new fv;return P.value=_.value,P.repr=_.repr,P.type=_.type,P.unit=E(),P}else if(o()===37){l();const P=new th;return P.value=_.value,P.repr=_.repr,P}else{const P=new eh;return P.value=_.value,P.repr=_.repr,P.type=_.type,P}},y=function(){const _=E();if(_.toLowerCase()==="url"&&o()===40){for(l();gt(o(1))&>(o(2));)l();return o()===34||o()===39?new Xi(_):gt(o())&&(o(2)===34||o(2)===39)?new Xi(_):w()}else return o()===40?(l(),new Xi(_)):new Gd(_)},g=function(_){_===void 0&&(_=i);let P="";for(;l();){if(i===_||u())return new Yd(P);if(Wi(i))return a(),new Dd;i===92?u(o())||(Wi(o())?l():P+=re(x())):P+=re(i)}throw new Error("Internal error")},w=function(){const _=new Zd("");for(;gt(o());)l();if(u(o()))return _;for(;l();){if(i===41||u())return _;if(gt(i)){for(;gt(o());)l();return o()===41||u(o())?(l(),_):(I(),new Vi)}else{if(i===34||i===39||i===40||tv(i))return I(),new Vi;if(i===92)if(d())_.value+=re(x());else return I(),new Vi;else _.value+=re(i)}}throw new Error("Internal error")},x=function(){if(l(),Wu(i)){const _=[i];for(let W=0;W<5&&Wu(o());W++)l(),_.push(i);gt(o())&&l();let P=parseInt(_.map(function(W){return String.fromCharCode(W)}).join(""),16);return P>nv&&(P=65533),P}else return u()?65533:i},h=function(_,P){return!(_!==92||Wi(P))},d=function(){return h(i,o())},v=function(_,P,W){return _===45?qi(P)||P===45||h(P,W):qi(_)?!0:_===92?h(_,P):!1},S=function(){return v(i,o(1),o(2))},T=function(_,P,W){return _===43||_===45?!!(Ne(P)||P===46&&Ne(W)):_===46?!!Ne(P):!!Ne(_)},C=function(){return T(i,o(1),o(2))},E=function(){let _="";for(;l();)if(Vu(i))_+=re(i);else if(d())_+=re(x());else return a(),_;throw new Error("Internal parse error")},k=function(){let _="",P="integer";for((o()===43||o()===45)&&(l(),_+=re(i));Ne(o());)l(),_+=re(i);if(o(1)===46&&Ne(o(2)))for(l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);const W=o(1),Oe=o(2),_e=o(3);if((W===69||W===101)&&Ne(Oe))for(l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);else if((W===69||W===101)&&(Oe===43||Oe===45)&&Ne(_e))for(l(),_+=re(i),l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);const Te=N(_);return{type:P,value:Te,repr:_}},N=function(_){return+_},I=function(){for(;l();){if(i===41||u())return;d()&&x()}};let O=0;for(;!u(o());)if(r.push(c()),O++,O>t.length*2)throw new Error("I'm infinite-looping!");return r}class Z{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dd extends Z{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Vi extends Z{constructor(){super(...arguments),this.tokenType="BADURL"}}class vl extends Z{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Fd extends Z{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class jd extends Z{constructor(){super(...arguments),this.tokenType=":"}}class Hd extends Z{constructor(){super(...arguments),this.tokenType=";"}}class Bd extends Z{constructor(){super(...arguments),this.tokenType=","}}class Zn extends Z{constructor(){super(...arguments),this.value="",this.mirror=""}}class qd extends Zn{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Wd extends Zn{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Vd extends Zn{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class yl extends Zn{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class sv extends Zn{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Qd extends Zn{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class ov extends Z{constructor(){super(...arguments),this.tokenType="~="}}class lv extends Z{constructor(){super(...arguments),this.tokenType="|="}}class av extends Z{constructor(){super(...arguments),this.tokenType="^="}}class uv extends Z{constructor(){super(...arguments),this.tokenType="$="}}class cv extends Z{constructor(){super(...arguments),this.tokenType="*="}}class Xd extends Z{constructor(){super(...arguments),this.tokenType="||"}}class Qi extends Z{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class me extends Z{constructor(t){super(),this.tokenType="DELIM",this.value="",this.value=re(t)}toString(){return"DELIM("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}toSource(){return this.value==="\\"?`\\ -`:this.value}}class er extends Z{constructor(){super(...arguments),this.value=""}ASCIIMatch(t){return this.value.toLowerCase()===t.toLowerCase()}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}}class Gd extends er{constructor(t){super(),this.tokenType="IDENT",this.value=t}toString(){return"IDENT("+this.value+")"}toSource(){return oi(this.value)}}class Xi extends er{constructor(t){super(),this.tokenType="FUNCTION",this.value=t,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return oi(this.value)+"("}}class Kd extends er{constructor(t){super(),this.tokenType="AT-KEYWORD",this.value=t}toString(){return"AT("+this.value+")"}toSource(){return"@"+oi(this.value)}}class Jd extends er{constructor(t){super(),this.tokenType="HASH",this.value=t,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t}toSource(){return this.type==="id"?"#"+oi(this.value):"#"+dv(this.value)}}class Yd extends er{constructor(t){super(),this.tokenType="STRING",this.value=t}toString(){return'"'+nh(this.value)+'"'}}class Zd extends er{constructor(t){super(),this.tokenType="URL",this.value=t}toString(){return"URL("+this.value+")"}toSource(){return'url("'+nh(this.value)+'")'}}class eh extends Z{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const t=super.toJSON();return t.value=this.value,t.type=this.type,t.repr=this.repr,t}toSource(){return this.repr}}class th extends Z{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.repr=this.repr,t}toSource(){return this.repr+"%"}}class fv extends Z{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t.repr=this.repr,t.unit=this.unit,t}toSource(){const t=this.repr;let n=oi(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||te(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),t+n}}function oi(e){e=""+e;let t="";const n=e.charCodeAt(0);for(let r=0;r=128||i===45||i===95||te(i,48,57)||te(i,65,90)||te(i,97,122)?t+=e[r]:t+="\\"+e[r]}return t}function dv(e){e=""+e;let t="";for(let n=0;n=128||r===45||r===95||te(r,48,57)||te(r,65,90)||te(r,97,122)?t+=e[n]:t+="\\"+r.toString(16)+" "}return t}function nh(e){e=""+e;let t="";for(let n=0;nE instanceof Kd||E instanceof Dd||E instanceof Vi||E instanceof Xd||E instanceof Fd||E instanceof Ud||E instanceof Hd||E instanceof qd||E instanceof Wd||E instanceof Zd||E instanceof th);if(r)throw new Se(`Unsupported token "${r.toSource()}" while parsing selector "${e}"`);let i=0;const s=new Set;function o(){return new Se(`Unexpected token "${n[i].toSource()}" while parsing selector "${e}"`)}function l(){for(;n[i]instanceof vl;)i++}function a(E=i){return n[E]instanceof Gd}function u(E=i){return n[E]instanceof Yd}function c(E=i){return n[E]instanceof eh}function p(E=i){return n[E]instanceof Bd}function f(E=i){return n[E]instanceof Qd}function y(E=i){return n[E]instanceof me&&n[E].value==="*"}function g(E=i){return n[E]instanceof Qi}function w(E=i){return n[E]instanceof me&&[">","+","~"].includes(n[E].value)}function x(E=i){return p(E)||f(E)||g(E)||w(E)||n[E]instanceof vl}function h(){const E=[d()];for(;l(),!!p();)i++,E.push(d());return E}function d(){return l(),c()||u()?n[i++].value:v()}function v(){const E={simples:[]};for(l(),w()?E.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):E.simples.push({selector:S(),combinator:""});;){if(l(),w())E.simples[E.simples.length-1].combinator=n[i++].value,l();else if(x())break;E.simples.push({combinator:"",selector:S()})}return E}function S(){let E="";const k=[];for(;!x();)if(a()||y())E+=n[i++].toSource();else if(n[i]instanceof Jd)E+=n[i++].toSource();else if(n[i]instanceof me&&n[i].value===".")if(i++,a())E+="."+n[i++].toSource();else throw o();else if(n[i]instanceof jd)if(i++,a())if(!t.has(n[i].value.toLowerCase()))E+=":"+n[i++].toSource();else{const N=n[i++].value.toLowerCase();k.push({name:N,args:[]}),s.add(N)}else if(n[i]instanceof Xi){const N=n[i++].value.toLowerCase();if(t.has(N)?(k.push({name:N,args:h()}),s.add(N)):E+=`:${N}(${T()})`,l(),!f())throw o();i++}else throw o();else if(n[i]instanceof Vd){for(E+="[",i++;!(n[i]instanceof yl)&&!g();)E+=n[i++].toSource();if(!(n[i]instanceof yl))throw o();E+="]",i++}else throw o();if(!E&&!k.length)throw o();return{css:E||void 0,functions:k}}function T(){let E="";for(;!f()&&!g();)E+=n[i++].toSource();return E}const C=h();if(!g())throw new Se(`Error while parsing selector "${e}"`);if(C.some(E=>typeof E!="object"||!("simples"in E)))throw new Se(`Error while parsing selector "${e}"`);return{selector:C,names:Array.from(s)}}const wl=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),pv=new Set(["left-of","right-of","above","below","near"]),rh=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Yr(e){const t=vv(e),n=[];for(const r of t.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const i=hv(r.body,rh);n.push({name:"css",body:i.selector,source:r.body});continue}if(wl.has(r.name)){let i,s;try{const u=JSON.parse("["+r.body+"]");if(!Array.isArray(u)||u.length<1||u.length>2||typeof u[0]!="string")throw new Se(`Malformed selector: ${r.name}=`+r.body);if(i=u[0],u.length===2){if(typeof u[1]!="number"||!pv.has(r.name))throw new Se(`Malformed selector: ${r.name}=`+r.body);s=u[1]}}catch{throw new Se(`Malformed selector: ${r.name}=`+r.body)}const o={name:r.name,source:r.body,body:{parsed:Yr(i),distance:s}},l=[...o.body.parsed.parts].reverse().find(u=>u.name==="internal:control"&&u.body==="enter-frame"),a=l?o.body.parsed.parts.indexOf(l):-1;a!==-1&&mv(o.body.parsed.parts.slice(0,a+1),n.slice(0,a+1))&&o.body.parsed.parts.splice(0,a+1),n.push(o);continue}n.push({...r,source:r.body})}if(wl.has(n[0].name))throw new Se(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function mv(e,t){return Gn({parts:e})===Gn({parts:t})}function Gn(e){return typeof e=="string"?e:e.parts.map((t,n)=>{const r=t.name==="css"?"":t.name+"=";return`${n===e.capture?"*":""}${r}${t.source}`}).join(" >> ")}function gv(e,t){const n=(r,i)=>{for(const s of r.parts)t(s,i),wl.has(s.name)&&n(s.body.parsed,!0)};n(e,!1)}function vv(e){let t=0,n,r=0;const i={parts:[]},s=()=>{const l=e.substring(r,t).trim(),a=l.indexOf("=");let u,c;a!==-1&&l.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(u=l.substring(0,a).trim(),c=l.substring(a+1)):l.length>1&&l[0]==='"'&&l[l.length-1]==='"'||l.length>1&&l[0]==="'"&&l[l.length-1]==="'"?(u="text",c=l):/^\(*\/\//.test(l)||l.startsWith("..")?(u="xpath",c=l):(u="css",c=l);let p=!1;if(u[0]==="*"&&(p=!0,u=u.substring(1)),i.parts.push({name:u,body:c}),p){if(i.capture!==void 0)throw new Se("Only one of the selectors can capture using * modifier");i.capture=i.parts.length-1}};if(!e.includes(">>"))return t=e.length,s(),i;const o=()=>{const a=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!a&&!!a[1]};for(;t"&&e[t+1]===">"?(s(),t+=2,r=t):t++}return s(),i}function an(e,t){let n=0,r=e.length===0;const i=()=>e[n]||"",s=()=>{const x=i();return++n,r=n>=e.length,x},o=x=>{throw r?new Se(`Unexpected end of selector while parsing selector \`${e}\``):new Se(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(x?" during "+x:""))};function l(){for(;!r&&/\s/.test(i());)s()}function a(x){return x>="€"||x>="0"&&x<="9"||x>="A"&&x<="Z"||x>="a"&&x<="z"||x>="0"&&x<="9"||x==="_"||x==="-"}function u(){let x="";for(l();!r&&a(i());)x+=s();return x}function c(x){let h=s();for(h!==x&&o("parsing quoted string");!r&&i()!==x;)i()==="\\"&&s(),h+=s();return i()!==x&&o("parsing quoted string"),h+=s(),h}function p(){s()!=="/"&&o("parsing regular expression");let x="",h=!1;for(;!r;){if(i()==="\\")x+=s(),r&&o("parsing regular expression");else if(h&&i()==="]")h=!1;else if(!h&&i()==="[")h=!0;else if(!h&&i()==="/")break;x+=s()}s()!=="/"&&o("parsing regular expression");let d="";for(;!r&&i().match(/[dgimsuy]/);)d+=s();try{return new RegExp(x,d)}catch(v){throw new Se(`Error while parsing selector \`${e}\`: ${v.message}`)}}function f(){let x="";return l(),i()==="'"||i()==='"'?x=c(i()).slice(1,-1):x=u(),x||o("parsing property path"),x}function y(){l();let x="";return r||(x+=s()),!r&&x!=="="&&(x+=s()),["=","*=","^=","$=","|=","~="].includes(x)||o("parsing operator"),x}function g(){s();const x=[];for(x.push(f()),l();i()===".";)s(),x.push(f()),l();if(i()==="]")return s(),{name:x.join("."),jsonPath:x,op:"",value:null,caseSensitive:!1};const h=y();let d,v=!0;if(l(),i()==="/"){if(h!=="=")throw new Se(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with regular expression`);d=p()}else if(i()==="'"||i()==='"')d=c(i()).slice(1,-1),l(),i()==="i"||i()==="I"?(v=!1,s()):(i()==="s"||i()==="S")&&(v=!0,s());else{for(d="";!r&&(a(i())||i()==="+"||i()===".");)d+=s();d==="true"?d=!0:d==="false"?d=!1:t||(d=+d,Number.isNaN(d)&&o("parsing attribute value"))}if(l(),i()!=="]"&&o("parsing attribute value"),s(),h!=="="&&typeof d!="string")throw new Se(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with non-string matching value - ${d}`);return{name:x.join("."),jsonPath:x,op:h,value:d,caseSensitive:v}}const w={name:"",attributes:[]};for(w.name=u(),l();i()==="[";)w.attributes.push(g()),l();if(r||o(void 0),!w.name&&!w.attributes.length)throw new Se(`Error while parsing selector \`${e}\` - selector cannot be empty`);return w}function mn(e,t,n=!1,r=!1){return ih(e,t,n,r)[0]}function ih(e,t,n=!1,r=!1,i=20){if(r)try{return en(Qu[e],Yr(t),n,i)}catch{return[t]}else return en(Qu[e],Yr(t),n,i)}function en(e,t,n=!1,r=20){const i=[...t.parts];for(let l=0;le.generateLocator(u,"has",w)));continue}if(a.name==="internal:has-not"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"hasNot",w)));continue}if(a.name==="internal:and"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"and",w)));continue}if(a.name==="internal:or"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"or",w)));continue}if(a.name==="internal:chain"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"chain",w)));continue}if(a.name==="internal:label"){const{exact:g,text:w}=hr(a.body);s.push([e.generateLocator(u,"label",w,{exact:g})]);continue}if(a.name==="internal:role"){const g=an(a.body,!0),w={attrs:[]};for(const x of g.attributes)x.name==="name"?(w.exact=x.caseSensitive,w.name=x.value):(x.name==="level"&&typeof x.value=="string"&&(x.value=+x.value),w.attrs.push({name:x.name==="include-hidden"?"includeHidden":x.name,value:x.value}));s.push([e.generateLocator(u,"role",g.name,w)]);continue}if(a.name==="internal:testid"){const g=an(a.body,!0),{value:w}=g.attributes[0];s.push([e.generateLocator(u,"test-id",w)]);continue}if(a.name==="internal:attr"){const g=an(a.body,!0),{name:w,value:x,caseSensitive:h}=g.attributes[0],d=x,v=!!h;if(w==="placeholder"){s.push([e.generateLocator(u,"placeholder",d,{exact:v})]);continue}if(w==="alt"){s.push([e.generateLocator(u,"alt",d,{exact:v})]);continue}if(w==="title"){s.push([e.generateLocator(u,"title",d,{exact:v})]);continue}}let c="default";const p=i[l+1];p&&p.name==="internal:control"&&p.body==="enter-frame"&&(c="frame",o="frame-locator",l++);const f=Gn({parts:[a]}),y=e.generateLocator(u,c,f);if(c==="default"&&p&&["internal:has-text","internal:has-not-text"].includes(p.name)){const{exact:g,text:w}=hr(p.body);if(!g){const x=e.generateLocator("locator",p.name==="internal:has-text"?"has-text":"has-not-text",w,{exact:g}),h={};p.name==="internal:has-text"?h.hasText=w:h.hasNotText=w;const d=e.generateLocator(u,"default",f,h);s.push([e.chainLocators([y,x]),d]),l++;continue}}s.push([y])}return yv(e,s,r)}function yv(e,t,n){const r=t.map(()=>""),i=[],s=o=>{if(o===t.length)return i.push(e.chainLocators(r)),r.lengthJSON.parse(r));for(let r=0;r{y==null||y(d)},[y,d]),b.useEffect(()=>{const S=h.current;if(!S)return;const T=()=>{Xu.set(e,S.scrollTop)};return S.addEventListener("scroll",T,{passive:!0}),()=>S.removeEventListener("scroll",T)},[e]),b.useEffect(()=>{h.current&&(h.current.scrollTop=Xu.get(e)||0)},[e]),m("div",{className:"list-view vbox",role:"list","data-testid":x||e+"-list",children:L("div",{className:"list-view-content",tabIndex:0,onDoubleClick:()=>a&&(u==null?void 0:u(a,t.indexOf(a))),onKeyDown:S=>{var k;if(a&&S.key==="Enter"){u==null||u(a,t.indexOf(a));return}if(S.key!=="ArrowDown"&&S.key!=="ArrowUp"&&S.key!=="ArrowLeft"&&S.key!=="ArrowRight")return;if(S.stopPropagation(),S.preventDefault(),a&&S.key==="ArrowLeft"){p==null||p(a,t.indexOf(a));return}if(a&&S.key==="ArrowRight"){f==null||f(a,t.indexOf(a));return}const T=a?t.indexOf(a):-1;let C=T;S.key==="ArrowDown"&&(T===-1?C=0:C=Math.min(T+1,t.length-1)),S.key==="ArrowUp"&&(T===-1?C=t.length-1:C=Math.max(T-1,0));const E=(k=h.current)==null?void 0:k.children.item(C);_v(E||void 0),y==null||y(void 0),c==null||c(t[C],C)},ref:h,children:[w&&t.length===0&&m("div",{className:"list-view-empty",children:w}),t.map((S,T)=>{const C=a===S?" selected":"",E=d===S?" highlighted":"",k=s!=null&&s(S,T)?" error":"",N=o!=null&&o(S,T)?" warning":"",I=(l==null?void 0:l(S,T))||0,O=r(S,T);return L("div",{role:"listitem",className:"list-view-entry"+C+E+k+N,onClick:()=>c==null?void 0:c(S,T),onMouseEnter:()=>v(S),onMouseLeave:()=>v(void 0),children:[I?new Array(I).fill(0).map(()=>m("div",{className:"list-view-indent"})):void 0,i&&m("div",{className:"codicon "+(i(S,T)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:_=>{_.preventDefault(),_.stopPropagation()},onClick:_=>{_.stopPropagation(),_.preventDefault(),g==null||g(S,T)}}),typeof O=="string"?m("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:O}):O]},(n==null?void 0:n(S,T))||T)})]})})}function _v(e){e&&(e!=null&&e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e==null||e.scrollIntoView())}const Tv=li;function Nv({name:e,rootItem:t,render:n,icon:r,isError:i,isVisible:s,selectedItem:o,onAccepted:l,onSelected:a,onHighlighted:u,treeState:c,setTreeState:p,noItemsMessage:f,dataTestId:y,autoExpandDepth:g}){const w=b.useMemo(()=>Cv(t,o,c.expandedItems,g||0),[t,o,c,g]),x=b.useMemo(()=>{if(!s)return[...w.keys()];const h=new Map,d=S=>{const T=h.get(S);if(T!==void 0)return T;let C=S.children.some(k=>d(k));for(const k of S.children){const N=d(k);C=C||N}const E=s(S)||C;return h.set(S,E),E};for(const S of w.keys())d(S);const v=[];for(const S of w.keys())s(S)&&v.push(S);return v},[w,s]);return m(Tv,{name:e,items:x,id:h=>h.id,dataTestId:y||e+"-tree",render:h=>{const d=n(h);return L(pt,{children:[r&&m("div",{className:"codicon "+(r(h)||"blank"),style:{minWidth:16,marginRight:4}}),typeof d=="string"?m("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:d}):d]})},icon:h=>{const d=w.get(h).expanded;if(typeof d=="boolean")return d?"codicon-chevron-down":"codicon-chevron-right"},isError:h=>(i==null?void 0:i(h))||!1,indent:h=>w.get(h).depth,selectedItem:o,onAccepted:h=>l==null?void 0:l(h),onSelected:h=>a==null?void 0:a(h),onHighlighted:h=>u==null?void 0:u(h),onLeftArrow:h=>{const{expanded:d,parent:v}=w.get(h);d?(c.expandedItems.set(h.id,!1),p({...c})):v&&(a==null||a(v))},onRightArrow:h=>{h.children.length&&(c.expandedItems.set(h.id,!0),p({...c}))},onIconClicked:h=>{const{expanded:d}=w.get(h);if(d){for(let v=o;v;v=v.parent)if(v===h){a==null||a(h);break}c.expandedItems.set(h.id,!1)}else c.expandedItems.set(h.id,!0);p({...c})},noItemsMessage:f})}function Cv(e,t,n,r){const i=new Map,s=new Set;for(let l=t==null?void 0:t.parent;l;l=l.parent)s.add(l.id);const o=(l,a)=>{for(const u of l.children){const c=s.has(u.id)||n.get(u.id),p=r>a&&i.size<25&&c!==!1,f=u.children.length?c??p:void 0;i.set(u,{depth:a,expanded:f,parent:e===l?null:l}),f&&o(u,a+1)}};return o(e,0),i}const Av=Nv,Lv=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,sdkLanguage:i,onSelected:s,onHighlighted:o,revealConsole:l,isLive:a})=>{const[u,c]=b.useState({expandedItems:new Map}),{rootItem:p,itemMap:f}=b.useMemo(()=>Bg(e),[e]),{selectedItem:y}=b.useMemo(()=>({selectedItem:t?f.get(t.callId):void 0}),[f,t]);return L("div",{className:"vbox",children:[n&&L("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[m("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),m(Av,{name:"actions",rootItem:p,treeState:u,setTreeState:c,selectedItem:y,onSelected:g=>s(g.action),onHighlighted:g=>o(g==null?void 0:g.action),onAccepted:g=>r({minimum:g.action.startTime,maximum:g.action.endTime}),isError:g=>{var w,x;return!!((x=(w=g.action)==null?void 0:w.error)!=null&&x.message)},isVisible:g=>!n||g.action.startTime<=n.maximum&&g.action.endTime>=n.minimum,render:g=>_a(g.action,{sdkLanguage:i,revealConsole:l,isLive:a,showDuration:!0,showBadges:!0})})]})},_a=(e,t)=>{const{sdkLanguage:n,revealConsole:r,isLive:i,showDuration:s,showBadges:o}=t,{errors:l,warnings:a}=Vg(e),u=e.params.selector?mn(n||"javascript",e.params.selector,!1,!0):void 0;let c="";return e.endTime?c=Bt(e.endTime-e.startTime):e.error?c="Timed out":i||(c="-"),L(pt,{children:[L("div",{className:"action-title",title:e.apiName,children:[m("span",{children:e.apiName}),u&&m("div",{className:"action-selector",title:u,children:u}),e.method==="goto"&&e.params.url&&m("div",{className:"action-url",title:e.params.url,children:e.params.url})]}),(s||o)&&m("div",{className:"spacer"}),s&&m("div",{className:"action-duration",children:c||m("span",{className:"codicon codicon-loading"})}),o&&L("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!l&&L("div",{className:"action-icon",children:[m("span",{className:"codicon codicon-error"}),m("span",{className:"action-icon-value",children:l})]}),!!a&&L("div",{className:"action-icon",children:[m("span",{className:"codicon codicon-warning"}),m("span",{className:"action-icon-value",children:a})]})]})]})};const bv=({value:e})=>{const[t,n]=b.useState("codicon-clippy"),r=b.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{n("codicon-check"),setTimeout(()=>{n("codicon-clippy")},3e3)},()=>{n("codicon-close")})},[e]);return m("span",{className:`copy-icon codicon ${t}`,onClick:r})},tr=({text:e})=>m("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:e}),Iv=({action:e,sdkLanguage:t})=>{if(!e)return m(tr,{text:"No action selected"});const n={...e.params};delete n.info;const r=Object.keys(n),i=e.wallTime?new Date(e.wallTime).toLocaleString():null,s=e.endTime?Bt(e.endTime-e.startTime):"Timed Out";return L("div",{className:"call-tab",children:[m("div",{className:"call-line",children:e.apiName}),L(pt,{children:[m("div",{className:"call-section",children:"Time"}),i&&L("div",{className:"call-line",children:["wall time:",m("span",{className:"call-value datetime",title:i,children:i})]}),L("div",{className:"call-line",children:["duration:",m("span",{className:"call-value datetime",title:s,children:s})]})]}),!!r.length&&m("div",{className:"call-section",children:"Parameters"}),!!r.length&&r.map((o,l)=>Gu(Ku(e,o,n[o],t),"param-"+l)),!!e.result&&m("div",{className:"call-section",children:"Return value"}),!!e.result&&Object.keys(e.result).map((o,l)=>Gu(Ku(e,o,e.result[o],t),"result-"+l))]})};function Gu(e,t){let n=e.text.replace(/\n/g,"↵");return e.type==="string"&&(n=`"${n}"`),L("div",{className:"call-line",children:[e.name,":",m("span",{className:`call-value ${e.type}`,title:e.text,children:n}),["string","number","object","locator"].includes(e.type)&&m(bv,{value:e.text})]},t)}function Ku(e,t,n,r){const i=e.method.includes("eval")||e.method==="waitForFunction";if(t==="files")return{text:"",type:"string",name:t};if((t==="eventInit"||t==="expectedValue"||t==="arg"&&i)&&(n=xs(n.value,new Array(10).fill({handle:""}))),(t==="value"&&i||t==="received"&&e.method==="expect")&&(n=xs(n,new Array(10).fill({handle:""}))),t==="selector")return{text:mn(r||"javascript",e.params.selector,!1,!0),type:"locator",name:"locator"};const s=typeof n;return s!=="object"||n===null?{text:String(n),type:s,name:t}:n.guid?{text:"",type:"handle",name:t}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:t}}function xs(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v==="undefined")return;if(e.v==="null")return null;if(e.v==="NaN")return NaN;if(e.v==="Infinity")return 1/0;if(e.v==="-Infinity")return-1/0;if(e.v==="-0")return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(n=>xs(n,t));if(e.o!==void 0){const n={};for(const{k:r,v:i}of e.o)n[r]=xs(i,t);return n}return e.h!==void 0?t===void 0?"":t[e.h]:""}const Pv=li,Rv=({action:e})=>e!=null&&e.log.length?m(Pv,{name:"log",items:(e==null?void 0:e.log)||[],render:t=>t}):m(tr,{text:"No log entries"});function Zr(e){const t=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,n=[];let r,i={};for(;(r=t.exec(e))!==null;){const[,,s,,o]=r;if(s){const l=+s;switch(l){case 0:i={};break;case 1:i["font-weight"]="bold";break;case 3:i["font-style"]="italic";break;case 4:i["text-decoration"]="underline";break;case 8:i.display="none";break;case 9:i["text-decoration"]="line-through";break;case 22:i={...i,"font-weight":void 0,"font-style":void 0,"text-decoration":void 0};break;case 23:i={...i,"font-weight":void 0,"font-style":void 0};break;case 24:i={...i,"text-decoration":void 0};break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:i.color=Ju[l-30];break;case 39:i={...i,color:void 0};break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i["background-color"]=Ju[l-40];break;case 49:i={...i,"background-color":void 0};break;case 53:i["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:i.color=Yu[l-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i["background-color"]=Yu[l-100];break}}else o&&n.push(`${Mv(o)}`)}return n.join("")}const Ju={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},Yu={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function Mv(e){return e.replace(/[&"<>]/g,t=>({"&":"&",'"':""","<":"<",">":">"})[t])}function $v(e){return Object.entries(e).map(([t,n])=>`${t}: ${n}`).join("; ")}const Ov=({error:e})=>{const t=b.useMemo(()=>Zr(e),[e]);return m("div",{className:"error-message",dangerouslySetInnerHTML:{__html:t||""}})};function zv(e){return b.useMemo(()=>{var n;const t=new Map;for(const r of(e==null?void 0:e.actions)||[])(n=r.error)!=null&&n.message&&t.set(r.error.message,r);return{errors:t}},[e])}const Dv=({errorsModel:e,sdkLanguage:t,revealInSource:n})=>e.errors.size?m("div",{className:"fill",style:{overflow:"auto"},children:[...e.errors.entries()].map(([r,i])=>{var l;let s,o;return(l=i.stack)!=null&&l[0]&&(s=i.stack[0].file.replace(/.*\/(.*)/,"$1")+":"+i.stack[0].line,o=i.stack[0].file+":"+i.stack[0].line),L("div",{children:[L("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)"},children:[_a(i,{sdkLanguage:t}),s&&L("div",{className:"action-location",children:["@ ",m("span",{title:o,onClick:()=>n(i),children:s})]})]}),m(Ov,{error:r})]},r)})}):m(tr,{text:"No errors"});const Fv=li;function Uv(e,t){const{entries:n}=b.useMemo(()=>{if(!e)return{entries:[]};const i=[];for(const s of e.events){if(s.type==="console"){const o=s.args&&s.args.length?Hv(s.args):sh(s.text),l=s.location.url,u=`${l?l.substring(l.lastIndexOf("/")+1):""}:${s.location.lineNumber}`;i.push({browserMessage:{body:o,location:u},isError:s.messageType==="error",isWarning:s.messageType==="warning",timestamp:s.time})}s.type==="event"&&s.method==="pageError"&&i.push({browserError:s.params.error,isError:!0,isWarning:!1,timestamp:s.time})}for(const s of e.stdio){let o="";s.text&&(o=Zr(s.text.trim())||""),s.base64&&(o=Zr(atob(s.base64).trim())||""),i.push({nodeMessage:{html:o},isError:s.type==="stderr",isWarning:!1,timestamp:s.timestamp})}return i.sort((s,o)=>s.timestamp-o.timestamp),{entries:i}},[e]);return{entries:b.useMemo(()=>t?n.filter(i=>i.timestamp>=t.minimum&&i.timestamp<=t.maximum):n,[n,t])}}const jv=({consoleModel:e,boundaries:t})=>e.entries.length?m("div",{className:"console-tab",children:m(Fv,{name:"console",items:e.entries,isError:n=>n.isError,isWarning:n=>n.isWarning,render:n=>{const r=Bt(n.timestamp-t.minimum),i=m("span",{className:"console-time",children:r}),s=n.isError?" status-error":n.isWarning?" status-warning":" status-none",o=n.browserMessage||n.browserError?m("span",{className:"codicon codicon-browser"+s,title:"Browser message"}):m("span",{className:"codicon codicon-file"+s,title:"Runner message"});let l,a,u,c;const{browserMessage:p,browserError:f,nodeMessage:y}=n;if(p&&(l=p.location,a=p.body),f){const{error:g,value:w}=f;g?(a=g.message,c=g.stack):a=String(w)}return y&&(u=y.html),L("div",{className:"console-line",children:[i,o,l&&m("span",{className:"console-location",children:l}),a&&m("span",{className:"console-line-message",children:a}),u&&m("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:u}}),c&&m("div",{className:"console-stack",children:c})]})}})}):m(tr,{text:"No console entries"});function Hv(e){if(e.length===1)return sh(e[0].preview);const t=typeof e[0].value=="string"&&e[0].value.includes("%"),n=t?e[0].value:"",r=t?e.slice(1):e;let i=0;const s=/%([%sdifoOc])/g;let o;const l=[];let a=[];l.push(m("span",{children:a}));let u=0;for(;(o=s.exec(n))!==null;){const c=n.substring(u,o.index);a.push(m("span",{children:c})),u=o.index+2;const p=o[0][1];if(p==="%")a.push(m("span",{children:"%"}));else if(p==="s"||p==="o"||p==="O"||p==="d"||p==="i"||p==="f"){const f=r[i++],y={};typeof(f==null?void 0:f.value)!="string"&&(y.color="var(--vscode-debugTokenExpression-number)"),a.push(m("span",{style:y,children:(f==null?void 0:f.preview)||""}))}else if(p==="c"){a=[];const f=r[i++],y=f?Bv(f.preview):{};l.push(m("span",{style:y,children:a}))}}for(ua[1].toUpperCase());t[l]=o}return t}catch{return{}}}function qv(e){return["background","border","color","font","line","margin","padding","text"].some(n=>e.startsWith(n))}const oh=({noShadow:e,children:t,noMinHeight:n})=>m("div",{className:"toolbar"+(e?" no-shadow":"")+(n?" no-min-height":""),children:t}),Sl=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:s})=>m("div",{className:"tabbed-pane","data-testid":s,children:L("div",{className:"vbox",children:[L(oh,{children:[r&&L("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),m("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:[...e.map(o=>m(lh,{id:o.id,title:o.title,count:o.count,errorCount:o.errorCount,selected:t===o.id,onSelect:n}))]}),i&&L("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...i]})]}),e.map(o=>{const l="tab-content tab-"+o.id;if(o.component)return m("div",{className:l,style:{display:t===o.id?"inherit":"none"},children:o.component},o.id);if(t===o.id)return m("div",{className:l,children:o.render()},o.id)})]})}),lh=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:s})=>L("div",{className:"tabbed-pane-tab "+(i?"selected":""),onClick:()=>s(e),title:t,children:[m("div",{className:"tabbed-pane-tab-label",children:t}),!!n&&m("div",{className:"tabbed-pane-tab-counter",children:n}),!!r&&m("div",{className:"tabbed-pane-tab-counter error",children:r})]},e),Wv="modulepreload",Vv=function(e,t){return new URL(e,t).href},Zu={},Qv=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Vv(s,r),s in Zu)return;Zu[s]=!0;const o=s.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const p=i[c];if(p.href===s&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Wv,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,p)=>{u.addEventListener("load",c),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};const Bs=({text:e,language:t,readOnly:n,highlight:r,revealLine:i,lineNumbers:s,isFocused:o,focusOnChange:l,wrapLines:a,onChange:u})=>{const[c,p]=ti(),[f]=b.useState(Qv(()=>import("./codeMirrorModule-316e0bb2.js"),["./codeMirrorModule-316e0bb2.js","../codeMirrorModule.5d0f417c.css"],import.meta.url).then(x=>x.default)),y=b.useRef(null),[g,w]=b.useState();return b.useEffect(()=>{(async()=>{var S,T;const x=await f,h=p.current;if(!h)return;let d="";if(t==="javascript"&&(d="javascript"),t==="python"&&(d="python"),t==="java"&&(d="text/x-java"),t==="csharp"&&(d="text/x-csharp"),t==="html"&&(d="htmlmixed"),t==="css"&&(d="css"),y.current&&d===y.current.cm.getOption("mode")&&!!n===y.current.cm.getOption("readOnly")&&s===y.current.cm.getOption("lineNumbers")&&a===y.current.cm.getOption("lineWrapping"))return;(T=(S=y.current)==null?void 0:S.cm)==null||T.getWrapperElement().remove();const v=x(h,{value:"",mode:d,readOnly:!!n,lineNumbers:s,lineWrapping:a});return y.current={cm:v},o&&v.focus(),w(v),v})()},[f,g,p,t,s,a,n,o]),b.useEffect(()=>{y.current&&y.current.cm.setSize(c.width,c.height)},[c]),b.useLayoutEffect(()=>{var d;if(!g)return;let x=!1;if(g.getValue()!==e&&(g.setValue(e),x=!0,l&&(g.execCommand("selectAll"),g.focus())),x||JSON.stringify(r)!==JSON.stringify(y.current.highlight)){for(const S of y.current.highlight||[])g.removeLineClass(S.line-1,"wrap");for(const S of r||[])g.addLineClass(S.line-1,"wrap",`source-line-${S.type}`);for(const S of y.current.widgets||[])g.removeLineWidget(S);const v=[];for(const S of r||[]){if(S.type!=="error")continue;const T=(d=y.current)==null?void 0:d.cm.getLine(S.line-1);if(T){const E=document.createElement("div");E.className="source-line-error-underline",E.innerHTML=" ".repeat(T.length||1),v.push(g.addLineWidget(S.line,E,{above:!0,coverGutter:!1}))}const C=document.createElement("div");C.innerHTML=Zr(S.message||""),C.className="source-line-error-widget",v.push(g.addLineWidget(S.line,C,{above:!0,coverGutter:!1}))}y.current.highlight=r,y.current.widgets=v}typeof i=="number"&&y.current.cm.lineCount()>=i&&g.scrollIntoView({line:Math.max(0,i-1),ch:0},50);let h;return u&&(h=()=>u(g.getValue()),g.on("change",h)),()=>{h&&g.off("change",h)}},[g,e,r,i,l,u]),m("div",{className:"cm-wrapper",ref:p})},Xv=({resource:e,onClose:t})=>{const[n,r]=b.useState("request");return m(Sl,{dataTestId:"network-request-details",leftToolbar:[m(ln,{icon:"arrow-left",title:"Back",onClick:t}),m("div",{style:{width:30}})],rightToolbar:[m(ln,{icon:"close",title:"Close",onClick:t})],tabs:[{id:"request",title:"Request",render:()=>m(Gv,{resource:e})},{id:"response",title:"Response",render:()=>m(Kv,{resource:e})},{id:"body",title:"Body",render:()=>m(Jv,{resource:e})}],selectedTab:n,setSelectedTab:r})},Gv=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.request.postData){const i=e.request.headers.find(l=>l.name==="Content-Type"),s=i?i.value:"",o=ah(s);if(e.request.postData._sha1){const l=await fetch(`sha1/${e.request.postData._sha1}`);n({text:El(await l.text(),s),language:o})}else n({text:El(e.request.postData.text,s),language:o})}})()},[e]),L("div",{className:"network-request-details-tab",children:[m("div",{className:"network-request-details-header",children:"URL"}),m("div",{className:"network-request-details-url",children:e.request.url}),m("div",{className:"network-request-details-header",children:"Request Headers"}),m("div",{className:"network-request-details-headers",children:e.request.headers.map(r=>`${r.name}: ${r.value}`).join(` -`)}),t&&m("div",{className:"network-request-details-header",children:"Request Body"}),t&&m(Bs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})},Kv=({resource:e})=>L("div",{className:"network-request-details-tab",children:[m("div",{className:"network-request-details-header",children:"Response Headers"}),m("div",{className:"network-request-details-headers",children:e.response.headers.map(t=>`${t.name}: ${t.value}`).join(` -`)})]}),Jv=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.response.content._sha1){const i=e.response.content.mimeType.includes("image"),s=await fetch(`sha1/${e.response.content._sha1}`);if(i){const o=await s.blob(),l=new FileReader,a=new Promise(u=>l.onload=u);l.readAsDataURL(o),n({dataUrl:(await a).target.result})}else{const o=El(await s.text(),e.response.content.mimeType),l=ah(e.response.content.mimeType);n({text:o,language:l})}}})()},[e]),L("div",{className:"network-request-details-tab",children:[!e.response.content._sha1&&m("div",{children:"Response body is not available for this request."}),t&&t.dataUrl&&m("img",{draggable:"false",src:t.dataUrl}),t&&t.text&&m(Bs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})};function El(e,t){if(e===null)return"Loading...";const n=e;if(n==="")return"";if(t.includes("application/json"))try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}return t.includes("application/x-www-form-urlencoded")?decodeURIComponent(n):n}function ah(e){if(e.includes("javascript")||e.includes("json"))return"javascript";if(e.includes("html"))return"html";if(e.includes("css"))return"css"}const Yv=li;function Zv(e,t){return{resources:b.useMemo(()=>((e==null?void 0:e.resources)||[]).filter(s=>t?!!s._monotonicTime&&s._monotonicTime>=t.minimum&&s._monotonicTime<=t.maximum:!0),[e,t])}}const ey=({boundaries:e,networkModel:t,onEntryHovered:n})=>{const[r,i]=b.useState(),[s,o]=b.useState(void 0);b.useMemo(()=>{s&&sy(t.resources,s)},[t.resources,s]);const l=b.useCallback(a=>{o({by:a,negate:(s==null?void 0:s.by)===a?!s.negate:!1})},[s]);return t.resources.length?L(pt,{children:[!r&&L("div",{className:"vbox",children:[m(ty,{sorting:s,toggleSorting:l}),m(Yv,{name:"network",items:t.resources,render:a=>m(ny,{boundaries:e,resource:a}),onSelected:i,onHighlighted:n})]}),r&&m(Xv,{resource:r,onClose:()=>i(void 0)})]}):m(tr,{text:"No network calls"})},ty=({toggleSorting:e,sorting:t})=>L("div",{className:"hbox network-request-header"+(t?" filter-"+t.by+(t.negate?" negative":" positive"):""),children:[L("div",{className:"network-request-start",onClick:()=>e("start"),children:[m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-status",onClick:()=>e("status"),children:[" Status",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-method",onClick:()=>e("method"),children:["Method",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-file",onClick:()=>e("file"),children:["Request",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-content-type",onClick:()=>e("content-type"),children:["Content Type",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-duration",onClick:()=>e("duration"),children:["Duration",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-size",onClick:()=>e("size"),children:["Size",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),m("div",{className:"network-request-route",children:"Route"})]}),ny=({resource:e,boundaries:t})=>{const{routeStatus:n,resourceName:r,contentType:i}=b.useMemo(()=>{const s=iy(e),o=e.request.url.substring(e.request.url.lastIndexOf("/"));let l=e.response.content.mimeType;const a=l.match(/^(.*);\s*charset=.*$/);return a&&(l=a[1]),{routeStatus:s,resourceName:o,contentType:l}},[e]);return L("div",{className:"hbox",children:[m("div",{className:"hbox network-request-start",children:m("div",{children:Bt(e._monotonicTime-t.minimum)})}),m("div",{className:"hbox network-request-status",children:m("div",{className:ry(e.response.status),title:e.response.statusText,children:e.response.status})}),m("div",{className:"hbox network-request-method",children:m("div",{children:e.request.method})}),m("div",{className:"network-request-file",children:m("div",{className:"network-request-file-url",title:e.request.url,children:r})}),m("div",{className:"network-request-content-type",title:i,children:i}),m("div",{className:"network-request-duration",children:Bt(e.time)}),m("div",{className:"network-request-size",children:Op(e.response._transferSize>0?e.response._transferSize:e.response.bodySize)}),m("div",{className:"network-request-route",children:n&&m("div",{className:`status-route ${n}`,children:n})})]})};function ry(e){return e>=200&&e<400?"status-success":e>=400?"status-failure":""}function iy(e){return e._wasAborted?"aborted":e._wasContinued?"continued":e._wasFulfilled?"fulfilled":e._apiRequest?"api":""}function sy(e,t){const n=oy(t==null?void 0:t.by);n&&e.sort(n),t.negate&&e.reverse()}function oy(e){if(e==="start")return(t,n)=>t._monotonicTime-n._monotonicTime;if(e==="duration")return(t,n)=>t.time-n.time;if(e==="status")return(t,n)=>t.response.status-n.response.status;if(e==="method")return(t,n)=>{const r=t.request.method,i=n.request.method;return r.localeCompare(i)};if(e==="size")return(t,n)=>{const r=t.response._transferSize>0?t.response._transferSize:t.response.bodySize,i=n.response._transferSize>0?n.response._transferSize:n.response.bodySize;return r-i};if(e==="content-type")return(t,n)=>{const r=t.response.content.mimeType,i=n.response.content.mimeType;return r.localeCompare(i)};if(e==="file")return(t,n)=>{const r=t.request.url.substring(t.request.url.lastIndexOf("/")),i=n.request.url.substring(n.request.url.lastIndexOf("/"));return r.localeCompare(i)}}const ec={queryAll(e,t){t.startsWith("/")&&e.nodeType!==Node.DOCUMENT_NODE&&(t="."+t);const n=[],r=e.ownerDocument||e;if(!r)return n;const i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let s=i.iterateNext();s;s=i.iterateNext())s.nodeType===Node.ELEMENT_NODE&&n.push(s);return n}};function Ta(e,t){for(;t;){if(e.contains(t))return!0;t=ch(t)}return!1}function Ie(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function uh(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function ch(e){for(;e.parentElement;)e=e.parentElement;return Ie(e)}function kr(e,t,n){for(;e;){const r=e.closest(t);if(n&&r!==n&&(r!=null&&r.contains(n)))return;if(r)return r;e=ch(e)}}function un(e,t){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0}function fh(e,t){if(t=t??un(e),!t)return!0;if(Element.prototype.checkVisibility){if(!e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!1}))return!1}else{const n=e.closest("details,summary");if(n!==e&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return t.visibility==="visible"}function ks(e){const t=un(e);if(!t)return!0;if(t.display==="contents"){for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===1&&ks(r)||r.nodeType===3&&dh(r))return!0;return!1}if(!fh(e,t))return!1;const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function dh(e){const t=e.ownerDocument.createRange();t.selectNode(e);const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function tc(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}const nc="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",ly=["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"];function hh(e){return ly.some(t=>e.hasAttribute(t))}const wo={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>kr(e,nc)?null:"contentinfo",FORM:e=>tc(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>kr(e,nc)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!hh(e)&&Number.isNaN(Number(String(e.getAttribute("tabindex"))))?"presentation":"img",INPUT:e=>{const t=e.type.toLowerCase();if(t==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(t)){const n=qs(e,e.getAttribute("list"))[0];return n&&n.tagName==="DATALIST"?"combobox":"textbox"}return t==="hidden"?"":{button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"}[t]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:e=>tc(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const t=kr(e,"table"),n=t?_s(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{if(e.getAttribute("scope")==="col")return"columnheader";if(e.getAttribute("scope")==="row")return"rowheader";const t=kr(e,"table"),n=t?_s(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},ay={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function rc(e){var r;const t=((r=wo[e.tagName.toUpperCase()])==null?void 0:r.call(wo,e))||"";if(!t)return null;let n=e;for(;n;){const i=Ie(n),s=ay[n.tagName];if(!s||!i||!s.includes(i.tagName))break;const o=_s(i);if((o==="none"||o==="presentation")&&!ph(i))return o;n=i}return t}const uy=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","command","complementary","composite","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","input","insertion","landmark","link","list","listbox","listitem","log","main","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","range","region","roletype","row","rowgroup","rowheader","scrollbar","search","searchbox","section","sectionhead","select","separator","slider","spinbutton","status","strong","structure","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem","widget","window"],cy=["command","composite","input","landmark","range","roletype","section","sectionhead","select","structure","widget","window"],fy=uy.filter(e=>!cy.includes(e));function _s(e){return(e.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>fy.includes(n))||null}function ph(e){return!hh(e)}function $e(e){const t=_s(e);return!t||(t==="none"||t==="presentation")&&ph(e)?rc(e):t}function mh(e){return e===null?void 0:e.toLowerCase()==="true"}function Na(e){if(["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(e.tagName))return!0;const t=un(e),n=e.nodeName==="SLOT";if((t==null?void 0:t.display)==="contents"&&!n){for(let i=e.firstChild;i;i=i.nextSibling)if(i.nodeType===1&&!Na(i)||i.nodeType===3&&dh(i))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!n&&!fh(e,t)?!0:gh(e)}function gh(e){let t=Pt==null?void 0:Pt.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){const n=un(e);t=!n||n.display==="none"||mh(e.getAttribute("aria-hidden"))===!0}if(!t){const n=Ie(e);n&&(t=gh(n))}Pt==null||Pt.set(e,t)}return t}function qs(e,t){if(!t)return[];const n=uh(e);if(!n)return[];try{const r=t.split(" ").filter(s=>!!s),i=new Set;for(const s of r){const o=n.querySelector("#"+CSS.escape(s));o&&i.add(o)}return[...i]}catch{return[]}}function dy(e){return e.replace(/\r\n/g,` -`).replace(/\u00A0/g," ").replace(/\s\s+/g," ").trim()}function ic(e,t){const n=[...e.querySelectorAll(t)];for(const r of qs(e,e.getAttribute("aria-owns")))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function sc(e){if(!e)return"";const t=e.content;if(t[0]==="'"&&t[t.length-1]==="'"||t[0]==='"'&&t[t.length-1]==='"'){const n=t.substring(1,t.length-1);return(e.display||"inline")!=="inline"?" "+n+" ":n}return""}function vh(e){const t=e.getAttribute("aria-labelledby");return t===null?null:qs(e,t)}function hy(e,t){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),r=t&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return n||r}function Ca(e,t){const n=t?La:Aa;let r=n==null?void 0:n.get(e);return r===void 0&&(r="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes($e(e)||"")||(r=dy(yt(e,{includeHidden:t,visitedElements:new Set,embeddedInLabelledBy:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1,embeddedInTargetElement:"self"}))),n==null||n.set(e,r)),r}function yt(e,t){if(t.visitedElements.has(e))return"";const n={...t,embeddedInLabel:t.embeddedInLabel==="self"?"descendant":t.embeddedInLabel,embeddedInLabelledBy:t.embeddedInLabelledBy==="self"?"descendant":t.embeddedInLabelledBy,embeddedInTargetElement:t.embeddedInTargetElement==="self"?"descendant":t.embeddedInTargetElement};if(!t.includeHidden&&t.embeddedInLabelledBy!=="self"&&Na(e))return t.visitedElements.add(e),"";const r=vh(e);if(t.embeddedInLabelledBy==="none"){const o=(r||[]).map(l=>yt(l,{...t,embeddedInLabelledBy:"self",embeddedInTargetElement:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1})).join(" ");if(o)return o}const i=$e(e)||"";if(t.embeddedInLabel!=="none"||t.embeddedInLabelledBy!=="none"){const o=[...e.labels||[]].includes(e),l=(r||[]).includes(e);if(!o&&!l){if(i==="textbox")return t.visitedElements.add(e),e.tagName==="INPUT"||e.tagName==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(i)){t.visitedElements.add(e);let a;if(e.tagName==="SELECT")a=[...e.selectedOptions],!a.length&&e.options.length&&a.push(e.options[0]);else{const u=i==="combobox"?ic(e,"*").find(c=>$e(c)==="listbox"):e;a=u?ic(u,'[aria-selected="true"]').filter(c=>$e(c)==="option"):[]}return a.map(u=>yt(u,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(i))return t.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(i))return t.visitedElements.add(e),""}}const s=e.getAttribute("aria-label")||"";if(s.trim())return t.visitedElements.add(e),s;if(!["presentation","none"].includes(i)){if(e.tagName==="INPUT"&&["button","submit","reset"].includes(e.type)){t.visitedElements.add(e);const o=e.value||"";return o.trim()?o:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(e.tagName==="INPUT"&&e.type==="image"){t.visitedElements.add(e);const o=e.labels||[];if(o.length&&t.embeddedInLabelledBy==="none")return Ci(o,t);const l=e.getAttribute("alt")||"";if(l.trim())return l;const a=e.getAttribute("title")||"";return a.trim()?a:"Submit"}if(!r&&e.tagName==="BUTTON"){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return Ci(o,t)}if(!r&&e.tagName==="OUTPUT"){t.visitedElements.add(e);const o=e.labels||[];return o.length?Ci(o,t):e.getAttribute("title")||""}if(!r&&(e.tagName==="TEXTAREA"||e.tagName==="SELECT"||e.tagName==="INPUT")){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return Ci(o,t);const l=e.tagName==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||e.tagName==="TEXTAREA",a=e.getAttribute("placeholder")||"",u=e.getAttribute("title")||"";return!l||u?u:a}if(!r&&e.tagName==="FIELDSET"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="LEGEND")return yt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(!r&&e.tagName==="FIGURE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="FIGCAPTION")return yt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(e.tagName==="IMG"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName==="TABLE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="CAPTION")return yt(l,{...n,embeddedInTextAlternativeElement:!0});const o=e.getAttribute("summary")||"";if(o)return o}if(e.tagName==="AREA"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName.toUpperCase()==="SVG"||e.ownerSVGElement){t.visitedElements.add(e);for(let o=e.firstElementChild;o;o=o.nextElementSibling)if(o.tagName.toUpperCase()==="TITLE"&&o.ownerSVGElement)return yt(o,{...n,embeddedInLabelledBy:"self"})}if(e.ownerSVGElement&&e.tagName.toUpperCase()==="A"){const o=e.getAttribute("xlink:title")||"";if(o.trim())return t.visitedElements.add(e),o}}if(hy(i,t.embeddedInTargetElement==="descendant")||t.embeddedInLabelledBy!=="none"||t.embeddedInLabel!=="none"||t.embeddedInTextAlternativeElement){t.visitedElements.add(e);const o=[],l=(c,p)=>{var f;if(!(p&&c.assignedSlot))if(c.nodeType===1){const y=((f=un(c))==null?void 0:f.display)||"inline";let g=yt(c,n);(y!=="inline"||c.nodeName==="BR")&&(g=" "+g+" "),o.push(g)}else c.nodeType===3&&o.push(c.textContent||"")};o.push(sc(un(e,"::before")));const a=e.nodeName==="SLOT"?e.assignedNodes():[];if(a.length)for(const c of a)l(c,!1);else{for(let c=e.firstChild;c;c=c.nextSibling)l(c,!0);if(e.shadowRoot)for(let c=e.shadowRoot.firstChild;c;c=c.nextSibling)l(c,!0);for(const c of qs(e,e.getAttribute("aria-owns")))l(c,!0)}o.push(sc(un(e,"::after")));const u=o.join("");if(u.trim())return u}if(!["presentation","none"].includes(i)||e.tagName==="IFRAME"){t.visitedElements.add(e);const o=e.getAttribute("title")||"";if(o.trim())return o}return t.visitedElements.add(e),""}const yh=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function py(e){return e.tagName==="OPTION"?e.selected:yh.includes($e(e)||"")?mh(e.getAttribute("aria-selected"))===!0:!1}const wh=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function my(e){const t=Sh(e,!0);return t==="error"?!1:t}function Sh(e,t){if(t&&e.tagName==="INPUT"&&e.indeterminate)return"mixed";if(e.tagName==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(wh.includes($e(e)||"")){const n=e.getAttribute("aria-checked");return n==="true"?!0:t&&n==="mixed"?"mixed":!1}return"error"}const Eh=["button"];function gy(e){if(Eh.includes($e(e)||"")){const t=e.getAttribute("aria-pressed");if(t==="true")return!0;if(t==="mixed")return"mixed"}return!1}const xh=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function vy(e){if(e.tagName==="DETAILS")return e.open;if(xh.includes($e(e)||"")){const t=e.getAttribute("aria-expanded");return t===null?"none":t==="true"}return"none"}const kh=["heading","listitem","row","treeitem"];function yy(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName];if(t)return t;if(kh.includes($e(e)||"")){const n=e.getAttribute("aria-level"),r=n===null?Number.NaN:Number(n);if(Number.isInteger(r)&&r>=1)return r}return 0}const wy=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function _h(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(e.tagName)&&(e.hasAttribute("disabled")||Th(e))?!0:Nh(e)}function Th(e){return e?e.tagName==="FIELDSET"&&e.hasAttribute("disabled")?!0:Th(e.parentElement):!1}function Nh(e){if(!e)return!1;if(wy.includes($e(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();if(t==="true")return!0;if(t==="false")return!1}return Nh(Ie(e))}function Ci(e,t){return[...e].map(n=>yt(n,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(n=>!!n).join(" ")}let Aa,La,Pt,Ch=0;function Ah(){++Ch,Aa??(Aa=new Map),La??(La=new Map),Pt??(Pt=new Map)}function Lh(){--Ch||(Aa=void 0,La=void 0,Pt=void 0)}function bh(e,t){for(const n of t.jsonPath)e!=null&&(e=e[n]);return Ih(e,t)}function Ih(e,t){const n=typeof e=="string"&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value=="string"&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===""?!!n:t.op==="="?r instanceof RegExp?typeof n=="string"&&!!n.match(r):n===r:typeof n!="string"||typeof r!="string"?!1:t.op==="*="?n.includes(r):t.op==="^="?n.startsWith(r):t.op==="$="?n.endsWith(r):t.op==="|="?n===r||n.startsWith(r+"-"):t.op==="~="?n.split(" ").includes(r):!1}function ba(e){const t=e.ownerDocument;return e.nodeName==="SCRIPT"||e.nodeName==="NOSCRIPT"||e.nodeName==="STYLE"||t.head&&t.head.contains(e)}function De(e,t){let n=e.get(t);if(n===void 0){if(n={full:"",immediate:[]},!ba(t)){let r="";if(t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="button"))n={full:t.value,immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.TEXT_NODE?(n.full+=i.nodeValue||"",r+=i.nodeValue||""):(r&&n.immediate.push(r),r="",i.nodeType===Node.ELEMENT_NODE&&(n.full+=De(e,i).full));r&&n.immediate.push(r),t.shadowRoot&&(n.full+=De(e,t.shadowRoot).full)}}e.set(t,n)}return n}function Ws(e,t,n){if(ba(t)||!n(De(e,t)))return"none";for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(De(e,r)))return"selfAndChildren";return t.shadowRoot&&n(De(e,t.shadowRoot))?"selfAndChildren":"self"}function Ph(e,t){const n=vh(t);if(n)return n.map(s=>De(e,s));const r=t.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,immediate:[r]}];const i=t.nodeName==="INPUT"&&t.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(t.nodeName)||i){const s=t.labels;if(s)return[...s].map(o=>De(e,o))}return[]}function oc(e){return e.displayName||e.name||"Anonymous"}function Sy(e){if(e.type)switch(typeof e.type){case"function":return oc(e.type);case"string":return e.type;case"object":return e.type.displayName||(e.type.render?oc(e.type.render):"")}if(e._currentElement){const t=e._currentElement.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Anonymous"}return""}function Ey(e){var t;return e.key??((t=e._currentElement)==null?void 0:t.key)}function xy(e){if(e.child){const n=[];for(let r=e.child;r;r=r.sibling)n.push(r);return n}if(!e._currentElement)return[];const t=n=>{var i;const r=(i=n._currentElement)==null?void 0:i.type;return typeof r=="function"||typeof r=="string"};if(e._renderedComponent){const n=e._renderedComponent;return t(n)?[n]:[]}return e._renderedChildren?[...Object.values(e._renderedChildren)].filter(t):[]}function ky(e){var r;const t=e.memoizedProps||((r=e._currentElement)==null?void 0:r.props);if(!t||typeof t=="string")return t;const n={...t};return delete n.children,n}function Rh(e){var r;const t={key:Ey(e),name:Sy(e),children:xy(e).map(Rh),rootElements:[],props:ky(e)},n=e.stateNode||e._hostNode||((r=e._renderedComponent)==null?void 0:r._hostNode);if(n instanceof Element)t.rootElements.push(n);else for(const i of t.children)t.rootElements.push(...i.rootElements);return t}function Mh(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Mh(r,t,n);return n}function $h(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);do{const i=r.currentNode,s=i,o=Object.keys(s).find(a=>a.startsWith("__reactContainer")&&s[a]!==null);if(o)t.push(s[o].stateNode.current);else{const a="_reactRootContainer";s.hasOwnProperty(a)&&s[a]!==null&&t.push(s[a]._internalRoot.current)}if(i instanceof Element&&i.hasAttribute("data-reactroot"))for(const a of Object.keys(i))(a.startsWith("__reactInternalInstance")||a.startsWith("__reactFiber"))&&t.push(i[a]);const l=i instanceof Element?i.shadowRoot:null;l&&$h(l,t)}while(r.nextNode());return t}const _y={queryAll(e,t){const{name:n,attributes:r}=an(t,!1),o=$h(e.ownerDocument||e).map(a=>Rh(a)).map(a=>Mh(a,u=>{const c=u.props??{};if(u.key!==void 0&&(c.key=u.key),n&&u.name!==n||u.rootElements.some(p=>!Ta(e,p)))return!1;for(const p of r)if(!bh(c,p))return!1;return!0})).flat(),l=new Set;for(const a of o)for(const u of a.rootElements)l.add(u);return[...l]}};function Oh(e,t){const n=e.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=n.substring(n.lastIndexOf("/")+1);return t&&r.endsWith(t)&&(r=r.substring(0,r.length-t.length)),r}function Ty(e,t){return t?t.toUpperCase():""}const Ny=/(?:^|[-_/])(\w)/g,zh=e=>e&&e.replace(Ny,Ty);function Cy(e){function t(c){const p=c.name||c._componentTag||c.__playwright_guessedName;if(p)return p;const f=c.__file;if(f)return zh(Oh(f,".vue"))}function n(c,p){return c.type.__playwright_guessedName=p,p}function r(c){var f,y,g,w;const p=t(c.type||{});if(p)return p;if(c.root===c)return"Root";for(const x in(y=(f=c.parent)==null?void 0:f.type)==null?void 0:y.components)if(((g=c.parent)==null?void 0:g.type.components[x])===c.type)return n(c,x);for(const x in(w=c.appContext)==null?void 0:w.components)if(c.appContext.components[x]===c.type)return n(c,x);return"Anonymous Component"}function i(c){return c._isBeingDestroyed||c.isUnmounted}function s(c){return c.subTree.type.toString()==="Symbol(Fragment)"}function o(c){const p=[];return c.component&&p.push(c.component),c.suspense&&p.push(...o(c.suspense.activeBranch)),Array.isArray(c.children)&&c.children.forEach(f=>{f.component?p.push(f.component):p.push(...o(f))}),p.filter(f=>{var y;return!i(f)&&!((y=f.type.devtools)!=null&&y.hide)})}function l(c){return s(c)?a(c.subTree):[c.subTree.el]}function a(c){if(!c.children)return[];const p=[];for(let f=0,y=c.children.length;f!!o.component).map(o=>o.component):[]}function i(s){return{name:n(s),children:r(s).map(i),rootElements:[s.$el],props:s._props}}return i(e)}function Dh(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Dh(r,t,n);return n}function Fh(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=new Set;do{const s=r.currentNode;s.__vue__&&i.add(s.__vue__.$root),s.__vue_app__&&s._vnode&&s._vnode.component&&t.push({root:s._vnode.component,version:3});const o=s instanceof Element?s.shadowRoot:null;o&&Fh(o,t)}while(r.nextNode());for(const s of i)t.push({version:2,root:s});return t}const Ly={queryAll(e,t){const n=e.ownerDocument||e,{name:r,attributes:i}=an(t,!1),l=Fh(n).map(u=>u.version===3?Cy(u.root):Ay(u.root)).map(u=>Dh(u,c=>{if(r&&c.name!==r||c.rootElements.some(p=>!Ta(e,p)))return!1;for(const p of i)if(!bh(c.props,p))return!1;return!0})).flat(),a=new Set;for(const u of l)for(const c of u.rootElements)a.add(c);return[...a]}},Uh=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];Uh.sort();function pr(e,t,n){if(!t.includes(n))throw new Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function En(e,t){if(e.op!==""&&!t.includes(e.value))throw new Error(`"${e.name}" must be one of ${t.map(n=>JSON.stringify(n)).join(", ")}`)}function xn(e,t){if(!t.includes(e.op))throw new Error(`"${e.name}" does not support "${e.op}" matcher`)}function by(e,t){const n={role:t};for(const r of e)switch(r.name){case"checked":{pr(r.name,wh,t),En(r,[!0,!1,"mixed"]),xn(r,["","="]),n.checked=r.op===""?!0:r.value;break}case"pressed":{pr(r.name,Eh,t),En(r,[!0,!1,"mixed"]),xn(r,["","="]),n.pressed=r.op===""?!0:r.value;break}case"selected":{pr(r.name,yh,t),En(r,[!0,!1]),xn(r,["","="]),n.selected=r.op===""?!0:r.value;break}case"expanded":{pr(r.name,xh,t),En(r,[!0,!1]),xn(r,["","="]),n.expanded=r.op===""?!0:r.value;break}case"level":{if(pr(r.name,kh,t),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');n.level=r.value;break}case"disabled":{En(r,[!0,!1]),xn(r,["","="]),n.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=r.value,n.nameOp=r.op,n.exact=r.caseSensitive;break}case"include-hidden":{En(r,[!0,!1]),xn(r,["","="]),n.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${Uh.map(i=>`"${i}"`).join(", ")}.`)}return n}function Iy(e,t,n){const r=[],i=o=>{if($e(o)===t.role&&!(t.selected!==void 0&&py(o)!==t.selected)&&!(t.checked!==void 0&&my(o)!==t.checked)&&!(t.pressed!==void 0&&gy(o)!==t.pressed)&&!(t.expanded!==void 0&&vy(o)!==t.expanded)&&!(t.level!==void 0&&yy(o)!==t.level)&&!(t.disabled!==void 0&&_h(o)!==t.disabled)&&!(!t.includeHidden&&Na(o))){if(t.name!==void 0){const l=be(Ca(o,!!t.includeHidden));if(typeof t.name=="string"&&(t.name=be(t.name)),n&&!t.exact&&t.nameOp==="="&&(t.nameOp="*="),!Ih(l,{name:"",jsonPath:[],op:t.nameOp||"=",value:t.name,caseSensitive:!!t.exact}))return}r.push(o)}},s=o=>{const l=[];o.shadowRoot&&l.push(o.shadowRoot);for(const a of o.querySelectorAll("*"))i(a),a.shadowRoot&&l.push(a.shadowRoot);l.forEach(s)};return s(e),r}function lc(e){return{queryAll:(t,n)=>{const r=an(n,!0),i=r.name.toLowerCase();if(!i)throw new Error("Role must not be empty");const s=by(r.attributes,i);Ah();try{return Iy(t,s,e)}finally{Lh()}}}}function Py(e,t,n){const r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function Ry(e,t,n){const r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function My(e,t,n){const r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function $y(e,t,n){const r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function Oy(e,t,n){const r=n===void 0?50:n;let i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}const zy=["left-of","right-of","above","below","near"];function jh(e,t,n,r){const i=t.getBoundingClientRect(),s={"left-of":Ry,"right-of":Py,above:My,below:$y,near:Oy}[e];let o;for(const l of n){if(l===t)continue;const a=s(i,l.getBoundingClientRect(),r);a!==void 0&&(o===void 0||ar.every((u,c)=>a.rest[c]===u));if(o)return o.result;const l=i();return s.push({rest:r,result:l}),l}_checkSelector(t){if(!(typeof t=="object"&&t&&(Array.isArray(t)||"simples"in t&&t.simples.length)))throw new Error(`Malformed selector "${t}"`);return t}matches(t,n,r){const i=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,t,[i,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(i)?this._matchesEngine(_r,t,i,r):(this._hasScopeClause(i)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(t,i.simples[i.simples.length-1].selector,r)?this._matchesParents(t,i,i.simples.length-2,r):!1))}finally{this.end()}}query(t,n){const r=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,r,[t.scope,t.pierceShadow,t.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(_r,t,r);this._hasScopeClause(r)&&(t=this._expandContextForScopeMatching(t));const i=this._scoreMap;this._scoreMap=new Map;let s=this._querySimple(t,r.simples[r.simples.length-1].selector);return s=s.filter(o=>this._matchesParents(o,r,r.simples.length-2,t)),this._scoreMap.size&&s.sort((o,l)=>{const a=this._scoreMap.get(o),u=this._scoreMap.get(l);return a===u?0:a===void 0?1:u===void 0?-1:a-u}),this._scoreMap=i,s})}finally{this.end()}}_markScore(t,n){this._scoreMap&&this._scoreMap.set(t,n)}_hasScopeClause(t){return t.simples.some(n=>n.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(t){if(t.scope.nodeType!==1)return t;const n=Ie(t.scope);return n?{...t,scope:n,originalScope:t.originalScope||t.scope}:t}_matchesSimple(t,n,r){return this._cached(this._cacheMatchesSimple,t,[n,r.scope,r.pierceShadow,r.originalScope],()=>{if(t===r.scope||n.css&&!this._matchesCSS(t,n.css))return!1;for(const i of n.functions)if(!this._matchesEngine(this._getEngine(i.name),t,i.args,r))return!1;return!0})}_querySimple(t,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=n.css;const i=n.functions;r==="*"&&i.length&&(r=void 0);let s,o=-1;r!==void 0?s=this._queryCSS(t,r):(o=i.findIndex(l=>this._getEngine(l.name).query!==void 0),o===-1&&(o=0),s=this._queryEngine(this._getEngine(i[o].name),t,i[o].args));for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}return s}):this._queryCSS(t,n.css||"*")}_matchesParents(t,n,r,i){return r<0?!0:this._cached(this._cacheMatchesParents,t,[n,r,i.scope,i.pierceShadow,i.originalScope],()=>{const{selector:s,combinator:o}=n.simples[r];if(o===">"){const l=Ai(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o==="+"){const l=So(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o===""){let l=Ai(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Ai(l,i)}return!1}if(o==="~"){let l=So(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="~")break}l=So(l,i)}return!1}if(o===">="){let l=t;for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Ai(l,i)}return!1}throw new Error(`Unsupported combinator "${o}"`)})}_matchesEngine(t,n,r,i){if(t.matches)return this._callMatches(t,n,r,i);if(t.query)return this._callQuery(t,r,i).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(t,n,r){if(t.query)return this._callQuery(t,r,n);if(t.matches)return this._queryCSS(n,"*").filter(i=>this._callMatches(t,i,r,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(t,n,r,i){return this._cached(this._cacheCallMatches,n,[t,i.scope,i.pierceShadow,i.originalScope,...r],()=>t.matches(n,r,i,this))}_callQuery(t,n,r){return this._cached(this._cacheCallQuery,t,[r.scope,r.pierceShadow,r.originalScope,...n],()=>t.query(r,n,this))}_matchesCSS(t,n){return t.matches(n)}_queryCSS(t,n){return this._cached(this._cacheQueryCSS,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=[];function i(s){if(r=r.concat([...s.querySelectorAll(n)]),!!t.pierceShadow){s.shadowRoot&&i(s.shadowRoot);for(const o of s.querySelectorAll("*"))o.shadowRoot&&i(o.shadowRoot)}}return i(t.scope),r})}_getEngine(t){const n=this._engines.get(t);if(!n)throw new Error(`Unknown selector engine "${t}"`);return n}}const _r={matches(e,t,n,r){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');return t.some(i=>r.matches(e,i,n))},query(e,t,n){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const i of t)r=r.concat(n.query(e,i));return t.length===1?r:Hh(r)}},Fy={matches(e,t,n,r){if(t.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...n,scope:e},t).length>0}},Uy={matches(e,t,n,r){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const r=e.originalScope||e.scope;if(r.nodeType===9){const i=r.documentElement;return i?[i]:[]}return r.nodeType===1?[r]:[]}},jy={matches(e,t,n,r){if(t.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(e,t,n)}},Hy={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},By={matches(e,t,n,r){if(t.length)throw new Error('"visible" engine expects no arguments');return ks(e)}},qy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text" engine expects a single string');const i=be(t[0]).toLowerCase(),s=o=>be(o.full).toLowerCase().includes(i);return Ws(r._cacheText,e,s)==="self"}},Wy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text-is" engine expects a single string');const i=be(t[0]),s=o=>!i&&!o.immediate.length?!0:o.immediate.some(l=>be(l)===i);return Ws(r._cacheText,e,s)!=="none"}},Vy={matches(e,t,n,r){if(t.length===0||typeof t[0]!="string"||t.length>2||t.length===2&&typeof t[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const i=new RegExp(t[0],t.length===2?t[1]:void 0),s=o=>i.test(o.full);return Ws(r._cacheText,e,s)==="self"}},Qy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"has-text" engine expects a single string');if(ba(e))return!1;const i=be(t[0]).toLowerCase();return(o=>be(o.full).toLowerCase().includes(i))(De(r._cacheText,e))}};function mr(e){return{matches(t,n,r,i){const s=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,o=s===void 0?n:n.slice(0,n.length-1);if(n.length<1+(s===void 0?0:1))throw new Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);const l=i.query(r,o),a=jh(e,t,l,s);return a===void 0?!1:(i._markScore(t,a),!0)}}}const Xy={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const i=_r.query(e,t.slice(0,t.length-1),n);return r--,r1){const a=new Set(l.children);l.children=[];let u=o.firstElementChild;for(;u&&l.children.lengtht[0].selector[0]!=="/")}function u0(e,t,n){if(n.root&&!Ta(n.root,t))throw new Error("Target element must belong to the root's subtree");if(t===n.root)return[{engine:"css",selector:":scope",score:1}];if(t.ownerDocument.documentElement===t)return[{engine:"css",selector:"html",score:1}];const r=(s,o)=>{const l=s===t;let a=o?f0(e,s,s===t):[];s!==t&&(a=uc(a));const u=c0(e,s,n).filter(f=>!n.omitInternalEngines||!f.engine.startsWith("internal:")).map(f=>[f]);let c=cc(e,n.root??t.ownerDocument,s,[...a,...u],l);a=uc(a);const p=f=>{const y=o&&!f.length,g=[...f,...u].filter(x=>c?Zt(x)=Zt(c))continue;if(w=cc(e,x,s,g,l),!w)return;const d=[...h,...w];(!c||Zt(d){const l=o?Bh:qh;let a=l.get(s);return a===void 0&&(a=r(s,o),l.set(s,a)),a};return i(t,!0)||d0(e,t,n)}function c0(e,t,n){const r=[];{for(const l of["data-testid","data-test-id","data-test"])l!==n.testIdAttributeName&&t.getAttribute(l)&&r.push({engine:"css",selector:`[${l}=${gr(t.getAttribute(l))}]`,score:Gy});const o=t.getAttribute("id");o&&!h0(o)&&r.push({engine:"css",selector:Zh(o),score:o0}),r.push({engine:"css",selector:We(t.nodeName.toLowerCase()),score:Jh})}if(t.nodeName==="IFRAME"){for(const o of["name","title"])t.getAttribute(o)&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[${o}=${gr(t.getAttribute(o))}]`,score:Ky});return t.getAttribute(n.testIdAttributeName)&&r.push({engine:"css",selector:`[${n.testIdAttributeName}=${gr(t.getAttribute(n.testIdAttributeName))}]`,score:ac}),_l([r]),r}if(t.getAttribute(n.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${we(t.getAttribute(n.testIdAttributeName),!0)}]`,score:ac}),t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){const o=t;o.placeholder&&(r.push({engine:"internal:attr",selector:`[placeholder=${we(o.placeholder,!1)}]`,score:Vh}),r.push({engine:"internal:attr",selector:`[placeholder=${we(o.placeholder,!0)}]`,score:Zy}))}const i=Ph(e._evaluator._cacheText,t);for(const o of i){const l=o.full.trim();r.push({engine:"internal:label",selector:ht(l,!1),score:Qh}),r.push({engine:"internal:label",selector:ht(l,!0),score:e0})}const s=$e(t);return s&&!["none","presentation"].includes(s)&&r.push({engine:"internal:role",selector:s,score:l0}),t.getAttribute("alt")&&["APPLET","AREA","IMG","INPUT"].includes(t.nodeName)&&(r.push({engine:"internal:attr",selector:`[alt=${we(t.getAttribute("alt"),!1)}]`,score:Gh}),r.push({engine:"internal:attr",selector:`[alt=${we(t.getAttribute("alt"),!0)}]`,score:n0})),t.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(t.nodeName)&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[name=${gr(t.getAttribute("name"))}]`,score:Eo}),t.getAttribute("title")&&(r.push({engine:"internal:attr",selector:`[title=${we(t.getAttribute("title"),!1)}]`,score:Kh}),r.push({engine:"internal:attr",selector:`[title=${we(t.getAttribute("title"),!0)}]`,score:i0})),["INPUT","TEXTAREA"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&t.getAttribute("type")&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[type=${gr(t.getAttribute("type"))}]`,score:Eo}),["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:We(t.nodeName.toLowerCase()),score:Eo+1}),_l([r]),r}function f0(e,t,n){if(t.nodeName==="SELECT")return[];const r=[],i=be(De(e._evaluator._cacheText,t).full),s=i.substring(0,80);if(s){const l=ht(s,!1);n&&(r.push([{engine:"internal:text",selector:l,score:xl}]),r.push([{engine:"internal:text",selector:ht(s,!0),score:r0}]));const a={engine:"css",selector:We(t.nodeName.toLowerCase()),score:Jh};r.push([a,{engine:"internal:has-text",selector:l,score:xl}]),i.length<=80&&r.push([a,{engine:"internal:has-text",selector:"/^"+p0(i)+"$/",score:Yy}])}const o=$e(t);if(o&&!["none","presentation"].includes(o)){const l=Ca(t,!1);l&&(r.push([{engine:"internal:role",selector:`${o}[name=${we(l,!1)}]`,score:Xh}]),r.push([{engine:"internal:role",selector:`${o}[name=${we(l,!0)}]`,score:t0}]))}return _l(r),r}function Zh(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?"#"+e:`[id="${We(e)}"]`}function d0(e,t,n){const r=n.root??t.ownerDocument,i=[];function s(l){const a=i.slice();l&&a.unshift(l);const u=a.join(" > "),c=e.parseSelector(u);return e.querySelector(c,r,!1)===t?u:void 0}function o(l){const a={engine:"css",selector:l,score:a0},u=e.parseSelector(l),c=e.querySelectorAll(u,r);if(c.length===1)return[a];const p={engine:"nth",selector:String(c.indexOf(t)),score:Yh};return[a,p]}for(let l=t;l&&l!==r;l=Ie(l)){const a=l.nodeName.toLowerCase();let u="";if(l.id){const f=Zh(l.id),y=s(f);if(y)return o(y);u=f}const c=l.parentNode,p=[...l.classList];for(let f=0;fx.nodeName.toLowerCase()===a).indexOf(l)===0?We(a):`${We(a)}:nth-child(${1+f.indexOf(l)})`,w=s(g);if(w)return o(w);u||(u=g)}else u||(u=We(a));i.unshift(u)}return o(s())}function gr(e){return`"${We(e).replace(/\\ /g," ")}"`}function _l(e){for(const t of e)for(const n of t)n.score>Jy&&n.score>"),n=r,r==="css"?t.push(i):t.push(`${r}=${i}`);return t.join(" ")}function Zt(e){let t=0;for(let n=0;n({tokens:l,score:Zt(l)}));s.sort((l,a)=>l.score-a.score);let o=null;for(const{tokens:l}of s){const a=e.parseSelector(ep(l)),u=e.querySelectorAll(a,t);if(u[0]===n&&u.length===1)return l;const c=u.indexOf(n);if(!i||o||c===-1||u.length>5)continue;const p={engine:"nth",selector:String(c),score:Yh};o=[...l,p]}return o}function h0(e){let t,n=0;for(let r=0;r="a"&&i<="z"?s="lower":i>="A"&&i<="Z"?s="upper":i>="0"&&i<="9"?s="digit":s="other",s==="lower"&&t==="upper"){t=s;continue}t&&t!==s&&++n,t=s}}return n>=e.length/4}function p0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class Tl{constructor(t){this._highlightEntries=[],this._language="javascript",this._injectedScript=t;const n=t.document;this._isUnderTest=t.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483647",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent",this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),this._glassPaneShadow.appendChild(this._actionPointElement);const r=n.createElement("style");r.textContent=` - x-pw-tooltip { - align-items: center; - backdrop-filter: blur(5px); - background-color: rgba(0, 0, 0, 0.7); - border-radius: 2px; - box-shadow: rgba(0, 0, 0, 0.1) 0px 3.6px 3.7px, - rgba(0, 0, 0, 0.15) 0px 12.1px 12.3px, - rgba(0, 0, 0, 0.1) 0px -2px 4px, - rgba(0, 0, 0, 0.15) 0px -12.1px 24px, - rgba(0, 0, 0, 0.25) 0px 54px 55px; - color: rgb(204, 204, 204); - display: none; - font-family: 'Dank Mono', 'Operator Mono', Inconsolata, 'Fira Mono', - 'SF Mono', Monaco, 'Droid Sans Mono', 'Source Code Pro', monospace; - font-size: 12.8px; - font-weight: normal; - left: 0; - line-height: 1.5; - max-width: 600px; - padding: 3.2px 5.12px 3.2px; - position: absolute; - top: 0; - } - x-pw-action-point { - position: absolute; - width: 20px; - height: 20px; - background: red; - border-radius: 10px; - pointer-events: none; - margin: -10px 0 0 -10px; - z-index: 2; - } - *[hidden] { - display: none !important; - } - `,this._glassPaneShadow.appendChild(r)}install(){this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(t){this._language=t}runHighlightOnRaf(t){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this.updateHighlight(this._injectedScript.querySelectorAll(t,this._injectedScript.document.documentElement),Gn(t),!1),this._rafRequest=requestAnimationFrame(()=>this.runHighlightOnRaf(t))}uninstall(){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}isInstalled(){return this._glassPaneElement.parentElement===this._injectedScript.document.documentElement&&!this._glassPaneElement.nextElementSibling}showActionPoint(t,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=t+"px",this._actionPointElement.hidden=!1,this._isUnderTest&&console.error("Action point for test: "+JSON.stringify({x:t,y:n}))}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var t,n;for(const r of this._highlightEntries)(t=r.highlightElement)==null||t.remove(),(n=r.tooltipElement)==null||n.remove();this._highlightEntries=[]}updateHighlight(t,n,r){let i;r?i="#dc6f6f7f":i=t.length>1?"#f6b26b7f":"#6fa8dc7f",this._innerUpdateHighlight(t,{color:i,tooltipText:n?mn(this._language,n):""})}maskElements(t,n){this._innerUpdateHighlight(t,{color:n||"#F0F"})}_innerUpdateHighlight(t,n){if(!this._highlightIsUpToDate(t,n.tooltipText)){this.clearHighlight();for(let r=0;r1?` [${r+1} of ${t.length}]`:"";s.textContent=n.tooltipText+o,s.style.top="0",s.style.left="0",s.style.display="flex"}this._highlightEntries.push({targetElement:t[r],tooltipElement:s,highlightElement:i,tooltipText:n.tooltipText})}for(const r of this._highlightEntries){if(r.box=r.targetElement.getBoundingClientRect(),!r.tooltipElement)continue;const i=r.tooltipElement.offsetWidth,s=r.tooltipElement.offsetHeight,o=this._glassPaneElement.offsetWidth,l=this._glassPaneElement.offsetHeight;let a=r.box.left;a+i>o-5&&(a=o-i-5);let u=r.box.bottom+5;u+s>l-5&&(r.box.top>s+5?u=r.box.top-s-5:u=l-5-s),r.tooltipTop=u,r.tooltipLeft=a}for(const r of this._highlightEntries){r.tooltipElement&&(r.tooltipElement.style.top=r.tooltipTop+"px",r.tooltipElement.style.left=r.tooltipLeft+"px");const i=r.box;r.highlightElement.style.backgroundColor=n.color,r.highlightElement.style.left=i.x+"px",r.highlightElement.style.top=i.y+"px",r.highlightElement.style.width=i.width+"px",r.highlightElement.style.height=i.height+"px",r.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:i.x,y:i.y,width:i.width,height:i.height}))}}}_highlightIsUpToDate(t,n){if(t.length!==this._highlightEntries.length)return!1;for(let r=0;r[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",lc(!0));for(const{name:a,engine:u}of l)this._engines.set(a,u);this._stableRafCount=s,this._browserName=o,this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(t){return this.window.eval(t)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(t){const n=Yr(t);return gv(n,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${t}`)}),n}generateSelector(t,n){return kl(this,t,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(t,n,r){const i=this.querySelectorAll(t,n);if(r&&i.length>1)throw this.strictModeViolationError(t,i);return i[0]}_queryNth(t,n){const r=[...t];let i=+n.body;return i===-1&&(i=r.length-1),new Set(r.slice(i,i+1))}_queryLayoutSelector(t,n,r){const i=n.name,s=n.body,o=[],l=this.querySelectorAll(s.parsed,r);for(const a of t){const u=jh(i,a,l,s.distance);u!==void 0&&o.push({element:a,score:u})}return o.sort((a,u)=>a.score-u.score),new Set(o.map(a=>a.element))}querySelectorAll(t,n){if(t.capture!==void 0){if(t.parts.some(i=>i.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:t.parts.slice(0,t.capture+1)};if(t.capturer.has(o)))}else if(i.name==="internal:or"){const s=this.querySelectorAll(i.body.parsed,n);r=new Set(Hh(new Set([...r,...s])))}else if(zy.includes(i.name))r=this._queryLayoutSelector(r,i,n);else{const s=new Set;for(const o of r){const l=this._queryEngineAll(i,o);for(const a of l)s.add(a)}r=s}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(t,n){const r=this._engines.get(t.name).queryAll(n,t.body);for(const i of r)if(!("nodeName"in i))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(i)}`);return r}_createAttributeEngine(t,n){const r=i=>[{simples:[{selector:{css:`[${t}=${JSON.stringify(i)}]`,functions:[]},combinator:""}]}];return{queryAll:(i,s)=>this._evaluator.query({scope:i,pierceShadow:n},r(s))}}_createCSSEngine(){return{queryAll:(t,n)=>this._evaluator.query({scope:t,pierceShadow:!0},n)}}_createTextEngine(t,n){return{queryAll:(i,s)=>{const{matcher:o,kind:l}=bi(s,n),a=[];let u=null;const c=f=>{if(l==="lax"&&u&&u.contains(f))return!1;const y=Ws(this._evaluator._cacheText,f,o);y==="none"&&(u=f),(y==="self"||y==="selfAndChildren"&&l==="strict"&&!n)&&a.push(f)};i.nodeType===Node.ELEMENT_NODE&&c(i);const p=this._evaluator._queryCSS({scope:i,pierceShadow:t},"*");for(const f of p)c(f);return a}}}_createInternalHasTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=De(this._evaluator._cacheText,r),{matcher:s}=bi(n,!0);return s(i)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=De(this._evaluator._cacheText,r),{matcher:s}=bi(n,!0);return s(i)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(t,n)=>{const{matcher:r}=bi(n,!0);return this._evaluator._queryCSS({scope:t,pierceShadow:!0},"*").filter(s=>Ph(this._evaluator._cacheText,s).some(o=>r(o)))}}}_createNamedAttributeEngine(){return{queryAll:(n,r)=>{const i=an(r,!0);if(i.name||i.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:s,value:o,caseSensitive:l}=i.attributes[0],a=l?null:o.toLowerCase();let u;return o instanceof RegExp?u=p=>!!p.match(o):l?u=p=>p===o:u=p=>p.toLowerCase().includes(a),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${s}]`).filter(p=>u(p.getAttribute(s)))}}}_createControlEngine(){return{queryAll(t,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return t.nodeType!==1?[]:[t.childElementCount===1?t.firstElementChild:t];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:ks(n)===!!r?[n]:[]}}_createInternalChainEngine(){return{queryAll:(n,r)=>this.querySelectorAll(r.parsed,n)}}extend(t,n){const r=this.window.eval(` - (() => { - const module = {}; - ${t} - return module.exports.default(); - })()`);return new r(this,n)}isVisible(t){return ks(t)}async viewportRatio(t){return await new Promise(n=>{const r=new IntersectionObserver(i=>{n(i[0].intersectionRatio),r.disconnect()});r.observe(t),requestAnimationFrame(()=>{})})}pollRaf(t){return this.poll(t,n=>requestAnimationFrame(n))}poll(t,n){return this._runAbortableTask(r=>{let i,s;const o=new Promise((a,u)=>{i=a,s=u}),l=()=>{if(!r.aborted)try{const a=t(r);a!==r.continuePolling?i(a):n(l)}catch(a){r.log(" "+a.message),s(a)}};return l(),o})}_runAbortableTask(t){let n=[],r,i=!1;const s=()=>{r&&(r(n),n=[],r=void 0)},o=()=>new Promise(c=>{r=c,(n.length||i)&&s()});let l="";const a={injectedScript:this,aborted:!1,continuePolling:Symbol("continuePolling"),log:c=>{l=c,n.push({message:c}),s()},logRepeating:c=>{c!==l&&a.log(c)}};return{takeNextLogs:o,run:()=>{const c=t(a);return c.finally(()=>{i=!0,s()}),c},cancel:()=>{a.aborted=!0},takeLastLogs:()=>n}}getElementBorderWidth(t){if(t.nodeType!==Node.ELEMENT_NODE||!t.ownerDocument||!t.ownerDocument.defaultView)return{left:0,top:0};const n=t.ownerDocument.defaultView.getComputedStyle(t);return{left:parseInt(n.borderLeftWidth||"",10),top:parseInt(n.borderTopWidth||"",10)}}describeIFrameStyle(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return"error:notconnected";const n=t.ownerDocument.defaultView;for(let i=t;i;i=Ie(i))if(n.getComputedStyle(i).transform!=="none")return"transformed";const r=n.getComputedStyle(t);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(t,n){let r=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return r?(n==="none"||(r.matches("input, textarea, select")||(n==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),n==="follow-label"&&(!r.matches("input, textarea, button, select, [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable&&(r=r.closest("label")||r),r.nodeName==="LABEL"&&(r=r.control||r))),r):null}waitForElementStatesAndPerformAction(t,n,r,i){let s,o=0,l=0,a=0;return this.pollRaf(u=>{if(r)return u.log(" forcing action"),i(t,u);for(const c of n){if(c!=="stable"){const d=this.elementState(t,c);if(typeof d!="boolean")return d;if(!d)return u.logRepeating(` element is not ${c} - waiting...`),u.continuePolling;continue}const p=this.retarget(t,"no-follow-label");if(!p)return"error:notconnected";if(++o===1)return u.continuePolling;const f=performance.now();if(this._stableRafCount>1&&f-a<15)return u.continuePolling;a=f;const y=p.getBoundingClientRect(),g={x:y.top,y:y.left,width:y.width,height:y.height};s&&g.x===s.x&&g.y===s.y&&g.width===s.width&&g.height===s.height?++l:l=0;const x=l>=this._stableRafCount,h=x||!s;if(s=g,h||u.logRepeating(" element is not stable - waiting..."),!x)return u.continuePolling}return i(t,u)})}elementState(t,n){const r=this.retarget(t,["stable","visible","hidden"].includes(n)?"none":"follow-label");if(!r||!r.isConnected)return n==="hidden"?!0:"error:notconnected";if(n==="visible")return this.isVisible(r);if(n==="hidden")return!this.isVisible(r);const i=_h(r);if(n==="disabled")return i;if(n==="enabled")return!i;const s=!(["INPUT","TEXTAREA","SELECT"].includes(r.nodeName)&&r.hasAttribute("readonly"));if(n==="editable")return!i&&s;if(n==="checked"||n==="unchecked"){const o=n==="checked",l=Sh(r,!1);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return o===l}throw this.createStacklessError(`Unexpected element state "${n}"`)}selectOptions(t,n,r){const i=this.retarget(n,"follow-label");if(!i)return"error:notconnected";if(i.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a ,