@nethesis/phone-island 0.7.78 → 0.7.80

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 (239) hide show
  1. package/dist/App.d.ts +1 -0
  2. package/dist/App.js +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
  5. package/dist/_virtual/floating-ui.dom.esm.js +2 -0
  6. package/dist/_virtual/floating-ui.dom.esm.js.map +1 -0
  7. package/dist/_virtual/index.js +1 -1
  8. package/dist/_virtual/index3.js +1 -1
  9. package/dist/_virtual/index4.js +1 -1
  10. package/dist/_virtual/index5.js +1 -1
  11. package/dist/_virtual/index6.js +1 -1
  12. package/dist/_virtual/index8.js +1 -1
  13. package/dist/_virtual/index9.js +2 -0
  14. package/dist/_virtual/index9.js.map +1 -0
  15. package/dist/_virtual/react-tooltip.min.cjs.js +2 -0
  16. package/dist/_virtual/react-tooltip.min.cjs.js.map +1 -0
  17. package/dist/components/Button.js +1 -1
  18. package/dist/components/Button.js.map +1 -1
  19. package/dist/components/CallView/Actions.js +1 -1
  20. package/dist/components/CallView/Actions.js.map +1 -1
  21. package/dist/components/CallView/Avatar.js +1 -1
  22. package/dist/components/CallView/Avatar.js.map +1 -1
  23. package/dist/components/CallView/BackCall.js +1 -1
  24. package/dist/components/CallView/BackCall.js.map +1 -1
  25. package/dist/components/CallView/DisplayName.js +1 -1
  26. package/dist/components/CallView/DisplayName.js.map +1 -1
  27. package/dist/components/CallView/index.js +1 -1
  28. package/dist/components/CallView/index.js.map +1 -1
  29. package/dist/components/Events.d.ts +1 -0
  30. package/dist/components/Events.js +1 -1
  31. package/dist/components/Events.js.map +1 -1
  32. package/dist/components/Hangup.d.ts +1 -0
  33. package/dist/components/Hangup.js +1 -1
  34. package/dist/components/Hangup.js.map +1 -1
  35. package/dist/components/Island.js +1 -1
  36. package/dist/components/Island.js.map +1 -1
  37. package/dist/components/KeypadView/index.js +1 -1
  38. package/dist/components/KeypadView/index.js.map +1 -1
  39. package/dist/components/Socket.js +1 -1
  40. package/dist/components/Socket.js.map +1 -1
  41. package/dist/components/TransferView/ListAvatar.d.ts +2 -2
  42. package/dist/components/TransferView/ListAvatar.js +1 -1
  43. package/dist/components/TransferView/ListAvatar.js.map +1 -1
  44. package/dist/components/TransferView/TransferActions.js +1 -1
  45. package/dist/components/TransferView/TransferActions.js.map +1 -1
  46. package/dist/components/TransferView/TransferList.js +1 -1
  47. package/dist/components/TransferView/TransferList.js.map +1 -1
  48. package/dist/components/WebRTC.d.ts +2 -0
  49. package/dist/components/WebRTC.js +1 -1
  50. package/dist/components/WebRTC.js.map +1 -1
  51. package/dist/events/CallEvents.d.ts +3 -1
  52. package/dist/events/CallEvents.js +1 -1
  53. package/dist/events/CallEvents.js.map +1 -1
  54. package/dist/index.css +1 -1
  55. package/dist/lib/devices/devices.js +1 -1
  56. package/dist/lib/phone/call.d.ts +2 -2
  57. package/dist/lib/phone/call.js +1 -1
  58. package/dist/lib/phone/call.js.map +1 -1
  59. package/dist/lib/webrtc/messages.d.ts +6 -1
  60. package/dist/lib/webrtc/messages.js +1 -1
  61. package/dist/lib/webrtc/messages.js.map +1 -1
  62. package/dist/models/currentCall.d.ts +67 -0
  63. package/dist/models/currentCall.js +1 -1
  64. package/dist/models/currentCall.js.map +1 -1
  65. package/dist/models/motions.js +1 -1
  66. package/dist/models/motions.js.map +1 -1
  67. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +1 -1
  68. package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +1 -1
  69. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs.js +2 -0
  70. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs.js.map +1 -0
  71. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +2 -0
  72. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js.map +1 -0
  73. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  74. package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js +1 -1
  75. package/dist/node_modules/@nethesis/nethesis-light-svg-icons/index.mjs.js.map +1 -1
  76. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js +1 -1
  77. package/dist/node_modules/@nethesis/nethesis-solid-svg-icons/index.mjs.js.map +1 -1
  78. package/dist/node_modules/@rematch/core/dist/core.esm.js +1 -1
  79. package/dist/node_modules/@rematch/core/dist/core.esm.js.map +1 -1
  80. package/dist/node_modules/bowser/es5.js +1 -1
  81. package/dist/node_modules/bowser/es5.js.map +1 -1
  82. package/dist/node_modules/classnames/index.js +7 -0
  83. package/dist/node_modules/classnames/index.js.map +1 -0
  84. package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js +1 -1
  85. package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js.map +1 -1
  86. package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js +1 -1
  87. package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js.map +1 -1
  88. package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js +1 -1
  89. package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js.map +1 -1
  90. package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js +1 -1
  91. package/dist/node_modules/engine.io-client/build/esm/contrib/yeast.js.map +1 -1
  92. package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js +1 -1
  93. package/dist/node_modules/engine.io-client/build/esm/globalThis.browser.js.map +1 -1
  94. package/dist/node_modules/engine.io-client/build/esm/socket.js +1 -1
  95. package/dist/node_modules/engine.io-client/build/esm/socket.js.map +1 -1
  96. package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
  97. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
  98. package/dist/node_modules/engine.io-client/build/esm/transports/index.js +1 -1
  99. package/dist/node_modules/engine.io-client/build/esm/transports/index.js.map +1 -1
  100. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +1 -1
  101. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +1 -1
  102. package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js +1 -1
  103. package/dist/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js.map +1 -1
  104. package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js +1 -1
  105. package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js.map +1 -1
  106. package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js +1 -1
  107. package/dist/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js.map +1 -1
  108. package/dist/node_modules/engine.io-client/build/esm/util.js +1 -1
  109. package/dist/node_modules/engine.io-client/build/esm/util.js.map +1 -1
  110. package/dist/node_modules/engine.io-parser/build/esm/commons.js +1 -1
  111. package/dist/node_modules/engine.io-parser/build/esm/commons.js.map +1 -1
  112. package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +1 -1
  113. package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js.map +1 -1
  114. package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +1 -1
  115. package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js.map +1 -1
  116. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +1 -1
  117. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +1 -1
  118. package/dist/node_modules/engine.io-parser/build/esm/index.js +1 -1
  119. package/dist/node_modules/engine.io-parser/build/esm/index.js.map +1 -1
  120. package/dist/node_modules/framer-motion/dist/framer-motion.js +1 -1
  121. package/dist/node_modules/framer-motion/dist/framer-motion.js.map +1 -1
  122. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  123. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +9 -1
  124. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  125. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +9 -1
  126. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  127. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  128. package/dist/node_modules/immer/dist/immer.esm.mjs.js +1 -1
  129. package/dist/node_modules/immer/dist/immer.esm.mjs.js.map +1 -1
  130. package/dist/node_modules/js-base64/base64.mjs.js +1 -1
  131. package/dist/node_modules/js-base64/base64.mjs.js.map +1 -1
  132. package/dist/node_modules/mic-check/lib/index.js +1 -1
  133. package/dist/node_modules/mic-check/lib/requestMediaPermissions.js +1 -1
  134. package/dist/node_modules/mic-check/lib/requestMediaPermissions.js.map +1 -1
  135. package/dist/node_modules/moment/moment.js +2 -2
  136. package/dist/node_modules/moment/moment.js.map +1 -1
  137. package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
  138. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  139. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  140. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  141. package/dist/node_modules/prop-types/index.js +1 -1
  142. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +9 -1
  143. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  144. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +9 -1
  145. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  146. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  147. package/dist/node_modules/react-is/cjs/react-is.development.js +9 -1
  148. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  149. package/dist/node_modules/react-is/cjs/react-is.production.min.js +9 -1
  150. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  151. package/dist/node_modules/react-is/index.js +1 -1
  152. package/dist/node_modules/react-is/index.js.map +1 -1
  153. package/dist/node_modules/react-moment/dist/index.js +2 -2
  154. package/dist/node_modules/react-moment/dist/index.js.map +1 -1
  155. package/dist/node_modules/react-redux/es/components/Context.js +1 -1
  156. package/dist/node_modules/react-redux/es/components/Context.js.map +1 -1
  157. package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
  158. package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
  159. package/dist/node_modules/react-redux/es/hooks/useDispatch.js +1 -1
  160. package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +1 -1
  161. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js +1 -1
  162. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js.map +1 -1
  163. package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
  164. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
  165. package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
  166. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
  167. package/dist/node_modules/react-redux/es/utils/Subscription.js +1 -1
  168. package/dist/node_modules/react-redux/es/utils/Subscription.js.map +1 -1
  169. package/dist/node_modules/react-redux/es/utils/batch.js +1 -1
  170. package/dist/node_modules/react-redux/es/utils/batch.js.map +1 -1
  171. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js +1 -1
  172. package/dist/node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js.map +1 -1
  173. package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js +1 -1
  174. package/dist/node_modules/react-redux/es/utils/useSyncExternalStore.js.map +1 -1
  175. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js +10 -1
  176. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  177. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js +10 -1
  178. package/dist/node_modules/react-redux/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  179. package/dist/node_modules/react-redux/node_modules/react-is/index.js +1 -1
  180. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.cjs.js +2 -0
  181. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.cjs.js.map +1 -0
  182. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js +2 -0
  183. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js.map +1 -0
  184. package/dist/node_modules/redux/es/redux.js +1 -1
  185. package/dist/node_modules/redux/es/redux.js.map +1 -1
  186. package/dist/node_modules/sdp/sdp.js +1 -1
  187. package/dist/node_modules/sdp/sdp.js.map +1 -1
  188. package/dist/node_modules/socket.io-client/build/esm/index.js +1 -1
  189. package/dist/node_modules/socket.io-client/build/esm/index.js.map +1 -1
  190. package/dist/node_modules/socket.io-client/build/esm/manager.js +1 -1
  191. package/dist/node_modules/socket.io-client/build/esm/manager.js.map +1 -1
  192. package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
  193. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
  194. package/dist/node_modules/socket.io-client/build/esm/url.js +1 -1
  195. package/dist/node_modules/socket.io-client/build/esm/url.js.map +1 -1
  196. package/dist/node_modules/socket.io-parser/build/esm/binary.js +1 -1
  197. package/dist/node_modules/socket.io-parser/build/esm/binary.js.map +1 -1
  198. package/dist/node_modules/socket.io-parser/build/esm/index.js +1 -1
  199. package/dist/node_modules/socket.io-parser/build/esm/index.js.map +1 -1
  200. package/dist/node_modules/socket.io-parser/build/esm/is-binary.js +1 -1
  201. package/dist/node_modules/socket.io-parser/build/esm/is-binary.js.map +1 -1
  202. package/dist/node_modules/style-inject/dist/style-inject.es.js +2 -0
  203. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  204. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js +1 -1
  205. package/dist/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -1
  206. package/dist/node_modules/tslib/tslib.es6.js +1 -1
  207. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  208. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +1 -1
  209. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js +1 -1
  210. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  211. package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js +1 -1
  212. package/dist/node_modules/webrtc-adapter/src/js/adapter_core.js.map +1 -1
  213. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
  214. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
  215. package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js +1 -1
  216. package/dist/node_modules/webrtc-adapter/src/js/chrome/chrome_shim.js.map +1 -1
  217. package/dist/node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js +1 -1
  218. package/dist/node_modules/webrtc-adapter/src/js/chrome/getdisplaymedia.js.map +1 -1
  219. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js +1 -1
  220. package/dist/node_modules/webrtc-adapter/src/js/chrome/getusermedia.js.map +1 -1
  221. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
  222. package/dist/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
  223. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js +1 -1
  224. package/dist/node_modules/webrtc-adapter/src/js/firefox/firefox_shim.js.map +1 -1
  225. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js +1 -1
  226. package/dist/node_modules/webrtc-adapter/src/js/firefox/getdisplaymedia.js.map +1 -1
  227. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js +1 -1
  228. package/dist/node_modules/webrtc-adapter/src/js/firefox/getusermedia.js.map +1 -1
  229. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +1 -1
  230. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +1 -1
  231. package/dist/node_modules/webrtc-adapter/src/js/utils.js +1 -1
  232. package/dist/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
  233. package/dist/services/astproxy.js +1 -1
  234. package/dist/services/astproxy.js.map +1 -1
  235. package/dist/styles/Island.styles.js +1 -1
  236. package/dist/styles/Island.styles.js.map +1 -1
  237. package/package.json +3 -2
  238. package/dist/node_modules/engine.io-client/build/esm/index.js +0 -2
  239. package/dist/node_modules/engine.io-client/build/esm/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"websocket.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/websocket.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { encode } from \"../contrib/parseqs.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { pick } from \"../util.js\";\nimport { defaultBinaryType, nextTick, usingBrowserWebSocket, WebSocket } from \"./websocket-constructor.js\";\nimport { encodePacket } from \"engine.io-parser\";\n// detect ReactNative environment\nconst isReactNative = typeof navigator !== \"undefined\" &&\n typeof navigator.product === \"string\" &&\n navigator.product.toLowerCase() === \"reactnative\";\nexport class WS extends Transport {\n /**\n * WebSocket transport constructor.\n *\n * @api {Object} connection options\n * @api public\n */\n constructor(opts) {\n super(opts);\n this.supportsBinary = !opts.forceBase64;\n }\n /**\n * Transport name.\n *\n * @api public\n */\n get name() {\n return \"websocket\";\n }\n /**\n * Opens socket.\n *\n * @api private\n */\n doOpen() {\n if (!this.check()) {\n // let probe timeout\n return;\n }\n const uri = this.uri();\n const protocols = this.opts.protocols;\n // React Native only supports the 'headers' option, and will print a warning if anything else is passed\n const opts = isReactNative\n ? {}\n : pick(this.opts, \"agent\", \"perMessageDeflate\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"localAddress\", \"protocolVersion\", \"origin\", \"maxPayload\", \"family\", \"checkServerIdentity\");\n if (this.opts.extraHeaders) {\n opts.headers = this.opts.extraHeaders;\n }\n try {\n this.ws =\n usingBrowserWebSocket && !isReactNative\n ? protocols\n ? new WebSocket(uri, protocols)\n : new WebSocket(uri)\n : new WebSocket(uri, protocols, opts);\n }\n catch (err) {\n return this.emitReserved(\"error\", err);\n }\n this.ws.binaryType = this.socket.binaryType || defaultBinaryType;\n this.addEventListeners();\n }\n /**\n * Adds event listeners to the socket\n *\n * @api private\n */\n addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = closeEvent => this.onClose({\n description: \"websocket connection closed\",\n context: closeEvent\n });\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }\n /**\n * Writes data to socket.\n *\n * @param {Array} array of packets.\n * @api private\n */\n write(packets) {\n this.writable = false;\n // encodePacket efficient as it uses WS framing\n // no need for encodePayload\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n encodePacket(packet, this.supportsBinary, data => {\n // always create a new object (GH-437)\n const opts = {};\n if (!usingBrowserWebSocket) {\n if (packet.options) {\n opts.compress = packet.options.compress;\n }\n if (this.opts.perMessageDeflate) {\n const len = \n // @ts-ignore\n \"string\" === typeof data ? Buffer.byteLength(data) : data.length;\n if (len < this.opts.perMessageDeflate.threshold) {\n opts.compress = false;\n }\n }\n }\n // Sometimes the websocket has already been closed but the browser didn't\n // have a chance of informing us about it yet, in that case send will\n // throw an error\n try {\n if (usingBrowserWebSocket) {\n // TypeError is thrown when passing the second argument on Safari\n this.ws.send(data);\n }\n else {\n this.ws.send(data, opts);\n }\n }\n catch (e) {\n }\n if (lastPacket) {\n // fake drain\n // defer to next tick to allow Socket to clear writeBuffer\n nextTick(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n /**\n * Closes socket.\n *\n * @api private\n */\n doClose() {\n if (typeof this.ws !== \"undefined\") {\n this.ws.close();\n this.ws = null;\n }\n }\n /**\n * Generates uri for connection.\n *\n * @api private\n */\n uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n (\"ws\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n // append timestamp to URI\n if (this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * Feature detection for WebSocket.\n *\n * @return {Boolean} whether this transport is available.\n * @api public\n */\n check() {\n return !!WebSocket;\n }\n}\n"],"names":["isReactNative","navigator","product","toLowerCase","WS","_Transport","_inherits","_super","_createSuper","opts","_this","_classCallCheck","this","call","supportsBinary","forceBase64","_createClass","createClass","key","get","value","check","uri","protocols","pick","extraHeaders","headers","ws","usingBrowserWebSocket","WebSocket","err","emitReserved","binaryType","socket","defaultBinaryType","addEventListeners","_this2","onopen","autoUnref","_socket","unref","onOpen","onclose","closeEvent","onClose","description","context","onmessage","ev","onData","data","onerror","e","onError","packets","_this3","writable","_loop","i","packet","lastPacket","length","encodePacket","send","nextTick","setTimeoutFn","close","query","schema","secure","port","Number","timestampRequests","timestampParam","yeast","b64","encodedQuery","encode","hostname","indexOf","path","Transport"],"mappings":"4gBAOA,IAAMA,EAAqC,oBAAdC,WACI,iBAAtBA,UAAUC,SACmB,gBAApCD,UAAUC,QAAQC,cACTC,EAAE,SAAAC,GAAAC,WAAAF,EAAAC,GAAA,IAAAE,EAAAC,cAAAJ,GAOX,SAAAA,EAAYK,GAAM,IAAAC,EAE0B,OAF1BC,iBAAAC,KAAAR,IACdM,EAAAH,EAAAM,KAAAD,KAAMH,IACDK,gBAAkBL,EAAKM,YAAYL,CAC5C,CAsKC,OArKDM,EAAAC,YAAAb,EAAA,CAAA,CAAAc,IAAA,OAAAC,IAKA,WACI,MAAO,WACX,GACA,CAAAD,IAAA,SAAAE,MAKA,WACI,GAAKR,KAAKS,QAAV,CAIA,IAAMC,EAAMV,KAAKU,MACXC,EAAYX,KAAKH,KAAKc,UAEtBd,EAAOT,EACP,CAAA,EACAwB,EAAIA,KAACZ,KAAKH,KAAM,QAAS,oBAAqB,MAAO,MAAO,aAAc,OAAQ,KAAM,UAAW,qBAAsB,eAAgB,kBAAmB,SAAU,aAAc,SAAU,uBAChMG,KAAKH,KAAKgB,eACVhB,EAAKiB,QAAUd,KAAKH,KAAKgB,cAE7B,IACIb,KAAKe,GACDC,0BAA0B5B,EACpBuB,EACI,IAAIM,EAASA,UAACP,EAAKC,GACnB,IAAIM,EAAAA,UAAUP,GAClB,IAAIO,EAASA,UAACP,EAAKC,EAAWd,EAI5C,CAFA,MAAOqB,GACH,OAAOlB,KAAKmB,aAAa,QAASD,EACtC,CACAlB,KAAKe,GAAGK,WAAapB,KAAKqB,OAAOD,YAAcE,oBAC/CtB,KAAKuB,mBAtBL,CAuBJ,GACA,CAAAjB,IAAA,oBAAAE,MAKA,WAAoB,IAAAgB,EAAAxB,KAChBA,KAAKe,GAAGU,OAAS,WACTD,EAAK3B,KAAK6B,WACVF,EAAKT,GAAGY,QAAQC,QAEpBJ,EAAKK,UAET7B,KAAKe,GAAGe,QAAU,SAAAC,GAAU,OAAIP,EAAKQ,QAAQ,CACzCC,YAAa,8BACbC,QAASH,GACX,EACF/B,KAAKe,GAAGoB,UAAY,SAAAC,GAAE,OAAIZ,EAAKa,OAAOD,EAAGE,KAAK,EAC9CtC,KAAKe,GAAGwB,QAAU,SAAAC,GAAC,OAAIhB,EAAKiB,QAAQ,kBAAmBD,EAAE,CAC7D,GACA,CAAAlC,IAAA,QAAAE,MAMA,SAAMkC,GAAS,IAAAC,EAAA3C,KACXA,KAAK4C,UAAW,EAGhB,IADA,IAAAC,EAAA,SACSC,GACL,IAAMC,EAASL,EAAQI,GACjBE,EAAaF,IAAMJ,EAAQO,OAAS,EAC1CC,EAAAA,QAAaH,EAAQJ,EAAKzC,gBAAgB,SAAAoC,GAmBtC,IACQtB,yBAEA2B,EAAK5B,GAAGoC,KAAKb,EAOrB,CADA,MAAOE,GACP,CACIQ,GAGAI,EAAAA,UAAS,WACLT,EAAKC,UAAW,EAChBD,EAAKxB,aAAa,QACtB,GAAGwB,EAAKU,aAEhB,GAAG,EAzCEP,EAAI,EAAGA,EAAIJ,EAAQO,OAAQH,IAAKD,EAAhCC,EA2Cb,GACA,CAAAxC,IAAA,UAAAE,MAKA,gBAC2B,IAAZR,KAAKe,KACZf,KAAKe,GAAGuC,QACRtD,KAAKe,GAAK,KAElB,GACA,CAAAT,IAAA,MAAAE,MAKA,WACI,IAAI+C,EAAQvD,KAAKuD,OAAS,GACpBC,EAASxD,KAAKH,KAAK4D,OAAS,MAAQ,KACtCC,EAAO,GAEP1D,KAAKH,KAAK6D,OACR,QAAUF,GAAqC,MAA3BG,OAAO3D,KAAKH,KAAK6D,OAClC,OAASF,GAAqC,KAA3BG,OAAO3D,KAAKH,KAAK6D,SACzCA,EAAO,IAAM1D,KAAKH,KAAK6D,MAGvB1D,KAAKH,KAAK+D,oBACVL,EAAMvD,KAAKH,KAAKgE,gBAAkBC,EAAKA,SAGtC9D,KAAKE,iBACNqD,EAAMQ,IAAM,GAEhB,IAAMC,EAAeC,SAAOV,GAE5B,OAAQC,EACJ,QAF8C,IAArCxD,KAAKH,KAAKqE,SAASC,QAAQ,KAG5B,IAAMnE,KAAKH,KAAKqE,SAAW,IAAMlE,KAAKH,KAAKqE,UACnDR,EACA1D,KAAKH,KAAKuE,MACTJ,EAAaf,OAAS,IAAMe,EAAe,GACpD,GACA,CAAA1D,IAAA,QAAAE,MAMA,WACI,QAASS,EAAAA,SACb,KAACzB,CAAA,CAhLU,CAAS6E,EAASA"}
