@automattic/vip 4.1.3 → 4.1.5

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 (854) hide show
  1. package/.buildkite/build-macos-installer.sh +34 -0
  2. package/.buildkite/build-macos.sh +2 -3
  3. package/.buildkite/build-windows-installer.ps1 +65 -0
  4. package/.buildkite/build-windows.ps1 +2 -18
  5. package/.buildkite/pipeline.yml +32 -0
  6. package/.buildkite/sign-windows.ps1 +21 -0
  7. package/.buildkite/test-windows-installer-download.ps1 +54 -0
  8. package/.buildkite/test_pipeline.py +69 -0
  9. package/Gemfile.lock +44 -41
  10. package/cmd/installer-payload/main.go +19 -0
  11. package/cmd/installer-version/main.go +22 -0
  12. package/cmd/vip-next/commands/app_debug_test.go +89 -0
  13. package/cmd/vip-next/commands/app_deploy.go +4 -0
  14. package/cmd/vip-next/commands/app_deploy_validate.go +2 -0
  15. package/cmd/vip-next/commands/config_debug_test.go +137 -0
  16. package/cmd/vip-next/commands/config_envvar_delete.go +2 -0
  17. package/cmd/vip-next/commands/config_envvar_get.go +2 -0
  18. package/cmd/vip-next/commands/config_envvar_get_all.go +2 -0
  19. package/cmd/vip-next/commands/config_envvar_list.go +2 -0
  20. package/cmd/vip-next/commands/config_envvar_set.go +2 -0
  21. package/cmd/vip-next/commands/config_software_update.go +12 -1
  22. package/cmd/vip-next/commands/devenv.go +1 -0
  23. package/cmd/vip-next/commands/devenv_create_test.go +5 -5
  24. package/cmd/vip-next/commands/devenv_debug_test.go +34 -0
  25. package/cmd/vip-next/commands/devenv_envvar.go +12 -0
  26. package/cmd/vip-next/commands/devenv_lifecycle.go +37 -11
  27. package/cmd/vip-next/commands/devenv_resolve.go +15 -3
  28. package/cmd/vip-next/commands/devenv_telemetry.go +265 -0
  29. package/cmd/vip-next/commands/devenv_telemetry_test.go +322 -0
  30. package/cmd/vip-next/commands/devenv_update.go +1 -1
  31. package/cmd/vip-next/commands/devenv_update_test.go +28 -2
  32. package/cmd/vip-next/commands/import_debug_test.go +110 -0
  33. package/cmd/vip-next/commands/import_media.go +4 -0
  34. package/cmd/vip-next/commands/import_sql.go +9 -1
  35. package/cmd/vip-next/commands/logout.go +1 -1
  36. package/cmd/vip-next/commands/searchreplace.go +3 -1
  37. package/cmd/vip-next/commands/searchreplace_debug_test.go +82 -0
  38. package/cmd/vip-next/commands/whoami.go +10 -1
  39. package/cmd/vip-next/commands/whoami_debug_test.go +79 -0
  40. package/cmd/vip-next/commands/wp.go +2 -0
  41. package/cmd/vip-next/commands/wp_debug_test.go +32 -0
  42. package/cmd/vip-next/debug_args.go +63 -0
  43. package/cmd/vip-next/debug_test.go +122 -0
  44. package/cmd/vip-next/main.go +58 -2
  45. package/cmd/vip-next/pendo_wiring_test.go +148 -0
  46. package/cmd/vip-next/root.go +17 -0
  47. package/dist/bin/vip-dev-env-envvar-get.js +2 -2
  48. package/dist/bin/vip-dev-env-envvar-set.js +2 -2
  49. package/dist/bin/vip-dev-env-update.js +1 -1
  50. package/dist/lib/analytics/clients/pendo.js +19 -7
  51. package/dist/lib/constants/dev-environment.js +8 -7
  52. package/dist/lib/dev-environment/dev-environment-cli.js +15 -4
  53. package/dist/lib/dev-environment/dev-environment-core.js +1 -1
  54. package/docs/BUILD-SIGNING.md +147 -6
  55. package/docs/DEBUGGING.md +61 -0
  56. package/docs/GO-UPDATES.md +7 -1
  57. package/docs/RELEASING.md +3 -2
  58. package/docs/SETUP.md +2 -1
  59. package/fastlane/Fastfile +66 -3
  60. package/fastlane/test_signing.rb +83 -0
  61. package/internal/auth/logout.go +14 -1
  62. package/internal/auth/logout_test.go +46 -0
  63. package/internal/debuglog/debuglog.go +85 -0
  64. package/internal/debuglog/debuglog_test.go +44 -0
  65. package/internal/devenv/compose/view.go +6 -3
  66. package/internal/devenv/compose/view_test.go +1 -1
  67. package/internal/devenv/debug.go +4 -0
  68. package/internal/devenv/debug_test.go +103 -0
  69. package/internal/devenv/devenv.go +20 -2
  70. package/internal/devenv/devexec.go +3 -0
  71. package/internal/devenv/importdata.go +4 -1
  72. package/internal/devenv/list.go +9 -1
  73. package/internal/devenv/logs.go +2 -0
  74. package/internal/devenv/proxy/ca.go +9 -2
  75. package/internal/devenv/proxy/ca_test.go +1 -1
  76. package/internal/devenv/proxy/network.go +7 -3
  77. package/internal/devenv/proxy/network_test.go +6 -0
  78. package/internal/devenv/proxy/proxy.go +37 -8
  79. package/internal/devenv/proxy/proxy_test.go +61 -6
  80. package/internal/devenv/proxy/scripts/gen-certs.sh +20 -5
  81. package/internal/devenv/update.go +2 -0
  82. package/internal/gql/debug_test.go +79 -0
  83. package/internal/gql/error.go +27 -1
  84. package/internal/gql/rechallenge.go +9 -5
  85. package/internal/gql/retry.go +21 -2
  86. package/internal/gql/transport.go +9 -0
  87. package/internal/httpproxy/debug_test.go +32 -0
  88. package/internal/httpproxy/httpproxy.go +8 -1
  89. package/internal/installer/version.go +41 -0
  90. package/internal/installer/version_test.go +33 -0
  91. package/internal/parity/edge_workers_debug_test.go +87 -0
  92. package/internal/parity/pendo_test.go +122 -0
  93. package/internal/rechallenge/flow.go +8 -0
  94. package/internal/rechallenge/flow_test.go +15 -1
  95. package/internal/releasepromotion/buildkite.go +12 -1
  96. package/internal/releasepromotion/buildkite_test.go +31 -0
  97. package/internal/releasepromotion/contract.go +49 -1
  98. package/internal/releasepromotion/contract_test.go +38 -0
  99. package/internal/releasepromotion/github.go +4 -10
  100. package/internal/releasepromotion/optional_installers_test.go +87 -0
  101. package/internal/releasepromotion/verify.go +99 -2
  102. package/internal/releasepromotion/verify_test.go +99 -0
  103. package/internal/searchreplace/debug_test.go +71 -0
  104. package/internal/searchreplace/searchreplace.go +14 -0
  105. package/internal/siteimport/debug_test.go +34 -0
  106. package/internal/siteimport/status.go +11 -0
  107. package/internal/telemetry/pendo.go +41 -10
  108. package/internal/telemetry/pendo_auth_test.go +92 -0
  109. package/internal/telemetry/pendo_test.go +24 -5
  110. package/internal/telemetry/tracker.go +26 -0
  111. package/internal/update/github.go +36 -17
  112. package/internal/update/ownership.go +22 -0
  113. package/internal/update/ownership_test.go +44 -0
  114. package/internal/update/release_test.go +53 -13
  115. package/internal/update/service_test.go +39 -0
  116. package/internal/upload/debug_test.go +76 -0
  117. package/internal/upload/multipart.go +3 -0
  118. package/internal/upload/orchestrate.go +10 -0
  119. package/internal/upload/putobject.go +3 -0
  120. package/internal/wpssh/debug_test.go +67 -0
  121. package/internal/wpssh/wpssh.go +7 -0
  122. package/internal/wpstream/debug_test.go +116 -0
  123. package/internal/wpstream/run.go +10 -1
  124. package/node_modules/@apollo/client/CHANGELOG.md +1136 -0
  125. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs +36 -0
  126. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.cjs.map +1 -0
  127. package/node_modules/@apollo/client/__cjs/cache/core/Scalar.d.cts +56 -0
  128. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +32 -1
  129. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
  130. package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +89 -6
  131. package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +30 -2
  132. package/node_modules/@apollo/client/__cjs/cache/index.cjs +3 -1
  133. package/node_modules/@apollo/client/__cjs/cache/index.cjs.map +1 -1
  134. package/node_modules/@apollo/client/__cjs/cache/index.d.cts +2 -1
  135. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +63 -5
  136. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
  137. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.d.cts +3 -0
  138. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs +12 -0
  139. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  140. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.d.cts +11 -2
  141. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +95 -4
  142. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  143. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +44 -5
  144. package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
  145. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +34 -6
  146. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs.map +1 -1
  147. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.d.cts +3 -1
  148. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +489 -45
  149. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  150. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.d.cts +11 -2
  151. package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +31 -4
  152. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +5 -9
  153. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  154. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
  155. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs.map +1 -1
  156. package/node_modules/@apollo/client/__cjs/core/ApolloClient.d.cts +11 -11
  157. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +186 -72
  158. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs.map +1 -1
  159. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.d.cts +4 -7
  160. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +164 -197
  161. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
  162. package/node_modules/@apollo/client/__cjs/core/QueryInfo.d.cts +17 -21
  163. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +75 -48
  164. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs.map +1 -1
  165. package/node_modules/@apollo/client/__cjs/core/QueryManager.d.cts +4 -4
  166. package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
  167. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs +12 -0
  168. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.cjs.map +1 -0
  169. package/node_modules/@apollo/client/__cjs/core/dataStateErrorCache.d.cts +3 -0
  170. package/node_modules/@apollo/client/__cjs/core/deprecated.d.cts +3 -3
  171. package/node_modules/@apollo/client/__cjs/core/index.cjs +2 -1
  172. package/node_modules/@apollo/client/__cjs/core/index.cjs.map +1 -1
  173. package/node_modules/@apollo/client/__cjs/core/index.d.cts +4 -3
  174. package/node_modules/@apollo/client/__cjs/core/types.d.cts +11 -7
  175. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs +3 -0
  176. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.cjs.map +1 -0
  177. package/node_modules/@apollo/client/__cjs/incremental/GraphQLCodegenIncremental.d.cts +55 -0
  178. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
  179. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +2 -4
  180. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +47 -16
  181. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
  182. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +29 -6
  183. package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  184. package/node_modules/@apollo/client/__cjs/incremental/index.cjs.map +1 -1
  185. package/node_modules/@apollo/client/__cjs/incremental/index.d.cts +1 -0
  186. package/node_modules/@apollo/client/__cjs/{utilities/internal/types/NoInfer.cjs → incremental/internal/types.cjs} +1 -1
  187. package/node_modules/@apollo/client/__cjs/incremental/internal/types.cjs.map +1 -0
  188. package/node_modules/@apollo/client/__cjs/incremental/internal/types.d.cts +17 -0
  189. package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +55 -4
  190. package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +164 -113
  191. package/node_modules/@apollo/client/__cjs/link/core/ApolloLink.cjs +3 -3
  192. package/node_modules/@apollo/client/__cjs/link/http/checkFetcher.cjs +1 -1
  193. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  194. package/node_modules/@apollo/client/__cjs/link/persisted-queries/index.cjs +2 -2
  195. package/node_modules/@apollo/client/__cjs/link/ws/index.cjs +1 -1
  196. package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs +11 -11
  197. package/node_modules/@apollo/client/__cjs/local-state/LocalState.cjs.map +1 -1
  198. package/node_modules/@apollo/client/__cjs/local-state/LocalState.d.cts +1 -1
  199. package/node_modules/@apollo/client/__cjs/masking/internal/types.d.cts +1 -2
  200. package/node_modules/@apollo/client/__cjs/masking/maskDefinition.cjs +2 -2
  201. package/node_modules/@apollo/client/__cjs/masking/maskFragment.cjs +2 -2
  202. package/node_modules/@apollo/client/__cjs/masking/maskOperation.cjs +1 -1
  203. package/node_modules/@apollo/client/__cjs/masking/utils.cjs +3 -3
  204. package/node_modules/@apollo/client/__cjs/react/context/ApolloContext.cjs +1 -1
  205. package/node_modules/@apollo/client/__cjs/react/context/ApolloProvider.cjs +1 -1
  206. package/node_modules/@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
  207. package/node_modules/@apollo/client/__cjs/react/hooks/useApolloClient.cjs +1 -1
  208. package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
  209. package/node_modules/@apollo/client/__cjs/react/hooks/useBackgroundQuery.d.cts +3 -3
  210. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.cjs.map +1 -1
  211. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.d.cts +0 -1
  212. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs +29 -3
  213. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
  214. package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.d.cts +1 -1
  215. package/node_modules/@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
  216. package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.cjs.map +1 -1
  217. package/node_modules/@apollo/client/__cjs/react/hooks/useMutation.d.cts +14 -14
  218. package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.cjs.map +1 -1
  219. package/node_modules/@apollo/client/__cjs/react/hooks/useQuery.d.cts +16 -3
  220. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs +7 -3
  221. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.cjs.map +1 -1
  222. package/node_modules/@apollo/client/__cjs/react/hooks/useSubscription.d.cts +27 -5
  223. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
  224. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseFragment.d.cts +1 -1
  225. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
  226. package/node_modules/@apollo/client/__cjs/react/hooks/useSuspenseQuery.d.cts +30 -30
  227. package/node_modules/@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
  228. package/node_modules/@apollo/client/__cjs/react/internal/cache/QueryReference.cjs +1 -1
  229. package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
  230. package/node_modules/@apollo/client/__cjs/react/query-preloader/createQueryPreloader.d.cts +1 -1
  231. package/node_modules/@apollo/client/__cjs/react/ssr/prerenderStatic.cjs +2 -2
  232. package/node_modules/@apollo/client/__cjs/react/types/deprecated.d.cts +5 -4
  233. package/node_modules/@apollo/client/__cjs/react/types/types.documentation.d.cts +12 -1
  234. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs +25 -5
  235. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
  236. package/node_modules/@apollo/client/__cjs/testing/core/mocking/mockLink.d.cts +1 -2
  237. package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.cjs.map +1 -1
  238. package/node_modules/@apollo/client/__cjs/utilities/caching/sizes.d.cts +39 -1
  239. package/node_modules/@apollo/client/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
  240. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs +27 -0
  241. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.cjs.map +1 -0
  242. package/node_modules/@apollo/client/__cjs/utilities/internal/StreamArrayState.d.cts +12 -0
  243. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs +33 -0
  244. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.cjs.map +1 -0
  245. package/node_modules/@apollo/client/__cjs/utilities/internal/addDeferFragmentLabels.d.cts +3 -0
  246. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs +12 -0
  247. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.cjs.map +1 -0
  248. package/node_modules/@apollo/client/__cjs/utilities/internal/capitalize.d.cts +7 -0
  249. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs +102 -0
  250. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.cjs.map +1 -0
  251. package/node_modules/@apollo/client/__cjs/utilities/internal/coerceScalarFieldsToParsed.d.cts +9 -0
  252. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs +20 -1
  253. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.cjs.map +1 -1
  254. package/node_modules/@apollo/client/__cjs/utilities/internal/constants.d.cts +19 -0
  255. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs +19 -0
  256. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.cjs.map +1 -0
  257. package/node_modules/@apollo/client/__cjs/utilities/internal/getDirectiveArgValue.d.cts +9 -0
  258. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
  259. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs.map +1 -1
  260. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs +2 -2
  261. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs.map +1 -1
  262. package/node_modules/@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
  263. package/node_modules/@apollo/client/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
  264. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs +6 -0
  265. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
  266. package/node_modules/@apollo/client/__cjs/utilities/internal/getMemoryInternals.d.cts +4 -0
  267. package/node_modules/@apollo/client/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
  268. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs +27 -2
  269. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
  270. package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +17 -2
  271. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +38 -0
  272. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -0
  273. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +9 -0
  274. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +37 -0
  275. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -0
  276. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +9 -0
  277. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs +7 -0
  278. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.cjs.map +1 -0
  279. package/node_modules/@apollo/client/__cjs/utilities/internal/isTypenameField.d.cts +3 -0
  280. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs +17 -0
  281. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.cjs.map +1 -0
  282. package/node_modules/@apollo/client/__cjs/utilities/internal/makeStreamInfoTrie.d.cts +8 -0
  283. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs +12 -0
  284. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.cjs.map +1 -0
  285. package/node_modules/@apollo/client/__cjs/utilities/internal/matchScalarList.d.cts +8 -0
  286. package/node_modules/@apollo/client/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
  287. package/node_modules/@apollo/client/__cjs/utilities/internal/shouldInclude.cjs +4 -4
  288. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs +20 -0
  289. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.cjs.map +1 -0
  290. package/node_modules/@apollo/client/__cjs/utilities/internal/toDiffWithDataState.d.cts +8 -0
  291. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +3 -0
  292. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +1 -0
  293. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +10 -0
  294. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs +3 -0
  295. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.cjs.map +1 -0
  296. package/node_modules/@apollo/client/__cjs/utilities/internal/types/Exact.d.cts +2 -0
  297. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs +3 -0
  298. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.cjs.map +1 -0
  299. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsLooselyEqual.d.cts +10 -0
  300. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs +3 -0
  301. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.cjs.map +1 -0
  302. package/node_modules/@apollo/client/__cjs/utilities/internal/types/IsNeverish.d.cts +4 -0
  303. package/node_modules/@apollo/client/__cjs/utilities/internal/types/StreamInfoTrie.d.cts +2 -0
  304. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs +12 -0
  305. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.cjs.map +1 -0
  306. package/node_modules/@apollo/client/__cjs/utilities/internal/unwrapScalarType.d.cts +10 -0
  307. package/node_modules/@apollo/client/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
  308. package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
  309. package/node_modules/@apollo/client/__cjs/version.cjs.map +1 -1
  310. package/node_modules/@apollo/client/cache/core/Scalar.d.ts +56 -0
  311. package/node_modules/@apollo/client/cache/core/Scalar.js +32 -0
  312. package/node_modules/@apollo/client/cache/core/Scalar.js.map +1 -0
  313. package/node_modules/@apollo/client/cache/core/cache.d.ts +89 -6
  314. package/node_modules/@apollo/client/cache/core/cache.js +33 -2
  315. package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
  316. package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +30 -2
  317. package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
  318. package/node_modules/@apollo/client/cache/index.d.ts +2 -1
  319. package/node_modules/@apollo/client/cache/index.js +1 -0
  320. package/node_modules/@apollo/client/cache/index.js.map +1 -1
  321. package/node_modules/@apollo/client/cache/inmemory/entityStore.d.ts +3 -0
  322. package/node_modules/@apollo/client/cache/inmemory/entityStore.js +64 -6
  323. package/node_modules/@apollo/client/cache/inmemory/entityStore.js.map +1 -1
  324. package/node_modules/@apollo/client/cache/inmemory/helpers.d.ts +11 -2
  325. package/node_modules/@apollo/client/cache/inmemory/helpers.js +11 -0
  326. package/node_modules/@apollo/client/cache/inmemory/helpers.js.map +1 -1
  327. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +44 -5
  328. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +97 -6
  329. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
  330. package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
  331. package/node_modules/@apollo/client/cache/inmemory/policies.d.ts +3 -1
  332. package/node_modules/@apollo/client/cache/inmemory/policies.js +34 -6
  333. package/node_modules/@apollo/client/cache/inmemory/policies.js.map +1 -1
  334. package/node_modules/@apollo/client/cache/inmemory/readFromStore.d.ts +11 -2
  335. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +485 -45
  336. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
  337. package/node_modules/@apollo/client/cache/inmemory/types.d.ts +32 -5
  338. package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
  339. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +6 -10
  340. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
  341. package/node_modules/@apollo/client/core/ApolloClient.d.ts +11 -11
  342. package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
  343. package/node_modules/@apollo/client/core/ApolloClient.js.map +1 -1
  344. package/node_modules/@apollo/client/core/ObservableQuery.d.ts +4 -7
  345. package/node_modules/@apollo/client/core/ObservableQuery.js +183 -73
  346. package/node_modules/@apollo/client/core/ObservableQuery.js.map +1 -1
  347. package/node_modules/@apollo/client/core/QueryInfo.d.ts +18 -22
  348. package/node_modules/@apollo/client/core/QueryInfo.js +165 -198
  349. package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
  350. package/node_modules/@apollo/client/core/QueryManager.d.ts +4 -4
  351. package/node_modules/@apollo/client/core/QueryManager.js +76 -49
  352. package/node_modules/@apollo/client/core/QueryManager.js.map +1 -1
  353. package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
  354. package/node_modules/@apollo/client/core/dataStateErrorCache.d.ts +3 -0
  355. package/node_modules/@apollo/client/core/dataStateErrorCache.js +9 -0
  356. package/node_modules/@apollo/client/core/dataStateErrorCache.js.map +1 -0
  357. package/node_modules/@apollo/client/core/deprecated.d.ts +3 -3
  358. package/node_modules/@apollo/client/core/deprecated.js.map +1 -1
  359. package/node_modules/@apollo/client/core/index.d.ts +4 -3
  360. package/node_modules/@apollo/client/core/index.js +1 -1
  361. package/node_modules/@apollo/client/core/index.js.map +1 -1
  362. package/node_modules/@apollo/client/core/types.d.ts +11 -7
  363. package/node_modules/@apollo/client/core/types.js.map +1 -1
  364. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.d.ts +55 -0
  365. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js +2 -0
  366. package/node_modules/@apollo/client/incremental/GraphQLCodegenIncremental.js.map +1 -0
  367. package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +2 -4
  368. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
  369. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +29 -6
  370. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +48 -17
  371. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
  372. package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
  373. package/node_modules/@apollo/client/incremental/index.d.ts +1 -0
  374. package/node_modules/@apollo/client/incremental/index.js.map +1 -1
  375. package/node_modules/@apollo/client/incremental/internal/types.d.ts +17 -0
  376. package/node_modules/@apollo/client/incremental/internal/types.js +2 -0
  377. package/node_modules/@apollo/client/incremental/internal/types.js.map +1 -0
  378. package/node_modules/@apollo/client/incremental/types.d.ts +55 -4
  379. package/node_modules/@apollo/client/incremental/types.js.map +1 -1
  380. package/node_modules/@apollo/client/invariantErrorCodes.js +164 -113
  381. package/node_modules/@apollo/client/link/core/ApolloLink.js +3 -3
  382. package/node_modules/@apollo/client/link/http/checkFetcher.js +1 -1
  383. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
  384. package/node_modules/@apollo/client/link/persisted-queries/index.js +2 -2
  385. package/node_modules/@apollo/client/link/ws/index.js +1 -1
  386. package/node_modules/@apollo/client/local-state/LocalState.d.ts +1 -1
  387. package/node_modules/@apollo/client/local-state/LocalState.js +11 -11
  388. package/node_modules/@apollo/client/local-state/LocalState.js.map +1 -1
  389. package/node_modules/@apollo/client/masking/internal/types.d.ts +1 -2
  390. package/node_modules/@apollo/client/masking/internal/types.js.map +1 -1
  391. package/node_modules/@apollo/client/masking/maskDefinition.js +2 -2
  392. package/node_modules/@apollo/client/masking/maskFragment.js +2 -2
  393. package/node_modules/@apollo/client/masking/maskOperation.js +1 -1
  394. package/node_modules/@apollo/client/masking/utils.js +3 -3
  395. package/node_modules/@apollo/client/package.json +1 -1
  396. package/node_modules/@apollo/client/react/context/ApolloContext.js +1 -1
  397. package/node_modules/@apollo/client/react/context/ApolloProvider.js +1 -1
  398. package/node_modules/@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
  399. package/node_modules/@apollo/client/react/hooks/useApolloClient.js +1 -1
  400. package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.d.ts +3 -3
  401. package/node_modules/@apollo/client/react/hooks/useBackgroundQuery.js.map +1 -1
  402. package/node_modules/@apollo/client/react/hooks/useFragment.d.ts +0 -1
  403. package/node_modules/@apollo/client/react/hooks/useFragment.js.map +1 -1
  404. package/node_modules/@apollo/client/react/hooks/useLazyQuery.d.ts +1 -1
  405. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js +29 -3
  406. package/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -1
  407. package/node_modules/@apollo/client/react/hooks/useLoadableQuery.js +2 -2
  408. package/node_modules/@apollo/client/react/hooks/useMutation.d.ts +14 -14
  409. package/node_modules/@apollo/client/react/hooks/useMutation.js.map +1 -1
  410. package/node_modules/@apollo/client/react/hooks/useQuery.d.ts +16 -3
  411. package/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
  412. package/node_modules/@apollo/client/react/hooks/useSubscription.d.ts +27 -5
  413. package/node_modules/@apollo/client/react/hooks/useSubscription.js +7 -3
  414. package/node_modules/@apollo/client/react/hooks/useSubscription.js.map +1 -1
  415. package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.d.ts +1 -1
  416. package/node_modules/@apollo/client/react/hooks/useSuspenseFragment.js.map +1 -1
  417. package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.d.ts +30 -30
  418. package/node_modules/@apollo/client/react/hooks/useSuspenseQuery.js.map +1 -1
  419. package/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js +1 -1
  420. package/node_modules/@apollo/client/react/hooks-compiled/internal/validateSuspenseHookOptions.js +2 -2
  421. package/node_modules/@apollo/client/react/hooks-compiled/useApolloClient.js +1 -1
  422. package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.d.ts +3 -3
  423. package/node_modules/@apollo/client/react/hooks-compiled/useBackgroundQuery.js.map +1 -1
  424. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.d.ts +0 -1
  425. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.js.map +1 -1
  426. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.d.ts +1 -1
  427. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js +29 -3
  428. package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js.map +1 -1
  429. package/node_modules/@apollo/client/react/hooks-compiled/useLoadableQuery.js +2 -2
  430. package/node_modules/@apollo/client/react/hooks-compiled/useMutation.d.ts +14 -14
  431. package/node_modules/@apollo/client/react/hooks-compiled/useMutation.js.map +1 -1
  432. package/node_modules/@apollo/client/react/hooks-compiled/useQuery.d.ts +16 -3
  433. package/node_modules/@apollo/client/react/hooks-compiled/useQuery.js.map +1 -1
  434. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.d.ts +27 -5
  435. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js +107 -93
  436. package/node_modules/@apollo/client/react/hooks-compiled/useSubscription.js.map +1 -1
  437. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.d.ts +1 -1
  438. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
  439. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.d.ts +30 -30
  440. package/node_modules/@apollo/client/react/hooks-compiled/useSuspenseQuery.js.map +1 -1
  441. package/node_modules/@apollo/client/react/hooks-compiled/useSyncExternalStore.js +1 -1
  442. package/node_modules/@apollo/client/react/internal/cache/QueryReference.js +1 -1
  443. package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.d.ts +1 -1
  444. package/node_modules/@apollo/client/react/query-preloader/createQueryPreloader.js.map +1 -1
  445. package/node_modules/@apollo/client/react/ssr/prerenderStatic.js +2 -2
  446. package/node_modules/@apollo/client/react/types/deprecated.d.ts +5 -4
  447. package/node_modules/@apollo/client/react/types/deprecated.js.map +1 -1
  448. package/node_modules/@apollo/client/react/types/types.documentation.d.ts +12 -1
  449. package/node_modules/@apollo/client/react/types/types.documentation.js.map +1 -1
  450. package/node_modules/@apollo/client/testing/core/mocking/mockLink.d.ts +1 -2
  451. package/node_modules/@apollo/client/testing/core/mocking/mockLink.js +25 -5
  452. package/node_modules/@apollo/client/testing/core/mocking/mockLink.js.map +1 -1
  453. package/node_modules/@apollo/client/utilities/caching/sizes.d.ts +39 -1
  454. package/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  455. package/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js +1 -1
  456. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.d.ts +12 -0
  457. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js +23 -0
  458. package/node_modules/@apollo/client/utilities/internal/StreamArrayState.js.map +1 -0
  459. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.d.ts +3 -0
  460. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js +30 -0
  461. package/node_modules/@apollo/client/utilities/internal/addDeferFragmentLabels.js.map +1 -0
  462. package/node_modules/@apollo/client/utilities/internal/capitalize.d.ts +7 -0
  463. package/node_modules/@apollo/client/utilities/internal/capitalize.js +9 -0
  464. package/node_modules/@apollo/client/utilities/internal/capitalize.js.map +1 -0
  465. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.d.ts +9 -0
  466. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js +95 -0
  467. package/node_modules/@apollo/client/utilities/internal/coerceScalarFieldsToParsed.js.map +1 -0
  468. package/node_modules/@apollo/client/utilities/internal/constants.d.ts +19 -0
  469. package/node_modules/@apollo/client/utilities/internal/constants.js +19 -0
  470. package/node_modules/@apollo/client/utilities/internal/constants.js.map +1 -1
  471. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.d.ts +9 -0
  472. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js +16 -0
  473. package/node_modules/@apollo/client/utilities/internal/getDirectiveArgValue.js.map +1 -0
  474. package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js +3 -3
  475. package/node_modules/@apollo/client/utilities/internal/getFragmentDefinition.js.map +1 -1
  476. package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js +2 -2
  477. package/node_modules/@apollo/client/utilities/internal/getFragmentFromSelection.js.map +1 -1
  478. package/node_modules/@apollo/client/utilities/internal/getFragmentQueryDocument.js +2 -2
  479. package/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +1 -1
  480. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.d.ts +4 -0
  481. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +6 -0
  482. package/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  483. package/node_modules/@apollo/client/utilities/internal/getQueryDefinition.js +1 -1
  484. package/node_modules/@apollo/client/utilities/internal/index.d.ts +17 -2
  485. package/node_modules/@apollo/client/utilities/internal/index.js +13 -1
  486. package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
  487. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +9 -0
  488. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +35 -0
  489. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -0
  490. package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +9 -0
  491. package/node_modules/@apollo/client/utilities/internal/isStreamField.js +34 -0
  492. package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -0
  493. package/node_modules/@apollo/client/utilities/internal/isTypenameField.d.ts +3 -0
  494. package/node_modules/@apollo/client/utilities/internal/isTypenameField.js +4 -0
  495. package/node_modules/@apollo/client/utilities/internal/isTypenameField.js.map +1 -0
  496. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.d.ts +8 -0
  497. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js +14 -0
  498. package/node_modules/@apollo/client/utilities/internal/makeStreamInfoTrie.js.map +1 -0
  499. package/node_modules/@apollo/client/utilities/internal/matchScalarList.d.ts +8 -0
  500. package/node_modules/@apollo/client/utilities/internal/matchScalarList.js +9 -0
  501. package/node_modules/@apollo/client/utilities/internal/matchScalarList.js.map +1 -0
  502. package/node_modules/@apollo/client/utilities/internal/removeDirectivesFromDocument.js +1 -1
  503. package/node_modules/@apollo/client/utilities/internal/shouldInclude.js +4 -4
  504. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.d.ts +8 -0
  505. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js +17 -0
  506. package/node_modules/@apollo/client/utilities/internal/toDiffWithDataState.js.map +1 -0
  507. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +10 -0
  508. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +2 -0
  509. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +1 -0
  510. package/node_modules/@apollo/client/utilities/internal/types/Exact.d.ts +2 -0
  511. package/node_modules/@apollo/client/utilities/internal/types/Exact.js +2 -0
  512. package/node_modules/@apollo/client/utilities/internal/types/Exact.js.map +1 -0
  513. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.d.ts +10 -0
  514. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js +2 -0
  515. package/node_modules/@apollo/client/utilities/internal/types/IsLooselyEqual.js.map +1 -0
  516. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.d.ts +4 -0
  517. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js +2 -0
  518. package/node_modules/@apollo/client/utilities/internal/types/IsNeverish.js.map +1 -0
  519. package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.d.ts +2 -0
  520. package/node_modules/@apollo/client/utilities/internal/types/StreamInfoTrie.js.map +1 -1
  521. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.d.ts +10 -0
  522. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js +9 -0
  523. package/node_modules/@apollo/client/utilities/internal/unwrapScalarType.js.map +1 -0
  524. package/node_modules/@apollo/client/utilities/internal/valueToObjectRepresentation.js +1 -1
  525. package/node_modules/@apollo/client/version.js +1 -1
  526. package/node_modules/@apollo/client/version.js.map +1 -1
  527. package/node_modules/@types/node/README.md +2 -2
  528. package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
  529. package/node_modules/@types/node/buffer.d.ts +1 -0
  530. package/node_modules/@types/node/child_process.d.ts +1 -1
  531. package/node_modules/@types/node/crypto.d.ts +22 -12
  532. package/node_modules/@types/node/dgram.d.ts +119 -4
  533. package/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  534. package/node_modules/@types/node/ffi.d.ts +15 -1
  535. package/node_modules/@types/node/fs/promises.d.ts +61 -65
  536. package/node_modules/@types/node/fs.d.ts +86 -76
  537. package/node_modules/@types/node/http.d.ts +18 -2
  538. package/node_modules/@types/node/http2.d.ts +15 -6
  539. package/node_modules/@types/node/index.d.ts +1 -0
  540. package/node_modules/@types/node/inspector.d.ts +2 -1
  541. package/node_modules/@types/node/net.d.ts +124 -20
  542. package/node_modules/@types/node/package.json +3 -18
  543. package/node_modules/@types/node/perf_hooks.d.ts +31 -19
  544. package/node_modules/@types/node/process.d.ts +53 -0
  545. package/node_modules/@types/node/quic.d.ts +290 -42
  546. package/node_modules/@types/node/sqlite.d.ts +6 -2
  547. package/node_modules/@types/node/stream/iter.d.ts +13 -16
  548. package/node_modules/@types/node/stream/web.d.ts +20 -0
  549. package/node_modules/@types/node/test/reporters.d.ts +1 -0
  550. package/node_modules/@types/node/test.d.ts +108 -0
  551. package/node_modules/@types/node/tls.d.ts +64 -25
  552. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
  553. package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  554. package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  555. package/node_modules/@types/node/tty.d.ts +4 -3
  556. package/node_modules/@types/node/vfs.d.ts +211 -0
  557. package/node_modules/@types/node/vm.d.ts +3 -2
  558. package/node_modules/@types/node/web-globals/streams.d.ts +4 -0
  559. package/node_modules/@types/node/worker_threads.d.ts +4 -1
  560. package/node_modules/@types/node/zlib.d.ts +17 -0
  561. package/node_modules/cpu-features/build/Makefile +2 -2
  562. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +1 -1
  563. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +1 -1
  564. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +1 -1
  565. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +1 -1
  566. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +1 -1
  567. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +1 -1
  568. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +1 -1
  569. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +1 -1
  570. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +1 -1
  571. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +1 -1
  572. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +1 -1
  573. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +1 -1
  574. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +1 -1
  575. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +145 -145
  576. package/node_modules/cpu-features/build/config.gypi +8 -9
  577. package/node_modules/cpu-features/build/cpufeatures.target.mk +14 -14
  578. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +14 -14
  579. package/node_modules/default-browser/package.json +1 -1
  580. package/node_modules/default-browser/windows.js +3 -1
  581. package/node_modules/js-yaml/README.md +0 -3
  582. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +822 -779
  583. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
  584. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +29 -23
  585. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
  586. package/node_modules/js-yaml/dist/js-yaml.cjs.js +425 -397
  587. package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
  588. package/node_modules/js-yaml/dist/js-yaml.d.ts +101 -32
  589. package/node_modules/js-yaml/dist/js-yaml.mjs +429 -397
  590. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  591. package/node_modules/js-yaml/package.json +1 -1
  592. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +11 -3
  593. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  594. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
  595. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  596. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
  597. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  598. package/node_modules/lando/node_modules/js-yaml/lib/loader.js +16 -3
  599. package/node_modules/lando/node_modules/js-yaml/package.json +1 -1
  600. package/node_modules/open/index.js +15 -3
  601. package/node_modules/open/package.json +3 -3
  602. package/node_modules/{lando → path-scurry}/node_modules/lru-cache/README.md +96 -10
  603. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  604. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  605. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  606. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  607. package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/commonjs/browser}/index.d.ts +109 -32
  608. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  609. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  610. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  611. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  612. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  613. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  614. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  615. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  616. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  617. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  618. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  619. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  620. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  621. package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/commonjs}/index.d.ts +109 -32
  622. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  623. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  624. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  625. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  626. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  627. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  628. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  629. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  630. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  631. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  632. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  633. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  634. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  635. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  636. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  637. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  638. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  639. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  640. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  641. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  642. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  643. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  644. package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  645. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  646. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  647. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  648. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  649. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  650. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  651. package/node_modules/{lando/node_modules/lru-cache/dist/esm → path-scurry/node_modules/lru-cache/dist/esm/browser}/index.js +315 -177
  652. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  653. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  654. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  655. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  656. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  657. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  658. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  659. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  660. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  661. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  662. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  663. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  664. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  665. package/node_modules/{lando/node_modules/lru-cache/dist/commonjs → path-scurry/node_modules/lru-cache/dist/esm}/index.js +316 -182
  666. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  667. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  668. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  669. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  670. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  671. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  672. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  673. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  674. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  675. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  676. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  677. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  678. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  679. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  680. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  681. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  682. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  683. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  684. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  685. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
  686. package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  687. package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
  688. package/node_modules/powershell-utils/index.d.ts +16 -2
  689. package/node_modules/powershell-utils/index.js +12 -9
  690. package/node_modules/powershell-utils/package.json +1 -1
  691. package/node_modules/powershell-utils/readme.md +7 -2
  692. package/node_modules/socket.io-client/README.md +1 -0
  693. package/node_modules/socket.io-client/build/cjs/index.d.ts +3 -3
  694. package/node_modules/socket.io-client/build/cjs/manager.d.ts +1 -2
  695. package/node_modules/socket.io-client/build/cjs/manager.js +17 -7
  696. package/node_modules/socket.io-client/build/cjs/socket.d.ts +5 -2
  697. package/node_modules/socket.io-client/build/cjs/socket.js +0 -1
  698. package/node_modules/socket.io-client/build/esm/index.d.ts +3 -3
  699. package/node_modules/socket.io-client/build/esm/index.js +1 -1
  700. package/node_modules/socket.io-client/build/esm/manager.d.ts +1 -2
  701. package/node_modules/socket.io-client/build/esm/package.json +1 -1
  702. package/node_modules/socket.io-client/build/esm/socket.d.ts +5 -2
  703. package/node_modules/socket.io-client/build/esm/socket.js +0 -1
  704. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +3 -3
  705. package/node_modules/socket.io-client/build/esm-debug/index.js +1 -1
  706. package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +1 -2
  707. package/node_modules/socket.io-client/build/esm-debug/package.json +1 -1
  708. package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +5 -2
  709. package/node_modules/socket.io-client/build/esm-debug/socket.js +0 -1
  710. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +3 -3
  711. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -1
  712. package/node_modules/socket.io-client/dist/socket.io.js +174 -242
  713. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -1
  714. package/node_modules/socket.io-client/dist/socket.io.min.js +3 -3
  715. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -1
  716. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +3 -3
  717. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -1
  718. package/node_modules/socket.io-client/package.json +2 -2
  719. package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +2 -2
  720. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +237 -237
  721. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  722. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto.node +0 -0
  723. package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  724. package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +14 -14
  725. package/node_modules/undici/README.md +10 -1
  726. package/node_modules/undici/docs/docs/api/Agent.md +8 -8
  727. package/node_modules/undici/docs/docs/api/Client.md +4 -0
  728. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
  729. package/node_modules/undici/docs/docs/api/Dispatcher.md +9 -0
  730. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  731. package/node_modules/undici/docs/docs/api/Errors.md +25 -0
  732. package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  733. package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
  734. package/node_modules/undici/docs/docs/api/Interceptors.md +8 -3
  735. package/node_modules/undici/docs/docs/api/Pool.md +5 -6
  736. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  737. package/node_modules/undici/docs/docs/index.md +10 -1
  738. package/node_modules/undici/lib/api/readable.js +1 -2
  739. package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  740. package/node_modules/undici/lib/core/request.js +23 -2
  741. package/node_modules/undici/lib/core/symbols.js +2 -0
  742. package/node_modules/undici/lib/core/util.js +0 -39
  743. package/node_modules/undici/lib/dispatcher/agent.js +7 -2
  744. package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  745. package/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
  746. package/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
  747. package/node_modules/undici/lib/dispatcher/client.js +9 -3
  748. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  749. package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  750. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  751. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
  752. package/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
  753. package/node_modules/undici/lib/dispatcher/pool.js +90 -7
  754. package/node_modules/undici/lib/dispatcher/proxy-agent.js +33 -3
  755. package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  756. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  757. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
  758. package/node_modules/undici/lib/handler/cache-handler.js +29 -5
  759. package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  760. package/node_modules/undici/lib/handler/deduplication-handler.js +29 -10
  761. package/node_modules/undici/lib/handler/redirect-handler.js +26 -4
  762. package/node_modules/undici/lib/handler/retry-handler.js +215 -38
  763. package/node_modules/undici/lib/interceptor/cache.js +69 -13
  764. package/node_modules/undici/lib/interceptor/decompress.js +319 -50
  765. package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  766. package/node_modules/undici/lib/interceptor/dns.js +7 -0
  767. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  768. package/node_modules/undici/lib/mock/mock-agent.js +13 -1
  769. package/node_modules/undici/lib/mock/mock-utils.js +11 -10
  770. package/node_modules/undici/lib/util/cache.js +45 -3
  771. package/node_modules/undici/lib/web/cache/cache.js +17 -8
  772. package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
  773. package/node_modules/undici/lib/web/cookies/index.js +19 -7
  774. package/node_modules/undici/lib/web/cookies/parse.js +150 -147
  775. package/node_modules/undici/lib/web/cookies/util.js +3 -1
  776. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  777. package/node_modules/undici/lib/web/eventsource/eventsource.js +38 -4
  778. package/node_modules/undici/lib/web/fetch/body.js +22 -15
  779. package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  780. package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
  781. package/node_modules/undici/lib/web/fetch/headers.js +34 -31
  782. package/node_modules/undici/lib/web/fetch/index.js +52 -25
  783. package/node_modules/undici/lib/web/fetch/request.js +76 -82
  784. package/node_modules/undici/lib/web/fetch/response.js +43 -44
  785. package/node_modules/undici/lib/web/fetch/util.js +13 -8
  786. package/node_modules/undici/lib/web/infra/index.js +16 -1
  787. package/node_modules/undici/lib/web/webidl/index.js +5 -17
  788. package/node_modules/undici/lib/web/websocket/connection.js +34 -13
  789. package/node_modules/undici/lib/web/websocket/events.js +43 -26
  790. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  791. package/node_modules/undici/lib/web/websocket/receiver.js +2 -0
  792. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
  793. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +27 -14
  794. package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
  795. package/node_modules/undici/package.json +3 -3
  796. package/node_modules/undici/types/client.d.ts +10 -0
  797. package/node_modules/undici/types/diagnostics-channel.d.ts +2 -1
  798. package/node_modules/undici/types/interceptors.d.ts +2 -0
  799. package/node_modules/undici/types/mock-agent.d.ts +11 -10
  800. package/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -0
  801. package/node_modules/undici/types/webidl.d.ts +13 -7
  802. package/node_modules/undici-types/client.d.ts +8 -3
  803. package/node_modules/undici-types/connector.d.ts +1 -0
  804. package/node_modules/undici-types/cookies.d.ts +1 -1
  805. package/node_modules/undici-types/dispatcher.d.ts +3 -3
  806. package/node_modules/undici-types/errors.d.ts +10 -0
  807. package/node_modules/undici-types/fetch.d.ts +5 -1
  808. package/node_modules/undici-types/handlers.d.ts +2 -0
  809. package/node_modules/undici-types/interceptors.d.ts +1 -1
  810. package/node_modules/undici-types/mock-interceptor.d.ts +5 -1
  811. package/node_modules/undici-types/package.json +1 -1
  812. package/node_modules/undici-types/proxy-agent.d.ts +7 -0
  813. package/package.json +2 -2
  814. package/packaging/macos/build-pkg.sh +53 -0
  815. package/packaging/macos/preinstall +33 -0
  816. package/packaging/macos/test-install.sh +51 -0
  817. package/packaging/macos/test_package.py +74 -0
  818. package/packaging/macos/uninstall.sh +24 -0
  819. package/packaging/macos/verify-pkg.py +61 -0
  820. package/packaging/windows/build-msi.ps1 +153 -0
  821. package/packaging/windows/test-msi.ps1 +225 -0
  822. package/packaging/windows/verify-msi.ps1 +74 -0
  823. package/packaging/windows/vip-next.wxs +79 -0
  824. package/testdata/installer-fixture/main.go +40 -0
  825. package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.cjs.map +0 -1
  826. package/node_modules/@apollo/client/__cjs/utilities/internal/types/NoInfer.d.cts +0 -35
  827. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.d.ts +0 -35
  828. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js +0 -2
  829. package/node_modules/@apollo/client/utilities/internal/types/NoInfer.js.map +0 -1
  830. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  831. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  832. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  833. package/node_modules/lando/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  834. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  835. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  836. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  837. package/node_modules/lando/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  838. package/node_modules/lando/node_modules/lru-cache/package.json +0 -93
  839. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/LICENSE.md +0 -0
  840. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/README.md +0 -0
  841. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts +0 -0
  842. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.d.ts.map +0 -0
  843. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js +0 -0
  844. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/commonjs/index.js.map +0 -0
  845. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/commonjs/package.json +0 -0
  846. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts +0 -0
  847. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.d.ts.map +0 -0
  848. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js +0 -0
  849. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/dist/esm/index.js.map +0 -0
  850. /package/node_modules/{lando/node_modules/lru-cache → path-scurry}/dist/esm/package.json +0 -0
  851. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/LICENSE.md +0 -0
  852. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/commonjs/package.json +0 -0
  853. /package/node_modules/{lando/node_modules/path-scurry → path-scurry/node_modules/lru-cache}/dist/esm/package.json +0 -0
  854. /package/node_modules/{lando/node_modules/path-scurry → path-scurry}/package.json +0 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * Socket.IO v4.8.3
