9remote 0.1.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 (1451) hide show
  1. package/dist/cli.cjs +86 -0
  2. package/dist/server.cjs +252 -0
  3. package/dist/standalone/.env +1 -0
  4. package/dist/standalone/.next/BUILD_ID +1 -0
  5. package/dist/standalone/.next/app-path-routes-manifest.json +9 -0
  6. package/dist/standalone/.next/build-manifest.json +21 -0
  7. package/dist/standalone/.next/package.json +1 -0
  8. package/dist/standalone/.next/prerender-manifest.json +186 -0
  9. package/dist/standalone/.next/required-server-files.json +164 -0
  10. package/dist/standalone/.next/routes-manifest.json +100 -0
  11. package/dist/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  12. package/dist/standalone/.next/server/app/_global-error/page/build-manifest.json +18 -0
  13. package/dist/standalone/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  14. package/dist/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  15. package/dist/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  16. package/dist/standalone/.next/server/app/_global-error/page.js +11 -0
  17. package/dist/standalone/.next/server/app/_global-error/page.js.map +5 -0
  18. package/dist/standalone/.next/server/app/_global-error/page.js.nft.json +1 -0
  19. package/dist/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
  20. package/dist/standalone/.next/server/app/_global-error.html +2 -0
  21. package/dist/standalone/.next/server/app/_global-error.meta +15 -0
  22. package/dist/standalone/.next/server/app/_global-error.rsc +13 -0
  23. package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  24. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +13 -0
  25. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
  26. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
  27. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  28. package/dist/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  29. package/dist/standalone/.next/server/app/_not-found/page/build-manifest.json +18 -0
  30. package/dist/standalone/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
  31. package/dist/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  32. package/dist/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  33. package/dist/standalone/.next/server/app/_not-found/page.js +14 -0
  34. package/dist/standalone/.next/server/app/_not-found/page.js.map +5 -0
  35. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +1 -0
  36. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
  37. package/dist/standalone/.next/server/app/_not-found.html +1 -0
  38. package/dist/standalone/.next/server/app/_not-found.meta +16 -0
  39. package/dist/standalone/.next/server/app/_not-found.rsc +14 -0
  40. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -0
  41. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  42. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
  43. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  44. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
  45. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  46. package/dist/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
  47. package/dist/standalone/.next/server/app/favicon.ico/route/build-manifest.json +11 -0
  48. package/dist/standalone/.next/server/app/favicon.ico/route.js +6 -0
  49. package/dist/standalone/.next/server/app/favicon.ico/route.js.map +5 -0
  50. package/dist/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  51. package/dist/standalone/.next/server/app/favicon.ico.body +0 -0
  52. package/dist/standalone/.next/server/app/favicon.ico.meta +1 -0
  53. package/dist/standalone/.next/server/app/index.html +2 -0
  54. package/dist/standalone/.next/server/app/index.meta +14 -0
  55. package/dist/standalone/.next/server/app/index.rsc +20 -0
  56. package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
  57. package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +20 -0
  58. package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +6 -0
  59. package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +5 -0
  60. package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +4 -0
  61. package/dist/standalone/.next/server/app/login/page/app-paths-manifest.json +3 -0
  62. package/dist/standalone/.next/server/app/login/page/build-manifest.json +18 -0
  63. package/dist/standalone/.next/server/app/login/page/next-font-manifest.json +11 -0
  64. package/dist/standalone/.next/server/app/login/page/react-loadable-manifest.json +1 -0
  65. package/dist/standalone/.next/server/app/login/page/server-reference-manifest.json +4 -0
  66. package/dist/standalone/.next/server/app/login/page.js +16 -0
  67. package/dist/standalone/.next/server/app/login/page.js.map +5 -0
  68. package/dist/standalone/.next/server/app/login/page.js.nft.json +1 -0
  69. package/dist/standalone/.next/server/app/login/page_client-reference-manifest.js +2 -0
  70. package/dist/standalone/.next/server/app/login.html +1 -0
  71. package/dist/standalone/.next/server/app/login.meta +15 -0
  72. package/dist/standalone/.next/server/app/login.rsc +20 -0
  73. package/dist/standalone/.next/server/app/login.segments/_full.segment.rsc +20 -0
  74. package/dist/standalone/.next/server/app/login.segments/_head.segment.rsc +6 -0
  75. package/dist/standalone/.next/server/app/login.segments/_index.segment.rsc +5 -0
  76. package/dist/standalone/.next/server/app/login.segments/_tree.segment.rsc +4 -0
  77. package/dist/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
  78. package/dist/standalone/.next/server/app/login.segments/login.segment.rsc +4 -0
  79. package/dist/standalone/.next/server/app/page/app-paths-manifest.json +3 -0
  80. package/dist/standalone/.next/server/app/page/build-manifest.json +18 -0
  81. package/dist/standalone/.next/server/app/page/next-font-manifest.json +11 -0
  82. package/dist/standalone/.next/server/app/page/react-loadable-manifest.json +1 -0
  83. package/dist/standalone/.next/server/app/page/server-reference-manifest.json +4 -0
  84. package/dist/standalone/.next/server/app/page.js +16 -0
  85. package/dist/standalone/.next/server/app/page.js.map +5 -0
  86. package/dist/standalone/.next/server/app/page.js.nft.json +1 -0
  87. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +2 -0
  88. package/dist/standalone/.next/server/app/remote/page/app-paths-manifest.json +3 -0
  89. package/dist/standalone/.next/server/app/remote/page/build-manifest.json +18 -0
  90. package/dist/standalone/.next/server/app/remote/page/next-font-manifest.json +11 -0
  91. package/dist/standalone/.next/server/app/remote/page/react-loadable-manifest.json +1 -0
  92. package/dist/standalone/.next/server/app/remote/page/server-reference-manifest.json +4 -0
  93. package/dist/standalone/.next/server/app/remote/page.js +16 -0
  94. package/dist/standalone/.next/server/app/remote/page.js.map +5 -0
  95. package/dist/standalone/.next/server/app/remote/page.js.nft.json +1 -0
  96. package/dist/standalone/.next/server/app/remote/page_client-reference-manifest.js +2 -0
  97. package/dist/standalone/.next/server/app/remote.html +1 -0
  98. package/dist/standalone/.next/server/app/remote.meta +15 -0
  99. package/dist/standalone/.next/server/app/remote.rsc +20 -0
  100. package/dist/standalone/.next/server/app/remote.segments/_full.segment.rsc +20 -0
  101. package/dist/standalone/.next/server/app/remote.segments/_head.segment.rsc +6 -0
  102. package/dist/standalone/.next/server/app/remote.segments/_index.segment.rsc +5 -0
  103. package/dist/standalone/.next/server/app/remote.segments/_tree.segment.rsc +4 -0
  104. package/dist/standalone/.next/server/app/remote.segments/remote/__PAGE__.segment.rsc +9 -0
  105. package/dist/standalone/.next/server/app/remote.segments/remote.segment.rsc +4 -0
  106. package/dist/standalone/.next/server/app/terminal/page/app-paths-manifest.json +3 -0
  107. package/dist/standalone/.next/server/app/terminal/page/build-manifest.json +18 -0
  108. package/dist/standalone/.next/server/app/terminal/page/next-font-manifest.json +11 -0
  109. package/dist/standalone/.next/server/app/terminal/page/react-loadable-manifest.json +50 -0
  110. package/dist/standalone/.next/server/app/terminal/page/server-reference-manifest.json +4 -0
  111. package/dist/standalone/.next/server/app/terminal/page.js +16 -0
  112. package/dist/standalone/.next/server/app/terminal/page.js.map +5 -0
  113. package/dist/standalone/.next/server/app/terminal/page.js.nft.json +1 -0
  114. package/dist/standalone/.next/server/app/terminal/page_client-reference-manifest.js +2 -0
  115. package/dist/standalone/.next/server/app/terminal.html +1 -0
  116. package/dist/standalone/.next/server/app/terminal.meta +15 -0
  117. package/dist/standalone/.next/server/app/terminal.rsc +20 -0
  118. package/dist/standalone/.next/server/app/terminal.segments/_full.segment.rsc +20 -0
  119. package/dist/standalone/.next/server/app/terminal.segments/_head.segment.rsc +6 -0
  120. package/dist/standalone/.next/server/app/terminal.segments/_index.segment.rsc +5 -0
  121. package/dist/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +4 -0
  122. package/dist/standalone/.next/server/app/terminal.segments/terminal/__PAGE__.segment.rsc +9 -0
  123. package/dist/standalone/.next/server/app/terminal.segments/terminal.segment.rsc +4 -0
  124. package/dist/standalone/.next/server/app-paths-manifest.json +9 -0
  125. package/dist/standalone/.next/server/chunks/[externals]_next_dist_a6d89067._.js +3 -0
  126. package/dist/standalone/.next/server/chunks/[root-of-the-server]__206abf59._.js +21 -0
  127. package/dist/standalone/.next/server/chunks/[turbopack]_runtime.js +795 -0
  128. package/dist/standalone/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_353150a5.js +3 -0
  129. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__088c94c6._.js +3 -0
  130. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__33465c9d._.js +3 -0
  131. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__38ed669f._.js +3 -0
  132. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__580a63f8._.js +3 -0
  133. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__6550089d._.js +10 -0
  134. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__834b2552._.js +3 -0
  135. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__97fe9eac._.js +3 -0
  136. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js +3 -0
  137. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__b7587aab._.js +3 -0
  138. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +4 -0
  139. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__bd295630._.js +3 -0
  140. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__bf281154._.js +3 -0
  141. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__c4510a54._.js +7 -0
  142. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__e4e3c753._.js +3 -0
  143. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__f7dfa2fb._.js +3 -0
  144. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__f8ca6255._.js +3 -0
  145. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__fc4e94a9._.js +3 -0
  146. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__fd2dd54f._.js +3 -0
  147. package/dist/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +795 -0
  148. package/dist/standalone/.next/server/chunks/ssr/_07720ad9._.js +3 -0
  149. package/dist/standalone/.next/server/chunks/ssr/_66373002._.js +6 -0
  150. package/dist/standalone/.next/server/chunks/ssr/_76e2534b._.js +3 -0
  151. package/dist/standalone/.next/server/chunks/ssr/_8c36d2f2._.js +4 -0
  152. package/dist/standalone/.next/server/chunks/ssr/_9a2bdfca._.js +4 -0
  153. package/dist/standalone/.next/server/chunks/ssr/_d39984f3._.js +4 -0
  154. package/dist/standalone/.next/server/chunks/ssr/_db668bbe._.js +4 -0
  155. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +3 -0
  156. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_554ec2bf.js +3 -0
  157. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_0e9aafc0.js +3 -0
  158. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js +3 -0
  159. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_remote_page_actions_432c4fd9.js +3 -0
  160. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_terminal_page_actions_d3864e5e.js +3 -0
  161. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_12287b3d._.js +4 -0
  162. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_81959fb0._.js +3 -0
  163. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +3 -0
  164. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +3 -0
  165. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +3 -0
  166. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +3 -0
  167. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_5e974bae.js +4 -0
  168. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +6 -0
  169. package/dist/standalone/.next/server/chunks/ssr/src_app_5b2047f8._.js +3 -0
  170. package/dist/standalone/.next/server/chunks/ssr/src_app_remote_page_b73607a7.js +3 -0
  171. package/dist/standalone/.next/server/functions-config-manifest.json +4 -0
  172. package/dist/standalone/.next/server/middleware-build-manifest.js +22 -0
  173. package/dist/standalone/.next/server/middleware-manifest.json +6 -0
  174. package/dist/standalone/.next/server/next-font-manifest.js +1 -0
  175. package/dist/standalone/.next/server/next-font-manifest.json +27 -0
  176. package/dist/standalone/.next/server/pages/404.html +1 -0
  177. package/dist/standalone/.next/server/pages/500.html +2 -0
  178. package/dist/standalone/.next/server/pages-manifest.json +4 -0
  179. package/dist/standalone/.next/server/server-reference-manifest.js +1 -0
  180. package/dist/standalone/.next/server/server-reference-manifest.json +5 -0
  181. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_buildManifest.js +11 -0
  182. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_clientMiddlewareManifest.json +1 -0
  183. package/dist/standalone/.next/static/IPqjeXipuNFZG_X5UK15U/_ssgManifest.js +1 -0
  184. package/dist/standalone/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
  185. package/dist/standalone/.next/static/chunks/31da8ada704e8c5a.js +2 -0
  186. package/dist/standalone/.next/static/chunks/38dc5a4ee8924446.js +1 -0
  187. package/dist/standalone/.next/static/chunks/54d5670f5fa2abbe.css +1 -0
  188. package/dist/standalone/.next/static/chunks/6e927426cfb7ff62.js +1 -0
  189. package/dist/standalone/.next/static/chunks/7a813d33bab30d47.js +1 -0
  190. package/dist/standalone/.next/static/chunks/80468ae4928757c6.js +1 -0
  191. package/dist/standalone/.next/static/chunks/9053b2c4bd303667.js +1 -0
  192. package/dist/standalone/.next/static/chunks/983bde94cd1a5eb5.css +1 -0
  193. package/dist/standalone/.next/static/chunks/9b6ba4b26e676f37.js +1 -0
  194. package/dist/standalone/.next/static/chunks/a00216a3a9acfbe7.js +1 -0
  195. package/dist/standalone/.next/static/chunks/a5898828bec6764a.js +20 -0
  196. package/dist/standalone/.next/static/chunks/a6dad97d9634a72d.js +1 -0
  197. package/dist/standalone/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  198. package/dist/standalone/.next/static/chunks/a979d185d8d30636.css +3 -0
  199. package/dist/standalone/.next/static/chunks/abd55f190fad1a7b.js +1 -0
  200. package/dist/standalone/.next/static/chunks/b10cda7bb322f42d.js +1 -0
  201. package/dist/standalone/.next/static/chunks/b616af14cb3429a5.js +1 -0
  202. package/dist/standalone/.next/static/chunks/b74cedaee82d4422.js +1 -0
  203. package/dist/standalone/.next/static/chunks/b9da3e2108613d68.js +1 -0
  204. package/dist/standalone/.next/static/chunks/bbfc11f688f3c771.js +1 -0
  205. package/dist/standalone/.next/static/chunks/bcc7033ccd6c8fa9.js +1 -0
  206. package/dist/standalone/.next/static/chunks/c837e90690d51fa2.js +4 -0
  207. package/dist/standalone/.next/static/chunks/c83ada0dc165c069.js +1 -0
  208. package/dist/standalone/.next/static/chunks/d2a6cde8b71287ce.js +1 -0
  209. package/dist/standalone/.next/static/chunks/d59f830a2b8e768c.js +1 -0
  210. package/dist/standalone/.next/static/chunks/daea4e46342da532.js +1 -0
  211. package/dist/standalone/.next/static/chunks/ee14715dfc7e4ab9.js +1 -0
  212. package/dist/standalone/.next/static/chunks/fa93d5d9cfeba174.js +1 -0
  213. package/dist/standalone/.next/static/chunks/ff1a16fafef87110.js +1 -0
  214. package/dist/standalone/.next/static/chunks/turbopack-05d7f903ec930a40.js +4 -0
  215. package/dist/standalone/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
  216. package/dist/standalone/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
  217. package/dist/standalone/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
  218. package/dist/standalone/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
  219. package/dist/standalone/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
  220. package/dist/standalone/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
  221. package/dist/standalone/.next/static/media/favicon.0b3bf435.ico +0 -0
  222. package/dist/standalone/node_modules/@img/colour/color.cjs +1594 -0
  223. package/dist/standalone/node_modules/@img/colour/index.cjs +1 -0
  224. package/dist/standalone/node_modules/@img/colour/package.json +45 -0
  225. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  226. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/package.json +40 -0
  227. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +46 -0
  228. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +220 -0
  229. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +1 -0
  230. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  231. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/package.json +36 -0
  232. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +30 -0
  233. package/dist/standalone/node_modules/@next/env/dist/index.js +1 -0
  234. package/dist/standalone/node_modules/@next/env/package.json +36 -0
  235. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  236. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  237. package/dist/standalone/node_modules/@swc/helpers/package.json +471 -0
  238. package/dist/standalone/node_modules/client-only/index.js +0 -0
  239. package/dist/standalone/node_modules/client-only/package.json +19 -0
  240. package/dist/standalone/node_modules/detect-libc/lib/detect-libc.js +313 -0
  241. package/dist/standalone/node_modules/detect-libc/lib/elf.js +39 -0
  242. package/dist/standalone/node_modules/detect-libc/lib/filesystem.js +51 -0
  243. package/dist/standalone/node_modules/detect-libc/lib/process.js +24 -0
  244. package/dist/standalone/node_modules/detect-libc/package.json +44 -0
  245. package/dist/standalone/node_modules/next/dist/build/adapter/build-complete.js +993 -0
  246. package/dist/standalone/node_modules/next/dist/build/after-production-compile.js +95 -0
  247. package/dist/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +205 -0
  248. package/dist/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +601 -0
  249. package/dist/standalone/node_modules/next/dist/build/analysis/parse-module.js +20 -0
  250. package/dist/standalone/node_modules/next/dist/build/analyze/index.js +242 -0
  251. package/dist/standalone/node_modules/next/dist/build/babel/loader/get-config.js +429 -0
  252. package/dist/standalone/node_modules/next/dist/build/babel/loader/index.js +56 -0
  253. package/dist/standalone/node_modules/next/dist/build/babel/loader/transform.js +103 -0
  254. package/dist/standalone/node_modules/next/dist/build/babel/loader/util.js +20 -0
  255. package/dist/standalone/node_modules/next/dist/build/babel/plugins/commonjs.js +42 -0
  256. package/dist/standalone/node_modules/next/dist/build/babel/plugins/jsx-pragma.js +74 -0
  257. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +36 -0
  258. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-page-config.js +104 -0
  259. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +29 -0
  260. package/dist/standalone/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +345 -0
  261. package/dist/standalone/node_modules/next/dist/build/babel/plugins/optimize-hook-destructuring.js +60 -0
  262. package/dist/standalone/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js +145 -0
  263. package/dist/standalone/node_modules/next/dist/build/babel/preset.js +250 -0
  264. package/dist/standalone/node_modules/next/dist/build/build-context.js +58 -0
  265. package/dist/standalone/node_modules/next/dist/build/collect-build-traces.js +536 -0
  266. package/dist/standalone/node_modules/next/dist/build/compiler.js +88 -0
  267. package/dist/standalone/node_modules/next/dist/build/create-compiler-aliases.js +436 -0
  268. package/dist/standalone/node_modules/next/dist/build/define-env.js +237 -0
  269. package/dist/standalone/node_modules/next/dist/build/duration-to-string.js +99 -0
  270. package/dist/standalone/node_modules/next/dist/build/entries.js +798 -0
  271. package/dist/standalone/node_modules/next/dist/build/generate-build-id.js +31 -0
  272. package/dist/standalone/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  273. package/dist/standalone/node_modules/next/dist/build/get-babel-config-file.js +35 -0
  274. package/dist/standalone/node_modules/next/dist/build/get-babel-loader-config.js +109 -0
  275. package/dist/standalone/node_modules/next/dist/build/get-static-info-including-layouts.js +81 -0
  276. package/dist/standalone/node_modules/next/dist/build/handle-entrypoints.js +176 -0
  277. package/dist/standalone/node_modules/next/dist/build/handle-externals.js +290 -0
  278. package/dist/standalone/node_modules/next/dist/build/index.js +2677 -0
  279. package/dist/standalone/node_modules/next/dist/build/is-writeable.js +26 -0
  280. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/empty.js +10 -0
  281. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/fileMock.js +15 -0
  282. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js +20 -0
  283. package/dist/standalone/node_modules/next/dist/build/jest/__mocks__/styleMock.js +10 -0
  284. package/dist/standalone/node_modules/next/dist/build/jest/jest.js +227 -0
  285. package/dist/standalone/node_modules/next/dist/build/jest/object-proxy.js +50 -0
  286. package/dist/standalone/node_modules/next/dist/build/load-entrypoint.js +30 -0
  287. package/dist/standalone/node_modules/next/dist/build/load-jsconfig.js +162 -0
  288. package/dist/standalone/node_modules/next/dist/build/lockfile.js +160 -0
  289. package/dist/standalone/node_modules/next/dist/build/manifests/formatter/format-manifest.js +19 -0
  290. package/dist/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +85 -0
  291. package/dist/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +172 -0
  292. package/dist/standalone/node_modules/next/dist/build/next-dir-paths.js +37 -0
  293. package/dist/standalone/node_modules/next/dist/build/normalize-catchall-routes.js +76 -0
  294. package/dist/standalone/node_modules/next/dist/build/output/format.js +84 -0
  295. package/dist/standalone/node_modules/next/dist/build/output/index.js +186 -0
  296. package/dist/standalone/node_modules/next/dist/build/output/log.js +135 -0
  297. package/dist/standalone/node_modules/next/dist/build/output/store.js +204 -0
  298. package/dist/standalone/node_modules/next/dist/build/page-extensions-type.js +6 -0
  299. package/dist/standalone/node_modules/next/dist/build/polyfills/fetch/index.js +6 -0
  300. package/dist/standalone/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js +7 -0
  301. package/dist/standalone/node_modules/next/dist/build/polyfills/object-assign.js +6 -0
  302. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/auto.js +4 -0
  303. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/implementation.js +4 -0
  304. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/index.js +19 -0
  305. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/polyfill.js +6 -0
  306. package/dist/standalone/node_modules/next/dist/build/polyfills/object.assign/shim.js +6 -0
  307. package/dist/standalone/node_modules/next/dist/build/polyfills/polyfill-module.js +1 -0
  308. package/dist/standalone/node_modules/next/dist/build/polyfills/polyfill-nomodule.js +1 -0
  309. package/dist/standalone/node_modules/next/dist/build/polyfills/process.js +5 -0
  310. package/dist/standalone/node_modules/next/dist/build/preview-key-utils.js +91 -0
  311. package/dist/standalone/node_modules/next/dist/build/progress.js +151 -0
  312. package/dist/standalone/node_modules/next/dist/build/rendering-mode.js +26 -0
  313. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +145 -0
  314. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +137 -0
  315. package/dist/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +52 -0
  316. package/dist/standalone/node_modules/next/dist/build/segment-config/middleware/middleware-config.js +121 -0
  317. package/dist/standalone/node_modules/next/dist/build/segment-config/pages/pages-segment-config.js +62 -0
  318. package/dist/standalone/node_modules/next/dist/build/sort-by-page-exts.js +30 -0
  319. package/dist/standalone/node_modules/next/dist/build/spinner.js +138 -0
  320. package/dist/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  321. package/dist/standalone/node_modules/next/dist/build/static-paths/app.js +682 -0
  322. package/dist/standalone/node_modules/next/dist/build/static-paths/pages.js +169 -0
  323. package/dist/standalone/node_modules/next/dist/build/static-paths/types.js +6 -0
  324. package/dist/standalone/node_modules/next/dist/build/static-paths/utils.js +119 -0
  325. package/dist/standalone/node_modules/next/dist/build/swc/helpers.js +15 -0
  326. package/dist/standalone/node_modules/next/dist/build/swc/index.js +1271 -0
  327. package/dist/standalone/node_modules/next/dist/build/swc/install-bindings.js +30 -0
  328. package/dist/standalone/node_modules/next/dist/build/swc/jest-transformer.js +75 -0
  329. package/dist/standalone/node_modules/next/dist/build/swc/options.js +386 -0
  330. package/dist/standalone/node_modules/next/dist/build/swc/types.js +6 -0
  331. package/dist/standalone/node_modules/next/dist/build/templates/app-page.js +1071 -0
  332. package/dist/standalone/node_modules/next/dist/build/templates/app-route.js +420 -0
  333. package/dist/standalone/node_modules/next/dist/build/templates/edge-app-route.js +85 -0
  334. package/dist/standalone/node_modules/next/dist/build/templates/edge-ssr-app.js +309 -0
  335. package/dist/standalone/node_modules/next/dist/build/templates/edge-ssr.js +335 -0
  336. package/dist/standalone/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  337. package/dist/standalone/node_modules/next/dist/build/templates/helpers.js +36 -0
  338. package/dist/standalone/node_modules/next/dist/build/templates/middleware.js +115 -0
  339. package/dist/standalone/node_modules/next/dist/build/templates/pages-api.js +194 -0
  340. package/dist/standalone/node_modules/next/dist/build/templates/pages-edge-api.js +39 -0
  341. package/dist/standalone/node_modules/next/dist/build/templates/pages.js +155 -0
  342. package/dist/standalone/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  343. package/dist/standalone/node_modules/next/dist/build/turbopack-build/impl.js +244 -0
  344. package/dist/standalone/node_modules/next/dist/build/turbopack-build/index.js +85 -0
  345. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/env.js +29 -0
  346. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/helpers.js +104 -0
  347. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/index.js +30 -0
  348. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/result.js +51 -0
  349. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/tcp.js +41 -0
  350. package/dist/standalone/node_modules/next/dist/build/turborepo-access-trace/types.js +8 -0
  351. package/dist/standalone/node_modules/next/dist/build/type-check.js +151 -0
  352. package/dist/standalone/node_modules/next/dist/build/utils.js +1261 -0
  353. package/dist/standalone/node_modules/next/dist/build/validate-app-paths.js +242 -0
  354. package/dist/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server-experimental.js +32 -0
  355. package/dist/standalone/node_modules/next/dist/build/webpack/alias/react-dom-server.js +32 -0
  356. package/dist/standalone/node_modules/next/dist/build/webpack/cache-invalidation.js +91 -0
  357. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/base.js +82 -0
  358. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +562 -0
  359. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/client.js +49 -0
  360. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/file-resolve.js +21 -0
  361. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/getCssModuleLocalIdent.js +37 -0
  362. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +65 -0
  363. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/index.js +22 -0
  364. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +86 -0
  365. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +62 -0
  366. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/messages.js +45 -0
  367. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +190 -0
  368. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/images/index.js +42 -0
  369. package/dist/standalone/node_modules/next/dist/build/webpack/config/blocks/images/messages.js +16 -0
  370. package/dist/standalone/node_modules/next/dist/build/webpack/config/helpers.js +78 -0
  371. package/dist/standalone/node_modules/next/dist/build/webpack/config/index.js +46 -0
  372. package/dist/standalone/node_modules/next/dist/build/webpack/config/utils.js +13 -0
  373. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +32 -0
  374. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +93 -0
  375. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +287 -0
  376. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/index.js +36 -0
  377. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-icss-parser.js +105 -0
  378. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +220 -0
  379. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +307 -0
  380. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js +83 -0
  381. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/getUrl.js +23 -0
  382. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/utils.js +459 -0
  383. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/devtool/devtool-style-inject.js +129 -0
  384. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/empty-loader.js +14 -0
  385. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/error-loader.js +36 -0
  386. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/get-module-build-info.js +15 -0
  387. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/codegen.js +156 -0
  388. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +27 -0
  389. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +17 -0
  390. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +429 -0
  391. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +94 -0
  392. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/utils.js +58 -0
  393. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/discover.js +122 -0
  394. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/resolve-route-data.js +171 -0
  395. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/metadata/types.js +7 -0
  396. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/modularize-import-loader.js +39 -0
  397. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/create-app-route-code.js +65 -0
  398. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +765 -0
  399. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-barrel-loader.js +268 -0
  400. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js +37 -0
  401. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +51 -0
  402. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-function-loader.js +52 -0
  403. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +93 -0
  404. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-error-browser-binary-loader.js +21 -0
  405. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js +32 -0
  406. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-entry-loader.js +45 -0
  407. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-client-module-loader.js +49 -0
  408. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +56 -0
  409. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-client-wrapper.js +33 -0
  410. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/action-validate.js +27 -0
  411. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/cache-wrapper.js +13 -0
  412. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +211 -0
  413. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/module-proxy.js +14 -0
  414. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/server-reference.js +13 -0
  415. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-loader/track-dynamic-import.js +13 -0
  416. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-flight-server-reference-proxy-loader.js +29 -0
  417. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js +133 -0
  418. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-font-loader/postcss-next-font.js +169 -0
  419. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/blur.js +73 -0
  420. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-image-loader/index.js +80 -0
  421. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-invalid-import-error-loader.js +28 -0
  422. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-image-loader.js +158 -0
  423. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js +342 -0
  424. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-asset-loader.js +46 -0
  425. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +59 -0
  426. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-wasm-loader.js +46 -0
  427. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +164 -0
  428. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +141 -0
  429. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/index.js +220 -0
  430. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoLinkTag.js +61 -0
  431. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/injectStylesIntoStyleTag.js +221 -0
  432. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-style-loader/runtime/isEqualLocals.js +27 -0
  433. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js +241 -0
  434. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +40 -0
  435. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +35 -0
  436. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +125 -0
  437. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/utils.js +86 -0
  438. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +101 -0
  439. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +78 -0
  440. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +190 -0
  441. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +92 -0
  442. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/value-processor.js +97 -0
  443. package/dist/standalone/node_modules/next/dist/build/webpack/loaders/utils.js +100 -0
  444. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +79 -0
  445. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +183 -0
  446. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/copy-file-plugin.js +67 -0
  447. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/css-chunking-plugin.js +277 -0
  448. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/css-minimizer-plugin.js +92 -0
  449. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js +78 -0
  450. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js +191 -0
  451. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +793 -0
  452. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +420 -0
  453. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/force-complete-runtime.js +42 -0
  454. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/jsconfig-paths-plugin.js +219 -0
  455. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.js +114 -0
  456. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +614 -0
  457. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/mini-css-extract-plugin.js +24 -0
  458. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/minify-webpack-plugin/src/index.js +188 -0
  459. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.js +120 -0
  460. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +542 -0
  461. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +428 -0
  462. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/shared.js +14 -0
  463. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +57 -0
  464. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/optional-peer-dependency-resolve-plugin.js +45 -0
  465. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.js +146 -0
  466. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/profiling-plugin.js +282 -0
  467. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js +169 -0
  468. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/rspack-flight-client-entry-plugin.js +97 -0
  469. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/rspack-profiling-plugin.js +62 -0
  470. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +190 -0
  471. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +62 -0
  472. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.js +188 -0
  473. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/update-telemetry-loader-context-from-swc.js +28 -0
  474. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.js +43 -0
  475. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/getModuleTrace.js +89 -0
  476. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/index.js +43 -0
  477. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parse-dynamic-code-evaluation-error.js +19 -0
  478. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseBabel.js +29 -0
  479. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseCss.js +29 -0
  480. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextAppLoaderError.js +26 -0
  481. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextFontError.js +33 -0
  482. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNextInvalidImportError.js +26 -0
  483. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +166 -0
  484. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +42 -0
  485. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/simpleWebpackError.js +18 -0
  486. package/dist/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/webpackModuleError.js +138 -0
  487. package/dist/standalone/node_modules/next/dist/build/webpack/stringify-request.js +15 -0
  488. package/dist/standalone/node_modules/next/dist/build/webpack/utils.js +109 -0
  489. package/dist/standalone/node_modules/next/dist/build/webpack-build/impl.js +381 -0
  490. package/dist/standalone/node_modules/next/dist/build/webpack-build/index.js +179 -0
  491. package/dist/standalone/node_modules/next/dist/build/webpack-config-rules/resolve.js +55 -0
  492. package/dist/standalone/node_modules/next/dist/build/webpack-config.js +2343 -0
  493. package/dist/standalone/node_modules/next/dist/build/worker.js +35 -0
  494. package/dist/standalone/node_modules/next/dist/build/write-build-id.js +19 -0
  495. package/dist/standalone/node_modules/next/dist/cli/next-test.js +169 -0
  496. package/dist/standalone/node_modules/next/dist/client/add-base-path.js +24 -0
  497. package/dist/standalone/node_modules/next/dist/client/app-build-id.js +49 -0
  498. package/dist/standalone/node_modules/next/dist/client/app-call-server.js +34 -0
  499. package/dist/standalone/node_modules/next/dist/client/app-find-source-map-url.js +38 -0
  500. package/dist/standalone/node_modules/next/dist/client/assign-location.js +29 -0
  501. package/dist/standalone/node_modules/next/dist/client/components/app-router-announcer.js +78 -0
  502. package/dist/standalone/node_modules/next/dist/client/components/app-router-headers.js +128 -0
  503. package/dist/standalone/node_modules/next/dist/client/components/app-router-instance.js +319 -0
  504. package/dist/standalone/node_modules/next/dist/client/components/app-router-utils.js +62 -0
  505. package/dist/standalone/node_modules/next/dist/client/components/app-router.js +495 -0
  506. package/dist/standalone/node_modules/next/dist/client/components/builtin/default.js +35 -0
  507. package/dist/standalone/node_modules/next/dist/client/components/builtin/global-error.js +82 -0
  508. package/dist/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +52 -0
  509. package/dist/standalone/node_modules/next/dist/client/components/error-boundary.js +134 -0
  510. package/dist/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +86 -0
  511. package/dist/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +41 -0
  512. package/dist/standalone/node_modules/next/dist/client/components/forbidden.js +48 -0
  513. package/dist/standalone/node_modules/next/dist/client/components/handle-isr-error.js +31 -0
  514. package/dist/standalone/node_modules/next/dist/client/components/hooks-server-context.js +42 -0
  515. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +125 -0
  516. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +72 -0
  517. package/dist/standalone/node_modules/next/dist/client/components/is-next-router-error.js +23 -0
  518. package/dist/standalone/node_modules/next/dist/client/components/links.js +292 -0
  519. package/dist/standalone/node_modules/next/dist/client/components/match-segments.js +32 -0
  520. package/dist/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +61 -0
  521. package/dist/standalone/node_modules/next/dist/client/components/navigation-devtools.js +126 -0
  522. package/dist/standalone/node_modules/next/dist/client/components/navigation-untracked.js +65 -0
  523. package/dist/standalone/node_modules/next/dist/client/components/navigation.js +198 -0
  524. package/dist/standalone/node_modules/next/dist/client/components/navigation.react-server.js +72 -0
  525. package/dist/standalone/node_modules/next/dist/client/components/not-found.js +42 -0
  526. package/dist/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +41 -0
  527. package/dist/standalone/node_modules/next/dist/client/components/redirect-boundary.js +107 -0
  528. package/dist/standalone/node_modules/next/dist/client/components/redirect-error.js +52 -0
  529. package/dist/standalone/node_modules/next/dist/client/components/redirect-status-code.js +24 -0
  530. package/dist/standalone/node_modules/next/dist/client/components/redirect.js +91 -0
  531. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +128 -0
  532. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +21 -0
  533. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +59 -0
  534. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +32 -0
  535. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +340 -0
  536. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +66 -0
  537. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +51 -0
  538. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +1129 -0
  539. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +64 -0
  540. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +38 -0
  541. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +23 -0
  542. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +168 -0
  543. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +68 -0
  544. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +78 -0
  545. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +292 -0
  546. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +56 -0
  547. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +61 -0
  548. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +66 -0
  549. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +60 -0
  550. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +28 -0
  551. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +305 -0
  552. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +1432 -0
  553. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +143 -0
  554. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +459 -0
  555. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +31 -0
  556. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +1150 -0
  557. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/types.js +69 -0
  558. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +216 -0
  559. package/dist/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +42 -0
  560. package/dist/standalone/node_modules/next/dist/client/components/unauthorized.js +49 -0
  561. package/dist/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +39 -0
  562. package/dist/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +23 -0
  563. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +28 -0
  564. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +25 -0
  565. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +32 -0
  566. package/dist/standalone/node_modules/next/dist/client/components/use-action-queue.js +102 -0
  567. package/dist/standalone/node_modules/next/dist/client/dev/debug-channel.js +72 -0
  568. package/dist/standalone/node_modules/next/dist/client/flight-data-helpers.js +219 -0
  569. package/dist/standalone/node_modules/next/dist/client/has-base-path.js +23 -0
  570. package/dist/standalone/node_modules/next/dist/client/lib/console.js +177 -0
  571. package/dist/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +36 -0
  572. package/dist/standalone/node_modules/next/dist/client/remove-base-path.js +32 -0
  573. package/dist/standalone/node_modules/next/dist/client/route-params.js +230 -0
  574. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +339 -0
  575. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +1 -0
  576. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +46 -0
  577. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +1 -0
  578. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -0
  579. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -0
  580. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -0
  581. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +5 -0
  582. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +18713 -0
  583. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +1 -0
  584. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +44 -0
  585. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -0
  586. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -0
  587. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +1 -0
  588. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/package.json +1 -0
  589. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -0
  590. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +1 -0
  591. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +1 -0
  592. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/package.json +1 -0
  593. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +1 -0
  594. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/package.json +1 -0
  595. package/dist/standalone/node_modules/next/dist/compiled/async-retry/index.js +1 -0
  596. package/dist/standalone/node_modules/next/dist/compiled/async-retry/package.json +1 -0
  597. package/dist/standalone/node_modules/next/dist/compiled/async-sema/index.js +1 -0
  598. package/dist/standalone/node_modules/next/dist/compiled/async-sema/package.json +1 -0
  599. package/dist/standalone/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
  600. package/dist/standalone/node_modules/next/dist/compiled/babel/package.json +1 -0
  601. package/dist/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +1 -0
  602. package/dist/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +1 -0
  603. package/dist/standalone/node_modules/next/dist/compiled/busboy/index.js +1 -0
  604. package/dist/standalone/node_modules/next/dist/compiled/busboy/package.json +1 -0
  605. package/dist/standalone/node_modules/next/dist/compiled/bytes/index.js +8 -0
  606. package/dist/standalone/node_modules/next/dist/compiled/bytes/package.json +1 -0
  607. package/dist/standalone/node_modules/next/dist/compiled/ci-info/index.js +1 -0
  608. package/dist/standalone/node_modules/next/dist/compiled/ci-info/package.json +1 -0
  609. package/dist/standalone/node_modules/next/dist/compiled/commander/index.js +1 -0
  610. package/dist/standalone/node_modules/next/dist/compiled/commander/package.json +1 -0
  611. package/dist/standalone/node_modules/next/dist/compiled/comment-json/index.js +7 -0
  612. package/dist/standalone/node_modules/next/dist/compiled/comment-json/package.json +1 -0
  613. package/dist/standalone/node_modules/next/dist/compiled/compression/index.js +58 -0
  614. package/dist/standalone/node_modules/next/dist/compiled/compression/package.json +1 -0
  615. package/dist/standalone/node_modules/next/dist/compiled/conf/index.js +15 -0
  616. package/dist/standalone/node_modules/next/dist/compiled/conf/package.json +1 -0
  617. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/index.js +6 -0
  618. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/package.json +1 -0
  619. package/dist/standalone/node_modules/next/dist/compiled/cookie/index.js +7 -0
  620. package/dist/standalone/node_modules/next/dist/compiled/cookie/package.json +1 -0
  621. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +1 -0
  622. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/package.json +1 -0
  623. package/dist/standalone/node_modules/next/dist/compiled/debug/index.js +1 -0
  624. package/dist/standalone/node_modules/next/dist/compiled/debug/package.json +1 -0
  625. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +1 -0
  626. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/package.json +1 -0
  627. package/dist/standalone/node_modules/next/dist/compiled/find-up/index.js +1 -0
  628. package/dist/standalone/node_modules/next/dist/compiled/find-up/package.json +1 -0
  629. package/dist/standalone/node_modules/next/dist/compiled/fresh/index.js +8 -0
  630. package/dist/standalone/node_modules/next/dist/compiled/fresh/package.json +1 -0
  631. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/index.js +34 -0
  632. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/package.json +1 -0
  633. package/dist/standalone/node_modules/next/dist/compiled/image-detector/detector.js +1 -0
  634. package/dist/standalone/node_modules/next/dist/compiled/image-size/index.js +1 -0
  635. package/dist/standalone/node_modules/next/dist/compiled/image-size/package.json +1 -0
  636. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +1 -0
  637. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/package.json +1 -0
  638. package/dist/standalone/node_modules/next/dist/compiled/is-animated/index.js +1 -0
  639. package/dist/standalone/node_modules/next/dist/compiled/is-animated/package.json +1 -0
  640. package/dist/standalone/node_modules/next/dist/compiled/is-docker/index.js +1 -0
  641. package/dist/standalone/node_modules/next/dist/compiled/is-docker/package.json +1 -0
  642. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/index.js +1 -0
  643. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/package.json +1 -0
  644. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +11 -0
  645. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +1 -0
  646. package/dist/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +1 -0
  647. package/dist/standalone/node_modules/next/dist/compiled/nanoid/package.json +1 -0
  648. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -0
  649. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +24 -0
  650. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +6 -0
  651. package/dist/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +20 -0
  652. package/dist/standalone/node_modules/next/dist/compiled/p-limit/index.js +1 -0
  653. package/dist/standalone/node_modules/next/dist/compiled/p-limit/package.json +1 -0
  654. package/dist/standalone/node_modules/next/dist/compiled/p-queue/index.js +1 -0
  655. package/dist/standalone/node_modules/next/dist/compiled/p-queue/package.json +1 -0
  656. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/index.js +1 -0
  657. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/package.json +1 -0
  658. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +1 -0
  659. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/package.json +1 -0
  660. package/dist/standalone/node_modules/next/dist/compiled/picomatch/index.js +1 -0
  661. package/dist/standalone/node_modules/next/dist/compiled/picomatch/package.json +1 -0
  662. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +133 -0
  663. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +130 -0
  664. package/dist/standalone/node_modules/next/dist/compiled/react-is/index.js +7 -0
  665. package/dist/standalone/node_modules/next/dist/compiled/react-is/package.json +26 -0
  666. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/package.json +19 -0
  667. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +729 -0
  668. package/dist/standalone/node_modules/next/dist/compiled/semver/index.js +1 -0
  669. package/dist/standalone/node_modules/next/dist/compiled/semver/package.json +1 -0
  670. package/dist/standalone/node_modules/next/dist/compiled/send/index.js +70 -0
  671. package/dist/standalone/node_modules/next/dist/compiled/send/package.json +1 -0
  672. package/dist/standalone/node_modules/next/dist/compiled/source-map/package.json +1 -0
  673. package/dist/standalone/node_modules/next/dist/compiled/source-map/source-map.js +1 -0
  674. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/package.json +1 -0
  675. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -0
  676. package/dist/standalone/node_modules/next/dist/compiled/string-hash/index.js +1 -0
  677. package/dist/standalone/node_modules/next/dist/compiled/string-hash/package.json +1 -0
  678. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +1 -0
  679. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/package.json +1 -0
  680. package/dist/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +1 -0
  681. package/dist/standalone/node_modules/next/dist/compiled/superstruct/package.json +1 -0
  682. package/dist/standalone/node_modules/next/dist/compiled/tar/index.js +1 -0
  683. package/dist/standalone/node_modules/next/dist/compiled/tar/package.json +1 -0
  684. package/dist/standalone/node_modules/next/dist/compiled/text-table/index.js +1 -0
  685. package/dist/standalone/node_modules/next/dist/compiled/text-table/package.json +1 -0
  686. package/dist/standalone/node_modules/next/dist/compiled/watchpack/package.json +1 -0
  687. package/dist/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +1 -0
  688. package/dist/standalone/node_modules/next/dist/compiled/ws/index.js +1 -0
  689. package/dist/standalone/node_modules/next/dist/compiled/ws/package.json +1 -0
  690. package/dist/standalone/node_modules/next/dist/compiled/zod/index.cjs +1 -0
  691. package/dist/standalone/node_modules/next/dist/compiled/zod/package.json +1 -0
  692. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +1 -0
  693. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/package.json +1 -0
  694. package/dist/standalone/node_modules/next/dist/experimental/testmode/context.js +57 -0
  695. package/dist/standalone/node_modules/next/dist/experimental/testmode/fetch.js +142 -0
  696. package/dist/standalone/node_modules/next/dist/experimental/testmode/httpget.js +26 -0
  697. package/dist/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +32 -0
  698. package/dist/standalone/node_modules/next/dist/experimental/testmode/server.js +62 -0
  699. package/dist/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +61 -0
  700. package/dist/standalone/node_modules/next/dist/lib/batcher.js +65 -0
  701. package/dist/standalone/node_modules/next/dist/lib/build-custom-route.js +46 -0
  702. package/dist/standalone/node_modules/next/dist/lib/bundler.js +97 -0
  703. package/dist/standalone/node_modules/next/dist/lib/client-and-server-references.js +54 -0
  704. package/dist/standalone/node_modules/next/dist/lib/coalesced-function.js +39 -0
  705. package/dist/standalone/node_modules/next/dist/lib/compile-error.js +14 -0
  706. package/dist/standalone/node_modules/next/dist/lib/constants.js +405 -0
  707. package/dist/standalone/node_modules/next/dist/lib/create-client-router-filter.js +67 -0
  708. package/dist/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  709. package/dist/standalone/node_modules/next/dist/lib/detached-promise.js +32 -0
  710. package/dist/standalone/node_modules/next/dist/lib/detect-typo.js +51 -0
  711. package/dist/standalone/node_modules/next/dist/lib/download-swc.js +183 -0
  712. package/dist/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +42 -0
  713. package/dist/standalone/node_modules/next/dist/lib/fallback.js +100 -0
  714. package/dist/standalone/node_modules/next/dist/lib/fatal-error.js +14 -0
  715. package/dist/standalone/node_modules/next/dist/lib/file-exists.js +53 -0
  716. package/dist/standalone/node_modules/next/dist/lib/find-config.js +102 -0
  717. package/dist/standalone/node_modules/next/dist/lib/find-pages-dir.js +65 -0
  718. package/dist/standalone/node_modules/next/dist/lib/find-root.js +122 -0
  719. package/dist/standalone/node_modules/next/dist/lib/format-cli-help-output.js +84 -0
  720. package/dist/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +24 -0
  721. package/dist/standalone/node_modules/next/dist/lib/format-server-error.js +74 -0
  722. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-components.js +62 -0
  723. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +36 -0
  724. package/dist/standalone/node_modules/next/dist/lib/fs/rename.js +87 -0
  725. package/dist/standalone/node_modules/next/dist/lib/fs/write-atomic.js +28 -0
  726. package/dist/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +69 -0
  727. package/dist/standalone/node_modules/next/dist/lib/get-files-in-dir.js +33 -0
  728. package/dist/standalone/node_modules/next/dist/lib/get-network-host.js +44 -0
  729. package/dist/standalone/node_modules/next/dist/lib/get-package-version.js +118 -0
  730. package/dist/standalone/node_modules/next/dist/lib/get-project-dir.js +51 -0
  731. package/dist/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +49 -0
  732. package/dist/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +66 -0
  733. package/dist/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +29 -0
  734. package/dist/standalone/node_modules/next/dist/lib/helpers/get-online.js +50 -0
  735. package/dist/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +63 -0
  736. package/dist/standalone/node_modules/next/dist/lib/helpers/get-registry.js +45 -0
  737. package/dist/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +116 -0
  738. package/dist/standalone/node_modules/next/dist/lib/helpers/install.js +83 -0
  739. package/dist/standalone/node_modules/next/dist/lib/import-next-warning.js +50 -0
  740. package/dist/standalone/node_modules/next/dist/lib/inline-static-env.js +112 -0
  741. package/dist/standalone/node_modules/next/dist/lib/install-dependencies.js +40 -0
  742. package/dist/standalone/node_modules/next/dist/lib/interop-default.js +15 -0
  743. package/dist/standalone/node_modules/next/dist/lib/is-api-route.js +15 -0
  744. package/dist/standalone/node_modules/next/dist/lib/is-app-page-route.js +15 -0
  745. package/dist/standalone/node_modules/next/dist/lib/is-app-route-route.js +15 -0
  746. package/dist/standalone/node_modules/next/dist/lib/is-edge-runtime.js +16 -0
  747. package/dist/standalone/node_modules/next/dist/lib/is-error.js +78 -0
  748. package/dist/standalone/node_modules/next/dist/lib/is-internal-component.js +36 -0
  749. package/dist/standalone/node_modules/next/dist/lib/is-serializable-props.js +106 -0
  750. package/dist/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  751. package/dist/standalone/node_modules/next/dist/lib/load-custom-routes.js +550 -0
  752. package/dist/standalone/node_modules/next/dist/lib/memory/gc-observer.js +53 -0
  753. package/dist/standalone/node_modules/next/dist/lib/memory/shutdown.js +29 -0
  754. package/dist/standalone/node_modules/next/dist/lib/memory/startup.js +47 -0
  755. package/dist/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
  756. package/dist/standalone/node_modules/next/dist/lib/metadata/constants.js +40 -0
  757. package/dist/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +82 -0
  758. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/alternate.js +55 -0
  759. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/basic.js +307 -0
  760. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +22 -0
  761. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icons.js +64 -0
  762. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/meta.js +123 -0
  763. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/opengraph.js +478 -0
  764. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +52 -0
  765. package/dist/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +114 -0
  766. package/dist/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +221 -0
  767. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +18 -0
  768. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata.js +243 -0
  769. package/dist/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +859 -0
  770. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +232 -0
  771. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +56 -0
  772. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +199 -0
  773. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +40 -0
  774. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +135 -0
  775. package/dist/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +7 -0
  776. package/dist/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +9 -0
  777. package/dist/standalone/node_modules/next/dist/lib/metadata/types/icons.js +6 -0
  778. package/dist/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +6 -0
  779. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +18 -0
  780. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +10 -0
  781. package/dist/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +6 -0
  782. package/dist/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +6 -0
  783. package/dist/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +7 -0
  784. package/dist/standalone/node_modules/next/dist/lib/mime-type.js +20 -0
  785. package/dist/standalone/node_modules/next/dist/lib/mkcert.js +204 -0
  786. package/dist/standalone/node_modules/next/dist/lib/multi-file-writer.js +75 -0
  787. package/dist/standalone/node_modules/next/dist/lib/needs-experimental-react.js +16 -0
  788. package/dist/standalone/node_modules/next/dist/lib/non-nullable.js +15 -0
  789. package/dist/standalone/node_modules/next/dist/lib/normalize-path.js +21 -0
  790. package/dist/standalone/node_modules/next/dist/lib/oxford-comma-list.js +15 -0
  791. package/dist/standalone/node_modules/next/dist/lib/page-types.js +18 -0
  792. package/dist/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +185 -0
  793. package/dist/standalone/node_modules/next/dist/lib/pick.js +19 -0
  794. package/dist/standalone/node_modules/next/dist/lib/picocolors.js +177 -0
  795. package/dist/standalone/node_modules/next/dist/lib/pretty-bytes.js +74 -0
  796. package/dist/standalone/node_modules/next/dist/lib/realpath.js +20 -0
  797. package/dist/standalone/node_modules/next/dist/lib/recursive-copy.js +76 -0
  798. package/dist/standalone/node_modules/next/dist/lib/recursive-delete.js +137 -0
  799. package/dist/standalone/node_modules/next/dist/lib/recursive-readdir.js +124 -0
  800. package/dist/standalone/node_modules/next/dist/lib/redirect-status.js +46 -0
  801. package/dist/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +26 -0
  802. package/dist/standalone/node_modules/next/dist/lib/resolve-build-paths.js +149 -0
  803. package/dist/standalone/node_modules/next/dist/lib/resolve-from.js +65 -0
  804. package/dist/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +107 -0
  805. package/dist/standalone/node_modules/next/dist/lib/scheduler.js +64 -0
  806. package/dist/standalone/node_modules/next/dist/lib/semver-noop.js +18 -0
  807. package/dist/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  808. package/dist/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +11 -0
  809. package/dist/standalone/node_modules/next/dist/lib/static-env.js +92 -0
  810. package/dist/standalone/node_modules/next/dist/lib/try-to-parse-path.js +68 -0
  811. package/dist/standalone/node_modules/next/dist/lib/turbopack-warning.js +186 -0
  812. package/dist/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +240 -0
  813. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +73 -0
  814. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +52 -0
  815. package/dist/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +27 -0
  816. package/dist/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +151 -0
  817. package/dist/standalone/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  818. package/dist/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +65 -0
  819. package/dist/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +394 -0
  820. package/dist/standalone/node_modules/next/dist/lib/url.js +75 -0
  821. package/dist/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +115 -0
  822. package/dist/standalone/node_modules/next/dist/lib/verify-root-layout.js +165 -0
  823. package/dist/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +178 -0
  824. package/dist/standalone/node_modules/next/dist/lib/wait.js +19 -0
  825. package/dist/standalone/node_modules/next/dist/lib/with-promise-cache.js +24 -0
  826. package/dist/standalone/node_modules/next/dist/lib/worker.js +223 -0
  827. package/dist/standalone/node_modules/next/dist/next-devtools/server/shared.js +61 -0
  828. package/dist/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +16 -0
  829. package/dist/standalone/node_modules/next/dist/server/accept-header.js +132 -0
  830. package/dist/standalone/node_modules/next/dist/server/after/after-context.js +140 -0
  831. package/dist/standalone/node_modules/next/dist/server/after/after.js +26 -0
  832. package/dist/standalone/node_modules/next/dist/server/after/awaiter.js +74 -0
  833. package/dist/standalone/node_modules/next/dist/server/after/builtin-request-context.js +38 -0
  834. package/dist/standalone/node_modules/next/dist/server/after/index.js +21 -0
  835. package/dist/standalone/node_modules/next/dist/server/after/run-with-after.js +35 -0
  836. package/dist/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +22 -0
  837. package/dist/standalone/node_modules/next/dist/server/api-utils/index.js +201 -0
  838. package/dist/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +395 -0
  839. package/dist/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +79 -0
  840. package/dist/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +86 -0
  841. package/dist/standalone/node_modules/next/dist/server/api-utils/web.js +17 -0
  842. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +14 -0
  843. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +13 -0
  844. package/dist/standalone/node_modules/next/dist/server/app-render/action-handler.js +952 -0
  845. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +14 -0
  846. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +13 -0
  847. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +249 -0
  848. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +112 -0
  849. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  850. package/dist/standalone/node_modules/next/dist/server/app-render/app-render.js +3526 -0
  851. package/dist/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +76 -0
  852. package/dist/standalone/node_modules/next/dist/server/app-render/cache-signal.js +181 -0
  853. package/dist/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +276 -0
  854. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +14 -0
  855. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +13 -0
  856. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +33 -0
  857. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +754 -0
  858. package/dist/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +187 -0
  859. package/dist/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +76 -0
  860. package/dist/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +75 -0
  861. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +14 -0
  862. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +13 -0
  863. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +828 -0
  864. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +114 -0
  865. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +93 -0
  866. package/dist/standalone/node_modules/next/dist/server/app-render/encryption.js +238 -0
  867. package/dist/standalone/node_modules/next/dist/server/app-render/entry-base.js +237 -0
  868. package/dist/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +28 -0
  869. package/dist/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +29 -0
  870. package/dist/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +49 -0
  871. package/dist/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +65 -0
  872. package/dist/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +39 -0
  873. package/dist/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +44 -0
  874. package/dist/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +25 -0
  875. package/dist/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +19 -0
  876. package/dist/standalone/node_modules/next/dist/server/app-render/interop-default.js +17 -0
  877. package/dist/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +92 -0
  878. package/dist/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  879. package/dist/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +28 -0
  880. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +57 -0
  881. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +32 -0
  882. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +66 -0
  883. package/dist/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +49 -0
  884. package/dist/standalone/node_modules/next/dist/server/app-render/postponed-state.js +156 -0
  885. package/dist/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +73 -0
  886. package/dist/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +17 -0
  887. package/dist/standalone/node_modules/next/dist/server/app-render/react-server.node.js +39 -0
  888. package/dist/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +52 -0
  889. package/dist/standalone/node_modules/next/dist/server/app-render/required-scripts.js +76 -0
  890. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +18 -0
  891. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +74 -0
  892. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +79 -0
  893. package/dist/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +103 -0
  894. package/dist/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +77 -0
  895. package/dist/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +273 -0
  896. package/dist/standalone/node_modules/next/dist/server/app-render/staged-validation.js +32 -0
  897. package/dist/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +18 -0
  898. package/dist/standalone/node_modules/next/dist/server/app-render/types.js +59 -0
  899. package/dist/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +212 -0
  900. package/dist/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +185 -0
  901. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +14 -0
  902. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +13 -0
  903. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +14 -0
  904. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +252 -0
  905. package/dist/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +62 -0
  906. package/dist/standalone/node_modules/next/dist/server/async-storage/request-store.js +144 -0
  907. package/dist/standalone/node_modules/next/dist/server/async-storage/with-store.js +6 -0
  908. package/dist/standalone/node_modules/next/dist/server/async-storage/work-store.js +94 -0
  909. package/dist/standalone/node_modules/next/dist/server/base-http/helpers.js +36 -0
  910. package/dist/standalone/node_modules/next/dist/server/base-http/index.js +54 -0
  911. package/dist/standalone/node_modules/next/dist/server/base-http/node.js +147 -0
  912. package/dist/standalone/node_modules/next/dist/server/base-http/web.js +124 -0
  913. package/dist/standalone/node_modules/next/dist/server/base-server.js +1842 -0
  914. package/dist/standalone/node_modules/next/dist/server/body-streams.js +114 -0
  915. package/dist/standalone/node_modules/next/dist/server/cache-dir.js +26 -0
  916. package/dist/standalone/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  917. package/dist/standalone/node_modules/next/dist/server/ci-info.js +41 -0
  918. package/dist/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +70 -0
  919. package/dist/standalone/node_modules/next/dist/server/config-schema.js +630 -0
  920. package/dist/standalone/node_modules/next/dist/server/config-shared.js +305 -0
  921. package/dist/standalone/node_modules/next/dist/server/config-utils.js +185 -0
  922. package/dist/standalone/node_modules/next/dist/server/config.js +1468 -0
  923. package/dist/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +96 -0
  924. package/dist/standalone/node_modules/next/dist/server/crypto-utils.js +70 -0
  925. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +183 -0
  926. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +512 -0
  927. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +225 -0
  928. package/dist/standalone/node_modules/next/dist/server/dev/debug-channel.js +87 -0
  929. package/dist/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +15 -0
  930. package/dist/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +100 -0
  931. package/dist/standalone/node_modules/next/dist/server/dev/hot-middleware.js +274 -0
  932. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  933. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +56 -0
  934. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +1247 -0
  935. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +58 -0
  936. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1382 -0
  937. package/dist/standalone/node_modules/next/dist/server/dev/log-requests.js +141 -0
  938. package/dist/standalone/node_modules/next/dist/server/dev/messages.js +74 -0
  939. package/dist/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +393 -0
  940. package/dist/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +473 -0
  941. package/dist/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +72 -0
  942. package/dist/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +704 -0
  943. package/dist/standalone/node_modules/next/dist/server/dev/parse-version-info.js +108 -0
  944. package/dist/standalone/node_modules/next/dist/server/dev/require-cache.js +49 -0
  945. package/dist/standalone/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  946. package/dist/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +103 -0
  947. package/dist/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +696 -0
  948. package/dist/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +86 -0
  949. package/dist/standalone/node_modules/next/dist/server/font-utils.js +43 -0
  950. package/dist/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +30 -0
  951. package/dist/standalone/node_modules/next/dist/server/get-page-files.js +23 -0
  952. package/dist/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +35 -0
  953. package/dist/standalone/node_modules/next/dist/server/htmlescape.js +37 -0
  954. package/dist/standalone/node_modules/next/dist/server/image-optimizer.js +1067 -0
  955. package/dist/standalone/node_modules/next/dist/server/instrumentation/types.js +6 -0
  956. package/dist/standalone/node_modules/next/dist/server/instrumentation/utils.js +21 -0
  957. package/dist/standalone/node_modules/next/dist/server/internal-utils.js +39 -0
  958. package/dist/standalone/node_modules/next/dist/server/is-private-ip.js +36 -0
  959. package/dist/standalone/node_modules/next/dist/server/lib/app-dir-module.js +59 -0
  960. package/dist/standalone/node_modules/next/dist/server/lib/app-info-log.js +154 -0
  961. package/dist/standalone/node_modules/next/dist/server/lib/async-callback-set.js +29 -0
  962. package/dist/standalone/node_modules/next/dist/server/lib/cache-control.js +22 -0
  963. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +18 -0
  964. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +160 -0
  965. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +8 -0
  966. package/dist/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +116 -0
  967. package/dist/standalone/node_modules/next/dist/server/lib/clone-response.js +77 -0
  968. package/dist/standalone/node_modules/next/dist/server/lib/cpu-profile.js +28 -0
  969. package/dist/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +26 -0
  970. package/dist/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +163 -0
  971. package/dist/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +95 -0
  972. package/dist/standalone/node_modules/next/dist/server/lib/etag.js +56 -0
  973. package/dist/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +48 -0
  974. package/dist/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +47 -0
  975. package/dist/standalone/node_modules/next/dist/server/lib/find-page-file.js +127 -0
  976. package/dist/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +25 -0
  977. package/dist/standalone/node_modules/next/dist/server/lib/format-hostname.js +16 -0
  978. package/dist/standalone/node_modules/next/dist/server/lib/i18n-provider.js +129 -0
  979. package/dist/standalone/node_modules/next/dist/server/lib/implicit-tags.js +77 -0
  980. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +333 -0
  981. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +479 -0
  982. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +40 -0
  983. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +73 -0
  984. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +55 -0
  985. package/dist/standalone/node_modules/next/dist/server/lib/is-ipv6.js +41 -0
  986. package/dist/standalone/node_modules/next/dist/server/lib/lazy-result.js +46 -0
  987. package/dist/standalone/node_modules/next/dist/server/lib/lru-cache.js +177 -0
  988. package/dist/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +18 -0
  989. package/dist/standalone/node_modules/next/dist/server/lib/mock-request.js +416 -0
  990. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +8 -0
  991. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +25 -0
  992. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +26 -0
  993. package/dist/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +28 -0
  994. package/dist/standalone/node_modules/next/dist/server/lib/parse-stack.js +46 -0
  995. package/dist/standalone/node_modules/next/dist/server/lib/patch-fetch.js +945 -0
  996. package/dist/standalone/node_modules/next/dist/server/lib/patch-set-header.js +38 -0
  997. package/dist/standalone/node_modules/next/dist/server/lib/render-server.js +152 -0
  998. package/dist/standalone/node_modules/next/dist/server/lib/router-server.js +672 -0
  999. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +76 -0
  1000. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +48 -0
  1001. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +50 -0
  1002. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +211 -0
  1003. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +42 -0
  1004. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +590 -0
  1005. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +89 -0
  1006. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +96 -0
  1007. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +16 -0
  1008. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +118 -0
  1009. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +608 -0
  1010. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +286 -0
  1011. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +26 -0
  1012. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +613 -0
  1013. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/types.js +6 -0
  1014. package/dist/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +53 -0
  1015. package/dist/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +80 -0
  1016. package/dist/standalone/node_modules/next/dist/server/lib/source-maps.js +196 -0
  1017. package/dist/standalone/node_modules/next/dist/server/lib/start-server.js +460 -0
  1018. package/dist/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +38 -0
  1019. package/dist/standalone/node_modules/next/dist/server/lib/to-route.js +37 -0
  1020. package/dist/standalone/node_modules/next/dist/server/lib/trace/constants.js +203 -0
  1021. package/dist/standalone/node_modules/next/dist/server/lib/trace/tracer.js +270 -0
  1022. package/dist/standalone/node_modules/next/dist/server/lib/trace/utils.js +16 -0
  1023. package/dist/standalone/node_modules/next/dist/server/lib/types.js +6 -0
  1024. package/dist/standalone/node_modules/next/dist/server/lib/utils.js +249 -0
  1025. package/dist/standalone/node_modules/next/dist/server/lib/worker-utils.js +36 -0
  1026. package/dist/standalone/node_modules/next/dist/server/load-components.js +177 -0
  1027. package/dist/standalone/node_modules/next/dist/server/load-default-error-components.js +41 -0
  1028. package/dist/standalone/node_modules/next/dist/server/load-manifest.external.js +97 -0
  1029. package/dist/standalone/node_modules/next/dist/server/match-bundle.js +25 -0
  1030. package/dist/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +49 -0
  1031. package/dist/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +41 -0
  1032. package/dist/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +82 -0
  1033. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +107 -0
  1034. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +61 -0
  1035. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +180 -0
  1036. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +55 -0
  1037. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +171 -0
  1038. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +113 -0
  1039. package/dist/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +31 -0
  1040. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +90 -0
  1041. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +147 -0
  1042. package/dist/standalone/node_modules/next/dist/server/next-server.js +1459 -0
  1043. package/dist/standalone/node_modules/next/dist/server/next-typescript.js +13 -0
  1044. package/dist/standalone/node_modules/next/dist/server/next.js +452 -0
  1045. package/dist/standalone/node_modules/next/dist/server/node-environment-baseline.js +25 -0
  1046. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +246 -0
  1047. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +49 -0
  1048. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +56 -0
  1049. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +52 -0
  1050. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +8 -0
  1051. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  1052. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +33 -0
  1053. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +103 -0
  1054. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +28 -0
  1055. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.js +489 -0
  1056. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/utils.js +186 -0
  1057. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +45 -0
  1058. package/dist/standalone/node_modules/next/dist/server/node-environment.js +19 -0
  1059. package/dist/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +21 -0
  1060. package/dist/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +33 -0
  1061. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +54 -0
  1062. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +22 -0
  1063. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +40 -0
  1064. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +55 -0
  1065. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +42 -0
  1066. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +44 -0
  1067. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +55 -0
  1068. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +22 -0
  1069. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +19 -0
  1070. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +19 -0
  1071. package/dist/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +26 -0
  1072. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizer.js +6 -0
  1073. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizers.js +23 -0
  1074. package/dist/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +26 -0
  1075. package/dist/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +25 -0
  1076. package/dist/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +38 -0
  1077. package/dist/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +6 -0
  1078. package/dist/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +39 -0
  1079. package/dist/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +19 -0
  1080. package/dist/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +32 -0
  1081. package/dist/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +27 -0
  1082. package/dist/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +17 -0
  1083. package/dist/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +17 -0
  1084. package/dist/standalone/node_modules/next/dist/server/og/image-response.js +53 -0
  1085. package/dist/standalone/node_modules/next/dist/server/patch-error-inspect.js +436 -0
  1086. package/dist/standalone/node_modules/next/dist/server/pipe-readable.js +140 -0
  1087. package/dist/standalone/node_modules/next/dist/server/post-process.js +39 -0
  1088. package/dist/standalone/node_modules/next/dist/server/render-result.js +195 -0
  1089. package/dist/standalone/node_modules/next/dist/server/render.js +1138 -0
  1090. package/dist/standalone/node_modules/next/dist/server/request/connection.js +111 -0
  1091. package/dist/standalone/node_modules/next/dist/server/request/cookies.js +220 -0
  1092. package/dist/standalone/node_modules/next/dist/server/request/draft-mode.js +207 -0
  1093. package/dist/standalone/node_modules/next/dist/server/request/fallback-params.js +69 -0
  1094. package/dist/standalone/node_modules/next/dist/server/request/headers.js +219 -0
  1095. package/dist/standalone/node_modules/next/dist/server/request/params.js +415 -0
  1096. package/dist/standalone/node_modules/next/dist/server/request/pathname.js +104 -0
  1097. package/dist/standalone/node_modules/next/dist/server/request/root-params.js +157 -0
  1098. package/dist/standalone/node_modules/next/dist/server/request/search-params.js +432 -0
  1099. package/dist/standalone/node_modules/next/dist/server/request/utils.js +51 -0
  1100. package/dist/standalone/node_modules/next/dist/server/request-meta.js +55 -0
  1101. package/dist/standalone/node_modules/next/dist/server/require-hook.js +71 -0
  1102. package/dist/standalone/node_modules/next/dist/server/require.js +109 -0
  1103. package/dist/standalone/node_modules/next/dist/server/response-cache/index.js +211 -0
  1104. package/dist/standalone/node_modules/next/dist/server/response-cache/types.js +41 -0
  1105. package/dist/standalone/node_modules/next/dist/server/response-cache/utils.js +103 -0
  1106. package/dist/standalone/node_modules/next/dist/server/response-cache/web.js +101 -0
  1107. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +84 -0
  1108. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +96 -0
  1109. package/dist/standalone/node_modules/next/dist/server/revalidation-utils.js +152 -0
  1110. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +16 -0
  1111. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +6 -0
  1112. package/dist/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +6 -0
  1113. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +6 -0
  1114. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +6 -0
  1115. package/dist/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +6 -0
  1116. package/dist/standalone/node_modules/next/dist/server/route-kind.js +32 -0
  1117. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +239 -0
  1118. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +120 -0
  1119. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +6 -0
  1120. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +55 -0
  1121. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +43 -0
  1122. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +90 -0
  1123. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +112 -0
  1124. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +77 -0
  1125. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +77 -0
  1126. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +28 -0
  1127. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +106 -0
  1128. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +42 -0
  1129. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +6 -0
  1130. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +30 -0
  1131. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +6 -0
  1132. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +34 -0
  1133. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +20 -0
  1134. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +21 -0
  1135. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +55 -0
  1136. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +64 -0
  1137. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +6 -0
  1138. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +18 -0
  1139. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +15 -0
  1140. package/dist/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +68 -0
  1141. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +30 -0
  1142. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +30 -0
  1143. package/dist/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +54 -0
  1144. package/dist/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +6 -0
  1145. package/dist/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +6 -0
  1146. package/dist/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +6 -0
  1147. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +16 -0
  1148. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +6 -0
  1149. package/dist/standalone/node_modules/next/dist/server/route-matches/route-match.js +6 -0
  1150. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +48 -0
  1151. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.compiled.js +36 -0
  1152. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +132 -0
  1153. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +24 -0
  1154. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +4 -0
  1155. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +87 -0
  1156. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +4 -0
  1157. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +4 -0
  1158. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +4 -0
  1159. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +4 -0
  1160. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +4 -0
  1161. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +140 -0
  1162. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +4 -0
  1163. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +4 -0
  1164. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +4 -0
  1165. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +4 -0
  1166. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +4 -0
  1167. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +4 -0
  1168. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +4 -0
  1169. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +4 -0
  1170. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +4 -0
  1171. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +125 -0
  1172. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +4 -0
  1173. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +4 -0
  1174. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +4 -0
  1175. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +4 -0
  1176. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +4 -0
  1177. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +4 -0
  1178. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +4 -0
  1179. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +4 -0
  1180. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +85 -0
  1181. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +24 -0
  1182. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +29 -0
  1183. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +15 -0
  1184. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +20 -0
  1185. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +36 -0
  1186. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +889 -0
  1187. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +56 -0
  1188. package/dist/standalone/node_modules/next/dist/server/route-modules/checks.js +45 -0
  1189. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +100 -0
  1190. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.compiled.js +20 -0
  1191. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.js +92 -0
  1192. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +24 -0
  1193. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +522 -0
  1194. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +4 -0
  1195. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +102 -0
  1196. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +4 -0
  1197. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +4 -0
  1198. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +4 -0
  1199. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +4 -0
  1200. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +4 -0
  1201. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +4 -0
  1202. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +4 -0
  1203. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +4 -0
  1204. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +20 -0
  1205. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +58 -0
  1206. package/dist/standalone/node_modules/next/dist/server/route-modules/route-module.js +594 -0
  1207. package/dist/standalone/node_modules/next/dist/server/runtime-reacts.external.js +46 -0
  1208. package/dist/standalone/node_modules/next/dist/server/send-payload.js +88 -0
  1209. package/dist/standalone/node_modules/next/dist/server/send-response.js +70 -0
  1210. package/dist/standalone/node_modules/next/dist/server/serve-static.js +66 -0
  1211. package/dist/standalone/node_modules/next/dist/server/server-route-utils.js +30 -0
  1212. package/dist/standalone/node_modules/next/dist/server/server-utils.js +323 -0
  1213. package/dist/standalone/node_modules/next/dist/server/setup-http-agent-env.js +31 -0
  1214. package/dist/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +114 -0
  1215. package/dist/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +737 -0
  1216. package/dist/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +69 -0
  1217. package/dist/standalone/node_modules/next/dist/server/typescript/constant.js +97 -0
  1218. package/dist/standalone/node_modules/next/dist/server/typescript/index.js +199 -0
  1219. package/dist/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +97 -0
  1220. package/dist/standalone/node_modules/next/dist/server/typescript/rules/config.js +501 -0
  1221. package/dist/standalone/node_modules/next/dist/server/typescript/rules/entry.js +149 -0
  1222. package/dist/standalone/node_modules/next/dist/server/typescript/rules/error.js +38 -0
  1223. package/dist/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +234 -0
  1224. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +115 -0
  1225. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server.js +79 -0
  1226. package/dist/standalone/node_modules/next/dist/server/typescript/utils.js +212 -0
  1227. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-life.js +161 -0
  1228. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +50 -0
  1229. package/dist/standalone/node_modules/next/dist/server/use-cache/constants.js +28 -0
  1230. package/dist/standalone/node_modules/next/dist/server/use-cache/handlers.js +121 -0
  1231. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +36 -0
  1232. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1336 -0
  1233. package/dist/standalone/node_modules/next/dist/server/utils.js +73 -0
  1234. package/dist/standalone/node_modules/next/dist/server/web/adapter.js +388 -0
  1235. package/dist/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +122 -0
  1236. package/dist/standalone/node_modules/next/dist/server/web/error.js +54 -0
  1237. package/dist/standalone/node_modules/next/dist/server/web/exports/index.js +56 -0
  1238. package/dist/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +23 -0
  1239. package/dist/standalone/node_modules/next/dist/server/web/globals.js +128 -0
  1240. package/dist/standalone/node_modules/next/dist/server/web/http.js +39 -0
  1241. package/dist/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +64 -0
  1242. package/dist/standalone/node_modules/next/dist/server/web/next-url.js +195 -0
  1243. package/dist/standalone/node_modules/next/dist/server/web/sandbox/context.js +462 -0
  1244. package/dist/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +35 -0
  1245. package/dist/standalone/node_modules/next/dist/server/web/sandbox/index.js +28 -0
  1246. package/dist/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +88 -0
  1247. package/dist/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +134 -0
  1248. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +192 -0
  1249. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +142 -0
  1250. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +30 -0
  1251. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +211 -0
  1252. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +29 -0
  1253. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +98 -0
  1254. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +22 -0
  1255. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/request.js +99 -0
  1256. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/response.js +136 -0
  1257. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +206 -0
  1258. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +284 -0
  1259. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +49 -0
  1260. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +14 -0
  1261. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +46 -0
  1262. package/dist/standalone/node_modules/next/dist/server/web/types.js +6 -0
  1263. package/dist/standalone/node_modules/next/dist/server/web/utils.js +151 -0
  1264. package/dist/standalone/node_modules/next/dist/server/web/web-on-close.js +87 -0
  1265. package/dist/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  1266. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +50 -0
  1267. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-types.js +27 -0
  1268. package/dist/standalone/node_modules/next/dist/shared/lib/constants.js +448 -0
  1269. package/dist/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +30 -0
  1270. package/dist/standalone/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  1271. package/dist/standalone/node_modules/next/dist/shared/lib/dset.js +34 -0
  1272. package/dist/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +15 -0
  1273. package/dist/standalone/node_modules/next/dist/shared/lib/entry-constants.js +36 -0
  1274. package/dist/standalone/node_modules/next/dist/shared/lib/error-source.js +36 -0
  1275. package/dist/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +39 -0
  1276. package/dist/standalone/node_modules/next/dist/shared/lib/errors/constants.js +19 -0
  1277. package/dist/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +24 -0
  1278. package/dist/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +20 -0
  1279. package/dist/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +22 -0
  1280. package/dist/standalone/node_modules/next/dist/shared/lib/get-hostname.js +23 -0
  1281. package/dist/standalone/node_modules/next/dist/shared/lib/hash.js +42 -0
  1282. package/dist/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +18 -0
  1283. package/dist/standalone/node_modules/next/dist/shared/lib/head.js +163 -0
  1284. package/dist/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +60 -0
  1285. package/dist/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +40 -0
  1286. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +25 -0
  1287. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +59 -0
  1288. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +54 -0
  1289. package/dist/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +22 -0
  1290. package/dist/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +19 -0
  1291. package/dist/standalone/node_modules/next/dist/shared/lib/image-config.js +74 -0
  1292. package/dist/standalone/node_modules/next/dist/shared/lib/invariant-error.js +18 -0
  1293. package/dist/standalone/node_modules/next/dist/shared/lib/is-internal.js +39 -0
  1294. package/dist/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +42 -0
  1295. package/dist/standalone/node_modules/next/dist/shared/lib/is-thenable.js +20 -0
  1296. package/dist/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +14 -0
  1297. package/dist/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +37 -0
  1298. package/dist/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +19 -0
  1299. package/dist/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +246 -0
  1300. package/dist/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +218 -0
  1301. package/dist/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +46 -0
  1302. package/dist/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +63 -0
  1303. package/dist/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +15 -0
  1304. package/dist/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +18 -0
  1305. package/dist/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +28 -0
  1306. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +26 -0
  1307. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +18 -0
  1308. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +18 -0
  1309. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +40 -0
  1310. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +23 -0
  1311. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +26 -0
  1312. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +19 -0
  1313. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +20 -0
  1314. package/dist/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +26 -0
  1315. package/dist/standalone/node_modules/next/dist/shared/lib/router/adapters.js +136 -0
  1316. package/dist/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  1317. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +28 -0
  1318. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +20 -0
  1319. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +20 -0
  1320. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +51 -0
  1321. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +17 -0
  1322. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +24 -0
  1323. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +16 -0
  1324. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +27 -0
  1325. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +111 -0
  1326. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +167 -0
  1327. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +52 -0
  1328. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +25 -0
  1329. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
  1330. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +17 -0
  1331. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +30 -0
  1332. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  1333. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +108 -0
  1334. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +57 -0
  1335. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  1336. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +31 -0
  1337. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +29 -0
  1338. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +33 -0
  1339. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +36 -0
  1340. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +32 -0
  1341. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +20 -0
  1342. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +49 -0
  1343. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +292 -0
  1344. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +79 -0
  1345. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +40 -0
  1346. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +39 -0
  1347. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +21 -0
  1348. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  1349. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +113 -0
  1350. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +45 -0
  1351. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +256 -0
  1352. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +244 -0
  1353. package/dist/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +18 -0
  1354. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +52 -0
  1355. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +99 -0
  1356. package/dist/standalone/node_modules/next/dist/shared/lib/segment.js +102 -0
  1357. package/dist/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +35 -0
  1358. package/dist/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +52 -0
  1359. package/dist/standalone/node_modules/next/dist/shared/lib/side-effect.js +63 -0
  1360. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +53 -0
  1361. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +279 -0
  1362. package/dist/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +22 -0
  1363. package/dist/standalone/node_modules/next/dist/shared/lib/utils.js +207 -0
  1364. package/dist/standalone/node_modules/next/dist/shared/lib/zod.js +101 -0
  1365. package/dist/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +89 -0
  1366. package/dist/standalone/node_modules/next/dist/telemetry/detached-flush.js +56 -0
  1367. package/dist/standalone/node_modules/next/dist/telemetry/events/build.js +174 -0
  1368. package/dist/standalone/node_modules/next/dist/telemetry/events/index.js +41 -0
  1369. package/dist/standalone/node_modules/next/dist/telemetry/events/plugins.js +51 -0
  1370. package/dist/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +55 -0
  1371. package/dist/standalone/node_modules/next/dist/telemetry/events/version.js +66 -0
  1372. package/dist/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +19 -0
  1373. package/dist/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +48 -0
  1374. package/dist/standalone/node_modules/next/dist/telemetry/project-id.js +48 -0
  1375. package/dist/standalone/node_modules/next/dist/telemetry/storage.js +301 -0
  1376. package/dist/standalone/node_modules/next/dist/trace/index.js +54 -0
  1377. package/dist/standalone/node_modules/next/dist/trace/report/index.js +37 -0
  1378. package/dist/standalone/node_modules/next/dist/trace/report/to-json-build.js +137 -0
  1379. package/dist/standalone/node_modules/next/dist/trace/report/to-json.js +151 -0
  1380. package/dist/standalone/node_modules/next/dist/trace/report/to-telemetry.js +36 -0
  1381. package/dist/standalone/node_modules/next/dist/trace/shared.js +39 -0
  1382. package/dist/standalone/node_modules/next/dist/trace/trace.js +197 -0
  1383. package/dist/standalone/node_modules/next/package.json +380 -0
  1384. package/dist/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  1385. package/dist/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  1386. package/dist/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +34 -0
  1387. package/dist/standalone/node_modules/react/cjs/react.production.js +542 -0
  1388. package/dist/standalone/node_modules/react/compiler-runtime.js +14 -0
  1389. package/dist/standalone/node_modules/react/index.js +7 -0
  1390. package/dist/standalone/node_modules/react/jsx-dev-runtime.js +7 -0
  1391. package/dist/standalone/node_modules/react/jsx-runtime.js +7 -0
  1392. package/dist/standalone/node_modules/react/package.json +51 -0
  1393. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
  1394. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
  1395. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7410 -0
  1396. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7512 -0
  1397. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +7707 -0
  1398. package/dist/standalone/node_modules/react-dom/cjs/react-dom.production.js +210 -0
  1399. package/dist/standalone/node_modules/react-dom/index.js +38 -0
  1400. package/dist/standalone/node_modules/react-dom/package.json +117 -0
  1401. package/dist/standalone/node_modules/react-dom/server.browser.js +16 -0
  1402. package/dist/standalone/node_modules/react-dom/server.edge.js +17 -0
  1403. package/dist/standalone/node_modules/react-dom/server.node.js +18 -0
  1404. package/dist/standalone/node_modules/react-dom/static.node.js +14 -0
  1405. package/dist/standalone/node_modules/sharp/lib/channel.js +177 -0
  1406. package/dist/standalone/node_modules/sharp/lib/colour.js +195 -0
  1407. package/dist/standalone/node_modules/sharp/lib/composite.js +212 -0
  1408. package/dist/standalone/node_modules/sharp/lib/constructor.js +499 -0
  1409. package/dist/standalone/node_modules/sharp/lib/index.js +16 -0
  1410. package/dist/standalone/node_modules/sharp/lib/input.js +809 -0
  1411. package/dist/standalone/node_modules/sharp/lib/is.js +143 -0
  1412. package/dist/standalone/node_modules/sharp/lib/libvips.js +207 -0
  1413. package/dist/standalone/node_modules/sharp/lib/operation.js +1016 -0
  1414. package/dist/standalone/node_modules/sharp/lib/output.js +1666 -0
  1415. package/dist/standalone/node_modules/sharp/lib/resize.js +595 -0
  1416. package/dist/standalone/node_modules/sharp/lib/sharp.js +121 -0
  1417. package/dist/standalone/node_modules/sharp/lib/utility.js +291 -0
  1418. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +143 -0
  1419. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/range.js +557 -0
  1420. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +333 -0
  1421. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +54 -0
  1422. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +62 -0
  1423. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +7 -0
  1424. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +5 -0
  1425. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +5 -0
  1426. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +5 -0
  1427. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +5 -0
  1428. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +5 -0
  1429. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +5 -0
  1430. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +18 -0
  1431. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +12 -0
  1432. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +37 -0
  1433. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +11 -0
  1434. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +29 -0
  1435. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +42 -0
  1436. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +17 -0
  1437. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/re.js +223 -0
  1438. package/dist/standalone/node_modules/sharp/node_modules/semver/package.json +78 -0
  1439. package/dist/standalone/node_modules/sharp/package.json +202 -0
  1440. package/dist/standalone/node_modules/styled-jsx/dist/index/index.js +499 -0
  1441. package/dist/standalone/node_modules/styled-jsx/index.js +1 -0
  1442. package/dist/standalone/node_modules/styled-jsx/package.json +132 -0
  1443. package/dist/standalone/node_modules/styled-jsx/style.js +1 -0
  1444. package/dist/standalone/package.json +72 -0
  1445. package/dist/standalone/public/file.svg +1 -0
  1446. package/dist/standalone/public/globe.svg +1 -0
  1447. package/dist/standalone/public/next.svg +1 -0
  1448. package/dist/standalone/public/vercel.svg +1 -0
  1449. package/dist/standalone/public/window.svg +1 -0
  1450. package/dist/standalone/server.js +44 -0
  1451. package/package.json +72 -0
@@ -0,0 +1,252 @@
1
+ const __importMetaUrl = require('url').pathToFileURL(__filename).href;
2
+ var Hd=Object.create;var an=Object.defineProperty;var zd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var $d=Object.getPrototypeOf,Vd=Object.prototype.hasOwnProperty;var Je=(s,e)=>()=>(s&&(e=s(s=0)),e);var x=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),vt=(s,e)=>{for(var t in e)an(s,t,{get:e[t],enumerable:!0})},Gd=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wd(e))!Vd.call(s,n)&&n!==t&&an(s,n,{get:()=>e[n],enumerable:!(i=zd(e,n))||i.enumerable});return s};var F=(s,e,t)=>(t=s!=null?Hd($d(s)):{},Gd(e||!s||!s.__esModule?an(t,"default",{value:s,enumerable:!0}):t,s));var Ba=x((Ey,on)=>{"use strict";on.exports=ja;on.exports.preferredCharsets=ja;var Kd=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function Yd(s){for(var e=s.split(","),t=0,i=0;t<e.length;t++){var n=Xd(e[t].trim(),t);n&&(e[i++]=n)}return e.length=i,e}function Xd(s,e){var t=Kd.exec(s);if(!t)return null;var i=t[1],n=1;if(t[2])for(var r=t[2].split(";"),a=0;a<r.length;a++){var o=r[a].trim().split("=");if(o[0]==="q"){n=parseFloat(o[1]);break}}return{charset:i,q:n,i:e}}function Jd(s,e,t){for(var i={o:-1,q:0,s:0},n=0;n<e.length;n++){var r=Qd(s,e[n],t);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}function Qd(s,e,t){var i=0;if(e.charset.toLowerCase()===s.toLowerCase())i|=1;else if(e.charset!=="*")return null;return{i:t,o:e.i,q:e.q,s:i}}function ja(s,e){var t=Yd(s===void 0?"*":s||"");if(!e)return t.filter(La).sort(Na).map(Zd);var i=e.map(function(r,a){return Jd(r,t,a)});return i.filter(La).sort(Na).map(function(r){return e[i.indexOf(r)]})}function Na(s,e){return e.q-s.q||e.s-s.s||s.o-e.o||s.i-e.i||0}function Zd(s){return s.charset}function La(s){return s.q>0}});var Fa=x((ky,cn)=>{"use strict";cn.exports=qa;cn.exports.preferredEncodings=qa;var ef=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function tf(s){for(var e=s.split(","),t=!1,i=1,n=0,r=0;n<e.length;n++){var a=sf(e[n].trim(),n);a&&(e[r++]=a,t=t||Ma("identity",a),i=Math.min(i,a.q||1))}return t||(e[r++]={encoding:"identity",q:i,i:n}),e.length=r,e}function sf(s,e){var t=ef.exec(s);if(!t)return null;var i=t[1],n=1;if(t[2])for(var r=t[2].split(";"),a=0;a<r.length;a++){var o=r[a].trim().split("=");if(o[0]==="q"){n=parseFloat(o[1]);break}}return{encoding:i,q:n,i:e}}function nf(s,e,t){for(var i={o:-1,q:0,s:0},n=0;n<e.length;n++){var r=Ma(s,e[n],t);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}function Ma(s,e,t){var i=0;if(e.encoding.toLowerCase()===s.toLowerCase())i|=1;else if(e.encoding!=="*")return null;return{i:t,o:e.i,q:e.q,s:i}}function qa(s,e){var t=tf(s||"");if(!e)return t.filter(Da).sort(Ia).map(rf);var i=e.map(function(r,a){return nf(r,t,a)});return i.filter(Da).sort(Ia).map(function(r){return e[i.indexOf(r)]})}function Ia(s,e){return e.q-s.q||e.s-s.s||s.o-e.o||s.i-e.i||0}function rf(s){return s.encoding}function Da(s){return s.q>0}});var $a=x((Cy,ln)=>{"use strict";ln.exports=Wa;ln.exports.preferredLanguages=Wa;var af=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function of(s){for(var e=s.split(","),t=0,i=0;t<e.length;t++){var n=za(e[t].trim(),t);n&&(e[i++]=n)}return e.length=i,e}function za(s,e){var t=af.exec(s);if(!t)return null;var i=t[1],n=t[2],r=i;n&&(r+="-"+n);var a=1;if(t[3])for(var o=t[3].split(";"),c=0;c<o.length;c++){var l=o[c].split("=");l[0]==="q"&&(a=parseFloat(l[1]))}return{prefix:i,suffix:n,q:a,i:e,full:r}}function cf(s,e,t){for(var i={o:-1,q:0,s:0},n=0;n<e.length;n++){var r=lf(s,e[n],t);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}function lf(s,e,t){var i=za(s);if(!i)return null;var n=0;if(e.full.toLowerCase()===i.full.toLowerCase())n|=4;else if(e.prefix.toLowerCase()===i.full.toLowerCase())n|=2;else if(e.full.toLowerCase()===i.prefix.toLowerCase())n|=1;else if(e.full!=="*")return null;return{i:t,o:e.i,q:e.q,s:n}}function Wa(s,e){var t=of(s===void 0?"*":s||"");if(!e)return t.filter(Ha).sort(Ua).map(pf);var i=e.map(function(r,a){return cf(r,t,a)});return i.filter(Ha).sort(Ua).map(function(r){return e[i.indexOf(r)]})}function Ua(s,e){return e.q-s.q||e.s-s.s||s.o-e.o||s.i-e.i||0}function pf(s){return s.full}function Ha(s){return s.q>0}});var Ja=x((Ty,pn)=>{"use strict";pn.exports=Ya;pn.exports.preferredMediaTypes=Ya;var uf=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function df(s){for(var e=vf(s),t=0,i=0;t<e.length;t++){var n=Ka(e[t].trim(),t);n&&(e[i++]=n)}return e.length=i,e}function Ka(s,e){var t=uf.exec(s);if(!t)return null;var i=Object.create(null),n=1,r=t[2],a=t[1];if(t[3])for(var o=gf(t[3]).map(xf),c=0;c<o.length;c++){var l=o[c],p=l[0].toLowerCase(),u=l[1],f=u&&u[0]==='"'&&u[u.length-1]==='"'?u.substr(1,u.length-2):u;if(p==="q"){n=parseFloat(f);break}i[p]=f}return{type:a,subtype:r,params:i,q:n,i:e}}function ff(s,e,t){for(var i={o:-1,q:0,s:0},n=0;n<e.length;n++){var r=hf(s,e[n],t);r&&(i.s-r.s||i.q-r.q||i.o-r.o)<0&&(i=r)}return i}function hf(s,e,t){var i=Ka(s),n=0;if(!i)return null;if(e.type.toLowerCase()==i.type.toLowerCase())n|=4;else if(e.type!="*")return null;if(e.subtype.toLowerCase()==i.subtype.toLowerCase())n|=2;else if(e.subtype!="*")return null;var r=Object.keys(e.params);if(r.length>0)if(r.every(function(a){return e.params[a]=="*"||(e.params[a]||"").toLowerCase()==(i.params[a]||"").toLowerCase()}))n|=1;else return null;return{i:t,o:e.i,q:e.q,s:n}}function Ya(s,e){var t=df(s===void 0?"*/*":s||"");if(!e)return t.filter(Ga).sort(Va).map(mf);var i=e.map(function(r,a){return ff(r,t,a)});return i.filter(Ga).sort(Va).map(function(r){return e[i.indexOf(r)]})}function Va(s,e){return e.q-s.q||e.s-s.s||s.o-e.o||s.i-e.i||0}function mf(s){return s.type+"/"+s.subtype}function Ga(s){return s.q>0}function Xa(s){for(var e=0,t=0;(t=s.indexOf('"',t))!==-1;)e++,t++;return e}function xf(s){var e=s.indexOf("="),t,i;return e===-1?t=s:(t=s.substr(0,e),i=s.substr(e+1)),[t,i]}function vf(s){for(var e=s.split(","),t=1,i=0;t<e.length;t++)Xa(e[i])%2==0?e[++i]=e[t]:e[i]+=","+e[t];return e.length=i+1,e}function gf(s){for(var e=s.split(";"),t=1,i=0;t<e.length;t++)Xa(e[i])%2==0?e[++i]=e[t]:e[i]+=";"+e[t];e.length=i+1;for(var t=0;t<e.length;t++)e[t]=e[t].trim();return e}});var Qa=x((Oy,un)=>{"use strict";var bf=Ba(),yf=Fa(),_f=$a(),wf=Ja();un.exports=S;un.exports.Negotiator=S;function S(s){if(!(this instanceof S))return new S(s);this.request=s}S.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]};S.prototype.charsets=function(e){return bf(this.request.headers["accept-charset"],e)};S.prototype.encoding=function(e){var t=this.encodings(e);return t&&t[0]};S.prototype.encodings=function(e){return yf(this.request.headers["accept-encoding"],e)};S.prototype.language=function(e){var t=this.languages(e);return t&&t[0]};S.prototype.languages=function(e){return _f(this.request.headers["accept-language"],e)};S.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]};S.prototype.mediaTypes=function(e){return wf(this.request.headers.accept,e)};S.prototype.preferredCharset=S.prototype.charset;S.prototype.preferredCharsets=S.prototype.charsets;S.prototype.preferredEncoding=S.prototype.encoding;S.prototype.preferredEncodings=S.prototype.encodings;S.prototype.preferredLanguage=S.prototype.language;S.prototype.preferredLanguages=S.prototype.languages;S.prototype.preferredMediaType=S.prototype.mediaType;S.prototype.preferredMediaTypes=S.prototype.mediaTypes});var Za=x((Ry,Sf)=>{Sf.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var to=x((Py,eo)=>{eo.exports=Za()});var no=x(X=>{"use strict";var Ls=to(),Ef=require("path").extname,so=/^\s*([^;\s]*)(?:;|\s|$)/,kf=/^text\//i;X.charset=io;X.charsets={lookup:io};X.contentType=Cf;X.extension=Tf;X.extensions=Object.create(null);X.lookup=Of;X.types=Object.create(null);Rf(X.extensions,X.types);function io(s){if(!s||typeof s!="string")return!1;var e=so.exec(s),t=e&&Ls[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&kf.test(e[1])?"UTF-8":!1}function Cf(s){if(!s||typeof s!="string")return!1;var e=s.indexOf("/")===-1?X.lookup(s):s;if(!e)return!1;if(e.indexOf("charset")===-1){var t=X.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}function Tf(s){if(!s||typeof s!="string")return!1;var e=so.exec(s),t=e&&X.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}function Of(s){if(!s||typeof s!="string")return!1;var e=Ef("x."+s).toLowerCase().substr(1);return e&&X.types[e]||!1}function Rf(s,e){var t=["nginx","apache",void 0,"iana"];Object.keys(Ls).forEach(function(n){var r=Ls[n],a=r.extensions;if(!(!a||!a.length)){s[n]=a;for(var o=0;o<a.length;o++){var c=a[o];if(e[c]){var l=t.indexOf(Ls[e[c]].source),p=t.indexOf(r.source);if(e[c]!=="application/octet-stream"&&(l>p||l===p&&e[c].substr(0,12)==="application/"))continue}e[c]=n}}})}});var js=x((Ny,ro)=>{"use strict";var Pf=Qa(),Af=no();ro.exports=te;function te(s){if(!(this instanceof te))return new te(s);this.headers=s.headers,this.negotiator=new Pf(s)}te.prototype.type=te.prototype.types=function(s){var e=s;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}if(!e||e.length===0)return this.negotiator.mediaTypes();if(!this.headers.accept)return e[0];var i=e.map(Nf),n=this.negotiator.mediaTypes(i.filter(Lf)),r=n[0];return r?e[i.indexOf(r)]:!1};te.prototype.encoding=te.prototype.encodings=function(s){var e=s;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return!e||e.length===0?this.negotiator.encodings():this.negotiator.encodings(e)[0]||!1};te.prototype.charset=te.prototype.charsets=function(s){var e=s;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return!e||e.length===0?this.negotiator.charsets():this.negotiator.charsets(e)[0]||!1};te.prototype.lang=te.prototype.langs=te.prototype.language=te.prototype.languages=function(s){var e=s;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t]}return!e||e.length===0?this.negotiator.languages():this.negotiator.languages(e)[0]||!1};function Nf(s){return s.indexOf("/")===-1?Af.lookup(s):s}function Lf(s){return typeof s=="string"}});var fn=x((ao,oo)=>{var es=require("crypto"),dn=function(){};dn.prototype.getRandomBytes=function(s){var e=4096,t=this;if(s=s||12,s>e)return es.randomBytes(s);var i=parseInt(e/s),n=parseInt(i*.85);if(!n||(this.bytesBufferIndex==null&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==i&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(this.bytesBufferIndex==-1||this.bytesBufferIndex>n)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,es.randomBytes(e,function(a,o){t.bytesBuffer=o,t.bytesBufferIndex=0,t.isGeneratingBytes=!1})),this.bytesBufferIndex==-1)))return es.randomBytes(s);var r=this.bytesBuffer.slice(s*this.bytesBufferIndex,s*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,r};dn.prototype.generateId=function(){var s=Buffer.alloc(15);return s.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,s.writeInt32BE(this.sequenceNumber,11),es.randomBytes?this.getRandomBytes(12).copy(s):[0,4,8].forEach(function(e){s.writeInt32BE(Math.random()*Math.pow(2,32)|0,e)}),s.toString("base64").replace(/\//g,"_").replace(/\+/g,"-")):Math.abs(Math.random()*Math.random()*Date.now()|0).toString()+Math.abs(Math.random()*Math.random()*Date.now()|0).toString()};ao=oo.exports=new dn});var Bs=x(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.ERROR_PACKET=qe.PACKET_TYPES_REVERSE=qe.PACKET_TYPES=void 0;var ye=Object.create(null);qe.PACKET_TYPES=ye;ye.open="0";ye.close="1";ye.ping="2";ye.pong="3";ye.message="4";ye.upgrade="5";ye.noop="6";var co=Object.create(null);qe.PACKET_TYPES_REVERSE=co;Object.keys(ye).forEach(s=>{co[ye[s]]=s});var jf={type:"error",data:"parser error"};qe.ERROR_PACKET=jf});var po=x(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.encodePacket=void 0;gt.encodePacketToBinary=Df;var Bf=Bs(),If=({type:s,data:e},t,i)=>e instanceof ArrayBuffer||ArrayBuffer.isView(e)?i(t?e:"b"+lo(e,!0).toString("base64")):i(Bf.PACKET_TYPES[s]+(e||""));gt.encodePacket=If;var lo=(s,e)=>Buffer.isBuffer(s)||s instanceof Uint8Array&&!e?s:s instanceof ArrayBuffer?Buffer.from(s):Buffer.from(s.buffer,s.byteOffset,s.byteLength),hn;function Df(s,e){if(s.data instanceof ArrayBuffer||ArrayBuffer.isView(s.data))return e(lo(s.data,!1));(0,gt.encodePacket)(s,!0,t=>{hn||(hn=new TextEncoder),e(hn.encode(t))})}});var fo=x(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.decodePacket=void 0;var Is=Bs(),Mf=(s,e)=>{if(typeof s!="string")return{type:"message",data:uo(s,e)};let t=s.charAt(0);if(t==="b"){let i=Buffer.from(s.substring(1),"base64");return{type:"message",data:uo(i,e)}}return Is.PACKET_TYPES_REVERSE[t]?s.length>1?{type:Is.PACKET_TYPES_REVERSE[t],data:s.substring(1)}:{type:Is.PACKET_TYPES_REVERSE[t]}:Is.ERROR_PACKET};Ds.decodePacket=Mf;var uo=(s,e)=>e==="arraybuffer"?s instanceof ArrayBuffer?s:Buffer.isBuffer(s)?s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength):s.buffer:Buffer.isBuffer(s)?s:Buffer.from(s)});var ts=x(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.decodePayload=J.decodePacket=J.encodePayload=J.encodePacket=J.protocol=void 0;J.createPacketEncoderStream=Uf;J.createPacketDecoderStream=Hf;var xn=po();Object.defineProperty(J,"encodePacket",{enumerable:!0,get:function(){return xn.encodePacket}});var vn=fo();Object.defineProperty(J,"decodePacket",{enumerable:!0,get:function(){return vn.decodePacket}});var ho=Bs(),mo="",qf=(s,e)=>{let t=s.length,i=new Array(t),n=0;s.forEach((r,a)=>{(0,xn.encodePacket)(r,!1,o=>{i[a]=o,++n===t&&e(i.join(mo))})})};J.encodePayload=qf;var Ff=(s,e)=>{let t=s.split(mo),i=[];for(let n=0;n<t.length;n++){let r=(0,vn.decodePacket)(t[n],e);if(i.push(r),r.type==="error")break}return i};J.decodePayload=Ff;function Uf(){return new TransformStream({transform(s,e){(0,xn.encodePacketToBinary)(s,t=>{let i=t.length,n;if(i<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,i);else if(i<65536){n=new Uint8Array(3);let r=new DataView(n.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{n=new Uint8Array(9);let r=new DataView(n.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}s.data&&typeof s.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(t)})}})}var mn;function Ms(s){return s.reduce((e,t)=>e+t.length,0)}function qs(s,e){if(s[0].length===e)return s.shift();let t=new Uint8Array(e),i=0;for(let n=0;n<e;n++)t[n]=s[0][i++],i===s[0].length&&(s.shift(),i=0);return s.length&&i<s[0].length&&(s[0]=s[0].slice(i)),t}function Hf(s,e){mn||(mn=new TextDecoder);let t=[],i=0,n=-1,r=!1;return new TransformStream({transform(a,o){for(t.push(a);;){if(i===0){if(Ms(t)<1)break;let c=qs(t,1);r=(c[0]&128)===128,n=c[0]&127,n<126?i=3:n===126?i=1:i=2}else if(i===1){if(Ms(t)<2)break;let c=qs(t,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),i=3}else if(i===2){if(Ms(t)<8)break;let c=qs(t,8),l=new DataView(c.buffer,c.byteOffset,c.length),p=l.getUint32(0);if(p>Math.pow(2,21)-1){o.enqueue(ho.ERROR_PACKET);break}n=p*Math.pow(2,32)+l.getUint32(4),i=3}else{if(Ms(t)<n)break;let c=qs(t,n);o.enqueue((0,vn.decodePacket)(r?c:mn.decode(c),e)),i=0}if(n===0||n>s){o.enqueue(ho.ERROR_PACKET);break}}}})}J.protocol=4});var bo=x((Dy,go)=>{var Fe=String.fromCharCode;function xo(s){for(var e=[],t=0,i=s.length,n,r;t<i;)n=s.charCodeAt(t++),n>=55296&&n<=56319&&t<i?(r=s.charCodeAt(t++),(r&64512)==56320?e.push(((n&1023)<<10)+(r&1023)+65536):(e.push(n),t--)):e.push(n);return e}function zf(s){for(var e=s.length,t=-1,i,n="";++t<e;)i=s[t],i>65535&&(i-=65536,n+=Fe(i>>>10&1023|55296),i=56320|i&1023),n+=Fe(i);return n}function vo(s,e){if(s>=55296&&s<=57343){if(e)throw Error("Lone surrogate U+"+s.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function gn(s,e){return Fe(s>>e&63|128)}function Wf(s,e){if((s&4294967168)==0)return Fe(s);var t="";return(s&4294965248)==0?t=Fe(s>>6&31|192):(s&4294901760)==0?(vo(s,e)||(s=65533),t=Fe(s>>12&15|224),t+=gn(s,6)):(s&4292870144)==0&&(t=Fe(s>>18&7|240),t+=gn(s,12),t+=gn(s,6)),t+=Fe(s&63|128),t}function $f(s,e){e=e||{};for(var t=e.strict!==!1,i=xo(s),n=i.length,r=-1,a,o="";++r<n;)a=i[r],o+=Wf(a,t);return o}function bt(){if(Ue>=Us)throw Error("Invalid byte index");var s=Fs[Ue]&255;if(Ue++,(s&192)==128)return s&63;throw Error("Invalid continuation byte")}function Vf(s){var e,t,i,n,r;if(Ue>Us)throw Error("Invalid byte index");if(Ue==Us)return!1;if(e=Fs[Ue]&255,Ue++,(e&128)==0)return e;if((e&224)==192){if(t=bt(),r=(e&31)<<6|t,r>=128)return r;throw Error("Invalid continuation byte")}if((e&240)==224){if(t=bt(),i=bt(),r=(e&15)<<12|t<<6|i,r>=2048)return vo(r,s)?r:65533;throw Error("Invalid continuation byte")}if((e&248)==240&&(t=bt(),i=bt(),n=bt(),r=(e&7)<<18|t<<12|i<<6|n,r>=65536&&r<=1114111))return r;throw Error("Invalid UTF-8 detected")}var Fs,Us,Ue;function Gf(s,e){e=e||{};var t=e.strict!==!1;Fs=xo(s),Us=Fs.length,Ue=0;for(var i=[],n;(n=Vf(t))!==!1;)i.push(n);return zf(i)}go.exports={version:"2.1.2",encode:$f,decode:Gf}});var To=x(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.packets=L.protocol=void 0;L.encodePacket=bn;L.encodeBase64Packet=wo;L.decodePacket=yn;L.decodeBase64Packet=So;L.encodePayload=Jf;L.decodePayload=Zf;L.encodePayloadAsBinary=ko;L.decodePayloadAsBinary=Co;var _o=bo();L.protocol=3;var Kf=s=>{for(let e of s)if(e.data instanceof ArrayBuffer||ArrayBuffer.isView(e.data))return!0;return!1};L.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};var yt=Object.keys(L.packets),me={type:"error",data:"parser error"},Yf=Buffer.concat([]);function bn(s,e,t,i){if(typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t=null),Buffer.isBuffer(s.data))return yo(s,e,i);if(s.data&&(s.data.buffer||s.data)instanceof ArrayBuffer)return yo({type:s.type,data:_n(s.data)},e,i);var n=L.packets[s.type];return s.data!==void 0&&(n+=t?_o.encode(String(s.data),{strict:!1}):String(s.data)),i(""+n)}function yo(s,e,t){if(!e)return wo(s,t);var i=s.data,n=Buffer.allocUnsafe(1);return n[0]=L.packets[s.type],t(Buffer.concat([n,i]))}function wo(s,e){var t=Buffer.isBuffer(s.data)?s.data:_n(s.data),i="b"+L.packets[s.type];return i+=t.toString("base64"),e(i)}function yn(s,e,t){if(s===void 0)return me;let i;if(typeof s=="string")return i=s.charAt(0),i==="b"?So(s.slice(1),e):t&&(s=Xf(s),s===!1)||Number(i)!=i||!yt[i]?me:s.length>1?{type:yt[i],data:s.slice(1)}:{type:yt[i]};if(e==="arraybuffer"){var n=new Uint8Array(s);return i=n[0],{type:yt[i],data:n.buffer.slice(1)}}return s instanceof ArrayBuffer&&(s=_n(s)),i=s[0],{type:yt[i],data:s.slice(1)}}function Xf(s){try{s=_o.decode(s,{strict:!1})}catch{return!1}return s}function So(s,e){var t=yt[s.charAt(0)],i=Buffer.from(s.slice(1),"base64");if(e==="arraybuffer"){for(var n=new Uint8Array(i.length),r=0;r<n.length;r++)n[r]=i[r];i=n.buffer}return{type:t,data:i}}function Jf(s,e,t){if(typeof e=="function"&&(t=e,e=null),e&&Kf(s))return ko(s,t);if(!s.length)return t("0:");function i(n,r){bn(n,e,!1,function(a){r(null,Qf(a))})}Eo(s,i,function(n,r){return t(r.join(""))})}function Qf(s){return s.length+":"+s}function Eo(s,e,t){let i=new Array(s.length),n=0;for(let r=0;r<s.length;r++)e(s[r],(a,o)=>{i[r]=o,++n===s.length&&t(null,i)})}function Zf(s,e,t){if(typeof s!="string")return Co(s,e,t);if(typeof e=="function"&&(t=e,e=null),s==="")return t(me,0,1);for(var i="",n,r,a,o=0,c=s.length;o<c;o++){var l=s.charAt(o);if(l!==":"){i+=l;continue}if(i===""||i!=(n=Number(i))||(r=s.slice(o+1,o+1+n),i!=r.length))return t(me,0,1);if(r.length){if(a=yn(r,e,!1),me.type===a.type&&me.data===a.data)return t(me,0,1);var p=t(a,o+n,c);if(p===!1)return}o+=n,i=""}if(i!=="")return t(me,0,1)}function eh(s){for(var e="",t=0,i=s.length;t<i;t++)e+=String.fromCharCode(s[t]);return e}function th(s){for(var e=Buffer.allocUnsafe(s.length),t=0,i=s.length;t<i;t++)e.writeUInt8(s.charCodeAt(t),t);return e}function _n(s){var e=s.byteLength||s.length,t=s.byteOffset||0;return Buffer.from(s.buffer||s,t,e)}function ko(s,e){if(!s.length)return e(Yf);Eo(s,sh,function(t,i){return e(Buffer.concat(i))})}function sh(s,e){function t(i){var n=""+i.length,r;if(typeof i=="string"){r=Buffer.allocUnsafe(n.length+2),r[0]=0;for(var a=0;a<n.length;a++)r[a+1]=parseInt(n[a],10);return r[r.length-1]=255,e(null,Buffer.concat([r,th(i)]))}r=Buffer.allocUnsafe(n.length+2),r[0]=1;for(var a=0;a<n.length;a++)r[a+1]=parseInt(n[a],10);r[r.length-1]=255,e(null,Buffer.concat([r,i]))}bn(s,!0,!0,t)}function Co(s,e,t){typeof e=="function"&&(t=e,e=null);for(var i=s,n=[],r;i.length>0;){var a="",o=i[0]===0;for(r=1;i[r]!==255;r++){if(a.length>310)return t(me,0,1);a+=""+i[r]}i=i.slice(a.length+1);var c=parseInt(a,10),l=i.slice(1,c+1);o&&(l=eh(l)),n.push(l),i=i.slice(c+1)}var p=n.length;for(r=0;r<p;r++){var u=n[r];t(yn(u,e,!0),r,p)}}});var Ro=x((qy,Oo)=>{var _t=1e3,wt=_t*60,St=wt*60,Qe=St*24,ih=Qe*7,nh=Qe*365.25;Oo.exports=function(s,e){e=e||{};var t=typeof s;if(t==="string"&&s.length>0)return rh(s);if(t==="number"&&isFinite(s))return e.long?oh(s):ah(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function rh(s){if(s=String(s),!(s.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*nh;case"weeks":case"week":case"w":return t*ih;case"days":case"day":case"d":return t*Qe;case"hours":case"hour":case"hrs":case"hr":case"h":return t*St;case"minutes":case"minute":case"mins":case"min":case"m":return t*wt;case"seconds":case"second":case"secs":case"sec":case"s":return t*_t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function ah(s){var e=Math.abs(s);return e>=Qe?Math.round(s/Qe)+"d":e>=St?Math.round(s/St)+"h":e>=wt?Math.round(s/wt)+"m":e>=_t?Math.round(s/_t)+"s":s+"ms"}function oh(s){var e=Math.abs(s);return e>=Qe?Hs(s,e,Qe,"day"):e>=St?Hs(s,e,St,"hour"):e>=wt?Hs(s,e,wt,"minute"):e>=_t?Hs(s,e,_t,"second"):s+" ms"}function Hs(s,e,t,i){var n=e>=t*1.5;return Math.round(s/t)+" "+i+(n?"s":"")}});var wn=x((Fy,Po)=>{function ch(s){t.debug=t,t.default=t,t.coerce=c,t.disable=a,t.enable=n,t.enabled=o,t.humanize=Ro(),t.destroy=l,Object.keys(s).forEach(p=>{t[p]=s[p]}),t.names=[],t.skips=[],t.formatters={};function e(p){let u=0;for(let f=0;f<p.length;f++)u=(u<<5)-u+p.charCodeAt(f),u|=0;return t.colors[Math.abs(u)%t.colors.length]}t.selectColor=e;function t(p){let u,f=null,m,h;function d(...v){if(!d.enabled)return;let b=d,g=Number(new Date),A=g-(u||g);b.diff=A,b.prev=u,b.curr=g,u=g,v[0]=t.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let k=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(q,K)=>{if(q==="%%")return"%";k++;let ae=t.formatters[K];if(typeof ae=="function"){let Y=v[k];q=ae.call(b,Y),v.splice(k,1),k--}return q}),t.formatArgs.call(b,v),(b.log||t.log).apply(b,v)}return d.namespace=p,d.useColors=t.useColors(),d.color=t.selectColor(p),d.extend=i,d.destroy=t.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==t.namespaces&&(m=t.namespaces,h=t.enabled(p)),h),set:v=>{f=v}}),typeof t.init=="function"&&t.init(d),d}function i(p,u){let f=t(this.namespace+(typeof u>"u"?":":u)+p);return f.log=this.log,f}function n(p){t.save(p),t.namespaces=p,t.names=[],t.skips=[];let u=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of u)f[0]==="-"?t.skips.push(f.slice(1)):t.names.push(f)}function r(p,u){let f=0,m=0,h=-1,d=0;for(;f<p.length;)if(m<u.length&&(u[m]===p[f]||u[m]==="*"))u[m]==="*"?(h=m,d=f,m++):(f++,m++);else if(h!==-1)m=h+1,d++,f=d;else return!1;for(;m<u.length&&u[m]==="*";)m++;return m===u.length}function a(){let p=[...t.names,...t.skips.map(u=>"-"+u)].join(",");return t.enable(""),p}function o(p){for(let u of t.skips)if(r(p,u))return!1;for(let u of t.names)if(r(p,u))return!0;return!1}function c(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Po.exports=ch});var Ao=x((Q,zs)=>{Q.formatArgs=ph;Q.save=uh;Q.load=dh;Q.useColors=lh;Q.storage=fh();Q.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Q.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function lh(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ph(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+zs.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;s.splice(1,0,e,"color: inherit");let t=0,i=0;s[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(t++,n==="%c"&&(i=t))}),s.splice(i,0,e)}Q.log=console.debug||console.log||(()=>{});function uh(s){try{s?Q.storage.setItem("debug",s):Q.storage.removeItem("debug")}catch{}}function dh(){let s;try{s=Q.storage.getItem("debug")||Q.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}function fh(){try{return localStorage}catch{}}zs.exports=wn()(Q);var{formatters:hh}=zs.exports;hh.j=function(s){try{return JSON.stringify(s)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Lo=x((Uy,No)=>{"use strict";No.exports=(s,e=process.argv)=>{let t=s.startsWith("-")?"":s.length===1?"-":"--",i=e.indexOf(t+s),n=e.indexOf("--");return i!==-1&&(n===-1||i<n)}});var Io=x((Hy,Bo)=>{"use strict";var mh=require("os"),jo=require("tty"),oe=Lo(),{env:j}=process,He;oe("no-color")||oe("no-colors")||oe("color=false")||oe("color=never")?He=0:(oe("color")||oe("colors")||oe("color=true")||oe("color=always"))&&(He=1);"FORCE_COLOR"in j&&(j.FORCE_COLOR==="true"?He=1:j.FORCE_COLOR==="false"?He=0:He=j.FORCE_COLOR.length===0?1:Math.min(parseInt(j.FORCE_COLOR,10),3));function Sn(s){return s===0?!1:{level:s,hasBasic:!0,has256:s>=2,has16m:s>=3}}function En(s,e){if(He===0)return 0;if(oe("color=16m")||oe("color=full")||oe("color=truecolor"))return 3;if(oe("color=256"))return 2;if(s&&!e&&He===void 0)return 0;let t=He||0;if(j.TERM==="dumb")return t;if(process.platform==="win32"){let i=mh.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in j)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in j)||j.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in j){let i=parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(j.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM)||"COLORTERM"in j?1:t}function xh(s){let e=En(s,s&&s.isTTY);return Sn(e)}Bo.exports={supportsColor:xh,stdout:Sn(En(!0,jo.isatty(1))),stderr:Sn(En(!0,jo.isatty(2)))}});var Mo=x((B,$s)=>{var vh=require("tty"),Ws=require("util");B.init=Eh;B.log=_h;B.formatArgs=bh;B.save=wh;B.load=Sh;B.useColors=gh;B.destroy=Ws.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");B.colors=[6,2,3,4,5,1];try{let s=Io();s&&(s.stderr||s).level>=2&&(B.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}B.inspectOpts=Object.keys(process.env).filter(s=>/^debug_/i.test(s)).reduce((s,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,r)=>r.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),s[t]=i,s},{});function gh(){return"colors"in B.inspectOpts?!!B.inspectOpts.colors:vh.isatty(process.stderr.fd)}function bh(s){let{namespace:e,useColors:t}=this;if(t){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),r=` ${n};1m${e} \x1B[0m`;s[0]=r+s[0].split(`
3
+ `).join(`
4
+ `+r),s.push(n+"m+"+$s.exports.humanize(this.diff)+"\x1B[0m")}else s[0]=yh()+e+" "+s[0]}function yh(){return B.inspectOpts.hideDate?"":new Date().toISOString()+" "}function _h(...s){return process.stderr.write(Ws.formatWithOptions(B.inspectOpts,...s)+`
5
+ `)}function wh(s){s?process.env.DEBUG=s:delete process.env.DEBUG}function Sh(){return process.env.DEBUG}function Eh(s){s.inspectOpts={};let e=Object.keys(B.inspectOpts);for(let t=0;t<e.length;t++)s.inspectOpts[e[t]]=B.inspectOpts[e[t]]}$s.exports=wn()(B);var{formatters:Do}=$s.exports;Do.o=function(s){return this.inspectOpts.colors=this.useColors,Ws.inspect(s,this.inspectOpts).split(`
6
+ `).map(e=>e.trim()).join(" ")};Do.O=function(s){return this.inspectOpts.colors=this.useColors,Ws.inspect(s,this.inspectOpts)}});var N=x((zy,kn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kn.exports=Ao():kn.exports=Mo()});var Ze=x(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Transport=void 0;var kh=require("events"),Ch=ts(),Th=To(),Oh=N(),qo=(0,Oh.default)("engine:transport");function Rh(){}var Vs=class extends kh.EventEmitter{get readyState(){return this._readyState}set readyState(e){qo("readyState updated from %s to %s (%s)",this._readyState,e,this.name),this._readyState=e}constructor(e){super(),this.writable=!1,this._readyState="open",this.discarded=!1,this.protocol=e._query.EIO==="4"?4:3,this.parser=this.protocol===4?Ch:Th,this.supportsBinary=!(e._query&&e._query.b64)}discard(){this.discarded=!0}onRequest(e){}close(e){this.readyState==="closed"||this.readyState==="closing"||(this.readyState="closing",this.doClose(e||Rh))}onError(e,t){if(this.listeners("error").length){let i=new Error(e);i.type="TransportError",i.description=t,this.emit("error",i)}else qo("ignored transport error %s (%s)",e,t)}onPacket(e){this.emit("packet",e)}onData(e){this.onPacket(this.parser.decodePacket(e))}onClose(){this.readyState="closed",this.emit("close")}};Gs.Transport=Vs;Vs.upgradesTo=[]});var Tn=x(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.Polling=void 0;var Ph=Ze(),Fo=require("zlib"),Ah=js(),Nh=N(),se=(0,Nh.default)("engine:polling"),Lh={gzip:Fo.createGzip,deflate:Fo.createDeflate},Cn=class extends Ph.Transport{constructor(e){super(e),this.closeTimeout=30*1e3}get name(){return"polling"}onRequest(e){let t=e.res;e.res=null,e.method==="GET"?this.onPollRequest(e,t):e.method==="POST"?this.onDataRequest(e,t):(t.writeHead(500),t.end())}onPollRequest(e,t){if(this.req){se("request overlap"),this.onError("overlap from client"),t.writeHead(400),t.end();return}se("setting request"),this.req=e,this.res=t;let i=()=>{this.onError("poll connection closed prematurely")},n=()=>{e.removeListener("close",i),this.req=this.res=null};e.cleanup=n,e.on("close",i),this.writable=!0,this.emit("ready"),this.writable&&this.shouldClose&&(se("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq){this.onError("data request overlap from client"),t.writeHead(400),t.end();return}let i=e.headers["content-type"]==="application/octet-stream";if(i&&this.protocol===4)return this.onError("invalid content");this.dataReq=e,this.dataRes=t;let n=i?Buffer.concat([]):"",r=()=>{e.removeListener("data",o),e.removeListener("end",c),e.removeListener("close",a),this.dataReq=this.dataRes=n=null},a=()=>{r(),this.onError("data request connection closed prematurely")},o=l=>{let p;i?(n=Buffer.concat([n,l]),p=n.length):(n+=l,p=Buffer.byteLength(n)),p>this.maxHttpBufferSize&&(t.writeHead(413).end(),r())},c=()=>{this.onData(n);let l={"Content-Type":"text/html","Content-Length":"2"};t.writeHead(200,this.headers(e,l)),t.end("ok"),r()};e.on("close",a),i||e.setEncoding("utf8"),e.on("data",o),e.on("end",c)}onData(e){se('received "%s"',e);let t=i=>{if(i.type==="close")return se("got xhr close packet"),this.onClose(),!1;this.onPacket(i)};this.protocol===3?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(se("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);let t=i=>{let n=e.some(r=>r.options&&r.options.compress);this.write(i,{compress:n})};this.protocol===3?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){se('writing "%s"',e),this.doWrite(e,t,()=>{this.req.cleanup(),this.emit("drain")})}doWrite(e,t,i){let n=typeof e=="string",a={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},o=p=>{a["Content-Length"]=typeof p=="string"?Buffer.byteLength(p):p.length,this.res.writeHead(200,this.headers(this.req,a)),this.res.end(p),i()};if(!this.httpCompression||!t.compress){o(e);return}if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold){o(e);return}let l=Ah(this.req).encodings(["gzip","deflate"]);if(!l){o(e);return}this.compress(e,l,(p,u)=>{if(p){this.res.writeHead(500),this.res.end(),i(p);return}a["Content-Encoding"]=l,o(u)})}compress(e,t,i){se("compressing");let n=[],r=0;Lh[t](this.httpCompression).on("error",i).on("data",function(a){n.push(a),r+=a.length}).on("end",function(){i(null,Buffer.concat(n,r))}).end(e)}doClose(e){se("closing");let t;this.dataReq&&(se("aborting ongoing data request"),this.dataReq.destroy());let i=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(se("transport writable - closing right away"),this.send([{type:"close"}]),i()):this.discarded?(se("transport discarded - closing right away"),i()):(se("transport not writable - buffering orderly close"),this.shouldClose=i,t=setTimeout(i,this.closeTimeout))}headers(e,t={}){let i=e.headers["user-agent"];return i&&(~i.indexOf(";MSIE")||~i.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}};Ks.Polling=Cn});var Uo=x(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.JSONP=void 0;var jh=Tn(),Bh=require("querystring"),Ih=/\\\\n/g,Dh=/(\\)?\\n/g,On=class extends jh.Polling{constructor(e){super(e),this.head="___eio["+(e._query.j||"").replace(/[^0-9]/g,"")+"](",this.foot=");"}onData(e){e=Bh.parse(e).d,typeof e=="string"&&(e=e.replace(Dh,function(t,i){return i?t:`
7
+ `}),super.onData(e.replace(Ih,"\\n")))}doWrite(e,t,i){let n=JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");e=this.head+n+this.foot,super.doWrite(e,t,i)}};Ys.JSONP=On});var zo=x(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.WebSocket=void 0;var Mh=Ze(),qh=N(),Ho=(0,qh.default)("engine:ws"),Rn=class extends Mh.Transport{constructor(e){super(e),this._doSend=t=>{this.socket.send(t,this._onSent)},this._doSendLast=t=>{this.socket.send(t,this._onSentLast)},this._onSent=t=>{t&&this.onError("write error",t.stack)},this._onSentLast=t=>{t?this.onError("write error",t.stack):(this.emit("drain"),this.writable=!0,this.emit("ready"))},this.socket=e.websocket,this.socket.on("message",(t,i)=>{let n=i?t:t.toString();Ho('received "%s"',n),super.onData(n)}),this.socket.once("close",this.onClose.bind(this)),this.socket.on("error",this.onError.bind(this)),this.writable=!0,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){let i=e[t],n=t+1===e.length;this._canSendPreEncodedFrame(i)?this.socket._sender.sendFrame(i.options.wsPreEncodedFrame,n?this._onSentLast:this._onSent):this.parser.encodePacket(i,this.supportsBinary,n?this._doSendLast:this._doSend)}}_canSendPreEncodedFrame(e){var t,i,n;return!this.perMessageDeflate&&typeof((i=(t=this.socket)===null||t===void 0?void 0:t._sender)===null||i===void 0?void 0:i.sendFrame)=="function"&&((n=e.options)===null||n===void 0?void 0:n.wsPreEncodedFrame)!==void 0}doClose(e){Ho("closing"),this.socket.close(),e&&e()}};Xs.WebSocket=Rn});var An=x(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.WebTransport=void 0;var Fh=Ze(),Uh=N(),Hh=ts(),Et=(0,Uh.default)("engine:webtransport"),Pn=class extends Fh.Transport{constructor(e,t,i){super({_query:{EIO:"4"}}),this.session=e;let n=(0,Hh.createPacketEncoderStream)();n.readable.pipeTo(t.writable).catch(()=>{Et("the stream was closed")}),this.writer=n.writable.getWriter(),(async()=>{try{for(;;){let{value:r,done:a}=await i.read();if(a){Et("session is closed");break}Et("received chunk: %o",r),this.onPacket(r)}}catch(r){Et("error while reading: %s",r.message)}})(),e.closed.then(()=>this.onClose()),this.writable=!0}get name(){return"webtransport"}async send(e){this.writable=!1;try{for(let t=0;t<e.length;t++){let i=e[t];await this.writer.write(i)}}catch(t){Et("error while writing: %s",t.message)}this.emit("drain"),this.writable=!0,this.emit("ready")}doClose(e){Et("closing WebTransport session"),this.session.close(),e&&e()}};Js.WebTransport=Pn});var Ln=x(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var zh=Tn(),Wh=Uo(),$h=zo(),Vh=An();Nn.default={polling:Wo,websocket:$h.WebSocket,webtransport:Vh.WebTransport};function Wo(s){return typeof s._query.j=="string"?new Wh.JSONP(s):new zh.Polling(s)}Wo.upgradesTo=["websocket","webtransport"]});var Bn=x(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.Socket=void 0;var Gh=require("events"),Kh=N(),ke=require("timers"),P=(0,Kh.default)("engine:socket"),jn=class extends Gh.EventEmitter{get readyState(){return this._readyState}set readyState(e){P("readyState updated from %s to %s",this._readyState,e),this._readyState=e}constructor(e,t,i,n,r){super(),this._readyState="opening",this.upgrading=!1,this.upgraded=!1,this.writeBuffer=[],this.packetsFn=[],this.sentCallbackFn=[],this.cleanupFn=[],this.id=e,this.server=t,this.request=n,this.protocol=r,n&&(n.websocket&&n.websocket._socket?this.remoteAddress=n.websocket._socket.remoteAddress:this.remoteAddress=n.connection.remoteAddress),this.pingTimeoutTimer=null,this.pingIntervalTimer=null,this.setTransport(i),this.onOpen()}onOpen(){this.readyState="open",this.transport.sid=this.id,this.sendPacket("open",JSON.stringify({sid:this.id,upgrades:this.getAvailableUpgrades(),pingInterval:this.server.opts.pingInterval,pingTimeout:this.server.opts.pingTimeout,maxPayload:this.server.opts.maxHttpBufferSize})),this.server.opts.initialPacket&&this.sendPacket("message",this.server.opts.initialPacket),this.emit("open"),this.protocol===3?this.resetPingTimeout():this.schedulePing()}onPacket(e){if(this.readyState!=="open")return P("packet received with closed socket");switch(P(`received packet ${e.type}`),this.emit("packet",e),e.type){case"ping":if(this.transport.protocol!==3){this.onError(new Error("invalid heartbeat direction"));return}P("got ping"),this.pingTimeoutTimer.refresh(),this.sendPacket("pong"),this.emit("heartbeat");break;case"pong":if(this.transport.protocol===3){this.onError(new Error("invalid heartbeat direction"));return}P("got pong"),(0,ke.clearTimeout)(this.pingTimeoutTimer),this.pingIntervalTimer.refresh(),this.emit("heartbeat");break;case"error":this.onClose("parse error");break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}}onError(e){P("transport error"),this.onClose("transport error",e)}schedulePing(){this.pingIntervalTimer=(0,ke.setTimeout)(()=>{P("writing ping packet - expecting pong within %sms",this.server.opts.pingTimeout),this.sendPacket("ping"),this.resetPingTimeout()},this.server.opts.pingInterval)}resetPingTimeout(){(0,ke.clearTimeout)(this.pingTimeoutTimer),this.pingTimeoutTimer=(0,ke.setTimeout)(()=>{this.readyState!=="closed"&&this.onClose("ping timeout")},this.protocol===3?this.server.opts.pingInterval+this.server.opts.pingTimeout:this.server.opts.pingTimeout)}setTransport(e){let t=this.onError.bind(this),i=()=>this.flush(),n=this.onPacket.bind(this),r=this.onDrain.bind(this),a=this.onClose.bind(this,"transport close");this.transport=e,this.transport.once("error",t),this.transport.on("ready",i),this.transport.on("packet",n),this.transport.on("drain",r),this.transport.once("close",a),this.cleanupFn.push(function(){e.removeListener("error",t),e.removeListener("ready",i),e.removeListener("packet",n),e.removeListener("drain",r),e.removeListener("close",a)})}onDrain(){if(this.sentCallbackFn.length>0){P("executing batch send callback");let e=this.sentCallbackFn.shift();if(e)for(let t=0;t<e.length;t++)e[t](this.transport)}}_maybeUpgrade(e){P('might upgrade socket transport from "%s" to "%s"',this.transport.name,e.name),this.upgrading=!0;let t=(0,ke.setTimeout)(()=>{P("client did not complete upgrade - closing transport"),a(),e.readyState==="open"&&e.close()},this.server.opts.upgradeTimeout),i,n=p=>{p.type==="ping"&&p.data==="probe"?(P("got probe ping packet, sending pong"),e.send([{type:"pong",data:"probe"}]),this.emit("upgrading",e),clearInterval(i),i=setInterval(r,100)):p.type==="upgrade"&&this.readyState!=="closed"?(P("got upgrade packet - upgrading"),a(),this.transport.discard(),this.upgraded=!0,this.clearTransport(),this.setTransport(e),this.emit("upgrade",e),this.flush(),this.readyState==="closing"&&e.close(()=>{this.onClose("forced close")})):(a(),e.close())},r=()=>{this.transport.name==="polling"&&this.transport.writable&&(P("writing a noop packet to polling for fast upgrade"),this.transport.send([{type:"noop"}]))},a=()=>{this.upgrading=!1,clearInterval(i),(0,ke.clearTimeout)(t),e.removeListener("packet",n),e.removeListener("close",c),e.removeListener("error",o),this.removeListener("close",l)},o=p=>{P("client did not complete upgrade - %s",p),a(),e.close(),e=null},c=()=>{o("transport closed")},l=()=>{o("socket closed")};e.on("packet",n),e.once("close",c),e.once("error",o),this.once("close",l)}clearTransport(){let e,t=this.cleanupFn.length;for(let i=0;i<t;i++)e=this.cleanupFn.shift(),e();this.transport.on("error",function(){P("error triggered by discarded transport")}),this.transport.close(),(0,ke.clearTimeout)(this.pingTimeoutTimer)}onClose(e,t){this.readyState!=="closed"&&(this.readyState="closed",(0,ke.clearTimeout)(this.pingIntervalTimer),(0,ke.clearTimeout)(this.pingTimeoutTimer),process.nextTick(()=>{this.writeBuffer=[]}),this.packetsFn=[],this.sentCallbackFn=[],this.clearTransport(),this.emit("close",e,t))}send(e,t,i){return this.sendPacket("message",e,t,i),this}write(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i={},n){if(typeof i=="function"&&(n=i,i={}),this.readyState!=="closing"&&this.readyState!=="closed"){P('sending packet "%s" (%s)',e,t),i.compress=i.compress!==!1;let r={type:e,options:i};t&&(r.data=t),this.emit("packetCreate",r),this.writeBuffer.push(r),typeof n=="function"&&this.packetsFn.push(n),this.flush()}}flush(){if(this.readyState!=="closed"&&this.transport.writable&&this.writeBuffer.length){P("flushing buffer to transport"),this.emit("flush",this.writeBuffer),this.server.emit("flush",this,this.writeBuffer);let e=this.writeBuffer;this.writeBuffer=[],this.packetsFn.length?(this.sentCallbackFn.push(this.packetsFn),this.packetsFn=[]):this.sentCallbackFn.push(null),this.transport.send(e),this.emit("drain"),this.server.emit("drain",this)}}getAvailableUpgrades(){let e=[],t=this.server.upgrades(this.transport.name);for(let i=0;i<t.length;++i){let n=t[i];this.server.opts.transports.indexOf(n)!==-1&&e.push(n)}return e}close(e){if(e&&(this.readyState==="open"||this.readyState==="closing"))return this.closeTransport(e);if(this.readyState==="open"){if(this.readyState="closing",this.writeBuffer.length){P("there are %d remaining packets in the buffer, waiting for the 'drain' event",this.writeBuffer.length),this.once("drain",()=>{P("all packets have been sent, closing the transport"),this.closeTransport(e)});return}P("the buffer is empty, closing the transport right away"),this.closeTransport(e)}}closeTransport(e){P("closing the transport (discard? %s)",!!e),e&&this.transport.discard(),this.transport.close(this.onClose.bind(this,"forced close"))}};Qs.Socket=jn});var Go=x(In=>{"use strict";In.parse=tm;In.serialize=sm;var Yh=Object.prototype.toString,Xh=Object.prototype.hasOwnProperty,Jh=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Qh=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,Zh=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,em=/^[\u0020-\u003A\u003D-\u007E]*$/;function tm(s,e){if(typeof s!="string")throw new TypeError("argument str must be a string");var t={},i=s.length;if(i<2)return t;var n=e&&e.decode||im,r=0,a=0,o=0;do{if(a=s.indexOf("=",r),a===-1)break;if(o=s.indexOf(";",r),o===-1)o=i;else if(a>o){r=s.lastIndexOf(";",a-1)+1;continue}var c=$o(s,r,a),l=Vo(s,a,c),p=s.slice(c,l);if(!Xh.call(t,p)){var u=$o(s,a+1,o),f=Vo(s,o,u);s.charCodeAt(u)===34&&s.charCodeAt(f-1)===34&&(u++,f--);var m=s.slice(u,f);t[p]=rm(m,n)}r=o+1}while(r<i);return t}function $o(s,e,t){do{var i=s.charCodeAt(e);if(i!==32&&i!==9)return e}while(++e<t);return t}function Vo(s,e,t){for(;e>t;){var i=s.charCodeAt(--e);if(i!==32&&i!==9)return e+1}return t}function sm(s,e,t){var i=t&&t.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Jh.test(s))throw new TypeError("argument name is invalid");var n=i(e);if(!Qh.test(n))throw new TypeError("argument val is invalid");var r=s+"="+n;if(!t)return r;if(t.maxAge!=null){var a=Math.floor(t.maxAge);if(!isFinite(a))throw new TypeError("option maxAge is invalid");r+="; Max-Age="+a}if(t.domain){if(!Zh.test(t.domain))throw new TypeError("option domain is invalid");r+="; Domain="+t.domain}if(t.path){if(!em.test(t.path))throw new TypeError("option path is invalid");r+="; Path="+t.path}if(t.expires){var o=t.expires;if(!nm(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");r+="; Expires="+o.toUTCString()}if(t.httpOnly&&(r+="; HttpOnly"),t.secure&&(r+="; Secure"),t.partitioned&&(r+="; Partitioned"),t.priority){var c=typeof t.priority=="string"?t.priority.toLowerCase():t.priority;switch(c){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(t.sameSite){var l=typeof t.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite;switch(l){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r}function im(s){return s.indexOf("%")!==-1?decodeURIComponent(s):s}function nm(s){return Yh.call(s)==="[object Date]"}function rm(s,e){try{return e(s)}catch{return s}}});var Ce=x((Qy,Xo)=>{"use strict";var Ko=["nodebuffer","arraybuffer","fragments"],Yo=typeof Blob<"u";Yo&&Ko.push("blob");Xo.exports={BINARY_TYPES:Ko,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Yo,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var ss=x((Zy,Zs)=>{"use strict";var{EMPTY_BUFFER:am}=Ce(),Dn=Buffer[Symbol.species];function om(s,e){if(s.length===0)return am;if(s.length===1)return s[0];let t=Buffer.allocUnsafe(e),i=0;for(let n=0;n<s.length;n++){let r=s[n];t.set(r,i),i+=r.length}return i<e?new Dn(t.buffer,t.byteOffset,i):t}function Jo(s,e,t,i,n){for(let r=0;r<n;r++)t[i+r]=s[r]^e[r&3]}function Qo(s,e){for(let t=0;t<s.length;t++)s[t]^=e[t&3]}function cm(s){return s.length===s.buffer.byteLength?s.buffer:s.buffer.slice(s.byteOffset,s.byteOffset+s.length)}function Mn(s){if(Mn.readOnly=!0,Buffer.isBuffer(s))return s;let e;return s instanceof ArrayBuffer?e=new Dn(s):ArrayBuffer.isView(s)?e=new Dn(s.buffer,s.byteOffset,s.byteLength):(e=Buffer.from(s),Mn.readOnly=!1),e}Zs.exports={concat:om,mask:Jo,toArrayBuffer:cm,toBuffer:Mn,unmask:Qo};if(!process.env.WS_NO_BUFFER_UTIL)try{let s=require("bufferutil");Zs.exports.mask=function(e,t,i,n,r){r<48?Jo(e,t,i,n,r):s.mask(e,t,i,n,r)},Zs.exports.unmask=function(e,t){e.length<32?Qo(e,t):s.unmask(e,t)}}catch{}});var tc=x((e_,ec)=>{"use strict";var Zo=Symbol("kDone"),qn=Symbol("kRun"),Fn=class{constructor(e){this[Zo]=()=>{this.pending--,this[qn]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[qn]()}[qn](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Zo])}}};ec.exports=Fn});var ns=x((t_,rc)=>{"use strict";var is=require("zlib"),sc=ss(),lm=tc(),{kStatusCode:ic}=Ce(),pm=Buffer[Symbol.species],um=Buffer.from([0,0,255,255]),ti=Symbol("permessage-deflate"),Te=Symbol("total-length"),kt=Symbol("callback"),ze=Symbol("buffers"),Ct=Symbol("error"),ei,Un=class{constructor(e,t,i){if(this._maxPayload=i|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!ei){let n=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;ei=new lm(n)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[kt];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,i=e.find(n=>!(t.serverNoContextTakeover===!1&&n.server_no_context_takeover||n.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>n.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!n.client_max_window_bits));if(!i)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(i.server_no_context_takeover=!0),t.clientNoContextTakeover&&(i.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(i.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?i.client_max_window_bits=t.clientMaxWindowBits:(i.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete i.client_max_window_bits,i}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(i=>{let n=t[i];if(n.length>1)throw new Error(`Parameter "${i}" must have only a single value`);if(n=n[0],i==="client_max_window_bits"){if(n!==!0){let r=+n;if(!Number.isInteger(r)||r<8||r>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=r}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else if(i==="server_max_window_bits"){let r=+n;if(!Number.isInteger(r)||r<8||r>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=r}else if(i==="client_no_context_takeover"||i==="server_no_context_takeover"){if(n!==!0)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else throw new Error(`Unknown parameter "${i}"`);t[i]=n})}),e}decompress(e,t,i){ei.add(n=>{this._decompress(e,t,(r,a)=>{n(),i(r,a)})})}compress(e,t,i){ei.add(n=>{this._compress(e,t,(r,a)=>{n(),i(r,a)})})}_decompress(e,t,i){let n=this._isServer?"client":"server";if(!this._inflate){let r=`${n}_max_window_bits`,a=typeof this.params[r]!="number"?is.Z_DEFAULT_WINDOWBITS:this.params[r];this._inflate=is.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[ti]=this,this._inflate[Te]=0,this._inflate[ze]=[],this._inflate.on("error",fm),this._inflate.on("data",nc)}this._inflate[kt]=i,this._inflate.write(e),t&&this._inflate.write(um),this._inflate.flush(()=>{let r=this._inflate[Ct];if(r){this._inflate.close(),this._inflate=null,i(r);return}let a=sc.concat(this._inflate[ze],this._inflate[Te]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Te]=0,this._inflate[ze]=[],t&&this.params[`${n}_no_context_takeover`]&&this._inflate.reset()),i(null,a)})}_compress(e,t,i){let n=this._isServer?"server":"client";if(!this._deflate){let r=`${n}_max_window_bits`,a=typeof this.params[r]!="number"?is.Z_DEFAULT_WINDOWBITS:this.params[r];this._deflate=is.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Te]=0,this._deflate[ze]=[],this._deflate.on("data",dm)}this._deflate[kt]=i,this._deflate.write(e),this._deflate.flush(is.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let r=sc.concat(this._deflate[ze],this._deflate[Te]);t&&(r=new pm(r.buffer,r.byteOffset,r.length-4)),this._deflate[kt]=null,this._deflate[Te]=0,this._deflate[ze]=[],t&&this.params[`${n}_no_context_takeover`]&&this._deflate.reset(),i(null,r)})}};rc.exports=Un;function dm(s){this[ze].push(s),this[Te]+=s.length}function nc(s){if(this[Te]+=s.length,this[ti]._maxPayload<1||this[Te]<=this[ti]._maxPayload){this[ze].push(s);return}this[Ct]=new RangeError("Max payload size exceeded"),this[Ct].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Ct][ic]=1009,this.removeListener("data",nc),this.reset()}function fm(s){if(this[ti]._inflate=null,this[Ct]){this[kt](this[Ct]);return}s[ic]=1007,this[kt](s)}});var Tt=x((s_,si)=>{"use strict";var{isUtf8:ac}=require("buffer"),{hasBlob:hm}=Ce(),mm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function xm(s){return s>=1e3&&s<=1014&&s!==1004&&s!==1005&&s!==1006||s>=3e3&&s<=4999}function Hn(s){let e=s.length,t=0;for(;t<e;)if((s[t]&128)===0)t++;else if((s[t]&224)===192){if(t+1===e||(s[t+1]&192)!==128||(s[t]&254)===192)return!1;t+=2}else if((s[t]&240)===224){if(t+2>=e||(s[t+1]&192)!==128||(s[t+2]&192)!==128||s[t]===224&&(s[t+1]&224)===128||s[t]===237&&(s[t+1]&224)===160)return!1;t+=3}else if((s[t]&248)===240){if(t+3>=e||(s[t+1]&192)!==128||(s[t+2]&192)!==128||(s[t+3]&192)!==128||s[t]===240&&(s[t+1]&240)===128||s[t]===244&&s[t+1]>143||s[t]>244)return!1;t+=4}else return!1;return!0}function vm(s){return hm&&typeof s=="object"&&typeof s.arrayBuffer=="function"&&typeof s.type=="string"&&typeof s.stream=="function"&&(s[Symbol.toStringTag]==="Blob"||s[Symbol.toStringTag]==="File")}si.exports={isBlob:vm,isValidStatusCode:xm,isValidUTF8:Hn,tokenChars:mm};if(ac)si.exports.isValidUTF8=function(s){return s.length<24?Hn(s):ac(s)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let s=require("utf-8-validate");si.exports.isValidUTF8=function(e){return e.length<32?Hn(e):s(e)}}catch{}});var Gn=x((i_,fc)=>{"use strict";var{Writable:gm}=require("stream"),oc=ns(),{BINARY_TYPES:bm,EMPTY_BUFFER:cc,kStatusCode:ym,kWebSocket:_m}=Ce(),{concat:zn,toArrayBuffer:wm,unmask:Sm}=ss(),{isValidStatusCode:Em,isValidUTF8:lc}=Tt(),ii=Buffer[Symbol.species],ce=0,pc=1,uc=2,dc=3,Wn=4,$n=5,ni=6,Vn=class extends gm{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||bm[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[_m]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=ce}_write(e,t,i){if(this._opcode===8&&this._state==ce)return i();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(i)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let i=this._buffers[0];return this._buffers[0]=new ii(i.buffer,i.byteOffset+e,i.length-e),new ii(i.buffer,i.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let i=this._buffers[0],n=t.length-e;e>=i.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(i.buffer,i.byteOffset,e),n),this._buffers[0]=new ii(i.buffer,i.byteOffset+e,i.length-e)),e-=i.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case ce:this.getInfo(e);break;case pc:this.getPayloadLength16(e);break;case uc:this.getPayloadLength64(e);break;case dc:this.getMask();break;case Wn:this.getData(e);break;case $n:case ni:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let n=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(n);return}let i=(t[0]&64)===64;if(i&&!this._extensions[oc.extensionName]){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(!this._fragmented){let n=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._compressed=i}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let n=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(n);return}if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let n=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(n);return}}else{let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let n=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(n);return}}else if(this._masked){let n=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(n);return}this._payloadLength===126?this._state=pc:this._payloadLength===127?this._state=uc:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),i=t.readUInt32BE(0);if(i>Math.pow(2,21)-1){let n=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(n);return}this._payloadLength=i*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=dc:this._state=Wn}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Wn}getData(e){let t=cc;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&Sm(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=$n,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[oc.extensionName].decompress(e,this._fin,(n,r)=>{if(n)return t(n);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(a);return}this._fragments.push(r)}this.dataMessage(t),this._state===ce&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=ce;return}let t=this._messageLength,i=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=zn(i,t):this._binaryType==="arraybuffer"?n=wm(zn(i,t)):this._binaryType==="blob"?n=new Blob(i):n=i,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=ce):(this._state=ni,setImmediate(()=>{this.emit("message",n,!0),this._state=ce,this.startLoop(e)}))}else{let n=zn(i,t);if(!this._skipUTF8Validation&&!lc(n)){let r=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(r);return}this._state===$n||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=ce):(this._state=ni,setImmediate(()=>{this.emit("message",n,!1),this._state=ce,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,cc),this.end();else{let i=e.readUInt16BE(0);if(!Em(i)){let r=this.createError(RangeError,`invalid status code ${i}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(r);return}let n=new ii(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!lc(n)){let r=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(r);return}this._loop=!1,this.emit("conclude",i,n),this.end()}this._state=ce;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=ce):(this._state=ni,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=ce,this.startLoop(t)}))}createError(e,t,i,n,r){this._loop=!1,this._errored=!0;let a=new e(i?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=r,a[ym]=n,a}};fc.exports=Vn});var Xn=x((r_,xc)=>{"use strict";var{Duplex:n_}=require("stream"),{randomFillSync:km}=require("crypto"),hc=ns(),{EMPTY_BUFFER:Cm,kWebSocket:Tm,NOOP:Om}=Ce(),{isBlob:Ot,isValidStatusCode:Rm}=Tt(),{mask:mc,toBuffer:et}=ss(),le=Symbol("kByteLength"),Pm=Buffer.alloc(4),ri=8*1024,tt,Rt=ri,xe=0,Am=1,Nm=2,Kn=class s{constructor(e,t,i){this._extensions=t||{},i&&(this._generateMask=i,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=xe,this.onerror=Om,this[Tm]=void 0}static frame(e,t){let i,n=!1,r=2,a=!1;t.mask&&(i=t.maskBuffer||Pm,t.generateMask?t.generateMask(i):(Rt===ri&&(tt===void 0&&(tt=Buffer.alloc(ri)),km(tt,0,ri),Rt=0),i[0]=tt[Rt++],i[1]=tt[Rt++],i[2]=tt[Rt++],i[3]=tt[Rt++]),a=(i[0]|i[1]|i[2]|i[3])===0,r=6);let o;typeof e=="string"?(!t.mask||a)&&t[le]!==void 0?o=t[le]:(e=Buffer.from(e),o=e.length):(o=e.length,n=t.mask&&t.readOnly&&!a);let c=o;o>=65536?(r+=8,c=127):o>125&&(r+=2,c=126);let l=Buffer.allocUnsafe(n?o+r:r);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(o,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),t.mask?(l[1]|=128,l[r-4]=i[0],l[r-3]=i[1],l[r-2]=i[2],l[r-1]=i[3],a?[l,e]:n?(mc(e,i,l,r,o),[l]):(mc(e,i,e,0,o),[l,e])):[l,e]}close(e,t,i,n){let r;if(e===void 0)r=Cm;else{if(typeof e!="number"||!Rm(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)r=Buffer.allocUnsafe(2),r.writeUInt16BE(e,0);else{let o=Buffer.byteLength(t);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");r=Buffer.allocUnsafe(2+o),r.writeUInt16BE(e,0),typeof t=="string"?r.write(t,2):r.set(t,2)}}let a={[le]:r.length,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==xe?this.enqueue([this.dispatch,r,!1,a,n]):this.sendFrame(s.frame(r,a),n)}ping(e,t,i){let n,r;if(typeof e=="string"?(n=Buffer.byteLength(e),r=!1):Ot(e)?(n=e.size,r=!1):(e=et(e),n=e.length,r=et.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[le]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:r,rsv1:!1};Ot(e)?this._state!==xe?this.enqueue([this.getBlobData,e,!1,a,i]):this.getBlobData(e,!1,a,i):this._state!==xe?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(s.frame(e,a),i)}pong(e,t,i){let n,r;if(typeof e=="string"?(n=Buffer.byteLength(e),r=!1):Ot(e)?(n=e.size,r=!1):(e=et(e),n=e.length,r=et.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[le]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:r,rsv1:!1};Ot(e)?this._state!==xe?this.enqueue([this.getBlobData,e,!1,a,i]):this.getBlobData(e,!1,a,i):this._state!==xe?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(s.frame(e,a),i)}send(e,t,i){let n=this._extensions[hc.extensionName],r=t.binary?2:1,a=t.compress,o,c;typeof e=="string"?(o=Buffer.byteLength(e),c=!1):Ot(e)?(o=e.size,c=!1):(e=et(e),o=e.length,c=et.readOnly),this._firstFragment?(this._firstFragment=!1,a&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=n._threshold),this._compress=a):(a=!1,r=0),t.fin&&(this._firstFragment=!0);let l={[le]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:r,readOnly:c,rsv1:a};Ot(e)?this._state!==xe?this.enqueue([this.getBlobData,e,this._compress,l,i]):this.getBlobData(e,this._compress,l,i):this._state!==xe?this.enqueue([this.dispatch,e,this._compress,l,i]):this.dispatch(e,this._compress,l,i)}getBlobData(e,t,i,n){this._bufferedBytes+=i[le],this._state=Nm,e.arrayBuffer().then(r=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(Yn,this,o,n);return}this._bufferedBytes-=i[le];let a=et(r);t?this.dispatch(a,t,i,n):(this._state=xe,this.sendFrame(s.frame(a,i),n),this.dequeue())}).catch(r=>{process.nextTick(Lm,this,r,n)})}dispatch(e,t,i,n){if(!t){this.sendFrame(s.frame(e,i),n);return}let r=this._extensions[hc.extensionName];this._bufferedBytes+=i[le],this._state=Am,r.compress(e,i.fin,(a,o)=>{if(this._socket.destroyed){let c=new Error("The socket was closed while data was being compressed");Yn(this,c,n);return}this._bufferedBytes-=i[le],this._state=xe,i.readOnly=!1,this.sendFrame(s.frame(o,i),n),this.dequeue()})}dequeue(){for(;this._state===xe&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][le],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][le],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};xc.exports=Kn;function Yn(s,e,t){typeof t=="function"&&t(e);for(let i=0;i<s._queue.length;i++){let n=s._queue[i],r=n[n.length-1];typeof r=="function"&&r(e)}}function Lm(s,e,t){Yn(s,e,t),s.onerror(e)}});var kc=x((a_,Ec)=>{"use strict";var{kForOnEventAttribute:rs,kListener:Jn}=Ce(),vc=Symbol("kCode"),gc=Symbol("kData"),bc=Symbol("kError"),yc=Symbol("kMessage"),_c=Symbol("kReason"),Pt=Symbol("kTarget"),wc=Symbol("kType"),Sc=Symbol("kWasClean"),Oe=class{constructor(e){this[Pt]=null,this[wc]=e}get target(){return this[Pt]}get type(){return this[wc]}};Object.defineProperty(Oe.prototype,"target",{enumerable:!0});Object.defineProperty(Oe.prototype,"type",{enumerable:!0});var st=class extends Oe{constructor(e,t={}){super(e),this[vc]=t.code===void 0?0:t.code,this[_c]=t.reason===void 0?"":t.reason,this[Sc]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[vc]}get reason(){return this[_c]}get wasClean(){return this[Sc]}};Object.defineProperty(st.prototype,"code",{enumerable:!0});Object.defineProperty(st.prototype,"reason",{enumerable:!0});Object.defineProperty(st.prototype,"wasClean",{enumerable:!0});var At=class extends Oe{constructor(e,t={}){super(e),this[bc]=t.error===void 0?null:t.error,this[yc]=t.message===void 0?"":t.message}get error(){return this[bc]}get message(){return this[yc]}};Object.defineProperty(At.prototype,"error",{enumerable:!0});Object.defineProperty(At.prototype,"message",{enumerable:!0});var as=class extends Oe{constructor(e,t={}){super(e),this[gc]=t.data===void 0?null:t.data}get data(){return this[gc]}};Object.defineProperty(as.prototype,"data",{enumerable:!0});var jm={addEventListener(s,e,t={}){for(let n of this.listeners(s))if(!t[rs]&&n[Jn]===e&&!n[rs])return;let i;if(s==="message")i=function(r,a){let o=new as("message",{data:a?r:r.toString()});o[Pt]=this,ai(e,this,o)};else if(s==="close")i=function(r,a){let o=new st("close",{code:r,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Pt]=this,ai(e,this,o)};else if(s==="error")i=function(r){let a=new At("error",{error:r,message:r.message});a[Pt]=this,ai(e,this,a)};else if(s==="open")i=function(){let r=new Oe("open");r[Pt]=this,ai(e,this,r)};else return;i[rs]=!!t[rs],i[Jn]=e,t.once?this.once(s,i):this.on(s,i)},removeEventListener(s,e){for(let t of this.listeners(s))if(t[Jn]===e&&!t[rs]){this.removeListener(s,t);break}}};Ec.exports={CloseEvent:st,ErrorEvent:At,Event:Oe,EventTarget:jm,MessageEvent:as};function ai(s,e,t){typeof s=="object"&&s.handleEvent?s.handleEvent.call(s,t):s.call(e,t)}});var Qn=x((o_,Cc)=>{"use strict";var{tokenChars:os}=Tt();function _e(s,e,t){s[e]===void 0?s[e]=[t]:s[e].push(t)}function Bm(s){let e=Object.create(null),t=Object.create(null),i=!1,n=!1,r=!1,a,o,c=-1,l=-1,p=-1,u=0;for(;u<s.length;u++)if(l=s.charCodeAt(u),a===void 0)if(p===-1&&os[l]===1)c===-1&&(c=u);else if(u!==0&&(l===32||l===9))p===-1&&c!==-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u);let m=s.slice(c,p);l===44?(_e(e,m,t),t=Object.create(null)):a=m,c=p=-1}else throw new SyntaxError(`Unexpected character at index ${u}`);else if(o===void 0)if(p===-1&&os[l]===1)c===-1&&(c=u);else if(l===32||l===9)p===-1&&c!==-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u),_e(t,s.slice(c,p),!0),l===44&&(_e(e,a,t),t=Object.create(null),a=void 0),c=p=-1}else if(l===61&&c!==-1&&p===-1)o=s.slice(c,u),c=p=-1;else throw new SyntaxError(`Unexpected character at index ${u}`);else if(n){if(os[l]!==1)throw new SyntaxError(`Unexpected character at index ${u}`);c===-1?c=u:i||(i=!0),n=!1}else if(r)if(os[l]===1)c===-1&&(c=u);else if(l===34&&c!==-1)r=!1,p=u;else if(l===92)n=!0;else throw new SyntaxError(`Unexpected character at index ${u}`);else if(l===34&&s.charCodeAt(u-1)===61)r=!0;else if(p===-1&&os[l]===1)c===-1&&(c=u);else if(c!==-1&&(l===32||l===9))p===-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u);let m=s.slice(c,p);i&&(m=m.replace(/\\/g,""),i=!1),_e(t,o,m),l===44&&(_e(e,a,t),t=Object.create(null),a=void 0),o=void 0,c=p=-1}else throw new SyntaxError(`Unexpected character at index ${u}`);if(c===-1||r||l===32||l===9)throw new SyntaxError("Unexpected end of input");p===-1&&(p=u);let f=s.slice(c,p);return a===void 0?_e(e,f,t):(o===void 0?_e(t,f,!0):i?_e(t,o,f.replace(/\\/g,"")):_e(t,o,f),_e(e,a,t)),e}function Im(s){return Object.keys(s).map(e=>{let t=s[e];return Array.isArray(t)||(t=[t]),t.map(i=>[e].concat(Object.keys(i).map(n=>{let r=i[n];return Array.isArray(r)||(r=[r]),r.map(a=>a===!0?n:`${n}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}Cc.exports={format:Im,parse:Bm}});var pi=x((p_,Mc)=>{"use strict";var Dm=require("events"),Mm=require("https"),qm=require("http"),Rc=require("net"),Fm=require("tls"),{randomBytes:Um,createHash:Hm}=require("crypto"),{Duplex:c_,Readable:l_}=require("stream"),{URL:Zn}=require("url"),We=ns(),zm=Gn(),Wm=Xn(),{isBlob:$m}=Tt(),{BINARY_TYPES:Tc,EMPTY_BUFFER:oi,GUID:Vm,kForOnEventAttribute:er,kListener:Gm,kStatusCode:Km,kWebSocket:I,NOOP:Pc}=Ce(),{EventTarget:{addEventListener:Ym,removeEventListener:Xm}}=kc(),{format:Jm,parse:Qm}=Qn(),{toBuffer:Zm}=ss(),ex=30*1e3,Ac=Symbol("kAborted"),tr=[8,13],Re=["CONNECTING","OPEN","CLOSING","CLOSED"],tx=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,T=class s extends Dm{constructor(e,t,i){super(),this._binaryType=Tc[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=oi,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=s.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(i=t,t=[]):t=[t]),Nc(this,e,t,i)):(this._autoPong=i.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){Tc.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,i){let n=new zm({allowSynchronousEvents:i.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation}),r=new Wm(e,this._extensions,i.generateMask);this._receiver=n,this._sender=r,this._socket=e,n[I]=this,r[I]=this,e[I]=this,n.on("conclude",nx),n.on("drain",rx),n.on("error",ax),n.on("message",ox),n.on("ping",cx),n.on("pong",lx),r.onerror=px,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Bc),e.on("data",li),e.on("end",Ic),e.on("error",Dc),this._readyState=s.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=s.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[We.extensionName]&&this._extensions[We.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=s.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==s.CLOSED){if(this.readyState===s.CONNECTING){ie(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===s.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=s.CLOSING,this._sender.close(e,t,!this._isServer,i=>{i||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),jc(this)}}pause(){this.readyState===s.CONNECTING||this.readyState===s.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=t=void 0):typeof t=="function"&&(i=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){sr(this,e,i);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||oi,t,i)}pong(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=t=void 0):typeof t=="function"&&(i=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){sr(this,e,i);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||oi,t,i)}resume(){this.readyState===s.CONNECTING||this.readyState===s.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(i=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){sr(this,e,i);return}let n={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[We.extensionName]||(n.compress=!1),this._sender.send(e||oi,n,i)}terminate(){if(this.readyState!==s.CLOSED){if(this.readyState===s.CONNECTING){ie(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=s.CLOSING,this._socket.destroy())}}};Object.defineProperty(T,"CONNECTING",{enumerable:!0,value:Re.indexOf("CONNECTING")});Object.defineProperty(T.prototype,"CONNECTING",{enumerable:!0,value:Re.indexOf("CONNECTING")});Object.defineProperty(T,"OPEN",{enumerable:!0,value:Re.indexOf("OPEN")});Object.defineProperty(T.prototype,"OPEN",{enumerable:!0,value:Re.indexOf("OPEN")});Object.defineProperty(T,"CLOSING",{enumerable:!0,value:Re.indexOf("CLOSING")});Object.defineProperty(T.prototype,"CLOSING",{enumerable:!0,value:Re.indexOf("CLOSING")});Object.defineProperty(T,"CLOSED",{enumerable:!0,value:Re.indexOf("CLOSED")});Object.defineProperty(T.prototype,"CLOSED",{enumerable:!0,value:Re.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(s=>{Object.defineProperty(T.prototype,s,{enumerable:!0})});["open","error","close","message"].forEach(s=>{Object.defineProperty(T.prototype,`on${s}`,{enumerable:!0,get(){for(let e of this.listeners(s))if(e[er])return e[Gm];return null},set(e){for(let t of this.listeners(s))if(t[er]){this.removeListener(s,t);break}typeof e=="function"&&this.addEventListener(s,e,{[er]:!0})}})});T.prototype.addEventListener=Ym;T.prototype.removeEventListener=Xm;Mc.exports=T;function Nc(s,e,t,i){let n={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:tr[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...i,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(s._autoPong=n.autoPong,!tr.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${tr.join(", ")})`);let r;if(e instanceof Zn)r=e;else try{r=new Zn(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}r.protocol==="http:"?r.protocol="ws:":r.protocol==="https:"&&(r.protocol="wss:"),s._url=r.href;let a=r.protocol==="wss:",o=r.protocol==="ws+unix:",c;if(r.protocol!=="ws:"&&!a&&!o?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:o&&!r.pathname?c="The URL's pathname is empty":r.hash&&(c="The URL contains a fragment identifier"),c){let d=new SyntaxError(c);if(s._redirects===0)throw d;ci(s,d);return}let l=a?443:80,p=Um(16).toString("base64"),u=a?Mm.request:qm.request,f=new Set,m;if(n.createConnection=n.createConnection||(a?ix:sx),n.defaultPort=n.defaultPort||l,n.port=r.port||l,n.host=r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":p,Connection:"Upgrade",Upgrade:"websocket"},n.path=r.pathname+r.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(m=new We(n.perMessageDeflate!==!0?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=Jm({[We.extensionName]:m.offer()})),t.length){for(let d of t){if(typeof d!="string"||!tx.test(d)||f.has(d))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(d)}n.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(r.username||r.password)&&(n.auth=`${r.username}:${r.password}`),o){let d=n.path.split(":");n.socketPath=d[0],n.path=d[1]}let h;if(n.followRedirects){if(s._redirects===0){s._originalIpc=o,s._originalSecure=a,s._originalHostOrSocketPath=o?n.socketPath:r.host;let d=i&&i.headers;if(i={...i,headers:{}},d)for(let[v,b]of Object.entries(d))i.headers[v.toLowerCase()]=b}else if(s.listenerCount("redirect")===0){let d=o?s._originalIpc?n.socketPath===s._originalHostOrSocketPath:!1:s._originalIpc?!1:r.host===s._originalHostOrSocketPath;(!d||s._originalSecure&&!a)&&(delete n.headers.authorization,delete n.headers.cookie,d||delete n.headers.host,n.auth=void 0)}n.auth&&!i.headers.authorization&&(i.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),h=s._req=u(n),s._redirects&&s.emit("redirect",s.url,h)}else h=s._req=u(n);n.timeout&&h.on("timeout",()=>{ie(s,h,"Opening handshake has timed out")}),h.on("error",d=>{h===null||h[Ac]||(h=s._req=null,ci(s,d))}),h.on("response",d=>{let v=d.headers.location,b=d.statusCode;if(v&&n.followRedirects&&b>=300&&b<400){if(++s._redirects>n.maxRedirects){ie(s,h,"Maximum redirects exceeded");return}h.abort();let g;try{g=new Zn(v,e)}catch{let k=new SyntaxError(`Invalid URL: ${v}`);ci(s,k);return}Nc(s,g,t,i)}else s.emit("unexpected-response",h,d)||ie(s,h,`Unexpected server response: ${d.statusCode}`)}),h.on("upgrade",(d,v,b)=>{if(s.emit("upgrade",d),s.readyState!==T.CONNECTING)return;h=s._req=null;let g=d.headers.upgrade;if(g===void 0||g.toLowerCase()!=="websocket"){ie(s,v,"Invalid Upgrade header");return}let A=Hm("sha1").update(p+Vm).digest("base64");if(d.headers["sec-websocket-accept"]!==A){ie(s,v,"Invalid Sec-WebSocket-Accept header");return}let k=d.headers["sec-websocket-protocol"],U;if(k!==void 0?f.size?f.has(k)||(U="Server sent an invalid subprotocol"):U="Server sent a subprotocol but none was requested":f.size&&(U="Server sent no subprotocol"),U){ie(s,v,U);return}k&&(s._protocol=k);let q=d.headers["sec-websocket-extensions"];if(q!==void 0){if(!m){ie(s,v,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let K;try{K=Qm(q)}catch{ie(s,v,"Invalid Sec-WebSocket-Extensions header");return}let ae=Object.keys(K);if(ae.length!==1||ae[0]!==We.extensionName){ie(s,v,"Server indicated an extension that was not requested");return}try{m.accept(K[We.extensionName])}catch{ie(s,v,"Invalid Sec-WebSocket-Extensions header");return}s._extensions[We.extensionName]=m}s.setSocket(v,b,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})}),n.finishRequest?n.finishRequest(h,s):h.end()}function ci(s,e){s._readyState=T.CLOSING,s._errorEmitted=!0,s.emit("error",e),s.emitClose()}function sx(s){return s.path=s.socketPath,Rc.connect(s)}function ix(s){return s.path=void 0,!s.servername&&s.servername!==""&&(s.servername=Rc.isIP(s.host)?"":s.host),Fm.connect(s)}function ie(s,e,t){s._readyState=T.CLOSING;let i=new Error(t);Error.captureStackTrace(i,ie),e.setHeader?(e[Ac]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(ci,s,i)):(e.destroy(i),e.once("error",s.emit.bind(s,"error")),e.once("close",s.emitClose.bind(s)))}function sr(s,e,t){if(e){let i=$m(e)?e.size:Zm(e).length;s._socket?s._sender._bufferedBytes+=i:s._bufferedAmount+=i}if(t){let i=new Error(`WebSocket is not open: readyState ${s.readyState} (${Re[s.readyState]})`);process.nextTick(t,i)}}function nx(s,e){let t=this[I];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=s,t._socket[I]!==void 0&&(t._socket.removeListener("data",li),process.nextTick(Lc,t._socket),s===1005?t.close():t.close(s,e))}function rx(){let s=this[I];s.isPaused||s._socket.resume()}function ax(s){let e=this[I];e._socket[I]!==void 0&&(e._socket.removeListener("data",li),process.nextTick(Lc,e._socket),e.close(s[Km])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",s))}function Oc(){this[I].emitClose()}function ox(s,e){this[I].emit("message",s,e)}function cx(s){let e=this[I];e._autoPong&&e.pong(s,!this._isServer,Pc),e.emit("ping",s)}function lx(s){this[I].emit("pong",s)}function Lc(s){s.resume()}function px(s){let e=this[I];e.readyState!==T.CLOSED&&(e.readyState===T.OPEN&&(e._readyState=T.CLOSING,jc(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",s)))}function jc(s){s._closeTimer=setTimeout(s._socket.destroy.bind(s._socket),ex)}function Bc(){let s=this[I];this.removeListener("close",Bc),this.removeListener("data",li),this.removeListener("end",Ic),s._readyState=T.CLOSING;let e;!this._readableState.endEmitted&&!s._closeFrameReceived&&!s._receiver._writableState.errorEmitted&&(e=s._socket.read())!==null&&s._receiver.write(e),s._receiver.end(),this[I]=void 0,clearTimeout(s._closeTimer),s._receiver._writableState.finished||s._receiver._writableState.errorEmitted?s.emitClose():(s._receiver.on("error",Oc),s._receiver.on("finish",Oc))}function li(s){this[I]._receiver.write(s)||this.pause()}function Ic(){let s=this[I];s._readyState=T.CLOSING,s._receiver.end(),this.end()}function Dc(){let s=this[I];this.removeListener("error",Dc),this.on("error",Pc),s&&(s._readyState=T.CLOSING,this.destroy())}});var Hc=x((d_,Uc)=>{"use strict";var u_=pi(),{Duplex:ux}=require("stream");function qc(s){s.emit("close")}function dx(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Fc(s){this.removeListener("error",Fc),this.destroy(),this.listenerCount("error")===0&&this.emit("error",s)}function fx(s,e){let t=!0,i=new ux({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return s.on("message",function(r,a){let o=!a&&i._readableState.objectMode?r.toString():r;i.push(o)||s.pause()}),s.once("error",function(r){i.destroyed||(t=!1,i.destroy(r))}),s.once("close",function(){i.destroyed||i.push(null)}),i._destroy=function(n,r){if(s.readyState===s.CLOSED){r(n),process.nextTick(qc,i);return}let a=!1;s.once("error",function(c){a=!0,r(c)}),s.once("close",function(){a||r(n),process.nextTick(qc,i)}),t&&s.terminate()},i._final=function(n){if(s.readyState===s.CONNECTING){s.once("open",function(){i._final(n)});return}s._socket!==null&&(s._socket._writableState.finished?(n(),i._readableState.endEmitted&&i.destroy()):(s._socket.once("finish",function(){n()}),s.close()))},i._read=function(){s.isPaused&&s.resume()},i._write=function(n,r,a){if(s.readyState===s.CONNECTING){s.once("open",function(){i._write(n,r,a)});return}s.send(n,a)},i.on("end",dx),i.on("error",Fc),i}Uc.exports=fx});var Wc=x((f_,zc)=>{"use strict";var{tokenChars:hx}=Tt();function mx(s){let e=new Set,t=-1,i=-1,n=0;for(n;n<s.length;n++){let a=s.charCodeAt(n);if(i===-1&&hx[a]===1)t===-1&&(t=n);else if(n!==0&&(a===32||a===9))i===-1&&t!==-1&&(i=n);else if(a===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${n}`);i===-1&&(i=n);let o=s.slice(t,i);if(e.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);e.add(o),t=i=-1}else throw new SyntaxError(`Unexpected character at index ${n}`)}if(t===-1||i!==-1)throw new SyntaxError("Unexpected end of input");let r=s.slice(t,n);if(e.has(r))throw new SyntaxError(`The "${r}" subprotocol is duplicated`);return e.add(r),e}zc.exports={parse:mx}});var Jc=x((m_,Xc)=>{"use strict";var xx=require("events"),ui=require("http"),{Duplex:h_}=require("stream"),{createHash:vx}=require("crypto"),$c=Qn(),it=ns(),gx=Wc(),bx=pi(),{GUID:yx,kWebSocket:_x}=Ce(),wx=/^[+/0-9A-Za-z]{22}==$/,Vc=0,Gc=1,Yc=2,ir=class extends xx{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:bx,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=ui.createServer((i,n)=>{let r=ui.STATUS_CODES[426];n.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),n.end(r)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let i=this.emit.bind(this,"connection");this._removeListeners=Sx(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(n,r,a)=>{this.handleUpgrade(n,r,a,i)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=Vc}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Yc){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(cs,this);return}if(e&&this.once("close",e),this._state!==Gc)if(this._state=Gc,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(cs,this):process.nextTick(cs,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{cs(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,i,n){t.on("error",Kc);let r=e.headers["sec-websocket-key"],a=e.headers.upgrade,o=+e.headers["sec-websocket-version"];if(e.method!=="GET"){nt(this,e,t,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){nt(this,e,t,400,"Invalid Upgrade header");return}if(r===void 0||!wx.test(r)){nt(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==13&&o!==8){nt(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){ls(t,400);return}let c=e.headers["sec-websocket-protocol"],l=new Set;if(c!==void 0)try{l=gx.parse(c)}catch{nt(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let p=e.headers["sec-websocket-extensions"],u={};if(this.options.perMessageDeflate&&p!==void 0){let f=new it(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let m=$c.parse(p);m[it.extensionName]&&(f.accept(m[it.extensionName]),u[it.extensionName]=f)}catch{nt(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(m,h,d,v)=>{if(!m)return ls(t,h||401,d,v);this.completeUpgrade(u,r,l,e,t,i,n)});return}if(!this.options.verifyClient(f))return ls(t,401)}this.completeUpgrade(u,r,l,e,t,i,n)}completeUpgrade(e,t,i,n,r,a,o){if(!r.readable||!r.writable)return r.destroy();if(r[_x])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Vc)return ls(r,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${vx("sha1").update(t+yx).digest("base64")}`],p=new this.options.WebSocket(null,void 0,this.options);if(i.size){let u=this.options.handleProtocols?this.options.handleProtocols(i,n):i.values().next().value;u&&(l.push(`Sec-WebSocket-Protocol: ${u}`),p._protocol=u)}if(e[it.extensionName]){let u=e[it.extensionName].params,f=$c.format({[it.extensionName]:[u]});l.push(`Sec-WebSocket-Extensions: ${f}`),p._extensions=e}this.emit("headers",l,n),r.write(l.concat(`\r
8
+ `).join(`\r
9
+ `)),r.removeListener("error",Kc),p.setSocket(r,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(p),p.on("close",()=>{this.clients.delete(p),this._shouldEmitClose&&!this.clients.size&&process.nextTick(cs,this)})),o(p,n)}};Xc.exports=ir;function Sx(s,e){for(let t of Object.keys(e))s.on(t,e[t]);return function(){for(let i of Object.keys(e))s.removeListener(i,e[i])}}function cs(s){s._state=Yc,s.emit("close")}function Kc(){this.destroy()}function ls(s,e,t,i){t=t||ui.STATUS_CODES[e],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...i},s.once("finish",s.destroy),s.end(`HTTP/1.1 ${e} ${ui.STATUS_CODES[e]}\r
10
+ `+Object.keys(i).map(n=>`${n}: ${i[n]}`).join(`\r
11
+ `)+`\r
12
+ \r
13
+ `+t)}function nt(s,e,t,i,n,r){if(s.listenerCount("wsClientError")){let a=new Error(n);Error.captureStackTrace(a,nt),s.emit("wsClientError",a,t,e)}else ls(t,i,n,r)}});var Zc=x((x_,Qc)=>{"use strict";var Pe=pi();Pe.createWebSocketStream=Hc();Pe.Server=Jc();Pe.Receiver=Gn();Pe.Sender=Xn();Pe.WebSocket=Pe;Pe.WebSocketServer=Pe.Server;Qc.exports=Pe});var sl=x((v_,tl)=>{"use strict";var el=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,kx=Object.prototype.propertyIsEnumerable;function Cx(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function Tx(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var i=Object.getOwnPropertyNames(e).map(function(r){return e[r]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}tl.exports=Tx()?Object.assign:function(s,e){for(var t,i=Cx(s),n,r=1;r<arguments.length;r++){t=Object(arguments[r]);for(var a in t)Ex.call(t,a)&&(i[a]=t[a]);if(el){n=el(t);for(var o=0;o<n.length;o++)kx.call(t,n[o])&&(i[n[o]]=t[n[o]])}}return i}});var rl=x((g_,nr)=>{"use strict";nr.exports=Rx;nr.exports.append=nl;var Ox=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function nl(s,e){if(typeof s!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var t=Array.isArray(e)?e:il(String(e)),i=0;i<t.length;i++)if(!Ox.test(t[i]))throw new TypeError("field argument contains an invalid header name");if(s==="*")return s;var n=s,r=il(s.toLowerCase());if(t.indexOf("*")!==-1||r.indexOf("*")!==-1)return"*";for(var a=0;a<t.length;a++){var o=t[a].toLowerCase();r.indexOf(o)===-1&&(r.push(o),n=n?n+", "+t[a]:t[a])}return n}function il(s){for(var e=0,t=[],i=0,n=0,r=s.length;n<r;n++)switch(s.charCodeAt(n)){case 32:i===e&&(i=e=n+1);break;case 44:t.push(s.substring(i,e)),i=e=n+1;break;default:e=n+1;break}return t.push(s.substring(i,e)),t}function Rx(s,e){if(!s||!s.getHeader||!s.setHeader)throw new TypeError("res argument is required");var t=s.getHeader("Vary")||"",i=Array.isArray(t)?t.join(", "):String(t);(t=nl(i,e))&&s.setHeader("Vary",t)}});var rr=x((b_,al)=>{(function(){"use strict";var s=sl(),e=rl(),t={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function i(h){return typeof h=="string"||h instanceof String}function n(h,d){if(Array.isArray(d)){for(var v=0;v<d.length;++v)if(n(h,d[v]))return!0;return!1}else return i(d)?h===d:d instanceof RegExp?d.test(h):!!d}function r(h,d){var v=d.headers.origin,b=[],g;return!h.origin||h.origin==="*"?b.push([{key:"Access-Control-Allow-Origin",value:"*"}]):i(h.origin)?(b.push([{key:"Access-Control-Allow-Origin",value:h.origin}]),b.push([{key:"Vary",value:"Origin"}])):(g=n(v,h.origin),b.push([{key:"Access-Control-Allow-Origin",value:g?v:!1}]),b.push([{key:"Vary",value:"Origin"}])),b}function a(h){var d=h.methods;return d.join&&(d=h.methods.join(",")),{key:"Access-Control-Allow-Methods",value:d}}function o(h){return h.credentials===!0?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function c(h,d){var v=h.allowedHeaders||h.headers,b=[];return v?v.join&&(v=v.join(",")):(v=d.headers["access-control-request-headers"],b.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),v&&v.length&&b.push([{key:"Access-Control-Allow-Headers",value:v}]),b}function l(h){var d=h.exposedHeaders;if(d)d.join&&(d=d.join(","));else return null;return d&&d.length?{key:"Access-Control-Expose-Headers",value:d}:null}function p(h){var d=(typeof h.maxAge=="number"||h.maxAge)&&h.maxAge.toString();return d&&d.length?{key:"Access-Control-Max-Age",value:d}:null}function u(h,d){for(var v=0,b=h.length;v<b;v++){var g=h[v];g&&(Array.isArray(g)?u(g,d):g.key==="Vary"&&g.value?e(d,g.value):g.value&&d.setHeader(g.key,g.value))}}function f(h,d,v,b){var g=[],A=d.method&&d.method.toUpperCase&&d.method.toUpperCase();A==="OPTIONS"?(g.push(r(h,d)),g.push(o(h,d)),g.push(a(h,d)),g.push(c(h,d)),g.push(p(h,d)),g.push(l(h,d)),u(g,v),h.preflightContinue?b():(v.statusCode=h.optionsSuccessStatus,v.setHeader("Content-Length","0"),v.end())):(g.push(r(h,d)),g.push(o(h,d)),g.push(l(h,d)),u(g,v),b())}function m(h){var d=null;return typeof h=="function"?d=h:d=function(v,b){b(null,h)},function(b,g,A){d(b,function(k,U){if(k)A(k);else{var q=s({},t,U),K=null;q.origin&&typeof q.origin=="function"?K=q.origin:q.origin&&(K=function(ae,Y){Y(null,q.origin)}),K?K(b.headers.origin,function(ae,Y){ae||!Y?A(ae):(q.origin=Y,f(q,b,g,A))}):A()}})}}al.exports=m})()});var or=x(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Server=jt.BaseServer=void 0;var ol=fn(),di=Ln(),Px=require("events"),cl=Bn(),Ax=N(),Nx=Go(),Lx=Zc(),ll=An(),jx=ts(),_=(0,Ax.default)("engine"),Nt=Symbol("responseHeaders");function Bx(s){try{let e=JSON.parse(s);if(typeof e.sid=="string")return e.sid}catch{}}var Lt=class extends Px.EventEmitter{constructor(e={}){super(),this.middlewares=[],this.clients={},this.clientsCount=0,this.opts=Object.assign({wsEngine:Lx.Server,pingTimeout:2e4,pingInterval:25e3,upgradeTimeout:1e4,maxHttpBufferSize:1e6,transports:["polling","websocket"],allowUpgrades:!0,httpCompression:{threshold:1024},cors:!1,allowEIO3:!1},e),e.cookie&&(this.opts.cookie=Object.assign({name:"io",path:"/",httpOnly:e.cookie.path!==!1,sameSite:"lax"},e.cookie)),this.opts.cors&&this.use(rr()(this.opts.cors)),e.perMessageDeflate&&(this.opts.perMessageDeflate=Object.assign({threshold:1024},e.perMessageDeflate)),this.init()}_computePath(e){let t=(e.path||"/engine.io").replace(/\/$/,"");return e.addTrailingSlash!==!1&&(t+="/"),t}upgrades(e){return this.opts.allowUpgrades?di.default[e].upgradesTo||[]:[]}verify(e,t,i){let n=e._query.transport;if(!~this.opts.transports.indexOf(n)||n==="webtransport")return _('unknown transport "%s"',n),i(C.errors.UNKNOWN_TRANSPORT,{transport:n});if(Ix(e.headers.origin)){let o=e.headers.origin;return e.headers.origin=null,_("origin header invalid"),i(C.errors.BAD_REQUEST,{name:"INVALID_ORIGIN",origin:o})}let a=e._query.sid;if(a){if(!this.clients.hasOwnProperty(a))return _('unknown sid "%s"',a),i(C.errors.UNKNOWN_SID,{sid:a});let o=this.clients[a].transport.name;if(!t&&o!==n)return _("bad request: unexpected transport without upgrade"),i(C.errors.BAD_REQUEST,{name:"TRANSPORT_MISMATCH",transport:n,previousTransport:o})}else return e.method!=="GET"?i(C.errors.BAD_HANDSHAKE_METHOD,{method:e.method}):n==="websocket"&&!t?(_("invalid transport upgrade"),i(C.errors.BAD_REQUEST,{name:"TRANSPORT_HANDSHAKE_ERROR"})):this.opts.allowRequest?this.opts.allowRequest(e,(o,c)=>{if(!c)return i(C.errors.FORBIDDEN,{message:o});i()}):i();i()}use(e){this.middlewares.push(e)}_applyMiddlewares(e,t,i){if(this.middlewares.length===0)return _("no middleware to apply, skipping"),i();let n=r=>{_("applying middleware n\xB0%d",r+1),this.middlewares[r](e,t,a=>{if(a)return i(a);r+1<this.middlewares.length?n(r+1):i()})};n(0)}close(){_("closing all open clients");for(let e in this.clients)this.clients.hasOwnProperty(e)&&this.clients[e].close(!0);return this.cleanup(),this}generateId(e){return ol.generateId()}async handshake(e,t,i){let n=t._query.EIO==="4"?4:3;if(n===3&&!this.opts.allowEIO3){_("unsupported protocol version"),this.emit("connection_error",{req:t,code:C.errors.UNSUPPORTED_PROTOCOL_VERSION,message:C.errorMessages[C.errors.UNSUPPORTED_PROTOCOL_VERSION],context:{protocol:n}}),i(C.errors.UNSUPPORTED_PROTOCOL_VERSION);return}let r;try{r=await this.generateId(t)}catch(c){_("error while generating an id"),this.emit("connection_error",{req:t,code:C.errors.BAD_REQUEST,message:C.errorMessages[C.errors.BAD_REQUEST],context:{name:"ID_GENERATION_ERROR",error:c}}),i(C.errors.BAD_REQUEST);return}_('handshaking client "%s"',r);try{var a=this.createTransport(e,t);e==="polling"?(a.maxHttpBufferSize=this.opts.maxHttpBufferSize,a.httpCompression=this.opts.httpCompression):e==="websocket"&&(a.perMessageDeflate=this.opts.perMessageDeflate)}catch(c){_('error handshaking to transport "%s"',e),this.emit("connection_error",{req:t,code:C.errors.BAD_REQUEST,message:C.errorMessages[C.errors.BAD_REQUEST],context:{name:"TRANSPORT_HANDSHAKE_ERROR",error:c}}),i(C.errors.BAD_REQUEST);return}let o=new cl.Socket(r,this,a,t,n);return a.on("headers",(c,l)=>{!l._query.sid&&(this.opts.cookie&&(c["Set-Cookie"]=[(0,Nx.serialize)(this.opts.cookie.name,r,this.opts.cookie)]),this.emit("initial_headers",c,l)),this.emit("headers",c,l)}),a.onRequest(t),this.clients[r]=o,this.clientsCount++,o.once("close",()=>{delete this.clients[r],this.clientsCount--}),this.emit("connection",o),a}async onWebTransportSession(e){let t=setTimeout(()=>{_("the client failed to establish a bidirectional stream in the given period"),e.close()},this.opts.upgradeTimeout),n=await e.incomingBidirectionalStreams.getReader().read();if(n.done){_("session is closed");return}let r=n.value,a=(0,jx.createPacketDecoderStream)(this.opts.maxHttpBufferSize,"nodebuffer"),o=r.readable.pipeThrough(a).getReader(),{value:c,done:l}=await o.read();if(l){_("stream is closed");return}if(clearTimeout(t),c.type!=="open")return _("invalid WebTransport handshake"),e.close();if(c.data===void 0){let f=new ll.WebTransport(e,r,o),m=ol.generateId();_('handshaking client "%s" (WebTransport)',m);let h=new cl.Socket(m,this,f,null,4);this.clients[m]=h,this.clientsCount++,h.once("close",()=>{delete this.clients[m],this.clientsCount--}),this.emit("connection",h);return}let p=Bx(c.data);if(!p)return _("invalid WebTransport handshake"),e.close();let u=this.clients[p];if(!u)_("upgrade attempt for closed client"),e.close();else if(u.upgrading)_("transport has already been trying to upgrade"),e.close();else if(u.upgraded)_("transport had already been upgraded"),e.close();else{_("upgrading existing transport");let f=new ll.WebTransport(e,r,o);u._maybeUpgrade(f)}}};jt.BaseServer=Lt;Lt.errors={UNKNOWN_TRANSPORT:0,UNKNOWN_SID:1,BAD_HANDSHAKE_METHOD:2,BAD_REQUEST:3,FORBIDDEN:4,UNSUPPORTED_PROTOCOL_VERSION:5};Lt.errorMessages={0:"Transport unknown",1:"Session ID unknown",2:"Bad handshake method",3:"Bad request",4:"Forbidden",5:"Unsupported protocol version"};var ar=class{constructor(e,t){this.req=e,this.socket=t,e[Nt]={}}setHeader(e,t){this.req[Nt][e]=t}getHeader(e){return this.req[Nt][e]}removeHeader(e){delete this.req[Nt][e]}write(){}writeHead(){}end(){this.socket.destroy()}},C=class s extends Lt{init(){~this.opts.transports.indexOf("websocket")&&(this.ws&&this.ws.close(),this.ws=new this.opts.wsEngine({noServer:!0,clientTracking:!1,perMessageDeflate:this.opts.perMessageDeflate,maxPayload:this.opts.maxHttpBufferSize}),typeof this.ws.on=="function"&&this.ws.on("headers",(e,t)=>{let i=t[Nt]||{};delete t[Nt],!t._query.sid&&this.emit("initial_headers",i,t),this.emit("headers",i,t),_("writing headers: %j",i),Object.keys(i).forEach(r=>{e.push(`${r}: ${i[r]}`)})}))}cleanup(){this.ws&&(_("closing webSocketServer"),this.ws.close())}prepare(e){if(!e._query){let t=new URL(e.url,"https://socket.io");e._query=Object.fromEntries(t.searchParams.entries())}}createTransport(e,t){return new di.default[e](t)}handleRequest(e,t){_('handling "%s" http request "%s"',e.method,e.url),this.prepare(e),e.res=t;let i=(n,r)=>{if(n!==void 0){this.emit("connection_error",{req:e,code:n,message:s.errorMessages[n],context:r}),pl(t,n,r);return}if(e._query.sid)_("setting new request for existing client"),this.clients[e._query.sid].transport.onRequest(e);else{let a=(o,c)=>pl(t,o,c);this.handshake(e._query.transport,e,a)}};this._applyMiddlewares(e,t,n=>{n?i(s.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!1,i)})}handleUpgrade(e,t,i){this.prepare(e);let n=new ar(e,t),r=(a,o)=>{if(a!==void 0){this.emit("connection_error",{req:e,code:a,message:s.errorMessages[a],context:o}),ul(t,a,o);return}let c=Buffer.from(i);i=null,n.writeHead(),this.ws.handleUpgrade(e,t,c,l=>{this.onWebSocket(e,t,l)})};this._applyMiddlewares(e,n,a=>{a?r(s.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(e,!0,r)})}onWebSocket(e,t,i){if(i.on("error",r),di.default[e._query.transport]!==void 0&&!di.default[e._query.transport].prototype.handlesUpgrades){_("transport doesnt handle upgraded requests"),i.close();return}let n=e._query.sid;if(e.websocket=i,n){let a=this.clients[n];if(!a)_("upgrade attempt for closed client"),i.close();else if(a.upgrading)_("transport has already been trying to upgrade"),i.close();else if(a.upgraded)_("transport had already been upgraded"),i.close();else{_("upgrading existing transport"),i.removeListener("error",r);let o=this.createTransport(e._query.transport,e);o.perMessageDeflate=this.opts.perMessageDeflate,a._maybeUpgrade(o)}}else{let a=(o,c)=>ul(t,o,c);this.handshake(e._query.transport,e,a)}function r(){_("websocket error before upgrade")}}attach(e,t={}){let i=this._computePath(t),n=t.destroyUpgradeTimeout||1e3;function r(o){return i===o.url.slice(0,i.length)}let a=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("close",this.close.bind(this)),e.on("listening",this.init.bind(this)),e.on("request",(o,c)=>{if(r(o))_('intercepting request for path "%s"',i),this.handleRequest(o,c);else{let l=0,p=a.length;for(;l<p;l++)a[l].call(e,o,c)}}),~this.opts.transports.indexOf("websocket")&&e.on("upgrade",(o,c,l)=>{r(o)?this.handleUpgrade(o,c,l):t.destroyUpgrade!==!1&&setTimeout(function(){if(c.writable&&c.bytesWritten<=0)return c.on("error",p=>{_("error while destroying upgrade: %s",p.message)}),c.end()},n)})}};jt.Server=C;function pl(s,e,t){let i=e===C.errors.FORBIDDEN?403:400,n=t&&t.message?t.message:C.errorMessages[e];s.writeHead(i,{"Content-Type":"application/json"}),s.end(JSON.stringify({code:e,message:n}))}function ul(s,e,t={}){if(s.on("error",()=>{_("ignoring error from closed connection")}),s.writable){let i=t.message||C.errorMessages[e],n=Buffer.byteLength(i);s.write(`HTTP/1.1 400 Bad Request\r
14
+ Connection: close\r
15
+ Content-type: text/html\r
16
+ Content-Length: `+n+`\r
17
+ \r
18
+ `+i)}s.destroy()}var ps=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];function Ix(s){if(s+="",s.length<1)return!1;if(!ps[s.charCodeAt(0)])return _('invalid header, index 0, char "%s"',s.charCodeAt(0)),!0;if(s.length<2)return!1;if(!ps[s.charCodeAt(1)])return _('invalid header, index 1, char "%s"',s.charCodeAt(1)),!0;if(s.length<3)return!1;if(!ps[s.charCodeAt(2)])return _('invalid header, index 2, char "%s"',s.charCodeAt(2)),!0;if(s.length<4)return!1;if(!ps[s.charCodeAt(3)])return _('invalid header, index 3, char "%s"',s.charCodeAt(3)),!0;for(let e=4;e<s.length;++e)if(!ps[s.charCodeAt(e)])return _('invalid header, index "%i", char "%s"',e,s.charCodeAt(e)),!0;return!1}});var fl=x(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.Polling=void 0;var Dx=Ze(),dl=require("zlib"),Mx=js(),qx=N(),pe=(0,qx.default)("engine:polling"),Fx={gzip:dl.createGzip,deflate:dl.createDeflate},cr=class extends Dx.Transport{constructor(e){super(e),this.closeTimeout=30*1e3}get name(){return"polling"}onRequest(e){let t=e.res;e.res=null,e.getMethod()==="get"?this.onPollRequest(e,t):e.getMethod()==="post"?this.onDataRequest(e,t):(t.writeStatus("500 Internal Server Error"),t.end())}onPollRequest(e,t){if(this.req){pe("request overlap"),this.onError("overlap from client"),t.writeStatus("500 Internal Server Error"),t.end();return}pe("setting request"),this.req=e,this.res=t;let i=()=>{this.writable=!1,this.onError("poll connection closed prematurely")},n=()=>{this.req=this.res=null};e.cleanup=n,t.onAborted(i),this.writable=!0,this.emit("ready"),this.writable&&this.shouldClose&&(pe("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq){this.onError("data request overlap from client"),t.writeStatus("500 Internal Server Error"),t.end();return}let i=Number(e.headers["content-length"]);if(!i){this.onError("content-length header required"),t.writeStatus("411 Length Required").end();return}if(i>this.maxHttpBufferSize){this.onError("payload too large"),t.writeStatus("413 Payload Too Large").end();return}if(e.headers["content-type"]==="application/octet-stream"&&this.protocol===4)return this.onError("invalid content");this.dataReq=e,this.dataRes=t;let r,a=0,o={"Content-Type":"text/html"};this.headers(e,o);for(let l in o)t.writeHeader(l,String(o[l]));let c=l=>{this.onData(l.toString()),this.onDataRequestCleanup(),t.cork(()=>{t.end("ok")})};t.onAborted(()=>{this.onDataRequestCleanup(),this.onError("data request connection closed prematurely")}),t.onData((l,p)=>{let u=a+l.byteLength;if(u>i){this.onError("content-length mismatch"),t.close();return}if(!r){if(p){c(Buffer.from(l));return}r=Buffer.allocUnsafe(i)}if(Buffer.from(l).copy(r,a),p){if(u!=i){this.onError("content-length mismatch"),t.writeStatus("400 Content-Length Mismatch").end(),this.onDataRequestCleanup();return}c(r);return}a=u})}onDataRequestCleanup(){this.dataReq=this.dataRes=null}onData(e){pe('received "%s"',e);let t=i=>{if(i.type==="close")return pe("got xhr close packet"),this.onClose(),!1;this.onPacket(i)};this.protocol===3?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(pe("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);let t=i=>{let n=e.some(r=>r.options&&r.options.compress);this.write(i,{compress:n})};this.protocol===3?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){pe('writing "%s"',e),this.doWrite(e,t,()=>{this.req.cleanup(),this.emit("drain")})}doWrite(e,t,i){let n=typeof e=="string",a={"Content-Type":n?"text/plain; charset=UTF-8":"application/octet-stream"},o=p=>{this.headers(this.req,a),this.res.cork(()=>{Object.keys(a).forEach(u=>{this.res.writeHeader(u,String(a[u]))}),this.res.end(p)}),i()};if(!this.httpCompression||!t.compress){o(e);return}if((n?Buffer.byteLength(e):e.length)<this.httpCompression.threshold){o(e);return}let l=Mx(this.req).encodings(["gzip","deflate"]);if(!l){o(e);return}this.compress(e,l,(p,u)=>{if(p){this.res.writeStatus("500 Internal Server Error"),this.res.end(),i(p);return}a["Content-Encoding"]=l,o(u)})}compress(e,t,i){pe("compressing");let n=[],r=0;Fx[t](this.httpCompression).on("error",i).on("data",function(a){n.push(a),r+=a.length}).on("end",function(){i(null,Buffer.concat(n,r))}).end(e)}doClose(e){pe("closing");let t,i=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(pe("transport writable - closing right away"),this.send([{type:"close"}]),i()):this.discarded?(pe("transport discarded - closing right away"),i()):(pe("transport not writable - buffering orderly close"),this.shouldClose=i,t=setTimeout(i,this.closeTimeout))}headers(e,t){t=t||{};let i=e.headers["user-agent"];return i&&(~i.indexOf(";MSIE")||~i.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),t["cache-control"]="no-store",this.emit("headers",t,e),t}};fi.Polling=cr});var ml=x(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WebSocket=void 0;var Ux=Ze(),Hx=N(),hl=(0,Hx.default)("engine:ws"),lr=class extends Ux.Transport{constructor(e){super(e),this.writable=!1,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}send(e){this.writable=!1;for(let t=0;t<e.length;t++){let i=e[t],n=t+1===e.length,r=a=>{let o=typeof a!="string",c=this.perMessageDeflate&&Buffer.byteLength(a)>this.perMessageDeflate.threshold;hl('writing "%s"',a),this.socket.send(a,o,c),n&&(this.emit("drain"),this.writable=!0,this.emit("ready"))};i.options&&typeof i.options.wsPreEncoded=="string"?r(i.options.wsPreEncoded):this.parser.encodePacket(i,this.supportsBinary,r)}}doClose(e){hl("closing"),e&&e(),this.socket.end()}};hi.WebSocket=lr});var xl=x(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});var zx=fl(),Wx=ml();pr.default={polling:zx.Polling,websocket:Wx.WebSocket}});var vl=x(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.uServer=void 0;var $x=N(),rt=or(),Vx=xl(),$e=(0,$x.default)("engine:uws"),ur=class extends rt.BaseServer{init(){}cleanup(){}prepare(e,t){e.method=e.getMethod().toUpperCase(),e.url=e.getUrl();let i=new URLSearchParams(e.getQuery());e._query=Object.fromEntries(i.entries()),e.headers={},e.forEach((n,r)=>{e.headers[n]=r}),e.connection={remoteAddress:Buffer.from(t.getRemoteAddressAsText()).toString()},t.onAborted(()=>{$e("response has been aborted")})}createTransport(e,t){return new Vx.default[e](t)}attach(e,t={}){let i=this._computePath(t);e.any(i,this.handleRequest.bind(this)).ws(i,{compression:t.compression,idleTimeout:t.idleTimeout,maxBackpressure:t.maxBackpressure,maxPayloadLength:this.opts.maxHttpBufferSize,upgrade:this.handleUpgrade.bind(this),open:n=>{let r=n.getUserData().transport;r.socket=n,r.writable=!0,r.emit("ready")},message:(n,r,a)=>{n.getUserData().transport.onData(a?r:Buffer.from(r).toString())},close:(n,r,a)=>{n.getUserData().transport.onClose(r,a)}})}_applyMiddlewares(e,t,i){if(this.middlewares.length===0)return i();e.res=new dr(t),super._applyMiddlewares(e,e.res,n=>{e.res.writeHead(),i(n)})}handleRequest(e,t){$e('handling "%s" http request "%s"',t.getMethod(),t.getUrl()),this.prepare(t,e),t.res=e;let i=(n,r)=>{if(n!==void 0){this.emit("connection_error",{req:t,code:n,message:rt.Server.errorMessages[n],context:r}),this.abortRequest(t.res,n,r);return}if(t._query.sid)$e("setting new request for existing client"),this.clients[t._query.sid].transport.onRequest(t);else{let a=(o,c)=>this.abortRequest(e,o,c);this.handshake(t._query.transport,t,a)}};this._applyMiddlewares(t,e,n=>{n?i(rt.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!1,i)})}handleUpgrade(e,t,i){$e("on upgrade"),this.prepare(t,e),t.res=e;let n=async(r,a)=>{if(r!==void 0){this.emit("connection_error",{req:t,code:r,message:rt.Server.errorMessages[r],context:a}),this.abortRequest(e,r,a);return}let o=t._query.sid,c;if(o){let l=this.clients[o];if(l){if(l.upgrading)return $e("transport has already been trying to upgrade"),e.close();if(l.upgraded)return $e("transport had already been upgraded"),e.close();$e("upgrading existing transport"),c=this.createTransport(t._query.transport,t),l._maybeUpgrade(c)}else return $e("upgrade attempt for closed client"),e.close()}else if(c=await this.handshake(t._query.transport,t,(l,p)=>this.abortRequest(e,l,p)),!c)return;t.res.writeStatus("101 Switching Protocols"),e.upgrade({transport:c},t.getHeader("sec-websocket-key"),t.getHeader("sec-websocket-protocol"),t.getHeader("sec-websocket-extensions"),i)};this._applyMiddlewares(t,e,r=>{r?n(rt.Server.errors.BAD_REQUEST,{name:"MIDDLEWARE_FAILURE"}):this.verify(t,!0,n)})}abortRequest(e,t,i){let n=t===rt.Server.errors.FORBIDDEN?"403 Forbidden":"400 Bad Request",r=i&&i.message?i.message:rt.Server.errorMessages[t];e.writeStatus(n),e.writeHeader("Content-Type","application/json"),e.end(JSON.stringify({code:t,message:r}))}};mi.uServer=ur;var dr=class{constructor(e){this.res=e,this.statusWritten=!1,this.headers=[],this.isAborted=!1}set statusCode(e){e&&this.writeStatus(e===200?"200 OK":"204 No Content")}writeHead(e){this.statusCode=e}setHeader(e,t){Array.isArray(t)?t.forEach(i=>{this.writeHeader(e,i)}):this.writeHeader(e,t)}removeHeader(){}getHeader(){}writeStatus(e){if(!this.isAborted)return this.res.writeStatus(e),this.statusWritten=!0,this.writeBufferedHeaders(),this}writeHeader(e,t){this.isAborted||e!=="Content-Length"&&(this.statusWritten?this.res.writeHeader(e,t):this.headers.push([e,t]))}writeBufferedHeaders(){this.headers.forEach(([e,t])=>{this.res.writeHeader(e,t)})}end(e){this.isAborted||this.res.cork(()=>{this.statusWritten||this.writeBufferedHeaders(),this.res.end(e)})}onData(e){this.isAborted||this.res.onData(e)}onAborted(e){this.isAborted||this.res.onAborted(()=>{this.isAborted=!0,e()})}cork(e){this.isAborted||this.res.cork(e)}}});var _l=x(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.protocol=D.Transport=D.Socket=D.uServer=D.parser=D.transports=D.Server=void 0;D.listen=Qx;D.attach=yl;var Gx=require("http"),gl=or();Object.defineProperty(D,"Server",{enumerable:!0,get:function(){return gl.Server}});var Kx=Ln();D.transports=Kx.default;var bl=ts();D.parser=bl;var Yx=vl();Object.defineProperty(D,"uServer",{enumerable:!0,get:function(){return Yx.uServer}});var Xx=Bn();Object.defineProperty(D,"Socket",{enumerable:!0,get:function(){return Xx.Socket}});var Jx=Ze();Object.defineProperty(D,"Transport",{enumerable:!0,get:function(){return Jx.Transport}});D.protocol=bl.protocol;function Qx(s,e,t){typeof e=="function"&&(t=e,e={});let i=(0,Gx.createServer)(function(r,a){a.writeHead(501),a.end("Not Implemented")}),n=yl(i,e);return n.httpServer=i,i.listen(s,t),n}function yl(s,e){let t=new gl.Server(e);return t.attach(s,e),t}});var Sl=x(wl=>{wl.Emitter=$;function $(s){if(s)return Zx(s)}function Zx(s){for(var e in $.prototype)s[e]=$.prototype[e];return s}$.prototype.on=$.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};$.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};$.prototype.off=$.prototype.removeListener=$.prototype.removeAllListeners=$.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var i,n=0;n<t.length;n++)if(i=t[n],i===e||i.fn===e){t.splice(n,1);break}return t.length===0&&delete this._callbacks["$"+s],this};$.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,n=t.length;i<n;++i)t[i].apply(this,e)}return this};$.prototype.emitReserved=$.prototype.emit;$.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};$.prototype.hasListeners=function(s){return!!this.listeners(s).length}});var fr=x(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.isBinary=kl;vi.hasBinary=xi;var ev=typeof ArrayBuffer=="function",tv=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,El=Object.prototype.toString,sv=typeof Blob=="function"||typeof Blob<"u"&&El.call(Blob)==="[object BlobConstructor]",iv=typeof File=="function"||typeof File<"u"&&El.call(File)==="[object FileConstructor]";function kl(s){return ev&&(s instanceof ArrayBuffer||tv(s))||sv&&s instanceof Blob||iv&&s instanceof File}function xi(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,i=s.length;t<i;t++)if(xi(s[t]))return!0;return!1}if(kl(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return xi(s.toJSON(),!0);for(let t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&xi(s[t]))return!0;return!1}});var Cl=x(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.deconstructPacket=rv;gi.reconstructPacket=av;var nv=fr();function rv(s){let e=[],t=s.data,i=s;return i.data=hr(t,e),i.attachments=e.length,{packet:i,buffers:e}}function hr(s,e){if(!s)return s;if((0,nv.isBinary)(s)){let t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){let t=new Array(s.length);for(let i=0;i<s.length;i++)t[i]=hr(s[i],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){let t={};for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t[i]=hr(s[i],e));return t}return s}function av(s,e){return s.data=mr(s.data,e),delete s.attachments,s}function mr(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=mr(s[t],e);else if(typeof s=="object")for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=mr(s[t],e));return s}});var us=x(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.Decoder=ve.Encoder=ve.PacketType=ve.protocol=void 0;ve.isPacketValid=fv;var ov=Sl(),Tl=Cl(),Ol=fr(),cv=N(),xr=(0,cv.default)("socket.io-parser"),Rl=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];ve.protocol=5;var E;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(E||(ve.PacketType=E={}));var vr=class{constructor(e){this.replacer=e}encode(e){return xr("encoding packet %j",e),(e.type===E.EVENT||e.type===E.ACK)&&(0,Ol.hasBinary)(e)?this.encodeAsBinary({type:e.type===E.EVENT?E.BINARY_EVENT:E.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===E.BINARY_EVENT||e.type===E.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),xr("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=(0,Tl.deconstructPacket)(e),i=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(i),n}};ve.Encoder=vr;var gr=class s extends ov.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);let i=t.type===E.BINARY_EVENT;i||t.type===E.BINARY_ACK?(t.type=i?E.EVENT:E.ACK,this.reconstructor=new br(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if((0,Ol.isBinary)(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0,i={type:Number(e.charAt(0))};if(E[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===E.BINARY_EVENT||i.type===E.BINARY_ACK){let r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);let a=e.substring(r,t);if(a!=Number(a)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(a)}if(e.charAt(t+1)==="/"){let r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(r,t)}else i.nsp="/";let n=e.charAt(t+1);if(n!==""&&Number(n)==n){let r=t+1;for(;++t;){let a=e.charAt(t);if(a==null||Number(a)!=a){--t;break}if(t===e.length)break}i.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(s.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return xr("decoded %s as %j",e,i),i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case E.CONNECT:return bi(t);case E.DISCONNECT:return t===void 0;case E.CONNECT_ERROR:return typeof t=="string"||bi(t);case E.EVENT:case E.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Rl.indexOf(t[0])===-1);case E.ACK:case E.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}};ve.Decoder=gr;var br=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=(0,Tl.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function lv(s){return typeof s=="string"}var pv=Number.isInteger||function(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s};function uv(s){return s===void 0||pv(s)}function bi(s){return Object.prototype.toString.call(s)==="[object Object]"}function dv(s,e){switch(s){case E.CONNECT:return e===void 0||bi(e);case E.DISCONNECT:return e===void 0;case E.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Rl.indexOf(e[0])===-1);case E.ACK:return Array.isArray(e);case E.CONNECT_ERROR:return typeof e=="string"||bi(e);default:return!1}}function fv(s){return lv(s.nsp)&&uv(s.id)&&dv(s.type,s.data)}});var Pl=x(Bt=>{"use strict";var hv=Bt&&Bt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Client=void 0;var yi=us(),mv=hv(N()),ge=(0,mv.default)("socket.io:client"),yr=class{constructor(e,t){this.sockets=new Map,this.nsps=new Map,this.server=e,this.conn=t,this.encoder=e.encoder,this.decoder=new e._parser.Decoder,this.id=t.id,this.setup()}get request(){return this.conn.request}setup(){this.onclose=this.onclose.bind(this),this.ondata=this.ondata.bind(this),this.onerror=this.onerror.bind(this),this.ondecoded=this.ondecoded.bind(this),this.decoder.on("decoded",this.ondecoded),this.conn.on("data",this.ondata),this.conn.on("error",this.onerror),this.conn.on("close",this.onclose),this.connectTimeout=setTimeout(()=>{this.nsps.size===0?(ge("no namespace joined yet, close the client"),this.close()):ge("the client has already joined a namespace, nothing to do")},this.server._connectTimeout)}connect(e,t={}){if(this.server._nsps.has(e))return ge("connecting to namespace %s",e),this.doConnect(e,t);this.server._checkNamespace(e,t,i=>{i?this.doConnect(e,t):(ge("creation of namespace %s was denied",e),this._packet({type:yi.PacketType.CONNECT_ERROR,nsp:e,data:{message:"Invalid namespace"}}))})}doConnect(e,t){let i=this.server.of(e);i._add(this,t,n=>{this.sockets.set(n.id,n),this.nsps.set(i.name,n),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)})}_disconnect(){for(let e of this.sockets.values())e.disconnect();this.sockets.clear(),this.close()}_remove(e){if(this.sockets.has(e.id)){let t=this.sockets.get(e.id).nsp.name;this.sockets.delete(e.id),this.nsps.delete(t)}else ge("ignoring remove for %s",e.id)}close(){this.conn.readyState==="open"&&(ge("forcing transport close"),this.conn.close(),this.onclose("forced server close"))}_packet(e,t={}){if(this.conn.readyState!=="open"){ge("ignoring packet write %j",e);return}let i=t.preEncoded?e:this.encoder.encode(e);this.writeToEngine(i,t)}writeToEngine(e,t){if(t.volatile&&!this.conn.transport.writable){ge("volatile packet is discarded since the transport is not currently writable");return}let i=Array.isArray(e)?e:[e];for(let n of i)this.conn.write(n,t)}ondata(e){try{this.decoder.add(e)}catch(t){ge("invalid packet format"),this.onerror(t)}}ondecoded(e){let{namespace:t,authPayload:i}=this._parseNamespace(e),n=this.nsps.get(t);!n&&e.type===yi.PacketType.CONNECT?this.connect(t,i):n&&e.type!==yi.PacketType.CONNECT&&e.type!==yi.PacketType.CONNECT_ERROR?process.nextTick(function(){n._onpacket(e)}):(ge("invalid state (packet type: %s)",e.type),this.close())}_parseNamespace(e){if(this.conn.protocol!==3)return{namespace:e.nsp,authPayload:e.data};let t=new URL(e.nsp,"https://socket.io");return{namespace:t.pathname,authPayload:Object.fromEntries(t.searchParams.entries())}}onerror(e){for(let t of this.sockets.values())t._onerror(e);this.conn.close()}onclose(e,t){ge("client close with reason %s",e),this.destroy();for(let i of this.sockets.values())i._onclose(e,t);this.sockets.clear(),this.decoder.destroy()}destroy(){this.conn.removeListener("data",this.ondata),this.conn.removeListener("error",this.onerror),this.conn.removeListener("close",this.onclose),this.decoder.removeListener("decoded",this.ondecoded),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}};Bt.Client=yr});var wi=x(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.StrictEventEmitter=void 0;var xv=require("events"),_r=class extends xv.EventEmitter{on(e,t){return super.on(e,t)}once(e,t){return super.once(e,t)}emit(e,...t){return super.emit(e,...t)}emitReserved(e,...t){return super.emit(e,...t)}emitUntyped(e,...t){return super.emit(e,...t)}listeners(e){return super.listeners(e)}};_i.StrictEventEmitter=_r});var wr=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.RESERVED_EVENTS=void 0;Si.RESERVED_EVENTS=new Set(["connect","connect_error","disconnect","disconnecting","newListener","removeListener"])});var Sr=x(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.RemoteSocket=It.BroadcastOperator=void 0;var vv=wr(),gv=us(),Ei=class s{constructor(e,t=new Set,i=new Set,n={}){this.adapter=e,this.rooms=t,this.exceptRooms=i,this.flags=n}to(e){let t=new Set(this.rooms);return Array.isArray(e)?e.forEach(i=>t.add(i)):t.add(e),new s(this.adapter,t,this.exceptRooms,this.flags)}in(e){return this.to(e)}except(e){let t=new Set(this.exceptRooms);return Array.isArray(e)?e.forEach(i=>t.add(i)):t.add(e),new s(this.adapter,this.rooms,t,this.flags)}compress(e){let t=Object.assign({},this.flags,{compress:e});return new s(this.adapter,this.rooms,this.exceptRooms,t)}get volatile(){let e=Object.assign({},this.flags,{volatile:!0});return new s(this.adapter,this.rooms,this.exceptRooms,e)}get local(){let e=Object.assign({},this.flags,{local:!0});return new s(this.adapter,this.rooms,this.exceptRooms,e)}timeout(e){let t=Object.assign({},this.flags,{timeout:e});return new s(this.adapter,this.rooms,this.exceptRooms,t)}emit(e,...t){if(vv.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);let i=[e,...t],n={type:gv.PacketType.EVENT,data:i};if(!(typeof i[i.length-1]=="function"))return this.adapter.broadcast(n,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags}),!0;let a=i.pop(),o=!1,c=[],l=setTimeout(()=>{o=!0,a.apply(this,[new Error("operation has timed out"),this.flags.expectSingleResponse?null:c])},this.flags.timeout),p=-1,u=0,f=0,m=()=>{!o&&p===u&&c.length===f&&(clearTimeout(l),a.apply(this,[null,this.flags.expectSingleResponse?c[0]:c]))};return this.adapter.broadcastWithAck(n,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags},h=>{f+=h,u++,m()},h=>{c.push(h),m()}),this.adapter.serverCount().then(h=>{p=h,m()}),!0}emitWithAck(e,...t){return new Promise((i,n)=>{t.push((r,a)=>r?(r.responses=a,n(r)):i(a)),this.emit(e,...t)})}allSockets(){if(!this.adapter)throw new Error("No adapter for this namespace, are you trying to get the list of clients of a dynamic namespace?");return this.adapter.sockets(this.rooms)}fetchSockets(){return this.adapter.fetchSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags}).then(e=>e.map(t=>t.server?t:new ki(this.adapter,t)))}socketsJoin(e){this.adapter.addSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}socketsLeave(e){this.adapter.delSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}disconnectSockets(e=!1){this.adapter.disconnectSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},e)}};It.BroadcastOperator=Ei;var ki=class{constructor(e,t){this.id=t.id,this.handshake=t.handshake,this.rooms=new Set(t.rooms),this.data=t.data,this.operator=new Ei(e,new Set([this.id]),new Set,{expectSingleResponse:!0})}timeout(e){return this.operator.timeout(e)}emit(e,...t){return this.operator.emit(e,...t)}join(e){return this.operator.socketsJoin(e)}leave(e){return this.operator.socketsLeave(e)}disconnect(e=!1){return this.operator.disconnectSockets(e),this}};It.RemoteSocket=ki});var kr=x(Dt=>{"use strict";var Ll=Dt&&Dt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.Socket=void 0;var ue=us(),bv=Ll(N()),yv=wi(),Al=Ll(fn()),_v=Sr(),wv=wr(),H=(0,bv.default)("socket.io:socket"),Sv=new Set(["transport error","transport close","forced close","ping timeout","server shutting down","forced server close"]);function Nl(){}var Er=class extends yv.StrictEventEmitter{constructor(e,t,i,n){super(),this.nsp=e,this.client=t,this.recovered=!1,this.data={},this.connected=!1,this.acks=new Map,this.fns=[],this.flags={},this.server=e.server,this.adapter=e.adapter,n?(this.id=n.sid,this.pid=n.pid,n.rooms.forEach(r=>this.join(r)),this.data=n.data,n.missedPackets.forEach(r=>{this.packet({type:ue.PacketType.EVENT,data:r})}),this.recovered=!0):(t.conn.protocol===3?this.id=e.name!=="/"?e.name+"#"+t.id:t.id:this.id=Al.default.generateId(),this.server._opts.connectionStateRecovery&&(this.pid=Al.default.generateId())),this.handshake=this.buildHandshake(i),this.on("error",Nl)}buildHandshake(e){var t,i,n,r;return{headers:((t=this.request)===null||t===void 0?void 0:t.headers)||{},time:new Date+"",address:this.conn.remoteAddress,xdomain:!!(!((i=this.request)===null||i===void 0)&&i.headers.origin),secure:!this.request||!!this.request.connection.encrypted,issued:+new Date,url:(n=this.request)===null||n===void 0?void 0:n.url,query:((r=this.request)===null||r===void 0?void 0:r._query)||{},auth:e}}emit(e,...t){if(wv.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);let i=[e,...t],n={type:ue.PacketType.EVENT,data:i};if(typeof i[i.length-1]=="function"){let a=this.nsp._ids++;H("emitting packet with ack id %d",a),this.registerAckCallback(a,i.pop()),n.id=a}let r=Object.assign({},this.flags);return this.flags={},this.nsp.server.opts.connectionStateRecovery?this.adapter.broadcast(n,{rooms:new Set([this.id]),except:new Set,flags:r}):(this.notifyOutgoingListeners(n),this.packet(n,r)),!0}emitWithAck(e,...t){let i=this.flags.timeout!==void 0;return new Promise((n,r)=>{t.push((a,o)=>i?a?r(a):n(o):n(a)),this.emit(e,...t)})}registerAckCallback(e,t){let i=this.flags.timeout;if(i===void 0){this.acks.set(e,t);return}let n=setTimeout(()=>{H("event with ack id %d has timed out after %d ms",e,i),this.acks.delete(e),t.call(this,new Error("operation has timed out"))},i);this.acks.set(e,(...r)=>{clearTimeout(n),t.apply(this,[null,...r])})}to(e){return this.newBroadcastOperator().to(e)}in(e){return this.newBroadcastOperator().in(e)}except(e){return this.newBroadcastOperator().except(e)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}packet(e,t={}){e.nsp=this.nsp.name,t.compress=t.compress!==!1,this.client._packet(e,t)}join(e){return H("join room %s",e),this.adapter.addAll(this.id,new Set(Array.isArray(e)?e:[e]))}leave(e){return H("leave room %s",e),this.adapter.del(this.id,e)}leaveAll(){this.adapter.delAll(this.id)}_onconnect(){H("socket connected - writing packet"),this.connected=!0,this.join(this.id),this.conn.protocol===3?this.packet({type:ue.PacketType.CONNECT}):this.packet({type:ue.PacketType.CONNECT,data:{sid:this.id,pid:this.pid}})}_onpacket(e){switch(H("got packet %j",e),e.type){case ue.PacketType.EVENT:this.onevent(e);break;case ue.PacketType.BINARY_EVENT:this.onevent(e);break;case ue.PacketType.ACK:this.onack(e);break;case ue.PacketType.BINARY_ACK:this.onack(e);break;case ue.PacketType.DISCONNECT:this.ondisconnect();break}}onevent(e){let t=e.data||[];if(H("emitting event %j",t),e.id!=null&&(H("attaching ack callback to event"),t.push(this.ack(e.id))),this._anyListeners&&this._anyListeners.length){let i=this._anyListeners.slice();for(let n of i)n.apply(this,t)}this.dispatch(t)}ack(e){let t=this,i=!1;return function(){if(i)return;let n=Array.prototype.slice.call(arguments);H("sending ack %j",n),t.packet({id:e,type:ue.PacketType.ACK,data:n}),i=!0}}onack(e){let t=this.acks.get(e.id);typeof t=="function"?(H("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),this.acks.delete(e.id)):H("bad ack %s",e.id)}ondisconnect(){H("got disconnect packet"),this._onclose("client namespace disconnect")}_onerror(e){this.emitReserved("error",e)}_onclose(e,t){if(!this.connected)return this;H("closing socket - reason %s",e),this.emitReserved("disconnecting",e,t),this.server._opts.connectionStateRecovery&&Sv.has(e)&&(H("connection state recovery is enabled for sid %s",this.id),this.adapter.persistSession({sid:this.id,pid:this.pid,rooms:[...this.rooms],data:this.data})),this._cleanup(),this.client._remove(this),this.connected=!1,this.emitReserved("disconnect",e,t)}_cleanup(){this.leaveAll(),this.nsp._remove(this),this.join=Nl}_error(e){this.packet({type:ue.PacketType.CONNECT_ERROR,data:e})}disconnect(e=!1){return this.connected?(e?this.client._disconnect():(this.packet({type:ue.PacketType.DISCONNECT}),this._onclose("server namespace disconnect")),this):this}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}get broadcast(){return this.newBroadcastOperator()}get local(){return this.newBroadcastOperator().local}timeout(e){return this.flags.timeout=e,this}dispatch(e){H("dispatching an event %j",e),this.run(e,t=>{process.nextTick(()=>{if(t)return this._onerror(t);this.connected?super.emitUntyped.apply(this,e):H("ignore packet received after disconnection")})})}use(e){return this.fns.push(e),this}run(e,t){if(!this.fns.length)return t();let i=this.fns.slice(0);function n(r){i[r](e,a=>{if(a)return t(a);if(!i[r+1])return t();n(r+1)})}n(0)}get disconnected(){return!this.connected}get request(){return this.client.request}get conn(){return this.client.conn}get rooms(){return this.adapter.socketRooms(this.id)||new Set}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let i of t)i.apply(this,e.data)}}newBroadcastOperator(){let e=Object.assign({},this.flags);return this.flags={},new _v.BroadcastOperator(this.adapter,new Set,new Set([this.id]),e)}};Dt.Socket=Er});var Tr=x(Ae=>{"use strict";var Ev=Ae&&Ae.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Namespace=Ae.RESERVED_EVENTS=void 0;var jl=kr(),kv=wi(),Cv=Ev(N()),ne=Sr(),Mt=(0,Cv.default)("socket.io:namespace");Ae.RESERVED_EVENTS=new Set(["connect","connection","new_namespace"]);var Cr=class extends kv.StrictEventEmitter{constructor(e,t){super(),this.sockets=new Map,this._preConnectSockets=new Map,this._fns=[],this._ids=0,this.server=e,this.name=t,this._initAdapter()}_initAdapter(){this.adapter=new(this.server.adapter())(this),Promise.resolve(this.adapter.init()).catch(e=>{Mt("error while initializing adapter: %s",e)})}use(e){return this._fns.push(e),this}run(e,t){if(!this._fns.length)return t();let i=this._fns.slice(0);function n(r){i[r](e,a=>{if(a)return t(a);if(!i[r+1])return t();n(r+1)})}n(0)}to(e){return new ne.BroadcastOperator(this.adapter).to(e)}in(e){return new ne.BroadcastOperator(this.adapter).in(e)}except(e){return new ne.BroadcastOperator(this.adapter).except(e)}async _add(e,t,i){var n;Mt("adding socket to nsp %s",this.name);let r=await this._createSocket(e,t);if(this._preConnectSockets.set(r.id,r),!((n=this.server.opts.connectionStateRecovery)===null||n===void 0)&&n.skipMiddlewares&&r.recovered&&e.conn.readyState==="open")return this._doConnect(r,i);this.run(r,a=>{process.nextTick(()=>{if(e.conn.readyState!=="open"){Mt("next called after client was closed - ignoring socket"),r._cleanup();return}if(a)return Mt("middleware error, sending CONNECT_ERROR packet to the client"),r._cleanup(),e.conn.protocol===3?r._error(a.data||a.message):r._error({message:a.message,data:a.data});this._doConnect(r,i)})})}async _createSocket(e,t){let i=t.pid,n=t.offset;if(this.server.opts.connectionStateRecovery&&typeof i=="string"&&typeof n=="string"){let r;try{r=await this.adapter.restoreSession(i,n)}catch(a){Mt("error while restoring session: %s",a)}if(r)return Mt("connection state recovered for sid %s",r.sid),new jl.Socket(this,e,t,r)}return new jl.Socket(this,e,t)}_doConnect(e,t){this._preConnectSockets.delete(e.id),this.sockets.set(e.id,e),e._onconnect(),t&&t(e),this.emitReserved("connect",e),this.emitReserved("connection",e)}_remove(e){this.sockets.delete(e.id)||this._preConnectSockets.delete(e.id)}emit(e,...t){return new ne.BroadcastOperator(this.adapter).emit(e,...t)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}serverSideEmit(e,...t){if(Ae.RESERVED_EVENTS.has(e))throw new Error(`"${String(e)}" is a reserved event name`);return t.unshift(e),this.adapter.serverSideEmit(t),!0}serverSideEmitWithAck(e,...t){return new Promise((i,n)=>{t.push((r,a)=>r?(r.responses=a,n(r)):i(a)),this.serverSideEmit(e,...t)})}_onServerSideEmit(e){super.emitUntyped.apply(this,e)}allSockets(){return new ne.BroadcastOperator(this.adapter).allSockets()}compress(e){return new ne.BroadcastOperator(this.adapter).compress(e)}get volatile(){return new ne.BroadcastOperator(this.adapter).volatile}get local(){return new ne.BroadcastOperator(this.adapter).local}timeout(e){return new ne.BroadcastOperator(this.adapter).timeout(e)}fetchSockets(){return new ne.BroadcastOperator(this.adapter).fetchSockets()}socketsJoin(e){return new ne.BroadcastOperator(this.adapter).socketsJoin(e)}socketsLeave(e){return new ne.BroadcastOperator(this.adapter).socketsLeave(e)}disconnectSockets(e=!1){return new ne.BroadcastOperator(this.adapter).disconnectSockets(e)}};Ae.Namespace=Cr});var ql=x(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.encode=Or;ds.decode=Tv;ds.yeast=Ov;var Dl="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ci=64,Ml={},Bl=0,Ve=0,Il;function Or(s){let e="";do e=Dl[s%Ci]+e,s=Math.floor(s/Ci);while(s>0);return e}function Tv(s){let e=0;for(Ve=0;Ve<s.length;Ve++)e=e*Ci+Ml[s.charAt(Ve)];return e}function Ov(){let s=Or(+new Date);return s!==Il?(Bl=0,Il=s):s+"."+Or(Bl++)}for(;Ve<Ci;Ve++)Ml[Dl[Ve]]=Ve});var Ne=x((D_,Hl)=>{"use strict";var Fl=["nodebuffer","arraybuffer","fragments"],Ul=typeof Blob<"u";Ul&&Fl.push("blob");Hl.exports={BINARY_TYPES:Fl,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:Ul,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var fs=x((M_,Ti)=>{"use strict";var{EMPTY_BUFFER:Rv}=Ne(),Rr=Buffer[Symbol.species];function Pv(s,e){if(s.length===0)return Rv;if(s.length===1)return s[0];let t=Buffer.allocUnsafe(e),i=0;for(let n=0;n<s.length;n++){let r=s[n];t.set(r,i),i+=r.length}return i<e?new Rr(t.buffer,t.byteOffset,i):t}function zl(s,e,t,i,n){for(let r=0;r<n;r++)t[i+r]=s[r]^e[r&3]}function Wl(s,e){for(let t=0;t<s.length;t++)s[t]^=e[t&3]}function Av(s){return s.length===s.buffer.byteLength?s.buffer:s.buffer.slice(s.byteOffset,s.byteOffset+s.length)}function Pr(s){if(Pr.readOnly=!0,Buffer.isBuffer(s))return s;let e;return s instanceof ArrayBuffer?e=new Rr(s):ArrayBuffer.isView(s)?e=new Rr(s.buffer,s.byteOffset,s.byteLength):(e=Buffer.from(s),Pr.readOnly=!1),e}Ti.exports={concat:Pv,mask:zl,toArrayBuffer:Av,toBuffer:Pr,unmask:Wl};if(!process.env.WS_NO_BUFFER_UTIL)try{let s=require("bufferutil");Ti.exports.mask=function(e,t,i,n,r){r<48?zl(e,t,i,n,r):s.mask(e,t,i,n,r)},Ti.exports.unmask=function(e,t){e.length<32?Wl(e,t):s.unmask(e,t)}}catch{}});var Gl=x((q_,Vl)=>{"use strict";var $l=Symbol("kDone"),Ar=Symbol("kRun"),Nr=class{constructor(e){this[$l]=()=>{this.pending--,this[Ar]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Ar]()}[Ar](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[$l])}}};Vl.exports=Nr});var ms=x((F_,Jl)=>{"use strict";var hs=require("zlib"),Kl=fs(),Nv=Gl(),{kStatusCode:Yl}=Ne(),Lv=Buffer[Symbol.species],jv=Buffer.from([0,0,255,255]),Ri=Symbol("permessage-deflate"),Le=Symbol("total-length"),qt=Symbol("callback"),Ge=Symbol("buffers"),Ft=Symbol("error"),Oi,Lr=class{constructor(e,t,i){if(this._maxPayload=i|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!Oi){let n=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Oi=new Nv(n)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[qt];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,i=e.find(n=>!(t.serverNoContextTakeover===!1&&n.server_no_context_takeover||n.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>n.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!n.client_max_window_bits));if(!i)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(i.server_no_context_takeover=!0),t.clientNoContextTakeover&&(i.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(i.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?i.client_max_window_bits=t.clientMaxWindowBits:(i.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete i.client_max_window_bits,i}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(i=>{let n=t[i];if(n.length>1)throw new Error(`Parameter "${i}" must have only a single value`);if(n=n[0],i==="client_max_window_bits"){if(n!==!0){let r=+n;if(!Number.isInteger(r)||r<8||r>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=r}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else if(i==="server_max_window_bits"){let r=+n;if(!Number.isInteger(r)||r<8||r>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=r}else if(i==="client_no_context_takeover"||i==="server_no_context_takeover"){if(n!==!0)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else throw new Error(`Unknown parameter "${i}"`);t[i]=n})}),e}decompress(e,t,i){Oi.add(n=>{this._decompress(e,t,(r,a)=>{n(),i(r,a)})})}compress(e,t,i){Oi.add(n=>{this._compress(e,t,(r,a)=>{n(),i(r,a)})})}_decompress(e,t,i){let n=this._isServer?"client":"server";if(!this._inflate){let r=`${n}_max_window_bits`,a=typeof this.params[r]!="number"?hs.Z_DEFAULT_WINDOWBITS:this.params[r];this._inflate=hs.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[Ri]=this,this._inflate[Le]=0,this._inflate[Ge]=[],this._inflate.on("error",Iv),this._inflate.on("data",Xl)}this._inflate[qt]=i,this._inflate.write(e),t&&this._inflate.write(jv),this._inflate.flush(()=>{let r=this._inflate[Ft];if(r){this._inflate.close(),this._inflate=null,i(r);return}let a=Kl.concat(this._inflate[Ge],this._inflate[Le]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Le]=0,this._inflate[Ge]=[],t&&this.params[`${n}_no_context_takeover`]&&this._inflate.reset()),i(null,a)})}_compress(e,t,i){let n=this._isServer?"server":"client";if(!this._deflate){let r=`${n}_max_window_bits`,a=typeof this.params[r]!="number"?hs.Z_DEFAULT_WINDOWBITS:this.params[r];this._deflate=hs.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Le]=0,this._deflate[Ge]=[],this._deflate.on("data",Bv)}this._deflate[qt]=i,this._deflate.write(e),this._deflate.flush(hs.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let r=Kl.concat(this._deflate[Ge],this._deflate[Le]);t&&(r=new Lv(r.buffer,r.byteOffset,r.length-4)),this._deflate[qt]=null,this._deflate[Le]=0,this._deflate[Ge]=[],t&&this.params[`${n}_no_context_takeover`]&&this._deflate.reset(),i(null,r)})}};Jl.exports=Lr;function Bv(s){this[Ge].push(s),this[Le]+=s.length}function Xl(s){if(this[Le]+=s.length,this[Ri]._maxPayload<1||this[Le]<=this[Ri]._maxPayload){this[Ge].push(s);return}this[Ft]=new RangeError("Max payload size exceeded"),this[Ft].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Ft][Yl]=1009,this.removeListener("data",Xl),this.reset()}function Iv(s){if(this[Ri]._inflate=null,this[Ft]){this[qt](this[Ft]);return}s[Yl]=1007,this[qt](s)}});var Ut=x((U_,Pi)=>{"use strict";var{isUtf8:Ql}=require("buffer"),{hasBlob:Dv}=Ne(),Mv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function qv(s){return s>=1e3&&s<=1014&&s!==1004&&s!==1005&&s!==1006||s>=3e3&&s<=4999}function jr(s){let e=s.length,t=0;for(;t<e;)if((s[t]&128)===0)t++;else if((s[t]&224)===192){if(t+1===e||(s[t+1]&192)!==128||(s[t]&254)===192)return!1;t+=2}else if((s[t]&240)===224){if(t+2>=e||(s[t+1]&192)!==128||(s[t+2]&192)!==128||s[t]===224&&(s[t+1]&224)===128||s[t]===237&&(s[t+1]&224)===160)return!1;t+=3}else if((s[t]&248)===240){if(t+3>=e||(s[t+1]&192)!==128||(s[t+2]&192)!==128||(s[t+3]&192)!==128||s[t]===240&&(s[t+1]&240)===128||s[t]===244&&s[t+1]>143||s[t]>244)return!1;t+=4}else return!1;return!0}function Fv(s){return Dv&&typeof s=="object"&&typeof s.arrayBuffer=="function"&&typeof s.type=="string"&&typeof s.stream=="function"&&(s[Symbol.toStringTag]==="Blob"||s[Symbol.toStringTag]==="File")}Pi.exports={isBlob:Fv,isValidStatusCode:qv,isValidUTF8:jr,tokenChars:Mv};if(Ql)Pi.exports.isValidUTF8=function(s){return s.length<24?jr(s):Ql(s)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let s=require("utf-8-validate");Pi.exports.isValidUTF8=function(e){return e.length<32?jr(e):s(e)}}catch{}});var qr=x((H_,rp)=>{"use strict";var{Writable:Uv}=require("stream"),Zl=ms(),{BINARY_TYPES:Hv,EMPTY_BUFFER:ep,kStatusCode:zv,kWebSocket:Wv}=Ne(),{concat:Br,toArrayBuffer:$v,unmask:Vv}=fs(),{isValidStatusCode:Gv,isValidUTF8:tp}=Ut(),Ai=Buffer[Symbol.species],de=0,sp=1,ip=2,np=3,Ir=4,Dr=5,Ni=6,Mr=class extends Uv{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||Hv[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[Wv]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=de}_write(e,t,i){if(this._opcode===8&&this._state==de)return i();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(i)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let i=this._buffers[0];return this._buffers[0]=new Ai(i.buffer,i.byteOffset+e,i.length-e),new Ai(i.buffer,i.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let i=this._buffers[0],n=t.length-e;e>=i.length?t.set(this._buffers.shift(),n):(t.set(new Uint8Array(i.buffer,i.byteOffset,e),n),this._buffers[0]=new Ai(i.buffer,i.byteOffset+e,i.length-e)),e-=i.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case de:this.getInfo(e);break;case sp:this.getPayloadLength16(e);break;case ip:this.getPayloadLength64(e);break;case np:this.getMask();break;case Ir:this.getData(e);break;case Dr:case Ni:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let n=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(n);return}let i=(t[0]&64)===64;if(i&&!this._extensions[Zl.extensionName]){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(!this._fragmented){let n=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._compressed=i}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let n=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(n);return}if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let n=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(n);return}}else{let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let n=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(n);return}}else if(this._masked){let n=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(n);return}this._payloadLength===126?this._state=sp:this._payloadLength===127?this._state=ip:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),i=t.readUInt32BE(0);if(i>Math.pow(2,21)-1){let n=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(n);return}this._payloadLength=i*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=np:this._state=Ir}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Ir}getData(e){let t=ep;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&Vv(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=Dr,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}decompress(e,t){this._extensions[Zl.extensionName].decompress(e,this._fin,(n,r)=>{if(n)return t(n);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(a);return}this._fragments.push(r)}this.dataMessage(t),this._state===de&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=de;return}let t=this._messageLength,i=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=Br(i,t):this._binaryType==="arraybuffer"?n=$v(Br(i,t)):this._binaryType==="blob"?n=new Blob(i):n=i,this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=de):(this._state=Ni,setImmediate(()=>{this.emit("message",n,!0),this._state=de,this.startLoop(e)}))}else{let n=Br(i,t);if(!this._skipUTF8Validation&&!tp(n)){let r=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(r);return}this._state===Dr||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=de):(this._state=Ni,setImmediate(()=>{this.emit("message",n,!1),this._state=de,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,ep),this.end();else{let i=e.readUInt16BE(0);if(!Gv(i)){let r=this.createError(RangeError,`invalid status code ${i}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(r);return}let n=new Ai(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!tp(n)){let r=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(r);return}this._loop=!1,this.emit("conclude",i,n),this.end()}this._state=de;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=de):(this._state=Ni,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=de,this.startLoop(t)}))}createError(e,t,i,n,r){this._loop=!1,this._errored=!0;let a=new e(i?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=r,a[zv]=n,a}};rp.exports=Mr});var Hr=x((W_,cp)=>{"use strict";var{Duplex:z_}=require("stream"),{randomFillSync:Kv}=require("crypto"),ap=ms(),{EMPTY_BUFFER:Yv,kWebSocket:Xv,NOOP:Jv}=Ne(),{isBlob:Ht,isValidStatusCode:Qv}=Ut(),{mask:op,toBuffer:at}=fs(),fe=Symbol("kByteLength"),Zv=Buffer.alloc(4),Li=8*1024,ot,zt=Li,be=0,eg=1,tg=2,Fr=class s{constructor(e,t,i){this._extensions=t||{},i&&(this._generateMask=i,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=be,this.onerror=Jv,this[Xv]=void 0}static frame(e,t){let i,n=!1,r=2,a=!1;t.mask&&(i=t.maskBuffer||Zv,t.generateMask?t.generateMask(i):(zt===Li&&(ot===void 0&&(ot=Buffer.alloc(Li)),Kv(ot,0,Li),zt=0),i[0]=ot[zt++],i[1]=ot[zt++],i[2]=ot[zt++],i[3]=ot[zt++]),a=(i[0]|i[1]|i[2]|i[3])===0,r=6);let o;typeof e=="string"?(!t.mask||a)&&t[fe]!==void 0?o=t[fe]:(e=Buffer.from(e),o=e.length):(o=e.length,n=t.mask&&t.readOnly&&!a);let c=o;o>=65536?(r+=8,c=127):o>125&&(r+=2,c=126);let l=Buffer.allocUnsafe(n?o+r:r);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(o,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),t.mask?(l[1]|=128,l[r-4]=i[0],l[r-3]=i[1],l[r-2]=i[2],l[r-1]=i[3],a?[l,e]:n?(op(e,i,l,r,o),[l]):(op(e,i,e,0,o),[l,e])):[l,e]}close(e,t,i,n){let r;if(e===void 0)r=Yv;else{if(typeof e!="number"||!Qv(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)r=Buffer.allocUnsafe(2),r.writeUInt16BE(e,0);else{let o=Buffer.byteLength(t);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");r=Buffer.allocUnsafe(2+o),r.writeUInt16BE(e,0),typeof t=="string"?r.write(t,2):r.set(t,2)}}let a={[fe]:r.length,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==be?this.enqueue([this.dispatch,r,!1,a,n]):this.sendFrame(s.frame(r,a),n)}ping(e,t,i){let n,r;if(typeof e=="string"?(n=Buffer.byteLength(e),r=!1):Ht(e)?(n=e.size,r=!1):(e=at(e),n=e.length,r=at.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[fe]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:r,rsv1:!1};Ht(e)?this._state!==be?this.enqueue([this.getBlobData,e,!1,a,i]):this.getBlobData(e,!1,a,i):this._state!==be?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(s.frame(e,a),i)}pong(e,t,i){let n,r;if(typeof e=="string"?(n=Buffer.byteLength(e),r=!1):Ht(e)?(n=e.size,r=!1):(e=at(e),n=e.length,r=at.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[fe]:n,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:r,rsv1:!1};Ht(e)?this._state!==be?this.enqueue([this.getBlobData,e,!1,a,i]):this.getBlobData(e,!1,a,i):this._state!==be?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(s.frame(e,a),i)}send(e,t,i){let n=this._extensions[ap.extensionName],r=t.binary?2:1,a=t.compress,o,c;typeof e=="string"?(o=Buffer.byteLength(e),c=!1):Ht(e)?(o=e.size,c=!1):(e=at(e),o=e.length,c=at.readOnly),this._firstFragment?(this._firstFragment=!1,a&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=n._threshold),this._compress=a):(a=!1,r=0),t.fin&&(this._firstFragment=!0);let l={[fe]:o,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:r,readOnly:c,rsv1:a};Ht(e)?this._state!==be?this.enqueue([this.getBlobData,e,this._compress,l,i]):this.getBlobData(e,this._compress,l,i):this._state!==be?this.enqueue([this.dispatch,e,this._compress,l,i]):this.dispatch(e,this._compress,l,i)}getBlobData(e,t,i,n){this._bufferedBytes+=i[fe],this._state=tg,e.arrayBuffer().then(r=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(Ur,this,o,n);return}this._bufferedBytes-=i[fe];let a=at(r);t?this.dispatch(a,t,i,n):(this._state=be,this.sendFrame(s.frame(a,i),n),this.dequeue())}).catch(r=>{process.nextTick(sg,this,r,n)})}dispatch(e,t,i,n){if(!t){this.sendFrame(s.frame(e,i),n);return}let r=this._extensions[ap.extensionName];this._bufferedBytes+=i[fe],this._state=eg,r.compress(e,i.fin,(a,o)=>{if(this._socket.destroyed){let c=new Error("The socket was closed while data was being compressed");Ur(this,c,n);return}this._bufferedBytes-=i[fe],this._state=be,i.readOnly=!1,this.sendFrame(s.frame(o,i),n),this.dequeue()})}dequeue(){for(;this._state===be&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][fe],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][fe],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};cp.exports=Fr;function Ur(s,e,t){typeof t=="function"&&t(e);for(let i=0;i<s._queue.length;i++){let n=s._queue[i],r=n[n.length-1];typeof r=="function"&&r(e)}}function sg(s,e,t){Ur(s,e,t),s.onerror(e)}});var vp=x(($_,xp)=>{"use strict";var{kForOnEventAttribute:xs,kListener:zr}=Ne(),lp=Symbol("kCode"),pp=Symbol("kData"),up=Symbol("kError"),dp=Symbol("kMessage"),fp=Symbol("kReason"),Wt=Symbol("kTarget"),hp=Symbol("kType"),mp=Symbol("kWasClean"),je=class{constructor(e){this[Wt]=null,this[hp]=e}get target(){return this[Wt]}get type(){return this[hp]}};Object.defineProperty(je.prototype,"target",{enumerable:!0});Object.defineProperty(je.prototype,"type",{enumerable:!0});var ct=class extends je{constructor(e,t={}){super(e),this[lp]=t.code===void 0?0:t.code,this[fp]=t.reason===void 0?"":t.reason,this[mp]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[lp]}get reason(){return this[fp]}get wasClean(){return this[mp]}};Object.defineProperty(ct.prototype,"code",{enumerable:!0});Object.defineProperty(ct.prototype,"reason",{enumerable:!0});Object.defineProperty(ct.prototype,"wasClean",{enumerable:!0});var $t=class extends je{constructor(e,t={}){super(e),this[up]=t.error===void 0?null:t.error,this[dp]=t.message===void 0?"":t.message}get error(){return this[up]}get message(){return this[dp]}};Object.defineProperty($t.prototype,"error",{enumerable:!0});Object.defineProperty($t.prototype,"message",{enumerable:!0});var vs=class extends je{constructor(e,t={}){super(e),this[pp]=t.data===void 0?null:t.data}get data(){return this[pp]}};Object.defineProperty(vs.prototype,"data",{enumerable:!0});var ig={addEventListener(s,e,t={}){for(let n of this.listeners(s))if(!t[xs]&&n[zr]===e&&!n[xs])return;let i;if(s==="message")i=function(r,a){let o=new vs("message",{data:a?r:r.toString()});o[Wt]=this,ji(e,this,o)};else if(s==="close")i=function(r,a){let o=new ct("close",{code:r,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Wt]=this,ji(e,this,o)};else if(s==="error")i=function(r){let a=new $t("error",{error:r,message:r.message});a[Wt]=this,ji(e,this,a)};else if(s==="open")i=function(){let r=new je("open");r[Wt]=this,ji(e,this,r)};else return;i[xs]=!!t[xs],i[zr]=e,t.once?this.once(s,i):this.on(s,i)},removeEventListener(s,e){for(let t of this.listeners(s))if(t[zr]===e&&!t[xs]){this.removeListener(s,t);break}}};xp.exports={CloseEvent:ct,ErrorEvent:$t,Event:je,EventTarget:ig,MessageEvent:vs};function ji(s,e,t){typeof s=="object"&&s.handleEvent?s.handleEvent.call(s,t):s.call(e,t)}});var Wr=x((V_,gp)=>{"use strict";var{tokenChars:gs}=Ut();function we(s,e,t){s[e]===void 0?s[e]=[t]:s[e].push(t)}function ng(s){let e=Object.create(null),t=Object.create(null),i=!1,n=!1,r=!1,a,o,c=-1,l=-1,p=-1,u=0;for(;u<s.length;u++)if(l=s.charCodeAt(u),a===void 0)if(p===-1&&gs[l]===1)c===-1&&(c=u);else if(u!==0&&(l===32||l===9))p===-1&&c!==-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u);let m=s.slice(c,p);l===44?(we(e,m,t),t=Object.create(null)):a=m,c=p=-1}else throw new SyntaxError(`Unexpected character at index ${u}`);else if(o===void 0)if(p===-1&&gs[l]===1)c===-1&&(c=u);else if(l===32||l===9)p===-1&&c!==-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u),we(t,s.slice(c,p),!0),l===44&&(we(e,a,t),t=Object.create(null),a=void 0),c=p=-1}else if(l===61&&c!==-1&&p===-1)o=s.slice(c,u),c=p=-1;else throw new SyntaxError(`Unexpected character at index ${u}`);else if(n){if(gs[l]!==1)throw new SyntaxError(`Unexpected character at index ${u}`);c===-1?c=u:i||(i=!0),n=!1}else if(r)if(gs[l]===1)c===-1&&(c=u);else if(l===34&&c!==-1)r=!1,p=u;else if(l===92)n=!0;else throw new SyntaxError(`Unexpected character at index ${u}`);else if(l===34&&s.charCodeAt(u-1)===61)r=!0;else if(p===-1&&gs[l]===1)c===-1&&(c=u);else if(c!==-1&&(l===32||l===9))p===-1&&(p=u);else if(l===59||l===44){if(c===-1)throw new SyntaxError(`Unexpected character at index ${u}`);p===-1&&(p=u);let m=s.slice(c,p);i&&(m=m.replace(/\\/g,""),i=!1),we(t,o,m),l===44&&(we(e,a,t),t=Object.create(null),a=void 0),o=void 0,c=p=-1}else throw new SyntaxError(`Unexpected character at index ${u}`);if(c===-1||r||l===32||l===9)throw new SyntaxError("Unexpected end of input");p===-1&&(p=u);let f=s.slice(c,p);return a===void 0?we(e,f,t):(o===void 0?we(t,f,!0):i?we(t,o,f.replace(/\\/g,"")):we(t,o,f),we(e,a,t)),e}function rg(s){return Object.keys(s).map(e=>{let t=s[e];return Array.isArray(t)||(t=[t]),t.map(i=>[e].concat(Object.keys(i).map(n=>{let r=i[n];return Array.isArray(r)||(r=[r]),r.map(a=>a===!0?n:`${n}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}gp.exports={format:rg,parse:ng}});var Mi=x((Y_,Pp)=>{"use strict";var ag=require("events"),og=require("https"),cg=require("http"),_p=require("net"),lg=require("tls"),{randomBytes:pg,createHash:ug}=require("crypto"),{Duplex:G_,Readable:K_}=require("stream"),{URL:$r}=require("url"),Ke=ms(),dg=qr(),fg=Hr(),{isBlob:hg}=Ut(),{BINARY_TYPES:bp,EMPTY_BUFFER:Bi,GUID:mg,kForOnEventAttribute:Vr,kListener:xg,kStatusCode:vg,kWebSocket:M,NOOP:wp}=Ne(),{EventTarget:{addEventListener:gg,removeEventListener:bg}}=vp(),{format:yg,parse:_g}=Wr(),{toBuffer:wg}=fs(),Sg=30*1e3,Sp=Symbol("kAborted"),Gr=[8,13],Be=["CONNECTING","OPEN","CLOSING","CLOSED"],Eg=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,O=class s extends ag{constructor(e,t,i){super(),this._binaryType=bp[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Bi,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=s.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(i=t,t=[]):t=[t]),Ep(this,e,t,i)):(this._autoPong=i.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){bp.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,i){let n=new dg({allowSynchronousEvents:i.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation}),r=new fg(e,this._extensions,i.generateMask);this._receiver=n,this._sender=r,this._socket=e,n[M]=this,r[M]=this,e[M]=this,n.on("conclude",Tg),n.on("drain",Og),n.on("error",Rg),n.on("message",Pg),n.on("ping",Ag),n.on("pong",Ng),r.onerror=Lg,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Tp),e.on("data",Di),e.on("end",Op),e.on("error",Rp),this._readyState=s.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=s.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Ke.extensionName]&&this._extensions[Ke.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=s.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==s.CLOSED){if(this.readyState===s.CONNECTING){re(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===s.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=s.CLOSING,this._sender.close(e,t,!this._isServer,i=>{i||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Cp(this)}}pause(){this.readyState===s.CONNECTING||this.readyState===s.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=t=void 0):typeof t=="function"&&(i=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){Kr(this,e,i);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||Bi,t,i)}pong(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=t=void 0):typeof t=="function"&&(i=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){Kr(this,e,i);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||Bi,t,i)}resume(){this.readyState===s.CONNECTING||this.readyState===s.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,i){if(this.readyState===s.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(i=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==s.OPEN){Kr(this,e,i);return}let n={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[Ke.extensionName]||(n.compress=!1),this._sender.send(e||Bi,n,i)}terminate(){if(this.readyState!==s.CLOSED){if(this.readyState===s.CONNECTING){re(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=s.CLOSING,this._socket.destroy())}}};Object.defineProperty(O,"CONNECTING",{enumerable:!0,value:Be.indexOf("CONNECTING")});Object.defineProperty(O.prototype,"CONNECTING",{enumerable:!0,value:Be.indexOf("CONNECTING")});Object.defineProperty(O,"OPEN",{enumerable:!0,value:Be.indexOf("OPEN")});Object.defineProperty(O.prototype,"OPEN",{enumerable:!0,value:Be.indexOf("OPEN")});Object.defineProperty(O,"CLOSING",{enumerable:!0,value:Be.indexOf("CLOSING")});Object.defineProperty(O.prototype,"CLOSING",{enumerable:!0,value:Be.indexOf("CLOSING")});Object.defineProperty(O,"CLOSED",{enumerable:!0,value:Be.indexOf("CLOSED")});Object.defineProperty(O.prototype,"CLOSED",{enumerable:!0,value:Be.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(s=>{Object.defineProperty(O.prototype,s,{enumerable:!0})});["open","error","close","message"].forEach(s=>{Object.defineProperty(O.prototype,`on${s}`,{enumerable:!0,get(){for(let e of this.listeners(s))if(e[Vr])return e[xg];return null},set(e){for(let t of this.listeners(s))if(t[Vr]){this.removeListener(s,t);break}typeof e=="function"&&this.addEventListener(s,e,{[Vr]:!0})}})});O.prototype.addEventListener=gg;O.prototype.removeEventListener=bg;Pp.exports=O;function Ep(s,e,t,i){let n={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:Gr[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...i,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(s._autoPong=n.autoPong,!Gr.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${Gr.join(", ")})`);let r;if(e instanceof $r)r=e;else try{r=new $r(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}r.protocol==="http:"?r.protocol="ws:":r.protocol==="https:"&&(r.protocol="wss:"),s._url=r.href;let a=r.protocol==="wss:",o=r.protocol==="ws+unix:",c;if(r.protocol!=="ws:"&&!a&&!o?c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:o&&!r.pathname?c="The URL's pathname is empty":r.hash&&(c="The URL contains a fragment identifier"),c){let d=new SyntaxError(c);if(s._redirects===0)throw d;Ii(s,d);return}let l=a?443:80,p=pg(16).toString("base64"),u=a?og.request:cg.request,f=new Set,m;if(n.createConnection=n.createConnection||(a?Cg:kg),n.defaultPort=n.defaultPort||l,n.port=r.port||l,n.host=r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":p,Connection:"Upgrade",Upgrade:"websocket"},n.path=r.pathname+r.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(m=new Ke(n.perMessageDeflate!==!0?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=yg({[Ke.extensionName]:m.offer()})),t.length){for(let d of t){if(typeof d!="string"||!Eg.test(d)||f.has(d))throw new SyntaxError("An invalid or duplicated subprotocol was specified");f.add(d)}n.headers["Sec-WebSocket-Protocol"]=t.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(r.username||r.password)&&(n.auth=`${r.username}:${r.password}`),o){let d=n.path.split(":");n.socketPath=d[0],n.path=d[1]}let h;if(n.followRedirects){if(s._redirects===0){s._originalIpc=o,s._originalSecure=a,s._originalHostOrSocketPath=o?n.socketPath:r.host;let d=i&&i.headers;if(i={...i,headers:{}},d)for(let[v,b]of Object.entries(d))i.headers[v.toLowerCase()]=b}else if(s.listenerCount("redirect")===0){let d=o?s._originalIpc?n.socketPath===s._originalHostOrSocketPath:!1:s._originalIpc?!1:r.host===s._originalHostOrSocketPath;(!d||s._originalSecure&&!a)&&(delete n.headers.authorization,delete n.headers.cookie,d||delete n.headers.host,n.auth=void 0)}n.auth&&!i.headers.authorization&&(i.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),h=s._req=u(n),s._redirects&&s.emit("redirect",s.url,h)}else h=s._req=u(n);n.timeout&&h.on("timeout",()=>{re(s,h,"Opening handshake has timed out")}),h.on("error",d=>{h===null||h[Sp]||(h=s._req=null,Ii(s,d))}),h.on("response",d=>{let v=d.headers.location,b=d.statusCode;if(v&&n.followRedirects&&b>=300&&b<400){if(++s._redirects>n.maxRedirects){re(s,h,"Maximum redirects exceeded");return}h.abort();let g;try{g=new $r(v,e)}catch{let k=new SyntaxError(`Invalid URL: ${v}`);Ii(s,k);return}Ep(s,g,t,i)}else s.emit("unexpected-response",h,d)||re(s,h,`Unexpected server response: ${d.statusCode}`)}),h.on("upgrade",(d,v,b)=>{if(s.emit("upgrade",d),s.readyState!==O.CONNECTING)return;h=s._req=null;let g=d.headers.upgrade;if(g===void 0||g.toLowerCase()!=="websocket"){re(s,v,"Invalid Upgrade header");return}let A=ug("sha1").update(p+mg).digest("base64");if(d.headers["sec-websocket-accept"]!==A){re(s,v,"Invalid Sec-WebSocket-Accept header");return}let k=d.headers["sec-websocket-protocol"],U;if(k!==void 0?f.size?f.has(k)||(U="Server sent an invalid subprotocol"):U="Server sent a subprotocol but none was requested":f.size&&(U="Server sent no subprotocol"),U){re(s,v,U);return}k&&(s._protocol=k);let q=d.headers["sec-websocket-extensions"];if(q!==void 0){if(!m){re(s,v,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let K;try{K=_g(q)}catch{re(s,v,"Invalid Sec-WebSocket-Extensions header");return}let ae=Object.keys(K);if(ae.length!==1||ae[0]!==Ke.extensionName){re(s,v,"Server indicated an extension that was not requested");return}try{m.accept(K[Ke.extensionName])}catch{re(s,v,"Invalid Sec-WebSocket-Extensions header");return}s._extensions[Ke.extensionName]=m}s.setSocket(v,b,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})}),n.finishRequest?n.finishRequest(h,s):h.end()}function Ii(s,e){s._readyState=O.CLOSING,s._errorEmitted=!0,s.emit("error",e),s.emitClose()}function kg(s){return s.path=s.socketPath,_p.connect(s)}function Cg(s){return s.path=void 0,!s.servername&&s.servername!==""&&(s.servername=_p.isIP(s.host)?"":s.host),lg.connect(s)}function re(s,e,t){s._readyState=O.CLOSING;let i=new Error(t);Error.captureStackTrace(i,re),e.setHeader?(e[Sp]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(Ii,s,i)):(e.destroy(i),e.once("error",s.emit.bind(s,"error")),e.once("close",s.emitClose.bind(s)))}function Kr(s,e,t){if(e){let i=hg(e)?e.size:wg(e).length;s._socket?s._sender._bufferedBytes+=i:s._bufferedAmount+=i}if(t){let i=new Error(`WebSocket is not open: readyState ${s.readyState} (${Be[s.readyState]})`);process.nextTick(t,i)}}function Tg(s,e){let t=this[M];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=s,t._socket[M]!==void 0&&(t._socket.removeListener("data",Di),process.nextTick(kp,t._socket),s===1005?t.close():t.close(s,e))}function Og(){let s=this[M];s.isPaused||s._socket.resume()}function Rg(s){let e=this[M];e._socket[M]!==void 0&&(e._socket.removeListener("data",Di),process.nextTick(kp,e._socket),e.close(s[vg])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",s))}function yp(){this[M].emitClose()}function Pg(s,e){this[M].emit("message",s,e)}function Ag(s){let e=this[M];e._autoPong&&e.pong(s,!this._isServer,wp),e.emit("ping",s)}function Ng(s){this[M].emit("pong",s)}function kp(s){s.resume()}function Lg(s){let e=this[M];e.readyState!==O.CLOSED&&(e.readyState===O.OPEN&&(e._readyState=O.CLOSING,Cp(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",s)))}function Cp(s){s._closeTimer=setTimeout(s._socket.destroy.bind(s._socket),Sg)}function Tp(){let s=this[M];this.removeListener("close",Tp),this.removeListener("data",Di),this.removeListener("end",Op),s._readyState=O.CLOSING;let e;!this._readableState.endEmitted&&!s._closeFrameReceived&&!s._receiver._writableState.errorEmitted&&(e=s._socket.read())!==null&&s._receiver.write(e),s._receiver.end(),this[M]=void 0,clearTimeout(s._closeTimer),s._receiver._writableState.finished||s._receiver._writableState.errorEmitted?s.emitClose():(s._receiver.on("error",yp),s._receiver.on("finish",yp))}function Di(s){this[M]._receiver.write(s)||this.pause()}function Op(){let s=this[M];s._readyState=O.CLOSING,s._receiver.end(),this.end()}function Rp(){let s=this[M];this.removeListener("error",Rp),this.on("error",wp),s&&(s._readyState=O.CLOSING,this.destroy())}});var jp=x((J_,Lp)=>{"use strict";var X_=Mi(),{Duplex:jg}=require("stream");function Ap(s){s.emit("close")}function Bg(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Np(s){this.removeListener("error",Np),this.destroy(),this.listenerCount("error")===0&&this.emit("error",s)}function Ig(s,e){let t=!0,i=new jg({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return s.on("message",function(r,a){let o=!a&&i._readableState.objectMode?r.toString():r;i.push(o)||s.pause()}),s.once("error",function(r){i.destroyed||(t=!1,i.destroy(r))}),s.once("close",function(){i.destroyed||i.push(null)}),i._destroy=function(n,r){if(s.readyState===s.CLOSED){r(n),process.nextTick(Ap,i);return}let a=!1;s.once("error",function(c){a=!0,r(c)}),s.once("close",function(){a||r(n),process.nextTick(Ap,i)}),t&&s.terminate()},i._final=function(n){if(s.readyState===s.CONNECTING){s.once("open",function(){i._final(n)});return}s._socket!==null&&(s._socket._writableState.finished?(n(),i._readableState.endEmitted&&i.destroy()):(s._socket.once("finish",function(){n()}),s.close()))},i._read=function(){s.isPaused&&s.resume()},i._write=function(n,r,a){if(s.readyState===s.CONNECTING){s.once("open",function(){i._write(n,r,a)});return}s.send(n,a)},i.on("end",Bg),i.on("error",Np),i}Lp.exports=Ig});var Ip=x((Q_,Bp)=>{"use strict";var{tokenChars:Dg}=Ut();function Mg(s){let e=new Set,t=-1,i=-1,n=0;for(n;n<s.length;n++){let a=s.charCodeAt(n);if(i===-1&&Dg[a]===1)t===-1&&(t=n);else if(n!==0&&(a===32||a===9))i===-1&&t!==-1&&(i=n);else if(a===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${n}`);i===-1&&(i=n);let o=s.slice(t,i);if(e.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);e.add(o),t=i=-1}else throw new SyntaxError(`Unexpected character at index ${n}`)}if(t===-1||i!==-1)throw new SyntaxError("Unexpected end of input");let r=s.slice(t,n);if(e.has(r))throw new SyntaxError(`The "${r}" subprotocol is duplicated`);return e.add(r),e}Bp.exports={parse:Mg}});var zp=x((e0,Hp)=>{"use strict";var qg=require("events"),qi=require("http"),{Duplex:Z_}=require("stream"),{createHash:Fg}=require("crypto"),Dp=Wr(),lt=ms(),Ug=Ip(),Hg=Mi(),{GUID:zg,kWebSocket:Wg}=Ne(),$g=/^[+/0-9A-Za-z]{22}==$/,Mp=0,qp=1,Up=2,Yr=class extends qg{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Hg,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=qi.createServer((i,n)=>{let r=qi.STATUS_CODES[426];n.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),n.end(r)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let i=this.emit.bind(this,"connection");this._removeListeners=Vg(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(n,r,a)=>{this.handleUpgrade(n,r,a,i)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=Mp}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Up){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(bs,this);return}if(e&&this.once("close",e),this._state!==qp)if(this._state=qp,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(bs,this):process.nextTick(bs,this);else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{bs(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,i,n){t.on("error",Fp);let r=e.headers["sec-websocket-key"],a=e.headers.upgrade,o=+e.headers["sec-websocket-version"];if(e.method!=="GET"){pt(this,e,t,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){pt(this,e,t,400,"Invalid Upgrade header");return}if(r===void 0||!$g.test(r)){pt(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==13&&o!==8){pt(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){ys(t,400);return}let c=e.headers["sec-websocket-protocol"],l=new Set;if(c!==void 0)try{l=Ug.parse(c)}catch{pt(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let p=e.headers["sec-websocket-extensions"],u={};if(this.options.perMessageDeflate&&p!==void 0){let f=new lt(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let m=Dp.parse(p);m[lt.extensionName]&&(f.accept(m[lt.extensionName]),u[lt.extensionName]=f)}catch{pt(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(m,h,d,v)=>{if(!m)return ys(t,h||401,d,v);this.completeUpgrade(u,r,l,e,t,i,n)});return}if(!this.options.verifyClient(f))return ys(t,401)}this.completeUpgrade(u,r,l,e,t,i,n)}completeUpgrade(e,t,i,n,r,a,o){if(!r.readable||!r.writable)return r.destroy();if(r[Wg])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Mp)return ys(r,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Fg("sha1").update(t+zg).digest("base64")}`],p=new this.options.WebSocket(null,void 0,this.options);if(i.size){let u=this.options.handleProtocols?this.options.handleProtocols(i,n):i.values().next().value;u&&(l.push(`Sec-WebSocket-Protocol: ${u}`),p._protocol=u)}if(e[lt.extensionName]){let u=e[lt.extensionName].params,f=Dp.format({[lt.extensionName]:[u]});l.push(`Sec-WebSocket-Extensions: ${f}`),p._extensions=e}this.emit("headers",l,n),r.write(l.concat(`\r
19
+ `).join(`\r
20
+ `)),r.removeListener("error",Fp),p.setSocket(r,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(p),p.on("close",()=>{this.clients.delete(p),this._shouldEmitClose&&!this.clients.size&&process.nextTick(bs,this)})),o(p,n)}};Hp.exports=Yr;function Vg(s,e){for(let t of Object.keys(e))s.on(t,e[t]);return function(){for(let i of Object.keys(e))s.removeListener(i,e[i])}}function bs(s){s._state=Up,s.emit("close")}function Fp(){this.destroy()}function ys(s,e,t,i){t=t||qi.STATUS_CODES[e],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...i},s.once("finish",s.destroy),s.end(`HTTP/1.1 ${e} ${qi.STATUS_CODES[e]}\r
21
+ `+Object.keys(i).map(n=>`${n}: ${i[n]}`).join(`\r
22
+ `)+`\r
23
+ \r
24
+ `+t)}function pt(s,e,t,i,n,r){if(s.listenerCount("wsClientError")){let a=new Error(n);Error.captureStackTrace(a,pt),s.emit("wsClientError",a,t,e)}else ys(t,i,n,r)}});var $p=x((t0,Wp)=>{"use strict";var Ie=Mi();Ie.createWebSocketStream=jp();Ie.Server=zp();Ie.Receiver=qr();Ie.Sender=Hr();Ie.WebSocket=Ie;Ie.WebSocketServer=Ie.Server;Wp.exports=Ie});var Qr=x(Vt=>{"use strict";var Xr;Object.defineProperty(Vt,"__esModule",{value:!0});Vt.SessionAwareAdapter=Vt.Adapter=void 0;var Gg=require("events"),Kg=ql(),Fi=$p(),Yg=typeof((Xr=Fi?.Sender)===null||Xr===void 0?void 0:Xr.frame)=="function",Ui=class extends Gg.EventEmitter{constructor(e){super(),this.nsp=e,this.rooms=new Map,this.sids=new Map,this.encoder=e.server.encoder}init(){}close(){}serverCount(){return Promise.resolve(1)}addAll(e,t){this.sids.has(e)||this.sids.set(e,new Set);for(let i of t)this.sids.get(e).add(i),this.rooms.has(i)||(this.rooms.set(i,new Set),this.emit("create-room",i)),this.rooms.get(i).has(e)||(this.rooms.get(i).add(e),this.emit("join-room",i,e))}del(e,t){this.sids.has(e)&&this.sids.get(e).delete(t),this._del(t,e)}_del(e,t){let i=this.rooms.get(e);i!=null&&(i.delete(t)&&this.emit("leave-room",e,t),i.size===0&&this.rooms.delete(e)&&this.emit("delete-room",e))}delAll(e){if(this.sids.has(e)){for(let t of this.sids.get(e))this._del(t,e);this.sids.delete(e)}}broadcast(e,t){let i=t.flags||{},n={preEncoded:!0,volatile:i.volatile,compress:i.compress};e.nsp=this.nsp.name;let r=this._encode(e,n);this.apply(t,a=>{typeof a.notifyOutgoingListeners=="function"&&a.notifyOutgoingListeners(e),a.client.writeToEngine(r,n)})}broadcastWithAck(e,t,i,n){let r=t.flags||{},a={preEncoded:!0,volatile:r.volatile,compress:r.compress};e.nsp=this.nsp.name,e.id=this.nsp._ids++;let o=this._encode(e,a),c=0;this.apply(t,l=>{c++,l.acks.set(e.id,n),typeof l.notifyOutgoingListeners=="function"&&l.notifyOutgoingListeners(e),l.client.writeToEngine(o,a)}),i(c)}_encode(e,t){let i=this.encoder.encode(e);if(Yg&&i.length===1&&typeof i[0]=="string"){let n=Buffer.from("4"+i[0]);t.wsPreEncodedFrame=Fi.Sender.frame(n,{readOnly:!1,mask:!1,rsv1:!1,opcode:1,fin:!0})}return i}sockets(e){let t=new Set;return this.apply({rooms:e},i=>{t.add(i.id)}),Promise.resolve(t)}socketRooms(e){return this.sids.get(e)}fetchSockets(e){let t=[];return this.apply(e,i=>{t.push(i)}),Promise.resolve(t)}addSockets(e,t){this.apply(e,i=>{i.join(t)})}delSockets(e,t){this.apply(e,i=>{t.forEach(n=>i.leave(n))})}disconnectSockets(e,t){this.apply(e,i=>{i.disconnect(t)})}apply(e,t){let i=e.rooms,n=this.computeExceptSids(e.except);if(i.size){let r=new Set;for(let a of i)if(this.rooms.has(a))for(let o of this.rooms.get(a)){if(r.has(o)||n.has(o))continue;let c=this.nsp.sockets.get(o);c&&(t(c),r.add(o))}}else for(let[r]of this.sids){if(n.has(r))continue;let a=this.nsp.sockets.get(r);a&&t(a)}}computeExceptSids(e){let t=new Set;if(e&&e.size>0)for(let i of e)this.rooms.has(i)&&this.rooms.get(i).forEach(n=>t.add(n));return t}serverSideEmit(e){console.warn("this adapter does not support the serverSideEmit() functionality")}persistSession(e){}restoreSession(e,t){return null}};Vt.Adapter=Ui;var Jr=class extends Ui{constructor(e){super(e),this.nsp=e,this.sessions=new Map,this.packets=[],this.maxDisconnectionDuration=e.server.opts.connectionStateRecovery.maxDisconnectionDuration,setInterval(()=>{let i=Date.now()-this.maxDisconnectionDuration;this.sessions.forEach((n,r)=>{n.disconnectedAt<i&&this.sessions.delete(r)});for(let n=this.packets.length-1;n>=0;n--)if(this.packets[n].emittedAt<i){this.packets.splice(0,n+1);break}},60*1e3).unref()}persistSession(e){e.disconnectedAt=Date.now(),this.sessions.set(e.pid,e)}restoreSession(e,t){let i=this.sessions.get(e);if(!i)return null;if(i.disconnectedAt+this.maxDisconnectionDuration<Date.now())return this.sessions.delete(e),null;let r=this.packets.findIndex(o=>o.id===t);if(r===-1)return null;let a=[];for(let o=r+1;o<this.packets.length;o++){let c=this.packets[o];Xg(i.rooms,c.opts)&&a.push(c.data)}return Promise.resolve(Object.assign(Object.assign({},i),{missedPackets:a}))}broadcast(e,t){var i;let n=e.type===2,r=e.id===void 0,a=((i=t.flags)===null||i===void 0?void 0:i.volatile)===void 0;if(n&&r&&a){let o=(0,Kg.yeast)();e.data.push(o),this.packets.push({id:o,opts:t,data:e.data,emittedAt:Date.now()})}super.broadcast(e,t)}};Vt.SessionAwareAdapter=Jr;function Xg(s,e){let t=e.rooms.size===0||s.some(n=>e.rooms.has(n)),i=s.every(n=>!e.except.has(n));return t&&i}});var Vp=x(Se=>{"use strict";var Jg=Se&&Se.__rest||function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(s);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(s,i[n])&&(t[i[n]]=s[i[n]]);return t};Object.defineProperty(Se,"__esModule",{value:!0});Se.ClusterAdapterWithHeartbeat=Se.ClusterAdapter=Se.MessageType=void 0;var Qg=Qr(),Zg=N(),eb=require("crypto"),R=(0,Zg.debug)("socket.io-adapter"),tb="emitter",Hi=5e3;function Kt(){return(0,eb.randomBytes)(8).toString("hex")}var y;(function(s){s[s.INITIAL_HEARTBEAT=1]="INITIAL_HEARTBEAT",s[s.HEARTBEAT=2]="HEARTBEAT",s[s.BROADCAST=3]="BROADCAST",s[s.SOCKETS_JOIN=4]="SOCKETS_JOIN",s[s.SOCKETS_LEAVE=5]="SOCKETS_LEAVE",s[s.DISCONNECT_SOCKETS=6]="DISCONNECT_SOCKETS",s[s.FETCH_SOCKETS=7]="FETCH_SOCKETS",s[s.FETCH_SOCKETS_RESPONSE=8]="FETCH_SOCKETS_RESPONSE",s[s.SERVER_SIDE_EMIT=9]="SERVER_SIDE_EMIT",s[s.SERVER_SIDE_EMIT_RESPONSE=10]="SERVER_SIDE_EMIT_RESPONSE",s[s.BROADCAST_CLIENT_COUNT=11]="BROADCAST_CLIENT_COUNT",s[s.BROADCAST_ACK=12]="BROADCAST_ACK",s[s.ADAPTER_CLOSE=13]="ADAPTER_CLOSE"})(y||(Se.MessageType=y={}));function ut(s){return{rooms:[...s.rooms],except:[...s.except],flags:s.flags}}function Gt(s){return{rooms:new Set(s.rooms),except:new Set(s.except),flags:s.flags}}var zi=class extends Qg.Adapter{constructor(e){super(e),this.requests=new Map,this.ackRequests=new Map,this.uid=Kt()}onMessage(e,t){if(e.uid===this.uid)return R("[%s] ignore message from self",this.uid);if(e.nsp!==this.nsp.name)return R("[%s] ignore message from another namespace (%s)",this.uid,e.nsp);switch(R("[%s] new event of type %d from %s",this.uid,e.type,e.uid),e.type){case y.BROADCAST:{if(e.data.requestId!==void 0)super.broadcastWithAck(e.data.packet,Gt(e.data.opts),n=>{R("[%s] waiting for %d client acknowledgements",this.uid,n),this.publishResponse(e.uid,{type:y.BROADCAST_CLIENT_COUNT,data:{requestId:e.data.requestId,clientCount:n}})},n=>{R("[%s] received acknowledgement with value %j",this.uid,n),this.publishResponse(e.uid,{type:y.BROADCAST_ACK,data:{requestId:e.data.requestId,packet:n}})});else{let n=e.data.packet,r=Gt(e.data.opts);this.addOffsetIfNecessary(n,r,t),super.broadcast(n,r)}break}case y.SOCKETS_JOIN:super.addSockets(Gt(e.data.opts),e.data.rooms);break;case y.SOCKETS_LEAVE:super.delSockets(Gt(e.data.opts),e.data.rooms);break;case y.DISCONNECT_SOCKETS:super.disconnectSockets(Gt(e.data.opts),e.data.close);break;case y.FETCH_SOCKETS:{R("[%s] calling fetchSockets with opts %j",this.uid,e.data.opts),super.fetchSockets(Gt(e.data.opts)).then(i=>{this.publishResponse(e.uid,{type:y.FETCH_SOCKETS_RESPONSE,data:{requestId:e.data.requestId,sockets:i.map(n=>{let r=n.handshake,{sessionStore:a}=r,o=Jg(r,["sessionStore"]);return{id:n.id,handshake:o,rooms:[...n.rooms],data:n.data}})}})});break}case y.SERVER_SIDE_EMIT:{let i=e.data.packet;if(!(e.data.requestId!==void 0)){this.nsp._onServerSideEmit(i);return}let r=!1,a=o=>{r||(r=!0,R("[%s] calling acknowledgement with %j",this.uid,o),this.publishResponse(e.uid,{type:y.SERVER_SIDE_EMIT_RESPONSE,data:{requestId:e.data.requestId,packet:o}}))};this.nsp._onServerSideEmit([...i,a]);break}case y.BROADCAST_CLIENT_COUNT:case y.BROADCAST_ACK:case y.FETCH_SOCKETS_RESPONSE:case y.SERVER_SIDE_EMIT_RESPONSE:this.onResponse(e);break;default:R("[%s] unknown message type: %s",this.uid,e.type)}}onResponse(e){var t,i;let n=e.data.requestId;switch(R("[%s] received response %s to request %s",this.uid,e.type,n),e.type){case y.BROADCAST_CLIENT_COUNT:{(t=this.ackRequests.get(n))===null||t===void 0||t.clientCountCallback(e.data.clientCount);break}case y.BROADCAST_ACK:{(i=this.ackRequests.get(n))===null||i===void 0||i.ack(e.data.packet);break}case y.FETCH_SOCKETS_RESPONSE:{let r=this.requests.get(n);if(!r)return;r.current++,e.data.sockets.forEach(a=>r.responses.push(a)),r.current===r.expected&&(clearTimeout(r.timeout),r.resolve(r.responses),this.requests.delete(n));break}case y.SERVER_SIDE_EMIT_RESPONSE:{let r=this.requests.get(n);if(!r)return;r.current++,r.responses.push(e.data.packet),r.current===r.expected&&(clearTimeout(r.timeout),r.resolve(null,r.responses),this.requests.delete(n));break}default:R("[%s] unknown response type: %s",this.uid,e.type)}}async broadcast(e,t){var i;if(!((i=t.flags)===null||i===void 0?void 0:i.local))try{let r=await this.publishAndReturnOffset({type:y.BROADCAST,data:{packet:e,opts:ut(t)}});this.addOffsetIfNecessary(e,t,r)}catch(r){return R("[%s] error while broadcasting message: %s",this.uid,r.message)}super.broadcast(e,t)}addOffsetIfNecessary(e,t,i){var n;if(!this.nsp.server.opts.connectionStateRecovery)return;let r=e.type===2,a=e.id===void 0,o=((n=t.flags)===null||n===void 0?void 0:n.volatile)===void 0;r&&a&&o&&e.data.push(i)}broadcastWithAck(e,t,i,n){var r;if(!((r=t?.flags)===null||r===void 0?void 0:r.local)){let o=Kt();this.ackRequests.set(o,{clientCountCallback:i,ack:n}),this.publish({type:y.BROADCAST,data:{packet:e,requestId:o,opts:ut(t)}}),setTimeout(()=>{this.ackRequests.delete(o)},t.flags.timeout)}super.broadcastWithAck(e,t,i,n)}async addSockets(e,t){var i;if(!((i=e.flags)===null||i===void 0?void 0:i.local))try{await this.publishAndReturnOffset({type:y.SOCKETS_JOIN,data:{opts:ut(e),rooms:t}})}catch(r){R("[%s] error while publishing message: %s",this.uid,r.message)}super.addSockets(e,t)}async delSockets(e,t){var i;if(!((i=e.flags)===null||i===void 0?void 0:i.local))try{await this.publishAndReturnOffset({type:y.SOCKETS_LEAVE,data:{opts:ut(e),rooms:t}})}catch(r){R("[%s] error while publishing message: %s",this.uid,r.message)}super.delSockets(e,t)}async disconnectSockets(e,t){var i;if(!((i=e.flags)===null||i===void 0?void 0:i.local))try{await this.publishAndReturnOffset({type:y.DISCONNECT_SOCKETS,data:{opts:ut(e),close:t}})}catch(r){R("[%s] error while publishing message: %s",this.uid,r.message)}super.disconnectSockets(e,t)}async fetchSockets(e){var t;let[i,n]=await Promise.all([super.fetchSockets(e),this.serverCount()]),r=n-1;if(!((t=e.flags)===null||t===void 0)&&t.local||r<=0)return i;let a=Kt();return new Promise((o,c)=>{let l=setTimeout(()=>{let u=this.requests.get(a);u&&(c(new Error(`timeout reached: only ${u.current} responses received out of ${u.expected}`)),this.requests.delete(a))},e.flags.timeout||Hi),p={type:y.FETCH_SOCKETS,resolve:o,timeout:l,current:0,expected:r,responses:i};this.requests.set(a,p),this.publish({type:y.FETCH_SOCKETS,data:{opts:ut(e),requestId:a}})})}async serverSideEmit(e){if(!(typeof e[e.length-1]=="function"))return this.publish({type:y.SERVER_SIDE_EMIT,data:{packet:e}});let i=e.pop(),n=await this.serverCount()-1;if(R('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,n),n<=0)return i(null,[]);let r=Kt(),a=setTimeout(()=>{let c=this.requests.get(r);c&&(i(new Error(`timeout reached: only ${c.current} responses received out of ${c.expected}`),c.responses),this.requests.delete(r))},Hi),o={type:y.SERVER_SIDE_EMIT,resolve:i,timeout:a,current:0,expected:n,responses:[]};this.requests.set(r,o),this.publish({type:y.SERVER_SIDE_EMIT,data:{requestId:r,packet:e}})}publish(e){R("[%s] sending message %s",this.uid,e.type),this.publishAndReturnOffset(e).catch(t=>{R("[%s] error while publishing message: %s",this.uid,t)})}publishAndReturnOffset(e){return e.uid=this.uid,e.nsp=this.nsp.name,this.doPublish(e)}publishResponse(e,t){t.uid=this.uid,t.nsp=this.nsp.name,R("[%s] sending response %s to %s",this.uid,t.type,e),this.doPublishResponse(e,t).catch(i=>{R("[%s] error while publishing response: %s",this.uid,i)})}};Se.ClusterAdapter=zi;var Zr=class extends zi{constructor(e,t){super(e),this.nodesMap=new Map,this.customRequests=new Map,this._opts=Object.assign({heartbeatInterval:5e3,heartbeatTimeout:1e4},t),this.cleanupTimer=setInterval(()=>{let i=Date.now();this.nodesMap.forEach((n,r)=>{i-n>this._opts.heartbeatTimeout&&(R("[%s] node %s seems down",this.uid,r),this.removeNode(r))})},1e3)}init(){this.publish({type:y.INITIAL_HEARTBEAT})}scheduleHeartbeat(){this.heartbeatTimer?this.heartbeatTimer.refresh():this.heartbeatTimer=setTimeout(()=>{this.publish({type:y.HEARTBEAT})},this._opts.heartbeatInterval)}close(){this.publish({type:y.ADAPTER_CLOSE}),clearTimeout(this.heartbeatTimer),this.cleanupTimer&&clearInterval(this.cleanupTimer)}onMessage(e,t){if(e.uid===this.uid)return R("[%s] ignore message from self",this.uid);switch(e.uid&&e.uid!==tb&&this.nodesMap.set(e.uid,Date.now()),e.type){case y.INITIAL_HEARTBEAT:this.publish({type:y.HEARTBEAT});break;case y.HEARTBEAT:break;case y.ADAPTER_CLOSE:this.removeNode(e.uid);break;default:super.onMessage(e,t)}}serverCount(){return Promise.resolve(1+this.nodesMap.size)}publish(e){return this.scheduleHeartbeat(),super.publish(e)}async serverSideEmit(e){if(!(typeof e[e.length-1]=="function"))return this.publish({type:y.SERVER_SIDE_EMIT,data:{packet:e}});let i=e.pop(),n=this.nodesMap.size;if(R('[%s] waiting for %d responses to "serverSideEmit" request',this.uid,n),n<=0)return i(null,[]);let r=Kt(),a=setTimeout(()=>{let c=this.customRequests.get(r);c&&(i(new Error(`timeout reached: missing ${c.missingUids.size} responses`),c.responses),this.customRequests.delete(r))},Hi),o={type:y.SERVER_SIDE_EMIT,resolve:i,timeout:a,missingUids:new Set([...this.nodesMap.keys()]),responses:[]};this.customRequests.set(r,o),this.publish({type:y.SERVER_SIDE_EMIT,data:{requestId:r,packet:e}})}async fetchSockets(e){var t;let[i,n]=await Promise.all([super.fetchSockets({rooms:e.rooms,except:e.except,flags:{local:!0}}),this.serverCount()]),r=n-1;if(!((t=e.flags)===null||t===void 0)&&t.local||r<=0)return i;let a=Kt();return new Promise((o,c)=>{let l=setTimeout(()=>{let u=this.customRequests.get(a);u&&(c(new Error(`timeout reached: missing ${u.missingUids.size} responses`)),this.customRequests.delete(a))},e.flags.timeout||Hi),p={type:y.FETCH_SOCKETS,resolve:o,timeout:l,missingUids:new Set([...this.nodesMap.keys()]),responses:i};this.customRequests.set(a,p),this.publish({type:y.FETCH_SOCKETS,data:{opts:ut(e),requestId:a}})})}onResponse(e){let t=e.data.requestId;switch(R("[%s] received response %s to request %s",this.uid,e.type,t),e.type){case y.FETCH_SOCKETS_RESPONSE:{let i=this.customRequests.get(t);if(!i)return;e.data.sockets.forEach(n=>i.responses.push(n)),i.missingUids.delete(e.uid),i.missingUids.size===0&&(clearTimeout(i.timeout),i.resolve(i.responses),this.customRequests.delete(t));break}case y.SERVER_SIDE_EMIT_RESPONSE:{let i=this.customRequests.get(t);if(!i)return;i.responses.push(e.data.packet),i.missingUids.delete(e.uid),i.missingUids.size===0&&(clearTimeout(i.timeout),i.resolve(null,i.responses),this.customRequests.delete(t));break}default:super.onResponse(e)}}removeNode(e){this.customRequests.forEach((t,i)=>{t.missingUids.delete(e),t.missingUids.size===0&&(clearTimeout(t.timeout),t.type===y.FETCH_SOCKETS?t.resolve(t.responses):t.type===y.SERVER_SIDE_EMIT&&t.resolve(null,t.responses),this.customRequests.delete(i))}),this.nodesMap.delete(e)}};Se.ClusterAdapterWithHeartbeat=Zr});var Wi=x(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.MessageType=he.ClusterAdapterWithHeartbeat=he.ClusterAdapter=he.SessionAwareAdapter=he.Adapter=void 0;var Gp=Qr();Object.defineProperty(he,"Adapter",{enumerable:!0,get:function(){return Gp.Adapter}});Object.defineProperty(he,"SessionAwareAdapter",{enumerable:!0,get:function(){return Gp.SessionAwareAdapter}});var ea=Vp();Object.defineProperty(he,"ClusterAdapter",{enumerable:!0,get:function(){return ea.ClusterAdapter}});Object.defineProperty(he,"ClusterAdapterWithHeartbeat",{enumerable:!0,get:function(){return ea.ClusterAdapterWithHeartbeat}});Object.defineProperty(he,"MessageType",{enumerable:!0,get:function(){return ea.MessageType}})});var Xp=x(Yt=>{"use strict";var sb=Yt&&Yt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.ParentNamespace=void 0;var Kp=Tr(),ib=Wi(),nb=sb(N()),Yp=(0,nb.default)("socket.io:parent-namespace"),$i=class s extends Kp.Namespace{constructor(e){super(e,"/_"+s.count++),this.children=new Set}_initAdapter(){this.adapter=new ta(this)}emit(e,...t){return this.children.forEach(i=>{i.emit(e,...t)}),!0}createChild(e){Yp("creating child namespace %s",e);let t=new Kp.Namespace(this.server,e);if(this._fns.forEach(i=>t.use(i)),this.listeners("connect").forEach(i=>t.on("connect",i)),this.listeners("connection").forEach(i=>t.on("connection",i)),this.children.add(t),this.server._opts.cleanupEmptyChildNamespaces){let i=t._remove;t._remove=n=>{i.call(t,n),t.sockets.size===0&&(Yp("closing child namespace %s",e),t.adapter.close(),this.server._nsps.delete(t.name),this.children.delete(t))}}return this.server._nsps.set(e,t),this.server.sockets.emitReserved("new_namespace",t),t}fetchSockets(){throw new Error("fetchSockets() is not supported on parent namespaces")}};Yt.ParentNamespace=$i;$i.count=0;var ta=class extends ib.Adapter{broadcast(e,t){this.nsp.children.forEach(i=>{i.adapter.broadcast(e,t)})}}});var su=x(ft=>{"use strict";var rb=ft&&ft.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ft,"__esModule",{value:!0});ft.patchAdapter=ob;ft.restoreAdapter=cb;ft.serveFile=pb;var dt=Wi(),Jp=require("fs"),ab=rb(N()),Vi=(0,ab.default)("socket.io:adapter-uws"),sa="",{addAll:Zp,del:eu,broadcast:tu}=dt.Adapter.prototype;function ob(s){dt.Adapter.prototype.addAll=function(e,t){let i=!this.sids.has(e);Zp.call(this,e,t);let n=this.nsp.sockets.get(e)||this.nsp._preConnectSockets.get(e);if(n){if(n.conn.transport.name==="websocket"){Qp(this.nsp.name,n,i,t);return}i&&n.conn.on("upgrade",()=>{let r=this.sids.get(e);r&&Qp(this.nsp.name,n,i,r)})}},dt.Adapter.prototype.del=function(e,t){eu.call(this,e,t);let i=this.nsp.sockets.get(e)||this.nsp._preConnectSockets.get(e);if(i&&i.conn.transport.name==="websocket"){let n=i.conn.id,r=i.conn.transport.socket,a=`${this.nsp.name}${sa}${t}`;Vi("unsubscribe connection %s from topic %s",n,a),r.unsubscribe(a)}},dt.Adapter.prototype.broadcast=function(e,t){if(!(t.rooms.size<=1&&t.except.size===0)){tu.call(this,e,t);return}let n=t.flags||{},r={preEncoded:!0,volatile:n.volatile,compress:n.compress};e.nsp=this.nsp.name;let a=this.encoder.encode(e),o=t.rooms.size===0?this.nsp.name:`${this.nsp.name}${sa}${t.rooms.keys().next().value}`;Vi("fast publish to %s",o),a.forEach(c=>{let l=typeof c!="string";s.publish(o,l?c:"4"+c,l)}),this.apply(t,c=>{c.conn.transport.name!=="websocket"&&c.client.writeToEngine(a,r)})}}function Qp(s,e,t,i){let n=e.conn.id,r=e.conn.transport.socket;t&&(Vi("subscribe connection %s to topic %s",n,s),r.subscribe(s)),i.forEach(a=>{let o=`${s}${sa}${a}`;Vi("subscribe connection %s to topic %s",n,o),r.subscribe(o)})}function cb(){dt.Adapter.prototype.addAll=Zp,dt.Adapter.prototype.del=eu,dt.Adapter.prototype.broadcast=tu}var lb=s=>{let{buffer:e,byteOffset:t,byteLength:i}=s;return e.slice(t,t+i)};function pb(s,e){let{size:t}=(0,Jp.statSync)(e),i=(0,Jp.createReadStream)(e),n=()=>!i.destroyed&&i.destroy(),r=o=>{throw n(),o},a=o=>{let c=lb(o);s.cork(()=>{let l=s.getWriteOffset(),[p,u]=s.tryEnd(c,t);!u&&!p&&(i.pause(),s.onWritable(f=>{let[m,h]=s.tryEnd(c.slice(f-l),t);return!h&&m&&i.resume(),m}))})};s.onAborted(n),i.on("data",a).on("error",r).on("end",n)}});var iu=x((o0,ub)=>{ub.exports={name:"socket.io",version:"4.8.3",description:"node.js realtime framework server",keywords:["realtime","framework","websocket","tcp","events","socket","io"],files:["dist/","client-dist/","wrapper.mjs","!**/*.tsbuildinfo"],directories:{doc:"docs/",example:"example/",lib:"lib/",test:"test/"},type:"commonjs",main:"./dist/index.js",exports:{".":{types:"./dist/index.d.ts",import:"./wrapper.mjs",require:"./dist/index.js"},"./package.json":"./package.json"},types:"./dist/index.d.ts",license:"MIT",homepage:"https://github.com/socketio/socket.io/tree/main/packages/socket.io#readme",repository:{type:"git",url:"git+https://github.com/socketio/socket.io.git"},bugs:{url:"https://github.com/socketio/socket.io/issues"},scripts:{compile:"rimraf ./dist && tsc",test:"npm run format:check && npm run compile && npm run test:types && npm run test:unit","test:types":"tsd","test:unit":"nyc mocha --import=tsx --reporter spec --slow 200 --bail --timeout 10000 test/index.ts","format:check":'prettier --check "lib/**/*.ts" "test/**/*.ts"',"format:fix":'prettier --write "lib/**/*.ts" "test/**/*.ts"',prepack:"npm run compile"},dependencies:{accepts:"~1.3.4",base64id:"~2.0.0",cors:"~2.8.5",debug:"~4.4.1","engine.io":"~6.6.0","socket.io-adapter":"~2.5.2","socket.io-parser":"~4.2.4"},contributors:[{name:"Guillermo Rauch",email:"rauchg@gmail.com"},{name:"Arnout Kazemier",email:"info@3rd-eden.com"},{name:"Vladimir Dronnikov",email:"dronnikov@gmail.com"},{name:"Einar Otto Stangvik",email:"einaros@gmail.com"}],engines:{node:">=10.2.0"},tsd:{directory:"test"}}});var uu=x((z,_s)=>{"use strict";var db=z&&z.__createBinding||(Object.create?(function(s,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(s,i,n)}):(function(s,e,t,i){i===void 0&&(i=t),s[i]=e[t]})),fb=z&&z.__setModuleDefault||(Object.create?(function(s,e){Object.defineProperty(s,"default",{enumerable:!0,value:e})}):function(s,e){s.default=e}),hb=z&&z.__importStar||function(s){if(s&&s.__esModule)return s;var e={};if(s!=null)for(var t in s)t!=="default"&&Object.prototype.hasOwnProperty.call(s,t)&&db(e,s,t);return fb(e,s),e},ra=z&&z.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(z,"__esModule",{value:!0});z.Namespace=z.Socket=z.Server=void 0;var mb=ra(require("http")),xb=require("fs"),ia=require("zlib"),vb=js(),Gi=require("stream"),nu=require("path"),ru=_l(),gb=Pl(),au=require("events"),aa=Tr();Object.defineProperty(z,"Namespace",{enumerable:!0,get:function(){return aa.Namespace}});var bb=Xp(),ou=Wi(),yb=hb(us()),_b=ra(N()),pu=kr();Object.defineProperty(z,"Socket",{enumerable:!0,get:function(){return pu.Socket}});var wb=wi(),na=su(),Sb=ra(rr()),V=(0,_b.default)("socket.io:server"),cu=iu().version,lu=/\.map/,Xt=class s extends wb.StrictEventEmitter{constructor(e,t={}){super(),this._nsps=new Map,this.parentNsps=new Map,this.parentNamespacesFromRegExp=new Map,typeof e=="object"&&e instanceof Object&&!e.listen&&(t=e,e=void 0),this.path(t.path||"/socket.io"),this.connectTimeout(t.connectTimeout||45e3),this.serveClient(t.serveClient!==!1),this._parser=t.parser||yb,this.encoder=new this._parser.Encoder,this.opts=t,t.connectionStateRecovery?(t.connectionStateRecovery=Object.assign({maxDisconnectionDuration:120*1e3,skipMiddlewares:!0},t.connectionStateRecovery),this.adapter(t.adapter||ou.SessionAwareAdapter)):this.adapter(t.adapter||ou.Adapter),t.cleanupEmptyChildNamespaces=!!t.cleanupEmptyChildNamespaces,this.sockets=this.of("/"),(e||typeof e=="number")&&this.attach(e),this.opts.cors&&(this._corsMiddleware=(0,Sb.default)(this.opts.cors))}get _opts(){return this.opts}serveClient(e){return arguments.length?(this._serveClient=e,this):this._serveClient}_checkNamespace(e,t,i){if(this.parentNsps.size===0)return i(!1);let n=this.parentNsps.keys(),r=()=>{let a=n.next();if(a.done)return i(!1);a.value(e,t,(o,c)=>{if(o||!c)return r();if(this._nsps.has(e))return V("dynamic namespace %s already exists",e),i(this._nsps.get(e));let l=this.parentNsps.get(a.value).createChild(e);V("dynamic namespace %s was created",e),i(l)})};r()}path(e){if(!arguments.length)return this._path;this._path=e.replace(/\/$/,"");let t=this._path.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return this.clientPathRegex=new RegExp("^"+t+"/socket\\.io(\\.msgpack|\\.esm)?(\\.min)?\\.js(\\.map)?(?:\\?|$)"),this}connectTimeout(e){return e===void 0?this._connectTimeout:(this._connectTimeout=e,this)}adapter(e){if(!arguments.length)return this._adapter;this._adapter=e;for(let t of this._nsps.values())t._initAdapter();return this}listen(e,t={}){return this.attach(e,t)}attach(e,t={}){if(typeof e=="function"){let i="You are trying to attach socket.io to an express request handler function. Please pass a http.Server instance.";throw new Error(i)}if(Number(e)==e&&(e=Number(e)),typeof e=="number"){V("creating http server and binding to %d",e);let i=e;e=mb.default.createServer((n,r)=>{r.writeHead(404),r.end()}),e.listen(i)}return Object.assign(t,this.opts),t.path=t.path||this._path,this.initEngine(e,t),this}attachApp(e,t={}){Object.assign(t,this.opts),t.path=t.path||this._path,V("creating uWebSockets.js-based engine with opts %j",t);let i=new ru.uServer(t);i.attach(e,t),this.bind(i),this._serveClient&&e.get(`${this._path}/*`,(n,r)=>{if(!this.clientPathRegex.test(r.getUrl())){r.setYield(!0);return}let a=r.getUrl().replace(this._path,"").replace(/\?.*$/,"").replace(/^\//,""),o=lu.test(a),c=o?"map":"source",l='"'+cu+'"',p="W/"+l,u=r.getHeader("if-none-match");if(u&&(l===u||p===u)){V("serve client %s 304",c),n.writeStatus("304 Not Modified"),n.end();return}V("serve client %s",c),n.writeHeader("cache-control","public, max-age=0"),n.writeHeader("content-type","application/"+(o?"json":"javascript")+"; charset=utf-8"),n.writeHeader("etag",l);let f=nu.join(__dirname,"../client-dist/",a);(0,na.serveFile)(n,f)}),(0,na.patchAdapter)(e)}initEngine(e,t){V("creating engine.io instance with opts %j",t),this.eio=(0,ru.attach)(e,t),this._serveClient&&this.attachServe(e),this.httpServer=e,this.bind(this.eio)}attachServe(e){V("attaching client serving req handler");let t=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("request",(i,n)=>{if(this.clientPathRegex.test(i.url))this._corsMiddleware?this._corsMiddleware(i,n,()=>{this.serve(i,n)}):this.serve(i,n);else for(let r=0;r<t.length;r++)t[r].call(e,i,n)})}serve(e,t){let i=e.url.replace(this._path,"").replace(/\?.*$/,""),n=lu.test(i),r=n?"map":"source",a='"'+cu+'"',o="W/"+a,c=e.headers["if-none-match"];if(c&&(a===c||o===c)){V("serve client %s 304",r),t.writeHead(304),t.end();return}V("serve client %s",r),t.setHeader("Cache-Control","public, max-age=0"),t.setHeader("Content-Type","application/"+(n?"json":"javascript")+"; charset=utf-8"),t.setHeader("ETag",a),s.sendFile(i,e,t)}static sendFile(e,t,i){let n=(0,xb.createReadStream)(nu.join(__dirname,"../client-dist/",e)),r=vb(t).encodings(["br","gzip","deflate"]),a=o=>{o&&i.end()};switch(r){case"br":i.writeHead(200,{"content-encoding":"br"}),(0,Gi.pipeline)(n,(0,ia.createBrotliCompress)(),i,a);break;case"gzip":i.writeHead(200,{"content-encoding":"gzip"}),(0,Gi.pipeline)(n,(0,ia.createGzip)(),i,a);break;case"deflate":i.writeHead(200,{"content-encoding":"deflate"}),(0,Gi.pipeline)(n,(0,ia.createDeflate)(),i,a);break;default:i.writeHead(200),(0,Gi.pipeline)(n,i,a)}}bind(e){return this.engine=e,this.engine.on("connection",this.onconnection.bind(this)),this}onconnection(e){V("incoming connection with id %s",e.id);let t=new gb.Client(this,e);return e.protocol===3&&t.connect("/"),this}of(e,t){if(typeof e=="function"||e instanceof RegExp){let n=new bb.ParentNamespace(this);return V("initializing parent namespace %s",n.name),typeof e=="function"?this.parentNsps.set(e,n):(this.parentNsps.set((r,a,o)=>o(null,e.test(r)),n),this.parentNamespacesFromRegExp.set(e,n)),t&&n.on("connect",t),n}String(e)[0]!=="/"&&(e="/"+e);let i=this._nsps.get(e);if(!i){for(let[n,r]of this.parentNamespacesFromRegExp)if(n.test(e))return V("attaching namespace %s to parent namespace %s",e,n),r.createChild(e);V("initializing namespace %s",e),i=new aa.Namespace(this,e),this._nsps.set(e,i),e!=="/"&&this.sockets.emitReserved("new_namespace",i)}return t&&i.on("connect",t),i}async close(e){if(await Promise.allSettled([...this._nsps.values()].map(async t=>{t.sockets.forEach(i=>{i._onclose("server shutting down")}),await t.adapter.close()})),this.engine.close(),(0,na.restoreAdapter)(),this.httpServer)return new Promise(t=>{this.httpServer.close(i=>{e&&e(i),i&&V("server was not running"),t()})});e&&e()}use(e){return this.sockets.use(e),this}to(e){return this.sockets.to(e)}in(e){return this.sockets.in(e)}except(e){return this.sockets.except(e)}send(...e){return this.sockets.emit("message",...e),this}write(...e){return this.sockets.emit("message",...e),this}serverSideEmit(e,...t){return this.sockets.serverSideEmit(e,...t)}serverSideEmitWithAck(e,...t){return this.sockets.serverSideEmitWithAck(e,...t)}allSockets(){return this.sockets.allSockets()}compress(e){return this.sockets.compress(e)}get volatile(){return this.sockets.volatile}get local(){return this.sockets.local}timeout(e){return this.sockets.timeout(e)}fetchSockets(){return this.sockets.fetchSockets()}socketsJoin(e){return this.sockets.socketsJoin(e)}socketsLeave(e){return this.sockets.socketsLeave(e)}disconnectSockets(e=!1){return this.sockets.disconnectSockets(e)}};z.Server=Xt;var Eb=Object.keys(au.EventEmitter.prototype).filter(function(s){return typeof au.EventEmitter.prototype[s]=="function"});Eb.forEach(function(s){Xt.prototype[s]=function(){return this.sockets[s].apply(this.sockets,arguments)}});_s.exports=(s,e)=>new Xt(s,e);_s.exports.Server=Xt;_s.exports.Namespace=aa.Namespace;_s.exports.Socket=pu.Socket});var mu={};vt(mu,{TileManager:()=>oa});var Ki,Jt,Yi,hu,kb,Cb,oa,xu=Je(()=>{Ki=F(require("sharp"),1),Jt=F(require("fs"),1),Yi=F(require("path"),1),hu=require("url"),kb=(0,hu.fileURLToPath)(__importMetaUrl),Cb=Yi.default.dirname(kb),oa=class{constructor(e){this.robot=e,this.tileSize=100,this.lastTileChecksums=new Map,this.lastTileBuffers=new Map,this.screenWidth=0,this.screenHeight=0,this.tilesPerRow=0,this.tilesPerColumn=0,this.totalTiles=0,this.frameCount=0,this.tempDir=Yi.default.join(Cb,"../../temp"),this.compressionQuality=1,this.changeThreshold=1,this.scaleFactor=.99,this.scaledWidth=0,this.scaledHeight=0,this.isProcessing=!1,this.sharedScreenCache=null,this.lastCaptureTime=0,this.CACHE_TTL=100,Jt.default.existsSync(this.tempDir)||Jt.default.mkdirSync(this.tempDir,{recursive:!0}),this.initializeScreenDimensions()}initializeScreenDimensions(){try{let{width:e,height:t}=this.robot.getScreenSize();this.screenWidth=e,this.screenHeight=t,this.scaledWidth=Math.floor(e*this.scaleFactor),this.scaledHeight=Math.floor(t*this.scaleFactor),this.tilesPerRow=Math.ceil(this.scaledWidth/this.tileSize),this.tilesPerColumn=Math.ceil(this.scaledHeight/this.tileSize),this.totalTiles=this.tilesPerRow*this.tilesPerColumn;let i=100;if(this.totalTiles>i){let n=Math.ceil(Math.sqrt(this.scaledWidth*this.scaledHeight/i));this.tileSize=Math.max(n,120),this.tilesPerRow=Math.ceil(this.scaledWidth/this.tileSize),this.tilesPerColumn=Math.ceil(this.scaledHeight/this.tileSize),this.totalTiles=this.tilesPerRow*this.tilesPerColumn}console.log(`\u{1F5A5}\uFE0F TileManager: ${e}x${t} -> ${this.totalTiles} tiles`)}catch(e){console.error("Screen dimensions error:",e),this.screenWidth=1920,this.screenHeight=1080,this.scaledWidth=1728,this.scaledHeight=972,this.tileSize=120,this.tilesPerRow=Math.ceil(this.scaledWidth/this.tileSize),this.tilesPerColumn=Math.ceil(this.scaledHeight/this.tileSize),this.totalTiles=this.tilesPerRow*this.tilesPerColumn}}async captureFullScreen(){let e=this.robot.screen.capture(),t=Buffer.from(e.image);for(let o=0;o<t.length;o+=4){let c=t[o],l=t[o+2];t[o]=l,t[o+2]=c}let i=e.byteWidth/e.bytesPerPixel,n=t,r=i,a=e.height;if(this.scaleFactor<1){let o=Math.floor(i*this.scaleFactor),c=Math.floor(e.height*this.scaleFactor);n=await(0,Ki.default)(t,{raw:{width:i,height:e.height,channels:e.bytesPerPixel}}).resize(o,c,{kernel:Ki.default.kernel.lanczos3,fit:"fill"}).raw().toBuffer(),r=o,a=c,this.scaledWidth=o,this.scaledHeight=c,this.tilesPerRow=Math.ceil(o/this.tileSize),this.tilesPerColumn=Math.ceil(c/this.tileSize),this.totalTiles=this.tilesPerRow*this.tilesPerColumn}return{buffer:n,width:r,height:a,channels:e.bytesPerPixel}}async getSharedScreenCapture(){let e=Date.now();return this.sharedScreenCache&&e-this.lastCaptureTime<this.CACHE_TTL?this.sharedScreenCache:(this.sharedScreenCache=await this.captureFullScreen(),this.lastCaptureTime=e,this.sharedScreenCache)}clearScreenCache(){}async detectChangedTiles(){if(this.isProcessing)return[];this.isProcessing=!0;try{let e=await this.getSharedScreenCapture(),t=[],i=[];if(this.frameCount++,this.lastTileChecksums.size===0){let r=[];for(let o=0;o<this.totalTiles;o++)r.push(this.processTileAsync(e,o,!0));let a=await Promise.all(r);return t.push(...a),t}for(let r=0;r<this.totalTiles;r++){let a=await this.extractTile(e,r),o=this.calculateTileChecksum(a.buffer),c=this.lastTileChecksums.get(r);o!==c&&(i.push(r),this.lastTileChecksums.set(r,o))}if(i.length/this.totalTiles>this.changeThreshold){let r=[];for(let o=0;o<this.totalTiles;o++)r.push(this.processTileAsync(e,o,!0));let a=await Promise.all(r);t.push(...a.map(o=>({...o,fullRefresh:!0})))}else if(i.length>0){let r=i.map(o=>this.processTileAsync(e,o,!1)),a=await Promise.all(r);t.push(...a)}return t}finally{this.isProcessing=!1}}async processTileAsync(e,t){let i=await this.extractTile(e,t),n=this.calculateTileChecksum(i.buffer);this.lastTileChecksums.set(t,n),this.lastTileBuffers.set(t,i.buffer);let r=await this.compressTileImage(i.buffer,i.width,i.height),{row:a,col:o}=this.getTilePosition(t);return{type:"tile-update",tileIndex:t,x:o*this.tileSize,y:a*this.tileSize,width:i.width,height:i.height,imageBase64:r,size:Math.round(r.length*.75/1024),timestamp:Date.now(),frameCount:this.frameCount}}calculateTileChecksum(e){let t=0;for(let i=0;i<e.length;i+=64)t+=e[i]||0,t^=e[i+1]||0,t+=(e[i+2]||0)<<1,t^=(e[i+3]||0)<<2;return t>>>0}getTilePosition(e){return{row:Math.floor(e/this.tilesPerRow),col:e%this.tilesPerRow}}async extractTile(e,t){let{row:i,col:n}=this.getTilePosition(t),r=n*this.tileSize,a=i*this.tileSize,o=Math.min(r+this.tileSize,e.width),c=Math.min(a+this.tileSize,e.height),l=o-r,p=c-a,u=Buffer.alloc(l*p*e.channels);for(let f=0;f<p;f++)for(let m=0;m<l;m++){let h=((a+f)*e.width+(r+m))*e.channels,d=(f*l+m)*e.channels;for(let v=0;v<e.channels;v++)u[d+v]=e.buffer[h+v]}return{buffer:u,width:l,height:p,channels:e.channels,tileIndex:t,x:r,y:a}}async compressTileImage(e,t,i){return`data:image/webp;base64,${(await(0,Ki.default)(e,{raw:{width:t,height:i,channels:4}}).webp({quality:85,effort:2,smartSubsample:!0}).toBuffer()).toString("base64")}`}async getScreenDimensions(){try{let e=await this.captureFullScreen();this.scaledWidth=e.width,this.scaledHeight=e.height,this.tilesPerRow=Math.ceil(e.width/this.tileSize),this.tilesPerColumn=Math.ceil(e.height/this.tileSize),this.totalTiles=this.tilesPerRow*this.tilesPerColumn}catch(e){console.error("Error getting dimensions:",e)}return{width:this.scaledWidth,height:this.scaledHeight,tileWidth:this.tileSize,tileHeight:this.tileSize,tileCount:this.totalTiles,scaleFactor:this.scaleFactor,originalWidth:this.screenWidth,originalHeight:this.screenHeight}}async compareClientTileHashes(e){if(this.isProcessing)return{tiles:[],currentHashes:[],changedIndices:[]};this.isProcessing=!0;try{let t=await this.getSharedScreenCapture(),i=[],n=[];this.frameCount++;let r=new Map;for(let o=0;o<this.totalTiles;o++){let c=await this.extractTile(t,o),l=this.calculateTileChecksum(c.buffer);r.set(o,l),this.lastTileChecksums.set(o,l)}if(!e||e.length===0){let o=[];for(let l=0;l<this.totalTiles;l++)o.push(this.processTileAsync(t,l,!0));let c=await Promise.all(o);return i.push(...c),{tiles:i,currentHashes:Array.from(r.values())}}for(let o=0;o<this.totalTiles;o++)e[o]!==r.get(o)&&n.push(o);if(n.length/this.totalTiles>this.changeThreshold){let o=[];for(let l=0;l<this.totalTiles;l++)o.push(this.processTileAsync(t,l,!0));let c=await Promise.all(o);i.push(...c.map(l=>({...l,fullRefresh:!0})))}else if(n.length>0){let o=n.map(l=>this.processTileAsync(t,l,!1)),c=await Promise.all(o);i.push(...c)}return{tiles:i,currentHashes:Array.from(r.values()),changedIndices:n}}finally{this.isProcessing=!1}}reset(){this.lastTileChecksums.clear(),this.lastTileBuffers.clear(),this.frameCount=0}cleanup(){try{Jt.default.existsSync(this.tempDir)&&Jt.default.readdirSync(this.tempDir).forEach(t=>Jt.default.unlinkSync(Yi.default.join(this.tempDir,t)))}catch(e){console.warn("Cleanup error:",e)}}}});var Z,ws=Je(()=>{Z={robotSettings:{mouseDelay:2,keyboardDelay:2},throttling:{mouseThrottle:8,keyThrottle:25,typeTextThrottle:100,maxTextLength:1e3},resourceManagement:{inactiveTimeout:12e4,memoryCheckInterval:6e4,memoryWarningThreshold:1e3,maxTimersPerClient:100,maxChunkTimersPerClient:50},streaming:{autoStreamingInterval:100,chunkSize:32,chunkDelay:5,updateDelayAfterAction:200}}});var vu={};vt(vu,{ResourceManager:()=>ca});var ca,gu=Je(()=>{ws();ca=class{constructor(){this.activeClients=new Map,this.activeTimers=new Map,this.chunkTimers=new Map,this.memoryCheckInterval=null}startResourceMonitoring(){this.memoryCheckInterval=setInterval(()=>{let e=process.memoryUsage(),t=Math.round(e.heapUsed/1024/1024);t>Z.resourceManagement.memoryWarningThreshold&&(console.warn(`\u26A0\uFE0F High memory: ${t}MB`),this.cleanupInactiveClients())},Z.resourceManagement.memoryCheckInterval)}stopResourceMonitoring(){this.memoryCheckInterval&&(clearInterval(this.memoryCheckInterval),this.memoryCheckInterval=null)}addClient(e,t){this.activeClients.set(e,{...t,lastActivity:Date.now()})}getClient(e){return this.activeClients.get(e)}updateClientActivity(e){let t=this.activeClients.get(e);t&&(t.lastActivity=Date.now())}cleanupInactiveClients(){let e=Date.now(),t=Z.resourceManagement.inactiveTimeout;for(let[i,n]of this.activeClients.entries())e-n.lastActivity>t&&(console.log(`\u{1F9F9} Cleaning inactive client: ${i}`),this.cleanupClientResources(i,n),this.activeClients.delete(i))}cleanupClientResources(e,t){try{t?.screenInterval&&(clearInterval(t.screenInterval),t.screenInterval=null);let i=this.activeTimers.get(e);i&&(i.forEach(r=>clearTimeout(r)),this.activeTimers.delete(e));let n=this.chunkTimers.get(e);n&&(n.forEach(r=>clearTimeout(r)),this.chunkTimers.delete(e)),t?.tileManager&&(t.tileManager.cleanup(),t.tileManager.reset())}catch(i){console.error(`Error cleaning up ${e}:`,i.message)}}removeClient(e){let t=this.activeClients.get(e);t&&(this.cleanupClientResources(e,t),this.activeClients.delete(e))}getChunkTimers(e){return this.chunkTimers.has(e)||this.chunkTimers.set(e,new Set),this.chunkTimers.get(e)}cleanupAll(){this.stopResourceMonitoring();for(let[e,t]of this.activeClients.entries())this.cleanupClientResources(e,t);this.activeClients.clear(),this.activeTimers.clear(),this.chunkTimers.clear()}}});var bu={};vt(bu,{ScreenUpdateHelper:()=>la});var la,yu=Je(()=>{ws();la=class{constructor(e){this.resourceManager=e}async sendTilesInChunks(e,t,i,n=!1){if(!t||t.length===0)return;let r=Z.streaming.chunkSize,a=[];for(let c=0;c<t.length;c+=r)a.push(t.slice(c,c+r));let o=this.resourceManager.getChunkTimers(e.id);for(let c=0;c<a.length;c++){let l=a[c],p=c===a.length-1,u=setTimeout(()=>{o.delete(u),e.connected&&e.emit("tiles-data",{tiles:l,timestamp:i,forceRefresh:!1,userAction:n,chunkInfo:{chunkIndex:c,totalChunks:a.length,isLastChunk:p}})},c*Z.streaming.chunkDelay);o.add(u)}}}});var _u={};vt(_u,{MouseHandler:()=>pa});var pa,wu=Je(()=>{ws();pa=class{constructor(e,t){this.robot=e,this.resourceManager=t,this.lastMouseMove=0}setupMouseHandlers(e,t){let i=this.robot;e.on("mouse-move",t(n=>{let r=Date.now();if(!(r-this.lastMouseMove<Z.throttling.mouseThrottle)){this.lastMouseMove=r;try{i.moveMouse(n.x,n.y),this.resourceManager.updateClientActivity(e.id)}catch(a){console.error("Mouse move error:",a.message)}}})),e.on("mouse-click",t(async n=>{try{if(!this.resourceManager.getClient(e.id))return;let a=i.getScreenSize(),o=Math.round(n.x/100*a.width),c=Math.round(n.y/100*a.height),l=Math.max(0,Math.min(a.width-1,o)),p=Math.max(0,Math.min(a.height-1,c));i.moveMouse(l,p),i.mouseClick(n.button||"left",n.double||!1),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Mouse click error:",r.message)}})),e.on("mouse-press",t(async n=>{try{if(!this.resourceManager.getClient(e.id))return;let a=i.getScreenSize(),o=Math.round(n.x/100*a.width),c=Math.round(n.y/100*a.height),l=Math.max(0,Math.min(a.width-1,o)),p=Math.max(0,Math.min(a.height-1,c));i.moveMouse(l,p),i.mouseToggle("down",n.button||"left"),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Mouse press error:",r.message)}})),e.on("mouse-release",t(async n=>{try{if(!this.resourceManager.getClient(e.id))return;let a=i.getScreenSize(),o=Math.round(n.x/100*a.width),c=Math.round(n.y/100*a.height),l=Math.max(0,Math.min(a.width-1,o)),p=Math.max(0,Math.min(a.height-1,c));i.moveMouse(l,p),i.mouseToggle("up",n.button||"left"),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Mouse release error:",r.message)}})),e.on("scroll",t(async n=>{try{let{direction:r,amount:a=60,horizontal:o=!1}=n;if(!this.resourceManager.getClient(e.id))return;let l=0,p=0;o||r==="left"||r==="right"?l=r==="right"?a:-a:p=r==="down"?-a:a,i.scrollMouse(l,p),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Scroll error:",r.message)}})),e.on("mouse-drag-select",t(n=>{try{let{startX:r,startY:a,endX:o,endY:c}=n,l=i.getScreenSize(),p=Math.round(r/100*l.width),u=Math.round(a/100*l.height),f=Math.round(o/100*l.width),m=Math.round(c/100*l.height),h=Math.max(0,Math.min(l.width-1,p)),d=Math.max(0,Math.min(l.height-1,u)),v=Math.max(0,Math.min(l.width-1,f)),b=Math.max(0,Math.min(l.height-1,m));i.moveMouse(h,d),i.mouseToggle("down","left"),i.dragMouse(v,b),i.mouseToggle("up","left"),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Drag selection error:",r.message)}}))}}});var Su={};vt(Su,{KeyboardHandler:()=>ua});var ua,Eu=Je(()=>{ws();ua=class{constructor(e,t){this.robot=e,this.resourceManager=t,this.lastKeyPress=0,this.lastTypeText=0}setupKeyboardHandlers(e,t){let i=this.robot;e.on("key-press",t(n=>{let r=Date.now();if(!(r-this.lastKeyPress<Z.throttling.keyThrottle)){this.lastKeyPress=r;try{if(!n.key||typeof n.key!="string")return;let a=n.key;if(a.length===1){i.keyTap(a,n.modifier||[]);for(let o of n.modifier||[])i.keyToggle(o,"up")}else switch(a.toLowerCase()){case"enter":case"return":i.keyTap("enter");break;case"space":i.keyTap(" ");break;case"backspace":i.keyTap("backspace");break;case"tab":i.keyTap("tab");break;case"escape":i.keyTap("escape");break;default:i.keyTap(a,n.modifier||[])}this.resourceManager.updateClientActivity(e.id)}catch(a){console.error("Key press error:",a.message)}}})),e.on("type-text",t(n=>{let r=Date.now();if(!(r-this.lastTypeText<Z.throttling.typeTextThrottle)){this.lastTypeText=r;try{if(!n.text||typeof n.text!="string")return;let a=n.text;a.length>Z.throttling.maxTextLength&&(a=a.substring(0,Z.throttling.maxTextLength));let o=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"");setTimeout(()=>{try{i.typeString(o),this.resourceManager.updateClientActivity(e.id);let c=this.resourceManager.getClient(e.id);c?.tileManager&&c.tileManager.clearScreenCache()}catch(c){console.error("Robot typeString error:",c.message)}},10)}catch(a){console.error("Type text error:",a.message)}}}))}}});var ku={};vt(ku,{ScreenHandler:()=>da});var da,Cu=Je(()=>{da=class{constructor(e,t){this.resourceManager=e,this.screenUpdateHelper=t}setupScreenHandlers(e,t){e.on("request-screen",t(async()=>{let i=this.resourceManager.getClient(e.id);if(i)try{let n=await i.tileManager.detectChangedTiles();n.length>0&&e.emit("tiles-data",{tiles:n,timestamp:Date.now()}),this.resourceManager.updateClientActivity(e.id)}catch(n){console.error("Tile capture error:",n),e.emit("screen-error",{error:n.message})}})),e.on("request-screen-with-hashes",t(async i=>{let n=this.resourceManager.getClient(e.id);if(n)try{let r=i.tileHashes||[],a=await n.tileManager.compareClientTileHashes(r);a?.tiles?.length>0?e.emit("tiles-data",{tiles:a.tiles,timestamp:Date.now(),currentHashes:a.currentHashes,changedIndices:a.changedIndices}):e.emit("tiles-data",{tiles:[],timestamp:Date.now(),currentHashes:a.currentHashes,changedIndices:[]}),this.resourceManager.updateClientActivity(e.id)}catch(r){console.error("Tile capture with hashes error:",r),e.emit("screen-error",{error:r.message})}})),e.on("start-streaming",t(()=>{let i=this.resourceManager.getClient(e.id);i&&(i.screenInterval&&(clearInterval(i.screenInterval),i.screenInterval=null),console.log("\u{1F680} Remote streaming started"),i.screenInterval=setInterval(async()=>{try{let n=await i.tileManager.detectChangedTiles();if(n.length>0){let r=Date.now();await this.screenUpdateHelper.sendTilesInChunks(e,n,r,!1)}}catch(n){console.error("Auto streaming error:",n)}},400))})),e.on("stop-streaming",()=>{let i=this.resourceManager.getClient(e.id);i&&(i.screenInterval&&(clearInterval(i.screenInterval),i.screenInterval=null),console.log("\u23F9\uFE0F Remote streaming stopped"))}),e.on("get-screen-dimensions",t(async()=>{let i=this.resourceManager.getClient(e.id);if(i)try{let n=await i.tileManager.getScreenDimensions();e.emit("screen-dimensions",n)}catch(n){console.error("Get dimensions error:",n),e.emit("screen-error",{error:n.message})}}))}}});var qu=x((w0,ma)=>{"use strict";var jb=Object.prototype.hasOwnProperty,G="~";function Cs(){}Object.create&&(Cs.prototype=Object.create(null),new Cs().__proto__||(G=!1));function Bb(s,e,t){this.fn=s,this.context=e,this.once=t||!1}function Mu(s,e,t,i,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var r=new Bb(t,i||s,n),a=G?G+e:e;return s._events[a]?s._events[a].fn?s._events[a]=[s._events[a],r]:s._events[a].push(r):(s._events[a]=r,s._eventsCount++),s}function Zi(s,e){--s._eventsCount===0?s._events=new Cs:delete s._events[e]}function W(){this._events=new Cs,this._eventsCount=0}W.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)jb.call(t,i)&&e.push(G?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};W.prototype.listeners=function(e){var t=G?G+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,r=i.length,a=new Array(r);n<r;n++)a[n]=i[n].fn;return a};W.prototype.listenerCount=function(e){var t=G?G+e:e,i=this._events[t];return i?i.fn?1:i.length:0};W.prototype.emit=function(e,t,i,n,r,a){var o=G?G+e:e;if(!this._events[o])return!1;var c=this._events[o],l=arguments.length,p,u;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,n),!0;case 5:return c.fn.call(c.context,t,i,n,r),!0;case 6:return c.fn.call(c.context,t,i,n,r,a),!0}for(u=1,p=new Array(l-1);u<l;u++)p[u-1]=arguments[u];c.fn.apply(c.context,p)}else{var f=c.length,m;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),l){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,n);break;default:if(!p)for(m=1,p=new Array(l-1);m<l;m++)p[m-1]=arguments[m];c[u].fn.apply(c[u].context,p)}}return!0};W.prototype.on=function(e,t,i){return Mu(this,e,t,i,!1)};W.prototype.once=function(e,t,i){return Mu(this,e,t,i,!0)};W.prototype.removeListener=function(e,t,i,n){var r=G?G+e:e;if(!this._events[r])return this;if(!t)return Zi(this,r),this;var a=this._events[r];if(a.fn)a.fn===t&&(!n||a.once)&&(!i||a.context===i)&&Zi(this,r);else{for(var o=0,c=[],l=a.length;o<l;o++)(a[o].fn!==t||n&&!a[o].once||i&&a[o].context!==i)&&c.push(a[o]);c.length?this._events[r]=c.length===1?c[0]:c:Zi(this,r)}return this};W.prototype.removeAllListeners=function(e){var t;return e?(t=G?G+e:e,this._events[t]&&Zi(this,t)):(this._events=new Cs,this._eventsCount=0),this};W.prototype.off=W.prototype.removeListener;W.prototype.addListener=W.prototype.on;W.prefixed=G;W.EventEmitter=W;typeof ma<"u"&&(ma.exports=W)});var Uu=x((S0,Fu)=>{"use strict";Fu.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var en=x(zu=>{var Me=zu,Ib=require("url"),Hu=require("util")._extend,Db=Uu(),Mb=/(^|,)\s*upgrade\s*($|,)/i,xa=/^https|wss/;Me.isSSL=xa;Me.setupOutgoing=function(s,e,t,i){s.port=e[i||"target"].port||(xa.test(e[i||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(o){s[o]=e[i||"target"][o]}),s.method=e.method||t.method,s.headers=Hu({},t.headers),e.headers&&Hu(s.headers,e.headers),e.auth&&(s.auth=e.auth),e.ca&&(s.ca=e.ca),xa.test(e[i||"target"].protocol)&&(s.rejectUnauthorized=typeof e.secure>"u"?!0:e.secure),s.agent=e.agent||!1,s.localAddress=e.localAddress,s.agent||(s.headers=s.headers||{},(typeof s.headers.connection!="string"||!Mb.test(s.headers.connection))&&(s.headers.connection="close"));var n=e[i||"target"],r=n&&e.prependPath!==!1&&n.path||"",a=e.toProxy?t.url:Ib.parse(t.url).path||"";return a=e.ignorePath?"":a,s.path=Me.urlJoin(r,a),e.changeOrigin&&(s.headers.host=Db(s.port,e[i||"target"].protocol)&&!qb(s.host)?s.host+":"+s.port:s.host),s};Me.setupSocket=function(s){return s.setTimeout(0),s.setNoDelay(!0),s.setKeepAlive(!0,0),s};Me.getPort=function(s){var e=s.headers.host?s.headers.host.match(/:(\d+)/):"";return e?e[1]:Me.hasEncryptedConnection(s)?"443":"80"};Me.hasEncryptedConnection=function(s){return!!(s.connection.encrypted||s.connection.pair)};Me.urlJoin=function(){var s=Array.prototype.slice.call(arguments),e=s.length-1,t=s[e],i=t.split("?"),n;return s[e]=i.shift(),n=[s.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],n.push.apply(n,i),n.join("?")};Me.rewriteCookieProperty=function s(e,t,i){return Array.isArray(e)?e.map(function(n){return s(n,t,i)}):e.replace(new RegExp("(;\\s*"+i+"=)([^;]+)","i"),function(n,r,a){var o;if(a in t)o=t[a];else if("*"in t)o=t["*"];else return n;return o?r+o:""})};function qb(s){return!!~s.indexOf(":")}});var Gu=x((k0,Vu)=>{var Wu=require("url"),$u=en(),Fb=/^201|30(1|2|7|8)$/;Vu.exports={removeChunked:function(e,t,i){e.httpVersion==="1.0"&&delete i.headers["transfer-encoding"]},setConnection:function(e,t,i){e.httpVersion==="1.0"?i.headers.connection=e.headers.connection||"close":e.httpVersion!=="2.0"&&!i.headers.connection&&(i.headers.connection=e.headers.connection||"keep-alive")},setRedirectHostRewrite:function(e,t,i,n){if((n.hostRewrite||n.autoRewrite||n.protocolRewrite)&&i.headers.location&&Fb.test(i.statusCode)){var r=Wu.parse(n.target),a=Wu.parse(i.headers.location);if(r.host!=a.host)return;n.hostRewrite?a.host=n.hostRewrite:n.autoRewrite&&(a.host=e.headers.host),n.protocolRewrite&&(a.protocol=n.protocolRewrite),i.headers.location=a.format()}},writeHeaders:function(e,t,i,n){var r=n.cookieDomainRewrite,a=n.cookiePathRewrite,o=n.preserveHeaderKeyCase,c,l=function(f,m){m!=null&&(r&&f.toLowerCase()==="set-cookie"&&(m=$u.rewriteCookieProperty(m,r,"domain")),a&&f.toLowerCase()==="set-cookie"&&(m=$u.rewriteCookieProperty(m,a,"path")),t.setHeader(String(f).trim(),m))};if(typeof r=="string"&&(r={"*":r}),typeof a=="string"&&(a={"*":a}),o&&i.rawHeaders!=null){c={};for(var p=0;p<i.rawHeaders.length;p+=2){var u=i.rawHeaders[p];c[u.toLowerCase()]=u}}Object.keys(i.headers).forEach(function(f){var m=i.headers[f];o&&c&&(f=c[f]||f),l(f,m)})},writeStatusCode:function(e,t,i){i.statusMessage?(t.statusCode=i.statusCode,t.statusMessage=i.statusMessage):t.statusCode=i.statusCode}}});var Yu=x((C0,Ku)=>{var Ts;Ku.exports=function(){if(!Ts){try{Ts=N()("follow-redirects")}catch{}typeof Ts!="function"&&(Ts=function(){})}Ts.apply(null,arguments)}});var ed=x((T0,Oa)=>{var Rs=require("url"),Os=Rs.URL,Ub=require("http"),Hb=require("https"),_a=require("stream").Writable,wa=require("assert"),Xu=Yu();(function(){var e=typeof process<"u",t=typeof window<"u"&&typeof document<"u",i=mt(Error.captureStackTrace);!e&&(t||!i)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Sa=!1;try{wa(new Os(""))}catch(s){Sa=s.code==="ERR_INVALID_URL"}var zb=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ea=["abort","aborted","connect","error","socket","timeout"],ka=Object.create(null);Ea.forEach(function(s){ka[s]=function(e,t,i){this._redirectable.emit(s,e,t,i)}});var ga=Ps("ERR_INVALID_URL","Invalid URL",TypeError),ba=Ps("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Wb=Ps("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ba),$b=Ps("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Vb=Ps("ERR_STREAM_WRITE_AFTER_END","write after end"),Gb=_a.prototype.destroy||Qu;function ee(s,e){_a.call(this),this._sanitizeOptions(s),this._options=s,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){try{t._processResponse(i)}catch(n){t.emit("error",n instanceof ba?n:new ba({cause:n}))}},this._performRequest()}ee.prototype=Object.create(_a.prototype);ee.prototype.abort=function(){Ta(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ee.prototype.destroy=function(s){return Ta(this._currentRequest,s),Gb.call(this,s),this};ee.prototype.write=function(s,e,t){if(this._ending)throw new Vb;if(!ht(s)&&!Xb(s))throw new TypeError("data should be a string, Buffer or Uint8Array");if(mt(e)&&(t=e,e=null),s.length===0){t&&t();return}this._requestBodyLength+s.length<=this._options.maxBodyLength?(this._requestBodyLength+=s.length,this._requestBodyBuffers.push({data:s,encoding:e}),this._currentRequest.write(s,e,t)):(this.emit("error",new $b),this.abort())};ee.prototype.end=function(s,e,t){if(mt(s)?(t=s,s=e=null):mt(e)&&(t=e,e=null),!s)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,n=this._currentRequest;this.write(s,e,function(){i._ended=!0,n.end(null,null,t)}),this._ending=!0}};ee.prototype.setHeader=function(s,e){this._options.headers[s]=e,this._currentRequest.setHeader(s,e)};ee.prototype.removeHeader=function(s){delete this._options.headers[s],this._currentRequest.removeHeader(s)};ee.prototype.setTimeout=function(s,e){var t=this;function i(a){a.setTimeout(s),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function n(a){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),r()},s),i(a)}function r(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",r),t.removeListener("error",r),t.removeListener("response",r),t.removeListener("close",r),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",n)}return e&&this.on("timeout",e),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",i),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(s){ee.prototype[s]=function(e,t){return this._currentRequest[s](e,t)}});["aborted","connection","socket"].forEach(function(s){Object.defineProperty(ee.prototype,s,{get:function(){return this._currentRequest[s]}})});ee.prototype._sanitizeOptions=function(s){if(s.headers||(s.headers={}),s.host&&(s.hostname||(s.hostname=s.host),delete s.host),!s.pathname&&s.path){var e=s.path.indexOf("?");e<0?s.pathname=s.path:(s.pathname=s.path.substring(0,e),s.search=s.path.substring(e))}};ee.prototype._performRequest=function(){var s=this._options.protocol,e=this._options.nativeProtocols[s];if(!e)throw new TypeError("Unsupported protocol "+s);if(this._options.agents){var t=s.slice(0,-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);i._redirectable=this;for(var n of Ea)i.on(n,ka[n]);if(this._currentUrl=/^\//.test(this._options.path)?Rs.format(this._options):this._options.path,this._isRedirect){var r=0,a=this,o=this._requestBodyBuffers;(function c(l){if(i===a._currentRequest)if(l)a.emit("error",l);else if(r<o.length){var p=o[r++];i.finished||i.write(p.data,p.encoding,c)}else a._ended&&i.end()})()}};ee.prototype._processResponse=function(s){var e=s.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:s.headers,statusCode:e});var t=s.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){s.responseUrl=this._currentUrl,s.redirects=this._redirects,this.emit("response",s),this._requestBodyBuffers=[];return}if(Ta(this._currentRequest),s.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Wb;var i,n=this._options.beforeRedirect;n&&(i=Object.assign({Host:s.req.getHeader("host")},this._options.headers));var r=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],va(/^content-/i,this._options.headers));var a=va(/^host$/i,this._options.headers),o=Ca(this._currentUrl),c=a||o.host,l=/^\w+:/.test(t)?this._currentUrl:Rs.format(Object.assign(o,{host:c})),p=Kb(t,l);if(Xu("redirecting to",p.href),this._isRedirect=!0,ya(p,this._options),(p.protocol!==o.protocol&&p.protocol!=="https:"||p.host!==c&&!Yb(p.host,c))&&va(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),mt(n)){var u={headers:s.headers,statusCode:e},f={url:l,method:r,headers:i};n(this._options,u,f),this._sanitizeOptions(this._options)}this._performRequest()};function Ju(s){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(s).forEach(function(i){var n=i+":",r=t[n]=s[i],a=e[i]=Object.create(r);function o(l,p,u){return Jb(l)?l=ya(l):ht(l)?l=ya(Ca(l)):(u=p,p=Zu(l),l={protocol:n}),mt(p)&&(u=p,p=null),p=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},l,p),p.nativeProtocols=t,!ht(p.host)&&!ht(p.hostname)&&(p.hostname="::1"),wa.equal(p.protocol,n,"protocol mismatch"),Xu("options",p),new ee(p,u)}function c(l,p,u){var f=a.request(l,p,u);return f.end(),f}Object.defineProperties(a,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function Qu(){}function Ca(s){var e;if(Sa)e=new Os(s);else if(e=Zu(Rs.parse(s)),!ht(e.protocol))throw new ga({input:s});return e}function Kb(s,e){return Sa?new Os(s,e):Ca(Rs.resolve(e,s))}function Zu(s){if(/^\[/.test(s.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(s.hostname))throw new ga({input:s.href||s});if(/^\[/.test(s.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(s.host))throw new ga({input:s.href||s});return s}function ya(s,e){var t=e||{};for(var i of zb)t[i]=s[i];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),t.port!==""&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function va(s,e){var t;for(var i in e)s.test(i)&&(t=e[i],delete e[i]);return t===null||typeof t>"u"?void 0:String(t).trim()}function Ps(s,e,t){function i(n){mt(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=s,this.message=this.cause?e+": "+this.cause.message:e}return i.prototype=new(t||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+s+"]",enumerable:!1}}),i}function Ta(s,e){for(var t of Ea)s.removeListener(t,ka[t]);s.on("error",Qu),s.destroy(e)}function Yb(s,e){wa(ht(s)&&ht(e));var t=s.length-e.length-1;return t>0&&s[t]==="."&&s.endsWith(e)}function ht(s){return typeof s=="string"||s instanceof String}function mt(s){return typeof s=="function"}function Xb(s){return typeof s=="object"&&"length"in s}function Jb(s){return Os&&s instanceof Os}Oa.exports=Ju({http:Ub,https:Hb});Oa.exports.wrap=Ju});var sd=x((O0,td)=>{var Qb=require("http"),Zb=require("https"),As=Gu(),tn=en(),ey=ed();As=Object.keys(As).map(function(s){return As[s]});var ty={http:Qb,https:Zb};td.exports={deleteLength:function(e,t,i){(e.method==="DELETE"||e.method==="OPTIONS")&&!e.headers["content-length"]&&(e.headers["content-length"]="0",delete e.headers["transfer-encoding"])},timeout:function(e,t,i){i.timeout&&e.socket.setTimeout(i.timeout)},XHeaders:function(e,t,i){if(i.xfwd){var n=e.isSpdy||tn.hasEncryptedConnection(e),r={for:e.connection.remoteAddress||e.socket.remoteAddress,port:tn.getPort(e),proto:n?"https":"http"};["for","port","proto"].forEach(function(a){e.headers["x-forwarded-"+a]=(e.headers["x-forwarded-"+a]||"")+(e.headers["x-forwarded-"+a]?",":"")+r[a]}),e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers.host||""}},stream:function(e,t,i,n,r,a){r.emit("start",e,t,i.target||i.forward);var o=i.followRedirects?ey:ty,c=o.http,l=o.https;if(i.forward){var p=(i.forward.protocol==="https:"?l:c).request(tn.setupOutgoing(i.ssl||{},i,e,"forward")),u=h(p,i.forward);if(e.on("error",u),p.on("error",u),(i.buffer||e).pipe(p),!i.target)return t.end()}var f=(i.target.protocol==="https:"?l:c).request(tn.setupOutgoing(i.ssl||{},i,e));f.on("socket",function(d){r&&!f.getHeader("expect")&&r.emit("proxyReq",f,e,t,i)}),i.proxyTimeout&&f.setTimeout(i.proxyTimeout,function(){f.abort()}),e.on("aborted",function(){f.abort()});var m=h(f,i.target);e.on("error",m),f.on("error",m);function h(d,v){return function(g){if(e.socket.destroyed&&g.code==="ECONNRESET")return r.emit("econnreset",g,e,t,v),d.abort();a?a(g,e,t,v):r.emit("error",g,e,t,v)}}(i.buffer||e).pipe(f),f.on("response",function(d){if(r&&r.emit("proxyRes",d,e,t),!t.headersSent&&!i.selfHandleResponse)for(var v=0;v<As.length&&!As[v](e,t,d,i);v++);t.finished?r&&r.emit("end",e,t,d):(d.on("end",function(){r&&r.emit("end",e,t,d)}),i.selfHandleResponse||d.pipe(t))})}}});var nd=x((R0,id)=>{var sy=require("http"),iy=require("https"),Qt=en();id.exports={checkMethodAndHeader:function(e,t){if(e.method!=="GET"||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!=="websocket")return t.destroy(),!0},XHeaders:function(e,t,i){if(i.xfwd){var n={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Qt.getPort(e),proto:Qt.hasEncryptedConnection(e)?"wss":"ws"};["for","port","proto"].forEach(function(r){e.headers["x-forwarded-"+r]=(e.headers["x-forwarded-"+r]||"")+(e.headers["x-forwarded-"+r]?",":"")+n[r]})}},stream:function(e,t,i,n,r,a){var o=function(p,u){return Object.keys(u).reduce(function(f,m){var h=u[m];if(!Array.isArray(h))return f.push(m+": "+h),f;for(var d=0;d<h.length;d++)f.push(m+": "+h[d]);return f},[p]).join(`\r
25
+ `)+`\r
26
+ \r
27
+ `};Qt.setupSocket(t),n&&n.length&&t.unshift(n);var c=(Qt.isSSL.test(i.target.protocol)?iy:sy).request(Qt.setupOutgoing(i.ssl||{},i,e));return r&&r.emit("proxyReqWs",c,e,t,i,n),c.on("error",l),c.on("response",function(p){p.upgrade||(t.write(o("HTTP/"+p.httpVersion+" "+p.statusCode+" "+p.statusMessage,p.headers)),p.pipe(t))}),c.on("upgrade",function(p,u,f){u.on("error",l),u.on("end",function(){r.emit("close",p,u,f)}),t.on("error",function(){u.end()}),Qt.setupSocket(u),f&&f.length&&u.unshift(f),t.write(o("HTTP/1.1 101 Switching Protocols",p.headers)),u.pipe(t).pipe(u),r.emit("open",u),r.emit("proxySocket",u)}),c.end();function l(p){a?a(p,e,t):r.emit("error",p,e,t),t.end()}}}});var ud=x((P0,pd)=>{var cd=pd.exports,rd=require("util")._extend,ny=require("url").parse,ld=qu(),ry=require("http"),ay=require("https"),ad=sd(),od=nd();cd.Server=xt;function Ra(s){return function(e){return function(t,i){var n=s==="ws"?this.wsPasses:this.webPasses,r=[].slice.call(arguments),a=r.length-1,o,c;typeof r[a]=="function"&&(c=r[a],a--);var l=e;if(!(r[a]instanceof Buffer)&&r[a]!==i&&(l=rd({},e),rd(l,r[a]),a--),r[a]instanceof Buffer&&(o=r[a]),["target","forward"].forEach(function(u){typeof l[u]=="string"&&(l[u]=ny(l[u]))}),!l.target&&!l.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var p=0;p<n.length&&!n[p](t,i,l,o,this,c);p++);}}}cd.createRightProxy=Ra;function xt(s){ld.call(this),s=s||{},s.prependPath=s.prependPath!==!1,this.web=this.proxyRequest=Ra("web")(s),this.ws=this.proxyWebsocketRequest=Ra("ws")(s),this.options=s,this.webPasses=Object.keys(ad).map(function(e){return ad[e]}),this.wsPasses=Object.keys(od).map(function(e){return od[e]}),this.on("error",this.onError,this)}require("util").inherits(xt,ld);xt.prototype.onError=function(s){if(this.listeners("error").length===1)throw s};xt.prototype.listen=function(s,e){var t=this,i=function(n,r){t.web(n,r)};return this._server=this.options.ssl?ay.createServer(this.options.ssl,i):ry.createServer(i),this.options.ws&&this._server.on("upgrade",function(n,r,a){t.ws(n,r,a)}),this._server.listen(s,e),this};xt.prototype.close=function(s){var e=this;this._server&&this._server.close(t);function t(){e._server=null,s&&s.apply(null,arguments)}};xt.prototype.before=function(s,e,t){if(s!=="ws"&&s!=="web")throw new Error("type must be `web` or `ws`");var i=s==="ws"?this.wsPasses:this.webPasses,n=!1;if(i.forEach(function(r,a){r.name===e&&(n=a)}),n===!1)throw new Error("No such pass");i.splice(n,0,t)};xt.prototype.after=function(s,e,t){if(s!=="ws"&&s!=="web")throw new Error("type must be `web` or `ws`");var i=s==="ws"?this.wsPasses:this.webPasses,n=!1;if(i.forEach(function(r,a){r.name===e&&(n=a)}),n===!1)throw new Error("No such pass");i.splice(n++,0,t)}});var fd=x((A0,dd)=>{var Ns=ud().Server;function Pa(s){return new Ns(s)}Ns.createProxyServer=Pa;Ns.createServer=Pa;Ns.createProxy=Pa;dd.exports=Ns});var md=x((N0,hd)=>{hd.exports=fd()});var Md=require("http"),qd=require("url"),nn=F(require("path"),1),Fd=require("url"),Ud=require("child_process");var du=F(uu(),1),{Server:fu,Namespace:c0,Socket:l0}=du.default;var Pu=F(require("node-pty-prebuilt-multiarch"),1),Ji=F(require("os"),1);var Ye=null;function Tb(){return process.env.CODESPACES==="true"||process.env.GITPOD_WORKSPACE_ID||process.platform==="linux"&&!process.env.DISPLAY}async function Tu(){if(Ye!==null)return Ye;if(Tb())return Ye=!1,console.log("\u2139\uFE0F Remote desktop not available (headless environment)"),Ye;try{let s=await import("@hurdlegroup/robotjs");(s.default||s).getScreenSize(),Ye=!0}catch{Ye=!1,console.log("\u2139\uFE0F Remote desktop not available (no display or robotjs not installed)")}return Ye}function Ou(){return Ye===!0}async function Ru(s){let e=null,t=null,i=null,n=null,r=null,a=null,o=null,c=async()=>{if(e)return!0;try{let d=await import("@hurdlegroup/robotjs");e=d.default||d;let{TileManager:v}=await Promise.resolve().then(()=>(xu(),mu)),{ResourceManager:b}=await Promise.resolve().then(()=>(gu(),vu)),{ScreenUpdateHelper:g}=await Promise.resolve().then(()=>(yu(),bu)),{MouseHandler:A}=await Promise.resolve().then(()=>(wu(),_u)),{KeyboardHandler:k}=await Promise.resolve().then(()=>(Eu(),Su)),{ScreenHandler:U}=await Promise.resolve().then(()=>(Cu(),ku));return t=v,i=b,n=g,r=A,a=k,o=U,e.setMouseDelay(2),e.setKeyboardDelay(2),!0}catch(d){return console.error("\u274C Failed to load remote modules:",d.message),!1}},l=s.of("/remote"),p=null,u=null,f=null,m=null,h=null;l.on("connection",async d=>{let v=d.handshake.auth?.apiKey;if(!v){console.log("\u274C Remote connection rejected: no apiKey"),d.disconnect();return}if(console.log("\u{1F5A5}\uFE0F Remote client connected:",d.id),!await c()){d.emit("error",{message:"Remote desktop not available"}),d.disconnect();return}p||(p=new i,u=new n(p),f=new r(e,p),m=new a(e,p),h=new o(p,u),p.startResourceMonitoring()),d.isAuthenticated=!0;let g=new t(e);p.addClient(d.id,{tileManager:g,screenInterval:null,authenticated:!0,apiKey:v});let A=k=>k;f.setupMouseHandlers(d,A),m.setupKeyboardHandlers(d,A),h.setupScreenHandlers(d,A),d.on("disconnect",()=>{console.log("\u{1F5A5}\uFE0F Remote client disconnected:",d.id),p.removeClient(d.id)})})}var Ee=new Map,Xi=0,Ss=null,Ob=6e4;function fa(){return process.env.CODESPACES==="true"}function Rb(){return fa()?{isCodespaces:!0,codespaceName:process.env.CODESPACE_NAME||"unknown"}:null}function Pb(){Ss||(Ss=setInterval(()=>{process.memoryUsage()},Ob))}function Ab(){Ss&&(console.log("\u23F8\uFE0F Stopping Codespaces heartbeat"),clearInterval(Ss),Ss=null)}function Au(){return process.platform==="win32"?process.env.COMSPEC||"powershell.exe":process.env.SHELL||"/bin/zsh"}function Nb(){let s=Ji.default.homedir(),e=Ji.default.userInfo().username,t=Au(),i={...process.env};return Object.assign(i,{HOME:s,USER:e,LOGNAME:e,SHELL:t,TERM:"xterm-256color",COLORTERM:"truecolor",LANG:"en_US.UTF-8",LC_ALL:"en_US.UTF-8",LC_CTYPE:"en_US.UTF-8",PWD:s,OLDPWD:s,TMPDIR:i.TMPDIR||"/tmp",__CF_USER_TEXT_ENCODING:i.__CF_USER_TEXT_ENCODING,XPC_FLAGS:i.XPC_FLAGS,XPC_SERVICE_NAME:i.XPC_SERVICE_NAME,SSH_AUTH_SOCK:i.SSH_AUTH_SOCK,TERM_PROGRAM:"9Remote",TERM_PROGRAM_VERSION:"1.0.0",ITERM_SESSION_ID:`9remote-${Date.now()}`,SHLVL:"1"}),i}function Nu(s){s.on("connection",e=>{console.log(`\u{1F4DF} Terminal client connected: ${e.id}`),Xi++,fa()&&Xi===1&&Pb(),e.emit("serverInfo",{remoteAvailable:Ou(),...Rb()}),e.on("getSessions",t=>{let i=[];for(let[n,r]of Ee)i.push({id:n,name:r.name,createdAt:r.createdAt});t(i)}),e.on("createSession",({name:t},i)=>{let n=`session-${Date.now()}`,r=Au(),a=Nb();try{let o=Pu.default.spawn(r,["-l"],{name:"xterm-256color",cols:80,rows:24,cwd:Ji.default.homedir(),env:a,useConpty:!1}),c={pty:o,name:t||`Terminal ${Ee.size+1}`,createdAt:Date.now(),buffer:[]},l=50*1024;o.onData(p=>{c.buffer.push(p);let u=c.buffer.reduce((f,m)=>f+m.length,0);for(;u>l&&c.buffer.length>1;){let f=c.buffer.shift();u-=f.length}s.emit("output",{sessionId:n,data:Buffer.from(p,"utf-8")})}),Ee.set(n,c),console.log(`PTY created: sessionId=${n}, name=${t}`),o.onExit(({exitCode:p})=>{console.log(`PTY exited: sessionId=${n}, code=${p}`),Ee.delete(n),s.emit("sessionClosed",n)}),i({success:!0,sessionId:n})}catch(o){console.error("Failed to create session:",o),i({success:!1,error:o.message})}}),e.on("joinSession",(t,i)=>{let n=Ee.get(t);if(!n){i({success:!1,error:"Session not found"});return}if(n.buffer&&n.buffer.length>0){let r=n.buffer.join("");e.emit("output",{sessionId:t,data:Buffer.from(r,"utf-8")})}i({success:!0,name:n.name})}),e.on("input",({sessionId:t,data:i})=>{if(!t)return;let n=Ee.get(t);if(n){let r=Buffer.isBuffer(i)?i.toString("utf-8"):i;n.pty.write(r)}}),e.on("resize",({sessionId:t,cols:i,rows:n})=>{if(!t)return;let r=Ee.get(t);r&&r.pty.resize(i,n)}),e.on("deleteSession",(t,i)=>{let n=Ee.get(t);n?(n.pty.kill(),Ee.delete(t),i({success:!0})):i({success:!1,error:"Session not found"})}),e.on("renameSession",({sessionId:t,name:i},n)=>{let r=Ee.get(t);r?(r.name=i,n({success:!0})):n({success:!1,error:"Session not found"})}),e.on("disconnect",()=>{console.log(`\u{1F4DF} Terminal client disconnected: ${e.id}`),Xi--,fa()&&Xi===0&&Ab()})})}var w=F(require("fs"),1),De=F(require("path"),1),Es=F(require("os"),1),Xe=require("child_process");var Lu=["node_modules",".git","dist","build",".next","coverage","__pycache__",".cache",".vscode",".idea",".turbo",".vercel",".output"],ju=[".png",".jpg",".jpeg",".gif",".webp",".ico",".svg",".bmp",".pdf",".zip",".tar",".gz",".rar",".7z",".exe",".dll",".so",".dylib",".mp3",".mp4",".wav",".avi",".mov",".webm",".woff",".woff2",".ttf",".eot",".otf",".sqlite",".db"];function Bu(s){return Lu.includes(s)}function ks(s){let e=De.default.extname(s).toLowerCase();return ju.includes(e)}function Lb(s,e){return s.isDirectory()?"folder":ks(e)?"binary":"file"}function Qi(s){return s<1024?`${s}B`:s<1024*1024?`${(s/1024).toFixed(1)}KB`:`${(s/(1024*1024)).toFixed(1)}MB`}function Iu(s,e,t,i=50){if(!(t.length>=i))try{let n=w.default.readdirSync(s);for(let r of n){if(t.length>=i)return;if(r.startsWith(".")||Bu(r))continue;let a=De.default.join(s,r);try{let o=w.default.statSync(a);o.isDirectory()?Iu(a,e,t,i):r.toLowerCase().includes(e.toLowerCase())&&t.push({name:r,path:a,type:ks(r)?"binary":"file",size:o.size,sizeFormatted:Qi(o.size)})}catch{}}}catch{}}function Du(s){s.on("connection",e=>{e.on("getFiles",({dirPath:t},i)=>{try{let n=t||Es.default.homedir(),r=t?.startsWith("~")?t.replace("~",Es.default.homedir()):n;if(!w.default.existsSync(r)){i({success:!1,error:"Directory not found"});return}let a=w.default.readdirSync(r),o=[];for(let c of a)if(!(c.startsWith(".")&&c!==".env"&&c!==".env.example")&&!Bu(c))try{let l=De.default.join(r,c),p=w.default.statSync(l);o.push({name:c,path:l,type:Lb(p,c),size:p.isFile()?p.size:null,sizeFormatted:p.isFile()?Qi(p.size):null,modified:p.mtime.getTime()})}catch{}o.sort((c,l)=>c.type==="folder"&&l.type!=="folder"?-1:c.type!=="folder"&&l.type==="folder"?1:c.name.localeCompare(l.name)),i({success:!0,files:o,currentPath:r,parentPath:De.default.dirname(r)})}catch(n){i({success:!1,error:n.message})}}),e.on("searchFiles",({workspace:t,query:i},n)=>{try{if(!i||i.length<2){n({success:!0,files:[]});return}let r=t?.startsWith("~")?t.replace("~",Es.default.homedir()):t||Es.default.homedir();if(!w.default.existsSync(r)){n({success:!1,error:"Workspace not found"});return}let a=[];Iu(r,i,a,50),a.sort((o,c)=>{let l=o.name.toLowerCase()===i.toLowerCase(),p=c.name.toLowerCase()===i.toLowerCase();return l&&!p?-1:!l&&p?1:o.path.length-c.path.length}),n({success:!0,files:a})}catch(r){n({success:!1,error:r.message})}}),e.on("readFile",({filePath:t},i)=>{try{if(!w.default.existsSync(t)){i({success:!1,error:"File not found"});return}let n=w.default.statSync(t);if(n.size>204800){i({success:!1,error:`File too large (${Qi(n.size)}). Max ${Qi(204800)}`});return}if(ks(t)){i({success:!1,error:"Cannot open binary file"});return}let r=w.default.readFileSync(t,"utf-8");i({success:!0,content:r})}catch(n){i({success:!1,error:n.message})}}),e.on("writeFile",({filePath:t,content:i},n)=>{try{w.default.writeFileSync(t,i,"utf-8"),n({success:!0})}catch(r){n({success:!1,error:r.message})}}),e.on("createItem",({itemPath:t,type:i},n)=>{try{if(w.default.existsSync(t)){n({success:!1,error:"Item already exists"});return}i==="folder"?w.default.mkdirSync(t,{recursive:!0}):w.default.writeFileSync(t,"","utf-8"),n({success:!0})}catch(r){n({success:!1,error:r.message})}}),e.on("deleteItem",({itemPath:t},i)=>{try{if(!w.default.existsSync(t)){i({success:!1,error:"Item not found"});return}w.default.statSync(t).isDirectory()?w.default.rmSync(t,{recursive:!0}):w.default.unlinkSync(t),i({success:!0})}catch(n){i({success:!1,error:n.message})}}),e.on("renameItem",({oldPath:t,newPath:i},n)=>{try{if(!w.default.existsSync(t)){n({success:!1,error:"Item not found"});return}if(w.default.existsSync(i)){n({success:!1,error:"Target already exists"});return}w.default.renameSync(t,i),n({success:!0})}catch(r){n({success:!1,error:r.message})}}),e.on("gitStatus",({repoPath:t},i)=>{try{let r=(0,Xe.execSync)("git status --porcelain",{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().split(`
28
+ `).filter(Boolean),a=[],o={};try{(0,Xe.execSync)("git diff HEAD --numstat",{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().split(`
29
+ `).filter(Boolean).forEach(l=>{let p=l.split(" ");if(p.length>=3){let u=p[0]==="-"?0:parseInt(p[0],10)||0,f=p[1]==="-"?0:parseInt(p[1],10)||0;o[p[2]]={added:u,deleted:f}}})}catch{}for(let c of r){let l=c.match(/^([MADRCU?! ]{1,2})\s+(.+)$/);if(!l)continue;let p=l[1],u=l[2];if(!u)continue;let f;p.includes("?")?f="?":p.includes("A")?f="A":p.includes("D")?f="D":p.includes("M")?f="M":p.includes("R")?f="R":f=p.trim()[0]||"?";let m=o[u]||{added:0,deleted:0};if(f==="?")try{let h=De.default.join(t,u);if(w.default.existsSync(h)&&!ks(u)){let d=w.default.readFileSync(h,"utf-8");m.added=d.split(`
30
+ `).length,m.deleted=0}}catch{}a.push({status:f,path:u,added:m.added,deleted:m.deleted})}i({success:!0,files:a})}catch{i({success:!1,error:"Not a git repository or git not available"})}}),e.on("gitDiff",({repoPath:t,file:i,status:n},r)=>{try{let a="";if(i&&n==="?"){let o=De.default.join(t,i);if(w.default.existsSync(o)){let l=w.default.readFileSync(o,"utf-8").split(`
31
+ `);a=`diff --git a/${i} b/${i}
32
+ new file mode 100644
33
+ --- /dev/null
34
+ +++ b/${i}
35
+ @@ -0,0 +1,${l.length} @@
36
+ ${l.map(p=>`+${p}`).join(`
37
+ `)}`}}else if(i){let o=`git diff HEAD -- "${i}"`;a=(0,Xe.execSync)(o,{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]})}else{a=(0,Xe.execSync)("git diff HEAD",{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]});let c=(0,Xe.execSync)("git status --porcelain",{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().split(`
38
+ `).filter(l=>l.startsWith("??")).map(l=>l.substring(3));for(let l of c){let p=De.default.join(t,l);if(w.default.existsSync(p)&&!ks(l))try{if(w.default.statSync(p).size<=204800){let m=w.default.readFileSync(p,"utf-8").split(`
39
+ `);a+=`
40
+ diff --git a/${l} b/${l}
41
+ new file mode 100644
42
+ --- /dev/null
43
+ +++ b/${l}
44
+ @@ -0,0 +1,${m.length} @@
45
+ ${m.map(h=>`+${h}`).join(`
46
+ `)}`}}catch{}}}r({success:!0,diff:a})}catch(a){r({success:!1,error:a.message})}}),e.on("gitDiscard",({repoPath:t,file:i,status:n},r)=>{try{if(!i){r({success:!1,error:"No file specified"});return}let a=De.default.join(t,i);n==="?"?w.default.existsSync(a)&&(w.default.statSync(a).isDirectory()?w.default.rmSync(a,{recursive:!0}):w.default.unlinkSync(a)):n==="A"?((0,Xe.execSync)(`git reset HEAD -- "${i}"`,{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]}),w.default.existsSync(a)&&w.default.unlinkSync(a)):(0,Xe.execSync)(`git checkout HEAD -- "${i}"`,{cwd:t,encoding:"utf-8",stdio:["pipe","pipe","pipe"]}),r({success:!0})}catch(a){r({success:!1,error:a.message})}})})}var Zt=require("zlib"),bd=F(md(),1);var oy=["data:","javascript:","#","mailto:","blob:"],cy=["href","src","action","srcset","poster","data","formaction","data-src","data-href","data-url","data-background"];function sn(s,e){return!s||oy.some(t=>s.startsWith(t))||s.startsWith("/proxy/")?s:s.startsWith(`http://localhost:${e}`)?s.replace(`http://localhost:${e}`,`/proxy/${e}`):s.startsWith("/")&&!s.startsWith("//")?`/proxy/${e}${s}`:s}function xd(s,e){let t=`/proxy/${e}`,i=new RegExp(`(${cy.join("|")})=(["'])([^"']*?)\\2`,"gi");return s=s.replace(i,(n,r,a,o)=>{if(r.toLowerCase()==="srcset"){let c=o.split(",").map(l=>{let[p,...u]=l.trim().split(/\s+/),f=sn(p,e);return u.length?`${f} ${u.join(" ")}`:f}).join(", ");return`${r}=${a}${c}${a}`}return`${r}=${a}${sn(o,e)}${a}`}),s=s.replace(/url\(\s*(["']?)(\/_next\/[^)"']+)\1\s*\)/gi,(n,r,a)=>`url(${r}${t}${a}${r})`),s=s.replace(/"(\/_next\/[^"]+)"/g,(n,r)=>`"${t}${r}"`),s}function vd(s){let e=`/proxy/${s}`;return`
47
+ // Service Worker for 9Remote Proxy - Port ${s}
48
+ const PROXY_BASE = '${e}';
49
+ const TARGET_PORT = ${s};
50
+
51
+ self.addEventListener('install', (event) => {
52
+ self.skipWaiting();
53
+ });
54
+
55
+ self.addEventListener('activate', (event) => {
56
+ event.waitUntil(clients.claim());
57
+ });
58
+
59
+ self.addEventListener('fetch', (event) => {
60
+ const url = new URL(event.request.url);
61
+
62
+ // Only intercept same-origin requests
63
+ if (url.origin !== location.origin) {
64
+ return;
65
+ }
66
+
67
+ // Skip if already has proxy prefix
68
+ if (url.pathname.startsWith(PROXY_BASE)) {
69
+ return;
70
+ }
71
+
72
+ // Skip service worker and socket.io requests
73
+ if (url.pathname.includes('/sw.js') || url.pathname.includes('socket.io')) {
74
+ return;
75
+ }
76
+
77
+ // Rewrite URL to include proxy prefix
78
+ const newUrl = new URL(url);
79
+ newUrl.pathname = PROXY_BASE + url.pathname;
80
+
81
+ // Build request init object
82
+ const requestInit = {
83
+ method: event.request.method,
84
+ headers: event.request.headers,
85
+ mode: event.request.mode,
86
+ credentials: event.request.credentials,
87
+ cache: event.request.cache,
88
+ redirect: event.request.redirect,
89
+ referrer: event.request.referrer,
90
+ integrity: event.request.integrity
91
+ };
92
+
93
+ // Add body and duplex for POST/PUT/PATCH requests
94
+ if (event.request.body) {
95
+ requestInit.body = event.request.body;
96
+ requestInit.duplex = 'half';
97
+ }
98
+
99
+ event.respondWith(fetch(new Request(newUrl, requestInit)));
100
+ });
101
+ `}function gd(s){return`
102
+ <script data-proxy-injected="true">
103
+ (function() {
104
+ if (window.__proxySwRegistered) return;
105
+ window.__proxySwRegistered = true;
106
+
107
+ const proxyBase = '${`/proxy/${s}`}';
108
+ const swUrl = proxyBase + '/sw.js';
109
+
110
+ if ('serviceWorker' in navigator) {
111
+ // Only unregister SWs outside of this proxy scope
112
+ navigator.serviceWorker.getRegistrations().then(function(registrations) {
113
+ return Promise.all(registrations.filter(function(reg) {
114
+ // Only unregister if it's a different proxy port or root scope
115
+ return !reg.scope.includes(proxyBase);
116
+ }).map(function(reg) {
117
+ return reg.unregister();
118
+ }));
119
+ }).then(function() {
120
+ return navigator.serviceWorker.register(swUrl, { scope: proxyBase + '/' });
121
+ }).then(function(reg) {
122
+ // If SW is not controlling this page yet, wait and reload
123
+ if (!navigator.serviceWorker.controller) {
124
+ // Wait for SW to become active
125
+ var worker = reg.installing || reg.waiting || reg.active;
126
+ if (worker) {
127
+ if (worker.state === 'activated') {
128
+ window.location.reload();
129
+ } else {
130
+ worker.addEventListener('statechange', function() {
131
+ if (worker.state === 'activated') {
132
+ window.location.reload();
133
+ }
134
+ });
135
+ }
136
+ }
137
+ }
138
+ }).catch(function(err) {
139
+ console.error('[9Remote] SW registration failed:', err);
140
+ });
141
+ }
142
+ })();
143
+ </script>`}var Aa=new Set;function yd(s){Aa.add(String(s))}function _d(s){Aa.delete(String(s))}function ly(s){return Aa.has(String(s))}function py(s){switch(s){case"gzip":return(0,Zt.createGunzip)();case"deflate":return(0,Zt.createInflate)();case"br":return(0,Zt.createBrotliDecompress)();default:return null}}function uy(s,e){if(s.includes("<head>"))return s.replace("<head>","<head>"+e);if(s.includes("<HEAD>"))return s.replace("<HEAD>","<HEAD>"+e);let t=s.match(/<head[^>]*>/i);return t?s.replace(t[0],t[0]+e):e+s}function wd(){let s=bd.default.createProxyServer({selfHandleResponse:!0});return s.on("proxyRes",(e,t,i)=>{let n=t._proxyTargetPort,r=e.headers["content-type"]||"",a=e.headers["content-encoding"]||"",o=r.includes("text/html"),c={...e.headers};if(c.location&&(c.location=sn(c.location,n)),r.includes("application/json")||r.includes("text/x-component")){i.writeHead(e.statusCode,c),e.pipe(i);return}if(r.includes("javascript")||r.includes("text/javascript")){i.writeHead(e.statusCode,c),e.pipe(i);return}if(!o){i.writeHead(e.statusCode,c),e.pipe(i);return}delete c["content-length"],delete c["content-encoding"];let u=py(a),f=u?e.pipe(u):e,m=[];f.on("data",h=>m.push(h)),f.on("error",h=>{console.error("[Proxy] Decompress error:",h.message),i.writeHead(502),i.end("Bad Gateway: Decompression failed")}),f.on("end",()=>{let h=Buffer.concat(m).toString("utf8");h=xd(h,n);let d=gd(n);h=uy(h,d),i.writeHead(e.statusCode,c),i.end(h)})}),s}function Sd(s,e,t,i,n,r){if(n==="/sw.js"){let a=vd(i);t.writeHead(200,{"Content-Type":"application/javascript; charset=utf-8","Service-Worker-Allowed":"/","Cache-Control":"no-store, no-cache, must-revalidate"}),t.end(a);return}if(!ly(i)){t.writeHead(401,{"Content-Type":"text/html"}),t.end(`
144
+ <!DOCTYPE html>
145
+ <html>
146
+ <head><title>Unauthorized</title></head>
147
+ <body style="font-family: system-ui; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #1e293b; color: #94a3b8;">
148
+ <div style="text-align: center;">
149
+ <h1 style="color: #f87171;">401 Unauthorized</h1>
150
+ <p>Please open site through 9Remote first.</p>
151
+ </div>
152
+ </body>
153
+ </html>
154
+ `);return}e._proxyTargetPort=i,e.url=n+(r||""),s.web(e,t,{target:`http://localhost:${i}`,changeOrigin:!0},a=>{console.error(`[Proxy] Error for port ${i}:`,a.message),t.writeHead(502),t.end(`Bad Gateway: ${a.message}`)})}var Cd=F(require("http"),1),Td=F(require("https"),1),Od=require("child_process"),Rd=require("util"),dy=(0,Rd.promisify)(Od.exec);async function fy(){let s=process.platform,e=new Set([80,443]);try{let t;s==="win32"?t="netstat -ano | findstr LISTENING":t="lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null || netstat -tlnp 2>/dev/null";let{stdout:i}=await dy(t),n=i.split(`
155
+ `);for(let r of n){let a=r.match(/[:\*\]](\d{2,5})(?:\s|$)/g);if(a)for(let o of a){let c=parseInt(o.replace(/[:\*\]\s]/g,""),10);c>0&&c<=65535&&(c===80||c===443||c>=1024)&&e.add(c)}}return Array.from(e)}catch(t){return console.error("Failed to get listening ports:",t.message),[80,443,3e3,3001,4200,5e3,5173,8e3,8080,9e3]}}function Ed(s,e=2e3){return new Promise(t=>{let i=Cd.default.request({host:"localhost",port:s,method:"GET",path:"/",timeout:e},n=>{n.on("data",()=>{}),n.on("end",()=>{}),t({active:!0,protocol:"http",status:n.statusCode})});i.on("error",n=>{t({active:!1,error:n.message})}),i.on("timeout",()=>{i.destroy(),t({active:!1,error:"timeout"})}),i.end()})}function kd(s,e=2e3){return new Promise(t=>{let i=Td.default.request({host:"localhost",port:s,method:"GET",path:"/",timeout:e,rejectUnauthorized:!1},n=>{n.on("data",()=>{}),n.on("end",()=>{}),t({active:!0,protocol:"https",status:n.statusCode})});i.on("error",n=>{t({active:!1,error:n.message})}),i.on("timeout",()=>{i.destroy(),t({active:!1,error:"timeout"})}),i.end()})}async function hy(s){if([443,8443,9443].includes(s)){let t=await kd(s);if(t.active)return{port:s,...t};let i=await Ed(s);if(i.active)return{port:s,...i}}else{let t=await Ed(s);if(t.active)return{port:s,...t};let i=await kd(s);if(i.active)return{port:s,...i}}return{port:s,active:!1}}async function Pd(){let s=await fy();return(await Promise.all(s.map(t=>hy(t)))).filter(t=>t.active).map(t=>({port:t.port,protocol:t.protocol,url:`${t.protocol}://localhost:${t.port}`,name:`localhost:${t.port}`,status:t.status})).sort((t,i)=>t.port-i.port)}var Ad=F(require("crypto"),1),my=process.env.API_KEY_SECRET||"9remote-api-key-secret";function xy(s,e){return Ad.default.createHmac("sha256",my).update(s+e).digest("hex").slice(0,8)}function vy(s){if(!s||!s.startsWith("sk-"))return null;let e=s.split("-");if(e.length===4){let[,t,i,n]=e,r=xy(t,i);return n!==r?null:{machineId:t,keyId:i}}return null}function Nd(s){return vy(s)!==null}async function Ld(s,e){let t=s.headers.authorization;if(!t||!t.startsWith("Bearer ")){e.setHeader("Content-Type","application/json"),e.writeHead(401),e.end(JSON.stringify({error:"Unauthorized: Missing API key"}));return}let i=t.slice(7);if(!Nd(i)){e.setHeader("Content-Type","application/json"),e.writeHead(401),e.end(JSON.stringify({error:"Unauthorized: Invalid API key"}));return}let n=await Pd();e.setHeader("Content-Type","application/json"),e.writeHead(200),e.end(JSON.stringify(n))}function jd(s){s.setHeader("Access-Control-Allow-Origin","*"),s.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, OPTIONS"),s.setHeader("Access-Control-Allow-Headers","*"),s.setHeader("Access-Control-Allow-Credentials","true")}function Bd(s,e){return s.method==="OPTIONS"?(e.writeHead(200),e.end(),!0):!1}var Id=nn.default.dirname((0,Fd.fileURLToPath)(__importMetaUrl)),Dd=parseInt(process.env.PORT||"2208",10);function gy(){let s=nn.default.resolve(Id,"standalone"),e=nn.default.resolve(Id,"../../dist/standalone"),t=require("fs");if(t.existsSync(s))return s;if(t.existsSync(e))return e;throw new Error(`Standalone not found at ${s} or ${e}`)}function by(){return process.env.CODESPACES==="true"}async function yy(s,e){if(s.method!=="POST"){e.writeHead(405),e.end(JSON.stringify({error:"Method not allowed"}));return}if(!by()){e.writeHead(400),e.end(JSON.stringify({error:"Not running on Codespaces"}));return}let t=process.env.CODESPACE_NAME;if(!t){e.writeHead(400),e.end(JSON.stringify({error:"Codespace name not found"}));return}e.setHeader("Content-Type","application/json"),e.writeHead(200),e.end(JSON.stringify({success:!0,message:"Stopping codespace..."})),setTimeout(()=>{(0,Ud.exec)(`gh codespace stop -c ${t}`,i=>{i&&console.error("Failed to stop codespace:",i)})},500)}function _y(s){let e=new fu(s,{cors:{origin:"*",methods:["GET","POST"],credentials:!0,allowedHeaders:["*"]},transports:["websocket","polling"],allowEIO3:!0,allowUpgrades:!0,pingTimeout:6e4,pingInterval:25e3});return Tu(),Nu(e),Ru(e),Du(e),e}async function wy(){let s=gy();process.env.NODE_ENV="production",process.chdir(s);let t=(await import("next")).default({dev:!1,dir:s,conf:{distDir:".next"}});await t.prepare();let i=t.getRequestHandler(),n=wd(),r=(0,Md.createServer)(async(a,o)=>{if(jd(o),!Bd(a,o))try{let c=(0,qd.parse)(a.url,!0),{pathname:l,search:p}=c;if(l==="/api/health"){o.setHeader("Content-Type","application/json"),o.writeHead(200),o.end(JSON.stringify({status:"ok",timestamp:Date.now()}));return}if(l==="/api/local-sites"){await Ld(a,o);return}if(l==="/api/codespace/stop"){await yy(a,o);return}if(l==="/api/proxy/start"&&a.method==="POST"){let u="";a.on("data",f=>u+=f),a.on("end",()=>{let{port:f}=JSON.parse(u||"{}");f?(yd(f),o.setHeader("Content-Type","application/json"),o.writeHead(200),o.end(JSON.stringify({success:!0}))):(o.writeHead(400),o.end(JSON.stringify({error:"Port required"})))});return}if(l==="/api/proxy/end"&&a.method==="POST"){let u="";a.on("data",f=>u+=f),a.on("end",()=>{let{port:f}=JSON.parse(u||"{}");f?(_d(f),o.setHeader("Content-Type","application/json"),o.writeHead(200),o.end(JSON.stringify({success:!0}))):(o.writeHead(400),o.end(JSON.stringify({error:"Port required"})))});return}if(l.startsWith("/proxy/")){let u=l.match(/^\/proxy\/(\d+)(\/.*)?$/);if(u){Sd(n,a,o,u[1],u[2]||"/",p);return}}await i(a,o,c)}catch(c){console.error("Error:",a.url,c),o.statusCode=500,o.end("Internal server error")}});_y(r),r.listen(Dd,()=>{console.log(`\u2705 Ready on http://localhost:${Dd}`)})}wy().catch(s=>{console.error("Failed to start server:",s),process.exit(1)});
156
+ /*! Bundled license information:
157
+
158
+ negotiator/index.js:
159
+ (*!
160
+ * negotiator
161
+ * Copyright(c) 2012 Federico Romero
162
+ * Copyright(c) 2012-2014 Isaac Z. Schlueter
163
+ * Copyright(c) 2015 Douglas Christopher Wilson
164
+ * MIT Licensed
165
+ *)
166
+
167
+ mime-db/index.js:
168
+ (*!
169
+ * mime-db
170
+ * Copyright(c) 2014 Jonathan Ong
171
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
172
+ * MIT Licensed
173
+ *)
174
+
175
+ mime-types/index.js:
176
+ (*!
177
+ * mime-types
178
+ * Copyright(c) 2014 Jonathan Ong
179
+ * Copyright(c) 2015 Douglas Christopher Wilson
180
+ * MIT Licensed
181
+ *)
182
+
183
+ accepts/index.js:
184
+ (*!
185
+ * accepts
186
+ * Copyright(c) 2014 Jonathan Ong
187
+ * Copyright(c) 2015 Douglas Christopher Wilson
188
+ * MIT Licensed
189
+ *)
190
+
191
+ base64id/lib/base64id.js:
192
+ (*!
193
+ * base64id v0.1.0
194
+ *)
195
+
196
+ engine.io/build/parser-v3/utf8.js:
197
+ (*! https://mths.be/utf8js v2.1.2 by @mathias *)
198
+
199
+ cookie/index.js:
200
+ (*!
201
+ * cookie
202
+ * Copyright(c) 2012-2014 Roman Shtylman
203
+ * Copyright(c) 2015 Douglas Christopher Wilson
204
+ * MIT Licensed
205
+ *)
206
+
207
+ object-assign/index.js:
208
+ (*
209
+ object-assign
210
+ (c) Sindre Sorhus
211
+ @license MIT
212
+ *)
213
+
214
+ vary/index.js:
215
+ (*!
216
+ * vary
217
+ * Copyright(c) 2014-2017 Douglas Christopher Wilson
218
+ * MIT Licensed
219
+ *)
220
+
221
+ http-proxy/lib/http-proxy/passes/web-outgoing.js:
222
+ http-proxy/lib/http-proxy/passes/web-incoming.js:
223
+ (*!
224
+ * Array of passes.
225
+ *
226
+ * A `pass` is just a function that is executed on `req, res, options`
227
+ * so that you can easily add new checks while still keeping the base
228
+ * flexible.
229
+ *)
230
+
231
+ http-proxy/lib/http-proxy/passes/ws-incoming.js:
232
+ (*!
233
+ * Array of passes.
234
+ *
235
+ * A `pass` is just a function that is executed on `req, socket, options`
236
+ * so that you can easily add new checks while still keeping the base
237
+ * flexible.
238
+ *)
239
+
240
+ http-proxy/index.js:
241
+ (*!
242
+ * Caron dimonio, con occhi di bragia
243
+ * loro accennando, tutte le raccoglie;
244
+ * batte col remo qualunque s’adagia
245
+ *
246
+ * Charon the demon, with the eyes of glede,
247
+ * Beckoning to them, collects them all together,
248
+ * Beats with his oar whoever lags behind
249
+ *
250
+ * Dante - The Divine Comedy (Canto III)
251
+ *)
252
+ */