1
+ {"version":3,"file":"websocket.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/websocket.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { encode } from \"../contrib/parseqs.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { pick } from \"../util.js\";\nimport { defaultBinaryType, nextTick, usingBrowserWebSocket, WebSocket } from \"./websocket-constructor.js\";\nimport { encodePacket } from \"engine.io-parser\";\n// detect ReactNative environment\nconst isReactNative = typeof navigator !== \"undefined\" &&\n typeof navigator.product === \"string\" &&\n navigator.product.toLowerCase() === \"reactnative\";\nexport class WS extends Transport {\n /**\n * WebSocket transport constructor.\n *\n * @api {Object} connection options\n * @api public\n */\n constructor(opts) {\n super(opts);\n this.supportsBinary = !opts.forceBase64;\n }\n /**\n * Transport name.\n *\n * @api public\n */\n get name() {\n return \"websocket\";\n }\n /**\n * Opens socket.\n *\n * @api private\n */\n doOpen() {\n if (!this.check()) {\n // let probe timeout\n return;\n }\n const uri = this.uri();\n const protocols = this.opts.protocols;\n // React Native only supports the 'headers' option, and will print a warning if anything else is passed\n const opts = isReactNative\n ? {}\n : pick(this.opts, \"agent\", \"perMessageDeflate\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"localAddress\", \"protocolVersion\", \"origin\", \"maxPayload\", \"family\", \"checkServerIdentity\");\n if (this.opts.extraHeaders) {\n opts.headers = this.opts.extraHeaders;\n }\n try {\n this.ws =\n usingBrowserWebSocket && !isReactNative\n ? protocols\n ? new WebSocket(uri, protocols)\n : new WebSocket(uri)\n : new WebSocket(uri, protocols, opts);\n }\n catch (err) {\n return this.emitReserved(\"error\", err);\n }\n this.ws.binaryType = this.socket.binaryType || defaultBinaryType;\n this.addEventListeners();\n }\n /**\n * Adds event listeners to the socket\n *\n * @api private\n */\n addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = closeEvent => this.onClose({\n description: \"websocket connection closed\",\n context: closeEvent\n });\n this.ws.onmessage = ev => this.onData(ev.data);\n this.ws.onerror = e => this.onError(\"websocket error\", e);\n }\n /**\n * Writes data to socket.\n *\n * @param {Array} array of packets.\n * @api private\n */\n write(packets) {\n this.writable = false;\n // encodePacket efficient as it uses WS framing\n // no need for encodePayload\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n encodePacket(packet, this.supportsBinary, data => {\n // always create a new object (GH-437)\n const opts = {};\n if (!usingBrowserWebSocket) {\n if (packet.options) {\n opts.compress = packet.options.compress;\n }\n if (this.opts.perMessageDeflate) {\n const len = \n // @ts-ignore\n \"string\" === typeof data ? Buffer.byteLength(data) : data.length;\n if (len < this.opts.perMessageDeflate.threshold) {\n opts.compress = false;\n }\n }\n }\n // Sometimes the websocket has already been closed but the browser didn't\n // have a chance of informing us about it yet, in that case send will\n // throw an error\n try {\n if (usingBrowserWebSocket) {\n // TypeError is thrown when passing the second argument on Safari\n this.ws.send(data);\n }\n else {\n this.ws.send(data, opts);\n }\n }\n catch (e) {\n }\n if (lastPacket) {\n // fake drain\n // defer to next tick to allow Socket to clear writeBuffer\n nextTick(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n /**\n * Closes socket.\n *\n * @api private\n */\n doClose() {\n if (typeof this.ws !== \"undefined\") {\n this.ws.close();\n this.ws = null;\n }\n }\n /**\n * Generates uri for connection.\n *\n * @api private\n */\n uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n (\"ws\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n // append timestamp to URI\n if (this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }\n /**\n * Feature detection for WebSocket.\n *\n * @return {Boolean} whether this transport is available.\n * @api public\n */\n check() {\n return !!WebSocket;\n }\n}\n"],"names":["isReactNative","navigator","product","toLowerCase","WS","Transport","constructor","opts","super","this","supportsBinary","forceBase64","name","doOpen","check","uri","protocols","pick","extraHeaders","headers","ws","usingBrowserWebSocket","WebSocket","err","emitReserved","binaryType","socket","defaultBinaryType","addEventListeners","onopen","autoUnref","_socket","unref","onOpen","onclose","closeEvent","onClose","description","context","onmessage","ev","onData","data","onerror","e","onError","write","packets","writable","i","length","packet","lastPacket","encodePacket","send","nextTick","setTimeoutFn","doClose","close","query","schema","secure","port","Number","timestampRequests","timestampParam","yeast","b64","encodedQuery","encode","hostname","indexOf","path"],"mappings":"0cAOA,MAAMA,EAAqC,oBAAdC,WACI,iBAAtBA,UAAUC,SACmB,gBAApCD,UAAUC,QAAQC,cACf,MAAMC,UAAWC,EAAAA,UAOpBC,YAAYC,GACRC,MAAMD,GACNE,KAAKC,gBAAkBH,EAAKI,WAChC,CAMIC,WACA,MAAO,WACX,CAMAC,SACI,IAAKJ,KAAKK,QAEN,OAEJ,MAAMC,EAAMN,KAAKM,MACXC,EAAYP,KAAKF,KAAKS,UAEtBT,EAAOP,EACP,CAAA,EACAiB,EAAIA,KAACR,KAAKF,KAAM,QAAS,oBAAqB,MAAO,MAAO,aAAc,OAAQ,KAAM,UAAW,qBAAsB,eAAgB,kBAAmB,SAAU,aAAc,SAAU,uBAChME,KAAKF,KAAKW,eACVX,EAAKY,QAAUV,KAAKF,KAAKW,cAE7B,IACIT,KAAKW,GACDC,0BAA0BrB,EACpBgB,EACI,IAAIM,EAASA,UAACP,EAAKC,GACnB,IAAIM,EAAAA,UAAUP,GAClB,IAAIO,EAASA,UAACP,EAAKC,EAAWT,EAI5C,CAFA,MAAOgB,GACH,OAAOd,KAAKe,aAAa,QAASD,EACtC,CACAd,KAAKW,GAAGK,WAAahB,KAAKiB,OAAOD,YAAcE,oBAC/ClB,KAAKmB,mBACT,CAMAA,oBACInB,KAAKW,GAAGS,OAAS,KACTpB,KAAKF,KAAKuB,WACVrB,KAAKW,GAAGW,QAAQC,QAEpBvB,KAAKwB,QAAQ,EAEjBxB,KAAKW,GAAGc,QAAUC,GAAc1B,KAAK2B,QAAQ,CACzCC,YAAa,8BACbC,QAASH,IAEb1B,KAAKW,GAAGmB,UAAYC,GAAM/B,KAAKgC,OAAOD,EAAGE,MACzCjC,KAAKW,GAAGuB,QAAUC,GAAKnC,KAAKoC,QAAQ,kBAAmBD,EAC3D,CAOAE,MAAMC,GACFtC,KAAKuC,UAAW,EAGhB,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACrC,MAAME,EAASJ,EAAQE,GACjBG,EAAaH,IAAMF,EAAQG,OAAS,EAC1CG,EAAAA,QAAaF,EAAQ1C,KAAKC,gBAAgBgC,IAmBtC,IACQrB,yBAEAZ,KAAKW,GAAGkC,KAAKZ,EAOrB,CADA,MAAOE,GACP,CACIQ,GAGAG,EAAAA,UAAS,KACL9C,KAAKuC,UAAW,EAChBvC,KAAKe,aAAa,QAAQ,GAC3Bf,KAAK+C,aACZ,GAER,CACJ,CAMAC,eAC2B,IAAZhD,KAAKW,KACZX,KAAKW,GAAGsC,QACRjD,KAAKW,GAAK,KAElB,CAMAL,MACI,IAAI4C,EAAQlD,KAAKkD,OAAS,GAC1B,MAAMC,EAASnD,KAAKF,KAAKsD,OAAS,MAAQ,KAC1C,IAAIC,EAAO,GAEPrD,KAAKF,KAAKuD,OACR,QAAUF,GAAqC,MAA3BG,OAAOtD,KAAKF,KAAKuD,OAClC,OAASF,GAAqC,KAA3BG,OAAOtD,KAAKF,KAAKuD,SACzCA,EAAO,IAAMrD,KAAKF,KAAKuD,MAGvBrD,KAAKF,KAAKyD,oBACVL,EAAMlD,KAAKF,KAAK0D,gBAAkBC,EAAKA,SAGtCzD,KAAKC,iBACNiD,EAAMQ,IAAM,GAEhB,MAAMC,EAAeC,SAAOV,GAE5B,OAAQC,EACJ,QAF8C,IAArCnD,KAAKF,KAAK+D,SAASC,QAAQ,KAG5B,IAAM9D,KAAKF,KAAK+D,SAAW,IAAM7D,KAAKF,KAAK+D,UACnDR,EACArD,KAAKF,KAAKiE,MACTJ,EAAalB,OAAS,IAAMkB,EAAe,GACpD,CAOAtD,QACI,QAASQ,EAAAA,SACb"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../contrib/has-cors.js"),t=require("../globalThis.browser.js");exports.XHR=function(r){var i=r.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!i||e.hasCORS))return new XMLHttpRequest}catch(e){}if(!i)try{return new(t.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../contrib/has-cors.js"),t=require("../globalThis.browser.js");exports.XHR=function(r){const o=r.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!o||e.hasCORS))return new XMLHttpRequest}catch(e){}if(!o)try{return new(t.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}};
2
2
  //# sourceMappingURL=xmlhttprequest.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"xmlhttprequest.browser.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"],"sourcesContent":["// browser shim for xmlhttprequest module\nimport { hasCORS } from \"../contrib/has-cors.js\";\nimport { globalThisShim as globalThis } from \"../globalThis.js\";\nexport function XHR(opts) {\n const xdomain = opts.xdomain;\n // XMLHttpRequest can be disabled on IE\n try {\n if (\"undefined\" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {\n return new XMLHttpRequest();\n }\n }\n catch (e) { }\n if (!xdomain) {\n try {\n return new globalThis[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\");\n }\n catch (e) { }\n }\n}\n"],"names":["opts","xdomain","XMLHttpRequest","hasCORS","e","globalThis","globalThisShim","concat","join"],"mappings":"8JAGO,SAAaA,GAChB,IAAMC,EAAUD,EAAKC,QAErB,IACI,GAAI,oBAAuBC,kBAAoBD,GAAWE,EAAOA,SAC7D,OAAO,IAAID,cAGP,CAAZ,MAAOE,GAAK,CACZ,IAAKH,EACD,IACI,OAAO,IAAII,EAAUC,eAAC,CAAC,UAAUC,OAAO,UAAUC,KAAK,OAAM,oBAErD,CAAZ,MAAOJ,GAAK,CAEpB"}