3
- * (c) 2014-2025 Guillermo Rauch
2
+ * Socket.IO v4.8.4
3
+ * (c) 2014-2026 Guillermo Rauch
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).io=i()}(this,(function(){"use strict";function t(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return i[n]}})}}))})),Object.freeze(t)}function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=Array(i);n<i;n++)r[n]=t[n];return r}function n(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function r(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function e(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return i(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,s=function(){};return{s:s,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,h=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return h=t.done,t},e:function(t){u=!0,o=t},f:function(){try{h||null==r.return||r.return()}finally{if(u)throw o}}}}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(null,arguments)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function h(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,f(t,i)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,i){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},f(t,i)}function c(t){var i=function(t,i){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function v(t){var i="function"==typeof Map?new Map:void 0;return v=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(i){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,n)}function n(){return function(t,i,n){if(u())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,i);var e=new(t.bind.apply(t,r));return n&&f(e,n.prototype),e}(t,arguments,o(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)},v(t)}var l=Object.create(null);l.open="0",l.close="1",l.ping="2",l.pong="3",l.message="4",l.upgrade="5",l.noop="6";var d=Object.create(null);Object.keys(l).forEach((function(t){d[l[t]]=t}));var p,y={type:"error",data:"parser error"},w="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),b="function"==typeof ArrayBuffer,g=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},m=function(t,i,n){var r=t.type,e=t.data;return w&&e instanceof Blob?i?n(e):k(e,n):b&&(e instanceof ArrayBuffer||g(e))?i?n(e):k(new Blob([e]),n):n(l[r]+(e||""))},k=function(t,i){var n=new FileReader;return n.onload=function(){var t=n.result.split(",")[1];i("b"+(t||""))},n.readAsDataURL(t)};function A(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j="undefined"==typeof Uint8Array?[]:new Uint8Array(256),O=0;O<64;O++)j[E.charCodeAt(O)]=O;var M,S="function"==typeof ArrayBuffer,B=function(t,i){if("string"!=typeof t)return{type:"message",data:T(t,i)};var n=t.charAt(0);return"b"===n?{type:"message",data:C(t.substring(1),i)}:d[n]?t.length>1?{type:d[n],data:t.substring(1)}:{type:d[n]}:y},C=function(t,i){if(S){var n=function(t){var i,n,r,e,s,o=.75*t.length,h=t.length,u=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var f=new ArrayBuffer(o),c=new Uint8Array(f);for(i=0;i<h;i+=4)n=j[t.charCodeAt(i)],r=j[t.charCodeAt(i+1)],e=j[t.charCodeAt(i+2)],s=j[t.charCodeAt(i+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|e>>2,c[u++]=(3&e)<<6|63&s;return f}(t);return T(n,i)}return{base64:!0,data:t}},T=function(t,i){return"blob"===i?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer},U=String.fromCharCode(30);function _(){return new TransformStream({transform:function(t,i){!function(t,i){w&&t.data instanceof Blob?t.data.arrayBuffer().then(A).then(i):b&&(t.data instanceof ArrayBuffer||g(t.data))?i(A(t.data)):m(t,!1,(function(t){p||(p=new TextEncoder),i(p.encode(t))}))}(t,(function(n){var r,e=n.length;if(e<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,e);else if(e<65536){r=new Uint8Array(3);var s=new DataView(r.buffer);s.setUint8(0,126),s.setUint16(1,e)}else{r=new Uint8Array(9);var o=new DataView(r.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(e))}t.data&&"string"!=typeof t.data&&(r[0]|=128),i.enqueue(r),i.enqueue(n)}))}})}function x(t){return t.reduce((function(t,i){return t+i.length}),0)}function D(t,i){if(t[0].length===i)return t.shift();for(var n=new Uint8Array(i),r=0,e=0;e<i;e++)n[e]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function $(t){if(t)return function(t){for(var i in $.prototype)t[i]=$.prototype[i];return t}(t)}$.prototype.on=$.prototype.addEventListener=function(t,i){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(i),this},$.prototype.once=function(t,i){function n(){this.off(t,n),i.apply(this,arguments)}return n.fn=i,this.on(t,n),this},$.prototype.off=$.prototype.removeListener=$.prototype.removeAllListeners=$.prototype.removeEventListener=function(t,i){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var n,r=this.t["$"+t];if(!r)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var e=0;e<r.length;e++)if((n=r[e])===i||n.fn===i){r.splice(e,1);break}return 0===r.length&&delete this.t["$"+t],this},$.prototype.emit=function(t){this.t=this.t||{};for(var i=new Array(arguments.length-1),n=this.t["$"+t],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(n){r=0;for(var e=(n=n.slice(0)).length;r<e;++r)n[r].apply(this,i)}return this},$.prototype.emitReserved=$.prototype.emit,$.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},$.prototype.hasListeners=function(t){return!!this.listeners(t).length};var I="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,i){return i(t,0)},R="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function L(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return n.reduce((function(i,n){return t.hasOwnProperty(n)&&(i[n]=t[n]),i}),{})}var N=R.setTimeout,P=R.clearTimeout;function V(t,i){i.useNativeTimers?(t.setTimeoutFn=N.bind(R),t.clearTimeoutFn=P.bind(R)):(t.setTimeoutFn=R.setTimeout.bind(R),t.clearTimeoutFn=R.clearTimeout.bind(R))}function q(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var F=function(t){function i(i,n,r){var e;return(e=t.call(this,i)||this).description=n,e.context=r,e.type="TransportError",e}return h(i,t),i}(v(Error)),X=function(t){function i(i){var n;return(n=t.call(this)||this).writable=!1,V(n,i),n.opts=i,n.query=i.query,n.socket=i.socket,n.supportsBinary=!i.forceBase64,n}h(i,t);var n=i.prototype;return n.onError=function(i,n,r){return t.prototype.emitReserved.call(this,"error",new F(i,n,r)),this},n.open=function(){return this.readyState="opening",this.doOpen(),this},n.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},n.send=function(t){"open"===this.readyState&&this.write(t)},n.onOpen=function(){this.readyState="open",this.writable=!0,t.prototype.emitReserved.call(this,"open")},n.onData=function(t){var i=B(t,this.socket.binaryType);this.onPacket(i)},n.onPacket=function(i){t.prototype.emitReserved.call(this,"packet",i)},n.onClose=function(i){this.readyState="closed",t.prototype.emitReserved.call(this,"close",i)},n.pause=function(t){},n.createUri=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t+"://"+this.i()+this.o()+this.opts.path+this.h(i)},n.i=function(){var t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"},n.o=function(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""},n.h=function(t){var i=function(t){var i="";for(var n in t)t.hasOwnProperty(n)&&(i.length&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return i}(t);return i.length?"?"+i:""},i}($),H=function(t){function i(){var i;return(i=t.apply(this,arguments)||this).u=!1,i}h(i,t);var n=i.prototype;return n.doOpen=function(){this.v()},n.pause=function(t){var i=this;this.readyState="pausing";var n=function(){i.readyState="paused",t()};if(this.u||!this.writable){var r=0;this.u&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()},n.v=function(){this.u=!0,this.doPoll(),this.emitReserved("poll")},n.onData=function(t){var i=this;(function(t,i){for(var n=t.split(U),r=[],e=0;e<n.length;e++){var s=B(n[e],i);if(r.push(s),"error"===s.type)break}return r})(t,this.socket.binaryType).forEach((function(t){if("opening"===i.readyState&&"open"===t.type&&i.onOpen(),"close"===t.type)return i.onClose({description:"transport closed by the server"}),!1;i.onPacket(t)})),"closed"!==this.readyState&&(this.u=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.v())},n.doClose=function(){var t=this,i=function(){t.write([{type:"close"}])};"open"===this.readyState?i():this.once("open",i)},n.write=function(t){var i=this;this.writable=!1,function(t,i){var n=t.length,r=new Array(n),e=0;t.forEach((function(t,s){m(t,!1,(function(t){r[s]=t,++e===n&&i(r.join(U))}))}))}(t,(function(t){i.doWrite(t,(function(){i.writable=!0,i.emitReserved("drain")}))}))},n.uri=function(){var t=this.opts.secure?"https":"http",i=this.query||{};return!1!==this.opts.timestampRequests&&(i[this.opts.timestampParam]=q()),this.supportsBinary||i.sid||(i.b64=1),this.createUri(t,i)},r(i,[{key:"name",get:function(){return"polling"}}])}(X),z=!1;try{z="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}var G=z;function J(){}var K=function(t){function i(i){var n;if(n=t.call(this,i)||this,"undefined"!=typeof location){var r="https:"===location.protocol,e=location.port;e||(e=r?"443":"80"),n.xd="undefined"!=typeof location&&i.hostname!==location.hostname||e!==i.port}return n}h(i,t);var n=i.prototype;return n.doWrite=function(t,i){var n=this,r=this.request({method:"POST",data:t});r.on("success",i),r.on("error",(function(t,i){n.onError("xhr post error",t,i)}))},n.doPoll=function(){var t=this,i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(function(i,n){t.onError("xhr poll error",i,n)})),this.pollXhr=i},i}(H),Q=function(t){function i(i,n,r){var e;return(e=t.call(this)||this).createRequest=i,V(e,r),e.l=r,e.p=r.method||"GET",e.m=n,e.k=void 0!==r.data?r.data:null,e.A(),e}h(i,t);var n=i.prototype;return n.A=function(){var t,n=this,r=L(this.l,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.l.xd;var e=this.j=this.createRequest(r);try{e.open(this.p,this.m,!0);try{if(this.l.extraHeaders)for(var s in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.l.extraHeaders)this.l.extraHeaders.hasOwnProperty(s)&&e.setRequestHeader(s,this.l.extraHeaders[s])}catch(t){}if("POST"===this.p)try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.l.cookieJar)||void 0===t||t.addCookies(e),"withCredentials"in e&&(e.withCredentials=this.l.withCredentials),this.l.requestTimeout&&(e.timeout=this.l.requestTimeout),e.onreadystatechange=function(){var t;3===e.readyState&&(null===(t=n.l.cookieJar)||void 0===t||t.parseCookies(e.getResponseHeader("set-cookie"))),4===e.readyState&&(200===e.status||1223===e.status?n.O():n.setTimeoutFn((function(){n.M("number"==typeof e.status?e.status:0)}),0))},e.send(this.k)}catch(t){return void this.setTimeoutFn((function(){n.M(t)}),0)}"undefined"!=typeof document&&(this.S=i.requestsCount++,i.requests[this.S]=this)},n.M=function(t){this.emitReserved("error",t,this.j),this.B(!0)},n.B=function(t){if(void 0!==this.j&&null!==this.j){if(this.j.onreadystatechange=J,t)try{this.j.abort()}catch(t){}"undefined"!=typeof document&&delete i.requests[this.S],this.j=null}},n.O=function(){var t=this.j.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.B())},n.abort=function(){this.B()},i}($);if(Q.requestsCount=0,Q.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",W);else if("function"==typeof addEventListener){addEventListener("onpagehide"in R?"pagehide":"unload",W,!1)}function W(){for(var t in Q.requests)Q.requests.hasOwnProperty(t)&&Q.requests[t].abort()}var Y,Z=(Y=it({xdomain:!1}))&&null!==Y.responseType,tt=function(t){function i(i){var n;n=t.call(this,i)||this;var r=i&&i.forceBase64;return n.supportsBinary=Z&&!r,n}return h(i,t),i.prototype.request=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(t,{xd:this.xd},this.opts),new Q(it,this.uri(),t)},i}(K);function it(t){var i=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!i||G))return new XMLHttpRequest}catch(t){}if(!i)try{return new(R[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}var nt="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),rt=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.doOpen=function(){var t=this.uri(),i=this.opts.protocols,n=nt?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,i,n)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()},n.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.opts.autoUnref&&t.ws.C.unref(),t.onOpen()},this.ws.onclose=function(i){return t.onClose({description:"websocket connection closed",context:i})},this.ws.onmessage=function(i){return t.onData(i.data)},this.ws.onerror=function(i){return t.onError("websocket error",i)}},n.write=function(t){var i=this;this.writable=!1;for(var n=function(){var n=t[r],e=r===t.length-1;m(n,i.supportsBinary,(function(t){try{i.doWrite(n,t)}catch(t){}e&&I((function(){i.writable=!0,i.emitReserved("drain")}),i.setTimeoutFn)}))},r=0;r<t.length;r++)n()},n.doClose=function(){void 0!==this.ws&&(this.ws.onerror=function(){},this.ws.close(),this.ws=null)},n.uri=function(){var t=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=q()),this.supportsBinary||(i.b64=1),this.createUri(t,i)},r(i,[{key:"name",get:function(){return"websocket"}}])}(X),et=R.WebSocket||R.MozWebSocket,st=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.createSocket=function(t,i,n){return nt?new et(t,i,n):i?new et(t,i):new et(t)},n.doWrite=function(t,i){this.ws.send(i)},i}(rt),ot=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.doOpen=function(){var t=this;try{this.T=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this.T.closed.then((function(){t.onClose()})).catch((function(i){t.onError("webtransport error",i)})),this.T.ready.then((function(){t.T.createBidirectionalStream().then((function(i){var n=function(t,i){M||(M=new TextDecoder);var n=[],r=0,e=-1,s=!1;return new TransformStream({transform:function(o,h){for(n.push(o);;){if(0===r){if(x(n)<1)break;var u=D(n,1);s=!(128&~u[0]),e=127&u[0],r=e<126?3:126===e?1:2}else if(1===r){if(x(n)<2)break;var f=D(n,2);e=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(2===r){if(x(n)<8)break;var c=D(n,8),a=new DataView(c.buffer,c.byteOffset,c.length),v=a.getUint32(0);if(v>Math.pow(2,21)-1){h.enqueue(y);break}e=v*Math.pow(2,32)+a.getUint32(4),r=3}else{if(x(n)<e)break;var l=D(n,e);h.enqueue(B(s?l:M.decode(l),i)),r=0}if(0===e||e>t){h.enqueue(y);break}}}})}(Number.MAX_SAFE_INTEGER,t.socket.binaryType),r=i.readable.pipeThrough(n).getReader(),e=_();e.readable.pipeTo(i.writable),t.U=e.writable.getWriter();!function i(){r.read().then((function(n){var r=n.done,e=n.value;r||(t.onPacket(e),i())})).catch((function(t){}))}();var s={type:"open"};t.query.sid&&(s.data='{"sid":"'.concat(t.query.sid,'"}')),t.U.write(s).then((function(){return t.onOpen()}))}))}))},n.write=function(t){var i=this;this.writable=!1;for(var n=function(){var n=t[r],e=r===t.length-1;i.U.write(n).then((function(){e&&I((function(){i.writable=!0,i.emitReserved("drain")}),i.setTimeoutFn)}))},r=0;r<t.length;r++)n()},n.doClose=function(){var t;null===(t=this.T)||void 0===t||t.close()},r(i,[{key:"name",get:function(){return"webtransport"}}])}(X),ht={websocket:st,webtransport:ot,polling:tt},ut=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ft=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ct(t){if(t.length>8e3)throw"URI too long";var i=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));for(var e,s,o=ut.exec(t||""),h={},u=14;u--;)h[ft[u]]=o[u]||"";return-1!=n&&-1!=r&&(h.source=i,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=function(t,i){var n=/\/{2,9}/g,r=i.replace(n,"/").split("/");"/"!=i.slice(0,1)&&0!==i.length||r.splice(0,1);"/"==i.slice(-1)&&r.splice(r.length-1,1);return r}(0,h.path),h.queryKey=(e=h.query,s={},e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,i,n){i&&(s[i]=n)})),s),h}var at="function"==typeof addEventListener&&"function"==typeof removeEventListener,vt=[];at&&addEventListener("offline",(function(){vt.forEach((function(t){return t()}))}),!1);var lt=function(t){function i(i,n){var r;if((r=t.call(this)||this).binaryType="arraybuffer",r.writeBuffer=[],r._=0,r.D=-1,r.$=-1,r.I=-1,r.R=1/0,i&&"object"===a(i)&&(n=i,i=null),i){var e=ct(i);n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)}else n.host&&(n.hostname=ct(n.host).host);return V(r,n),r.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=r.secure?"443":"80"),r.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),r.port=n.port||("undefined"!=typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=[],r.L={},n.transports.forEach((function(t){var i=t.prototype.name;r.transports.push(i),r.L[i]=t})),r.opts=s({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),r.opts.path=r.opts.path.replace(/\/$/,"")+(r.opts.addTrailingSlash?"/":""),"string"==typeof r.opts.query&&(r.opts.query=function(t){for(var i={},n=t.split("&"),r=0,e=n.length;r<e;r++){var s=n[r].split("=");i[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return i}(r.opts.query)),at&&(r.opts.closeOnBeforeunload&&(r.N=function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())},addEventListener("beforeunload",r.N,!1)),"localhost"!==r.hostname&&(r.P=function(){r.V("transport close",{description:"network connection lost"})},vt.push(r.P))),r.opts.withCredentials&&(r.q=void 0),r.F(),r}h(i,t);var n=i.prototype;return n.createTransport=function(t){var i=s({},this.opts.query);i.EIO=4,i.transport=t,this.id&&(i.sid=this.id);var n=s({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this.L[t](n)},n.F=function(){var t=this;if(0!==this.transports.length){var n=this.opts.rememberUpgrade&&i.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";var r=this.createTransport(n);r.open(),this.setTransport(r)}else this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0)},n.setTransport=function(t){var i=this;this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.X.bind(this)).on("packet",this.H.bind(this)).on("error",this.M.bind(this)).on("close",(function(t){return i.V("transport close",t)}))},n.onOpen=function(){this.readyState="open",i.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()},n.H=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.G("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this.J();break;case"error":var i=new Error("server error");i.code=t.data,this.M(i);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}},n.onHandshake=function(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.D=t.pingInterval,this.$=t.pingTimeout,this.I=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.J()},n.J=function(){var t=this;this.clearTimeoutFn(this.K);var i=this.D+this.$;this.R=Date.now()+i,this.K=this.setTimeoutFn((function(){t.V("ping timeout")}),i),this.opts.autoUnref&&this.K.unref()},n.X=function(){this.writeBuffer.splice(0,this._),this._=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()},n.flush=function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var t=this.W();this.transport.send(t),this._=t.length,this.emitReserved("flush")}},n.W=function(){if(!(this.I&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var t,i=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(i+="string"==typeof(t=r)?function(t){for(var i=0,n=0,r=0,e=t.length;r<e;r++)(i=t.charCodeAt(r))<128?n+=1:i<2048?n+=2:i<55296||i>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&i>this.I)return this.writeBuffer.slice(0,n);i+=2}return this.writeBuffer},n.Y=function(){var t=this;if(!this.R)return!0;var i=Date.now()>this.R;return i&&(this.R=0,I((function(){t.V("ping timeout")}),this.setTimeoutFn)),i},n.write=function(t,i,n){return this.G("message",t,i,n),this},n.send=function(t,i,n){return this.G("message",t,i,n),this},n.G=function(t,i,n,r){if("function"==typeof i&&(r=i,i=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var e={type:t,data:i,options:n};this.emitReserved("packetCreate",e),this.writeBuffer.push(e),r&&this.once("flush",r),this.flush()}},n.close=function(){var t=this,i=function(){t.V("forced close"),t.transport.close()},n=function n(){t.off("upgrade",n),t.off("upgradeError",n),i()},r=function(){t.once("upgrade",n),t.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){t.upgrading?r():i()})):this.upgrading?r():i()),this},n.M=function(t){if(i.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this.F();this.emitReserved("error",t),this.V("transport error",t)},n.V=function(t,i){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this.K),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),at&&(this.N&&removeEventListener("beforeunload",this.N,!1),this.P)){var n=vt.indexOf(this.P);-1!==n&&vt.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,i),this.writeBuffer=[],this._=0}},i}($);lt.protocol=4;var dt=function(t){function i(){var i;return(i=t.apply(this,arguments)||this).Z=[],i}h(i,t);var n=i.prototype;return n.onOpen=function(){if(t.prototype.onOpen.call(this),"open"===this.readyState&&this.opts.upgrade)for(var i=0;i<this.Z.length;i++)this.tt(this.Z[i])},n.tt=function(t){var i=this,n=this.createTransport(t),r=!1;lt.priorWebsocketSuccess=!1;var e=function(){r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(t){if(!r)if("pong"===t.type&&"probe"===t.data){if(i.upgrading=!0,i.emitReserved("upgrading",n),!n)return;lt.priorWebsocketSuccess="websocket"===n.name,i.transport.pause((function(){r||"closed"!==i.readyState&&(c(),i.setTransport(n),n.send([{type:"upgrade"}]),i.emitReserved("upgrade",n),n=null,i.upgrading=!1,i.flush())}))}else{var e=new Error("probe error");e.transport=n.name,i.emitReserved("upgradeError",e)}})))};function s(){r||(r=!0,c(),n.close(),n=null)}var o=function(t){var r=new Error("probe error: "+t);r.transport=n.name,s(),i.emitReserved("upgradeError",r)};function h(){o("transport closed")}function u(){o("socket closed")}function f(t){n&&t.name!==n.name&&s()}var c=function(){n.removeListener("open",e),n.removeListener("error",o),n.removeListener("close",h),i.off("close",u),i.off("upgrading",f)};n.once("open",e),n.once("error",o),n.once("close",h),this.once("close",u),this.once("upgrading",f),-1!==this.Z.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((function(){r||n.open()}),200):n.open()},n.onHandshake=function(i){this.Z=this.it(i.upgrades),t.prototype.onHandshake.call(this,i)},n.it=function(t){for(var i=[],n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&i.push(t[n]);return i},i}(lt),pt=function(t){function i(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="object"===a(i)?i:n;return(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map((function(t){return ht[t]})).filter((function(t){return!!t}))),t.call(this,i,r)||this}return h(i,t),i}(dt);pt.protocol;var yt={},wt={};function bt(t,i,n){for(var r=0,e=0,s=n.length;e<s;e++)(r=n.charCodeAt(e))<128?t.setUint8(i++,r):r<2048?(t.setUint8(i++,192|r>>6),t.setUint8(i++,128|63&r)):r<55296||r>=57344?(t.setUint8(i++,224|r>>12),t.setUint8(i++,128|r>>6&63),t.setUint8(i++,128|63&r)):(e++,r=65536+((1023&r)<<10|1023&n.charCodeAt(e)),t.setUint8(i++,240|r>>18),t.setUint8(i++,128|r>>12&63),t.setUint8(i++,128|r>>6&63),t.setUint8(i++,128|63&r))}function gt(t,i,n){var r=a(n),e=0,s=0,o=0,h=0,u=0,f=0;if("string"===r){if(u=function(t){for(var i=0,n=0,r=0,e=t.length;r<e;r++)(i=t.charCodeAt(r))<128?n+=1:i<2048?n+=2:i<55296||i>=57344?n+=3:(r++,n+=4);return n}(n),u<32)t.push(160|u),f=1;else if(u<256)t.push(217,u),f=2;else if(u<65536)t.push(218,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("String too long");t.push(219,u>>24,u>>16,u>>8,u),f=5}return i.push({nt:n,rt:u,et:t.length}),f+u}if("number"===r)return Math.floor(n)===n&&isFinite(n)?n>=0?n<128?(t.push(n),1):n<256?(t.push(204,n),2):n<65536?(t.push(205,n>>8,n),3):n<4294967296?(t.push(206,n>>24,n>>16,n>>8,n),5):(o=n/Math.pow(2,32)|0,h=n>>>0,t.push(207,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),9):n>=-32?(t.push(n),1):n>=-128?(t.push(208,n),2):n>=-32768?(t.push(209,n>>8,n),3):n>=-2147483648?(t.push(210,n>>24,n>>16,n>>8,n),5):(o=Math.floor(n/Math.pow(2,32)),h=n>>>0,t.push(211,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),9):(t.push(203),i.push({st:n,rt:8,et:t.length}),9);if("object"===r){if(null===n)return t.push(192),1;if(Array.isArray(n)){if((u=n.length)<16)t.push(144|u),f=1;else if(u<65536)t.push(220,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Array too large");t.push(221,u>>24,u>>16,u>>8,u),f=5}for(e=0;e<u;e++)f+=gt(t,i,n[e]);return f}if(n instanceof Date){var c=n.getTime();return o=Math.floor(c/Math.pow(2,32)),h=c>>>0,t.push(215,0,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),10}if(n instanceof ArrayBuffer){if((u=n.byteLength)<256)t.push(196,u),f=2;else if(u<65536)t.push(197,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Buffer too large");t.push(198,u>>24,u>>16,u>>8,u),f=5}return i.push({ot:n,rt:u,et:t.length}),f+u}if("function"==typeof n.toJSON)return gt(t,i,n.toJSON());var v=[],l="",d=Object.keys(n);for(e=0,s=d.length;e<s;e++)"function"!=typeof n[l=d[e]]&&v.push(l);if((u=v.length)<16)t.push(128|u),f=1;else if(u<65536)t.push(222,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Object too large");t.push(223,u>>24,u>>16,u>>8,u),f=5}for(e=0;e<u;e++)f+=gt(t,i,l=v[e]),f+=gt(t,i,n[l]);return f}if("boolean"===r)return t.push(n?195:194),1;if("undefined"===r)return t.push(212,0,0),3;throw new Error("Could not encode")}var mt=function(t){var i=[],n=[],r=gt(i,n,t),e=new ArrayBuffer(r),s=new DataView(e),o=0,h=0,u=-1;n.length>0&&(u=n[0].et);for(var f,c=0,a=0,v=0,l=i.length;v<l;v++)if(s.setUint8(h+v,i[v]),v+1===u){if(c=(f=n[o]).rt,a=h+u,f.ot)for(var d=new Uint8Array(f.ot),p=0;p<c;p++)s.setUint8(a+p,d[p]);else f.nt?bt(s,a,f.nt):void 0!==f.st&&s.setFloat64(a,f.st);h+=c,n[++o]&&(u=n[o].et)}return e};function kt(t){if(this.et=0,t instanceof ArrayBuffer)this.ht=t,this.ut=new DataView(this.ht);else{if(!ArrayBuffer.isView(t))throw new Error("Invalid argument");this.ht=t.buffer,this.ut=new DataView(this.ht,t.byteOffset,t.byteLength)}}kt.prototype.ft=function(t){for(var i=new Array(t),n=0;n<t;n++)i[n]=this.ct();return i},kt.prototype.vt=function(t){for(var i={},n=0;n<t;n++)i[this.ct()]=this.ct();return i},kt.prototype.nt=function(t){var i=function(t,i,n){for(var r="",e=0,s=i,o=i+n;s<o;s++){var h=t.getUint8(s);if(128&h)if(192!=(224&h))if(224!=(240&h)){if(240!=(248&h))throw new Error("Invalid byte "+h.toString(16));(e=(7&h)<<18|(63&t.getUint8(++s))<<12|(63&t.getUint8(++s))<<6|63&t.getUint8(++s))>=65536?(e-=65536,r+=String.fromCharCode(55296+(e>>>10),56320+(1023&e))):r+=String.fromCharCode(e)}else r+=String.fromCharCode((15&h)<<12|(63&t.getUint8(++s))<<6|63&t.getUint8(++s));else r+=String.fromCharCode((31&h)<<6|63&t.getUint8(++s));else r+=String.fromCharCode(h)}return r}(this.ut,this.et,t);return this.et+=t,i},kt.prototype.ot=function(t){var i=this.ht.slice(this.et,this.et+t);return this.et+=t,i},kt.prototype.ct=function(){var t,i=this.ut.getUint8(this.et++),n=0,r=0,e=0,s=0;if(i<192)return i<128?i:i<144?this.vt(15&i):i<160?this.ft(15&i):this.nt(31&i);if(i>223)return-1*(255-i+1);switch(i){case 192:return null;case 194:return!1;case 195:return!0;case 196:return n=this.ut.getUint8(this.et),this.et+=1,this.ot(n);case 197:return n=this.ut.getUint16(this.et),this.et+=2,this.ot(n);case 198:return n=this.ut.getUint32(this.et),this.et+=4,this.ot(n);case 199:return n=this.ut.getUint8(this.et),r=this.ut.getInt8(this.et+1),this.et+=2,[r,this.ot(n)];case 200:return n=this.ut.getUint16(this.et),r=this.ut.getInt8(this.et+2),this.et+=3,[r,this.ot(n)];case 201:return n=this.ut.getUint32(this.et),r=this.ut.getInt8(this.et+4),this.et+=5,[r,this.ot(n)];case 202:return t=this.ut.getFloat32(this.et),this.et+=4,t;case 203:return t=this.ut.getFloat64(this.et),this.et+=8,t;case 204:return t=this.ut.getUint8(this.et),this.et+=1,t;case 205:return t=this.ut.getUint16(this.et),this.et+=2,t;case 206:return t=this.ut.getUint32(this.et),this.et+=4,t;case 207:return e=this.ut.getUint32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,e+s;case 208:return t=this.ut.getInt8(this.et),this.et+=1,t;case 209:return t=this.ut.getInt16(this.et),this.et+=2,t;case 210:return t=this.ut.getInt32(this.et),this.et+=4,t;case 211:return e=this.ut.getInt32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,e+s;case 212:return r=this.ut.getInt8(this.et),this.et+=1,0===r?void(this.et+=1):[r,this.ot(1)];case 213:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(2)];case 214:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(4)];case 215:return r=this.ut.getInt8(this.et),this.et+=1,0===r?(e=this.ut.getInt32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,new Date(e+s)):[r,this.ot(8)];case 216:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(16)];case 217:return n=this.ut.getUint8(this.et),this.et+=1,this.nt(n);case 218:return n=this.ut.getUint16(this.et),this.et+=2,this.nt(n);case 219:return n=this.ut.getUint32(this.et),this.et+=4,this.nt(n);case 220:return n=this.ut.getUint16(this.et),this.et+=2,this.ft(n);case 221:return n=this.ut.getUint32(this.et),this.et+=4,this.ft(n);case 222:return n=this.ut.getUint16(this.et),this.et+=2,this.vt(n);case 223:return n=this.ut.getUint32(this.et),this.et+=4,this.vt(n)}throw new Error("Could not parse")};var At=function(t){var i=new kt(t),n=i.ct();if(i.et!==t.byteLength)throw new Error(t.byteLength-i.et+" trailing bytes");return n};wt.encode=mt,wt.decode=At;var Et={exports:{}};!function(t){function i(t){if(t)return function(t){for(var n in i.prototype)t[n]=i.prototype[n];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,i){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(i),this},i.prototype.once=function(t,i){function n(){this.off(t,n),i.apply(this,arguments)}return n.fn=i,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,i){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var n,r=this.t["$"+t];if(!r)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var e=0;e<r.length;e++)if((n=r[e])===i||n.fn===i){r.splice(e,1);break}return 0===r.length&&delete this.t["$"+t],this},i.prototype.emit=function(t){this.t=this.t||{};for(var i=new Array(arguments.length-1),n=this.t["$"+t],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(n){r=0;for(var e=(n=n.slice(0)).length;r<e;++r)n[r].apply(this,i)}return this},i.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(Et);var jt,Ot=wt,Mt=Et.exports,St=yt.protocol=5,Bt=jt=yt.PacketType={CONNECT:0,DISCONNECT:1,EVENT:2,ACK:3,CONNECT_ERROR:4},Ct=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Tt=function(t){return"string"==typeof t},Ut=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function _t(){}function xt(){}_t.prototype.encode=function(t){return[Ot.encode(t)]},Mt(xt.prototype),xt.prototype.add=function(t){var i=Ot.decode(t);this.checkPacket(i),this.emit("decoded",i)},xt.prototype.checkPacket=function(t){if(!(Ct(t.type)&&t.type>=Bt.CONNECT&&t.type<=Bt.CONNECT_ERROR))throw new Error("invalid packet type");if(!Tt(t.nsp))throw new Error("invalid namespace");if(!function(t){switch(t.type){case Bt.CONNECT:return void 0===t.data||Ut(t.data);case Bt.DISCONNECT:return void 0===t.data;case Bt.CONNECT_ERROR:return Tt(t.data)||Ut(t.data);default:return Array.isArray(t.data)}}(t))throw new Error("invalid payload");if(!(void 0===t.id||Ct(t.id)))throw new Error("invalid packet id")},xt.prototype.destroy=function(){};var Dt=yt.Encoder=_t,$t=yt.Decoder=xt,It=t({__proto__:null,protocol:St,get PacketType(){return jt},Encoder:Dt,Decoder:$t,default:yt},[yt]);function Rt(t,i,n){return t.on(i,n),function(){t.off(i,n)}}var Lt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Nt=function(t){function i(i,n,r){var e;return(e=t.call(this)||this).connected=!1,e.recovered=!1,e.receiveBuffer=[],e.sendBuffer=[],e.lt=[],e.dt=0,e.ids=0,e.acks={},e.flags={},e.io=i,e.nsp=n,r&&r.auth&&(e.auth=r.auth),e.l=s({},r),e.io.yt&&e.open(),e}h(i,t);var n=i.prototype;return n.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[Rt(t,"open",this.onopen.bind(this)),Rt(t,"packet",this.onpacket.bind(this)),Rt(t,"error",this.onerror.bind(this)),Rt(t,"close",this.onclose.bind(this))]}},n.connect=function(){return this.connected||(this.subEvents(),this.io.wt||this.io.open(),"open"===this.io.bt&&this.onopen()),this},n.open=function(){return this.connect()},n.send=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.unshift("message"),this.emit.apply(this,i),this},n.emit=function(t){var i,n,r;if(Lt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');for(var e=arguments.length,s=new Array(e>1?e-1:0),o=1;o<e;o++)s[o-1]=arguments[o];if(s.unshift(t),this.l.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this.gt(s),this;var h={type:jt.EVENT,data:s,options:{}};if(h.options.compress=!1!==this.flags.compress,"function"==typeof s[s.length-1]){var u=this.ids++,f=s.pop();this.kt(u,f),h.id=u}var c=null===(n=null===(i=this.io.engine)||void 0===i?void 0:i.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r.Y());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this},n.kt=function(t,i){var n,r=this,e=null!==(n=this.flags.timeout)&&void 0!==n?n:this.l.ackTimeout;if(void 0!==e){var s=this.io.setTimeoutFn((function(){delete r.acks[t];for(var n=0;n<r.sendBuffer.length;n++)r.sendBuffer[n].id===t&&r.sendBuffer.splice(n,1);i.call(r,new Error("operation has timed out"))}),e),o=function(){r.io.clearTimeoutFn(s);for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];i.apply(r,n)};o.withError=!0,this.acks[t]=o}else this.acks[t]=i},n.emitWithAck=function(t){for(var i=this,n=arguments.length,r=new Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return new Promise((function(n,e){var s=function(t,i){return t?e(t):n(i)};s.withError=!0,r.push(s),i.emit.apply(i,[t].concat(r))}))},n.gt=function(t){var i,n=this;"function"==typeof t[t.length-1]&&(i=t.pop());var r={id:this.dt++,tryCount:0,pending:!1,args:t,flags:s({fromQueue:!0},this.flags)};t.push((function(t){if(n.lt[0],null!==t)r.tryCount>n.l.retries&&(n.lt.shift(),i&&i(t));else if(n.lt.shift(),i){for(var e=arguments.length,s=new Array(e>1?e-1:0),o=1;o<e;o++)s[o-1]=arguments[o];i.apply(void 0,[null].concat(s))}return r.pending=!1,n.At()})),this.lt.push(r),this.At()},n.At=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.connected&&0!==this.lt.length){var i=this.lt[0];i.pending&&!t||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}},n.packet=function(t){t.nsp=this.nsp,this.io.Et(t)},n.onopen=function(){var t=this;"function"==typeof this.auth?this.auth((function(i){t.jt(i)})):this.jt(this.auth)},n.jt=function(t){this.packet({type:jt.CONNECT,data:this.Ot?s({pid:this.Ot,offset:this.Mt},t):t})},n.onerror=function(t){this.connected||this.emitReserved("connect_error",t)},n.onclose=function(t,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,i),this.St()},n.St=function(){var t=this;Object.keys(this.acks).forEach((function(i){if(!t.sendBuffer.some((function(t){return String(t.id)===i}))){var n=t.acks[i];delete t.acks[i],n.withError&&n.call(t,new Error("socket has been disconnected"))}}))},n.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case jt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case jt.EVENT:case jt.BINARY_EVENT:this.onevent(t);break;case jt.ACK:case jt.BINARY_ACK:this.onack(t);break;case jt.DISCONNECT:this.ondisconnect();break;case jt.CONNECT_ERROR:this.destroy();var i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i)}},n.onevent=function(t){var i=t.data||[];null!=t.id&&i.push(this.ack(t.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))},n.emitEvent=function(i){if(this.Bt&&this.Bt.length){var n,r=e(this.Bt.slice());try{for(r.s();!(n=r.n()).done;){n.value.apply(this,i)}}catch(t){r.e(t)}finally{r.f()}}t.prototype.emit.apply(this,i),this.Ot&&i.length&&"string"==typeof i[i.length-1]&&(this.Mt=i[i.length-1])},n.ack=function(t){var i=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,e=new Array(r),s=0;s<r;s++)e[s]=arguments[s];i.packet({type:jt.ACK,id:t,data:e})}}},n.onack=function(t){var i=this.acks[t.id];"function"==typeof i&&(delete this.acks[t.id],i.withError&&t.data.unshift(null),i.apply(this,t.data))},n.onconnect=function(t,i){this.id=t,this.recovered=i&&this.Ot===i,this.Ot=i,this.connected=!0,this.emitBuffered(),this.At(!0),this.emitReserved("connect")},n.emitBuffered=function(){var t=this;this.receiveBuffer.forEach((function(i){return t.emitEvent(i)})),this.receiveBuffer=[],this.sendBuffer.forEach((function(i){t.notifyOutgoingListeners(i),t.packet(i)})),this.sendBuffer=[]},n.ondisconnect=function(){this.destroy(),this.onclose("io server disconnect")},n.destroy=function(){this.subs&&(this.subs.forEach((function(t){return t()})),this.subs=void 0),this.io.Ct(this)},n.disconnect=function(){return this.connected&&this.packet({type:jt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},n.close=function(){return this.disconnect()},n.compress=function(t){return this.flags.compress=t,this},n.timeout=function(t){return this.flags.timeout=t,this},n.onAny=function(t){return this.Bt=this.Bt||[],this.Bt.push(t),this},n.prependAny=function(t){return this.Bt=this.Bt||[],this.Bt.unshift(t),this},n.offAny=function(t){if(!this.Bt)return this;if(t){for(var i=this.Bt,n=0;n<i.length;n++)if(t===i[n])return i.splice(n,1),this}else this.Bt=[];return this},n.listenersAny=function(){return this.Bt||[]},n.onAnyOutgoing=function(t){return this.Tt=this.Tt||[],this.Tt.push(t),this},n.prependAnyOutgoing=function(t){return this.Tt=this.Tt||[],this.Tt.unshift(t),this},n.offAnyOutgoing=function(t){if(!this.Tt)return this;if(t){for(var i=this.Tt,n=0;n<i.length;n++)if(t===i[n])return i.splice(n,1),this}else this.Tt=[];return this},n.listenersAnyOutgoing=function(){return this.Tt||[]},n.notifyOutgoingListeners=function(t){if(this.Tt&&this.Tt.length){var i,n=e(this.Tt.slice());try{for(n.s();!(i=n.n()).done;){i.value.apply(this,t.data)}}catch(t){n.e(t)}finally{n.f()}}},r(i,[{key:"disconnected",get:function(){return!this.connected}},{key:"active",get:function(){return!!this.subs}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}}])}($);function Pt(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),n=Math.floor(i*this.jitter*t);t=1&Math.floor(10*i)?t+n:t-n}return 0|Math.min(t,this.max)},Pt.prototype.reset=function(){this.attempts=0},Pt.prototype.setMin=function(t){this.ms=t},Pt.prototype.setMax=function(t){this.max=t},Pt.prototype.setJitter=function(t){this.jitter=t};var Vt=function(t){function i(i,n){var r,e;(r=t.call(this)||this).nsps={},r.subs=[],i&&"object"===a(i)&&(n=i,i=void 0),(n=n||{}).path=n.path||"/socket.io",r.opts=n,V(r,n),r.reconnection(!1!==n.reconnection),r.reconnectionAttempts(n.reconnectionAttempts||1/0),r.reconnectionDelay(n.reconnectionDelay||1e3),r.reconnectionDelayMax(n.reconnectionDelayMax||5e3),r.randomizationFactor(null!==(e=n.randomizationFactor)&&void 0!==e?e:.5),r.backoff=new Pt({min:r.reconnectionDelay(),max:r.reconnectionDelayMax(),jitter:r.randomizationFactor()}),r.timeout(null==n.timeout?2e4:n.timeout),r.bt="closed",r.uri=i;var s=n.parser||It;return r.encoder=new s.Encoder,r.decoder=new s.Decoder,r.yt=!1!==n.autoConnect,r.yt&&r.open(),r}h(i,t);var n=i.prototype;return n.reconnection=function(t){return arguments.length?(this.Ut=!!t,t||(this.skipReconnect=!0),this):this.Ut},n.reconnectionAttempts=function(t){return void 0===t?this._t:(this._t=t,this)},n.reconnectionDelay=function(t){var i;return void 0===t?this.xt:(this.xt=t,null===(i=this.backoff)||void 0===i||i.setMin(t),this)},n.randomizationFactor=function(t){var i;return void 0===t?this.Dt:(this.Dt=t,null===(i=this.backoff)||void 0===i||i.setJitter(t),this)},n.reconnectionDelayMax=function(t){var i;return void 0===t?this.$t:(this.$t=t,null===(i=this.backoff)||void 0===i||i.setMax(t),this)},n.timeout=function(t){return arguments.length?(this.It=t,this):this.It},n.maybeReconnectOnOpen=function(){!this.wt&&this.Ut&&0===this.backoff.attempts&&this.reconnect()},n.open=function(t){var i=this;if(~this.bt.indexOf("open"))return this;this.engine=new pt(this.uri,this.opts);var n=this.engine,r=this;this.bt="opening",this.skipReconnect=!1;var e=Rt(n,"open",(function(){r.onopen(),t&&t()})),s=function(n){i.cleanup(),i.bt="closed",i.emitReserved("error",n),t?t(n):i.maybeReconnectOnOpen()},o=Rt(n,"error",s);if(!1!==this.It){var h=this.It,u=this.setTimeoutFn((function(){e(),s(new Error("timeout")),n.close()}),h);this.opts.autoUnref&&u.unref(),this.subs.push((function(){i.clearTimeoutFn(u)}))}return this.subs.push(e),this.subs.push(o),this},n.connect=function(t){return this.open(t)},n.onopen=function(){this.cleanup(),this.bt="open",this.emitReserved("open");var t=this.engine;this.subs.push(Rt(t,"ping",this.onping.bind(this)),Rt(t,"data",this.ondata.bind(this)),Rt(t,"error",this.onerror.bind(this)),Rt(t,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))},n.onping=function(){this.emitReserved("ping")},n.ondata=function(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}},n.ondecoded=function(t){var i=this;I((function(){i.emitReserved("packet",t)}),this.setTimeoutFn)},n.onerror=function(t){this.emitReserved("error",t)},n.socket=function(t,i){var n=this.nsps[t];return n?this.yt&&!n.active&&n.connect():(n=new Nt(this,t,i),this.nsps[t]=n),n},n.Ct=function(t){for(var i=0,n=Object.keys(this.nsps);i<n.length;i++){var r=n[i];if(this.nsps[r].active)return}this.Rt()},n.Et=function(t){for(var i=this.encoder.encode(t),n=0;n<i.length;n++)this.engine.write(i[n],t.options)},n.cleanup=function(){this.subs.forEach((function(t){return t()})),this.subs.length=0,this.decoder.destroy()},n.Rt=function(){this.skipReconnect=!0,this.wt=!1,this.onclose("forced close")},n.disconnect=function(){return this.Rt()},n.onclose=function(t,i){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this.bt="closed",this.emitReserved("close",t,i),this.Ut&&!this.skipReconnect&&this.reconnect()},n.reconnect=function(){var t=this;if(this.wt||this.skipReconnect)return this;var i=this;if(this.backoff.attempts>=this._t)this.backoff.reset(),this.emitReserved("reconnect_failed"),this.wt=!1;else{var n=this.backoff.duration();this.wt=!0;var r=this.setTimeoutFn((function(){i.skipReconnect||(t.emitReserved("reconnect_attempt",i.backoff.attempts),i.skipReconnect||i.open((function(n){n?(i.wt=!1,i.reconnect(),t.emitReserved("reconnect_error",n)):i.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){t.clearTimeoutFn(r)}))}},n.onreconnect=function(){var t=this.backoff.attempts;this.wt=!1,this.backoff.reset(),this.emitReserved("reconnect",t)},i}($),qt={};function Ft(t,i){"object"===a(t)&&(i=t,t=void 0);var n,r=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==n?n.protocol+"//"+t:"https://"+t),r=ct(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var e=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+e+":"+r.port+i,r.href=r.protocol+"://"+e+(n&&n.port===r.port?"":":"+r.port),r}(t,(i=i||{}).path||"/socket.io"),e=r.source,s=r.id,o=r.path,h=qt[s]&&o in qt[s].nsps;return i.forceNew||i["force new connection"]||!1===i.multiplex||h?n=new Vt(e,i):(qt[s]||(qt[s]=new Vt(e,i)),n=qt[s]),r.query&&!i.query&&(i.query=r.queryKey),n.socket(r.path,i)}return s(Ft,{Manager:Vt,Socket:Nt,io:Ft,connect:Ft}),Ft}));
6
+ !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).io=i()}(this,(function(){"use strict";function t(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(n){if("default"!==n&&!(n in t)){var r=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return i[n]}})}}))})),Object.freeze(t)}function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=Array(i);n<i;n++)r[n]=t[n];return r}function n(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function r(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function e(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0,e=function(){};return{s:e,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){h=!0,s=t},f:function(){try{o||null==n.return||n.return()}finally{if(h)throw s}}}}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(null,arguments)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function h(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,f(t,i)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,i){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},f(t,i)}function c(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){var i=function(t,i){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function l(t,n){if(t){if("string"==typeof t)return i(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,n):void 0}}function d(t){var i="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(i){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,n)}function n(){return function(t,i,n){if(u())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,i);var e=new(t.bind.apply(t,r));return n&&f(e,n.prototype),e}(t,arguments,o(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,t)},d(t)}var p=Object.create(null);p.open="0",p.close="1",p.ping="2",p.pong="3",p.message="4",p.upgrade="5",p.noop="6";var y=Object.create(null);Object.keys(p).forEach((function(t){y[p[t]]=t}));var w,b={type:"error",data:"parser error"},g="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),m="function"==typeof ArrayBuffer,k=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},A=function(t,i,n){var r=t.type,e=t.data;return g&&e instanceof Blob?i?n(e):E(e,n):m&&(e instanceof ArrayBuffer||k(e))?i?n(e):E(new Blob([e]),n):n(p[r]+(e||""))},E=function(t,i){var n=new FileReader;return n.onload=function(){var t=n.result.split(",")[1];i("b"+(t||""))},n.readAsDataURL(t)};function j(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),M=0;M<64;M++)S[O.charCodeAt(M)]=M;var B,T="function"==typeof ArrayBuffer,C=function(t,i){if("string"!=typeof t)return{type:"message",data:_(t,i)};var n=t.charAt(0);return"b"===n?{type:"message",data:U(t.substring(1),i)}:y[n]?t.length>1?{type:y[n],data:t.substring(1)}:{type:y[n]}:b},U=function(t,i){if(T){var n=function(t){var i,n,r,e,s,o=.75*t.length,h=t.length,u=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var f=new ArrayBuffer(o),c=new Uint8Array(f);for(i=0;i<h;i+=4)n=S[t.charCodeAt(i)],r=S[t.charCodeAt(i+1)],e=S[t.charCodeAt(i+2)],s=S[t.charCodeAt(i+3)],c[u++]=n<<2|r>>4,c[u++]=(15&r)<<4|e>>2,c[u++]=(3&e)<<6|63&s;return f}(t);return _(n,i)}return{base64:!0,data:t}},_=function(t,i){return"blob"===i?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer},I=String.fromCharCode(30);function x(){return new TransformStream({transform:function(t,i){!function(t,i){g&&t.data instanceof Blob?t.data.arrayBuffer().then(j).then(i):m&&(t.data instanceof ArrayBuffer||k(t.data))?i(j(t.data)):A(t,!1,(function(t){w||(w=new TextEncoder),i(w.encode(t))}))}(t,(function(n){var r,e=n.length;if(e<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,e);else if(e<65536){r=new Uint8Array(3);var s=new DataView(r.buffer);s.setUint8(0,126),s.setUint16(1,e)}else{r=new Uint8Array(9);var o=new DataView(r.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(e))}t.data&&"string"!=typeof t.data&&(r[0]|=128),i.enqueue(r),i.enqueue(n)}))}})}function D(t){return t.reduce((function(t,i){return t+i.length}),0)}function $(t,i){if(t[0].length===i)return t.shift();for(var n=new Uint8Array(i),r=0,e=0;e<i;e++)n[e]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function R(t){if(t)return function(t){for(var i in R.prototype)t[i]=R.prototype[i];return t}(t)}R.prototype.on=R.prototype.addEventListener=function(t,i){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(i),this},R.prototype.once=function(t,i){function n(){this.off(t,n),i.apply(this,arguments)}return n.fn=i,this.on(t,n),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(t,i){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var n,r=this.t["$"+t];if(!r)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var e=0;e<r.length;e++)if((n=r[e])===i||n.fn===i){r.splice(e,1);break}return 0===r.length&&delete this.t["$"+t],this},R.prototype.emit=function(t){this.t=this.t||{};for(var i=new Array(arguments.length-1),n=this.t["$"+t],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(n){r=0;for(var e=(n=n.slice(0)).length;r<e;++r)n[r].apply(this,i)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},R.prototype.hasListeners=function(t){return!!this.listeners(t).length};var L="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,i){return i(t,0)},N="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function P(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return n.reduce((function(i,n){return t.hasOwnProperty(n)&&(i[n]=t[n]),i}),{})}var V=N.setTimeout,q=N.clearTimeout;function F(t,i){i.useNativeTimers?(t.setTimeoutFn=V.bind(N),t.clearTimeoutFn=q.bind(N)):(t.setTimeoutFn=N.setTimeout.bind(N),t.clearTimeoutFn=N.clearTimeout.bind(N))}function X(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var H=function(t){function i(i,n,r){var e;return(e=t.call(this,i)||this).description=n,e.context=r,e.type="TransportError",e}return h(i,t),i}(d(Error)),z=function(t){function i(i){var n;return(n=t.call(this)||this).writable=!1,F(n,i),n.opts=i,n.query=i.query,n.socket=i.socket,n.supportsBinary=!i.forceBase64,n}h(i,t);var n=i.prototype;return n.onError=function(i,n,r){return t.prototype.emitReserved.call(this,"error",new H(i,n,r)),this},n.open=function(){return this.readyState="opening",this.doOpen(),this},n.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},n.send=function(t){"open"===this.readyState&&this.write(t)},n.onOpen=function(){this.readyState="open",this.writable=!0,t.prototype.emitReserved.call(this,"open")},n.onData=function(t){var i=C(t,this.socket.binaryType);this.onPacket(i)},n.onPacket=function(i){t.prototype.emitReserved.call(this,"packet",i)},n.onClose=function(i){this.readyState="closed",t.prototype.emitReserved.call(this,"close",i)},n.pause=function(t){},n.createUri=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t+"://"+this.i()+this.o()+this.opts.path+this.h(i)},n.i=function(){var t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"},n.o=function(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""},n.h=function(t){var i=function(t){var i="";for(var n in t)t.hasOwnProperty(n)&&(i.length&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return i}(t);return i.length?"?"+i:""},i}(R),G=function(t){function i(){var i;return(i=t.apply(this,arguments)||this).u=!1,i}h(i,t);var n=i.prototype;return n.doOpen=function(){this.v()},n.pause=function(t){var i=this;this.readyState="pausing";var n=function(){i.readyState="paused",t()};if(this.u||!this.writable){var r=0;this.u&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()},n.v=function(){this.u=!0,this.doPoll(),this.emitReserved("poll")},n.onData=function(t){var i=this;(function(t,i){for(var n=t.split(I),r=[],e=0;e<n.length;e++){var s=C(n[e],i);if(r.push(s),"error"===s.type)break}return r})(t,this.socket.binaryType).forEach((function(t){if("opening"===i.readyState&&"open"===t.type&&i.onOpen(),"close"===t.type)return i.onClose({description:"transport closed by the server"}),!1;i.onPacket(t)})),"closed"!==this.readyState&&(this.u=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.v())},n.doClose=function(){var t=this,i=function(){t.write([{type:"close"}])};"open"===this.readyState?i():this.once("open",i)},n.write=function(t){var i=this;this.writable=!1,function(t,i){var n=t.length,r=new Array(n),e=0;t.forEach((function(t,s){A(t,!1,(function(t){r[s]=t,++e===n&&i(r.join(I))}))}))}(t,(function(t){i.doWrite(t,(function(){i.writable=!0,i.emitReserved("drain")}))}))},n.uri=function(){var t=this.opts.secure?"https":"http",i=this.query||{};return!1!==this.opts.timestampRequests&&(i[this.opts.timestampParam]=X()),this.supportsBinary||i.sid||(i.b64=1),this.createUri(t,i)},r(i,[{key:"name",get:function(){return"polling"}}])}(z),J=!1;try{J="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}var K=J;function Q(){}var W=function(t){function i(i){var n;if(n=t.call(this,i)||this,"undefined"!=typeof location){var r="https:"===location.protocol,e=location.port;e||(e=r?"443":"80"),n.xd="undefined"!=typeof location&&i.hostname!==location.hostname||e!==i.port}return n}h(i,t);var n=i.prototype;return n.doWrite=function(t,i){var n=this,r=this.request({method:"POST",data:t});r.on("success",i),r.on("error",(function(t,i){n.onError("xhr post error",t,i)}))},n.doPoll=function(){var t=this,i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(function(i,n){t.onError("xhr poll error",i,n)})),this.pollXhr=i},i}(G),Y=function(t){function i(i,n,r){var e;return(e=t.call(this)||this).createRequest=i,F(e,r),e.l=r,e.p=r.method||"GET",e.m=n,e.k=void 0!==r.data?r.data:null,e.A(),e}h(i,t);var n=i.prototype;return n.A=function(){var t,n=this,r=P(this.l,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.l.xd;var e=this.j=this.createRequest(r);try{e.open(this.p,this.m,!0);try{if(this.l.extraHeaders)for(var s in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.l.extraHeaders)this.l.extraHeaders.hasOwnProperty(s)&&e.setRequestHeader(s,this.l.extraHeaders[s])}catch(t){}if("POST"===this.p)try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.l.cookieJar)||void 0===t||t.addCookies(e),"withCredentials"in e&&(e.withCredentials=this.l.withCredentials),this.l.requestTimeout&&(e.timeout=this.l.requestTimeout),e.onreadystatechange=function(){var t;3===e.readyState&&(null===(t=n.l.cookieJar)||void 0===t||t.parseCookies(e.getResponseHeader("set-cookie"))),4===e.readyState&&(200===e.status||1223===e.status?n.O():n.setTimeoutFn((function(){n.S("number"==typeof e.status?e.status:0)}),0))},e.send(this.k)}catch(t){return void this.setTimeoutFn((function(){n.S(t)}),0)}"undefined"!=typeof document&&(this.M=i.requestsCount++,i.requests[this.M]=this)},n.S=function(t){this.emitReserved("error",t,this.j),this.B(!0)},n.B=function(t){if(void 0!==this.j&&null!==this.j){if(this.j.onreadystatechange=Q,t)try{this.j.abort()}catch(t){}"undefined"!=typeof document&&delete i.requests[this.M],this.j=null}},n.O=function(){var t=this.j.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.B())},n.abort=function(){this.B()},i}(R);if(Y.requestsCount=0,Y.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Z);else if("function"==typeof addEventListener){addEventListener("onpagehide"in N?"pagehide":"unload",Z,!1)}function Z(){for(var t in Y.requests)Y.requests.hasOwnProperty(t)&&Y.requests[t].abort()}var tt,it=(tt=rt({xdomain:!1}))&&null!==tt.responseType,nt=function(t){function i(i){var n;n=t.call(this,i)||this;var r=i&&i.forceBase64;return n.supportsBinary=it&&!r,n}return h(i,t),i.prototype.request=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(t,{xd:this.xd},this.opts),new Y(rt,this.uri(),t)},i}(W);function rt(t){var i=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!i||K))return new XMLHttpRequest}catch(t){}if(!i)try{return new(N[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}var et="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),st=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.doOpen=function(){var t=this.uri(),i=this.opts.protocols,n=et?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,i,n)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()},n.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.opts.autoUnref&&t.ws.T.unref(),t.onOpen()},this.ws.onclose=function(i){return t.onClose({description:"websocket connection closed",context:i})},this.ws.onmessage=function(i){return t.onData(i.data)},this.ws.onerror=function(i){return t.onError("websocket error",i)}},n.write=function(t){var i=this;this.writable=!1;for(var n=function(){var n=t[r],e=r===t.length-1;A(n,i.supportsBinary,(function(t){try{i.doWrite(n,t)}catch(t){}e&&L((function(){i.writable=!0,i.emitReserved("drain")}),i.setTimeoutFn)}))},r=0;r<t.length;r++)n()},n.doClose=function(){void 0!==this.ws&&(this.ws.onerror=function(){},this.ws.close(),this.ws=null)},n.uri=function(){var t=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=X()),this.supportsBinary||(i.b64=1),this.createUri(t,i)},r(i,[{key:"name",get:function(){return"websocket"}}])}(z),ot=N.WebSocket||N.MozWebSocket,ht=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.createSocket=function(t,i,n){return et?new ot(t,i,n):i?new ot(t,i):new ot(t)},n.doWrite=function(t,i){this.ws.send(i)},i}(st),ut=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var n=i.prototype;return n.doOpen=function(){var t=this;try{this.C=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this.C.closed.then((function(){t.onClose()})).catch((function(i){t.onError("webtransport error",i)})),this.C.ready.then((function(){t.C.createBidirectionalStream().then((function(i){var n=function(t,i){B||(B=new TextDecoder);var n=[],r=0,e=-1,s=!1;return new TransformStream({transform:function(o,h){for(n.push(o);;){if(0===r){if(D(n)<1)break;var u=$(n,1);s=!(128&~u[0]),e=127&u[0],r=e<126?3:126===e?1:2}else if(1===r){if(D(n)<2)break;var f=$(n,2);e=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),r=3}else if(2===r){if(D(n)<8)break;var c=$(n,8),a=new DataView(c.buffer,c.byteOffset,c.length),v=a.getUint32(0);if(v>Math.pow(2,21)-1){h.enqueue(b);break}e=v*Math.pow(2,32)+a.getUint32(4),r=3}else{if(D(n)<e)break;var l=$(n,e);h.enqueue(C(s?l:B.decode(l),i)),r=0}if(0===e||e>t){h.enqueue(b);break}}}})}(Number.MAX_SAFE_INTEGER,t.socket.binaryType),r=i.readable.pipeThrough(n).getReader(),e=x();e.readable.pipeTo(i.writable),t.U=e.writable.getWriter();!function i(){r.read().then((function(n){var r=n.done,e=n.value;r||(t.onPacket(e),i())})).catch((function(t){}))}();var s={type:"open"};t.query.sid&&(s.data='{"sid":"'.concat(t.query.sid,'"}')),t.U.write(s).then((function(){return t.onOpen()}))}))}))},n.write=function(t){var i=this;this.writable=!1;for(var n=function(){var n=t[r],e=r===t.length-1;i.U.write(n).then((function(){e&&L((function(){i.writable=!0,i.emitReserved("drain")}),i.setTimeoutFn)}))},r=0;r<t.length;r++)n()},n.doClose=function(){var t;null===(t=this.C)||void 0===t||t.close()},r(i,[{key:"name",get:function(){return"webtransport"}}])}(z),ft={websocket:ht,webtransport:ut,polling:nt},ct=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,at=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vt(t){if(t.length>8e3)throw"URI too long";var i=t,n=t.indexOf("["),r=t.indexOf("]");-1!=n&&-1!=r&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));for(var e,s,o=ct.exec(t||""),h={},u=14;u--;)h[at[u]]=o[u]||"";return-1!=n&&-1!=r&&(h.source=i,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=function(t,i){var n=/\/{2,9}/g,r=i.replace(n,"/").split("/");"/"!=i.slice(0,1)&&0!==i.length||r.splice(0,1);"/"==i.slice(-1)&&r.splice(r.length-1,1);return r}(0,h.path),h.queryKey=(e=h.query,s={},e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,i,n){i&&(s[i]=n)})),s),h}var lt="function"==typeof addEventListener&&"function"==typeof removeEventListener,dt=[];lt&&addEventListener("offline",(function(){dt.forEach((function(t){return t()}))}),!1);var pt=function(t){function i(i){var n,r,e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((n=t.call(this)||this).binaryType="arraybuffer",n.writeBuffer=[],n._=0,n.I=[],n.D=-1,n.$=-1,n.R=-1,n.L=1/0,i&&"object"===v(i)&&(o=i,i=null),i){var h=vt(i);o.hostname=h.host,o.secure="https"===h.protocol||"wss"===h.protocol,o.port=h.port,h.query&&(o.query=h.query)}else o.host&&(o.hostname=vt(o.host).host);if(F(n,o),n.secure=null!=o.secure?o.secure:"undefined"!=typeof location&&"https:"===location.protocol,o.hostname&&!o.port&&(o.port=n.secure?"443":"80"),n.hostname=o.hostname||("undefined"!=typeof location?location.hostname:"localhost"),n.port=o.port||("undefined"!=typeof location&&location.port?location.port:n.secure?"443":"80"),o.transportImplementations&&o.transports)throw new Error("specifying both 'transportImplementations' and 'transports' options is not supported");return o.transportImplementations||(null===(r=o.transports)||void 0===r?void 0:r.length)&&"function"==typeof o.transports[0]?(n.transports=[],n.N=Object.create(null),(null!==(e=o.transportImplementations)&&void 0!==e?e:o.transports).forEach((function(t){var i=t.prototype.name;n.transports.push(i),n.N[i]=t}))):(n.transports=o.transports?c(o.transports):["polling","websocket","webtransport"],n.N=ft),n.opts=s({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},o),n.opts.path=n.opts.path.replace(/\/$/,"")+(n.opts.addTrailingSlash?"/":""),"string"==typeof n.opts.query&&(n.opts.query=function(t){for(var i={},n=t.split("&"),r=0,e=n.length;r<e;r++){var s=n[r].split("=");i[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return i}(n.opts.query)),lt&&(n.opts.closeOnBeforeunload&&(n.P=function(){n.transport&&(n.transport.removeAllListeners(),n.transport.close())},addEventListener("beforeunload",n.P,!1)),"localhost"!==n.hostname&&(n.V=function(){n.q("transport close",{description:"network connection lost"})},dt.push(n.V))),n.opts.withCredentials&&(n.F=void 0),n.X(),n}h(i,t);var n=i.prototype;return n.createTransport=function(t){var i=s({},this.opts.query);i.EIO=4,i.transport=t,this.id&&(i.sid=this.id);var n=s({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this.N[t](n)},n.X=function(){var t=this;if(0!==this.transports.length){var n=this.opts.rememberUpgrade&&i.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";var r=this.createTransport(n);r.open(),this.setTransport(r)}else this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0)},n.setTransport=function(t){var i=this;this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.H.bind(this)).on("packet",this.G.bind(this)).on("error",this.S.bind(this)).on("close",(function(t){return i.q("transport close",t)}))},n.J=function(t){var n=this,r=this.createTransport(t),e=!1;i.priorWebsocketSuccess=!1;var s=function(){e||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(t){if(!e)if("pong"===t.type&&"probe"===t.data){if(n.upgrading=!0,n.emitReserved("upgrading",r),!r)return;i.priorWebsocketSuccess="websocket"===r.name,n.transport.pause((function(){e||"closed"!==n.readyState&&(a(),n.setTransport(r),r.send([{type:"upgrade"}]),n.emitReserved("upgrade",r),r=null,n.upgrading=!1,n.flush())}))}else{var s=new Error("probe error");s.transport=r.name,n.emitReserved("upgradeError",s)}})))};function o(){e||(e=!0,a(),r.close(),r=null)}var h=function(t){var i=new Error("probe error: "+t);i.transport=r.name,o(),n.emitReserved("upgradeError",i)};function u(){h("transport closed")}function f(){h("socket closed")}function c(t){r&&t.name!==r.name&&o()}var a=function(){r.removeListener("open",s),r.removeListener("error",h),r.removeListener("close",u),n.off("close",f),n.off("upgrading",c)};r.once("open",s),r.once("error",h),r.once("close",u),this.once("close",f),this.once("upgrading",c),-1!==this.I.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((function(){e||r.open()}),200):r.open()},n.onOpen=function(){if(this.readyState="open",i.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(var t=0;t<this.I.length;t++)this.J(this.I[t])},n.G=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.K("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this.W();break;case"error":var i=new Error("server error");i.code=t.data,this.S(i);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}},n.onHandshake=function(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.I=this.Y(t.upgrades),this.D=t.pingInterval,this.$=t.pingTimeout,this.R=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.W()},n.W=function(){var t=this;this.clearTimeoutFn(this.Z);var i=this.D+this.$;this.L=Date.now()+i,this.Z=this.setTimeoutFn((function(){t.q("ping timeout")}),i),this.opts.autoUnref&&this.Z.unref()},n.H=function(){this.writeBuffer.splice(0,this._),this._=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()},n.flush=function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var t=this.tt();this.transport.send(t),this._=t.length,this.emitReserved("flush")}},n.tt=function(){if(!(this.R&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var t,i=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(i+="string"==typeof(t=r)?function(t){for(var i=0,n=0,r=0,e=t.length;r<e;r++)(i=t.charCodeAt(r))<128?n+=1:i<2048?n+=2:i<55296||i>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&i>this.R)return this.writeBuffer.slice(0,n);i+=2}return this.writeBuffer},n.it=function(){var t=this;if(!this.L)return!0;var i=Date.now()>this.L;return i&&(this.L=0,L((function(){t.q("ping timeout")}),this.setTimeoutFn)),i},n.write=function(t,i,n){return this.K("message",t,i,n),this},n.send=function(t,i,n){return this.K("message",t,i,n),this},n.K=function(t,i,n,r){if("function"==typeof i&&(r=i,i=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var e={type:t,data:i,options:n};this.emitReserved("packetCreate",e),this.writeBuffer.push(e),r&&this.once("flush",r),this.flush()}},n.close=function(){var t=this,i=function(){t.q("forced close"),t.transport.close()},n=function n(){t.off("upgrade",n),t.off("upgradeError",n),i()},r=function(){t.once("upgrade",n),t.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){t.upgrading?r():i()})):this.upgrading?r():i()),this},n.S=function(t){if(i.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this.X();this.emitReserved("error",t),this.q("transport error",t)},n.q=function(t,i){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this.Z),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),lt&&(this.P&&removeEventListener("beforeunload",this.P,!1),this.V)){var n=dt.indexOf(this.V);-1!==n&&dt.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,i),this.writeBuffer=[],this._=0}},n.Y=function(t){for(var i=[],n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&i.push(t[n]);return i},i}(R);pt.protocol=4,pt.protocol;var yt={},wt={};function bt(t,i,n){for(var r=0,e=0,s=n.length;e<s;e++)(r=n.charCodeAt(e))<128?t.setUint8(i++,r):r<2048?(t.setUint8(i++,192|r>>6),t.setUint8(i++,128|63&r)):r<55296||r>=57344?(t.setUint8(i++,224|r>>12),t.setUint8(i++,128|r>>6&63),t.setUint8(i++,128|63&r)):(e++,r=65536+((1023&r)<<10|1023&n.charCodeAt(e)),t.setUint8(i++,240|r>>18),t.setUint8(i++,128|r>>12&63),t.setUint8(i++,128|r>>6&63),t.setUint8(i++,128|63&r))}function gt(t,i,n){var r=v(n),e=0,s=0,o=0,h=0,u=0,f=0;if("string"===r){if(u=function(t){for(var i=0,n=0,r=0,e=t.length;r<e;r++)(i=t.charCodeAt(r))<128?n+=1:i<2048?n+=2:i<55296||i>=57344?n+=3:(r++,n+=4);return n}(n),u<32)t.push(160|u),f=1;else if(u<256)t.push(217,u),f=2;else if(u<65536)t.push(218,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("String too long");t.push(219,u>>24,u>>16,u>>8,u),f=5}return i.push({nt:n,rt:u,et:t.length}),f+u}if("number"===r)return Math.floor(n)===n&&isFinite(n)?n>=0?n<128?(t.push(n),1):n<256?(t.push(204,n),2):n<65536?(t.push(205,n>>8,n),3):n<4294967296?(t.push(206,n>>24,n>>16,n>>8,n),5):(o=n/Math.pow(2,32)|0,h=n>>>0,t.push(207,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),9):n>=-32?(t.push(n),1):n>=-128?(t.push(208,n),2):n>=-32768?(t.push(209,n>>8,n),3):n>=-2147483648?(t.push(210,n>>24,n>>16,n>>8,n),5):(o=Math.floor(n/Math.pow(2,32)),h=n>>>0,t.push(211,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),9):(t.push(203),i.push({st:n,rt:8,et:t.length}),9);if("object"===r){if(null===n)return t.push(192),1;if(Array.isArray(n)){if((u=n.length)<16)t.push(144|u),f=1;else if(u<65536)t.push(220,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Array too large");t.push(221,u>>24,u>>16,u>>8,u),f=5}for(e=0;e<u;e++)f+=gt(t,i,n[e]);return f}if(n instanceof Date){var c=n.getTime();return o=Math.floor(c/Math.pow(2,32)),h=c>>>0,t.push(215,0,o>>24,o>>16,o>>8,o,h>>24,h>>16,h>>8,h),10}if(n instanceof ArrayBuffer){if((u=n.byteLength)<256)t.push(196,u),f=2;else if(u<65536)t.push(197,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Buffer too large");t.push(198,u>>24,u>>16,u>>8,u),f=5}return i.push({ot:n,rt:u,et:t.length}),f+u}if("function"==typeof n.toJSON)return gt(t,i,n.toJSON());var a=[],l="",d=Object.keys(n);for(e=0,s=d.length;e<s;e++)"function"!=typeof n[l=d[e]]&&a.push(l);if((u=a.length)<16)t.push(128|u),f=1;else if(u<65536)t.push(222,u>>8,u),f=3;else{if(!(u<4294967296))throw new Error("Object too large");t.push(223,u>>24,u>>16,u>>8,u),f=5}for(e=0;e<u;e++)f+=gt(t,i,l=a[e]),f+=gt(t,i,n[l]);return f}if("boolean"===r)return t.push(n?195:194),1;if("undefined"===r)return t.push(212,0,0),3;throw new Error("Could not encode")}var mt=function(t){var i=[],n=[],r=gt(i,n,t),e=new ArrayBuffer(r),s=new DataView(e),o=0,h=0,u=-1;n.length>0&&(u=n[0].et);for(var f,c=0,a=0,v=0,l=i.length;v<l;v++)if(s.setUint8(h+v,i[v]),v+1===u){if(c=(f=n[o]).rt,a=h+u,f.ot)for(var d=new Uint8Array(f.ot),p=0;p<c;p++)s.setUint8(a+p,d[p]);else f.nt?bt(s,a,f.nt):void 0!==f.st&&s.setFloat64(a,f.st);h+=c,n[++o]&&(u=n[o].et)}return e};function kt(t){if(this.et=0,t instanceof ArrayBuffer)this.ht=t,this.ut=new DataView(this.ht);else{if(!ArrayBuffer.isView(t))throw new Error("Invalid argument");this.ht=t.buffer,this.ut=new DataView(this.ht,t.byteOffset,t.byteLength)}}kt.prototype.ft=function(t){for(var i=new Array(t),n=0;n<t;n++)i[n]=this.ct();return i},kt.prototype.vt=function(t){for(var i={},n=0;n<t;n++)i[this.ct()]=this.ct();return i},kt.prototype.nt=function(t){var i=function(t,i,n){for(var r="",e=0,s=i,o=i+n;s<o;s++){var h=t.getUint8(s);if(128&h)if(192!=(224&h))if(224!=(240&h)){if(240!=(248&h))throw new Error("Invalid byte "+h.toString(16));(e=(7&h)<<18|(63&t.getUint8(++s))<<12|(63&t.getUint8(++s))<<6|63&t.getUint8(++s))>=65536?(e-=65536,r+=String.fromCharCode(55296+(e>>>10),56320+(1023&e))):r+=String.fromCharCode(e)}else r+=String.fromCharCode((15&h)<<12|(63&t.getUint8(++s))<<6|63&t.getUint8(++s));else r+=String.fromCharCode((31&h)<<6|63&t.getUint8(++s));else r+=String.fromCharCode(h)}return r}(this.ut,this.et,t);return this.et+=t,i},kt.prototype.ot=function(t){var i=this.ht.slice(this.et,this.et+t);return this.et+=t,i},kt.prototype.ct=function(){var t,i=this.ut.getUint8(this.et++),n=0,r=0,e=0,s=0;if(i<192)return i<128?i:i<144?this.vt(15&i):i<160?this.ft(15&i):this.nt(31&i);if(i>223)return-1*(255-i+1);switch(i){case 192:return null;case 194:return!1;case 195:return!0;case 196:return n=this.ut.getUint8(this.et),this.et+=1,this.ot(n);case 197:return n=this.ut.getUint16(this.et),this.et+=2,this.ot(n);case 198:return n=this.ut.getUint32(this.et),this.et+=4,this.ot(n);case 199:return n=this.ut.getUint8(this.et),r=this.ut.getInt8(this.et+1),this.et+=2,[r,this.ot(n)];case 200:return n=this.ut.getUint16(this.et),r=this.ut.getInt8(this.et+2),this.et+=3,[r,this.ot(n)];case 201:return n=this.ut.getUint32(this.et),r=this.ut.getInt8(this.et+4),this.et+=5,[r,this.ot(n)];case 202:return t=this.ut.getFloat32(this.et),this.et+=4,t;case 203:return t=this.ut.getFloat64(this.et),this.et+=8,t;case 204:return t=this.ut.getUint8(this.et),this.et+=1,t;case 205:return t=this.ut.getUint16(this.et),this.et+=2,t;case 206:return t=this.ut.getUint32(this.et),this.et+=4,t;case 207:return e=this.ut.getUint32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,e+s;case 208:return t=this.ut.getInt8(this.et),this.et+=1,t;case 209:return t=this.ut.getInt16(this.et),this.et+=2,t;case 210:return t=this.ut.getInt32(this.et),this.et+=4,t;case 211:return e=this.ut.getInt32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,e+s;case 212:return r=this.ut.getInt8(this.et),this.et+=1,0===r?void(this.et+=1):[r,this.ot(1)];case 213:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(2)];case 214:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(4)];case 215:return r=this.ut.getInt8(this.et),this.et+=1,0===r?(e=this.ut.getInt32(this.et)*Math.pow(2,32),s=this.ut.getUint32(this.et+4),this.et+=8,new Date(e+s)):[r,this.ot(8)];case 216:return r=this.ut.getInt8(this.et),this.et+=1,[r,this.ot(16)];case 217:return n=this.ut.getUint8(this.et),this.et+=1,this.nt(n);case 218:return n=this.ut.getUint16(this.et),this.et+=2,this.nt(n);case 219:return n=this.ut.getUint32(this.et),this.et+=4,this.nt(n);case 220:return n=this.ut.getUint16(this.et),this.et+=2,this.ft(n);case 221:return n=this.ut.getUint32(this.et),this.et+=4,this.ft(n);case 222:return n=this.ut.getUint16(this.et),this.et+=2,this.vt(n);case 223:return n=this.ut.getUint32(this.et),this.et+=4,this.vt(n)}throw new Error("Could not parse")};var At=function(t){var i=new kt(t),n=i.ct();if(i.et!==t.byteLength)throw new Error(t.byteLength-i.et+" trailing bytes");return n};wt.encode=mt,wt.decode=At;var Et={exports:{}};!function(t){function i(t){if(t)return function(t){for(var n in i.prototype)t[n]=i.prototype[n];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,i){return this.t=this.t||{},(this.t["$"+t]=this.t["$"+t]||[]).push(i),this},i.prototype.once=function(t,i){function n(){this.off(t,n),i.apply(this,arguments)}return n.fn=i,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,i){if(this.t=this.t||{},0==arguments.length)return this.t={},this;var n,r=this.t["$"+t];if(!r)return this;if(1==arguments.length)return delete this.t["$"+t],this;for(var e=0;e<r.length;e++)if((n=r[e])===i||n.fn===i){r.splice(e,1);break}return 0===r.length&&delete this.t["$"+t],this},i.prototype.emit=function(t){this.t=this.t||{};for(var i=new Array(arguments.length-1),n=this.t["$"+t],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(n){r=0;for(var e=(n=n.slice(0)).length;r<e;++r)n[r].apply(this,i)}return this},i.prototype.listeners=function(t){return this.t=this.t||{},this.t["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(Et);var jt,Ot=wt,St=Et.exports,Mt=yt.protocol=5,Bt=jt=yt.PacketType={CONNECT:0,DISCONNECT:1,EVENT:2,ACK:3,CONNECT_ERROR:4},Tt=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Ct=function(t){return"string"==typeof t},Ut=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function _t(){}function It(){}_t.prototype.encode=function(t){return[Ot.encode(t)]},St(It.prototype),It.prototype.add=function(t){var i=Ot.decode(t);this.checkPacket(i),this.emit("decoded",i)},It.prototype.checkPacket=function(t){if(!(Tt(t.type)&&t.type>=Bt.CONNECT&&t.type<=Bt.CONNECT_ERROR))throw new Error("invalid packet type");if(!Ct(t.nsp))throw new Error("invalid namespace");if(!function(t){switch(t.type){case Bt.CONNECT:return void 0===t.data||Ut(t.data);case Bt.DISCONNECT:return void 0===t.data;case Bt.CONNECT_ERROR:return Ct(t.data)||Ut(t.data);default:return Array.isArray(t.data)}}(t))throw new Error("invalid payload");if(!(void 0===t.id||Tt(t.id)))throw new Error("invalid packet id")},It.prototype.destroy=function(){};var xt=yt.Encoder=_t,Dt=yt.Decoder=It,$t=t({__proto__:null,protocol:Mt,get PacketType(){return jt},Encoder:xt,Decoder:Dt,default:yt},[yt]);function Rt(t,i,n){return t.on(i,n),function(){t.off(i,n)}}var Lt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Nt=function(t){function i(i,n,r){var e;return(e=t.call(this)||this).connected=!1,e.recovered=!1,e.receiveBuffer=[],e.sendBuffer=[],e.lt=[],e.dt=0,e.ids=0,e.acks={},e.flags={},e.io=i,e.nsp=n,r&&r.auth&&(e.auth=r.auth),e.l=s({},r),e.io.yt&&e.open(),e}h(i,t);var n=i.prototype;return n.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[Rt(t,"open",this.onopen.bind(this)),Rt(t,"packet",this.onpacket.bind(this)),Rt(t,"error",this.onerror.bind(this)),Rt(t,"close",this.onclose.bind(this))]}},n.connect=function(){return this.connected||(this.subEvents(),this.io.wt||this.io.open(),"open"===this.io.bt&&this.onopen()),this},n.open=function(){return this.connect()},n.send=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.unshift("message"),this.emit.apply(this,i),this},n.emit=function(t){var i,n,r;if(Lt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');for(var e=arguments.length,s=new Array(e>1?e-1:0),o=1;o<e;o++)s[o-1]=arguments[o];if(s.unshift(t),this.l.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this.gt(s),this;var h={type:jt.EVENT,data:s,options:{}};if(h.options.compress=!1!==this.flags.compress,"function"==typeof s[s.length-1]){var u=this.ids++,f=s.pop();this.kt(u,f),h.id=u}var c=null===(n=null===(i=this.io.engine)||void 0===i?void 0:i.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r.it());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this},n.kt=function(t,i){var n,r=this,e=null!==(n=this.flags.timeout)&&void 0!==n?n:this.l.ackTimeout;if(void 0!==e){var s=this.io.setTimeoutFn((function(){delete r.acks[t];for(var n=0;n<r.sendBuffer.length;n++)r.sendBuffer[n].id===t&&r.sendBuffer.splice(n,1);i.call(r,new Error("operation has timed out"))}),e),o=function(){r.io.clearTimeoutFn(s);for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];i.apply(r,n)};o.withError=!0,this.acks[t]=o}else this.acks[t]=i},n.emitWithAck=function(t){for(var i=this,n=arguments.length,r=new Array(n>1?n-1:0),e=1;e<n;e++)r[e-1]=arguments[e];return new Promise((function(n,e){var s=function(t,i){return t?e(t):n(i)};s.withError=!0,r.push(s),i.emit.apply(i,[t].concat(r))}))},n.gt=function(t){var i,n=this;"function"==typeof t[t.length-1]&&(i=t.pop());var r={id:this.dt++,tryCount:0,pending:!1,args:t,flags:s({fromQueue:!0},this.flags)};t.push((function(t){if(n.lt[0],null!==t)r.tryCount>n.l.retries&&(n.lt.shift(),i&&i(t));else if(n.lt.shift(),i){for(var e=arguments.length,s=new Array(e>1?e-1:0),o=1;o<e;o++)s[o-1]=arguments[o];i.apply(void 0,[null].concat(s))}return r.pending=!1,n.At()})),this.lt.push(r),this.At()},n.At=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.connected&&0!==this.lt.length){var i=this.lt[0];i.pending&&!t||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}},n.packet=function(t){t.nsp=this.nsp,this.io.Et(t)},n.onopen=function(){var t=this;"function"==typeof this.auth?this.auth((function(i){t.jt(i)})):this.jt(this.auth)},n.jt=function(t){this.packet({type:jt.CONNECT,data:this.Ot?s({pid:this.Ot,offset:this.St},t):t})},n.onerror=function(t){this.connected||this.emitReserved("connect_error",t)},n.onclose=function(t,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,i),this.Mt()},n.Mt=function(){var t=this;Object.keys(this.acks).forEach((function(i){if(!t.sendBuffer.some((function(t){return String(t.id)===i}))){var n=t.acks[i];delete t.acks[i],n.withError&&n.call(t,new Error("socket has been disconnected"))}}))},n.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case jt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case jt.EVENT:case jt.BINARY_EVENT:this.onevent(t);break;case jt.ACK:case jt.BINARY_ACK:this.onack(t);break;case jt.DISCONNECT:this.ondisconnect();break;case jt.CONNECT_ERROR:this.destroy();var i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i)}},n.onevent=function(t){var i=t.data||[];null!=t.id&&i.push(this.ack(t.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))},n.emitEvent=function(i){if(this.Bt&&this.Bt.length){var n,r=e(this.Bt.slice());try{for(r.s();!(n=r.n()).done;){n.value.apply(this,i)}}catch(t){r.e(t)}finally{r.f()}}t.prototype.emit.apply(this,i),this.Ot&&i.length&&"string"==typeof i[i.length-1]&&(this.St=i[i.length-1])},n.ack=function(t){var i=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,e=new Array(r),s=0;s<r;s++)e[s]=arguments[s];i.packet({type:jt.ACK,id:t,data:e})}}},n.onack=function(t){var i=this.acks[t.id];"function"==typeof i&&(delete this.acks[t.id],i.withError&&t.data.unshift(null),i.apply(this,t.data))},n.onconnect=function(t,i){this.id=t,this.recovered=i&&this.Ot===i,this.Ot=i,this.connected=!0,this.emitBuffered(),this.At(!0),this.emitReserved("connect")},n.emitBuffered=function(){var t=this;this.receiveBuffer.forEach((function(i){return t.emitEvent(i)})),this.receiveBuffer=[],this.sendBuffer.forEach((function(i){t.notifyOutgoingListeners(i),t.packet(i)})),this.sendBuffer=[]},n.ondisconnect=function(){this.destroy(),this.onclose("io server disconnect")},n.destroy=function(){this.subs&&(this.subs.forEach((function(t){return t()})),this.subs=void 0),this.io.Tt(this)},n.disconnect=function(){return this.connected&&this.packet({type:jt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},n.close=function(){return this.disconnect()},n.compress=function(t){return this.flags.compress=t,this},n.timeout=function(t){return this.flags.timeout=t,this},n.onAny=function(t){return this.Bt=this.Bt||[],this.Bt.push(t),this},n.prependAny=function(t){return this.Bt=this.Bt||[],this.Bt.unshift(t),this},n.offAny=function(t){if(!this.Bt)return this;if(t){for(var i=this.Bt,n=0;n<i.length;n++)if(t===i[n])return i.splice(n,1),this}else this.Bt=[];return this},n.listenersAny=function(){return this.Bt||[]},n.onAnyOutgoing=function(t){return this.Ct=this.Ct||[],this.Ct.push(t),this},n.prependAnyOutgoing=function(t){return this.Ct=this.Ct||[],this.Ct.unshift(t),this},n.offAnyOutgoing=function(t){if(!this.Ct)return this;if(t){for(var i=this.Ct,n=0;n<i.length;n++)if(t===i[n])return i.splice(n,1),this}else this.Ct=[];return this},n.listenersAnyOutgoing=function(){return this.Ct||[]},n.notifyOutgoingListeners=function(t){if(this.Ct&&this.Ct.length){var i,n=e(this.Ct.slice());try{for(n.s();!(i=n.n()).done;){i.value.apply(this,t.data)}}catch(t){n.e(t)}finally{n.f()}}},r(i,[{key:"disconnected",get:function(){return!this.connected}},{key:"active",get:function(){return!!this.subs}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}}])}(R);function Pt(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),n=Math.floor(i*this.jitter*t);t=1&Math.floor(10*i)?t+n:t-n}return 0|Math.min(t,this.max)},Pt.prototype.reset=function(){this.attempts=0},Pt.prototype.setMin=function(t){this.ms=t},Pt.prototype.setMax=function(t){this.max=t},Pt.prototype.setJitter=function(t){this.jitter=t};var Vt=function(t){function i(i,n){var r,e;(r=t.call(this)||this).nsps={},r.subs=[],i&&"object"===v(i)&&(n=i,i=void 0),(n=n||{}).path=n.path||"/socket.io",r.opts=n,F(r,n),r.reconnection(!1!==n.reconnection),r.reconnectionAttempts(n.reconnectionAttempts||1/0),r.reconnectionDelay(n.reconnectionDelay||1e3),r.reconnectionDelayMax(n.reconnectionDelayMax||5e3),r.randomizationFactor(null!==(e=n.randomizationFactor)&&void 0!==e?e:.5),r.backoff=new Pt({min:r.reconnectionDelay(),max:r.reconnectionDelayMax(),jitter:r.randomizationFactor()}),r.timeout(null==n.timeout?2e4:n.timeout),r.bt="closed",r.uri=i;var s=n.parser||$t;return r.encoder=new s.Encoder,r.decoder=new s.Decoder,r.yt=!1!==n.autoConnect,r.yt&&r.open(),r}h(i,t);var n=i.prototype;return n.reconnection=function(t){return arguments.length?(this.Ut=!!t,t||(this.skipReconnect=!0),this):this.Ut},n.reconnectionAttempts=function(t){return void 0===t?this._t:(this._t=t,this)},n.reconnectionDelay=function(t){var i;return void 0===t?this.It:(this.It=t,null===(i=this.backoff)||void 0===i||i.setMin(t),this)},n.randomizationFactor=function(t){var i;return void 0===t?this.xt:(this.xt=t,null===(i=this.backoff)||void 0===i||i.setJitter(t),this)},n.reconnectionDelayMax=function(t){var i;return void 0===t?this.Dt:(this.Dt=t,null===(i=this.backoff)||void 0===i||i.setMax(t),this)},n.timeout=function(t){return arguments.length?(this.$t=t,this):this.$t},n.maybeReconnectOnOpen=function(){!this.wt&&this.Ut&&0===this.backoff.attempts&&this.reconnect()},n.open=function(t){var i=this;if(~this.bt.indexOf("open"))return this;this.engine=new pt(this.uri,this.opts);var n=this.engine,r=this;this.bt="opening",this.skipReconnect=!1;var e=Rt(n,"open",(function(){r.onopen(),t&&t()})),s=function(n){i.cleanup(),i.bt="closed",i.emitReserved("error",n),t?t(n):i.maybeReconnectOnOpen()},o=Rt(n,"error",s);if(!1!==this.$t){var h=this.$t,u=this.setTimeoutFn((function(){e(),s(new Error("timeout")),n.close()}),h);this.opts.autoUnref&&u.unref(),this.subs.push((function(){i.clearTimeoutFn(u)}))}return this.subs.push(e),this.subs.push(o),this},n.connect=function(t){return this.open(t)},n.onopen=function(){this.cleanup(),this.bt="open",this.emitReserved("open");var t=this.engine;this.subs.push(Rt(t,"ping",this.onping.bind(this)),Rt(t,"data",this.ondata.bind(this)),Rt(t,"error",this.onerror.bind(this)),Rt(t,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))},n.onping=function(){this.emitReserved("ping")},n.ondata=function(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}},n.ondecoded=function(t){var i=this;L((function(){i.emitReserved("packet",t)}),this.setTimeoutFn)},n.onerror=function(t){this.emitReserved("error",t)},n.socket=function(t,i){var n=this.nsps[t];return n?this.yt&&!n.active&&n.connect():(n=new Nt(this,t,i),this.nsps[t]=n),n},n.Tt=function(t){for(var i=0,n=Object.keys(this.nsps);i<n.length;i++){var r=n[i];if(this.nsps[r].active)return}this.Rt()},n.Et=function(t){for(var i=this.encoder.encode(t),n=0;n<i.length;n++)this.engine.write(i[n],t.options)},n.cleanup=function(){this.subs.forEach((function(t){return t()})),this.subs.length=0,this.decoder.destroy()},n.Rt=function(){this.skipReconnect=!0,this.wt=!1,this.onclose("forced close")},n.disconnect=function(){return this.Rt()},n.onclose=function(t,i){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this.bt="closed",this.emitReserved("close",t,i),this.Ut&&!this.skipReconnect&&this.reconnect()},n.reconnect=function(){var t=this;if(this.wt||this.skipReconnect)return this;var i=this;if(this.backoff.attempts>=this._t)this.backoff.reset(),this.emitReserved("reconnect_failed"),this.wt=!1;else{var n=this.backoff.duration();this.wt=!0;var r=this.setTimeoutFn((function(){i.skipReconnect||(t.emitReserved("reconnect_attempt",i.backoff.attempts),i.skipReconnect||i.open((function(n){n?(i.wt=!1,i.reconnect(),t.emitReserved("reconnect_error",n)):i.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){t.clearTimeoutFn(r)}))}},n.onreconnect=function(){var t=this.backoff.attempts;this.wt=!1,this.backoff.reset(),this.emitReserved("reconnect",t)},i}(R),qt={};function Ft(t,i){"object"===v(t)&&(i=t,t=void 0);var n,r=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=t;n=n||"undefined"!=typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==n?n.protocol+"//"+t:"https://"+t),r=vt(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var e=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+e+":"+r.port+i,r.href=r.protocol+"://"+e+(n&&n.port===r.port?"":":"+r.port),r}(t,(i=i||{}).path||"/socket.io"),e=r.source,s=r.id,o=r.path,h=qt[s]&&o in qt[s].nsps;return i.forceNew||i["force new connection"]||!1===i.multiplex||h?n=new Vt(e,i):(qt[s]||(qt[s]=new Vt(e,i)),n=qt[s]),r.query&&!i.query&&(i.query=r.queryKey),n.socket(r.path,i)}return s(Ft,{Manager:Vt,Socket:Nt,io:Ft,connect:Ft}),Ft}));
7
7
  //# sourceMappingURL=socket.io.msgpack.min.js.map