@burdenoff/microfe-export 2026.1107.1 → 2026.1108.1

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 (211) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/export/ExportRoot.d.ts +0 -2
  3. package/dist/export/ExportRoot.js +9 -6
  4. package/dist/export/ExportRoot.js.map +1 -1
  5. package/dist/export/ExportRoutes.d.ts +1 -2
  6. package/dist/export/ExportRoutes.js +1 -2
  7. package/dist/export/ExportRoutes.js.map +1 -1
  8. package/dist/export/components/ExportProgressBar.d.ts +1 -2
  9. package/dist/export/components/ExportProgressBar.js +1 -2
  10. package/dist/export/components/ExportProgressBar.js.map +1 -1
  11. package/dist/export/components/ExportStatusBadge.d.ts +1 -3
  12. package/dist/export/components/ExportStatusBadge.js +7 -8
  13. package/dist/export/components/ExportStatusBadge.js.map +1 -1
  14. package/dist/export/components/PageLayout.d.ts +3 -5
  15. package/dist/export/components/PageLayout.js +1 -2
  16. package/dist/export/components/PageLayout.js.map +1 -1
  17. package/dist/export/constants/enums.d.ts +0 -2
  18. package/dist/export/constants/enums.js +1 -2
  19. package/dist/export/constants/enums.js.map +1 -1
  20. package/dist/export/constants/index.d.ts +0 -1
  21. package/dist/export/hooks/useExportQueries.d.ts +16 -33
  22. package/dist/export/hooks/useExportQueries.js +223 -225
  23. package/dist/export/hooks/useExportQueries.js.map +1 -1
  24. package/dist/export/hooks/useTr.d.ts +0 -2
  25. package/dist/export/hooks/useTr.js +1 -2
  26. package/dist/export/hooks/useTr.js.map +1 -1
  27. package/dist/export/index.d.ts +0 -1
  28. package/dist/export/index.js +5 -4
  29. package/dist/export/pages/CreateExportPage.d.ts +1 -2
  30. package/dist/export/pages/CreateExportPage.js +228 -229
  31. package/dist/export/pages/CreateExportPage.js.map +1 -1
  32. package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
  33. package/dist/export/pages/ExportDashboardPage.js +17 -18
  34. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  35. package/dist/export/pages/ExportDetailPage.d.ts +1 -2
  36. package/dist/export/pages/ExportDetailPage.js +39 -40
  37. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  38. package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
  39. package/dist/export/pages/ExportHistoryPage.js +21 -20
  40. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  41. package/dist/export/pages/ExportLandingPage.d.ts +1 -2
  42. package/dist/export/pages/ExportLandingPage.js +1 -2
  43. package/dist/export/pages/ExportLandingPage.js.map +1 -1
  44. package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
  45. package/dist/export/pages/ExportTemplatesPage.js +25 -30
  46. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  47. package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
  48. package/dist/export/pages/TemplateDetailPage.js +11 -12
  49. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  50. package/dist/export/providers/ExportProvider.d.ts +0 -2
  51. package/dist/export/providers/ExportProvider.js +12 -16
  52. package/dist/export/providers/ExportProvider.js.map +1 -1
  53. package/dist/export/store/exportStore.d.ts +0 -2
  54. package/dist/export/store/exportStore.js +1 -2
  55. package/dist/export/store/exportStore.js.map +1 -1
  56. package/dist/export/types/index.d.ts +0 -1
  57. package/dist/export/utils/cn.d.ts +0 -2
  58. package/dist/export/utils/cn.js +2 -3
  59. package/dist/export/utils/cn.js.map +1 -1
  60. package/dist/export/utils/disabledModules.d.ts +0 -1
  61. package/dist/export/utils/disabledModules.js +3 -4
  62. package/dist/export/utils/disabledModules.js.map +1 -1
  63. package/dist/export/utils/events.d.ts +0 -2
  64. package/dist/export/utils/events.js +1 -2
  65. package/dist/export/utils/events.js.map +1 -1
  66. package/dist/export/utils/exportAuthority.d.ts +1 -6
  67. package/dist/export/utils/exportAuthority.js +5 -30
  68. package/dist/export/utils/exportAuthority.js.map +1 -1
  69. package/dist/export/utils/i18n.d.ts +0 -2
  70. package/dist/export/utils/i18n.js +1 -2
  71. package/dist/export/utils/i18n.js.map +1 -1
  72. package/dist/generated/global-operations.d.ts +4 -2
  73. package/dist/generated/global-types.d.ts +2 -22
  74. package/dist/generated/wspace-operations.d.ts +226 -181
  75. package/dist/generated/wspace-operations.js +1 -2
  76. package/dist/generated/wspace-operations.js.map +1 -1
  77. package/dist/generated/wspace-types.d.ts +4 -24
  78. package/dist/generated/wspace-types.js +1 -2
  79. package/dist/generated/wspace-types.js.map +1 -1
  80. package/dist/index.d.ts +0 -1
  81. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  82. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  83. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  84. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  85. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  86. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  87. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
  88. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  89. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  90. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  91. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  92. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  93. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  94. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  95. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  96. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  97. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  98. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  99. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  100. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  101. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  102. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  103. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  104. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  105. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  106. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  107. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  108. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  109. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  110. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  111. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  112. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  113. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  114. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  115. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  116. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  117. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  118. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  119. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  120. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  121. package/dist/node_modules/@apollo/client/version.js +2 -3
  122. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  123. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  124. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  125. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  126. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  127. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  128. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  129. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  130. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  131. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  132. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  133. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  134. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  135. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  136. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  137. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  138. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  139. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  140. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  141. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  142. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  143. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  144. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  145. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  146. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  147. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  148. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  149. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  150. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  151. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  152. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  153. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  154. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  155. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  156. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  157. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  158. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  159. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  160. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  161. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  162. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  163. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  164. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  165. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  166. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  167. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  168. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  169. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  170. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  171. package/dist/test/happydom.d.ts +1 -0
  172. package/dist/translations/en.d.ts +0 -1
  173. package/dist/translations/en.js +1 -2
  174. package/dist/translations/en.js.map +1 -1
  175. package/dist/utils/nativeBridge.d.ts +0 -1
  176. package/dist/utils/nativeBridge.js +1 -2
  177. package/package.json +62 -46
  178. package/dist/dev/main.d.ts.map +0 -1
  179. package/dist/export/ExportRoot.d.ts.map +0 -1
  180. package/dist/export/ExportRoutes.d.ts.map +0 -1
  181. package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
  182. package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
  183. package/dist/export/components/PageLayout.d.ts.map +0 -1
  184. package/dist/export/constants/enums.d.ts.map +0 -1
  185. package/dist/export/constants/index.d.ts.map +0 -1
  186. package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
  187. package/dist/export/hooks/useTr.d.ts.map +0 -1
  188. package/dist/export/index.d.ts.map +0 -1
  189. package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
  190. package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
  191. package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
  192. package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
  193. package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
  194. package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
  195. package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
  196. package/dist/export/providers/ExportProvider.d.ts.map +0 -1
  197. package/dist/export/store/exportStore.d.ts.map +0 -1
  198. package/dist/export/types/index.d.ts.map +0 -1
  199. package/dist/export/utils/cn.d.ts.map +0 -1
  200. package/dist/export/utils/disabledModules.d.ts.map +0 -1
  201. package/dist/export/utils/events.d.ts.map +0 -1
  202. package/dist/export/utils/exportAuthority.d.ts.map +0 -1
  203. package/dist/export/utils/i18n.d.ts.map +0 -1
  204. package/dist/generated/global-operations.d.ts.map +0 -1
  205. package/dist/generated/global-types.d.ts.map +0 -1
  206. package/dist/generated/wspace-operations.d.ts.map +0 -1
  207. package/dist/generated/wspace-types.d.ts.map +0 -1
  208. package/dist/index.d.ts.map +0 -1
  209. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  210. package/dist/translations/en.d.ts.map +0 -1
  211. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":[],"sources":["../../../../node_modules/graphql-ws/dist/client.js"],"sourcesContent":["import { i as isObject, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, s as stringifyMessage, M as MessageType, C as CloseCode, l as limitCloseReason, p as parseMessage } from './common-CGW11Fyb.js';\nexport { D as DEPRECATED_GRAPHQL_WS_PROTOCOL, v as validateMessage } from './common-CGW11Fyb.js';\n\nfunction createClient(options) {\n const {\n url,\n connectionParams,\n lazy = true,\n onNonLazyError = console.error,\n lazyCloseTimeout: lazyCloseTimeoutMs = 0,\n keepAlive = 0,\n disablePong,\n connectionAckWaitTimeout = 0,\n retryAttempts = 5,\n retryWait = async function randomisedExponentialBackoff(retries2) {\n const retryDelaySeconds = Math.pow(2, retries2);\n await new Promise(\n (resolve) => setTimeout(\n resolve,\n retryDelaySeconds * 1e3 + // add random timeout from 300ms to 3s\n Math.floor(Math.random() * (3e3 - 300) + 300)\n )\n );\n },\n shouldRetry = isLikeCloseEvent,\n on,\n webSocketImpl,\n /**\n * Generates a v4 UUID to be used as the ID using `Math`\n * as the random number generator. Supply your own generator\n * in case you need more uniqueness.\n *\n * Reference: https://gist.github.com/jed/982883\n */\n generateID = function generateUUID() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0, v = c == \"x\" ? r : r & 3 | 8;\n return v.toString(16);\n });\n },\n jsonMessageReplacer: replacer,\n jsonMessageReviver: reviver\n } = options;\n let ws;\n if (webSocketImpl) {\n if (!isWebSocket(webSocketImpl)) {\n throw new Error(\"Invalid WebSocket implementation provided\");\n }\n ws = webSocketImpl;\n } else if (typeof WebSocket !== \"undefined\") {\n ws = WebSocket;\n } else if (typeof global !== \"undefined\") {\n ws = global.WebSocket || // @ts-expect-error: Support more browsers\n global.MozWebSocket;\n } else if (typeof window !== \"undefined\") {\n ws = window.WebSocket || // @ts-expect-error: Support more browsers\n window.MozWebSocket;\n }\n if (!ws)\n throw new Error(\n \"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\"\n );\n const WebSocketImpl = ws;\n const emitter = (() => {\n const message = /* @__PURE__ */ (() => {\n const listeners2 = {};\n return {\n on(id, listener) {\n listeners2[id] = listener;\n return () => {\n delete listeners2[id];\n };\n },\n emit(message2) {\n if (\"id\" in message2) listeners2[message2.id]?.(message2);\n }\n };\n })();\n const listeners = {\n connecting: on?.connecting ? [on.connecting] : [],\n opened: on?.opened ? [on.opened] : [],\n connected: on?.connected ? [on.connected] : [],\n ping: on?.ping ? [on.ping] : [],\n pong: on?.pong ? [on.pong] : [],\n message: on?.message ? [message.emit, on.message] : [message.emit],\n closed: on?.closed ? [on.closed] : [],\n error: on?.error ? [on.error] : []\n };\n return {\n onMessage: message.on,\n on(event, listener) {\n const l = listeners[event];\n l.push(listener);\n return () => {\n l.splice(l.indexOf(listener), 1);\n };\n },\n emit(event, ...args) {\n for (const listener of [...listeners[event]]) {\n listener(...args);\n }\n }\n };\n })();\n function errorOrClosed(cb) {\n const listening = [\n // errors are fatal and more critical than close events, throw them first\n emitter.on(\"error\", (err) => {\n listening.forEach((unlisten) => unlisten());\n cb(err);\n }),\n // closes can be graceful and not fatal, throw them second (if error didnt throw)\n emitter.on(\"closed\", (event) => {\n listening.forEach((unlisten) => unlisten());\n cb(event);\n })\n ];\n }\n let connecting, locks = 0, lazyCloseTimeout, retrying = false, retries = 0, disposed = false;\n async function connect() {\n clearTimeout(lazyCloseTimeout);\n const [socket, throwOnClose] = await (connecting ?? (connecting = new Promise(\n (connected, denied) => (async () => {\n if (retrying) {\n await retryWait(retries);\n if (!locks) {\n connecting = void 0;\n return denied({ code: 1e3, reason: \"All Subscriptions Gone\" });\n }\n retries++;\n }\n emitter.emit(\"connecting\", retrying);\n const socket2 = new WebSocketImpl(\n typeof url === \"function\" ? await url() : url,\n GRAPHQL_TRANSPORT_WS_PROTOCOL\n );\n let connectionAckTimeout, queuedPing;\n function enqueuePing() {\n if (isFinite(keepAlive) && keepAlive > 0) {\n clearTimeout(queuedPing);\n queuedPing = setTimeout(() => {\n if (socket2.readyState === WebSocketImpl.OPEN) {\n socket2.send(stringifyMessage({ type: MessageType.Ping }));\n emitter.emit(\"ping\", false, void 0);\n }\n }, keepAlive);\n }\n }\n errorOrClosed((errOrEvent) => {\n connecting = void 0;\n clearTimeout(connectionAckTimeout);\n clearTimeout(queuedPing);\n denied(errOrEvent);\n if (errOrEvent instanceof TerminatedCloseEvent) {\n socket2.close(4499, \"Terminated\");\n socket2.onerror = null;\n socket2.onclose = null;\n }\n });\n socket2.onerror = (err) => emitter.emit(\"error\", err);\n socket2.onclose = (event) => emitter.emit(\"closed\", event);\n socket2.onopen = async () => {\n try {\n emitter.emit(\"opened\", socket2);\n const payload = typeof connectionParams === \"function\" ? await connectionParams() : connectionParams;\n if (socket2.readyState !== WebSocketImpl.OPEN) return;\n socket2.send(\n stringifyMessage(\n payload ? {\n type: MessageType.ConnectionInit,\n payload\n } : {\n type: MessageType.ConnectionInit\n // payload is completely absent if not provided\n },\n replacer\n )\n );\n if (isFinite(connectionAckWaitTimeout) && connectionAckWaitTimeout > 0) {\n connectionAckTimeout = setTimeout(() => {\n socket2.close(\n CloseCode.ConnectionAcknowledgementTimeout,\n \"Connection acknowledgement timeout\"\n );\n }, connectionAckWaitTimeout);\n }\n enqueuePing();\n } catch (err) {\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.InternalClientError,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Internal client error\"\n )\n );\n }\n };\n let acknowledged = false;\n socket2.onmessage = ({ data }) => {\n try {\n const message = parseMessage(data, reviver);\n emitter.emit(\"message\", message);\n if (message.type === \"ping\" || message.type === \"pong\") {\n emitter.emit(message.type, true, message.payload);\n if (message.type === \"pong\") {\n enqueuePing();\n } else if (!disablePong) {\n socket2.send(\n stringifyMessage(\n message.payload ? {\n type: MessageType.Pong,\n payload: message.payload\n } : {\n type: MessageType.Pong\n // payload is completely absent if not provided\n }\n )\n );\n emitter.emit(\"pong\", false, message.payload);\n }\n return;\n }\n if (acknowledged) return;\n if (message.type !== MessageType.ConnectionAck)\n throw new Error(\n `First message cannot be of type ${message.type}`\n );\n clearTimeout(connectionAckTimeout);\n acknowledged = true;\n emitter.emit(\"connected\", socket2, message.payload, retrying);\n retrying = false;\n retries = 0;\n connected([\n socket2,\n new Promise((_, reject) => errorOrClosed(reject))\n ]);\n } catch (err) {\n socket2.onmessage = null;\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.BadResponse,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Bad response\"\n )\n );\n }\n };\n })()\n )));\n if (socket.readyState === WebSocketImpl.CLOSING) await throwOnClose;\n let release = () => {\n };\n const released = new Promise((resolve) => release = resolve);\n return [\n socket,\n release,\n Promise.race([\n // wait for\n released.then(() => {\n if (!locks) {\n const complete = () => socket.close(1e3, \"Normal Closure\");\n if (isFinite(lazyCloseTimeoutMs) && lazyCloseTimeoutMs > 0) {\n lazyCloseTimeout = setTimeout(() => {\n if (socket.readyState === WebSocketImpl.OPEN) complete();\n }, lazyCloseTimeoutMs);\n } else {\n complete();\n }\n }\n }),\n // or\n throwOnClose\n ])\n ];\n }\n function shouldRetryConnectOrThrow(errOrCloseEvent) {\n if (isLikeCloseEvent(errOrCloseEvent) && (isFatalInternalCloseCode(errOrCloseEvent.code) || [\n CloseCode.InternalServerError,\n CloseCode.InternalClientError,\n CloseCode.BadRequest,\n CloseCode.BadResponse,\n CloseCode.Unauthorized,\n // CloseCode.Forbidden, might grant access out after retry\n CloseCode.SubprotocolNotAcceptable,\n // CloseCode.ConnectionInitialisationTimeout, might not time out after retry\n // CloseCode.ConnectionAcknowledgementTimeout, might not time out after retry\n CloseCode.SubscriberAlreadyExists,\n CloseCode.TooManyInitialisationRequests\n // 4499, // Terminated, probably because the socket froze, we want to retry\n ].includes(errOrCloseEvent.code)))\n throw errOrCloseEvent;\n if (disposed) return false;\n if (isLikeCloseEvent(errOrCloseEvent) && errOrCloseEvent.code === 1e3)\n return locks > 0;\n if (!retryAttempts || retries >= retryAttempts) throw errOrCloseEvent;\n if (!shouldRetry(errOrCloseEvent)) throw errOrCloseEvent;\n return retrying = true;\n }\n if (!lazy) {\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [, , throwOnClose] = await connect();\n await throwOnClose;\n } catch (errOrCloseEvent) {\n try {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n } catch (errOrCloseEvent2) {\n return onNonLazyError?.(errOrCloseEvent2);\n }\n }\n }\n })();\n }\n function subscribe(payload, sink) {\n const id = generateID(payload);\n let done = false, errored = false, releaser = () => {\n locks--;\n done = true;\n };\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [socket, release, waitForReleaseOrThrowOnClose] = await connect();\n if (done) return release();\n const unlisten = emitter.onMessage(id, (message) => {\n switch (message.type) {\n case MessageType.Next: {\n sink.next(message.payload);\n return;\n }\n case MessageType.Error: {\n errored = true, done = true;\n sink.error(message.payload);\n releaser();\n return;\n }\n case MessageType.Complete: {\n done = true;\n releaser();\n return;\n }\n }\n });\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Subscribe,\n payload\n },\n replacer\n )\n );\n releaser = () => {\n if (!done && socket.readyState === WebSocketImpl.OPEN)\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Complete\n },\n replacer\n )\n );\n locks--;\n done = true;\n release();\n };\n await waitForReleaseOrThrowOnClose.finally(unlisten);\n return;\n } catch (errOrCloseEvent) {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n }\n }\n })().then(() => {\n if (!errored) sink.complete();\n }).catch((err) => {\n sink.error(err);\n });\n return () => {\n if (!done) releaser();\n };\n }\n return {\n on: emitter.on,\n subscribe,\n iterate(request) {\n const pending = [];\n const deferred = {\n done: false,\n error: null,\n resolve: () => {\n }\n };\n const dispose = subscribe(request, {\n next(val) {\n pending.push(val);\n deferred.resolve();\n },\n error(err) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n },\n complete() {\n deferred.done = true;\n deferred.resolve();\n }\n });\n const iterator = async function* iterator2() {\n for (; ; ) {\n if (!pending.length) {\n await new Promise((resolve) => deferred.resolve = resolve);\n }\n while (pending.length) {\n yield pending.shift();\n }\n if (deferred.error) {\n throw deferred.error;\n }\n if (deferred.done) {\n return;\n }\n }\n }();\n iterator.throw = async (err) => {\n if (!deferred.done) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n }\n return { done: true, value: void 0 };\n };\n iterator.return = async () => {\n dispose();\n return { done: true, value: void 0 };\n };\n return iterator;\n },\n async dispose() {\n disposed = true;\n if (connecting) {\n const [socket] = await connecting;\n socket.close(1e3, \"Normal Closure\");\n }\n },\n terminate() {\n if (connecting) {\n emitter.emit(\"closed\", new TerminatedCloseEvent());\n }\n }\n };\n}\nclass TerminatedCloseEvent extends Error {\n name = \"TerminatedCloseEvent\";\n message = \"4499: Terminated\";\n code = 4499;\n reason = \"Terminated\";\n wasClean = false;\n}\nfunction isLikeCloseEvent(val) {\n return isObject(val) && \"code\" in val && \"reason\" in val;\n}\nfunction isFatalInternalCloseCode(code) {\n if ([\n 1e3,\n // Normal Closure is not an erroneous close code\n 1001,\n // Going Away\n 1006,\n // Abnormal Closure\n 1005,\n // No Status Received\n 1012,\n // Service Restart\n 1013,\n // Try Again Later\n 1014\n // Bad Gateway\n ].includes(code))\n return false;\n return code >= 1e3 && code <= 1999;\n}\nfunction isWebSocket(val) {\n return typeof val === \"function\" && \"constructor\" in val && \"CLOSED\" in val && \"CLOSING\" in val && \"CONNECTING\" in val && \"OPEN\" in val;\n}\n\nexport { CloseCode, GRAPHQL_TRANSPORT_WS_PROTOCOL, MessageType, TerminatedCloseEvent, createClient, parseMessage, stringifyMessage };\n"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAS,EAAa,GAAS;CAC7B,IAAM,EACJ,QACA,qBACA,UA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AAN,cAAmC,MAAM;CACvC,OAAO;CACP,UAAU;CACV,OAAO;CACP,SAAS;CACT,WAAW;;AAEb,SAAS,EAAiB,GAAK;AAC7B,QAAO,EAAS,EAAI,IAAI,UAAU,KAAO,YAAY;;AAEvD,SAAS,EAAyB,GAAM;AAkBtC,QAjBI;EACF;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAED,CAAC,SAAS,EAAK,GACP,KACF,KAAQ,OAAO,KAAQ;;AAEhC,SAAS,EAAY,GAAK;AACxB,QAAO,OAAO,KAAQ,cAAc,iBAAiB,KAAO,YAAY,KAAO,aAAa,KAAO,gBAAgB,KAAO,UAAU"}
1
+ {"version":3,"file":"client.js","names":["CloseCode","GRAPHQL_TRANSPORT_WS_PROTOCOL","MessageType","isObject","limitCloseReason","parseMessage","stringifyMessage","createClient","lazyCloseTimeoutMs","retryDelaySeconds","retries2","resolve","isLikeCloseEvent","r","c","replacer","reviver","options","ws","webSocketImpl","isWebSocket","WebSocketImpl","emitter","message","listeners2","id","listener","message2","listeners","on","l","event","i","args","errorOrClosed","listening","unlisten","cb","err","connecting","locks","lazyCloseTimeout","retrying","retries","disposed","connect","socket","throwOnClose","retryWait","denied","socket2","url","connectionAckTimeout","queuedPing","enqueuePing","keepAlive","errOrEvent","TerminatedCloseEvent","payload","connectionParams","connectionAckWaitTimeout","acknowledged","data","disablePong","throwOnClose2","reject","connected","release","released","complete","shouldRetryConnectOrThrow","errOrCloseEvent","isFatalInternalCloseCode","retryAttempts","shouldRetry","lazy","errOrCloseEvent2","onNonLazyError","subscribe","generateID","done","errored","releaser","waitForReleaseOrThrowOnClose","sink","pending","deferred","dispose","request","val","iterator","code"],"sources":["../../../../node_modules/graphql-ws/dist/client.js"],"sourcesContent":["import { i as isObject, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, s as stringifyMessage, M as MessageType, C as CloseCode, l as limitCloseReason, p as parseMessage } from './common-CGW11Fyb.js';\nexport { D as DEPRECATED_GRAPHQL_WS_PROTOCOL, v as validateMessage } from './common-CGW11Fyb.js';\n\nfunction createClient(options) {\n const {\n url,\n connectionParams,\n lazy = true,\n onNonLazyError = console.error,\n lazyCloseTimeout: lazyCloseTimeoutMs = 0,\n keepAlive = 0,\n disablePong,\n connectionAckWaitTimeout = 0,\n retryAttempts = 5,\n retryWait = async function randomisedExponentialBackoff(retries2) {\n const retryDelaySeconds = Math.pow(2, retries2);\n await new Promise(\n (resolve) => setTimeout(\n resolve,\n retryDelaySeconds * 1e3 + // add random timeout from 300ms to 3s\n Math.floor(Math.random() * (3e3 - 300) + 300)\n )\n );\n },\n shouldRetry = isLikeCloseEvent,\n on,\n webSocketImpl,\n /**\n * Generates a v4 UUID to be used as the ID using `Math`\n * as the random number generator. Supply your own generator\n * in case you need more uniqueness.\n *\n * Reference: https://gist.github.com/jed/982883\n */\n generateID = function generateUUID() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0, v = c == \"x\" ? r : r & 3 | 8;\n return v.toString(16);\n });\n },\n jsonMessageReplacer: replacer,\n jsonMessageReviver: reviver\n } = options;\n let ws;\n if (webSocketImpl) {\n if (!isWebSocket(webSocketImpl)) {\n throw new Error(\"Invalid WebSocket implementation provided\");\n }\n ws = webSocketImpl;\n } else if (typeof WebSocket !== \"undefined\") {\n ws = WebSocket;\n } else if (typeof global !== \"undefined\") {\n ws = global.WebSocket || // @ts-expect-error: Support more browsers\n global.MozWebSocket;\n } else if (typeof window !== \"undefined\") {\n ws = window.WebSocket || // @ts-expect-error: Support more browsers\n window.MozWebSocket;\n }\n if (!ws)\n throw new Error(\n \"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\"\n );\n const WebSocketImpl = ws;\n const emitter = (() => {\n const message = /* @__PURE__ */ (() => {\n const listeners2 = {};\n return {\n on(id, listener) {\n listeners2[id] = listener;\n return () => {\n delete listeners2[id];\n };\n },\n emit(message2) {\n if (\"id\" in message2) listeners2[message2.id]?.(message2);\n }\n };\n })();\n const listeners = {\n connecting: on?.connecting ? [on.connecting] : [],\n opened: on?.opened ? [on.opened] : [],\n connected: on?.connected ? [on.connected] : [],\n ping: on?.ping ? [on.ping] : [],\n pong: on?.pong ? [on.pong] : [],\n message: on?.message ? [message.emit, on.message] : [message.emit],\n closed: on?.closed ? [on.closed] : [],\n error: on?.error ? [on.error] : []\n };\n return {\n onMessage: message.on,\n on(event, listener) {\n const l = listeners[event];\n l.push(listener);\n return () => {\n const i = l.indexOf(listener);\n if (i > -1) {\n l.splice(i, 1);\n }\n };\n },\n emit(event, ...args) {\n for (const listener of [...listeners[event]]) {\n listener(...args);\n }\n }\n };\n })();\n function errorOrClosed(cb) {\n const listening = [\n // errors are fatal and more critical than close events, throw them first\n emitter.on(\"error\", (err) => {\n listening.forEach((unlisten) => unlisten());\n cb(err);\n }),\n // closes can be graceful and not fatal, throw them second (if error didnt throw)\n emitter.on(\"closed\", (event) => {\n listening.forEach((unlisten) => unlisten());\n cb(event);\n })\n ];\n return () => listening.forEach((unlisten) => unlisten());\n }\n let connecting, locks = 0, lazyCloseTimeout, retrying = false, retries = 0, disposed = false;\n async function connect() {\n clearTimeout(lazyCloseTimeout);\n const [socket, throwOnClose] = await (connecting ?? (connecting = new Promise(\n (connected, denied) => (async () => {\n if (retrying) {\n await retryWait(retries);\n if (!locks) {\n connecting = void 0;\n return denied({ code: 1e3, reason: \"All Subscriptions Gone\" });\n }\n retries++;\n }\n emitter.emit(\"connecting\", retrying);\n const socket2 = new WebSocketImpl(\n typeof url === \"function\" ? await url() : url,\n GRAPHQL_TRANSPORT_WS_PROTOCOL\n );\n let connectionAckTimeout, queuedPing;\n function enqueuePing() {\n if (isFinite(keepAlive) && keepAlive > 0) {\n clearTimeout(queuedPing);\n queuedPing = setTimeout(() => {\n if (socket2.readyState === WebSocketImpl.OPEN) {\n socket2.send(stringifyMessage({ type: MessageType.Ping }));\n emitter.emit(\"ping\", false, void 0);\n }\n }, keepAlive);\n }\n }\n errorOrClosed((errOrEvent) => {\n connecting = void 0;\n clearTimeout(connectionAckTimeout);\n clearTimeout(queuedPing);\n denied(errOrEvent);\n if (errOrEvent instanceof TerminatedCloseEvent) {\n socket2.close(4499, \"Terminated\");\n socket2.onerror = null;\n socket2.onclose = null;\n }\n });\n socket2.onerror = (err) => emitter.emit(\"error\", err);\n socket2.onclose = (event) => emitter.emit(\"closed\", event);\n socket2.onopen = async () => {\n try {\n emitter.emit(\"opened\", socket2);\n const payload = typeof connectionParams === \"function\" ? await connectionParams() : connectionParams;\n if (socket2.readyState !== WebSocketImpl.OPEN) return;\n socket2.send(\n stringifyMessage(\n payload ? {\n type: MessageType.ConnectionInit,\n payload\n } : {\n type: MessageType.ConnectionInit\n // payload is completely absent if not provided\n },\n replacer\n )\n );\n if (isFinite(connectionAckWaitTimeout) && connectionAckWaitTimeout > 0) {\n connectionAckTimeout = setTimeout(() => {\n socket2.close(\n CloseCode.ConnectionAcknowledgementTimeout,\n \"Connection acknowledgement timeout\"\n );\n }, connectionAckWaitTimeout);\n }\n enqueuePing();\n } catch (err) {\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.InternalClientError,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Internal client error\"\n )\n );\n }\n };\n let acknowledged = false;\n socket2.onmessage = ({ data }) => {\n try {\n const message = parseMessage(data, reviver);\n emitter.emit(\"message\", message);\n if (message.type === \"ping\" || message.type === \"pong\") {\n emitter.emit(message.type, true, message.payload);\n if (message.type === \"pong\") {\n enqueuePing();\n } else if (!disablePong) {\n socket2.send(\n stringifyMessage(\n message.payload ? {\n type: MessageType.Pong,\n payload: message.payload\n } : {\n type: MessageType.Pong\n // payload is completely absent if not provided\n },\n replacer\n )\n );\n emitter.emit(\"pong\", false, message.payload);\n }\n return;\n }\n if (acknowledged) return;\n if (message.type !== MessageType.ConnectionAck)\n throw new Error(\n `First message cannot be of type ${message.type}`\n );\n clearTimeout(connectionAckTimeout);\n acknowledged = true;\n emitter.emit(\"connected\", socket2, message.payload, retrying);\n retrying = false;\n retries = 0;\n const throwOnClose2 = new Promise(\n (_, reject) => errorOrClosed(reject)\n );\n throwOnClose2.catch(() => {\n });\n connected([socket2, throwOnClose2]);\n } catch (err) {\n socket2.onmessage = null;\n emitter.emit(\"error\", err);\n socket2.close(\n CloseCode.BadResponse,\n limitCloseReason(\n err instanceof Error ? err.message : String(err),\n \"Bad response\"\n )\n );\n }\n };\n })()\n )));\n if (socket.readyState === WebSocketImpl.CLOSING) await throwOnClose;\n let release = () => {\n };\n const released = new Promise((resolve) => release = resolve);\n return [\n socket,\n release,\n // resolves on release or rejects on error/close, whichever comes first.\n // not racing with throwOnClose on purpose, it lives as long as the socket\n // and every race would leak memory per operation\n new Promise((resolve, reject) => {\n const unlisten = errorOrClosed(reject);\n if (socket.readyState !== WebSocketImpl.OPEN)\n throwOnClose.catch(reject);\n released.then(() => {\n unlisten();\n if (!locks) {\n const complete = () => socket.close(1e3, \"Normal Closure\");\n if (isFinite(lazyCloseTimeoutMs) && lazyCloseTimeoutMs > 0) {\n clearTimeout(lazyCloseTimeout);\n lazyCloseTimeout = setTimeout(() => {\n if (!locks && socket.readyState === WebSocketImpl.OPEN)\n complete();\n }, lazyCloseTimeoutMs);\n } else {\n complete();\n }\n }\n resolve();\n });\n })\n ];\n }\n function shouldRetryConnectOrThrow(errOrCloseEvent) {\n if (isLikeCloseEvent(errOrCloseEvent) && (isFatalInternalCloseCode(errOrCloseEvent.code) || [\n CloseCode.InternalServerError,\n CloseCode.InternalClientError,\n CloseCode.BadRequest,\n CloseCode.BadResponse,\n CloseCode.Unauthorized,\n // CloseCode.Forbidden, might grant access out after retry\n CloseCode.SubprotocolNotAcceptable,\n // CloseCode.ConnectionInitialisationTimeout, might not time out after retry\n // CloseCode.ConnectionAcknowledgementTimeout, might not time out after retry\n CloseCode.SubscriberAlreadyExists,\n CloseCode.TooManyInitialisationRequests\n // 4499, // Terminated, probably because the socket froze, we want to retry\n ].includes(errOrCloseEvent.code)))\n throw errOrCloseEvent;\n if (disposed) return false;\n if (isLikeCloseEvent(errOrCloseEvent) && errOrCloseEvent.code === 1e3)\n return locks > 0;\n if (!retryAttempts || retries >= retryAttempts) throw errOrCloseEvent;\n if (!shouldRetry(errOrCloseEvent)) throw errOrCloseEvent;\n return retrying = true;\n }\n if (!lazy) {\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [, , throwOnClose] = await connect();\n await throwOnClose;\n } catch (errOrCloseEvent) {\n try {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n } catch (errOrCloseEvent2) {\n return onNonLazyError?.(errOrCloseEvent2);\n }\n }\n }\n })();\n }\n function subscribe(payload, sink) {\n const id = generateID(payload);\n let done = false, errored = false, releaser = () => {\n locks--;\n done = true;\n };\n (async () => {\n locks++;\n for (; ; ) {\n try {\n const [socket, release, waitForReleaseOrThrowOnClose] = await connect();\n if (done) {\n waitForReleaseOrThrowOnClose.catch(() => {\n });\n return release();\n }\n const unlisten = emitter.onMessage(id, (message) => {\n switch (message.type) {\n case MessageType.Next: {\n sink.next(message.payload);\n return;\n }\n case MessageType.Error: {\n errored = true, done = true;\n sink.error(message.payload);\n releaser();\n return;\n }\n case MessageType.Complete: {\n done = true;\n releaser();\n return;\n }\n }\n });\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Subscribe,\n payload\n },\n replacer\n )\n );\n releaser = () => {\n if (!done && socket.readyState === WebSocketImpl.OPEN)\n socket.send(\n stringifyMessage(\n {\n id,\n type: MessageType.Complete\n },\n replacer\n )\n );\n locks--;\n done = true;\n release();\n };\n await waitForReleaseOrThrowOnClose.finally(unlisten);\n return;\n } catch (errOrCloseEvent) {\n if (!shouldRetryConnectOrThrow(errOrCloseEvent)) return;\n }\n }\n })().then(() => {\n if (!errored) sink.complete();\n }).catch((err) => {\n sink.error(err);\n });\n return () => {\n if (!done) releaser();\n };\n }\n return {\n on: emitter.on,\n subscribe,\n iterate(request) {\n const pending = [];\n const deferred = {\n done: false,\n error: null,\n resolve: () => {\n }\n };\n const dispose = subscribe(request, {\n next(val) {\n pending.push(val);\n deferred.resolve();\n },\n error(err) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n },\n complete() {\n deferred.done = true;\n deferred.resolve();\n }\n });\n const iterator = async function* iterator2() {\n for (; ; ) {\n if (!pending.length) {\n await new Promise((resolve) => deferred.resolve = resolve);\n }\n while (pending.length) {\n yield pending.shift();\n }\n if (deferred.error) {\n throw deferred.error;\n }\n if (deferred.done) {\n return;\n }\n }\n }();\n iterator.throw = async (err) => {\n if (!deferred.done) {\n deferred.done = true;\n deferred.error = err;\n deferred.resolve();\n }\n return { done: true, value: void 0 };\n };\n iterator.return = async () => {\n dispose();\n return { done: true, value: void 0 };\n };\n return iterator;\n },\n async dispose() {\n disposed = true;\n if (connecting) {\n const [socket] = await connecting;\n socket.close(1e3, \"Normal Closure\");\n }\n },\n terminate() {\n if (connecting) {\n emitter.emit(\"closed\", new TerminatedCloseEvent());\n }\n }\n };\n}\nclass TerminatedCloseEvent extends Error {\n name = \"TerminatedCloseEvent\";\n message = \"4499: Terminated\";\n code = 4499;\n reason = \"Terminated\";\n wasClean = false;\n}\nfunction isLikeCloseEvent(val) {\n return isObject(val) && \"code\" in val && \"reason\" in val;\n}\nfunction isFatalInternalCloseCode(code) {\n if ([\n 1e3,\n // Normal Closure is not an erroneous close code\n 1001,\n // Going Away\n 1006,\n // Abnormal Closure\n 1005,\n // No Status Received\n 1012,\n // Service Restart\n 1013,\n // Try Again Later\n 1014\n // Bad Gateway\n ].includes(code))\n return false;\n return code >= 1e3 && code <= 1999;\n}\nfunction isWebSocket(val) {\n return typeof val === \"function\" && \"constructor\" in val && \"CLOSED\" in val && \"CLOSING\" in val && \"CONNECTING\" in val && \"OPEN\" in val;\n}\n\nexport { CloseCode, GRAPHQL_TRANSPORT_WS_PROTOCOL, MessageType, TerminatedCloseEvent, createClient, parseMessage, stringifyMessage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mC,MAAM;CACvC,OAAO;CACP,UAAU;CACV,OAAO;CACP,SAAS;CACT,WAAW;AACb;AACA,SAAS7C,EAAiB,GAAK;CAC7B,OAAOT,EAASsF,CAAG,KAAK,UAAUA,KAAO,YAAYA;AACvD;AACA,SAASjB,EAAyB,GAAM;CAkBtC,OAjBA,CAAI;EACF;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;CAEF,CAAC,CAAC,SAASmB,CAAI,KAERA,KAAQ,OAAOA,KAAQ;AAChC;AACA,SAASvE,EAAY,GAAK;CACxB,OAAO,OAAOqE,KAAQ,cAAc,iBAAiBA,KAAO,YAAYA,KAAO,aAAaA,KAAO,gBAAgBA,KAAO,UAAUA;AACtI"}
@@ -1,4 +1,4 @@
1
- //#region node_modules/graphql-ws/dist/common-CGW11Fyb.js
1
+ // node_modules/graphql-ws/dist/common-CGW11Fyb.js
2
2
  function e(e) {
3
3
  return e === null ? "null" : Array.isArray(e) ? "array" : typeof e;
4
4
  }
@@ -56,7 +56,6 @@ function c(e, t) {
56
56
  function l(e, t) {
57
57
  return s(e), JSON.stringify(e, t);
58
58
  }
59
- //#endregion
60
- export { a as CloseCode, i as GRAPHQL_TRANSPORT_WS_PROTOCOL, o as MessageType, t as isObject, r as limitCloseReason, c as parseMessage, l as stringifyMessage, s as validateMessage };
59
+ export { a as C, i as G, o as M, t as i, r as l, c as p, l as s, s as v };
61
60
 
62
61
  //# sourceMappingURL=common-CGW11Fyb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common-CGW11Fyb.js","names":[],"sources":["../../../../node_modules/graphql-ws/dist/common-CGW11Fyb.js"],"sourcesContent":["function extendedTypeof(val) {\n if (val === null) {\n return \"null\";\n }\n if (Array.isArray(val)) {\n return \"array\";\n }\n return typeof val;\n}\nfunction isObject(val) {\n return extendedTypeof(val) === \"object\";\n}\nfunction isAsyncIterable(val) {\n return typeof Object(val)[Symbol.asyncIterator] === \"function\";\n}\nfunction isAsyncGenerator(val) {\n return isObject(val) && typeof Object(val)[Symbol.asyncIterator] === \"function\" && typeof val.return === \"function\";\n}\nfunction areGraphQLFormattedErrors(obj) {\n return Array.isArray(obj) && // must be at least one error\n obj.length > 0 && // error has at least a message\n obj.every((ob) => \"message\" in ob);\n}\nfunction limitCloseReason(reason, whenTooLong) {\n return reason.length < 124 ? reason : whenTooLong;\n}\n\nconst GRAPHQL_TRANSPORT_WS_PROTOCOL = \"graphql-transport-ws\";\nconst DEPRECATED_GRAPHQL_WS_PROTOCOL = \"graphql-ws\";\nvar CloseCode = /* @__PURE__ */ ((CloseCode2) => {\n CloseCode2[CloseCode2[\"InternalServerError\"] = 4500] = \"InternalServerError\";\n CloseCode2[CloseCode2[\"InternalClientError\"] = 4005] = \"InternalClientError\";\n CloseCode2[CloseCode2[\"BadRequest\"] = 4400] = \"BadRequest\";\n CloseCode2[CloseCode2[\"BadResponse\"] = 4004] = \"BadResponse\";\n CloseCode2[CloseCode2[\"Unauthorized\"] = 4401] = \"Unauthorized\";\n CloseCode2[CloseCode2[\"Forbidden\"] = 4403] = \"Forbidden\";\n CloseCode2[CloseCode2[\"SubprotocolNotAcceptable\"] = 4406] = \"SubprotocolNotAcceptable\";\n CloseCode2[CloseCode2[\"ConnectionInitialisationTimeout\"] = 4408] = \"ConnectionInitialisationTimeout\";\n CloseCode2[CloseCode2[\"ConnectionAcknowledgementTimeout\"] = 4504] = \"ConnectionAcknowledgementTimeout\";\n CloseCode2[CloseCode2[\"SubscriberAlreadyExists\"] = 4409] = \"SubscriberAlreadyExists\";\n CloseCode2[CloseCode2[\"TooManyInitialisationRequests\"] = 4429] = \"TooManyInitialisationRequests\";\n return CloseCode2;\n})(CloseCode || {});\nvar MessageType = /* @__PURE__ */ ((MessageType2) => {\n MessageType2[\"ConnectionInit\"] = \"connection_init\";\n MessageType2[\"ConnectionAck\"] = \"connection_ack\";\n MessageType2[\"Ping\"] = \"ping\";\n MessageType2[\"Pong\"] = \"pong\";\n MessageType2[\"Subscribe\"] = \"subscribe\";\n MessageType2[\"Next\"] = \"next\";\n MessageType2[\"Error\"] = \"error\";\n MessageType2[\"Complete\"] = \"complete\";\n return MessageType2;\n})(MessageType || {});\nfunction validateMessage(val) {\n if (!isObject(val)) {\n throw new Error(\n `Message is expected to be an object, but got ${extendedTypeof(val)}`\n );\n }\n if (!val.type) {\n throw new Error(`Message is missing the 'type' property`);\n }\n if (typeof val.type !== \"string\") {\n throw new Error(\n `Message is expects the 'type' property to be a string, but got ${extendedTypeof(\n val.type\n )}`\n );\n }\n switch (val.type) {\n case \"connection_init\" /* ConnectionInit */:\n case \"connection_ack\" /* ConnectionAck */:\n case \"ping\" /* Ping */:\n case \"pong\" /* Pong */: {\n if (val.payload != null && !isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object or nullish or missing, but got \"${val.payload}\"`\n );\n }\n break;\n }\n case \"subscribe\" /* Subscribe */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n if (typeof val.payload.query !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'query' property to be a string, but got ${extendedTypeof(\n val.payload.query\n )}`\n );\n }\n if (val.payload.variables != null && !isObject(val.payload.variables)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.variables\n )}`\n );\n }\n if (val.payload.operationName != null && extendedTypeof(val.payload.operationName) !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${extendedTypeof(\n val.payload.operationName\n )}`\n );\n }\n if (val.payload.extensions != null && !isObject(val.payload.extensions)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.extensions\n )}`\n );\n }\n break;\n }\n case \"next\" /* Next */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"error\" /* Error */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!areGraphQLFormattedErrors(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"complete\" /* Complete */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n break;\n }\n default:\n throw new Error(`Invalid message 'type' property \"${val.type}\"`);\n }\n return val;\n}\nfunction parseMessage(data, reviver) {\n return validateMessage(\n typeof data === \"string\" ? JSON.parse(data, reviver) : data\n );\n}\nfunction stringifyMessage(msg, replacer) {\n validateMessage(msg);\n return JSON.stringify(msg, replacer);\n}\n\nexport { CloseCode as C, DEPRECATED_GRAPHQL_WS_PROTOCOL as D, GRAPHQL_TRANSPORT_WS_PROTOCOL as G, MessageType as M, isAsyncGenerator as a, isAsyncIterable as b, isObject as i, limitCloseReason as l, parseMessage as p, stringifyMessage as s, validateMessage as v };\n"],"x_google_ign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,IAAI,EAAI,KAAK,oEAAoE,EAC/E,EAAI,QACL,GACF;AAEH;EAEF,KAAK;AACH,OAAI,OAAO,EAAI,MAAO,SACpB,OAAU,MACR,IAAI,EAAI,KAAK,8DAA8D,EACzE,EAAI,GACL,GACF;AAEH,OAAI,CAAC,EAAI,GACP,OAAU,MACR,IAAI,EAAI,KAAK,8CACd;AAEH,OAAI,CAAC,EAA0B,EAAI,QAAQ,CACzC,OAAU,MACR,IAAI,EAAI,KAAK,qFAAqF,KAAK,UACrG,EAAI,QACL,GACF;AAEH;EAEF,KAAK;AACH,OAAI,OAAO,EAAI,MAAO,SACpB,OAAU,MACR,IAAI,EAAI,KAAK,8DAA8D,EACzE,EAAI,GACL,GACF;AAEH,OAAI,CAAC,EAAI,GACP,OAAU,MACR,IAAI,EAAI,KAAK,8CACd;AAEH;EAEF,QACE,OAAU,MAAM,oCAAoC,EAAI,KAAK,GAAG;;AAEpE,QAAO;;AAET,SAAS,EAAa,GAAM,GAAS;AACnC,QAAO,EACL,OAAO,KAAS,WAAW,KAAK,MAAM,GAAM,EAAQ,GAAG,EACxD;;AAEH,SAAS,EAAiB,GAAK,GAAU;AAEvC,QADA,EAAgB,EAAI,EACb,KAAK,UAAU,GAAK,EAAS"}
1
+ {"version":3,"file":"common-CGW11Fyb.js","names":["extendedTypeof","val","isObject","areGraphQLFormattedErrors","obj","ob","limitCloseReason","reason","whenTooLong","GRAPHQL_TRANSPORT_WS_PROTOCOL","CloseCode","\"InternalServerError\"","\"InternalClientError\"","\"BadRequest\"","\"BadResponse\"","\"Unauthorized\"","\"Forbidden\"","\"SubprotocolNotAcceptable\"","\"ConnectionInitialisationTimeout\"","\"ConnectionAcknowledgementTimeout\"","\"SubscriberAlreadyExists\"","\"TooManyInitialisationRequests\"","CloseCode2","MessageType","\"ConnectionInit\"","\"ConnectionAck\"","\"Ping\"","\"Pong\"","\"Subscribe\"","\"Next\"","\"Error\"","\"Complete\"","MessageType2","validateMessage","parseMessage","data","reviver","stringifyMessage","msg","replacer"],"sources":["../../../../node_modules/graphql-ws/dist/common-CGW11Fyb.js"],"sourcesContent":["function extendedTypeof(val) {\n if (val === null) {\n return \"null\";\n }\n if (Array.isArray(val)) {\n return \"array\";\n }\n return typeof val;\n}\nfunction isObject(val) {\n return extendedTypeof(val) === \"object\";\n}\nfunction isAsyncIterable(val) {\n return typeof Object(val)[Symbol.asyncIterator] === \"function\";\n}\nfunction isAsyncGenerator(val) {\n return isObject(val) && typeof Object(val)[Symbol.asyncIterator] === \"function\" && typeof val.return === \"function\";\n}\nfunction areGraphQLFormattedErrors(obj) {\n return Array.isArray(obj) && // must be at least one error\n obj.length > 0 && // error has at least a message\n obj.every((ob) => \"message\" in ob);\n}\nfunction limitCloseReason(reason, whenTooLong) {\n return reason.length < 124 ? reason : whenTooLong;\n}\n\nconst GRAPHQL_TRANSPORT_WS_PROTOCOL = \"graphql-transport-ws\";\nconst DEPRECATED_GRAPHQL_WS_PROTOCOL = \"graphql-ws\";\nvar CloseCode = /* @__PURE__ */ ((CloseCode2) => {\n CloseCode2[CloseCode2[\"InternalServerError\"] = 4500] = \"InternalServerError\";\n CloseCode2[CloseCode2[\"InternalClientError\"] = 4005] = \"InternalClientError\";\n CloseCode2[CloseCode2[\"BadRequest\"] = 4400] = \"BadRequest\";\n CloseCode2[CloseCode2[\"BadResponse\"] = 4004] = \"BadResponse\";\n CloseCode2[CloseCode2[\"Unauthorized\"] = 4401] = \"Unauthorized\";\n CloseCode2[CloseCode2[\"Forbidden\"] = 4403] = \"Forbidden\";\n CloseCode2[CloseCode2[\"SubprotocolNotAcceptable\"] = 4406] = \"SubprotocolNotAcceptable\";\n CloseCode2[CloseCode2[\"ConnectionInitialisationTimeout\"] = 4408] = \"ConnectionInitialisationTimeout\";\n CloseCode2[CloseCode2[\"ConnectionAcknowledgementTimeout\"] = 4504] = \"ConnectionAcknowledgementTimeout\";\n CloseCode2[CloseCode2[\"SubscriberAlreadyExists\"] = 4409] = \"SubscriberAlreadyExists\";\n CloseCode2[CloseCode2[\"TooManyInitialisationRequests\"] = 4429] = \"TooManyInitialisationRequests\";\n return CloseCode2;\n})(CloseCode || {});\nvar MessageType = /* @__PURE__ */ ((MessageType2) => {\n MessageType2[\"ConnectionInit\"] = \"connection_init\";\n MessageType2[\"ConnectionAck\"] = \"connection_ack\";\n MessageType2[\"Ping\"] = \"ping\";\n MessageType2[\"Pong\"] = \"pong\";\n MessageType2[\"Subscribe\"] = \"subscribe\";\n MessageType2[\"Next\"] = \"next\";\n MessageType2[\"Error\"] = \"error\";\n MessageType2[\"Complete\"] = \"complete\";\n return MessageType2;\n})(MessageType || {});\nfunction validateMessage(val) {\n if (!isObject(val)) {\n throw new Error(\n `Message is expected to be an object, but got ${extendedTypeof(val)}`\n );\n }\n if (!val.type) {\n throw new Error(`Message is missing the 'type' property`);\n }\n if (typeof val.type !== \"string\") {\n throw new Error(\n `Message is expects the 'type' property to be a string, but got ${extendedTypeof(\n val.type\n )}`\n );\n }\n switch (val.type) {\n case \"connection_init\" /* ConnectionInit */:\n case \"connection_ack\" /* ConnectionAck */:\n case \"ping\" /* Ping */:\n case \"pong\" /* Pong */: {\n if (val.payload != null && !isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object or nullish or missing, but got \"${val.payload}\"`\n );\n }\n break;\n }\n case \"subscribe\" /* Subscribe */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n if (typeof val.payload.query !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'query' property to be a string, but got ${extendedTypeof(\n val.payload.query\n )}`\n );\n }\n if (val.payload.variables != null && !isObject(val.payload.variables)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.variables\n )}`\n );\n }\n if (val.payload.operationName != null && extendedTypeof(val.payload.operationName) !== \"string\") {\n throw new Error(\n `\"${val.type}\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${extendedTypeof(\n val.payload.operationName\n )}`\n );\n }\n if (val.payload.extensions != null && !isObject(val.payload.extensions)) {\n throw new Error(\n `\"${val.type}\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${extendedTypeof(\n val.payload.extensions\n )}`\n );\n }\n break;\n }\n case \"next\" /* Next */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!isObject(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an object, but got ${extendedTypeof(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"error\" /* Error */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n if (!areGraphQLFormattedErrors(val.payload)) {\n throw new Error(\n `\"${val.type}\" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(\n val.payload\n )}`\n );\n }\n break;\n }\n case \"complete\" /* Complete */: {\n if (typeof val.id !== \"string\") {\n throw new Error(\n `\"${val.type}\" message expects the 'id' property to be a string, but got ${extendedTypeof(\n val.id\n )}`\n );\n }\n if (!val.id) {\n throw new Error(\n `\"${val.type}\" message requires a non-empty 'id' property`\n );\n }\n break;\n }\n default:\n throw new Error(`Invalid message 'type' property \"${val.type}\"`);\n }\n return val;\n}\nfunction parseMessage(data, reviver) {\n return validateMessage(\n typeof data === \"string\" ? JSON.parse(data, reviver) : data\n );\n}\nfunction stringifyMessage(msg, replacer) {\n validateMessage(msg);\n return JSON.stringify(msg, replacer);\n}\n\nexport { CloseCode as C, DEPRECATED_GRAPHQL_WS_PROTOCOL as D, GRAPHQL_TRANSPORT_WS_PROTOCOL as G, MessageType as M, isAsyncGenerator as a, isAsyncIterable as b, isObject as i, limitCloseReason as l, parseMessage as p, stringifyMessage as s, validateMessage as v };\n"],"ignoreList":[0],"mappings":";AAAA,SAASA,EAAe,GAAK;CAO3B,OANIC,MAAQ,OACH,SAEL,MAAM,QAAQA,CAAG,IACZ,UAEF,OAAOA;AAChB;AACA,SAASC,EAAS,GAAK;CACrB,OAAOF,EAAeC,CAAG,MAAM;AACjC;AAOA,SAASE,EAA0B,GAAK;CACtC,OAAO,MAAM,QAAQC,CAAG,KACxBA,EAAI,SAAS,KACbA,EAAI,OAAO,MAAO,aAAaC,CAAE;AACnC;AACA,SAASC,EAAiB,GAAQ,GAAa;CAC7C,OAAOC,EAAO,SAAS,MAAMA,IAASC;AACxC;AAEA,IAAMC,IAAgC,wBAElCC,IAA4B,kBAAE,OAChC,EAAW,EAAWC,sBAAyB,QAAQ,uBACvD,EAAW,EAAWC,sBAAyB,QAAQ,uBACvD,EAAW,EAAWC,aAAgB,QAAQ,cAC9C,EAAW,EAAWC,cAAiB,QAAQ,eAC/C,EAAW,EAAWC,eAAkB,QAAQ,gBAChD,EAAW,EAAWC,YAAe,QAAQ,aAC7C,EAAW,EAAWC,2BAA8B,QAAQ,4BAC5D,EAAW,EAAWC,kCAAqC,QAAQ,mCACnE,EAAW,EAAWC,mCAAsC,QAAQ,oCACpE,EAAW,EAAWC,0BAA6B,QAAQ,2BAC3D,EAAW,EAAWC,gCAAmC,QAAQ,iCAC1DC,GACT,CAAGZ,KAAa,CAAC,CAAC,GACda,IAA8B,kBAAE,OAClC,EAAaC,iBAAoB,mBACjC,EAAaC,gBAAmB,kBAChC,EAAaC,OAAU,QACvB,EAA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@
1
- //#region node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
1
+ // node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
2
2
  var e = (function() {
3
3
  return r("C", void 0, void 0);
4
4
  })();
@@ -15,7 +15,6 @@ function r(e, t, n) {
15
15
  error: n
16
16
  };
17
17
  }
18
- //#endregion
19
- export { e as COMPLETE_NOTIFICATION, t as errorNotification, n as nextNotification };
18
+ export { e as COMPLETE_NOTIFICATION, r as createNotification, t as errorNotification, n as nextNotification };
20
19
 
21
20
  //# sourceMappingURL=NotificationFactories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationFactories.js","names":[],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js"],"sourcesContent":["export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind: kind,\n value: value,\n error: error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,KAAyB,WAAY;AAAE,QAAO,EAAmB,KAAK,KAAA,GAAW,KAAA,EAAU;IAAM;AAC5G,SAAgB,EAAkB,GAAO;AACrC,QAAO,EAAmB,KAAK,KAAA,GAAW,EAAM;;AAEpD,SAAgB,EAAiB,GAAO;AACpC,QAAO,EAAmB,KAAK,GAAO,KAAA,EAAU;;AAEpD,SAAgB,EAAmB,GAAM,GAAO,GAAO;AACnD,QAAO;EACG;EACC;EACA;EACV"}
1
+ {"version":3,"file":"NotificationFactories.js","names":["COMPLETE_NOTIFICATION","createNotification","errorNotification","error","nextNotification","value"],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/NotificationFactories.js"],"sourcesContent":["export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind: kind,\n value: value,\n error: error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map"],"ignoreList":[0],"mappings":";AAAA,IAAWA,KAAyB,WAAY;CAAE,OAAOC,EAAmB,KAAK,KAAA,GAAW,KAAA,CAAS;AAAG,EAAA,CAAG;AAC3G,SAAgBC,EAAkB,GAAO;CACrC,OAAOD,EAAmB,KAAK,KAAA,GAAWE,CAAK;AACnD;AACA,SAAgBC,EAAiB,GAAO;CACpC,OAAOH,EAAmB,KAAKI,GAAO,KAAA,CAAS;AACnD;AACA,SAAgBJ,EAAmB,GAAM,GAAO,GAAO;CACnD,OAAO;EACG;EACC;EACA;CACX;AACJ"}
@@ -1,53 +1,53 @@
1
- import { isFunction as e } from "./util/isFunction.js";
2
- import { isSubscription as t } from "./Subscription.js";
3
- import { config as n } from "./config.js";
4
- import { errorContext as r } from "./util/errorContext.js";
5
- import { SafeSubscriber as i, Subscriber as a } from "./Subscriber.js";
6
- import { observable as o } from "./symbol/observable.js";
7
- import { pipeFromArray as s } from "./util/pipe.js";
8
- //#region node_modules/rxjs/dist/esm5/internal/Observable.js
1
+ import { SafeSubscriber as e, Subscriber as t } from "./Subscriber.js";
2
+ import { isSubscription as n } from "./Subscription.js";
3
+ import { observable as r } from "./symbol/observable.js";
4
+ import { pipeFromArray as i } from "./util/pipe.js";
5
+ import { config as a } from "./config.js";
6
+ import { isFunction as o } from "./util/isFunction.js";
7
+ import { errorContext as s } from "./util/errorContext.js";
8
+ // node_modules/rxjs/dist/esm5/internal/Observable.js
9
9
  var c = function() {
10
- function e(e) {
10
+ function t(e) {
11
11
  e && (this._subscribe = e);
12
12
  }
13
- return e.prototype.lift = function(t) {
14
- var n = new e();
15
- return n.source = this, n.operator = t, n;
16
- }, e.prototype.subscribe = function(e, t, n) {
17
- var a = this, o = d(e) ? e : new i(e, t, n);
18
- return r(function() {
19
- var e = a, t = e.operator, n = e.source;
20
- o.add(t ? t.call(o, n) : n ? a._subscribe(o) : a._trySubscribe(o));
21
- }), o;
22
- }, e.prototype._trySubscribe = function(e) {
13
+ return t.prototype.lift = function(e) {
14
+ var n = new t();
15
+ return n.source = this, n.operator = e, n;
16
+ }, t.prototype.subscribe = function(t, n, r) {
17
+ var i = this, a = d(t) ? t : new e(t, n, r);
18
+ return s(function() {
19
+ var e = i, t = e.operator, n = e.source;
20
+ a.add(t ? t.call(a, n) : n ? i._subscribe(a) : i._trySubscribe(a));
21
+ }), a;
22
+ }, t.prototype._trySubscribe = function(e) {
23
23
  try {
24
24
  return this._subscribe(e);
25
25
  } catch (t) {
26
26
  e.error(t);
27
27
  }
28
- }, e.prototype.forEach = function(e, t) {
29
- var n = this;
30
- return t = l(t), new t(function(t, r) {
31
- var a = new i({
32
- next: function(t) {
28
+ }, t.prototype.forEach = function(t, n) {
29
+ var r = this;
30
+ return n = l(n), new n(function(n, i) {
31
+ var a = new e({
32
+ next: function(e) {
33
33
  try {
34
- e(t);
34
+ t(e);
35
35
  } catch (e) {
36
- r(e), a.unsubscribe();
36
+ i(e), a.unsubscribe();
37
37
  }
38
38
  },
39
- error: r,
40
- complete: t
39
+ error: i,
40
+ complete: n
41
41
  });
42
- n.subscribe(a);
42
+ r.subscribe(a);
43
43
  });
44
- }, e.prototype._subscribe = function(e) {
44
+ }, t.prototype._subscribe = function(e) {
45
45
  return this.source?.subscribe(e);
46
- }, e.prototype[o] = function() {
46
+ }, t.prototype[r] = function() {
47
47
  return this;
48
- }, e.prototype.pipe = function() {
49
- return s([...arguments])(this);
50
- }, e.prototype.toPromise = function(e) {
48
+ }, t.prototype.pipe = function() {
49
+ return i([...arguments])(this);
50
+ }, t.prototype.toPromise = function(e) {
51
51
  var t = this;
52
52
  return e = l(e), new e(function(e, n) {
53
53
  var r;
@@ -59,20 +59,19 @@ var c = function() {
59
59
  return e(r);
60
60
  });
61
61
  });
62
- }, e.create = function(t) {
63
- return new e(t);
64
- }, e;
62
+ }, t.create = function(e) {
63
+ return new t(e);
64
+ }, t;
65
65
  }();
66
66
  function l(e) {
67
- return e ?? n.Promise ?? Promise;
67
+ return e ?? a.Promise ?? Promise;
68
68
  }
69
- function u(t) {
70
- return t && e(t.next) && e(t.error) && e(t.complete);
69
+ function u(e) {
70
+ return e && o(e.next) && o(e.error) && o(e.complete);
71
71
  }
72
72
  function d(e) {
73
- return e && e instanceof a || u(e) && t(e);
73
+ return e && e instanceof t || u(e) && n(e);
74
74
  }
75
- //#endregion
76
75
  export { c as Observable };
77
76
 
78
77
  //# sourceMappingURL=Observable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Observable.js","names":["Symbol_observable"],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/Observable.js"],"sourcesContent":["import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAOA,IAAI,IAAc,WAAY;CAC1B,SAAS,EAAW,GAAW;AAC3B,EAAI,MACA,KAAK,aAAa;;AA8E1B,QA3EA,EAAW,UAAU,OAAO,SAAU,GAAU;EAC5C,IAAI,IAAa,IAAI,GAAY;AAGjC,SAFA,EAAW,SAAS,MACpB,EAAW,WAAW,GACf;IAEX,EAAW,UAAU,YAAY,SAAU,GAAgB,GAAO,GAAU;EACxE,IAAI,IAAQ,MACR,IAAa,EAAa,EAAe,GAAG,IAAiB,IAAI,EAAe,GAAgB,GAAO,EAAS;AAYpH,SAXA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;;AAEjI,SAAS,EAAW,GAAO;AACvB,QAAO,KAAS,EAAW,EAAM,KAAK,IAAI,EAAW,EAAM,MAAM,IAAI,EAAW,EAAM,SAAS;;AAEnG,SAAS,EAAa,GAAO;AACzB,QAAQ,KAAS,aAAiB,KAAgB,EAAW,EAAM,IAAI,EAAe,EAAM"}
1
+ {"version":3,"file":"Observable.js","names":["Symbol_observable","Observable","subscribe","observable","operator","_this","subscriber","isSubscriber","observerOrNext","SafeSubscriber","error","complete","errorContext","_a","source","sink","err","getPromiseCtor","promiseCtor","value","reject","resolve","pipeFromArray","x","config","isObserver","isFunction","Subscriber","isSubscription"],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/Observable.js"],"sourcesContent":["import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map"],"ignoreList":[0],"mappings":";;;;;;;;AAOA,IAAIC,IAAc,WAAY;CAC1B,SAASA,EAAW,GAAW;EAC3B,AAAIC,MACA,KAAK,aAAaA;CAE1B;CA4EA,OA3EA,EAAW,UAAU,OAAO,SAAU,GAAU;EAC5C,IAAIC,IAAa,IAAIF,EAAW;EAGhC,OAFA,EAAW,SAAS,MACpB,EAAW,WAAWG,GACfD;CACX,GACA,EAAW,UAAU,YAAY,SAAU,GAAgB,GAAO,GAAU;EACxE,IAAIE,IAAQ,MACRC,IAAaC,EAAaC,CAAc,IAAIA,IAAiB,IAAIC,EAAeD,GAAgBE,GAAOC,CAAQ;EAYnH,OAXAC,EAA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GAAG,CAAC;EACxI,CAAC;CACL,GACA,EAAW,SAAS,SAAU,GAAW;EACrC,OAAO,IAAIlB,EAAWC,CAAS;CACnC,GACOD;AACX,EAAE;AAEF,SAASgB,EAAe,GAAa;CAEjC,OAAaC,KAA+DM,EAAO,WAA0C;AACjI;AACA,SAASC,EAAW,GAAO;CACvB,OAAON,KAASO,EAAWP,EAAM,IAAI,KAAKO,EAAWP,EAAM,KAAK,KAAKO,EAAWP,EAAM,QAAQ;AAClG;AACA,SAASZ,EAAa,GAAO;CACzB,OAAQY,KAASA,aAAiBQ,KAAgBF,EAAWN,CAAK,KAAKS,EAAeT,CAAK;AAC/F"}
@@ -1,13 +1,13 @@
1
- import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
1
+ import { __extends as e } from "../../../../tslib/tslib.es6.js";
2
2
  import { isFunction as t } from "./util/isFunction.js";
3
3
  import { Subscription as n, isSubscription as r } from "./Subscription.js";
4
4
  import { config as i } from "./config.js";
5
- import { timeoutProvider as a } from "./scheduler/timeoutProvider.js";
6
- import { reportUnhandledError as o } from "./util/reportUnhandledError.js";
7
- import { noop as s } from "./util/noop.js";
8
- import { COMPLETE_NOTIFICATION as c, errorNotification as l, nextNotification as u } from "./NotificationFactories.js";
5
+ import { reportUnhandledError as a } from "./util/reportUnhandledError.js";
6
+ import { noop as o } from "./util/noop.js";
7
+ import { COMPLETE_NOTIFICATION as s, errorNotification as c, nextNotification as l } from "./NotificationFactories.js";
8
+ import { timeoutProvider as u } from "./scheduler/timeoutProvider.js";
9
9
  import { captureError as d } from "./util/errorContext.js";
10
- //#region node_modules/rxjs/dist/esm5/internal/Subscriber.js
10
+ // node_modules/rxjs/dist/esm5/internal/Subscriber.js
11
11
  var f = function(t) {
12
12
  e(n, t);
13
13
  function n(e) {
@@ -17,11 +17,11 @@ var f = function(t) {
17
17
  return n.create = function(e, t, n) {
18
18
  return new g(e, t, n);
19
19
  }, n.prototype.next = function(e) {
20
- this.isStopped ? y(u(e), this) : this._next(e);
20
+ this.isStopped ? y(l(e), this) : this._next(e);
21
21
  }, n.prototype.error = function(e) {
22
- this.isStopped ? y(l(e), this) : (this.isStopped = !0, this._error(e));
22
+ this.isStopped ? y(c(e), this) : (this.isStopped = !0, this._error(e));
23
23
  }, n.prototype.complete = function() {
24
- this.isStopped ? y(c, this) : (this.isStopped = !0, this._complete());
24
+ this.isStopped ? y(s, this) : (this.isStopped = !0, this._complete());
25
25
  }, n.prototype.unsubscribe = function() {
26
26
  this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
27
27
  }, n.prototype._next = function(e) {
@@ -94,24 +94,23 @@ var h = function() {
94
94
  return r;
95
95
  }(f);
96
96
  function _(e) {
97
- i.useDeprecatedSynchronousErrorHandling ? d(e) : o(e);
97
+ i.useDeprecatedSynchronousErrorHandling ? d(e) : a(e);
98
98
  }
99
99
  function v(e) {
100
100
  throw e;
101
101
  }
102
102
  function y(e, t) {
103
103
  var n = i.onStoppedNotification;
104
- n && a.setTimeout(function() {
104
+ n && u.setTimeout(function() {
105
105
  return n(e, t);
106
106
  });
107
107
  }
108
108
  var b = {
109
109
  closed: !0,
110
- next: s,
110
+ next: o,
111
111
  error: v,
112
- complete: s
112
+ complete: o
113
113
  };
114
- //#endregion
115
- export { g as SafeSubscriber, f as Subscriber };
114
+ export { b as EMPTY_OBSERVER, g as SafeSubscriber, f as Subscriber };
116
115
 
117
116
  //# sourceMappingURL=Subscriber.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subscriber.js","names":[],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/Subscriber.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n var _this = _super.call(this) || this;\n _this.isStopped = false;\n if (destination) {\n _this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(_this);\n }\n }\n else {\n _this.destination = EMPTY_OBSERVER;\n }\n return _this;\n }\n Subscriber.create = function (next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n };\n Subscriber.prototype.next = function (value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n this.destination = null;\n }\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n };\n Subscriber.prototype._complete = function () {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nvar ConsumerObserver = (function () {\n function ConsumerObserver(partialObserver) {\n this.partialObserver = partialObserver;\n }\n ConsumerObserver.prototype.next = function (value) {\n var partialObserver = this.partialObserver;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n ConsumerObserver.prototype.error = function (err) {\n var partialObserver = this.partialObserver;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n };\n ConsumerObserver.prototype.complete = function () {\n var partialObserver = this.partialObserver;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n return ConsumerObserver;\n}());\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n var partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n var context_1;\n if (_this && config.useDeprecatedNextContext) {\n context_1 = Object.create(observerOrNext);\n context_1.unsubscribe = function () { return _this.unsubscribe(); };\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context_1),\n error: observerOrNext.error && bind(observerOrNext.error, context_1),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n _this.destination = new ConsumerObserver(partialObserver);\n return _this;\n }\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n var onStoppedNotification = config.onStoppedNotification;\n onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });\n}\nexport var EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AASA,IAAI,IAAc,SAAU,GAAQ;AAChC,GAAU,GAAY,EAAO;CAC7B,SAAS,EAAW,GAAa;EAC7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A0B,GAAc,GAAY;CACzD,IAAI,IAAwB,EAAO;AACnC,MAAyB,EAAgB,WAAW,WAAY;AAAE,SAAO,EAAsB,GAAc,EAAW;GAAI;;AAEhI,IAAW,IAAiB;CACxB,QAAQ;CACR,MAAM;CACN,OAAO;CACP,UAAU;CACb"}
1
+ {"version":3,"file":"Subscriber.js","names":["Subscriber","_super","_this","destination","isSubscription","EMPTY_OBSERVER","SafeSubscriber","next","error","complete","handleStoppedNotification","nextNotification","value","errorNotification","err","COMPLETE_NOTIFICATION","Subscription","_bind","bind","fn","thisArg","ConsumerObserver","partialObserver","isFunction","observerOrNext","context_1","config","handleUnhandledError","captureError","reportUnhandledError","defaultErrorHandler","onStoppedNotification","timeoutProvider","notification","subscriber","noop"],"sources":["../../../../../../node_modules/rxjs/dist/esm5/internal/Subscriber.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n var _this = _super.call(this) || this;\n _this.isStopped = false;\n if (destination) {\n _this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(_this);\n }\n }\n else {\n _this.destination = EMPTY_OBSERVER;\n }\n return _this;\n }\n Subscriber.create = function (next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n };\n Subscriber.prototype.next = function (value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n this.destination = null;\n }\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n };\n Subscriber.prototype._complete = function () {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nvar ConsumerObserver = (function () {\n function ConsumerObserver(partialObserver) {\n this.partialObserver = partialObserver;\n }\n ConsumerObserver.prototype.next = function (value) {\n var partialObserver = this.partialObserver;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n ConsumerObserver.prototype.error = function (err) {\n var partialObserver = this.partialObserver;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n };\n ConsumerObserver.prototype.complete = function () {\n var partialObserver = this.partialObserver;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n return ConsumerObserver;\n}());\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n var partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n var context_1;\n if (_this && config.useDeprecatedNextContext) {\n context_1 = Object.create(observerOrNext);\n context_1.unsubscribe = function () { return _this.unsubscribe(); };\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context_1),\n error: observerOrNext.error && bind(observerOrNext.error, context_1),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n _this.destination = new ConsumerObserver(partialObserver);\n return _this;\n }\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n var onStoppedNotification = config.onStoppedNotification;\n onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });\n}\nexport var EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map"],"ignoreList":[0],"mappings":";;;;;;;;;;AASA,IAAIA,IAAc,SAAU,GAAQ;CAChC,EAAUA,GAAYC,CAAM;CAC5B,SAASD,EAAW,GAAa;EAC7B,IAAIE,IAAQD,EAAO,KAAK,IAAI,KAAK;EAWjC,OAVA,EAAM,YAAY,IACdE,KACA,EAAM,cAAcA,GAChBC,EAAeD,CAAW,KAC1BA,EAAY,IAAID,CAAK,KAIzB,EAAM,cAAcG,GAEjBH;CACX;CAwDA,OAvDA,EAAW,SAAS,SAAU,GAAM,GAAO,GAAU;EACjD,OAAO,IAAII,EAAeC,GAAMC,GAAOC,CAAQ;CACnD,GACA,EAAW,UAAU,OAAO,SAAU,GAAO;EACzC,AAAI,KAAK,YACLC,EAA0BC,EAAiBC,CAAK,GAAG,IAAI,IAGvD,KAAK,MAAMA,CAAK;CAExB,GACA,EAAW,UAAU,QAAQ,SAAU,GAAK;EACxC,AAAI,KAAK,YACLF,EAA0BG,EAAkBC,CA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@ -1,8 +1,8 @@
1
- import { __read as e, __spreadArray as t, __values as n } from "../../../node_modules/tslib/tslib.es6.js";
1
+ import { __read as e, __spreadArray as t, __values as n } from "../../../../tslib/tslib.es6.js";
2
2
  import { isFunction as r } from "./util/isFunction.js";
3
3
  import { UnsubscriptionError as i } from "./util/UnsubscriptionError.js";
4
4
  import { arrRemove as a } from "./util/arrRemove.js";
5
- //#region node_modules/rxjs/dist/esm5/internal/Subscription.js
5
+ // node_modules/rxjs/dist/esm5/internal/Subscription.js
6
6
  var o = function() {
7
7
  function o(e) {
8
8
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
@@ -12,18 +12,20 @@ var o = function() {
12
12
  if (!this.closed) {
13
13
  this.closed = !0;
14
14
  var d = this._parentage;
15
- if (d) if (this._parentage = null, Array.isArray(d)) try {
16
- for (var f = n(d), p = f.next(); !p.done; p = f.next()) p.value.remove(this);
17
- } catch (e) {
18
- a = { error: e };
19
- } finally {
20
- try {
21
- p && !p.done && (o = f.return) && o.call(f);
15
+ if (d) {
16
+ if (this._parentage = null, Array.isArray(d)) try {
17
+ for (var f = n(d), p = f.next(); !p.done; p = f.next()) p.value.remove(this);
18
+ } catch (e) {
19
+ a = { error: e };
22
20
  } finally {
23
- if (a) throw a.error;
21
+ try {
22
+ p && !p.done && (o = f.return) && o.call(f);
23
+ } finally {
24
+ if (a) throw a.error;
25
+ }
24
26
  }
27
+ else d.remove(this);
25
28
  }
26
- else d.remove(this);
27
29
  var m = this.initialTeardown;
28
30
  if (r(m)) try {
29
31
  m();
@@ -55,13 +57,15 @@ var o = function() {
55
57
  if (u) throw new i(u);
56
58
  }
57
59
  }, o.prototype.add = function(e) {
58
- if (e && e !== this) if (this.closed) c(e);
59
- else {
60
- if (e instanceof o) {
61
- if (e.closed || e._hasParent(this)) return;
62
- e._addParent(this);
60
+ if (e && e !== this) {
61
+ if (this.closed) c(e);
62
+ else {
63
+ if (e instanceof o) {
64
+ if (e.closed || e._hasParent(this)) return;
65
+ e._addParent(this);
66
+ }
67
+ (this._finalizers = this._finalizers ?? []).push(e);
63
68
  }
64
- (this._finalizers = this._finalizers ?? []).push(e);
65
69
  }
66
70
  }, o.prototype._hasParent = function(e) {
67
71
  var t = this._parentage;
@@ -87,7 +91,6 @@ function s(e) {
87
91
  function c(e) {
88
92
  r(e) ? e() : e.unsubscribe();
89
93
  }
90
- //#endregion
91
94
  export { o as Subscription, s as isSubscription };
92
95
 
93
96
  //# sourceMappingURL=Subscription.js.map