1
+ {"version":3,"file":"xmlhttprequest.browser.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js"],"sourcesContent":["// browser shim for xmlhttprequest module\nimport { hasCORS } from \"../contrib/has-cors.js\";\nimport { globalThisShim as globalThis } from \"../globalThis.js\";\nexport function XHR(opts) {\n const xdomain = opts.xdomain;\n // XMLHttpRequest can be disabled on IE\n try {\n if (\"undefined\" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {\n return new XMLHttpRequest();\n }\n }\n catch (e) { }\n if (!xdomain) {\n try {\n return new globalThis[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\");\n }\n catch (e) { }\n }\n}\n"],"names":["opts","xdomain","XMLHttpRequest","hasCORS","e","globalThis","globalThisShim","concat","join"],"mappings":"8JAGO,SAAaA,GAChB,MAAMC,EAAUD,EAAKC,QAErB,IACI,GAAI,oBAAuBC,kBAAoBD,GAAWE,EAAOA,SAC7D,OAAO,IAAID,cAGP,CAAZ,MAAOE,GAAK,CACZ,IAAKH,EACD,IACI,OAAO,IAAII,EAAUC,eAAC,CAAC,UAAUC,OAAO,UAAUC,KAAK,OAAM,oBAErD,CAAZ,MAAOJ,GAAK,CAEpB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./globalThis.browser.js");var t=setTimeout,i=clearTimeout;exports.byteLength=function(e){return"string"==typeof e?function(e){for(var t=0,i=0,r=0,n=e.length;r<n;r++)(t=e.charCodeAt(r))<128?i+=1:t<2048?i+=2:t<55296||t>=57344?i+=3:(r++,i+=4);return i}(e):Math.ceil(1.33*(e.byteLength||e.size))},exports.installTimerFunctions=function(r,n){n.useNativeTimers?(r.setTimeoutFn=t.bind(e.globalThisShim),r.clearTimeoutFn=i.bind(e.globalThisShim)):(r.setTimeoutFn=setTimeout.bind(e.globalThisShim),r.clearTimeoutFn=clearTimeout.bind(e.globalThisShim))},exports.pick=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((function(t,i){return e.hasOwnProperty(i)&&(t[i]=e[i]),t}),{})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./globalThis.browser.js");const t=setTimeout,i=clearTimeout;exports.byteLength=function(e){return"string"==typeof e?function(e){let t=0,i=0;for(let r=0,n=e.length;r<n;r++)t=e.charCodeAt(r),t<128?i+=1:t<2048?i+=2:t<55296||t>=57344?i+=3:(r++,i+=4);return i}(e):Math.ceil(1.33*(e.byteLength||e.size))},exports.installTimerFunctions=function(r,n){n.useNativeTimers?(r.setTimeoutFn=t.bind(e.globalThisShim),r.clearTimeoutFn=i.bind(e.globalThisShim)):(r.setTimeoutFn=setTimeout.bind(e.globalThisShim),r.clearTimeoutFn=clearTimeout.bind(e.globalThisShim))},exports.pick=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce(((t,i)=>(e.hasOwnProperty(i)&&(t[i]=e[i]),t)),{})};
2
2
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../node_modules/engine.io-client/build/esm/util.js"],"sourcesContent":["import { globalThisShim as globalThis } from \"./globalThis.js\";\nexport function pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a reference to the real timeout functions so they can be used when overridden\nconst NATIVE_SET_TIMEOUT = setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = clearTimeout;\nexport function installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis);\n }\n else {\n obj.setTimeoutFn = setTimeout.bind(globalThis);\n obj.clearTimeoutFn = clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE9\nexport function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n"],"names":["NATIVE_SET_TIMEOUT","setTimeout","NATIVE_CLEAR_TIMEOUT","clearTimeout","obj","str","c","length","i","l","charCodeAt","utf8Length","Math","ceil","byteLength","size","opts","useNativeTimers","setTimeoutFn","bind","globalThis","globalThisShim","clearTimeoutFn","_len","arguments","attr","Array","_key","reduce","acc","k","hasOwnProperty"],"mappings":"6GAUA,IAAMA,EAAqBC,WACrBC,EAAuBC,gCActB,SAAoBC,GACvB,MAAmB,iBAARA,EAMf,SAAoBC,GAEhB,IADA,IAAIC,EAAI,EAAGC,EAAS,EACXC,EAAI,EAAGC,EAAIJ,EAAIE,OAAQC,EAAIC,EAAGD,KACnCF,EAAID,EAAIK,WAAWF,IACX,IACJD,GAAU,EAELD,EAAI,KACTC,GAAU,EAELD,EAAI,OAAUA,GAAK,MACxBC,GAAU,GAGVC,IACAD,GAAU,GAGlB,OAAOA,CACX,CAxBeI,CAAWP,GAGfQ,KAAKC,KAPQ,MAOFT,EAAIU,YAAcV,EAAIW,MAC5C,gCAnBO,SAA+BX,EAAKY,GACnCA,EAAKC,iBACLb,EAAIc,aAAelB,EAAmBmB,KAAKC,EAAUC,gBACrDjB,EAAIkB,eAAiBpB,EAAqBiB,KAAKC,EAAUC,kBAGzDjB,EAAIc,aAAejB,WAAWkB,KAAKC,EAAUC,gBAC7CjB,EAAIkB,eAAiBnB,aAAagB,KAAKC,EAAUC,gBAEzD,eApBO,SAAcjB,GAAc,IAAA,IAAAmB,EAAAC,UAAAjB,OAANkB,EAAI,IAAAC,MAAAH,EAAA,EAAAA,EAAA,EAAA,GAAAI,EAAA,EAAAA,EAAAJ,EAAAI,IAAJF,EAAIE,EAAA,GAAAH,UAAAG,GAC7B,OAAOF,EAAKG,QAAO,SAACC,EAAKC,GAIrB,OAHI1B,EAAI2B,eAAeD,KACnBD,EAAIC,GAAK1B,EAAI0B,IAEVD,CACV,GAAE,CAAE,EACT"}
1
+ {"version":3,"file":"util.js","sources":["../../../../../node_modules/engine.io-client/build/esm/util.js"],"sourcesContent":["import { globalThisShim as globalThis } from \"./globalThis.js\";\nexport function pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a reference to the real timeout functions so they can be used when overridden\nconst NATIVE_SET_TIMEOUT = setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = clearTimeout;\nexport function installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis);\n }\n else {\n obj.setTimeoutFn = setTimeout.bind(globalThis);\n obj.clearTimeoutFn = clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE9\nexport function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n"],"names":["NATIVE_SET_TIMEOUT","setTimeout","NATIVE_CLEAR_TIMEOUT","clearTimeout","obj","str","c","length","i","l","charCodeAt","utf8Length","Math","ceil","byteLength","size","opts","useNativeTimers","setTimeoutFn","bind","globalThis","globalThisShim","clearTimeoutFn","_len","arguments","attr","Array","_key","reduce","acc","k","hasOwnProperty"],"mappings":"6GAUA,MAAMA,EAAqBC,WACrBC,EAAuBC,gCActB,SAAoBC,GACvB,MAAmB,iBAARA,EAMf,SAAoBC,GAChB,IAAIC,EAAI,EAAGC,EAAS,EACpB,IAAK,IAAIC,EAAI,EAAGC,EAAIJ,EAAIE,OAAQC,EAAIC,EAAGD,IACnCF,EAAID,EAAIK,WAAWF,GACfF,EAAI,IACJC,GAAU,EAELD,EAAI,KACTC,GAAU,EAELD,EAAI,OAAUA,GAAK,MACxBC,GAAU,GAGVC,IACAD,GAAU,GAGlB,OAAOA,CACX,CAxBeI,CAAWP,GAGfQ,KAAKC,KAPQ,MAOFT,EAAIU,YAAcV,EAAIW,MAC5C,gCAnBO,SAA+BX,EAAKY,GACnCA,EAAKC,iBACLb,EAAIc,aAAelB,EAAmBmB,KAAKC,EAAUC,gBACrDjB,EAAIkB,eAAiBpB,EAAqBiB,KAAKC,EAAUC,kBAGzDjB,EAAIc,aAAejB,WAAWkB,KAAKC,EAAUC,gBAC7CjB,EAAIkB,eAAiBnB,aAAagB,KAAKC,EAAUC,gBAEzD,eApBO,SAAcjB,GAAc,IAAA,IAAAmB,EAAAC,UAAAjB,OAANkB,EAAI,IAAAC,MAAAH,EAAA,EAAAA,EAAA,EAAA,GAAAI,EAAA,EAAAA,EAAAJ,EAAAI,IAAJF,EAAIE,EAAA,GAAAH,UAAAG,GAC7B,OAAOF,EAAKG,QAAO,CAACC,EAAKC,KACjB1B,EAAI2B,eAAeD,KACnBD,EAAIC,GAAK1B,EAAI0B,IAEVD,IACR,CAAE,EACT"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.create(null);e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";var r=Object.create(null);Object.keys(e).forEach((function(t){r[e[t]]=t}));exports.ERROR_PACKET={type:"error",data:"parser error"},exports.PACKET_TYPES=e,exports.PACKET_TYPES_REVERSE=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=Object.create(null);e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const r=Object.create(null);Object.keys(e).forEach((t=>{r[e[t]]=t}));exports.ERROR_PACKET={type:"error",data:"parser error"},exports.PACKET_TYPES=e,exports.PACKET_TYPES_REVERSE=r;
2
2
  //# sourceMappingURL=commons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commons.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/commons.js"],"sourcesContent":["const PACKET_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYPES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { type: \"error\", data: \"parser error\" };\nexport { PACKET_TYPES, PACKET_TYPES_REVERSE, ERROR_PACKET };\n"],"names":["PACKET_TYPES","Object","create","PACKET_TYPES_REVERSE","keys","forEach","key","type","data"],"mappings":"oEAAMA,IAAAA,EAAeC,OAAOC,OAAO,MACnCF,EAAmB,KAAI,IACvBA,EAAoB,MAAI,IACxBA,EAAmB,KAAI,IACvBA,EAAmB,KAAI,IACvBA,EAAsB,QAAI,IAC1BA,EAAsB,QAAI,IAC1BA,EAAmB,KAAI,IACvB,IAAMG,EAAuBF,OAAOC,OAAO,MAC3CD,OAAOG,KAAKJ,GAAcK,SAAQ,SAAAC,GAC9BH,EAAqBH,EAAaM,IAAQA,CAC9C,yBACqB,CAAEC,KAAM,QAASC,KAAM"}
1
+ {"version":3,"file":"commons.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/commons.js"],"sourcesContent":["const PACKET_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYPES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { type: \"error\", data: \"parser error\" };\nexport { PACKET_TYPES, PACKET_TYPES_REVERSE, ERROR_PACKET };\n"],"names":["PACKET_TYPES","Object","create","PACKET_TYPES_REVERSE","keys","forEach","key","type","data"],"mappings":"oEAAMA,MAAAA,EAAeC,OAAOC,OAAO,MACnCF,EAAmB,KAAI,IACvBA,EAAoB,MAAI,IACxBA,EAAmB,KAAI,IACvBA,EAAmB,KAAI,IACvBA,EAAsB,QAAI,IAC1BA,EAAsB,QAAI,IAC1BA,EAAmB,KAAI,IACvB,MAAMG,EAAuBF,OAAOC,OAAO,MAC3CD,OAAOG,KAAKJ,GAAcK,SAAQC,IAC9BH,EAAqBH,EAAaM,IAAQA,CAAG,yBAE5B,CAAEC,KAAM,QAASC,KAAM"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),t=0;t<e.length;t++)r[e.charCodeAt(t)]=t;exports.decode=function(e){var t,n,o,a,d,h=.75*e.length,c=e.length,A=0;"="===e[e.length-1]&&(h--,"="===e[e.length-2]&&h--);var f=new ArrayBuffer(h),i=new Uint8Array(f);for(t=0;t<c;t+=4)n=r[e.charCodeAt(t)],o=r[e.charCodeAt(t+1)],a=r[e.charCodeAt(t+2)],d=r[e.charCodeAt(t+3)],i[A++]=n<<2|o>>4,i[A++]=(15&o)<<4|a>>2,i[A++]=(3&a)<<6|63&d;return f};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=r;exports.decode=e=>{let r,n,o,d,a,c=.75*e.length,h=e.length,l=0;"="===e[e.length-1]&&(c--,"="===e[e.length-2]&&c--);const A=new ArrayBuffer(c),f=new Uint8Array(A);for(r=0;r<h;r+=4)n=t[e.charCodeAt(r)],o=t[e.charCodeAt(r+1)],d=t[e.charCodeAt(r+2)],a=t[e.charCodeAt(r+3)],f[l++]=n<<2|o>>4,f[l++]=(15&o)<<4|d>>2,f[l++]=(3&d)<<6|63&a;return A};
2
2
  //# sourceMappingURL=base64-arraybuffer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base64-arraybuffer.js","sources":["../../../../../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js"],"sourcesContent":["const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n// Use a lookup table to find the index.\nconst lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (let i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nexport const encode = (arraybuffer) => {\n let bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n }\n return base64;\n};\nexport const decode = (base64) => {\n let bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLength--;\n if (base64[base64.length - 2] === '=') {\n bufferLength--;\n }\n }\n const arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n encoded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n return arraybuffer;\n};\n"],"names":["chars","lookup","Uint8Array","i","length","charCodeAt","base64","encoded1","encoded2","encoded3","encoded4","bufferLength","len","p","arraybuffer","ArrayBuffer","bytes"],"mappings":"oEAGA,IAHA,IAAMA,EAAQ,mEAERC,EAA+B,oBAAfC,WAA6B,GAAK,IAAIA,WAAW,KAC9DC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAC9BF,EAAOD,EAAMK,WAAWF,IAAMA,iBAkBZ,SAACG,GACnB,IAA8DH,EAAUI,EAAUC,EAAUC,EAAUC,EAAlGC,EAA+B,IAAhBL,EAAOF,OAAeQ,EAAMN,EAAOF,OAAWS,EAAI,EACnC,MAA9BP,EAAOA,EAAOF,OAAS,KACvBO,IACkC,MAA9BL,EAAOA,EAAOF,OAAS,IACvBO,KAGR,IAAMG,EAAc,IAAIC,YAAYJ,GAAeK,EAAQ,IAAId,WAAWY,GAC1E,IAAKX,EAAI,EAAGA,EAAIS,EAAKT,GAAK,EACtBI,EAAWN,EAAOK,EAAOD,WAAWF,IACpCK,EAAWP,EAAOK,EAAOD,WAAWF,EAAI,IACxCM,EAAWR,EAAOK,EAAOD,WAAWF,EAAI,IACxCO,EAAWT,EAAOK,EAAOD,WAAWF,EAAI,IACxCa,EAAMH,KAAQN,GAAY,EAAMC,GAAY,EAC5CQ,EAAMH,MAAoB,GAAXL,IAAkB,EAAMC,GAAY,EACnDO,EAAMH,MAAoB,EAAXJ,IAAiB,EAAiB,GAAXC,EAE1C,OAAOI,CACX"}
