@minecraft-docker/mcctl-console 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.next/standalone/package.json +1 -1
  2. package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
  3. package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +35 -34
  4. package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
  5. package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +2 -2
  6. package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
  7. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js +1 -1
  10. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js.nft.json +1 -1
  11. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js +1 -1
  14. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js +1 -1
  18. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js.nft.json +1 -1
  19. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
  25. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
  26. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
  27. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +3 -3
  28. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
  29. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +3 -3
  30. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
  31. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +2 -2
  32. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
  33. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
  34. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
  36. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +1 -1
  37. package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
  38. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
  39. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +3 -3
  40. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
  41. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +2 -2
  42. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
  43. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +2 -2
  44. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
  45. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +2 -2
  46. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
  47. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
  48. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +1 -1
  49. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
  50. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +2 -2
  51. package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +25 -25
  52. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5841.js +1 -0
  53. package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
  54. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
  55. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
  56. package/.next/standalone/platform/services/mcctl-console/.next/server/pages-manifest.json +1 -1
  57. package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
  58. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2019-01a1009a77c3dccd.js +1 -0
  59. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3724-3dc138f24633b931.js +1 -0
  60. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4848-443d44225e2a1136.js +1 -0
  61. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5560-5451f43d5921310c.js +1 -0
  62. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5892-314539460769272f.js +1 -0
  63. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6831-3fe5e1273ac38e5f.js +1 -0
  64. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7438-5931d51bb2efa484.js +1 -0
  65. package/.next/{static/chunks/app/(main)/audit-logs/page-abfe3bbfaa7eb99b.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/page-4b9a4dac74fde96c.js} +1 -1
  66. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-3a92cd25792a1162.js +1 -0
  67. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/{layout-26e37b29ee07fc8c.js → layout-25723393b563b0b5.js} +1 -1
  68. package/.next/{static/chunks/app/(main)/players/page-08dd972363e964d9.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-382ee2761391923b.js} +1 -1
  69. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-8d16a3b92a29027e.js +1 -0
  70. package/.next/standalone/platform/services/mcctl-console/package.json +1 -1
  71. package/.next/static/chunks/2019-01a1009a77c3dccd.js +1 -0
  72. package/.next/static/chunks/3724-3dc138f24633b931.js +1 -0
  73. package/.next/static/chunks/4848-443d44225e2a1136.js +1 -0
  74. package/.next/static/chunks/5560-5451f43d5921310c.js +1 -0
  75. package/.next/static/chunks/5892-314539460769272f.js +1 -0
  76. package/.next/static/chunks/6831-3fe5e1273ac38e5f.js +1 -0
  77. package/.next/static/chunks/7438-5931d51bb2efa484.js +1 -0
  78. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/page-abfe3bbfaa7eb99b.js → static/chunks/app/(main)/audit-logs/page-4b9a4dac74fde96c.js} +1 -1
  79. package/.next/static/chunks/app/(main)/backups/page-3a92cd25792a1162.js +1 -0
  80. package/.next/static/chunks/app/(main)/{layout-26e37b29ee07fc8c.js → layout-25723393b563b0b5.js} +1 -1
  81. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-08dd972363e964d9.js → static/chunks/app/(main)/players/page-382ee2761391923b.js} +1 -1
  82. package/.next/static/chunks/app/(main)/servers/[name]/page-8d16a3b92a29027e.js +1 -0
  83. package/package.json +2 -2
  84. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/1258.js +0 -1
  85. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/1116-90e393e11322b96b.js +0 -1
  86. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2603-4e610b5895784491.js +0 -1
  87. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/310-1ce88ce372edcd70.js +0 -1
  88. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5618-bf7fd85c91f76e0d.js +0 -1
  89. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6368-737efbaafd70bcba.js +0 -1
  90. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6648-4f261adfced5c408.js +0 -1
  91. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7632-4cd7961537874121.js +0 -1
  92. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-50eec2b821445eee.js +0 -1
  93. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-32309b73a831aa9b.js +0 -1
  94. package/.next/static/chunks/1116-90e393e11322b96b.js +0 -1
  95. package/.next/static/chunks/2603-4e610b5895784491.js +0 -1
  96. package/.next/static/chunks/310-1ce88ce372edcd70.js +0 -1
  97. package/.next/static/chunks/5618-bf7fd85c91f76e0d.js +0 -1
  98. package/.next/static/chunks/6368-737efbaafd70bcba.js +0 -1
  99. package/.next/static/chunks/6648-4f261adfced5c408.js +0 -1
  100. package/.next/static/chunks/7632-4cd7961537874121.js +0 -1
  101. package/.next/static/chunks/app/(main)/backups/page-50eec2b821445eee.js +0 -1
  102. package/.next/static/chunks/app/(main)/servers/[name]/page-32309b73a831aa9b.js +0 -1
  103. /package/.next/standalone/platform/services/mcctl-console/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_buildManifest.js +0 -0
  104. /package/.next/standalone/platform/services/mcctl-console/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_ssgManifest.js +0 -0
  105. /package/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_buildManifest.js +0 -0
  106. /package/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1116],{33104:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)([(0,s.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,s.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime")},407:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)([(0,s.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,s.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings")},26577:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},7837:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article")},94358:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile")},397:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},56056:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build")},41980:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V6h4.05l1.83-2h4.24l1.83 2H20zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"CameraAltOutlined")},24559:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},21200:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox")},65626:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank")},75946:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code")},10449:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},23907:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder")},46121:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever")},97589:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description")},26559:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M18.41 5.8 17.2 4.59c-.78-.78-2.05-.78-2.83 0l-2.68 2.68L3 15.96V20h4.04l8.74-8.74 2.63-2.63c.79-.78.79-2.05 0-2.83M6.21 18H5v-1.21l8.66-8.66 1.21 1.21zM11 20l4-4h6v4z"}),"DriveFileRenameOutline")},76777:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension")},53325:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder")},11259:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen")},29114:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M22 9V7h-2v2h-2v2h2v2h2v-2h2V9zM8 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 1c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"}),"GroupAdd")},49368:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},59602:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},32579:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile")},18644:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"}),"Inventory")},25523:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language")},96292:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link")},72147:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt")},89573:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"}),"LocalOffer")},70603:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},37809:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},66615:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull")},9078:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},61244:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M9 16h2V8H9zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m1-4h2V8h-2z"}),"PauseCircleOutline")},47606:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd")},11597:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4m3 2v2h6v-2zM2 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"}),"PersonRemove")},5501:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},84974:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},84775:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt")},5942:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},97293:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 6h-2V4h2zm3 0h-2V4h2zm3 0h-2V4h2z"}),"SdStorage")},23482:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"}),"Shield")},30165:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed")},1217:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m21.58 16.09-1.09-7.66C20.21 6.46 18.52 5 16.53 5H7.47C5.48 5 3.79 6.46 3.51 8.43l-1.09 7.66C2.2 17.63 3.39 19 4.94 19c.68 0 1.32-.27 1.8-.75L9 16h6l2.25 2.25c.48.48 1.13.75 1.8.75 1.56 0 2.75-1.37 2.53-2.91M11 11H9v2H8v-2H6v-1h2V8h1v2h2zm4-1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m2 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"}),"SportsEsports")},34071:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal")},22041:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune")},90117:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo")},14895:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile")},17978:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr")},28058:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},42730:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},84420:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)((0,s.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},8352:function(e,t,n){"use strict";var r=n(8091);t.Z=void 0;var i=r(n(66758)),s=n(94655);t.Z=(0,i.default)([(0,s.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,s.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber")},99777:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(81500),i=n(32324),s=n(35106),o=n(70316),a=n(65951),l=n(34519),c=n(28057),h=n(31317),u=n(11379),f=n(9049);function d(e){return(0,f.ZP)("MuiAlertTitle",e)}(0,u.Z)("MuiAlertTitle",["root"]);var p=n(94655);let g=["className"],m=e=>{let{classes:t}=e;return(0,a.Z)({root:["root"]},d,t)},O=(0,l.ZP)(h.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}});var v=s.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiAlertTitle"}),{className:s}=n,a=(0,i.Z)(n,g),l=m(n);return(0,p.jsx)(O,(0,r.Z)({gutterBottom:!0,component:"div",ownerState:n,ref:t,className:(0,o.Z)(l.root,s)},a))})},99046:function(e,t,n){"use strict";n.d(t,{Z:function(){return el}});var r,i,s=n(32324),o=n(81500),a=n(35106),l=n(70316),c=n(65951),h=n(64577),u=n(40552),f=n(62098),d=e=>{let t=a.useRef({});return a.useEffect(()=>{t.current=e}),t.current},p=n(16987),g=n(25880);function m(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function O(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return -1}let v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:s,trim:o=!1}=e;return(e,a)=>{let{inputValue:l,getOptionLabel:c}=a,h=o?l.trim():l;n&&(h=h.toLowerCase()),t&&(h=m(h));let u=h?e.filter(e=>{let r=(s||c)(e);return n&&(r=r.toLowerCase()),t&&(r=m(r)),"start"===i?0===r.indexOf(h):r.indexOf(h)>-1}):e;return"number"==typeof r?u.slice(0,r):u}}(),x=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},k=[];var b=function(e){let{unstable_isActiveElementInListbox:t=x,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:h=!1,componentName:m="useAutocomplete",defaultValue:b=e.multiple?k:null,disableClearable:y=!1,disableCloseOnSelect:S=!1,disabled:w,disabledItemsFocusable:P=!1,disableListWrap:C=!1,filterOptions:T=v,filterSelectedOptions:A=!1,freeSolo:R=!1,getOptionDisabled:Z,getOptionKey:M,getOptionLabel:Q=e=>{var t;return null!=(t=e.label)?t:e},groupBy:I,handleHomeEndKeys:$=!e.freeSolo,id:q,includeInputInList:D=!1,inputValue:z,isOptionEqualToValue:N=(e,t)=>e===t,multiple:E=!1,onChange:L,onClose:j,onHighlightChange:V,onInputChange:W,onOpen:B,open:X,openOnFocus:J=!1,options:_,readOnly:F=!1,selectOnFocus:U=!e.freeSolo,value:G}=e,H=(0,u.Z)(q),Y=Q;Y=e=>{let t=Q(e);return"string"!=typeof t?String(t):t};let K=a.useRef(!1),ee=a.useRef(!0),et=a.useRef(null),en=a.useRef(null),[er,ei]=a.useState(null),[es,eo]=a.useState(-1),ea=i?0:-1,el=a.useRef(ea),[ec,eh]=(0,f.Z)({controlled:G,default:b,name:m}),[eu,ef]=(0,f.Z)({controlled:z,default:"",name:m,state:"inputValue"}),[ed,ep]=a.useState(!1),eg=a.useCallback((e,t)=>{let n;if((E?ec.length<t.length:null!==t)||c){if(E)n="";else if(null==t)n="";else{let e=Y(t);n="string"==typeof e?e:""}eu!==n&&(ef(n),W&&W(e,n,"reset"))}},[Y,eu,E,W,ef,c,ec]),[em,eO]=(0,f.Z)({controlled:X,default:!1,name:m,state:"open"}),[ev,ex]=a.useState(!0),ek=!E&&null!=ec&&eu===Y(ec),eb=em&&!F,ey=eb?T(_.filter(e=>!(A&&(E?ec:[ec]).some(t=>null!==t&&N(e,t)))),{inputValue:ek&&ev?"":eu,getOptionLabel:Y}):[],eS=d({filteredOptions:ey,value:ec,inputValue:eu});a.useEffect(()=>{let e=ec!==eS.value;(!ed||e)&&(!R||e)&&eg(null,ec)},[ec,eg,ed,eS.value,R]);let ew=em&&ey.length>0&&!F,eP=(0,p.Z)(e=>{-1===e?et.current.focus():er.querySelector('[data-tag-index="'.concat(e,'"]')).focus()});a.useEffect(()=>{E&&es>ec.length-1&&(eo(-1),eP(-1))},[ec,E,es,eP]);let eC=(0,p.Z)(e=>{let{event:t,index:r,reason:i="auto"}=e;if(el.current=r,-1===r?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant","".concat(H,"-option-").concat(r)),V&&V(t,-1===r?null:ey[r],i),!en.current)return;let s=en.current.querySelector('[role="option"].'.concat(n,"-focused"));s&&(s.classList.remove("".concat(n,"-focused")),s.classList.remove("".concat(n,"-focusVisible")));let o=en.current;if("listbox"!==en.current.getAttribute("role")&&(o=en.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===r){o.scrollTop=0;return}let a=en.current.querySelector('[data-option-index="'.concat(r,'"]'));if(a&&(a.classList.add("".concat(n,"-focused")),"keyboard"===i&&a.classList.add("".concat(n,"-focusVisible")),o.scrollHeight>o.clientHeight&&"mouse"!==i&&"touch"!==i)){let e=o.clientHeight+o.scrollTop,t=a.offsetTop+a.offsetHeight;t>e?o.scrollTop=t-o.clientHeight:a.offsetTop-a.offsetHeight*(I?1.3:0)<o.scrollTop&&(o.scrollTop=a.offsetTop-a.offsetHeight*(I?1.3:0))}}),eT=(0,p.Z)(e=>{let{event:t,diff:n,direction:i="next",reason:s="auto"}=e;if(!eb)return;let o=function(e,t){if(!en.current||e<0||e>=ey.length)return -1;let n=e;for(;;){let r=en.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!P&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if((n="next"===t?(n+1)%ey.length:(n-1+ey.length)%ey.length)===e)return -1}}((()=>{let e=ey.length-1;if("reset"===n)return ea;if("start"===n)return 0;if("end"===n)return e;let t=el.current+n;return t<0?-1===t&&D?-1:C&&-1!==el.current||Math.abs(n)>1?0:e:t>e?t===e+1&&D?-1:C||Math.abs(n)>1?e:0:t})(),i);if(eC({index:o,reason:s,event:t}),r&&"reset"!==n){if(-1===o)et.current.value=eu;else{let e=Y(ey[o]);et.current.value=e,0===e.toLowerCase().indexOf(eu.toLowerCase())&&eu.length>0&&et.current.setSelectionRange(eu.length,e.length)}}}),eA=()=>{var e;if(-1!==el.current&&eS.filteredOptions&&eS.filteredOptions.length!==ey.length&&eS.inputValue===eu&&(E?ec.length===eS.value.length&&eS.value.every((e,t)=>Y(ec[t])===Y(e)):((e=eS.value)?Y(e):"")===(ec?Y(ec):""))){let e=eS.filteredOptions[el.current];if(e)return O(ey,t=>Y(t)===Y(e))}return -1},eR=a.useCallback(()=>{if(!eb)return;let e=eA();if(-1!==e){el.current=e;return}let t=E?ec[0]:ec;if(0===ey.length||null==t){eT({diff:"reset"});return}if(en.current){if(null!=t){let e=ey[el.current];if(E&&e&&-1!==O(ec,t=>N(e,t)))return;let n=O(ey,e=>N(e,t));-1===n?eT({diff:"reset"}):eC({index:n});return}if(el.current>=ey.length-1){eC({index:ey.length-1});return}eC({index:el.current})}},[ey.length,!E&&ec,A,eT,eC,eb,eu,E]),eZ=(0,p.Z)(e=>{(0,g.Z)(en,e),e&&eR()});a.useEffect(()=>{eR()},[eR]);let eM=e=>{!em&&(eO(!0),ex(!0),B&&B(e))},eQ=(e,t)=>{em&&(eO(!1),j&&j(e,t))},eI=(e,t,n,r)=>{if(E){if(ec.length===t.length&&ec.every((e,n)=>e===t[n]))return}else if(ec===t)return;L&&L(e,t,n,r),eh(t)},e$=a.useRef(!1),eq=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,s=t;if(E){let e=O(s=Array.isArray(ec)?ec.slice():[],e=>N(t,e));-1===e?s.push(t):"freeSolo"!==r&&(s.splice(e,1),i="removeOption")}eg(e,s),eI(e,s,i,{option:t}),S||e&&(e.ctrlKey||e.metaKey)||eQ(e,i),(!0===l||"touch"===l&&e$.current||"mouse"===l&&!e$.current)&&et.current.blur()},eD=(e,t)=>{if(!E)return;""===eu&&eQ(e,"toggleInput");let n=es;-1===es?""===eu&&"previous"===t&&(n=ec.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===ec.length&&(n=-1)),eo(n=function(e,t){if(-1===e)return -1;let n=e;for(;;){if("next"===t&&n===ec.length||"previous"===t&&-1===n)return -1;let e=er.querySelector('[data-tag-index="'.concat(n,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t)),eP(n)},ez=e=>{K.current=!0,ef(""),W&&W(e,"","clear"),eI(e,E?[]:null,"clear")},eN=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==es&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(eo(-1),eP(-1)),229!==t.which))switch(t.key){case"Home":eb&&$&&(t.preventDefault(),eT({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":eb&&$&&(t.preventDefault(),eT({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eT({diff:-5,direction:"previous",reason:"keyboard",event:t}),eM(t);break;case"PageDown":t.preventDefault(),eT({diff:5,direction:"next",reason:"keyboard",event:t}),eM(t);break;case"ArrowDown":t.preventDefault(),eT({diff:1,direction:"next",reason:"keyboard",event:t}),eM(t);break;case"ArrowUp":t.preventDefault(),eT({diff:-1,direction:"previous",reason:"keyboard",event:t}),eM(t);break;case"ArrowLeft":eD(t,"previous");break;case"ArrowRight":eD(t,"next");break;case"Enter":if(-1!==el.current&&eb){let e=ey[el.current],n=!!Z&&Z(e);if(t.preventDefault(),n)return;eq(t,e,"selectOption"),r&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else R&&""!==eu&&!1===ek&&(E&&t.preventDefault(),eq(t,eu,"createOption","freeSolo"));break;case"Escape":eb?(t.preventDefault(),t.stopPropagation(),eQ(t,"escape")):h&&(""!==eu||E&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),ez(t));break;case"Backspace":if(E&&!F&&""===eu&&ec.length>0){let e=-1===es?ec.length-1:es,n=ec.slice();n.splice(e,1),eI(t,n,"removeOption",{option:ec[e]})}break;case"Delete":if(E&&!F&&""===eu&&ec.length>0&&-1!==es){let e=ec.slice();e.splice(es,1),eI(t,e,"removeOption",{option:ec[es]})}}},eE=e=>{ep(!0),J&&!K.current&&eM(e)},eL=e=>{if(t(en)){et.current.focus();return}ep(!1),ee.current=!0,K.current=!1,s&&-1!==el.current&&eb?eq(e,ey[el.current],"blur"):s&&R&&""!==eu?eq(e,eu,"blur","freeSolo"):c&&eg(e,ec),eQ(e,"blur")},ej=e=>{let t=e.target.value;eu!==t&&(ef(t),ex(!1),W&&W(e,t,"input")),""===t?y||E||eI(e,null,"clear"):eM(e)},eV=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&eC({event:e,index:t,reason:"mouse"})},eW=e=>{eC({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),e$.current=!0},eB=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eq(e,ey[t],"selectOption"),e$.current=!1},eX=e=>t=>{let n=ec.slice();n.splice(e,1),eI(t,n,"removeOption",{option:ec[e]})},eJ=e=>{em?eQ(e,"toggleInput"):eM(e)},e_=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==H&&e.preventDefault()},eF=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),U&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},eU=e=>{w||""!==eu&&em||eJ(e)},eG=R&&eu.length>0;eG=eG||(E?ec.length>0:null!==ec);let eH=ey;return I&&(eH=ey.reduce((e,t,n)=>{let r=I(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),w&&ed&&eL(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-owns":ew?"".concat(H,"-listbox"):null},e,{onKeyDown:eN(e),onMouseDown:e_,onClick:eF})},getInputLabelProps:()=>({id:"".concat(H,"-label"),htmlFor:H}),getInputProps:()=>({id:H,value:eu,onBlur:eL,onFocus:eE,onChange:ej,onMouseDown:eU,"aria-activedescendant":eb?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ew?"".concat(H,"-listbox"):void 0,"aria-expanded":ew,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ez}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eJ}),getTagProps:e=>{let{index:t}=e;return(0,o.Z)({key:t,"data-tag-index":t,tabIndex:-1},!F&&{onDelete:eX(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(H,"-listbox"),"aria-labelledby":"".concat(H,"-label"),ref:eZ,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{var t;let{index:n,option:r}=e,i=(E?ec:[ec]).some(e=>null!=e&&N(r,e)),s=!!Z&&Z(r);return{key:null!=(t=null==M?void 0:M(r))?t:Y(r),tabIndex:-1,role:"option",id:"".concat(H,"-option-").concat(n),onMouseMove:eV,onClick:eB,onTouchStart:eW,"data-option-index":n,"aria-disabled":s,"aria-selected":i}},id:H,inputValue:eu,value:ec,dirty:eG,expanded:eb&&er,popupOpen:eb,focused:ed||-1!==es,anchorEl:er,setAnchorEl:ei,focusedTag:es,groupedOptions:eH}},y=n(10612),S=n(34519),w=n(28057),P=n(38762),C=n(11379),T=n(9049);function A(e){return(0,T.ZP)("MuiListSubheader",e)}(0,C.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var R=n(94655);let Z=["className","color","component","disableGutters","disableSticky","inset"],M=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:s}=e,o={root:["root","default"!==n&&"color".concat((0,P.Z)(n)),!r&&"gutters",i&&"inset",!s&&"sticky"]};return(0,c.Z)(o,A,t)},Q=(0,S.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,P.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})}),I=a.forwardRef(function(e,t){let n=(0,w.i)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:h=!1,inset:u=!1}=n,f=(0,s.Z)(n,Z),d=(0,o.Z)({},n,{color:i,component:a,disableGutters:c,disableSticky:h,inset:u}),p=M(d);return(0,R.jsx)(Q,(0,o.Z)({as:a,className:(0,l.Z)(p.root,r),ref:t,ownerState:d},f))});I.muiSkipListHighlight=!0;var $=n(69899),q=n(79983),D=n(25333),z=n(5180),N=n(79254),E=n(47228),L=n(39448),j=n(99933),V=n(12284);function W(e){return(0,T.ZP)("MuiAutocomplete",e)}let B=(0,C.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var X=n(38481);let J=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_=["ref"],F=["key"],U=["key"],G=e=>{let{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:s,hasClearIcon:o,hasPopupIcon:a,inputFocused:l,popupOpen:h,size:u}=e,f={root:["root",r&&"expanded",i&&"focused",s&&"fullWidth",o&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,P.Z)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",h&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.Z)(f,W,t)},H=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:s,inputFocused:o,size:a}=n;return[{["& .".concat(B.tag)]:t.tag},{["& .".concat(B.tag)]:t["tagSize".concat((0,P.Z)(a))]},{["& .".concat(B.inputRoot)]:t.inputRoot},{["& .".concat(B.input)]:t.input},{["& .".concat(B.input)]:o&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,i&&t.hasClearIcon]}})({["&.".concat(B.focused," .").concat(B.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(B.clearIndicator)]:{visibility:"visible"}},["& .".concat(B.tag)]:{margin:3,maxWidth:"calc(100% - 6px)"},["& .".concat(B.inputRoot)]:{[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:30},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(B.input)]:{width:0,minWidth:30}},["& .".concat(z.Z.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(z.Z.root,".").concat(N.Z.sizeSmall)]:{["& .".concat(z.Z.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(E.Z.root)]:{padding:9,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(B.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(E.Z.root,".").concat(N.Z.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(B.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(L.Z.root)]:{paddingTop:19,paddingLeft:8,[".".concat(B.hasPopupIcon,"&, .").concat(B.hasClearIcon,"&")]:{paddingRight:39},[".".concat(B.hasPopupIcon,".").concat(B.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(L.Z.input)]:{padding:"7px 4px"},["& .".concat(B.endAdornment)]:{right:9}},["& .".concat(L.Z.root,".").concat(N.Z.sizeSmall)]:{paddingBottom:1,["& .".concat(L.Z.input)]:{padding:"2.5px 4px"}},["& .".concat(N.Z.hiddenLabel)]:{paddingTop:8},["& .".concat(L.Z.root,".").concat(N.Z.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(B.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(L.Z.root,".").concat(N.Z.hiddenLabel,".").concat(N.Z.sizeSmall)]:{["& .".concat(B.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(B.input)]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{["& .".concat(B.tag)]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{["& .".concat(B.input)]:{opacity:1}}},{props:{multiple:!0},style:{["& .".concat(B.inputRoot)]:{flexWrap:"wrap"}}}]}),Y=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),K=(0,S.ZP)(q.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ee=(0,S.ZP)(q.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,o.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),et=(0,S.ZP)(y.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{["& .".concat(B.option)]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}}),en=(0,S.ZP)($.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(e=>{let{theme:t}=e;return(0,o.Z)({},t.typography.body1,{overflow:"auto"})}),er=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),ei=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),es=(0,S.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(B.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(B.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(B.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,h.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(B.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,h.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(B.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,h.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}}),eo=(0,S.ZP)(I,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}}),ea=(0,S.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(B.option)]:{paddingLeft:24}});var el=a.forwardRef(function(e,t){var n,c,h,u;let f;let d=(0,w.i)({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:g=!1,autoSelect:m=!1,blurOnSelect:O=!1,ChipProps:v,className:x,clearIcon:k=r||(r=(0,R.jsx)(j.Z,{fontSize:"small"})),clearOnBlur:S=!d.freeSolo,clearOnEscape:P=!1,clearText:C="Clear",closeText:T="Close",componentsProps:A={},defaultValue:Z=d.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:Q=!1,disabled:I=!1,disabledItemsFocusable:q=!1,disableListWrap:z=!1,disablePortal:N=!1,filterSelectedOptions:E=!1,forcePopupIcon:L="auto",freeSolo:W=!1,fullWidth:B=!1,getLimitTagsText:el=e=>"+".concat(e),getOptionLabel:ec,groupBy:eh,handleHomeEndKeys:eu=!d.freeSolo,includeInputInList:ef=!1,limitTags:ed=-1,ListboxComponent:ep="ul",ListboxProps:eg,loading:em=!1,loadingText:eO="Loading…",multiple:ev=!1,noOptionsText:ex="No options",openOnFocus:ek=!1,openText:eb="Open",PaperComponent:ey=$.Z,PopperComponent:eS=y.Z,popupIcon:ew=i||(i=(0,R.jsx)(V.Z,{})),readOnly:eP=!1,renderGroup:eC,renderInput:eT,renderOption:eA,renderTags:eR,selectOnFocus:eZ=!d.freeSolo,size:eM="medium",slotProps:eQ={}}=d,eI=(0,s.Z)(d,J),{getRootProps:e$,getInputProps:eq,getInputLabelProps:eD,getPopupIndicatorProps:ez,getClearProps:eN,getTagProps:eE,getListboxProps:eL,getOptionProps:ej,value:eV,dirty:eW,expanded:eB,id:eX,popupOpen:eJ,focused:e_,focusedTag:eF,anchorEl:eU,setAnchorEl:eG,inputValue:eH,groupedOptions:eY}=b((0,o.Z)({},d,{componentName:"Autocomplete"})),eK=!M&&!I&&eW&&!eP,e1=(!W||!0===L)&&!1!==L,{onMouseDown:e0}=eq(),{ref:e2}=null!=eg?eg:{},e5=eL(),{ref:e4}=e5,e6=(0,s.Z)(e5,_),e9=(0,X.Z)(e4,e2),e3=ec||(e=>{var t;return null!=(t=e.label)?t:e}),e8=(0,o.Z)({},d,{disablePortal:N,expanded:eB,focused:e_,fullWidth:B,getOptionLabel:e3,hasClearIcon:eK,hasPopupIcon:e1,inputFocused:-1===eF,popupOpen:eJ,size:eM}),e7=G(e8);if(ev&&eV.length>0){let e=e=>(0,o.Z)({className:e7.tag,disabled:I},eE(e));f=eR?eR(eV,e,e8):eV.map((t,n)=>{let r=e({index:n}),{key:i}=r,a=(0,s.Z)(r,F);return(0,R.jsx)(D.Z,(0,o.Z)({label:e3(t),size:eM},a,v),i)})}if(ed>-1&&Array.isArray(f)){let e=f.length-ed;!e_&&e>0&&(f=f.splice(0,ed)).push((0,R.jsx)("span",{className:e7.tag,children:el(e)},f.length))}let te=eC||(e=>(0,R.jsxs)("li",{children:[(0,R.jsx)(eo,{className:e7.groupLabel,ownerState:e8,component:"div",children:e.group}),(0,R.jsx)(ea,{className:e7.groupUl,ownerState:e8,children:e.children})]},e.key)),tt=eA||((e,t)=>{let{key:n}=e,r=(0,s.Z)(e,U);return(0,R.jsx)("li",(0,o.Z)({},r,{children:e3(t)}),n)}),tn=(e,t)=>{let n=ej({option:e,index:t});return tt((0,o.Z)({},n,{className:e7.option}),e,{selected:n["aria-selected"],index:t,inputValue:eH},e8)},tr=null!=(n=eQ.clearIndicator)?n:A.clearIndicator,ti=null!=(c=eQ.paper)?c:A.paper,ts=null!=(h=eQ.popper)?h:A.popper,to=null!=(u=eQ.popupIndicator)?u:A.popupIndicator;return(0,R.jsxs)(a.Fragment,{children:[(0,R.jsx)(H,(0,o.Z)({ref:t,className:(0,l.Z)(e7.root,x),ownerState:e8},e$(eI),{children:eT({id:eX,disabled:I,fullWidth:!0,size:"small"===eM?"small":void 0,InputLabelProps:eD(),InputProps:(0,o.Z)({ref:eG,className:e7.inputRoot,startAdornment:f,onClick:e=>{e.target===e.currentTarget&&e0(e)}},(eK||e1)&&{endAdornment:(0,R.jsxs)(Y,{className:e7.endAdornment,ownerState:e8,children:[eK?(0,R.jsx)(K,(0,o.Z)({},eN(),{"aria-label":C,title:C,ownerState:e8},tr,{className:(0,l.Z)(e7.clearIndicator,null==tr?void 0:tr.className),children:k})):null,e1?(0,R.jsx)(ee,(0,o.Z)({},ez(),{disabled:I,"aria-label":eJ?T:eb,title:eJ?T:eb,ownerState:e8},to,{className:(0,l.Z)(e7.popupIndicator,null==to?void 0:to.className),children:ew})):null]})}),inputProps:(0,o.Z)({className:e7.input,disabled:I,readOnly:eP},eq())})})),eU?(0,R.jsx)(et,(0,o.Z)({as:eS,disablePortal:N,style:{width:eU?eU.clientWidth:null},ownerState:e8,role:"presentation",anchorEl:eU,open:eJ},ts,{className:(0,l.Z)(e7.popper,null==ts?void 0:ts.className),children:(0,R.jsxs)(en,(0,o.Z)({ownerState:e8,as:ey},ti,{className:(0,l.Z)(e7.paper,null==ti?void 0:ti.className),children:[em&&0===eY.length?(0,R.jsx)(er,{className:e7.loading,ownerState:e8,children:eO}):null,0!==eY.length||W||em?null:(0,R.jsx)(ei,{className:e7.noOptions,ownerState:e8,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ex}),eY.length>0?(0,R.jsx)(es,(0,o.Z)({as:ep,className:e7.listbox,ownerState:e8},e6,eg,{ref:e9,children:eY.map((e,t)=>eh?te({key:e.key,group:e.group,children:e.options.map((t,n)=>tn(t,e.index+n))}):tn(e,t))})):null]}))})):null]})})},4405:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(16295),i=n(32324),s=n(81500),o=n(35106),a=n(70316),l=n(65951),c=n(41060),h=n(64577),u=n(16501),f=n(38762),d=n(34519),p=n(28057),g=n(11379),m=n(9049);function O(e){return(0,m.ZP)("MuiLinearProgress",e)}(0,g.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v=n(94655);function x(){let e=(0,r._)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]);return x=function(){return e},e}function k(){let e=(0,r._)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]);return k=function(){return e},e}function b(){let e=(0,r._)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]);return b=function(){return e},e}function y(){let e=(0,r._)(["\n animation: "," 3s infinite linear;\n "]);return y=function(){return e},e}function S(){let e=(0,r._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]);return S=function(){return e},e}function w(){let e=(0,r._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]);return w=function(){return e},e}let P=["className","color","value","valueBuffer","variant"],C=e=>e,T,A,R,Z,M,Q,I=(0,c.F4)(T||(T=C(x()))),$=(0,c.F4)(A||(A=C(k()))),q=(0,c.F4)(R||(R=C(b()))),D=e=>{let{classes:t,variant:n,color:r}=e,i={root:["root","color".concat((0,f.Z)(r)),n],dashed:["dashed","dashedColor".concat((0,f.Z)(r))],bar1:["bar","barColor".concat((0,f.Z)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,f.Z)(r)),"buffer"===n&&"color".concat((0,f.Z)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,l.Z)(i,O,t)},z=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,h.$n)(e.palette[t].main,.62):(0,h._j)(e.palette[t].main,.5),N=(0,d.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["color".concat((0,f.Z)(n.color))],t[n.variant]]}})(e=>{let{ownerState:t,theme:n}=e;return(0,s.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:z(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})}),E=(0,d.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t["dashedColor".concat((0,f.Z)(n.color))]]}})(e=>{let{ownerState:t,theme:n}=e,r=z(n,t.color);return(0,s.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,c.iv)(Z||(Z=C(y(),0)),q)),L=(0,d.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t["barColor".concat((0,f.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(e=>{let{ownerState:t,theme:n}=e;return(0,s.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,c.iv)(M||(M=C(S(),0)),I)}),j=(0,d.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t["barColor".concat((0,f.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(e=>{let{ownerState:t,theme:n}=e;return(0,s.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:z(n,t.color),transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,c.iv)(Q||(Q=C(w(),0)),$)});var V=o.forwardRef(function(e,t){let n=(0,p.i)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:l,valueBuffer:c,variant:h="indeterminate"}=n,f=(0,i.Z)(n,P),d=(0,s.Z)({},n,{color:o,variant:h}),g=D(d),m=(0,u.V)(),O={},x={bar1:{},bar2:{}};if(("determinate"===h||"buffer"===h)&&void 0!==l){O["aria-valuenow"]=Math.round(l),O["aria-valuemin"]=0,O["aria-valuemax"]=100;let e=l-100;m&&(e=-e),x.bar1.transform="translateX(".concat(e,"%)")}if("buffer"===h&&void 0!==c){let e=(c||0)-100;m&&(e=-e),x.bar2.transform="translateX(".concat(e,"%)")}return(0,v.jsxs)(N,(0,s.Z)({className:(0,a.Z)(g.root,r),ownerState:d,role:"progressbar"},O,{ref:t},f,{children:["buffer"===h?(0,v.jsx)(E,{className:g.dashed,ownerState:d}):null,(0,v.jsx)(L,{className:g.bar1,ownerState:d,style:x.bar1}),"determinate"===h?null:(0,v.jsx)(j,{className:g.bar2,ownerState:d,style:x.bar2})]}))})},69783:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(32324),i=n(81500),s=n(35106),o=n(70316),a=n(65951),l=n(75084),c=n(34519),h=n(28057),u=n(11379),f=n(9049);function d(e){return(0,f.ZP)("MuiListItemAvatar",e)}(0,u.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var p=n(94655);let g=["className"],m=e=>{let{alignItems:t,classes:n}=e;return(0,a.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},d,n)},O=(0,c.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(e=>{let{ownerState:t}=e;return(0,i.Z)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})});var v=s.forwardRef(function(e,t){let n=(0,h.i)({props:e,name:"MuiListItemAvatar"}),{className:a}=n,c=(0,r.Z)(n,g),u=s.useContext(l.Z),f=(0,i.Z)({},n,{alignItems:u.alignItems}),d=m(f);return(0,p.jsx)(O,(0,i.Z)({className:(0,o.Z)(d.root,a),ownerState:f,ref:t},c))})},39181:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(32324),i=n(81500),s=n(35106),o=n(70316),a=n(65951),l=n(64577),c=n(1592),h=n(28057),u=n(61626),f=n(94655),d=(0,u.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,u.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),g=n(34519),m=n(15651);let O=(0,g.ZP)("span",{name:"MuiRadioButtonIcon",shouldForwardProp:m.Z})({position:"relative",display:"flex"}),v=(0,g.ZP)(d,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),x=(0,g.ZP)(p,{name:"MuiRadioButtonIcon"})(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})});var k=function(e){let{checked:t=!1,classes:n={},fontSize:r}=e,s=(0,i.Z)({},e,{checked:t});return(0,f.jsxs)(O,{className:n.root,ownerState:s,children:[(0,f.jsx)(v,{fontSize:r,className:n.background,ownerState:s}),(0,f.jsx)(x,{fontSize:r,className:n.dot,ownerState:s})]})},b=n(38762),y=n(27350),S=n(36189),w=n(11379),P=n(9049);function C(e){return(0,P.ZP)("MuiRadio",e)}let T=(0,w.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),A=["checked","checkedIcon","color","icon","name","onChange","size","className"],R=e=>{let{classes:t,color:n,size:r}=e,s={root:["root","color".concat((0,b.Z)(n)),"medium"!==r&&"size".concat((0,b.Z)(r))]};return(0,i.Z)({},t,(0,a.Z)(s,C,t))},Z=(0,g.ZP)(c.Z,{shouldForwardProp:e=>(0,m.Z)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"medium"!==n.size&&t["size".concat((0,b.Z)(n.size))],t["color".concat((0,b.Z)(n.color))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(T.checked)]:{color:(t.vars||t).palette[n.color].main}},{["&.".concat(T.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),M=(0,f.jsx)(k,{checked:!0}),Q=(0,f.jsx)(k,{});var I=s.forwardRef(function(e,t){var n,a,l,c;let u=(0,h.i)({props:e,name:"MuiRadio"}),{checked:d,checkedIcon:p=M,color:g="primary",icon:m=Q,name:O,onChange:v,size:x="medium",className:k}=u,b=(0,r.Z)(u,A),w=(0,i.Z)({},u,{color:g,size:x}),P=R(w),C=s.useContext(S.Z),T=d,I=(0,y.Z)(v,C&&C.onChange),$=O;return C&&(void 0===T&&(l=C.value,T="object"==typeof(c=u.value)&&null!==c?l===c:String(l)===String(c)),void 0===$&&($=C.name)),(0,f.jsx)(Z,(0,i.Z)({type:"radio",icon:s.cloneElement(m,{fontSize:null!=(n=Q.props.fontSize)?n:x}),checkedIcon:s.cloneElement(p,{fontSize:null!=(a=M.props.fontSize)?a:x}),ownerState:w,classes:P,name:$,checked:T,onChange:I,ref:t,className:(0,o.Z)(P.root,k)},b))})},34080:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(81500),i=n(32324),s=n(35106),o=n(70316),a=n(65951),l=n(34519),c=n(28057),h=n(11379),u=n(9049);function f(e){return(0,u.ZP)("MuiFormGroup",e)}(0,h.Z)("MuiFormGroup",["root","row","error"]);var d=n(85016),p=n(95953),g=n(94655);let m=["className","row"],O=e=>{let{classes:t,row:n,error:r}=e;return(0,a.Z)({root:["root",n&&"row",r&&"error"]},f,t)},v=(0,l.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})(e=>{let{ownerState:t}=e;return(0,r.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})}),x=s.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiFormGroup"}),{className:s,row:a=!1}=n,l=(0,i.Z)(n,m),h=(0,d.Z)(),u=(0,p.Z)({props:n,muiFormControl:h,states:["error"]}),f=(0,r.Z)({},n,{row:a,error:u.error}),x=O(f);return(0,g.jsx)(v,(0,r.Z)({className:(0,o.Z)(x.root,s),ownerState:f,ref:t},l))});function k(e){return(0,u.ZP)("MuiRadioGroup",e)}(0,h.Z)("MuiRadioGroup",["root","row","error"]);var b=n(38481),y=n(18280),S=n(36189),w=n(88207);let P=["actions","children","className","defaultValue","name","onChange","value"],C=e=>{let{classes:t,row:n,error:r}=e;return(0,a.Z)({root:["root",n&&"row",r&&"error"]},k,t)};var T=s.forwardRef(function(e,t){let{actions:n,children:a,className:l,defaultValue:c,name:h,onChange:u,value:f}=e,d=(0,i.Z)(e,P),p=s.useRef(null),m=C(e),[O,v]=(0,y.Z)({controlled:f,default:c,name:"RadioGroup"});s.useImperativeHandle(n,()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let k=(0,b.Z)(t,p),T=(0,w.Z)(h),A=s.useMemo(()=>({name:T,onChange(e){v(e.target.value),u&&u(e,e.target.value)},value:O}),[T,u,v,O]);return(0,g.jsx)(S.Z.Provider,{value:A,children:(0,g.jsx)(x,(0,r.Z)({role:"radiogroup",ref:k,className:(0,o.Z)(m.root,l)},d,{children:a}))})})},36189:function(e,t,n){"use strict";let r=n(35106).createContext(void 0);t.Z=r},37530:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(32324),i=n(81500),s=n(35106),o=n(65951),a=n(95582),l=n(67485),c=n(16987),h=n(95007),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,u=(0,l.Z)();s.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[o,r]);let f=(0,c.Z)((e,t)=>{null==r||r(e,t)}),d=(0,c.Z)(e=>{r&&null!=e&&u.start(e,()=>{f(null,"timeout")})});s.useEffect(()=>(o&&d(t),u.clear),[o,t,d,u]);let p=u.clear,g=s.useCallback(()=>{null!=t&&d(null!=a?a:.5*t)},[t,a,d]),m=e=>t=>{let n=e.onBlur;null==n||n(t),g()},O=e=>t=>{let n=e.onFocus;null==n||n(t),p()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),p()},x=e=>t=>{let n=e.onMouseLeave;null==n||n(t),g()};return s.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,o,g,p]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.Z)({},(0,h.Z)(e),(0,h.Z)(t));return(0,i.Z)({role:"presentation"},t,n,{onBlur:m(n),onFocus:O(n),onMouseEnter:v(n),onMouseLeave:x(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}},f=n(22429),d=n(98072),p=n(11844),g=n(94655);function m(e){return e.substring(2).toLowerCase()}function O(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=s.useRef(!1),l=s.useRef(null),h=s.useRef(!1),u=s.useRef(!1);s.useEffect(()=>(setTimeout(()=>{h.current=!0},0),()=>{h.current=!1}),[]);let O=(0,f.Z)((0,p.Z)(t),l),v=(0,c.Z)(e=>{let t=u.current;u.current=!1;let r=(0,d.Z)(l.current);if(h.current&&l.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(a.current){a.current=!1;return}(e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target))||!n&&t||i(e)}}),x=e=>n=>{u.current=!0;let r=t.props[e];r&&r(n)},k={ref:O};return!1!==o&&(k[o]=x(o)),s.useEffect(()=>{if(!1!==o){let e=m(o),t=(0,d.Z)(l.current),n=()=>{a.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}},[v,o]),!1!==r&&(k[r]=x(r)),s.useEffect(()=>{if(!1!==r){let e=m(r),t=(0,d.Z)(l.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}},[v,r]),(0,g.jsx)(s.Fragment,{children:s.cloneElement(t,k)})}var v=n(34519),x=n(83855),k=n(28057),b=n(38762),y=n(37698),S=n(70316),w=n(64577),P=n(69899),C=n(11379),T=n(9049);function A(e){return(0,T.ZP)("MuiSnackbarContent",e)}(0,C.Z)("MuiSnackbarContent",["root","message","action"]);let R=["action","className","message","role"],Z=e=>{let{classes:t}=e;return(0,o.Z)({root:["root"],action:["action"],message:["message"]},A,t)},M=(0,v.ZP)(P.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,n="light"===t.palette.mode?.8:.98,r=(0,w._4)(t.palette.background.default,n);return(0,i.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),Q=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),I=(0,v.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),$=s.forwardRef(function(e,t){let n=(0,k.i)({props:e,name:"MuiSnackbarContent"}),{action:s,className:o,message:a,role:l="alert"}=n,c=(0,r.Z)(n,R),h=Z(n);return(0,g.jsxs)(M,(0,i.Z)({role:l,square:!0,elevation:6,className:(0,S.Z)(h.root,o),ownerState:n,ref:t},c,{children:[(0,g.jsx)(Q,{className:h.message,ownerState:n,children:a}),s?(0,g.jsx)(I,{className:h.action,ownerState:n,children:s}):null]}))});function q(e){return(0,T.ZP)("MuiSnackbar",e)}(0,C.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let D=["onEnter","onExited"],z=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],N=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,b.Z)(n.vertical)).concat((0,b.Z)(n.horizontal))]};return(0,o.Z)(r,q,t)},E=(0,v.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,b.Z)(n.anchorOrigin.vertical)).concat((0,b.Z)(n.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})});var L=s.forwardRef(function(e,t){let n=(0,k.i)({props:e,name:"MuiSnackbar"}),o=(0,x.Z)(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:h,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:p,className:m,ClickAwayListenerProps:v,ContentProps:b,disableWindowBlurListener:S=!1,message:w,open:P,TransitionComponent:C=y.Z,transitionDuration:T=l,TransitionProps:{onEnter:A,onExited:R}={}}=n,Z=(0,r.Z)(n.TransitionProps,D),M=(0,r.Z)(n,z),Q=(0,i.Z)({},n,{anchorOrigin:{vertical:h,horizontal:f},autoHideDuration:d,disableWindowBlurListener:S,TransitionComponent:C,transitionDuration:T}),I=N(Q),{getRootProps:q,onClickAway:L}=u((0,i.Z)({},Q)),[j,V]=s.useState(!0),W=(0,a.Z)({elementType:E,getSlotProps:q,externalForwardedProps:M,ownerState:Q,additionalProps:{ref:t},className:[I.root,m]});return!P&&j?null:(0,g.jsx)(O,(0,i.Z)({onClickAway:L},v,{children:(0,g.jsx)(E,(0,i.Z)({},W,{children:(0,g.jsx)(C,(0,i.Z)({appear:!0,in:P,timeout:T,direction:"top"===h?"down":"up",onEnter:(e,t)=>{V(!1),A&&A(e,t)},onExited:e=>{V(!0),R&&R(e)}},Z,{children:p||(0,g.jsx)($,(0,i.Z)({message:w,action:c},b))}))}))}))})},6858:function(e,t,n){"use strict";n(35106);var r=n(61626),i=n(94655);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},92302:function(e,t,n){"use strict";n(35106);var r=n(61626),i=n(94655);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},35016:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(41074)},41074:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],c=!1,h=-1;function u(){c&&r&&(c=!1,r.length?l=r.concat(l):h=-1,l.length&&f())}function f(){if(!c){var e=a(u);c=!0;for(var t=l.length;t;){for(r=l,l=[];++h<t;)r&&r[h].run();h=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}},o=!0;try{t[e](s,s.exports,r),o=!1}finally{o&&delete n[e]}return s.exports}r.ab="//";var i=r(229);e.exports=i}()},45328:function(e,t,n){"use strict";n.d(t,{f$:function(){return Q},m8:function(){return v},oc:function(){return eM},wQ:function(){return eZ}});var r=n(66349),i=n(35308),s=n(41648),o=n(81557);function a(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}let l=a(function(e,t,n=t.selection.ranges){let r=[],i=-1;e:for(let{from:e,to:s}of n){let n=r.length,o=1e9,a;for(let n=e;n<=s;){let l=t.doc.lineAt(n);if(void 0==a&&!(a=u(t,l.from).line))continue e;if(l.from>i&&(e==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<o&&(o=e),r.push({line:l,comment:n,token:a,indent:e,empty:t,single:!1})}n=l.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:s,single:o}of r)(o||!s)&&e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,s=r+i.length;" "==t.text[s-t.from]&&s++,e.push({from:r,to:s})}return{changes:e}}return null},0),c=a(f,0),h=a((e,t)=>f(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let s=t.length-1;s>=0&&t[s].to>r.from?t[s].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t)),0);function u(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function f(e,t,n=t.selection.ranges){let r=n.map(e=>u(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>(function(e,{open:t,close:n},r,i){let s,o,a=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),c=/\s*$/.exec(a)[0].length,h=/^\s*/.exec(l)[0].length,u=a.length-c;if(a.slice(u-t.length,u)==t&&l.slice(h,h+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+h,margin:h&&1}};i-r<=100?s=o=e.sliceDoc(r,i):(s=e.sliceDoc(r,r+50),o=e.sliceDoc(i-50,i));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-n.length;return s.slice(f,f+t.length)==t&&o.slice(p,p+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(s.charAt(f+t.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null})(t,r[n],e.from,e.to));if(2!=e&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:s,close:o}=n;e.push({from:s.pos-i.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}let d=r.q6.define(),p=r.q6.define(),g=r.r$.define(),m=r.r$.define({combine:e=>(0,r.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),O=r.QQ.define({create:()=>M.empty,update(e,t){let n=t.state.facet(m),i=t.annotation(d);if(i){let r=w.fromTransaction(t,i.selection),s=i.side,o=0==s?e.undone:e.done;return o=r?P(o,o.length,n.minDepth,r):A(o,t.startState.selection),new M(0==s?i.rest:o,0==s?o:i.rest)}let s=t.annotation(p);if(("full"==s||"before"==s)&&(e=e.isolate()),!1===t.annotation(r.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=w.fromTransaction(t),a=t.annotation(r.YW.time),l=t.annotation(r.YW.userEvent);return o?e=e.addChanges(o,a,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),("full"==s||"after"==s)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new M(e.done.map(w.fromJSON),e.undone.map(w.fromJSON))});function v(e={}){return[O,m.of(e),i.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?k:"historyRedo"==e.inputType?b:null;return!!n&&(e.preventDefault(),n(t))}})]}function x(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(O,!1);if(!i)return!1;let s=i.pop(e,n,t);return!!s&&(r(s),!0)}}let k=x(0,!1),b=x(1,!1),y=x(0,!0),S=x(1,!0);class w{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new w(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new w(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}static fromTransaction(e,t){let n=T;for(let t of e.startState.facet(g)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new w(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,T)}static selection(e){return new w(void 0,T,void 0,void 0,e)}}function P(e,t,n,r){let i=e.slice(t+1>n+20?t-n-1:0,t);return i.push(r),i}function C(e,t){return e.length?t.length?e.concat(t):e:t}let T=[];function A(e,t){if(!e.length)return[w.selection([t])];{let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),P(e,e.length-1,1e9,n.setSelAfter(r)))}}function R(e,t){if(!e.length)return e;let n=e.length,i=T;for(;n;){let s=function(e,t,n){let i=C(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):T,n);if(!e.changes)return w.selection(i);let s=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new w(s,r.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),i)}(e[n-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let t=e.slice(0,n);return t[n-1]=s,t}t=s.mapped,n--,i=s.selectionsAfter}return i.length?[w.selection(i)]:T}let Z=/^(input\.type|delete)($|\.)/;class M{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new M(this.done,this.undone):this}addChanges(e,t,n,i,s){var o,a;let l,c,h=this.done,u=h[h.length-1];return new M(h=u&&u.changes&&!u.changes.empty&&e.changes&&(!n||Z.test(n))&&(!u.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,(o=u.changes,a=e.changes,l=[],c=!1,o.iterChangedRanges((e,t)=>l.push(e,t)),a.iterChangedRanges((e,t,n,r)=>{for(let e=0;e<l.length;){let t=l[e++],i=l[e++];r>=t&&n<=i&&(c=!0)}}),c))||"input.type.compose"==n)?P(h,h.length-1,i.minDepth,new w(e.changes.compose(u.changes),C(r.Py.mapEffects(e.effects,u.changes),u.effects),u.mapped,u.startSelection,T)):P(h,h.length,i.minDepth,e),T,t,n)}addSelection(e,t,n,r){var i;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:T;return s.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=s[s.length-1]).ranges.length==e.ranges.length&&0===i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length?this:new M(A(this.done,e),this.undone,t,n)}addMapping(e){return new M(R(this.done,e),R(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],s=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length){let n,o;return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:d.of({side:e,rest:(n=r[r.length-1],(o=r.slice())[r.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),o),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}if(!i.changes)return null;{let n=1==r.length?T:r.slice(0,r.length-1);return i.mapped&&(n=R(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:d.of({side:e,rest:n,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}M.empty=new M(T,T);let Q=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:b,preventDefault:!0},{linux:"Ctrl-Shift-z",run:b,preventDefault:!0},{key:"Mod-u",run:y,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:S,preventDefault:!0}];function I(e,t){return r.jT.create(e.ranges.map(t),e.mainIndex)}function $(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function q({state:e,dispatch:t},n){let r=I(e.selection,n);return!r.eq(e.selection,!0)&&(t($(e,r)),!0)}function D(e,t){return r.jT.cursor(t?e.to:e.from)}function z(e,t){return q(e,n=>n.empty?e.moveByChar(n,t):D(n,t))}function N(e){return e.textDirectionAt(e.state.selection.main.head)==i.Nm.LTR}let E=e=>z(e,!N(e)),L=e=>z(e,N(e));function j(e,t){return q(e,n=>n.empty?e.moveByGroup(n,t):D(n,t))}function V(e,t,n){let i,a,l=(0,s.qz)(e).resolveInner(t.head),c=n?o.md.closedBy:o.md.openedBy;for(let r=t.head;;){let t=n?l.childAfter(r):l.childBefore(r);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,c)?r=n?t.to:t.from:l=t}return a=l.type.prop(c)&&(i=n?(0,s.Um)(e,l.from,1):(0,s.Um)(e,l.to,-1))&&i.matched?n?i.end.to:i.end.from:n?l.to:l.from,r.jT.cursor(a,n?-1:1)}function W(e,t){return q(e,n=>{if(!n.empty)return D(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;let B=e=>W(e,!1),X=e=>W(e,!0);function J(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,s;if(t){for(let t of e.state.facet(i.tk.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}s=e.scrollDOM.clientHeight-n-r}else s=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,s-5)}}function _(e,t){let n,r=J(e),{state:s}=e,o=I(s.selection,n=>n.empty?e.moveVertically(n,t,r.height):D(n,t));if(o.eq(s.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(s.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,c=a.bottom-r.marginBottom;t&&t.top>l&&t.bottom<c&&(n=i.tk.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch($(s,o),{effects:n}),!0}let F=e=>_(e,!1),U=e=>_(e,!0);function G(e,t,n){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,n);if(s.head==t.head&&s.head!=(n?i.to:i.from)&&(s=e.moveToLineBoundary(t,n,!1)),!n&&s.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(s=r.jT.cursor(i.from+n))}return s}function H(e,t){let n=I(e.state.selection,e=>{let n=t(e);return r.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch($(e.state,n)),!0)}function Y(e,t){return H(e,n=>e.moveByChar(n,t))}let K=e=>Y(e,!N(e)),ee=e=>Y(e,N(e));function et(e,t){return H(e,n=>e.moveByGroup(n,t))}function en(e,t){return H(e,n=>e.moveVertically(n,t))}let er=e=>en(e,!1),ei=e=>en(e,!0);function es(e,t){return H(e,n=>e.moveVertically(n,t,J(e).height))}let eo=e=>es(e,!1),ea=e=>es(e,!0),el=({state:e,dispatch:t})=>(t($(e,{anchor:0})),!0),ec=({state:e,dispatch:t})=>(t($(e,{anchor:e.doc.length})),!0),eh=({state:e,dispatch:t})=>(t($(e,{anchor:e.selection.main.anchor,head:0})),!0),eu=({state:e,dispatch:t})=>(t($(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ef(e,t){let{state:n}=e,i=n.selection,s=n.selection.ranges.slice();for(let r of n.selection.ranges){let i=n.doc.lineAt(r.head);if(t?i.to<e.state.doc.length:i.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<i.from||r.head>i.to){s.some(e=>e.head==r.head)||s.push(r);break}if(r.head==n.head)break;n=r}}return s.length!=i.ranges.length&&(e.dispatch($(n,r.jT.create(s,s.length-1))),!0)}function ed(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:s}=e,o=s.changeByRange(i=>{let{from:s,to:o}=i;if(s==o){let r=t(i);r<s?(n="delete.backward",r=ep(e,r,!1)):r>s&&(n="delete.forward",r=ep(e,r,!0)),s=Math.min(s,r),o=Math.max(o,r)}else s=ep(e,s,!1),o=ep(e,o,!0);return s==o?{range:i}:{changes:{from:s,to:o},range:r.jT.cursor(s,s<i.head?-1:1)}});return!o.changes.empty&&(e.dispatch(s.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?i.tk.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function ep(e,t,n){if(e instanceof i.tk)for(let r of e.state.facet(i.tk.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}let eg=(e,t,n)=>ed(e,i=>{let o=i.from,{state:a}=e,l=a.doc.lineAt(o),c,h;if(n&&!t&&o>l.from&&o<l.from+200&&!/[^ \t]/.test(c=l.text.slice(0,o-l.from))){if(" "==c[c.length-1])return o-1;let e=(0,r.IS)(c,a.tabSize)%(0,s.y1)(a)||(0,s.y1)(a);for(let t=0;t<e&&" "==c[c.length-1-t];t++)o--;h=o}else(h=(0,r.cp)(l.text,o-l.from,t,t)+l.from)==o&&l.number!=(t?a.doc.lines:1)?h+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(h-l.from,o-l.from))&&(h=(0,r.cp)(l.text,h-l.from,!1,!1)+l.from);return h}),em=e=>eg(e,!1,!0),eO=e=>eg(e,!0,!1),ev=(e,t)=>ed(e,n=>{let i=n.head,{state:s}=e,o=s.doc.lineAt(i),a=s.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==n.head&&o.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,r.cp)(o.text,i-o.from,t)+o.from,c=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),h=a(c);if(null!=e&&h!=e)break;(" "!=c||i!=n.head)&&(e=h),i=l}return i}),ex=e=>ev(e,!1);function ek(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),s=e.doc.lineAt(r.to);if(r.empty||r.to!=s.from||(s=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(r)}else t.push({from:i.from,to:s.to,ranges:[r]});n=s.number+1}return t}function eb(e,t,n){if(e.readOnly)return!1;let i=[],s=[];for(let t of ek(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n)for(let n of(i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak}),t.ranges))s.push(r.jT.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)));else for(let n of(i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text}),t.ranges))s.push(r.jT.range(n.anchor-a,n.head-a))}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:r.jT.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function ey(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of ek(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}let eS=eP(!1),ew=eP(!0);function eP(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:i,to:a}=n,l=t.doc.lineAt(i),c=!e&&i==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,s.qz)(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(o.md.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,i);e&&(i=a=(a<=l.to?l:t.doc.lineAt(a)).to);let h=new s.Gn(t,{simulateBreak:i,simulateDoubleBreak:!!c}),u=(0,s.K0)(h,i);for(null==u&&(u=(0,r.IS)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));a<l.to&&/\s/.test(l.text[a-l.from]);)a++;c?{from:i,to:a}=c:i>l.from&&i<l.from+100&&!/\S/.test(l.text.slice(0,i))&&(i=l.from);let f=["",(0,s.SS)(t,u)];return c&&f.push((0,s.SS)(t,h.lineIndent(l.from,-1))),{changes:{from:i,to:a,insert:r.xv.of(f)},range:r.jT.cursor(i+1+f[1].length)}});return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function eC(e,t){let n=-1;return e.changeByRange(i=>{let s=[];for(let r=i.from;r<=i.to;){let o=e.doc.lineAt(r);o.number>n&&(i.empty||i.to>o.from)&&(t(o,s,i),n=o.number),r=o.to+1}let o=e.changes(s);return{changes:s,range:r.jT.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}let eT=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eC(e,(t,n)=>{n.push({from:t.from,insert:e.facet(s.c)})}),{userEvent:"input.indent"})),!0),eA=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eC(e,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let o=(0,r.IS)(i,e.tabSize),a=0,l=(0,s.SS)(e,Math.max(0,o-(0,s.y1)(e)));for(;a<i.length&&a<l.length&&i.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+i.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"})),!0),eR=[{key:"Ctrl-b",run:E,shift:K,preventDefault:!0},{key:"Ctrl-f",run:L,shift:ee},{key:"Ctrl-p",run:B,shift:er},{key:"Ctrl-n",run:X,shift:ei},{key:"Ctrl-a",run:e=>q(e,t=>r.jT.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>H(e,t=>r.jT.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>q(e,t=>r.jT.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>H(e,t=>r.jT.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:eO},{key:"Ctrl-h",run:em},{key:"Ctrl-k",run:e=>ed(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:ex},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:r.xv.of(["",""])},range:r.jT.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),s=n==i.from?n-1:(0,r.cp)(i.text,n-i.from,!1)+i.from,o=n==i.to?n+1:(0,r.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:s,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(s,n))},range:r.jT.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:U}],eZ=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>q(e,t=>V(e.state,t,!N(e))),shift:e=>H(e,t=>V(e.state,t,!N(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>q(e,t=>V(e.state,t,N(e))),shift:e=>H(e,t=>V(e.state,t,N(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>eb(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>ey(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>eb(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>ey(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>ef(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>ef(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=r.jT.create([n.main]):n.main.empty||(i=r.jT.create([r.jT.cursor(n.main.head)])),!!i&&(t($(e,i)),!0)}},{key:"Mod-Enter",run:ew},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=ek(e).map(({from:t,to:n})=>r.jT.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:r.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=I(e.selection,t=>{let n=(0,s.qz)(e),i=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=i.node.from&&e.node.to<=i.node.to&&(i=e)}for(let e=i;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.jT.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t($(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:eA},{key:"Mod-]",run:eT},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new s.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=eC(e,(t,i,o)=>{let a=(0,s.K0)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],c=(0,s.SS)(e,a);(l!=c||o.from<t.from+l.length)&&(n[t.from]=a,i.push({from:t.from,to:t.from+l.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(ek(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=I(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>{let n,i;return n=!1,i=I(e.selection,t=>{let i=(0,s.Um)(e,t.head,-1)||(0,s.Um)(e,t.head,1)||t.head>0&&(0,s.Um)(e,t.head-1,1)||t.head<e.doc.length&&(0,s.Um)(e,t.head+1,-1);if(!i||!i.end)return t;n=!0;let o=i.start.from==t.head?i.end.to:i.end.from;return r.jT.cursor(o)}),!!n&&(t($(e,i)),!0)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=u(e.state,n.from);return r.line?l(e):!!r.block&&h(e)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:E,shift:K,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>j(e,!N(e)),shift:e=>et(e,!N(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>q(e,t=>G(e,t,!N(e))),shift:e=>H(e,t=>G(e,t,!N(e))),preventDefault:!0},{key:"ArrowRight",run:L,shift:ee,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>j(e,N(e)),shift:e=>et(e,N(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>q(e,t=>G(e,t,N(e))),shift:e=>H(e,t=>G(e,t,N(e))),preventDefault:!0},{key:"ArrowUp",run:B,shift:er,preventDefault:!0},{mac:"Cmd-ArrowUp",run:el,shift:eh},{mac:"Ctrl-ArrowUp",run:F,shift:eo},{key:"ArrowDown",run:X,shift:ei,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ec,shift:eu},{mac:"Ctrl-ArrowDown",run:U,shift:ea},{key:"PageUp",run:F,shift:eo},{key:"PageDown",run:U,shift:ea},{key:"Home",run:e=>q(e,t=>G(e,t,!1)),shift:e=>H(e,t=>G(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:el,shift:eh},{key:"End",run:e=>q(e,t=>G(e,t,!0)),shift:e=>H(e,t=>G(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:ec,shift:eu},{key:"Enter",run:eS,shift:eS},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:em,shift:em,preventDefault:!0},{key:"Delete",run:eO,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ex,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>ev(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat(eR.map(e=>({mac:e.key,run:e.run,shift:e.shift})))),eM={key:"Tab",run:eT,shift:eA}},75134:function(e,t,n){"use strict";n.d(t,{AV:function(){return c}});var r=n(88316),i=n(87361);let s=(0,i.Gv)({String:i.pJ.string,Number:i.pJ.number,"True False":i.pJ.bool,PropertyName:i.pJ.propertyName,Null:i.pJ.null,", :":i.pJ.separator,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),o=r.WQ.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[s],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var a=n(41648);let l=a.qp.define({name:"json",parser:o.configure({props:[a.uj.add({Object:(0,a.tC)({except:/^\s*\}/}),Array:(0,a.tC)({except:/^\s*\]/})}),a.x0.add({"Object Array":a.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new a.ri(l)}},36074:function(e,t,n){"use strict";n.d(t,{Ls:function(){return R}});var r=n(88316),i=n(87361);let s=null,o=null,a=0;function l(e,t){var n;let r=e.pos+t;if(o==e&&a==r)return s;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;let i="";for(;;){let n=e.peek(t);if(!(45==n||46==n||58==n||n>=65&&n<=90||95==n||n>=97&&n<=122||n>=161))break;i+=String.fromCharCode(n),t++}return o=e,a=r,s=i||null}function c(e,t){this.name=e,this.parent=t}let h=new r.IK({start:null,shift:(e,t,n,r)=>1==t?new c(l(r,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,n,r){let i=t.type.id;return 1==i||13==i?new c(l(r,1)||"",e):e},strict:!1}),u=new r.Jq((e,t)=>{if(60==e.next){if(e.advance(),47==e.next){e.advance();let n=l(e,0);if(!n)return e.acceptToken(5);if(t.context&&n==t.context.name)return e.acceptToken(2);for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}},{contextual:!0});function f(e,t){return new r.Jq(n=>{let r=0,i=t.charCodeAt(0);t:for(;!(n.next<0);n.advance(),r++)if(n.next==i){for(let e=1;e<t.length;e++)if(n.peek(e)!=t.charCodeAt(e))continue t;break}r&&n.acceptToken(e)})}let d=f(36,"-->"),p=f(37,"?>"),g=f(38,"]]>"),m=(0,i.Gv)({Text:i.pJ.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":i.pJ.angleBracket,TagName:i.pJ.tagName,"MismatchedCloseTag/TagName":[i.pJ.tagName,i.pJ.invalid],AttributeName:i.pJ.attributeName,AttributeValue:i.pJ.attributeValue,Is:i.pJ.definitionOperator,"EntityReference CharacterReference":i.pJ.character,Comment:i.pJ.blockComment,ProcessingInst:i.pJ.processingInstruction,DoctypeDecl:i.pJ.documentMeta,Cdata:i.pJ.special(i.pJ.string)}),O=r.WQ.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:h,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[m],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[u,d,p,g,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});var v=n(41648),x=n(66349),k=n(35308);function b(e,t){let n=t&&t.getChild("TagName");return n?e.sliceString(n.from,n.to):""}function y(e,t){let n=t&&t.firstChild;return n&&"OpenTag"==n.name?b(e,n):""}function S(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class w{constructor(e,t,n){this.attrs=t,this.attrValues=n,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(e=>({label:e,type:"text"})):[]}}let P=/^[:\-\.\w\u00b7-\uffff]*$/;function C(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function T(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}let A=v.qp.define({name:"xml",parser:O.configure({props:[v.uj.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),v.x0.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),v.a0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function R(e={}){let t=[A.data.of({autocomplete:function(e,t){let n=[],r=[],i=Object.create(null);for(let e of t){let t=C(e);n.push(t),e.global&&r.push(t),e.values&&(i[e.name]=e.values.map(T))}let s=[],o=[],a=Object.create(null);for(let t of e){let e=r,l=i;t.attributes&&(e=e.concat(t.attributes.map(e=>"string"==typeof e?n.find(t=>t.label==e)||{label:e,type:"property"}:(e.values&&(l==i&&(l=Object.create(l)),l[e.name]=e.values.map(T)),C(e)))));let c=new w(t,e,l);a[c.name]=c,s.push(c),t.top&&o.push(c)}o.length||(o=s);for(let t=0;t<s.length;t++){let n=e[t],r=s[t];if(n.children)for(let e of n.children)a[e]&&r.children.push(a[e]);else r.children=s}return e=>{var t;let{doc:n}=e.state,l=function(e,t){var n;let r=(0,v.qz)(e).resolveInner(t,-1),i=null;for(let e=r;!i&&e.parent;e=e.parent)("OpenTag"==e.name||"CloseTag"==e.name||"SelfClosingTag"==e.name||"MismatchedCloseTag"==e.name)&&(i=e);if(i&&(i.to>t||i.lastChild.type.isError)){let e=i.parent;if("TagName"==r.name)return"CloseTag"==i.name||"MismatchedCloseTag"==i.name?{type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,context:S(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,context:i};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,context:i};let n=r==i||"Attribute"==r.name?r.childBefore(t):r;return(null==n?void 0:n.name)=="StartTag"?{type:"openTag",from:t,context:S(e)}:(null==n?void 0:n.name)=="StartCloseTag"&&n.to<=t?{type:"closeTag",from:t,context:e}:(null==n?void 0:n.name)=="Is"?{type:"attrValue",from:t,context:i}:n?{type:"attrName",from:t,context:i}:null}if("StartCloseTag"==r.name)return{type:"closeTag",from:t,context:r.parent};for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,context:"Element"==r.name?r:S(r)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:c,from:h,context:u}=l;if("openTag"==c){let e=o,t=y(n,u);if(t){let n=a[t];e=(null==n?void 0:n.children)||s}return{from:h,options:e.map(e=>e.completion),validFor:P}}if("closeTag"==c){let r=y(n,u);return r?{from:h,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=a[r])||void 0===t?void 0:t.closeNameCompletion)||{label:r+">",type:"type"}],validFor:P}:null}if("attrName"==c){let e=a[b(n,u)];return{from:h,options:(null==e?void 0:e.attrs)||r,validFor:P}}if("attrValue"==c){let t,r;let s=(r=(t=u&&u.getChildren("Attribute").find(e=>e.from<=h&&e.to>=h))&&t.getChild("AttributeName"))?n.sliceString(r.from,r.to):"";if(!s)return null;let o=a[b(n,u)],l=((null==o?void 0:o.attrValues)||i)[s];return l&&l.length?{from:h,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:l,validFor:/^"[^"]*"?$/}:null}{if("tag"!=c)return null;let t=y(n,u),r=a[t],i=[],l=u&&u.lastChild;t&&(!l||"CloseTag"!=l.name||b(n,l)!=t)&&i.push(r?r.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let f=i.concat(((null==r?void 0:r.children)||(u?s:o)).map(e=>e.openCompletion));if(u&&(null==r?void 0:r.text.length)){let t=u.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(f=f.concat(r.text))}return{from:h,options:f,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}}}(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(M),new v.ri(A,t)}function Z(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}let M=k.tk.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!A.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,a=o.changeByRange(e=>{var t,n,i;let{head:s}=e,a=o.doc.sliceString(s-1,s)==r,l=(0,v.qz)(o).resolveInner(s,-1),c;if(a&&">"==r&&"EndTag"==l.name){let r=l.parent;if((null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)!="CloseTag"&&(c=Z(o.doc,r.parent,s))){let t=s+(">"===o.doc.sliceString(s,s+1)?1:0);return{range:e,changes:{from:s,to:t,insert:`</${c}>`}}}}else if(a&&"/"==r&&"StartCloseTag"==l.name){let e=l.parent;if(l.from==s-2&&(null===(i=e.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(c=Z(o.doc,e,s))){let e=s+(">"===o.doc.sliceString(s,s+1)?1:0),t=`${c}>`;return{range:x.jT.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},19341:function(e,t,n){"use strict";n.d(t,{rV:function(){return A}});var r=n(88316),i=n(87361);class s{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}}function o(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(l(t)||-1==t)return n}}function a(e){return 32==e||9==e}function l(e){return 10==e||13==e}function c(e){var t;return e<0||a(t=e)||l(t)}s.top=new s(null,-1,0);let h=new r.IK({start:s.top,reduce:(e,t)=>3==e.type&&(20==t||34==t)?e.parent:e,shift(e,t,n,r){if(3==t)return new s(e,o(r,r.pos),1);if(65==t||5==t)return new s(e,o(r,r.pos),2);if(63==t)return e.parent;if(19==t||33==t)return new s(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new s(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash});function u(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&c(e.peek(n+3))}let f=new r.Jq((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let n=e.peek(-1);if((l(n)||n<0)&&3!=t.context.type){if(u(e,45)){if(!t.canShift(63))return e.acceptToken(1,3);e.acceptToken(63)}if(u(e,46)){if(!t.canShift(63))return e.acceptToken(2,3);e.acceptToken(63)}let n=0;for(;32==e.next;)n++,e.advance();!(n<t.context.depth)&&(n!=t.context.depth||1!=t.context.type||45==e.next&&c(e.peek(1)))||-1==e.next||l(e.next)||35==e.next||e.acceptToken(63,-n)}},{contextual:!0}),d=new r.Jq((e,t)=>{if(3==t.context.type){63==e.next&&(e.advance(),c(e.next)&&e.acceptToken(7));return}if(45==e.next)e.advance(),c(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==o(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),c(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==o(e,e.pos-1)?6:5);else{let n=e.pos;for(;;)if(a(e.next)){if(e.pos==n)return;e.advance()}else if(33==e.next)m(e);else if(38==e.next)O(e);else if(42==e.next){O(e);break}else if(39==e.next||34==e.next){if(v(e,!0))break;return}else if(91==e.next||123==e.next){if(!function(e){for(let t=[],n=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!v(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||l(e.next))return!1;e.advance()}}(e))return;break}else{b(e,!0,!1,0);break}for(;a(e.next);)e.advance();if(58==e.next){if(e.pos==n&&t.canShift(29))return;c(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==o(e,n)?66:65,n)}}},{contextual:!0});function p(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function g(e,t){var n;return 37==e.next?(e.advance(),p(e.next)&&e.advance(),p(e.next)&&e.advance(),!0):((n=e.next)>32&&n<127&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||!!t&&44==e.next)&&(e.advance(),!0)}function m(e){if(e.advance(),60==e.next){for(e.advance();;)if(!g(e,!0)){62==e.next&&e.advance();break}}else for(;g(e,!1););}function O(e){for(e.advance();!c(e.next)&&"f"!=x(e.next);)e.advance()}function v(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let s=e.next;if(s<0)break;if(e.advance(),s==n){if(39==s){if(39==e.next)e.advance();else break}else break}else if(92==s&&34==n)e.next>=0&&e.advance();else if(l(s)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function x(e){return e<33?"u":e>125?"s":"iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"[e-33]}function k(e,t){let n=x(e);return"u"!=n&&!(t&&"f"==n)}function b(e,t,n,r){if(!("s"==x(e.next)||(63==e.next||58==e.next||45==e.next)&&k(e.peek(1),n)))return!1;e.advance();let i=e.pos;for(;;){var s;let o=e.next,c=0,h=r+1;for(;a(s=o)||l(s);){if(l(o)){if(t)return!1;h=0}else h++;o=e.peek(++c)}if(!(o>=0&&(58==o?k(e.peek(c+1),n):35==o?32!=e.peek(c-1):k(o,n)))||!n&&h<=r||0==h&&!n&&(u(e,45,c)||u(e,46,c)))break;if(t&&"f"==x(o))return!1;for(let t=c;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}let y=new r.Jq((e,t)=>{if(33==e.next)m(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;O(e),e.acceptToken(t)}else 39==e.next||34==e.next?(v(e,!1),e.acceptToken(9)):b(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)}),S=new r.Jq((e,t)=>{let n=4==t.context.type?t.context.depth:-1,r=e.pos;t:for(;;){let i=0,s=e.next;for(;32==s;)s=e.peek(++i);if(!i&&(u(e,45,i)||u(e,46,i))||!l(s)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break t;let t=l(e.next);if(e.advance(),t)continue t;r=e.pos}}e.acceptTokenTo(13,r)}),w=(0,i.Gv)({DirectiveName:i.pJ.keyword,DirectiveContent:i.pJ.attributeValue,"DirectiveEnd DocEnd":i.pJ.meta,QuotedLiteral:i.pJ.string,BlockLiteralHeader:i.pJ.special(i.pJ.string),BlockLiteralContent:i.pJ.content,Literal:i.pJ.content,"Key/Literal Key/QuotedLiteral":i.pJ.definition(i.pJ.propertyName),"Anchor Alias":i.pJ.labelName,Tag:i.pJ.typeName,Comment:i.pJ.lineComment,": , -":i.pJ.separator,"?":i.pJ.punctuation,"[ ]":i.pJ.squareBracket,"{ }":i.pJ.brace}),P=r.WQ.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:h,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[w],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[f,d,y,S,0,1],topRules:{Stream:[0,15]},tokenPrec:0});var C=n(41648);n(81557);let T=C.qp.define({name:"yaml",parser:P.configure({props:[C.uj.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t);if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.from,1);if("QuotedLiteral"==t.name)break;if("Literal"==t.name){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)break}}return null},FlowMapping:(0,C.vw)({closing:"}"}),FlowSequence:(0,C.vw)({closing:"]"})}),C.x0.add({"FlowMapping FlowSequence":C.Dv,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function A(){return new C.ri(T)}i.pJ.meta},41648:function(e,t,n){"use strict";n.d(t,{Dv:function(){return j},Gn:function(){return Z},K0:function(){return R},Qf:function(){return ei},R_:function(){return eu},SS:function(){return A},Um:function(){return eS},a0:function(){return ek},c:function(){return C},mi:function(){return en},n$:function(){return ex},nF:function(){return el},nY:function(){return N},qp:function(){return d},qz:function(){return p},ri:function(){return w},tC:function(){return z},uj:function(){return M},vw:function(){return q},x0:function(){return L},y1:function(){return T}});var r,i=n(81557),s=n(66349),o=n(35308),a=n(87361),l=n(3698);let c=new i.md,h=new i.md;class u{constructor(e,t,n=[],r=""){this.data=e,this.name=r,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return p(this)}}),this.parser=t,this.extension=[S.of(this),s.yy.languageData.of((e,t,n)=>{let r=f(e,t,n),i=r.type.prop(c);if(!i)return[];let s=e.facet(i),o=r.type.prop(h);if(o){let i=r.resolve(t-r.from,n);for(let t of o)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(e,t,n=-1){return f(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(S);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data){n.push({from:t,to:t+e.length});return}let s=e.prop(i.md.mounted);if(s){if(s.tree.prop(c)==this.data){if(s.overlay)for(let e of s.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(s.overlay){let e=n.length;if(r(s.tree,s.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let s=e.children[n];s instanceof i.mp&&r(s,e.positions[n]+t)}};return r(p(e),0),n}get allowsNesting(){return!0}}function f(e,t,n){let r=e.facet(S),s=p(e).topNode;if(!r||r.allowsNesting)for(let e=s;e;e=e.enter(t,n,i.vj.ExcludeBuffers|i.vj.EnterBracketed))e.type.isTop&&(s=e);return s}u.setState=s.Py.define();class d extends u{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){var t;let n=(t=e.languageData,s.r$.define({combine:t?e=>e.concat(t):void 0}));return new d(n,e.parser.configure({props:[c.add(e=>e.isTop?n:void 0)]}),e.name)}configure(e,t){return new d(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(e){let t=e.field(u.state,!1);return t?t.tree:i.mp.empty}class g{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let m=null;class O{constructor(e,t,n=[],r,i,s,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new O(e,t,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.mp.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.i9.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=v(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i})),n=i.i9.applyChanges(n,t),r=i.mp.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(a=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}return new O(this.parser,t,n,r,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i._b{createParse(t,n,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let t=m;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new i.mp(i.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}}function v(e,t,n){return i.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class x{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new x(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=O.create(e.facet(S).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new x(n)}}u.state=s.QQ.define({create:x.init,update(e,t){for(let e of t.effects)if(e.is(u.setState))return e.value;return t.startState.facet(S)!=t.state.facet(S)?x.init(t.state):e.apply(t)}});let k=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(k=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let b="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,y=o.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=k(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(u.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!b?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work(()=>b&&b()||Date.now()>s,r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:u.setState.of(new x(i.context))})),this.chunkBudget>0&&!(a&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,o.OO)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S=s.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[u.state,y,o.tk.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class w{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let P=s.r$.define(),C=s.r$.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function T(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function A(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if(" "==i){for(;t>=r;)n+=" ",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function R(e,t){for(let n of(e instanceof s.yy&&(e=new Z(e)),e.state.facet(P))){let r=n(e,t);if(void 0!==r)return r}let n=p(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return Q(r,e,n)}(e,n,t):null}class Z{constructor(e,t={}){this.state=e,this.options=t,this.unit=T(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(i+=s-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,s.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let M=new i.md;function Q(e,t,n){for(let r=e;r;r=r.next){let e=function(e){let t=e.type.prop(M);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(i.md.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>D(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?I:null}(r.node);if(e)return e($.create(t,n,r))}return 0}function I(){return 0}class $ extends Z{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new $(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Q(this.context.next,this.base,this.pos)}}function q({closing:e,align:t=!0,units:n=1}){return r=>D(r,t,n,e)}function D(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped){if(i.from>=o)return null;let e=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+e}}e=i.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}function z({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}function N(){return s.yy.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let s=n.sliceString(i.from,r);if(!t.some(e=>e.test(s)))return e;let{state:o}=e,a=-1,l=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==a)continue;a=t.from;let n=R(o,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=A(o,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e})}let E=s.r$.define(),L=new i.md;function j(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function V(e,t,n){for(let r of e.facet(E)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=p(e);if(r.length<n)return null;let i=r.resolveStack(n,1),s=null;for(let o=i;o;o=o.next){let i=o.node;if(i.to<=n||i.from>n)continue;if(s&&i.from<t)break;let a=i.type.prop(L);if(a&&(i.to<r.length-50||r.length==e.doc.length||!function(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(i))){let r=a(i,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(s=r)}}return s}(e,t,n)}function W(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}let B=s.Py.define({map:W}),X=s.Py.define({map:W}),J=s.QQ.define({create:()=>o.p.none,update(e,t){for(let n of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=_(e,t,n)),e=e.map(t.changes),t.effects))if(n.is(B)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,i)=>{e==t&&i==n&&(r=!0)}),r}(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(G),i=r?o.p.replace({widget:new K(r(t.state,n.value))}):Y;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(X)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=_(e,t.selection.main.head)),e},provide:e=>o.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid JSON for fold state");t.push(Y.range(r,i))}return o.p.set(t,!0)}});function _(e,t,n=t){let r=!1;return e.between(t,n,(e,i)=>{e<n&&i>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}function F(e,t,n){var r;let i=null;return null===(r=e.field(J,!1))||void 0===r||r.between(t,n,(e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})}),i}let U={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},G=s.r$.define({combine:e=>(0,s.BO)(e,U)});function H(e,t){let{state:n}=e,r=n.facet(G),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=F(e.state,n.from,n.to);r&&e.dispatch({effects:X.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}let Y=o.p.replace({widget:new class extends o.l9{toDOM(e){return H(e,null)}}});class K extends o.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return H(e,this.value)}}let ee={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class et extends o.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function en(e={}){let t,n={...ee,...e},r=new et(n,!0),i=new et(n,!1),a=o.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(S)!=e.state.facet(S)||e.startState.field(J,!1)!=e.state.field(J,!1)||p(e.startState)!=p(e.state)||n.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.f_;for(let n of e.viewportLineBlocks){let s=F(e.state,n.from,n.to)?i:V(e.state,n.from,n.to)?r:null;s&&t.add(n.from,n.from,s)}return t.finish()}}),{domEventHandlers:l}=n;return[a,(0,o.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(a))||void 0===t?void 0:t.markers)||s.Xs.empty},initialSpacer:()=>new et(n,!1),domEventHandlers:{...l,click:(e,t,n)=>{if(l.click&&l.click(e,t,n))return!0;let r=F(e.state,t.from,t.to);if(r)return e.dispatch({effects:X.of(r)}),!0;let i=V(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:B.of(i)}),!0)}}}),[J,er]]}let er=o.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ei{constructor(e,t){let n;function r(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,s=t.scope;this.scope=s instanceof u?e=>e.prop(c)==s.data:s?e=>e==s:void 0,this.style=(0,a.QR)(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:i}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new ei(e,t||{})}}let es=s.r$.define(),eo=s.r$.define({combine:e=>e.length?[e[0]]:null});function ea(e){let t=e.facet(es);return t.length?t:e.facet(eo)}function el(e,t){let n=[eh],r;return e instanceof ei&&(e.module&&n.push(o.tk.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(eo.of(e)):r?n.push(es.computeN([o.tk.darkTheme],t=>t.facet(o.tk.darkTheme)==("dark"==r)?[e]:[])):n.push(es.of(e)),n}class ec{constructor(e){this.markCache=Object.create(null),this.tree=p(e.state),this.decorations=this.buildDeco(e,ea(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=p(e.state),n=ea(e.state),r=n!=ea(e.startState),{viewport:i}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&s>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return o.p.none;let n=new s.f_;for(let{from:r,to:i}of e.visibleRanges)(0,a.bW)(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=o.p.mark({class:r})))},r,i);return n.finish()}}let eh=s.Wl.high(o.lg.fromClass(ec,{decorations:e=>e.decorations})),eu=ei.define([{tag:a.pJ.meta,color:"#404740"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),ef=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ed="()[]{}",ep=s.r$.define({combine:e=>(0,s.BO)(e,{afterCursor:!0,brackets:ed,maxScanDistance:1e4,renderMatch:eO})}),eg=o.p.mark({class:"cm-matchingBracket"}),em=o.p.mark({class:"cm-nonmatchingBracket"});function eO(e){let t=[],n=e.matched?eg:em;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}let ev=[s.QQ.define({create:()=>o.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(ep);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=eS(t.state,e.head,-1,r)||e.head>0&&eS(t.state,e.head-1,1,r)||r.afterCursor&&(eS(t.state,e.head,1,r)||e.head<t.state.doc.length&&eS(t.state,e.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,t.state)))}return o.p.set(n,!0)},provide:e=>o.tk.decorations.from(e)}),ef];function ex(e={}){return[ep.of(e),ev]}let ek=new i.md;function eb(e,t,n){let r=e.prop(t<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function ey(e){let t=e.type.prop(ek);return t?t(e.node):e}function eS(e,t,n,r={}){let i=r.maxScanDistance||1e4,s=r.brackets||ed,o=p(e),a=o.resolveInner(t,n);for(let e=a;e;e=e.parent){let r=eb(e.type,n,s);if(r&&e.from<e.to){let i=ey(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return function(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},c=0,h=null==a?void 0:a.cursor();if(h&&(n<0?h.childBefore(r.from):h.childAfter(r.to)))do if(n<0?h.to<=r.from:h.from>=r.to){if(0==c&&s.indexOf(h.type.name)>-1&&h.from<h.to){let e=ey(h);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(eb(h.type,n,o))c++;else if(eb(h.type,-n,o)){if(0==c){let e=ey(h);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}while(n<0?h.prevSibling():h.nextSibling());return{start:l,matched:!1}}(0,0,n,e,i,r,s)}}return function(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},h=e.doc.iterRange(t,n>0?e.doc.length:0),u=0;for(let e=0;!h.next().done&&e<=s;){let s=h.value;n<0&&(e+=s.length);let a=t+e*n;for(let e=n>0?0:s.length-1,t=n>0?s.length:-1;e!=t;e+=n){let t=o.indexOf(s[e]);if(!(t<0)&&r.resolveInner(a+e,1).type==i){if(t%2==0==n>0)u++;else{if(1==u)return{start:c,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};u--}}}n>0&&(e+=s.length)}return h.done?{start:c,matched:!1}:null}(e,t,n,o,a.type,i,s)}let ew=Object.create(null),eP=[i.Jq.none],eC=[],eT=Object.create(null),eA=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])eA[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||a.pJ[n];r?"function"==typeof r?t.length?t=t.map(r):eR(n,`Modifier ${n} used at start of tag`):t.length?eR(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:eR(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),s=r+" "+n.map(e=>e.id),o=eT[s];if(o)return o.id;let l=eT[s]=i.Jq.define({id:eP.length,name:r,props:[(0,a.Gv)({[r]:n})]});return eP.push(l),l.id}(ew,t);function eR(e,t){eC.indexOf(e)>-1||(eC.push(e),console.warn(t))}o.Nm.RTL,o.Nm.LTR},29944:function(e,t,n){"use strict";n.d(t,{Lp:function(){return Y},sW:function(){return O}});var r=n(35308),i=n(66349),s=n(81467);let o="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class a{constructor(e,t,n=0,r=e.length,i,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(o(e)):o,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,i.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,i.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.nZ)(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n;;e++){let s=r.charCodeAt(e),o=this.match(s,i,this.bufferPos+this.bufferStart);if(e==r.length-1){if(o)return this.value=o,this;break}i==n&&e<t.length&&t.charCodeAt(e)==s&&i++}}}match(e,t,n){let r=null;for(let t=0;t<this.matches.length;t+=2){let i=this.matches[t],s=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?r={from:this.matches[t+1],to:n}:(this.matches[t]++,s=!0)),s||(this.matches.splice(t,2),t-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this});let l={from:-1,to:-1,match:/.*/.exec("")},c="gm"+(null==/x/.unicode?"":"u");class h{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new d(e,t,n,r,i);this.re=new RegExp(t,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let s=e.lineAt(r);this.curLineStart=s.from,this.matchPos=p(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=p(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}let u=new WeakMap;class f{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=u.get(e);if(!r||r.from>=n||r.to<=t){let r=new f(t,e.sliceString(t,n));return u.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:s}=r;return s>t&&(i=e.sliceString(t,s)+i,s=t),r.to<n&&(i+=e.sliceString(r.to,n)),u.set(e,new f(s,i)),new f(t,i.slice(t-s,n-s))}}class d{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=l,this.matchPos=p(e,r),this.re=new RegExp(t,c+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=f.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=p(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=f.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function p(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}"undefined"!=typeof Symbol&&(h.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});let g={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},m=i.r$.define({combine:e=>(0,i.BO)(e,g,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function O(e){let t=[y,b];return e&&t.push(m.of(e)),t}let v=r.p.mark({class:"cm-selectionMatch"}),x=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function k(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=i.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=i.D0.Word)}let b=r.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(m),{state:n}=e,s=n.selection;if(s.ranges.length>1)return r.p.none;let o=s.main,l,c=null;if(o.empty){if(!t.highlightWordAroundCursor)return r.p.none;let e=n.wordAt(o.head);if(!e)return r.p.none;c=n.charCategorizer(o.head),l=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return r.p.none;if(t.wholeWords){var h,u,f;if(l=n.sliceDoc(o.from,o.to),!(k(c=n.charCategorizer(o.head),n,o.from,o.to)&&(h=c,u=o.from,f=o.to,h(n.sliceDoc(u,u+1))==i.D0.Word&&h(n.sliceDoc(f-1,f))==i.D0.Word)))return r.p.none}else if(!(l=n.sliceDoc(o.from,o.to)))return r.p.none}let d=[];for(let i of e.visibleRanges){let e=new a(n.doc,l,i.from,i.to);for(;!e.next().done;){let{from:i,to:s}=e.value;if((!c||k(c,n,i,s))&&(o.empty&&i<=o.from&&s>=o.to?d.push(x.range(i,s)):(i>=o.to||s<=o.from)&&d.push(v.range(i,s)),d.length>t.maxMatches))return r.p.none}}return r.p.set(d)}},{decorations:e=>e.decorations}),y=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),S=({state:e,dispatch:t})=>{let{selection:n}=e,r=i.jT.create(n.ranges.map(t=>e.wordAt(t.head)||i.jT.cursor(t.head)),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)},w=i.r$.define({combine:e=>(0,i.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new K(e),scrollToMatch:e=>r.tk.scrollIntoView(e)})});class P{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,c),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Q(this):new A(this)}getCursor(e,t=0,n){let r=e.doc?e:i.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?R(this,r,t,n):T(this,r,t,n)}}class C{constructor(e){this.spec=e}}function T(e,t,n,r){var s,o,l,c;let h;return e.wholeWord&&(s=t.doc,o=t.charCategorizer(t.selection.main.head),h=(e,t,n,r)=>((r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=s.sliceString(r,Math.min(s.length,t+2))),(o(Z(n,e-r))!=i.D0.Word||o(M(n,e-r))!=i.D0.Word)&&(o(M(n,t-r))!=i.D0.Word||o(Z(n,t-r))!=i.D0.Word))),e.test&&(l=e.test,c=h,h=(e,n,r,i)=>(!c||!!c(e,n,r,i))&&l(e>=i&&n<=i+r.length?r.slice(e-i,n-i):t.doc.sliceString(e,n),t,e,n)),new a(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),h)}class A extends C{constructor(e){super(e)}nextMatch(e,t,n){let r=T(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=T(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=T(this.spec,e,n,r),s=null;for(;!i.nextOverlapping().done;)s=i.value;if(s)return s;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=T(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=T(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function R(e,t,n,r){var s,o,a;let l;return e.wholeWord&&(s=t.charCategorizer(t.selection.main.head),l=(e,t,n)=>!n[0].length||(s(Z(n.input,n.index))!=i.D0.Word||s(M(n.input,n.index))!=i.D0.Word)&&(s(M(n.input,n.index+n[0].length))!=i.D0.Word||s(Z(n.input,n.index+n[0].length))!=i.D0.Word)),e.test&&(o=e.test,a=l,l=(e,n,r)=>(!a||a(e,n,r))&&o(r[0],t,e,n)),new h(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:l},n,r)}function Z(e,t){return e.slice((0,i.cp)(e,t,!1),t)}function M(e,t){return e.slice(t,(0,i.cp)(e,t))}class Q extends C{nextMatch(e,t,n){let r=R(this.spec,e,n,e.doc.length).next();return r.done&&(r=R(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),s=R(this.spec,e,i,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=R(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=R(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}let I=i.Py.define(),$=i.Py.define(),q=i.QQ.define({create:e=>new D(_(e).create(),null),update(e,t){for(let n of t.effects)n.is(I)?e=new D(n.value.create(),e.panel):n.is($)&&(e=new D(e.query,n.value?J:null));return e},provide:e=>r.mH.from(e,e=>e.panel)});class D{constructor(e,t){this.query=e,this.panel=t}}let z=r.p.mark({class:"cm-searchMatch"}),N=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),E=r.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(q))}update(e){let t=e.state.field(q);(t!=e.startState.field(q)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.p.none;let{view:n}=this,s=new i.f_;for(let t=0,r=n.visibleRanges,i=r.length;t<i;t++){let{from:o,to:a}=r[t];for(;t<i-1&&a>r[t+1].from-500;)a=r[++t].to;e.highlight(n.state,o,a,(e,t)=>{let r=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);s.add(e,t,r?N:z)})}return s.finish()}},{decorations:e=>e.decorations});function L(e){return t=>{let n=t.state.field(q,!1);return n&&n.query.spec.valid?e(t,n):G(t)}}let j=L((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let s=i.jT.single(r.from,r.to),o=e.state.facet(w);return e.dispatch({selection:s,effects:[en(e,r),o.scrollToMatch(s.main,e)],userEvent:"select.search"}),U(e),!0}),V=L((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,s=t.prevMatch(n,r,r);if(!s)return!1;let o=i.jT.single(s.from,s.to),a=e.state.facet(w);return e.dispatch({selection:o,effects:[en(e,s),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),U(e),!0}),W=L((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:i.jT.create(n.map(e=>i.jT.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),B=L((e,{query:t})=>{let{state:n}=e,{from:s,to:o}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,s,s);if(!a)return!1;let l=a,c=[],h,u,f=[];l.from==s&&l.to==o&&(u=n.toText(t.getReplacement(l)),c.push({from:l.from,to:l.to,insert:u}),l=t.nextMatch(n,l.from,l.to),f.push(r.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(s).number)+".")));let d=e.state.changes(c);return l&&(h=i.jT.single(l.from,l.to).map(d),f.push(en(e,l)),f.push(n.facet(w).scrollToMatch(h.main,e))),e.dispatch({changes:d,selection:h,effects:f,userEvent:"input.replace"}),!0}),X=L((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}});if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:r.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function J(e){return e.state.facet(w).createPanel(e)}function _(e,t){var n,r,i,s,o;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=e.facet(w);return new P({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(s=null==t?void 0:t.regexp)&&void 0!==s?s:c.regexp,wholeWord:null!==(o=null==t?void 0:t.wholeWord)&&void 0!==o?o:c.wholeWord})}function F(e){let t=(0,r.Sd)(e,J);return t&&t.dom.querySelector("[main-field]")}function U(e){let t=F(e);t&&t==e.root.activeElement&&t.select()}let G=e=>{let t=e.state.field(q,!1);if(t&&t.panel){let n=F(e);if(n&&n!=e.root.activeElement){let r=_(e.state,t.query.spec);r.valid&&e.dispatch({effects:I.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[$.of(!0),t?I.of(_(e.state,t.query.spec)):i.Py.appendConfig.of(ei)]});return!0},H=e=>{let t=e.state.field(q,!1);if(!t||!t.panel)return!1;let n=(0,r.Sd)(e,J);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:$.of(!1)}),!0},Y=[{key:"Mod-f",run:G,scope:"editor search-panel"},{key:"F3",run:j,shift:V,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:j,shift:V,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:H,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:s}=n.main,o=[],l=0;for(let t=new a(e.doc,e.sliceDoc(r,s));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(l=o.length),o.push(i.jT.range(t.value.from,t.value.to))}return t(e.update({selection:i.jT.create(o,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:s,result:o}=(0,r.vC)(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return o.then(n=>{let o=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!o){e.dispatch({effects:s});return}let a=t.doc.lineAt(t.selection.main.head),[,l,c,h,u]=o,f=h?+h.slice(1):0,d=c?+c:a.number;if(c&&u){let e=d/100;l&&(e=e*("-"==l?-1:1)+a.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else c&&l&&(d=d*("-"==l?-1:1)+a.number);let p=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),g=i.jT.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[s,r.tk.scrollIntoView(g.from,{y:"center"})],selection:g})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return S({state:e,dispatch:t});let s=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=s))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),s=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new a(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new a(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(s){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}(e,s);return!!o&&(t(e.update({selection:e.selection.addRange(i.jT.range(o.from,o.to),!1),effects:r.tk.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class K{constructor(e){this.view=e;let t=this.query=e.state.field(q).query.spec;function n(e,t,n){return(0,s.Z)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,s.Z)("input",{value:t.search,placeholder:ee(e,"Find"),"aria-label":ee(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,s.Z)("input",{value:t.replace,placeholder:ee(e,"Replace"),"aria-label":ee(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,s.Z)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,s.Z)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,s.Z)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,s.Z)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>j(e),[ee(e,"next")]),n("prev",()=>V(e),[ee(e,"previous")]),n("select",()=>W(e),[ee(e,"all")]),(0,s.Z)("label",null,[this.caseField,ee(e,"match case")]),(0,s.Z)("label",null,[this.reField,ee(e,"regexp")]),(0,s.Z)("label",null,[this.wordField,ee(e,"by word")]),...e.state.readOnly?[]:[(0,s.Z)("br"),this.replaceField,n("replace",()=>B(e),[ee(e,"replace")]),n("replaceAll",()=>X(e),[ee(e,"replace all")])],(0,s.Z)("button",{name:"close",onclick:()=>H(e),"aria-label":ee(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new P({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:I.of(e)}))}keydown(e){(0,r.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?V:j)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),B(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(I)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(w).top}}function ee(e,t){return e.state.phrase(t)}let et=/[\s\.,:;?!]/;function en(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),s=e.state.doc.lineAt(n).to,o=Math.max(i.from,t-30),a=Math.min(s,n+30),l=e.state.sliceDoc(o,a);if(o!=i.from){for(let e=0;e<30;e++)if(!et.test(l[e+1])&&et.test(l[e])){l=l.slice(e);break}}if(a!=s){for(let e=l.length-1;e>l.length-30;e--)if(!et.test(l[e-1])&&et.test(l[e])){l=l.slice(0,e);break}}return r.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}let er=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ei=[q,i.Wl.low(E),er]},66349:function(e,t,n){"use strict";let r;n.d(t,{q6:function(){return eh},n0:function(){return R},as:function(){return Z},D0:function(){return ex},jT:function(){return N},yy:function(){return eb},r$:function(){return j},gc:function(){return A},Wl:function(){return G},Xs:function(){return eA},f_:function(){return eR},uU:function(){return eS},Py:function(){return ed},QQ:function(){return _},xv:function(){return f},YW:function(){return ep},gm:function(){return y},nZ:function(){return w},BO:function(){return ey},IS:function(){return eL},cp:function(){return b},Gz:function(){return ej},bg:function(){return S}});let i=[],s=[];function o(e){return e>=127462&&e<=127487}function a(e,t,n){if(t==e.length)return t;t&&c(e.charCodeAt(t))&&h(e.charCodeAt(t-1))&&t--;let r=l(e,t);for(t+=u(r);t<e.length;){let a=l(e,t);if(8205==r||8205==a||n&&function(e){if(e<768)return!1;for(let t=0,n=i.length;;){let r=t+n>>1;if(e<i[r])n=r;else{if(!(e>=s[r]))return!0;t=r+1}if(t==n)return!1}}(a))t+=u(a),r=a;else if(o(a)){let n=0,r=t-2;for(;r>=0&&o(l(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function l(e,t){let n=e.charCodeAt(t);if(!h(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return c(r)?(n-55296<<10)+(r-56320)+65536:n}function c(e){return e>=56320&&e<57344}function h(e){return e>=55296&&e<56320}function u(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?s:i).push(n+=e[t])})();class f{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=k(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),p.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=k(this,e,t);let n=[];return this.decompose(e,t,n,0),p.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new m(this),i=new m(e);for(let e=t,s=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(e=1){return new m(this,e)}iterRange(e,t=this.length){return new O(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new v(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new d(e):p.from(d.split(e,[])):f.empty}}class d extends f{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let s=this.text[i],o=r+s.length;if((t?n:o)>=e)return new x(r,o,n,s);r=o+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new d(g(this.text,[""],e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=g(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new d(t,e.length+i.length));else{let e=t.length>>1;n.push(new d(t.slice(0,e)),new d(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof d))return super.replace(e,t,n);[e,t]=k(this,e,t);let r=g(this.text,g(n.text,g(this.text,[""],0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new d(r,i):p.from(d.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){[e,t]=k(this,e,t);let r="";for(let i=0,s=0;i<=t&&s<this.text.length;s++){let o=this.text[s],a=i+o.length;i>e&&s&&(r+=n),e<a&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new d(n,r)),n=[],r=-1);return r>-1&&t.push(new d(n,r)),t}}class p extends f{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let s=this.children[i],o=r+s.length,a=n+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,n,r);r=o+1,n=a+1}}decompose(e,t,n,r){for(let i=0,s=0;s<=t&&i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e<=a&&t>=s){let i=r&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!i?n.push(o):o.decompose(e-s,t-s,n,i)}s=a+1}}replace(e,t,n){if([e,t]=k(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let s=this.children[r],o=i+s.length;if(e>=i&&t<=o){let a=s.replace(e-i,t-i,n),l=this.lines-s.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let i=this.children.slice();return i[r]=a,new p(i,this.length-(t-e)+n.length)}return super.replace(i,o,a)}i=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=k(this,e,t);let r="";for(let i=0,s=0;i<this.children.length&&s<=t;i++){let o=this.children[i],a=s+o.length;s>e&&i&&(r+=n),e<a&&t>s&&(r+=o.sliceString(e-s,t-s,n)),s=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof p))return 0;let n=0,[r,i,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==s||i==o)return n;let a=this.children[r],l=e.children[i];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new d(n,t)}let r=Math.max(32,n>>5),i=r<<1,s=r>>1,o=[],a=0,l=-1,c=[];function h(){0!=a&&(o.push(1==c.length?c[0]:p.from(c,l)),l=-1,a=c.length=0)}for(let t of e)!function e(t){let n;if(t.lines>i&&t instanceof p)for(let n of t.children)e(n);else t.lines>s&&(a>s||!a)?(h(),o.push(t)):t instanceof d&&a&&(n=c[c.length-1])instanceof d&&t.lines+n.lines<=32?(a+=t.lines,l+=t.length+1,c[c.length-1]=new d(n.text.concat(t.text),n.length+1+t.length)):(a+t.lines>r&&h(),a+=t.lines,l+=t.length+1,c.push(t))}(t);return h(),1==o.length?o[0]:new p(o,t)}}function g(e,t,n=0,r=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=r;s++){let a=e[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}f.empty=new d([""],0);class m{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof d?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],s=i>>1,o=r instanceof d?r.text.length:r.children.length;if(s==(t>0?o:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof d){let i=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[s+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof d?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class O{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new m(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class v{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(f.prototype[Symbol.iterator]=function(){return this.iter()},m.prototype[Symbol.iterator]=O.prototype[Symbol.iterator]=v.prototype[Symbol.iterator]=function(){return this});class x{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function k(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function b(e,t,n=!0,r=!0){return function(e,t,n=!0,r=!0){return(n?a:function(e,t,n){for(;t>0;){let r=a(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}(e,t,n,r)}function y(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r>=56320&&r<57344?(n-55296<<10)+(r-56320)+65536:n}function S(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function w(e){return e<65536?1:2}let P=/\r\n?|\n/;var C,T,A=((C=A||(A={}))[C.Simple=0]="Simple",C[C.TrackDel=1]="TrackDel",C[C.TrackBefore=2]="TrackBefore",C[C.TrackAfter=3]="TrackAfter",C);class R{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?(e(n,r,i),r+=i):r+=s,n+=i}}iterChangedRanges(e,t=!1){I(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new R(e)}composeDesc(e){return this.empty?e:e.empty?this:q(this,e)}mapDesc(e,t=!1){return e.empty?this:$(this,e,t)}mapPos(e,t=-1,n=A.Simple){let r=0,i=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=r+o;if(a<0){if(l>e)return i+(e-r);i+=o}else{if(n!=A.Simple&&l>=e&&(n==A.TrackDel&&r<e&&l>e||n==A.TrackBefore&&r<e||n==A.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],s=this.sections[n++],o=r+i;if(s>=0&&r<=t&&o>=e)return!(r<e)||!(o>t)||"cover";r=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new R(e)}static create(e){return new R(e)}}class Z extends R{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return I(this,(t,n,r,i,s)=>e=e.replace(r,r+(n-t),s),!1),e}mapDesc(e,t=!1){return $(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r<t.length;r+=2){let s=t[r],o=t[r+1];if(o>=0){t[r]=o,t[r+1]=s;let a=r>>1;for(;n.length<a;)n.push(f.empty);n.push(s?e.slice(i,i+s):f.empty)}i+=s}return new Z(t,n)}compose(e){return this.empty?e:e.empty?this:q(this,e,!0)}map(e,t=!1){return e.empty?this:$(this,e,t,!0)}iterChanges(e,t=!1){I(this,e,t)}get desc(){return R.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new D(this);n:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&0==i.len;){if(i.done)break n;let e=Math.min(i.len,a-o);M(r,e,-1);let s=-1==i.ins?-1:0==i.off?i.ins:0;M(t,e,s),s>0&&Q(n,t,i.text),i.forward(e),o+=e}let l=e[s++];for(;o<l;){if(i.done)break n;let e=Math.min(i.len,l-o);M(t,e,-1),M(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),o+=e}}return{changes:new Z(t,n),filtered:R.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],s=0,o=null;function a(e=!1){if(!e&&!r.length)return;s<t&&M(r,t-s,-1);let n=new Z(r,i);o=o?o.compose(n.map(o)):n,r=[],i=[],s=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof Z){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),o=o?o.compose(l.map(o)):l}else{let{from:e,to:o=e,insert:c}=l;if(e>o||e<0||o>t)throw RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let h=c?"string"==typeof c?f.of(c.split(n||P)):c:f.empty,u=h.length;if(e==o&&0==u)return;e<s&&a(),e>s&&M(r,e-s,-1),M(r,o-e,u),Q(i,r,h),s=o}}(e),a(!o),o}static empty(e){return new Z(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if("number"==typeof i)t.push(i,-1);else if(!Array.isArray(i)||"number"!=typeof i[0]||i.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==i.length)t.push(i[0],0);else{for(;n.length<r;)n.push(f.empty);n[r]=f.of(i.slice(1)),t.push(i[0],n[r].length)}}return new Z(t,n)}static createSet(e,t){return new Z(e,t)}}function M(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Q(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(f.empty);e.push(n)}}function I(e,t,n){let r=e.inserted;for(let i=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)i+=a,s+=a;else{let c=i,h=s,u=f.empty;for(;c+=a,h+=l,l&&r&&(u=u.append(r[o-2>>1])),!n&&o!=e.sections.length&&!(e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(i,c,s,h,u),i=c,s=h}}}function $(e,t,n,r=!1){let i=[],s=r?[]:null,o=new D(e),a=new D(t);for(let e=-1;;){if(o.done&&a.len||a.done&&o.len)throw Error("Mismatched change set lengths");if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);M(i,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!n))){let t=a.len;for(M(i,a.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(M(i,0,o.ins),s&&Q(s,i,o.text),e=o.i),o.forward(n),t-=n}a.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else if(0==a.ins&&a.len<n)n-=a.len,a.next();else break;M(i,t,e<o.i?o.ins:0),s&&e<o.i&&Q(s,i,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&a.done)return s?Z.createSet(i,s):R.create(i);else throw Error("Mismatched change set lengths")}}function q(e,t,n=!1){let r=[],i=n?[]:null,s=new D(e),o=new D(t);for(let e=!1;;){if(s.done&&o.done)return i?Z.createSet(r,i):R.create(r);if(0==s.ins)M(r,s.len,0,e),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw Error("Mismatched change set lengths");{let t=Math.min(s.len2,o.len),n=r.length;if(-1==s.ins){let n=-1==o.ins?-1:o.off?0:o.ins;M(r,t,n,e),i&&n&&Q(i,r,o.text)}else -1==o.ins?(M(r,s.off?0:s.len,t,e),i&&Q(i,r,s.textBit(t))):(M(r,s.off?0:s.len,o.off?0:o.ins,e),i&&!o.off&&Q(i,r,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),s.forward2(t),o.forward(t)}}else M(r,0,o.ins,e),i&&Q(i,r,o.text),o.next()}}class D{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?f.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?f.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class z{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new z(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return N.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return N.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return N.range(e.anchor,e.head)}static create(e,t,n){return new z(e,t,n)}}class N{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:N.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new N([this.main],0)}addRange(e,t=!0){return N.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,N.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new N(e.ranges.map(e=>z.fromJSON(e)),e.main)}static single(e,t=e){return new N([N.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return N.normalized(e.slice(),t);n=i.to}return new N(e,t)}static cursor(e,t=0,n,r){return z.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?z.create(t,e,48|i):z.create(e,t,(t>e?8:0)|i)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let s=i.from,o=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?N.range(o,s):N.range(s,o))}}return new N(e,t)}}function E(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let L=0;class j{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=L++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new j(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:V),!!e.static,e.enables)}of(e){return new W([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new W(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new W(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function V(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class W{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=L++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,s=e[i]>>1,o=2==this.type,a=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:((null!==(t=e[n.id])&&void 0!==t?t:1)&1)==0&&c.push(e[n.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||X(e,c)){let t=n(e);if(o?!B(t,e.values[s],r):!r(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=en(t,l);if(this.dependencies.every(n=>n instanceof j?t.facet(n)===e.facet(n):!(n instanceof _)||t.field(n,!1)==e.field(n,!1))||(o?B(a=n(e),i,r):r(a=n(e),i)))return e.values[s]=i,0}else a=n(e);return e.values[s]=a,1}}}}function B(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function X(e,t){let n=!1;for(let r of t)1&et(e,r)&&(n=!0);return n}let J=j.define({static:!0});class _{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new _(L++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(J).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(J),i=n.facet(J),s;return(s=r.find(e=>e.field==this))&&s!=i.find(e=>e.field==this)?(e.values[t]=s.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,J.of({field:this,create:e})]}get extension(){return this}}let F={lowest:4,low:3,default:2,high:1,highest:0};function U(e){return t=>new H(t,e)}let G={highest:U(F.highest),high:U(F.high),default:U(F.default),low:U(F.low),lowest:U(F.lowest)};class H{constructor(e,t){this.inner=e,this.prec=t}}class Y{of(e){return new K(this,e)}reconfigure(e){return Y.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class K{constructor(e,t){this.compartment=e,this.inner=t}}class ee{constructor(e,t,n,r,i,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r,i,s=[],o=Object.create(null),a=new Map;for(let n of(r=[[],[],[],[],[]],i=new Map,!function e(n,s){let o=i.get(n);if(null!=o){if(o<=s)return;let e=r[o].indexOf(n);e>-1&&r[o].splice(e,1),n instanceof K&&a.delete(n.compartment)}if(i.set(n,s),Array.isArray(n))for(let t of n)e(t,s);else if(n instanceof K){if(a.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let r=t.get(n.compartment)||n.inner;a.set(n.compartment,r),e(r,s)}else if(n instanceof H)e(n.inner,n.prec);else if(n instanceof _)r[s].push(n),n.provides&&e(n.provides,s);else if(n instanceof W)r[s].push(n),n.facet.extensions&&e(n.facet.extensions,F.default);else{let t=n.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,F.default),r.reduce((e,t)=>e.concat(t))))n instanceof _?s.push(n):(o[n.facet.id]||(o[n.facet.id]=[])).push(n);let l=Object.create(null),c=[],h=[];for(let e of s)l[e.id]=h.length<<1,h.push(t=>e.slot(t));let u=null==n?void 0:n.config.facets;for(let e in o){let t=o[e],r=t[0].facet,i=u&&u[e]||[];if(t.every(e=>0==e.type)){if(l[r.id]=c.length<<1|1,V(i,t))c.push(n.facet(r));else{let e=r.combine(t.map(e=>e.value));c.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}}else{for(let e of t)0==e.type?(l[e.id]=c.length<<1|1,c.push(e.value)):(l[e.id]=h.length<<1,h.push(t=>e.dynamicSlot(t)));l[r.id]=h.length<<1,h.push(e=>(function(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),s=r.filter(e=>!(1&e)),o=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let s=en(e,r[t]);if(2==i[t])for(let e of s)n.push(e);else n.push(s)}return t.combine(n)}return{create(e){for(let t of r)et(e,t);return e.values[o]=a(e),1},update(e,n){if(!X(e,s))return 0;let r=a(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let s=X(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!s&&V(n,l))return e.values[o]=c,0;let h=a(e);return t.compare(h,c)?(e.values[o]=c,0):(e.values[o]=h,1)}}})(e,r,t))}}return new ee(e,a,h.map(e=>e(l)),l,c,o)}}function et(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function en(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let er=j.define(),ei=j.define({combine:e=>e.some(e=>e),static:!0}),es=j.define({combine:e=>e.length?e[0]:void 0,static:!0}),eo=j.define(),ea=j.define(),el=j.define(),ec=j.define({combine:e=>!!e.length&&e[0]});class eh{constructor(e,t){this.type=e,this.value=t}static define(){return new eu}}class eu{of(e){return new eh(this,e)}}class ef{constructor(e){this.map=e}of(e){return new ed(this,e)}}class ed{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ed(this.type,t)}is(e){return this.type==e}static define(e={}){return new ef(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ed.reconfigure=ed.define(),ed.appendConfig=ed.define();class ep{constructor(e,t,n,r,i,s){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,n&&E(n,t.newLength),i.some(e=>e.type==ep.time)||(this.annotations=i.concat(ep.time.of(Date.now())))}static create(e,t,n,r,i,s){return new ep(e,t,n,r,i,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ep.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function eg(e,t,n){var r;let i,s,o;return n?(i=t.changes,s=Z.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:ed.mapEffects(e.effects,i).concat(ed.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function em(e,t,n){let r=t.selection,i=ev(t.annotations);return t.userEvent&&(i=i.concat(ep.userEvent.of(t.userEvent))),{changes:t.changes instanceof Z?t.changes:Z.of(t.changes||[],n,e.facet(es)),selection:r&&(r instanceof N?r:N.single(r.anchor,r.head)),effects:ev(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}ep.time=eh.define(),ep.userEvent=eh.define(),ep.addToHistory=eh.define(),ep.remote=eh.define();let eO=[];function ev(e){return null==e?eO:Array.isArray(e)?e:[e]}var ex=((T=ex||(ex={}))[T.Word=0]="Word",T[T.Space=1]="Space",T[T.Other=2]="Other",T);let ek=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{r=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class eb{constructor(e,t,n,r,i,s){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)et(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return et(this,n),en(this,n)}update(...e){return function e(t,n,r){let i=em(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(r=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(r=!1);let s=!!n[e].sequential;i=eg(i,em(t,n[e],s?i.changes.newLength:t.doc.length),s)}let s=ep.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(el),r=e;for(let i=n.length-1;i>=0;i--){let s=n[i](e);s&&Object.keys(s).length&&(r=eg(r,em(t,s,e.changes.newLength),!0))}return r==e?e:ep.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(r?function(t){let n=t.startState,r=!0;for(let e of n.facet(eo)){let n=e(t);if(!1===n){r=!1;break}Array.isArray(n)&&(r=!0===r?n:function(e,t){let n=[];for(let r=0,i=0;;){let s,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))s=e[r++],o=e[r++];else{if(!(i<t.length))return n;s=t[i++],o=t[i++]}!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}(r,n))}if(!0!==r){let e,i;if(!1===r)i=t.changes.invertedDesc,e=Z.empty(n.doc.length);else{let n=t.changes.filter(r);e=n.changes,i=n.filtered.mapDesc(n.changes).invertedDesc}t=ep.create(n,e,t.selection&&t.selection.map(i),ed.mapEffects(t.effects,i),t.annotations,t.scrollIntoView)}let i=n.facet(ea);for(let r=i.length-1;r>=0;r--){let s=i[r](t);t=s instanceof ep?s:Array.isArray(s)&&1==s.length&&s[0]instanceof ep?s[0]:e(n,ev(s),!1)}return t}(s):s)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(Y.reconfigure)?(n&&(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ed.reconfigure)?(n=null,r=t.value):t.is(ed.appendConfig)&&(n=null,r=ev(r).concat(t.value));t=n?e.startState.values.slice():new eb(n=ee.resolve(r,i,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let s=e.startState.facet(ei)?e.newSelection:e.newSelection.asSingle();new eb(n,e.newDoc,s,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:N.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],s=ev(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),a=this.changes(o.changes),l=a.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let c=r.mapDesc(a,!0);i.push(o.range.map(c)),r=r.compose(l),s=ed.mapEffects(s,l).concat(ed.mapEffects(ev(o.effects),c))}return{changes:r,selection:N.create(i,t.mainIndex),effects:s}}changes(e=[]){return e instanceof Z?e:Z.of(e,this.doc.length,this.facet(eb.lineSeparator))}toText(e){return f.of(e.split(this.facet(eb.lineSeparator)||P))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(et(this,t),en(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof _&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],s=e[t];r.push(i.init(e=>i.spec.fromJSON(s,e)))}}return eb.create({doc:e.doc,selection:N.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ee.resolve(e.extensions||[],new Map),n=e.doc instanceof f?e.doc:f.of((e.doc||"").split(t.staticFacet(eb.lineSeparator)||P)),r=e.selection?e.selection instanceof N?e.selection:N.single(e.selection.anchor,e.selection.head):N.single(0);return E(r,n.length),t.staticFacet(ei)||(r=r.asSingle()),new eb(t,n,r,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(eb.tabSize)}get lineBreak(){return this.facet(eb.lineSeparator)||"\n"}get readOnly(){return this.facet(ec)}phrase(e,...t){for(let t of this.facet(eb.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(er))for(let s of i(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){var t;let n=this.languageDataAt("wordChars",e);return t=n.length?n[0]:"",e=>{if(!/\S/.test(e))return ex.Space;if(function(e){if(r)return r.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ek.test(n)))return!0}return!1}(e))return ex.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return ex.Word;return ex.Other}}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=b(t,s,!1);if(i(t.slice(e,s))!=ex.Word)break;s=e}for(;o<r;){let e=b(t,o);if(i(t.slice(o,e))!=ex.Word)break;o=e}return s==o?null:N.range(s+n,o+n)}}function ey(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],s=r[e];if(void 0===s)r[e]=i;else if(s===i||void 0===i);else if(Object.hasOwnProperty.call(n,e))r[e]=n[e](s,i);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}eb.allowMultipleSelections=ei,eb.tabSize=j.define({combine:e=>e.length?e[0]:4}),eb.lineSeparator=es,eb.readOnly=ec,eb.phrases=j.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(n=>e[n]==t[n])}}),eb.languageData=er,eb.changeFilter=eo,eb.transactionFilter=ea,eb.transactionExtender=el,Y.reconfigure=ed.define();class eS{eq(e){return this==e}range(e,t=e){return eP.create(e,t,this)}}function ew(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}eS.prototype.startSide=eS.prototype.endSide=0,eS.prototype.point=!1,eS.prototype.mapMode=A.TrackDel;class eP{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new eP(e,t,n)}}function eC(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eT{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let s=r,o=i.length;;){if(s==o)return s;let r=s+o>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==s)return a>=0?s:o;a>=0?o=r:s=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,i);i<s;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],s=-1,o=-1;for(let a=0;a<this.value.length;a++){let l=this.value[a],c=this.from[a]+e,h=this.to[a]+e,u,f;if(c==h){let e=t.mapPos(c,l.startSide,l.mapMode);if(null==e||(u=f=e,l.startSide!=l.endSide&&(f=t.mapPos(c,l.endSide))<u))continue}else if((u=t.mapPos(c,l.startSide))>(f=t.mapPos(h,l.endSide))||u==f&&l.startSide>0&&l.endSide<=0)continue;0>(f-u||l.endSide-l.startSide)||(s<0&&(s=u),l.point&&(o=Math.max(o,f-u)),n.push(l),r.push(u-s),i.push(f-s))}return{mapped:n.length?new eT(r,i,n,o):null,pos:s}}}class eA{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new eA(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(eC)),this.isEmpty)return t.length?eA.of(t):this;let o=new eM(this,null,-1).goto(0),a=0,l=[],c=new eR;for(;o.value||a<t.length;)if(a<t.length&&(o.from-t[a].from||o.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(o.chunkIndex)<t[a].from)&&(!s||r>this.chunkEnd(o.chunkIndex)||i<this.chunkPos[o.chunkIndex])&&c.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||r>o.to||i<o.from||s(o.from,o.to,o.value))&&!c.addInner(o.from,o.to,o.value)&&l.push(eP.create(o.from,o.to,o.value)),o.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?eA.empty:this.nextLayer.update({add:l,filter:s,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i],a=e.touchesRange(s,s+o.length);if(!1===a)r=Math.max(r,o.maxPoint),t.push(o),n.push(e.mapPos(s));else if(!0===a){let{mapped:i,pos:a}=o.map(s,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new eA(n,t,i||eA.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],s=this.chunk[r];if(t>=i&&e<=i+s.length&&!1===s.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return eQ.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eQ.from(e).goto(t)}static compare(e,t,n,r,i=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i),a=eZ(s,o,n),l=new e$(s,a,i),c=new e$(o,a,i);n.iterGaps((e,t,n)=>eq(l,e,c,t,n,r)),n.empty&&0==n.length&&eq(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),s=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(i.length!=s.length)return!1;if(!i.length)return!0;let o=eZ(i,s),a=new e$(i,o,0).goto(n),l=new e$(s,o,0).goto(n);for(;;){if(a.to!=l.to||!eD(a.active,l.active)||a.point&&(!l.point||!ew(a.point,l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let s=new e$(e,null,i).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),i=s.pointFrom<t?n.length+1:s.point.startSide<0?n.length:Math.min(n.length,a);r.point(o,e,s.point,n,i,s.pointRank),a=Math.min(s.openEnd(e),n.length)}else e>o&&(r.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>n)return a+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(e,t=!1){let n=new eR;for(let r of e instanceof eP?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(eC(t,r)>0)return e.slice().sort(eC);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return eA.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=eA.empty;r=r.nextLayer)t=new eA(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}eA.empty=new eA([],[],null,-1),eA.empty.nextLayer=eA.empty;class eR{finishChunk(e){this.chunks.push(new eT(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new eR)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(eA.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eA.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function eZ(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=r.get(e.chunk[t]);null==s||(n?n.mapPos(s):s)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(s,s+e.chunk[t].length))||i.add(e.chunk[t])}return i}class eM{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eQ{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let s=e[i];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&r.push(new eM(s,t,n,i));return 1==r.length?r[0]:new eQ(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)eI(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)eI(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),eI(this.heap,0)}}}function eI(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),0>n.compare(i))break;e[r]=n,e[t]=i,t=r}}class e${constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=eQ.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ez(this.active,e),ez(this.activeTo,e),ez(this.activeRank,e),this.minActive=eE(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;eN(this.active,t,n),eN(this.activeTo,t,r),eN(this.activeRank,t,i),e&&eN(e,t,this.cursor.from),this.minActive=eE(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&0>(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&ez(n,r)}else if(this.cursor.value){if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else this.addActive(n),this.cursor.next()}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function eq(e,t,n,r,i,s){e.goto(t),n.goto(r);let o=r+i,a=r,l=r-t,c=!!s.boundChange;for(let t=!1;;){let r=e.to+l-n.to,i=r||e.endSide-n.endSide,h=i<0?e.to+l:n.to,u=Math.min(h,o);if(e.point||n.point?(e.point&&n.point&&ew(e.point,n.point)&&eD(e.activeForPoint(e.to),n.activeForPoint(n.to))||s.comparePoint(a,u,e.point,n.point),t=!1):(t&&s.boundChange(a),u>a&&!eD(e.active,n.active)&&s.compareRange(a,u,e.active,n.active),c&&u<o&&(r||e.openEnd(h)!=n.openEnd(h))&&(t=!0)),h>o)break;a=h,i<=0&&e.next(),i>=0&&n.next()}}function eD(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!ew(e[n],t[n]))return!1;return!0}function ez(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function eN(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function eE(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)0>(t[i]-r||e[i].endSide-e[n].endSide)&&(n=i,r=t[i]);return n}function eL(e,t,n=e.length){let r=0;for(let i=0;i<n&&i<e.length;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=b(e,i));return r}function ej(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=b(e,r)}return!0===r?-1:e.length}},66546:function(e,t,n){"use strict";n.d(t,{vk:function(){return m}});var r=n(35308),i=n(41648),s=n(87361);let o="#e06c75",a="#abb2bf",l="#7d8799",c="#d19a66",h="#2c313a",u="#282c34",f="#353a42",d="#528bff",p=r.tk.theme({"&":{color:a,backgroundColor:u},".cm-content":{caretColor:d},".cm-cursor, .cm-dropCursor":{borderLeftColor:d},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:a},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:u,color:l,border:"none"},".cm-activeLineGutter":{backgroundColor:h},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:f},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:f,borderBottomColor:f},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:h,color:a}}},{dark:!0}),g=i.Qf.define([{tag:s.pJ.keyword,color:"#c678dd"},{tag:[s.pJ.name,s.pJ.deleted,s.pJ.character,s.pJ.propertyName,s.pJ.macroName],color:o},{tag:[s.pJ.function(s.pJ.variableName),s.pJ.labelName],color:"#61afef"},{tag:[s.pJ.color,s.pJ.constant(s.pJ.name),s.pJ.standard(s.pJ.name)],color:c},{tag:[s.pJ.definition(s.pJ.name),s.pJ.separator],color:a},{tag:[s.pJ.typeName,s.pJ.className,s.pJ.number,s.pJ.changed,s.pJ.annotation,s.pJ.modifier,s.pJ.self,s.pJ.namespace],color:"#e5c07b"},{tag:[s.pJ.operator,s.pJ.operatorKeyword,s.pJ.url,s.pJ.escape,s.pJ.regexp,s.pJ.link,s.pJ.special(s.pJ.string)],color:"#56b6c2"},{tag:[s.pJ.meta,s.pJ.comment],color:l},{tag:s.pJ.strong,fontWeight:"bold"},{tag:s.pJ.emphasis,fontStyle:"italic"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.link,color:l,textDecoration:"underline"},{tag:s.pJ.heading,fontWeight:"bold",color:o},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.special(s.pJ.variableName)],color:c},{tag:[s.pJ.processingInstruction,s.pJ.string,s.pJ.inserted],color:"#98c379"},{tag:s.pJ.invalid,color:"#ffffff"}]),m=[p,(0,i.nF)(g)]},81557:function(e,t,n){"use strict";var r,i;n.d(t,{Jq:function(){return u},L3:function(){return s},Lj:function(){return f},_b:function(){return $},i9:function(){return I},md:function(){return l},mp:function(){return g},vj:function(){return r}});let s=1024,o=0;class a{constructor(e,t){this.from=e,this.to=t}}class l{constructor(e={}){this.id=o++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:e=>e.split(" ")}),l.openedBy=new l({deserialize:e=>e.split(" ")}),l.group=new l({deserialize:e=>e.split(" ")}),l.isolate=new l({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class c{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[l.mounted.id]}}let h=Object.create(null);class u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):h,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(l.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(l.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class f{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);if(e){r||(r=Object.assign({},n.props));let t=e[1],i=e[0];i.combine&&i.id in r&&(t=i.combine(r[i.id],t)),r[i.id]=t}}t.push(r?new u(n.name,r,n.id,n.flags):n)}return new f(t)}}let d=new WeakMap,p=new WeakMap;(i=r||(r={}))[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed";class g{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length)for(let[e,t]of(this.props=Object.create(null),i))this.props["number"==typeof e?e:e.id]=t}toString(){let e=c.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new A(this.topNode,e)}cursorAt(e,t=0,n=0){let r=new A(d.get(this)||this.topNode);return r.moveTo(e,t),d.set(this,r._tree),r}get topNode(){return new b(this,0,0,null)}resolve(e,t=0){let n=x(d.get(this)||this.topNode,e,t,!1);return d.set(this,n),n}resolveInner(e,t=0){let n=x(p.get(this)||this.topNode,e,t,!0);return p.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof b?r:r.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(i||(i=[r])).push(s.resolve(t,n)),e=s}else{let s=c.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new b(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(x(o,t,n,!1))}}return i?C(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&r.IncludeAnonymous)>0;for(let e=this.cursor(o|r.IncludeAnonymous);;){let r=!1;if(e.from<=s&&e.to>=i&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;r=!0}for(;r&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;r=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Q(u.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new g(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new g(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=s,reused:o=[],minRepeatType:a=r.types.length}=e,c=Array.isArray(n)?new m(n,n.length):n,h=r.types,u=0,f=0;function d(e,t,n,i,s,o,a,l,c){let h=[],u=[];for(;e.length>i;)h.push(e.pop()),u.push(t.pop()+n-s);e.push(p(r.types[a],h,u,o-s,l-o,c)),t.push(s-n)}function p(e,t,n,r,i,s,o){if(s){let e=[l.contextHash,s];o=o?[e].concat(o):[e]}if(i>25){let e=[l.lookAhead,i];o=o?[e].concat(o):[e]}return new g(e,t,n,r,o)}let v=[],x=[];for(;c.pos>0;)!function e(t,n,s,m,v,x){let{id:k,start:b,end:y,size:S}=c,w=f,P=u;if(S<0){if(c.next(),-1==S){let e=o[k];s.push(e),m.push(b-t);return}if(-3==S){u=k;return}if(-4==S){f=k;return}throw RangeError(`Unrecognized record size: ${S}`)}let C=h[k],T,A,R=b-t;if(y-b<=i&&(A=function(e,t){let n=c.fork(),r=0,s=0,o=0,l=n.end-i,h={size:0,start:0,skip:0};t:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){h.size=r,h.start=s,h.skip=o,o+=4,r+=4,n.next();continue}let c=n.pos-e;if(e<0||c<i||n.start<l)break;let u=n.id>=a?4:0,f=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3==n.size||-4==n.size)u+=4;else break t}else n.id>=a&&(u+=4);n.next()}s=f,r+=e,o+=u}return(t<0||r==e)&&(h.size=r,h.start=s,h.skip=o),h.size>4?h:void 0}(c.pos-n,v))){let e=new Uint16Array(A.size-A.skip),n=c.pos-A.size,i=e.length;for(;c.pos>n;)i=function e(t,n,r){let{id:i,start:s,end:o,size:l}=c;if(c.next(),l>=0&&i<a){let a=r;if(l>4){let i=c.pos-(l-4);for(;c.pos>i;)r=e(t,n,r)}n[--r]=a,n[--r]=o-t,n[--r]=s-t,n[--r]=i}else -3==l?u=i:-4==l&&(f=i);return r}(A.start,e,i);T=new O(e,y-A.start,r),R=A.start-t}else{let t=c.pos-S;c.next();let n=[],s=[],o=k>=a?k:-1,h=0,u=y;for(;c.pos>t;)o>=0&&c.id==o&&c.size>=0?(c.end<=u-i&&(d(n,s,b,h,c.end,u,o,w,P),h=n.length,u=c.end),c.next()):x>2500?function(e,t,n,s){let o=[],a=0,l=-1;for(;c.pos>t;){let{id:e,start:t,end:n,size:r}=c;if(r>4)c.next();else if(l>-1&&t<l)break;else l<0&&(l=n-i),o.push(e,t,n),a++,c.next()}if(a){let t=new Uint16Array(4*a),i=o[o.length-2];for(let e=o.length-3,n=0;e>=0;e-=3)t[n++]=o[e],t[n++]=o[e+1]-i,t[n++]=o[e+2]-i,t[n++]=n;n.push(new O(t,o[2]-i,r)),s.push(i-e)}}(b,t,n,s):e(b,t,n,s,o,x+1);if(o>=0&&h>0&&h<n.length&&d(n,s,b,h,b,u,o,w,P),n.reverse(),s.reverse(),o>-1&&h>0){let e=function(e,t){return(n,r,i)=>{let s=0,o=n.length-1,a,c;if(o>=0&&(a=n[o])instanceof g){if(!o&&a.type==e&&a.length==i)return a;(c=a.prop(l.lookAhead))&&(s=r[o]+a.length+c)}return p(e,n,r,i,s,t)}}(C,P);T=Q(C,n,s,0,n.length,0,y-b,e,e)}else T=p(C,n,s,y-b,w-y,P)}s.push(T),m.push(R)}(e.start||0,e.bufferStart||0,v,x,-1,0);let k=null!==(t=e.length)&&void 0!==t?t:v.length?x[0]+v[0].length:0;return new g(h[e.topID],v.reverse(),x.reverse(),k)}(e)}}g.empty=new g(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class O{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,n,r,i){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&(!v(i,r,s[a+1],s[a+2])||(o=a,!(n>0)));a=s[a+3]);return o}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){i[a++]=r[o++],i[a++]=r[o++]-n;let t=i[a++]=r[o++]-n;i[a++]=r[o++]-e,s=Math.max(s,t)}return new O(i,s,this.set)}}function v(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function x(e,t,n,i){for(var s;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof b&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=i?0:r.IgnoreOverlays;if(i)for(let r=e,i=r.parent;i;i=(r=i).parent)r instanceof b&&r.index<0&&(null===(s=i.enter(t,n,o))||void 0===s?void 0:s.from)!=r.from&&(e=i);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class k{cursor(e=0){return new A(this,e)}getChild(e,t=null,n=null){let r=y(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return y(this,e,t,n)}resolve(e,t=0){return x(this,e,t,!1)}resolveInner(e,t=0){return x(this,e,t,!0)}matchContext(e){return S(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class b extends k{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,h=t>0?a.length:-1;e!=h;e+=t){let h=a[e],u=l[e]+o.from,f;if(s&r.EnterBracketed&&h instanceof g&&(f=c.get(h))&&!f.overlay&&f.bracketed&&n>=u&&n<=u+h.length||v(i,n,u,u+h.length)){if(h instanceof O){if(s&r.ExcludeBuffers)continue;let a=h.findChild(0,h.buffer.length,t,n-u,i);if(a>-1)return new P(new w(o,h,e,u),null,a)}else if(s&r.IncludeAnonymous||!h.type.isAnonymous||R(h)){let a;if(!(s&r.IgnoreMounts)&&(a=c.get(h))&&!a.overlay)return new b(a.tree,u,e,o);let l=new b(h,u,e,o);return s&r.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?h.children.length-1:0,t,n,i,s)}}}if(s&r.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let i;if(!(n&r.IgnoreOverlays)&&(i=c.get(this._tree))&&i.overlay){let s=e-this.from,o=n&r.EnterBracketed&&i.bracketed;for(let{from:e,to:n}of i.overlay)if((t>0||o?e<=s:e<s)&&(t<0||o?n>=s:n>s))return new b(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function y(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=n){for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return s}for(;;){if(null!=r&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==r?s:[]}}function S(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class w{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class P extends k{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new P(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&r.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new P(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new P(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new P(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let s=n.buffer[this.index+1];e.push(n.slice(r,i,s)),t.push(0)}return new g(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function C(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof b&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new T(i,n)}class T{constructor(e,t){this.heads=e,this.node=t}get next(){return C(this.heads)}}class A{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~r.EnterBracketed,e instanceof b)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof b?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&r.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&r.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&r.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let i=t+e,s=e<0?-1:n._tree.children.length;i!=s;i+=e){let e=n._tree.children[i];if(this.mode&r.IncludeAnonymous||e instanceof O||!e.type.isAnonymous||R(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)t:for(let r=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==r){if(r==this.index)return s;t=s,n=i+1;break t}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new P(this.buffer,t,this.stack[e]);return this.bufferNode=new P(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return S(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return S(this._tree,e,r);let s=n[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}}function R(e){return e.children.some(e=>e instanceof O||!e.type.isAnonymous||R(e))}let Z=new WeakMap;function M(e,t){if(!e.isAnonymous||t instanceof O||t.type!=e)return 1;let n=Z.get(t);if(null==n){for(let r of(n=1,t.children)){if(r.type!=e||!(r instanceof g)){n=1;break}n+=M(e,r)}Z.set(t,n)}return n}function Q(e,t,n,r,i,s,o,a,l){let c=0;for(let n=r;n<i;n++)c+=M(e,t[n]);let h=Math.ceil(1.5*c/8),u=[],f=[];return!function t(n,r,i,o,a){for(let c=i;c<o;){let i=c,d=r[c],p=M(e,n[c]);for(c++;c<o;c++){let t=M(e,n[c]);if(p+t>=h)break;p+=t}if(c==i+1){if(p>h){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}u.push(n[i])}else{let t=r[c-1]+n[c-1].length-d;u.push(Q(e,n,r,i,c,d,t,null,l))}f.push(d+a-s)}}(t,n,r,i,0),(a||l)(u,f,o)}class I{constructor(e,t,n,r,i=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new I(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let c=o<t.length?t[o]:null,h=c?c.fromA:1e9;if(h-a>=n)for(;s&&s.from<h;){let t=s;if(a>=t.from||h<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,h)-l;t=e>=n?null:new I(e,n,t.tree,t.offset+l,o>0,!!c)}if(t&&r.push(t),s.to>h)break;s=i<e.length?e[i++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return r}}class ${startParse(e,t,n){return"string"==typeof e&&(e=new q(e)),n=n?n.length?n.map(e=>new a(e.from,e.to)):[new a(0,0)]:[new a(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class q{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new l({perNode:!0})},87361:function(e,t,n){"use strict";n.d(t,{Gv:function(){return l},QR:function(){return u},bW:function(){return f},pJ:function(){return R}});var r=n(81557);let i=0;class s{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=i++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof s&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let n=new s("string"==typeof e?e:"?",[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new a(e);return e=>e.modified.indexOf(t)>-1?e:a.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let o=0;class a{constructor(e){this.name=e,this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var r;return n.base==e&&(r=n.modified,t.length==r.length&&t.every((e,t)=>e==r[t]))});if(n)return n;let r=[],i=new s(e.name,r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(a.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];for(let e of(Array.isArray(r)||(r=[r]),n.split(" ")))if(e){let n=[],i=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!r)throw RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),(t+=r[0].length)==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw RangeError("Invalid path: "+e);s=e.slice(t)}let o=n.length-1,a=n[o];if(!a)throw RangeError("Invalid path: "+e);let l=new h(r,i,o>0?n.slice(0,o):null);t[a]=l.sort(t[a])}}return c.add(t)}let c=new r.md({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let s=new h(i.tags,i.mode,i.context);n?n.next=s:r=s,n=s}return r}});class h{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function u(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function f(e,t,n,r=0,i=e.length){let s=new d(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}h.empty=new h([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter(e=>!e.scope||e.scope(o)));let u=i,f=function(e){let t=e.type.prop(c);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||h.empty,d=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(s,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(t,a),u),f.opaque)return;let p=e.tree&&e.tree.prop(r.md.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+a,1),o=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),c=e.firstChild();for(let h=0,f=a;;h++){let d=h<p.overlay.length?p.overlay[h]:null,g=d?d.from+a:l,m=Math.max(t,f),O=Math.min(n,g);if(m<O&&c)for(;e.from<O&&(this.highlightRange(e,m,O,i,s),this.startSpan(Math.min(O,e.to),u),!(e.to>=g)&&e.nextSibling()););if(!d||g>n)break;(f=d.to+a)>t&&(this.highlightRange(r.cursor(),Math.max(t,d.from+a),Math.min(n,f),"",o),this.startSpan(Math.min(n,f),u))}c&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,i,s),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}}let p=s.define,g=p(),m=p(),O=p(m),v=p(m),x=p(),k=p(x),b=p(x),y=p(),S=p(y),w=p(),P=p(),C=p(),T=p(C),A=p(),R={comment:g,lineComment:p(g),blockComment:p(g),docComment:p(g),name:m,variableName:p(m),typeName:O,tagName:p(O),propertyName:v,attributeName:p(v),className:p(m),labelName:p(m),namespace:p(m),macroName:p(m),literal:x,string:k,docString:p(k),character:p(k),attributeValue:p(k),number:b,integer:p(b),float:p(b),bool:p(x),regexp:p(x),escape:p(x),color:p(x),url:p(x),keyword:w,self:p(w),null:p(w),atom:p(w),unit:p(w),modifier:p(w),operatorKeyword:p(w),controlKeyword:p(w),definitionKeyword:p(w),moduleKeyword:p(w),operator:P,derefOperator:p(P),arithmeticOperator:p(P),logicOperator:p(P),bitwiseOperator:p(P),compareOperator:p(P),updateOperator:p(P),definitionOperator:p(P),typeOperator:p(P),controlOperator:p(P),punctuation:C,separator:p(C),bracket:T,angleBracket:p(T),squareBracket:p(T),paren:p(T),brace:p(T),content:y,heading:S,heading1:p(S),heading2:p(S),heading3:p(S),heading4:p(S),heading5:p(S),heading6:p(S),contentSeparator:p(y),list:p(y),quote:p(y),emphasis:p(y),strong:p(y),link:p(y),monospace:p(y),strikethrough:p(y),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:A,documentMeta:p(A),annotation:p(A),processingInstruction:p(A),definition:s.defineModifier("definition"),constant:s.defineModifier("constant"),function:s.defineModifier("function"),standard:s.defineModifier("standard"),local:s.defineModifier("local"),special:s.defineModifier("special")};for(let e in R){let t=R[e];t instanceof s&&(t.name=e)}u([{tag:R.link,class:"tok-link"},{tag:R.heading,class:"tok-heading"},{tag:R.emphasis,class:"tok-emphasis"},{tag:R.strong,class:"tok-strong"},{tag:R.keyword,class:"tok-keyword"},{tag:R.atom,class:"tok-atom"},{tag:R.bool,class:"tok-bool"},{tag:R.url,class:"tok-url"},{tag:R.labelName,class:"tok-labelName"},{tag:R.inserted,class:"tok-inserted"},{tag:R.deleted,class:"tok-deleted"},{tag:R.literal,class:"tok-literal"},{tag:R.string,class:"tok-string"},{tag:R.number,class:"tok-number"},{tag:[R.regexp,R.escape,R.special(R.string)],class:"tok-string2"},{tag:R.variableName,class:"tok-variableName"},{tag:R.local(R.variableName),class:"tok-variableName tok-local"},{tag:R.definition(R.variableName),class:"tok-variableName tok-definition"},{tag:R.special(R.variableName),class:"tok-variableName2"},{tag:R.definition(R.propertyName),class:"tok-propertyName tok-definition"},{tag:R.typeName,class:"tok-typeName"},{tag:R.namespace,class:"tok-namespace"},{tag:R.className,class:"tok-className"},{tag:R.macroName,class:"tok-macroName"},{tag:R.propertyName,class:"tok-propertyName"},{tag:R.operator,class:"tok-operator"},{tag:R.comment,class:"tok-comment"},{tag:R.meta,class:"tok-meta"},{tag:R.invalid,class:"tok-invalid"},{tag:R.punctuation,class:"tok-punctuation"}])},88316:function(e,t,n){"use strict";n.d(t,{IK:function(){return T},Jq:function(){return g},WQ:function(){return A}});var r=n(81557),i=n(35016);class s{constructor(e,t,n,r,i,s,o,a,l,c=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new s(e,[],t,n,n,0,[],0,r?new o(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n){this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(r,this.reducePos);return}let a=this.stack.length-(n-1)*3-(262144&e?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let h=a?this.stack[a-1]:0,u=this.bufferBase+this.buffer.length-h;if(r<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,e,u+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=i.getGoto(e,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,r=this.buffer.length;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t){e.buffer[r-2]=n;return}}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let e=!1;for(let t=i;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:i}=this.p;this.pos=r;let s=i.stateFlag(e,1);!s&&(r>n||t<=i.maxNode)&&(this.reducePos=r),this.pushState(e,s?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new s(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new a(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,i;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&n.push(t[r],i);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,i=this.stack.length-3*n;if(i<0||0>e.getGoto(this.stack[i],r,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new o(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class o{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class a{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}class l{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new l(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function c(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r<e.length;){let s=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),s+=i,n)break;s*=46}n?n[i++]=s:n=new t(s)}return n}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let u=new h;class f{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=u,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((n=t)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=u,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class d{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;m(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}d.prototype.contextual=d.prototype.fallback=d.prototype.extend=!1;class p{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?c(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,i=e.resolveOffset(1,1);if(m(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!n&&r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}p.prototype.contextual=d.prototype.fallback=d.prototype.extend=!1;class g{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function m(e,t,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;t:for(;(a&e[o])!=0;){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&a)>0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,r){let i=O(n,r,t);return i<0||O(n,r,e)<i}(n,t.token.value,i,s))){t.acceptToken(n);break}}let r=t.next,c=0,h=e[o+2];if(t.next<0&&h>c&&65535==e[n+3*h-3]){o=e[n+3*h-1];continue}for(;c<h;){let i=c+h>>1,s=n+i+(i<<1),a=e[s],l=e[s+1]||65536;if(r<a)h=i;else if(r>=l)c=i+1;else{o=e[s+2],t.advance();continue t}}break}}function O(e,t,n){for(let r=t,i;65535!=(i=e[r]);r++)if(i==n)return r-t;return -1}let v=void 0!==i&&i.env&&/\bparse\b/.test(i.env.LOG),x=null;function k(e,t,n){let i=e.cursor(r.vj.IncludeAnonymous);for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.to<t:i.from>t)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}class b{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?k(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?k(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],o=this.start[t]+n.positions[i];if(o>e)return this.nextStart=o,null;if(s instanceof r.mp){if(o==e){if(o<this.safeFrom)return null;let e=o+s.length;if(e<=this.safeTo){let t=s.prop(r.md.lookAhead);if(!t||e+t<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class y{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new h)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,s=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let r=0;r<i.length;r++){if((1<<r&s)==0)continue;let l=i[r],c=this.tokens[r];if((!n||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=s||c.context!=o)&&(this.updateCachedToken(c,l,e),c.mask=s,c.context=o),c.lookAhead>c.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||((n=new h).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new h,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){(1&i)==0?e.value=i>>1:e.extended=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let a=s.stateSlot(i,e?2:1);;a+=3){if(65535==o[a]){if(1==o[a+1])a=R(o,a+2);else{0==r&&2==o[a+1]&&(r=this.putAction(R(o,a+2),t,n,r));break}}o[a]==t&&(r=this.putAction(R(o,a+1),t,n,r))}return r}}class S{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new f(t,r),this.tokens=new y(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[s.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*e.bufferLength?new b(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<n.length;s++){let o=n[s];for(;;){if(this.tokens.mainToken=null,o.pos>r)i.push(o);else{if(this.advanceStack(o,i,n))continue;e||(e=[],t=[]),e.push(o);let r=this.tokens.getMainToken(o);t.push(r.value,r.end)}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return v&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw v&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return v&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort((e,t)=>t.score-e.score);i.length>e;)i.pop();i.some(e=>e.reducePos>r)&&this.recovering--}else if(i.length>1){r:for(let e=0;e<i.length-1;e++){let t=i[e];for(let n=e+1;n<i.length;n++){let r=i[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){if((t.score-r.score||t.buffer.length-r.buffer.length)>0)i.splice(n--,1);else{i.splice(e--,1);continue r}}}}i.length>12&&(i.sort((e,t)=>t.score-e.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let e=1;e<i.length;e++)i[e].pos<this.minStackPos&&(this.minStackPos=i[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:s}=this,o=v?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?s.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.md.contextHash)||0)==n))return e.useNode(a,i),v&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(a.type.id)})`),!0;if(!(a instanceof r.mp)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(l instanceof r.mp&&0==a.positions[0])a=l;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),v&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;r<l.length;){let a=l[r++],c=l[r++],h=l[r++],u=r==l.length||!n,f=u?e:e.split(),d=this.tokens.mainToken;if(f.apply(a,c,d?d.start:f.pos,h),v&&console.log(o+this.stackID(f)+` (via ${(65536&a)==0?"shift":`reduce of ${s.getName(65535&a)}`} for ${s.getName(c)} @ ${i}${f==e?"":", split"})`),u)return!0;f.pos>i?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return w(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let s=0;s<e.length;s++){let o=e[s],a=t[s<<1],l=t[(s<<1)+1],c=v?this.stackID(o)+" -> ":"";if(o.deadEnd&&(i||(i=!0,o.restart(),v&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let h=o.split(),u=c;for(let e=0;e<10&&h.forceReduce()&&(v&&console.log(u+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,n));e++)v&&(u=this.stackID(h)+" -> ");for(let e of o.recoverByInsert(a))v&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),v&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),w(o,n)):(!r||r.score<h.score)&&(r=h)}return r}stackToTree(e){return e.close(),r.mp.build({buffer:l.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(x||(x=new WeakMap)).get(e);return t||x.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function w(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class P{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}let C=e=>e;class T{constructor(e){this.start=e.start,this.shift=e.shift||C,this.reduce=e.reduce||C,this.reuse=e.reuse||C,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class A extends r._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),i=[];for(let e=0;e<t.length;e++)i.push([]);function s(e,t,n){i[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=r.md[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)s(r,e,t[n++]);else{let i=t[n+-r];for(let o=-r;o>0;o--)s(t[n++],e,i);n++}}}this.nodeSet=new r.Lj(t.map((t,s)=>r.Jq.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:i[s],top:n.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.L3;let o=c(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(Z),this.states=c(e.states,Uint32Array),this.data=c(e.stateData),this.goto=c(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new d(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new S(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return -1;for(let i=r[t+1];;){let t=r[i++],s=1&t,o=r[i++];if(s&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(s)return -1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i=this.stateSlot(e,r?2:1),s;;i+=3){if(65535==(s=n[i])){if(1==n[i+1])s=n[i=R(n,i+2)];else if(2==n[i+1])return R(n,i+2);else break}if(s==t||0==s)return R(n,i+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=R(this.data,n+2);else break}r=t(R(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=R(this.data,n+2);else break}if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(A.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=e.specializers.find(e=>e.from==n.external);if(!i)return n;let s=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=Z(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],i;65535!=(i=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[i]=1;return new P(e,n,r)}static deserialize(e){return new A(e)}}function R(e,t){return e[t]|e[t+1]<<16}function Z(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}},66150:function(e,t,n){"use strict";n.d(t,{Gm:function(){return i},Qy:function(){return a},ZF:function(){return l}});var r=n(80375);function i(e){return{onFetch:(t,n)=>{let i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[],h={pages:[],pageParams:[]},u=0,f=async()=>{let n=!1,f=e=>{(0,r.I4)(e,()=>t.signal,()=>n=!0)},d=(0,r.cG)(t.options,t.fetchOptions),p=async(e,i,s)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let o=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:s?"backward":"forward",meta:t.options.meta};return f(e),e})(),a=await d(o),{maxPages:l}=t.options,c=s?r.Ht:r.VX;return{pages:c(e.pages,a,l),pageParams:c(e.pageParams,i,l)}};if(a&&l.length){let e="backward"===a,t={pages:l,pageParams:c},n=(e?o:s)(i,t);h=await p(t,n,e)}else{let t=e??l.length;do{let e=0===u?c[0]??i.initialPageParam:s(i,h);if(u>0&&null==e)break;h=await p(h,e),u++}while(u<t)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function s(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function o(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function a(e,t){return!!t&&null!=s(e,t)}function l(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}},28116:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(68278),i=n(66150),s=class extends r.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,i.Gm)()})}getOptimisticResult(e){return e.behavior=(0,i.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:s,isRefetching:o,isError:a,isRefetchError:l}=r,c=n.fetchMeta?.fetchMore?.direction,h=a&&"forward"===c,u=s&&"forward"===c,f=a&&"backward"===c,d=s&&"backward"===c;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.Qy)(t,n.data),hasPreviousPage:(0,i.ZF)(t,n.data),isFetchNextPageError:h,isFetchingNextPage:u,isFetchPreviousPageError:f,isFetchingPreviousPage:d,isRefetchError:l&&!h&&!f,isRefetching:o&&!u&&!d}}},o=n(76221);function a(e,t){return(0,o.r)(e,s,t)}},81467:function(e,t,n){"use strict";function r(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)!function e(t,n){if("string"==typeof n)t.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)t.appendChild(n);else if(Array.isArray(n))for(var r=0;r<n.length;r++)e(t,n[r]);else throw RangeError("Unsupported child node: "+n)}(e,arguments[t]);return e}n.d(t,{Z:function(){return r}})},3698:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});let r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,i,s,o){let a=[],l=/^@(\w+)\b/.exec(t[0]),c=l&&"keyframes"==l[1];if(l&&null==i)return s.push(t[0]+";");for(let n in i){let o=i[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!l)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(r(n),o,a,c)}else null!=o&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(a.length||c)&&s.push((!n||l||o?t:t.map(n)).join(", ")+" {"+a.join(" ")+"}")}(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[r]||1;return s[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],s=n&&n.nonce;r?s&&r.setNonce(s):r=new l(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=a.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,a.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let s=e[t],o=this.modules.indexOf(s);if(o<i&&o>-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),n)for(let e=0;e<s.rules.length;e++)n.insertRule(s.rules[e],r++)}else{for(;i<o;)r+=this.modules[i++].rules.length;r+=s.rules.length,i++}}if(n)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}},81719:function(e,t,n){"use strict";n.d(t,{YG:function(){return c},uY:function(){return i},ue:function(){return r}});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in r)i.hasOwnProperty(l)||(i[l]=r[l]);function c(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]);