1
+ {"version":3,"file":"base64-arraybuffer.js","sources":["../../../../../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js"],"sourcesContent":["const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n// Use a lookup table to find the index.\nconst lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (let i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nexport const encode = (arraybuffer) => {\n let bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n }\n return base64;\n};\nexport const decode = (base64) => {\n let bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLength--;\n if (base64[base64.length - 2] === '=') {\n bufferLength--;\n }\n }\n const arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n encoded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n return arraybuffer;\n};\n"],"names":["chars","lookup","Uint8Array","i","length","charCodeAt","base64","encoded1","encoded2","encoded3","encoded4","bufferLength","len","p","arraybuffer","ArrayBuffer","bytes"],"mappings":"oEAAA,MAAMA,EAAQ,mEAERC,EAA+B,oBAAfC,WAA6B,GAAK,IAAIA,WAAW,KACvE,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,IAC9BF,EAAOD,EAAMK,WAAWF,IAAMA,iBAkBXG,IACnB,IAA8DH,EAAUI,EAAUC,EAAUC,EAAUC,EAAlGC,EAA+B,IAAhBL,EAAOF,OAAeQ,EAAMN,EAAOF,OAAWS,EAAI,EACnC,MAA9BP,EAAOA,EAAOF,OAAS,KACvBO,IACkC,MAA9BL,EAAOA,EAAOF,OAAS,IACvBO,KAGR,MAAMG,EAAc,IAAIC,YAAYJ,GAAeK,EAAQ,IAAId,WAAWY,GAC1E,IAAKX,EAAI,EAAGA,EAAIS,EAAKT,GAAK,EACtBI,EAAWN,EAAOK,EAAOD,WAAWF,IACpCK,EAAWP,EAAOK,EAAOD,WAAWF,EAAI,IACxCM,EAAWR,EAAOK,EAAOD,WAAWF,EAAI,IACxCO,EAAWT,EAAOK,EAAOD,WAAWF,EAAI,IACxCa,EAAMH,KAAQN,GAAY,EAAMC,GAAY,EAC5CQ,EAAMH,MAAoB,GAAXL,IAAkB,EAAMC,GAAY,EACnDO,EAAMH,MAAoB,EAAXJ,IAAiB,EAAiB,GAAXC,EAE1C,OAAOI,CAAW"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js"),r=require("./contrib/base64-arraybuffer.js"),t="function"==typeof ArrayBuffer,a=function(e,a){if(t){var s=r.decode(e);return n(s,a)}return{base64:!0,data:e}},n=function(e,r){return"blob"===r&&e instanceof ArrayBuffer?new Blob([e]):e};exports.default=function(r,t){if("string"!=typeof r)return{type:"message",data:n(r,t)};var s=r.charAt(0);return"b"===s?{type:"message",data:a(r.substring(1),t)}:e.PACKET_TYPES_REVERSE[s]?r.length>1?{type:e.PACKET_TYPES_REVERSE[s],data:r.substring(1)}:{type:e.PACKET_TYPES_REVERSE[s]}:e.ERROR_PACKET};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js"),r=require("./contrib/base64-arraybuffer.js");const t="function"==typeof ArrayBuffer,s=(e,s)=>{if(t){const t=r.decode(e);return a(t,s)}return{base64:!0,data:e}},a=(e,r)=>"blob"===r&&e instanceof ArrayBuffer?new Blob([e]):e;exports.default=(r,t)=>{if("string"!=typeof r)return{type:"message",data:a(r,t)};const n=r.charAt(0);if("b"===n)return{type:"message",data:s(r.substring(1),t)};return e.PACKET_TYPES_REVERSE[n]?r.length>1?{type:e.PACKET_TYPES_REVERSE[n],data:r.substring(1)}:{type:e.PACKET_TYPES_REVERSE[n]}:e.ERROR_PACKET};
2
2
  //# sourceMappingURL=decodePacket.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"decodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"],"sourcesContent":["import { ERROR_PACKET, PACKET_TYPES_REVERSE } from \"./commons.js\";\nimport { decode } from \"./contrib/base64-arraybuffer.js\";\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst decodePacket = (encodedPacket, binaryType) => {\n if (typeof encodedPacket !== \"string\") {\n return {\n type: \"message\",\n data: mapBinary(encodedPacket, binaryType)\n };\n }\n const type = encodedPacket.charAt(0);\n if (type === \"b\") {\n return {\n type: \"message\",\n data: decodeBase64Packet(encodedPacket.substring(1), binaryType)\n };\n }\n const packetType = PACKET_TYPES_REVERSE[type];\n if (!packetType) {\n return ERROR_PACKET;\n }\n return encodedPacket.length > 1\n ? {\n type: PACKET_TYPES_REVERSE[type],\n data: encodedPacket.substring(1)\n }\n : {\n type: PACKET_TYPES_REVERSE[type]\n };\n};\nconst decodeBase64Packet = (data, binaryType) => {\n if (withNativeArrayBuffer) {\n const decoded = decode(data);\n return mapBinary(decoded, binaryType);\n }\n else {\n return { base64: true, data }; // fallback for old browsers\n }\n};\nconst mapBinary = (data, binaryType) => {\n switch (binaryType) {\n case \"blob\":\n return data instanceof ArrayBuffer ? new Blob([data]) : data;\n case \"arraybuffer\":\n default:\n return data; // assuming the data is already an ArrayBuffer\n }\n};\nexport default decodePacket;\n"],"names":["withNativeArrayBuffer","ArrayBuffer","decodeBase64Packet","data","binaryType","decoded","decode","mapBinary","base64","Blob","encodedPacket","type","charAt","substring","PACKET_TYPES_REVERSE","length","ERROR_PACKET"],"mappings":"+IAEMA,EAA+C,mBAAhBC,YA4B/BC,EAAqB,SAACC,EAAMC,GAC9B,GAAIJ,EAAuB,CACvB,IAAMK,EAAUC,SAAOH,GACvB,OAAOI,EAAUF,EAASD,EAC9B,CAEI,MAAO,CAAEI,QAAQ,EAAML,KAAAA,EAE/B,EACMI,EAAY,SAACJ,EAAMC,GACrB,MACS,SADDA,GAEOD,aAAgBF,YAAc,IAAIQ,KAAK,CAACN,IAGxCA,CAEnB,kBA5CqB,SAACO,EAAeN,GACjC,GAA6B,iBAAlBM,EACP,MAAO,CACHC,KAAM,UACNR,KAAMI,EAAUG,EAAeN,IAGvC,IAAMO,EAAOD,EAAcE,OAAO,GAClC,MAAa,MAATD,EACO,CACHA,KAAM,UACNR,KAAMD,EAAmBQ,EAAcG,UAAU,GAAIT,IAG1CU,uBAAqBH,GAIjCD,EAAcK,OAAS,EACxB,CACEJ,KAAMG,EAAoBA,qBAACH,GAC3BR,KAAMO,EAAcG,UAAU,IAEhC,CACEF,KAAMG,EAAoBA,qBAACH,IARxBK,cAUf"}
1
+ {"version":3,"file":"decodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js"],"sourcesContent":["import { ERROR_PACKET, PACKET_TYPES_REVERSE } from \"./commons.js\";\nimport { decode } from \"./contrib/base64-arraybuffer.js\";\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst decodePacket = (encodedPacket, binaryType) => {\n if (typeof encodedPacket !== \"string\") {\n return {\n type: \"message\",\n data: mapBinary(encodedPacket, binaryType)\n };\n }\n const type = encodedPacket.charAt(0);\n if (type === \"b\") {\n return {\n type: \"message\",\n data: decodeBase64Packet(encodedPacket.substring(1), binaryType)\n };\n }\n const packetType = PACKET_TYPES_REVERSE[type];\n if (!packetType) {\n return ERROR_PACKET;\n }\n return encodedPacket.length > 1\n ? {\n type: PACKET_TYPES_REVERSE[type],\n data: encodedPacket.substring(1)\n }\n : {\n type: PACKET_TYPES_REVERSE[type]\n };\n};\nconst decodeBase64Packet = (data, binaryType) => {\n if (withNativeArrayBuffer) {\n const decoded = decode(data);\n return mapBinary(decoded, binaryType);\n }\n else {\n return { base64: true, data }; // fallback for old browsers\n }\n};\nconst mapBinary = (data, binaryType) => {\n switch (binaryType) {\n case \"blob\":\n return data instanceof ArrayBuffer ? new Blob([data]) : data;\n case \"arraybuffer\":\n default:\n return data; // assuming the data is already an ArrayBuffer\n }\n};\nexport default decodePacket;\n"],"names":["withNativeArrayBuffer","ArrayBuffer","decodeBase64Packet","data","binaryType","decoded","decode","mapBinary","base64","Blob","encodedPacket","type","charAt","substring","PACKET_TYPES_REVERSE","length","ERROR_PACKET"],"mappings":"+IAEA,MAAMA,EAA+C,mBAAhBC,YA4B/BC,EAAqB,CAACC,EAAMC,KAC9B,GAAIJ,EAAuB,CACvB,MAAMK,EAAUC,SAAOH,GACvB,OAAOI,EAAUF,EAASD,EAC9B,CAEI,MAAO,CAAEI,QAAQ,EAAML,OAC3B,EAEEI,EAAY,CAACJ,EAAMC,IAEZ,SADDA,GAEOD,aAAgBF,YAAc,IAAIQ,KAAK,CAACN,IAGxCA,kBA1CE,CAACO,EAAeN,KACjC,GAA6B,iBAAlBM,EACP,MAAO,CACHC,KAAM,UACNR,KAAMI,EAAUG,EAAeN,IAGvC,MAAMO,EAAOD,EAAcE,OAAO,GAClC,GAAa,MAATD,EACA,MAAO,CACHA,KAAM,UACNR,KAAMD,EAAmBQ,EAAcG,UAAU,GAAIT,IAI7D,OADmBU,uBAAqBH,GAIjCD,EAAcK,OAAS,EACxB,CACEJ,KAAMG,EAAoBA,qBAACH,GAC3BR,KAAMO,EAAcG,UAAU,IAEhC,CACEF,KAAMG,EAAoBA,qBAACH,IARxBK,cASN"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js"),r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),t="function"==typeof ArrayBuffer,o=function(e,r){var t=new FileReader;return t.onload=function(){var e=t.result.split(",")[1];r("b"+e)},t.readAsDataURL(e)};exports.default=function(n,f,a){var u,i=n.type,c=n.data;return r&&c instanceof Blob?f?a(c):o(c,a):t&&(c instanceof ArrayBuffer||(u=c,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(u):u&&u.buffer instanceof ArrayBuffer))?f?a(c):o(new Blob([c]),a):a(e.PACKET_TYPES[i]+(c||""))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js");const t="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,o=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+e)},r.readAsDataURL(e)};exports.default=(n,f,a)=>{let{type:u,data:s}=n;return t&&s instanceof Blob?f?a(s):o(s,a):r&&(s instanceof ArrayBuffer||(i=s,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer))?f?a(s):o(new Blob([s]),a):a(e.PACKET_TYPES[u]+(s||""));var i};
2
2
  //# sourceMappingURL=encodePacket.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"encodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"],"sourcesContent":["import { PACKET_TYPES } from \"./commons.js\";\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = obj => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + content);\n };\n return fileReader.readAsDataURL(data);\n};\nexport default encodePacket;\n"],"names":["withNativeBlob","Blob","Object","prototype","toString","call","withNativeArrayBuffer","ArrayBuffer","encodeBlobAsBase64","data","callback","fileReader","FileReader","onload","content","result","split","readAsDataURL","supportsBinary","obj","type","isView","buffer","PACKET_TYPES"],"mappings":"kGACMA,EAAiC,mBAATC,MACT,oBAATA,MACqC,6BAAzCC,OAAOC,UAAUC,SAASC,KAAKJ,MACjCK,EAA+C,mBAAhBC,YA4B/BC,EAAqB,SAACC,EAAMC,GAC9B,IAAMC,EAAa,IAAIC,WAKvB,OAJAD,EAAWE,OAAS,WAChB,IAAMC,EAAUH,EAAWI,OAAOC,MAAM,KAAK,GAC7CN,EAAS,IAAMI,IAEZH,EAAWM,cAAcR,EACpC,kBA5BqB,WAAiBS,EAAgBR,GAAa,IALpDS,EAKSC,IAAAA,KAAMX,IAAAA,KAC1B,OAAIT,GAAkBS,aAAgBR,KAC9BiB,EACOR,EAASD,GAGTD,EAAmBC,EAAMC,GAG/BJ,IACJG,aAAgBF,cAfVY,EAegCV,EAdN,mBAAvBF,YAAYc,OACpBd,YAAYc,OAAOF,GACnBA,GAAOA,EAAIG,kBAAkBf,cAa3BW,EACOR,EAASD,GAGTD,EAAmB,IAAIP,KAAK,CAACQ,IAAQC,GAI7CA,EAASa,EAAAA,aAAaH,IAASX,GAAQ,IAClD"}
1
+ {"version":3,"file":"encodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"],"sourcesContent":["import { PACKET_TYPES } from \"./commons.js\";\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = obj => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + content);\n };\n return fileReader.readAsDataURL(data);\n};\nexport default encodePacket;\n"],"names":["withNativeBlob","Blob","Object","prototype","toString","call","withNativeArrayBuffer","ArrayBuffer","encodeBlobAsBase64","data","callback","fileReader","FileReader","onload","content","result","split","readAsDataURL","_ref","supportsBinary","type","obj","isView","buffer","PACKET_TYPES"],"mappings":"kGACA,MAAMA,EAAiC,mBAATC,MACT,oBAATA,MACqC,6BAAzCC,OAAOC,UAAUC,SAASC,KAAKJ,MACjCK,EAA+C,mBAAhBC,YA4B/BC,EAAqB,CAACC,EAAMC,KAC9B,MAAMC,EAAa,IAAIC,WAKvB,OAJAD,EAAWE,OAAS,WAChB,MAAMC,EAAUH,EAAWI,OAAOC,MAAM,KAAK,GAC7CN,EAAS,IAAMI,IAEZH,EAAWM,cAAcR,EAAK,kBA3BpB,CAAAS,EAAiBC,EAAgBT,KAAa,IAA7CU,KAAEA,EAAIX,KAAEA,GAAMS,EAChC,OAAIlB,GAAkBS,aAAgBR,KAC9BkB,EACOT,EAASD,GAGTD,EAAmBC,EAAMC,GAG/BJ,IACJG,aAAgBF,cAfVc,EAegCZ,EAdN,mBAAvBF,YAAYe,OACpBf,YAAYe,OAAOD,GACnBA,GAAOA,EAAIE,kBAAkBhB,cAa3BY,EACOT,EAASD,GAGTD,EAAmB,IAAIP,KAAK,CAACQ,IAAQC,GAI7CA,EAASc,EAAAA,aAAaJ,IAASX,GAAQ,KAxBnCY,KAwBuC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./encodePacket.browser.js"),r=require("./decodePacket.browser.js"),o=String.fromCharCode(30);exports.encodePacket=e.default,exports.decodePacket=r.default,exports.decodePayload=function(e,t){for(var a=e.split(o),c=[],d=0;d<a.length;d++){var n=r.default(a[d],t);if(c.push(n),"error"===n.type)break}return c},exports.encodePayload=function(r,t){var a=r.length,c=new Array(a),d=0;r.forEach((function(r,n){e.default(r,!1,(function(e){c[n]=e,++d===a&&t(c.join(o))}))}))},exports.protocol=4;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./encodePacket.browser.js"),r=require("./decodePacket.browser.js");const o=String.fromCharCode(30);exports.encodePacket=e.default,exports.decodePacket=r.default,exports.decodePayload=(e,t)=>{const s=e.split(o),a=[];for(let e=0;e<s.length;e++){const o=r.default(s[e],t);if(a.push(o),"error"===o.type)break}return a},exports.encodePayload=(r,t)=>{const s=r.length,a=new Array(s);let c=0;r.forEach(((r,d)=>{e.default(r,!1,(e=>{a[d]=e,++c===s&&t(a.join(o))}))}))},exports.protocol=4;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/index.js"],"sourcesContent":["import encodePacket from \"./encodePacket.js\";\nimport decodePacket from \"./decodePacket.js\";\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\nconst encodePayload = (packets, callback) => {\n // some packets may be added to the array while encoding, so the initial length must be saved\n const length = packets.length;\n const encodedPackets = new Array(length);\n let count = 0;\n packets.forEach((packet, i) => {\n // force base64 encoding for binary packets\n encodePacket(packet, false, encodedPacket => {\n encodedPackets[i] = encodedPacket;\n if (++count === length) {\n callback(encodedPackets.join(SEPARATOR));\n }\n });\n });\n};\nconst decodePayload = (encodedPayload, binaryType) => {\n const encodedPackets = encodedPayload.split(SEPARATOR);\n const packets = [];\n for (let i = 0; i < encodedPackets.length; i++) {\n const decodedPacket = decodePacket(encodedPackets[i], binaryType);\n packets.push(decodedPacket);\n if (decodedPacket.type === \"error\") {\n break;\n }\n }\n return packets;\n};\nexport const protocol = 4;\nexport { encodePacket, encodePayload, decodePacket, decodePayload };\n"],"names":["SEPARATOR","String","fromCharCode","encodedPayload","binaryType","encodedPackets","split","packets","i","length","decodedPacket","decodePacket","push","type","callback","Array","count","forEach","packet","encodePacket","encodedPacket","join"],"mappings":"sJAEMA,EAAYC,OAAOC,aAAa,wFAgBhB,SAACC,EAAgBC,GAGnC,IAFA,IAAMC,EAAiBF,EAAeG,MAAMN,GACtCO,EAAU,GACPC,EAAI,EAAGA,EAAIH,EAAeI,OAAQD,IAAK,CAC5C,IAAME,EAAgBC,EAAAA,QAAaN,EAAeG,GAAIJ,GAEtD,GADAG,EAAQK,KAAKF,GACc,UAAvBA,EAAcG,KACd,KAER,CACA,OAAON,CACX,wBA1BsB,SAACA,EAASO,GAE5B,IAAML,EAASF,EAAQE,OACjBJ,EAAiB,IAAIU,MAAMN,GAC7BO,EAAQ,EACZT,EAAQU,SAAQ,SAACC,EAAQV,GAErBW,EAAAA,QAAaD,GAAQ,GAAO,SAAAE,GACxBf,EAAeG,GAAKY,IACdJ,IAAUP,GACZK,EAAST,EAAegB,KAAKrB,GAErC,GACJ,GACJ,mBAawB"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/index.js"],"sourcesContent":["import encodePacket from \"./encodePacket.js\";\nimport decodePacket from \"./decodePacket.js\";\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\nconst encodePayload = (packets, callback) => {\n // some packets may be added to the array while encoding, so the initial length must be saved\n const length = packets.length;\n const encodedPackets = new Array(length);\n let count = 0;\n packets.forEach((packet, i) => {\n // force base64 encoding for binary packets\n encodePacket(packet, false, encodedPacket => {\n encodedPackets[i] = encodedPacket;\n if (++count === length) {\n callback(encodedPackets.join(SEPARATOR));\n }\n });\n });\n};\nconst decodePayload = (encodedPayload, binaryType) => {\n const encodedPackets = encodedPayload.split(SEPARATOR);\n const packets = [];\n for (let i = 0; i < encodedPackets.length; i++) {\n const decodedPacket = decodePacket(encodedPackets[i], binaryType);\n packets.push(decodedPacket);\n if (decodedPacket.type === \"error\") {\n break;\n }\n }\n return packets;\n};\nexport const protocol = 4;\nexport { encodePacket, encodePayload, decodePacket, decodePayload };\n"],"names":["SEPARATOR","String","fromCharCode","encodedPayload","binaryType","encodedPackets","split","packets","i","length","decodedPacket","decodePacket","push","type","callback","Array","count","forEach","packet","encodePacket","encodedPacket","join"],"mappings":"sJAEA,MAAMA,EAAYC,OAAOC,aAAa,wFAgBhB,CAACC,EAAgBC,KACnC,MAAMC,EAAiBF,EAAeG,MAAMN,GACtCO,EAAU,GAChB,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAeI,OAAQD,IAAK,CAC5C,MAAME,EAAgBC,EAAAA,QAAaN,EAAeG,GAAIJ,GAEtD,GADAG,EAAQK,KAAKF,GACc,UAAvBA,EAAcG,KACd,KAER,CACA,OAAON,CAAO,wBAzBI,CAACA,EAASO,KAE5B,MAAML,EAASF,EAAQE,OACjBJ,EAAiB,IAAIU,MAAMN,GACjC,IAAIO,EAAQ,EACZT,EAAQU,SAAQ,CAACC,EAAQV,KAErBW,UAAaD,GAAQ,GAAOE,IACxBf,EAAeG,GAAKY,IACdJ,IAAUP,GACZK,EAAST,EAAegB,KAAKrB,GACjC,GACF,GACJ,mBAckB"}