@surething/cockpit 1.0.205 → 1.0.207

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 (324) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +25 -25
  3. package/.next-prod/build-manifest.json +3 -3
  4. package/.next-prod/prerender-manifest.json +3 -3
  5. package/.next-prod/react-loadable-manifest.json +3 -3
  6. package/.next-prod/required-server-files.js +12 -0
  7. package/.next-prod/required-server-files.json +12 -0
  8. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next-prod/server/app/_global-error.html +1 -1
  11. package/.next-prod/server/app/_global-error.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  15. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/.next-prod/server/app/_not-found/page.js +2 -2
  19. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  20. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next-prod/server/app/_not-found.html +2 -2
  22. package/.next-prod/server/app/_not-found.rsc +4 -3
  23. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -3
  24. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +4 -3
  26. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +3 -2
  29. package/.next-prod/server/app/api/bash/route.js +1 -1
  30. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  31. package/.next-prod/server/app/api/chat/codex/route.js +3 -3
  32. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  33. package/.next-prod/server/app/api/chat/deepseek/route.js +6 -6
  34. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  35. package/.next-prod/server/app/api/chat/kimi/route.js +3 -3
  36. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  37. package/.next-prod/server/app/api/chat/ollama/route.js +7 -7
  38. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  39. package/.next-prod/server/app/api/chat/route.js +3 -3
  40. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  41. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  42. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  43. package/.next-prod/server/app/api/commands/route.js +1 -1
  44. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  45. package/.next-prod/server/app/api/comments/route.js +1 -1
  46. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  47. package/.next-prod/server/app/api/db/columns/route.js +4 -4
  48. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  49. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  50. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  51. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  52. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  53. package/.next-prod/server/app/api/db/export/route.js +1 -1
  54. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  55. package/.next-prod/server/app/api/db/query/route.js +1 -1
  56. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  57. package/.next-prod/server/app/api/db/schemas/route.js +2 -2
  58. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  59. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  60. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  61. package/.next-prod/server/app/api/file/route.js +1 -1
  62. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  63. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  64. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  65. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  66. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  67. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  68. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  69. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  70. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  71. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  72. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  73. package/.next-prod/server/app/api/files/index/route.js +1 -1
  74. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  75. package/.next-prod/server/app/api/files/init/route.js +1 -1
  76. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  77. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  78. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  79. package/.next-prod/server/app/api/files/read/route.js +1 -1
  80. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  81. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  82. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  83. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  84. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  85. package/.next-prod/server/app/api/files/save/route.js +1 -1
  86. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  87. package/.next-prod/server/app/api/files/search/route.js +1 -1
  88. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  89. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  90. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  91. package/.next-prod/server/app/api/files/text/route.js +1 -1
  92. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  93. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  94. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  95. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  96. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  97. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  98. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  99. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  100. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  101. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  102. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  103. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  104. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  105. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  106. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  107. package/.next-prod/server/app/api/git/status/route.js +1 -1
  108. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  109. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  110. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  111. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  112. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  113. package/.next-prod/server/app/api/global-state/route.js +1 -1
  114. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  115. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  116. package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
  117. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  118. package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
  119. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  120. package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
  121. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  122. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  123. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  124. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  125. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  126. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  127. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  128. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  129. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  130. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  131. package/.next-prod/server/app/api/mysql/columns/route.js +4 -4
  132. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  133. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  134. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  135. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  136. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  137. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  138. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  139. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  140. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  141. package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
  142. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  143. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  144. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  145. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  146. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  147. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  148. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  149. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  150. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  151. package/.next-prod/server/app/api/note/route.js +1 -1
  152. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  153. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  154. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  155. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  156. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  157. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  158. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  159. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  160. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  161. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  162. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  163. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  164. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  165. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  166. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  167. package/.next-prod/server/app/api/project-state/route.js +1 -1
  168. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  169. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  170. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  171. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  172. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  173. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  174. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  175. package/.next-prod/server/app/api/projects/route.js +1 -1
  176. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  177. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  178. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  179. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  180. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  181. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  182. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  183. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  184. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  185. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  186. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  187. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  188. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  189. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  190. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  191. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  192. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  193. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  194. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  195. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  196. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  197. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  198. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  199. package/.next-prod/server/app/api/review/order/route.js +1 -1
  200. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  201. package/.next-prod/server/app/api/review/route.js +1 -1
  202. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  203. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  204. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  205. package/.next-prod/server/app/api/review/users/route.js +1 -1
  206. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  207. package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
  208. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  209. package/.next-prod/server/app/api/services/config/route.js +1 -1
  210. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  211. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  212. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  213. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  214. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  215. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  216. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  217. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  218. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  219. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  220. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  221. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  222. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  223. package/.next-prod/server/app/api/sessions/route.js +1 -1
  224. package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
  225. package/.next-prod/server/app/api/settings/route.js +1 -1
  226. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  227. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  228. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  229. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  230. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  231. package/.next-prod/server/app/api/skills/route.js +1 -1
  232. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  233. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  234. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  235. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  236. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  237. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  238. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  239. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  240. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  241. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  242. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  243. package/.next-prod/server/app/api/version/route.js +1 -1
  244. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  245. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  246. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  247. package/.next-prod/server/app/page.js +2 -99
  248. package/.next-prod/server/app/page.js.nft.json +1 -1
  249. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  250. package/.next-prod/server/app/project/page.js +2 -30
  251. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  252. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  253. package/.next-prod/server/app/review/[id]/page.js +2 -2
  254. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  255. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  256. package/.next-prod/server/app-paths-manifest.json +25 -25
  257. package/.next-prod/server/chunks/240.js +1 -0
  258. package/.next-prod/server/chunks/{4098.js → 5466.js} +1 -1
  259. package/.next-prod/server/chunks/554.js +101 -0
  260. package/.next-prod/server/chunks/{4272.js → 6007.js} +2 -2
  261. package/.next-prod/server/chunks/7264.js +5 -0
  262. package/.next-prod/server/chunks/8750.js +1 -0
  263. package/.next-prod/server/chunks/{4490.js → 8764.js} +1 -1
  264. package/.next-prod/server/chunks/900.js +1 -0
  265. package/.next-prod/server/chunks/9255.js +1 -0
  266. package/.next-prod/server/chunks/9658.js +59 -0
  267. package/.next-prod/server/chunks/987.js +139 -0
  268. package/.next-prod/server/functions-config-manifest.json +1 -26
  269. package/.next-prod/server/middleware-build-manifest.js +1 -1
  270. package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
  271. package/.next-prod/server/pages/404.html +2 -2
  272. package/.next-prod/server/pages/500.html +1 -1
  273. package/.next-prod/server/server-reference-manifest.json +1 -1
  274. package/.next-prod/static/chunks/{700.8d53bb1a328c3f97.js → 1959.b9473117faf354bf.js} +1 -1
  275. package/.next-prod/static/chunks/5204-c8293184aa55cdd5.js +23 -0
  276. package/.next-prod/static/chunks/5660-9053823b3dfa50f5.js +29 -0
  277. package/.next-prod/static/chunks/6028-1d6ced1439a3f01f.js +1 -0
  278. package/.next-prod/static/chunks/6345-6b34b0528ff833a1.js +14 -0
  279. package/.next-prod/static/chunks/app/layout-421143dba2c69478.js +1 -0
  280. package/.next-prod/static/chunks/app/page-db32ebfdf1ac9174.js +1 -0
  281. package/.next-prod/static/chunks/app/project/page-db32ebfdf1ac9174.js +1 -0
  282. package/.next-prod/static/chunks/app/review/[id]/page-05cd4cb51babd64c.js +1 -0
  283. package/.next-prod/static/chunks/webpack-bb0c02e3a9602d78.js +1 -0
  284. package/.next-prod/static/css/a7974d62fe853925.css +1 -0
  285. package/.next-prod/trace +12 -12
  286. package/.next-prod/trace-build +1 -1
  287. package/dist/{chunk-5NL2LMKP.mjs → chunk-HIRLDMCH.mjs} +24 -140
  288. package/dist/chunk-RSHKDWJM.mjs +136 -0
  289. package/dist/chunk-VCZEGP64.mjs +984 -0
  290. package/dist/scheduledTasks.mjs +6 -4
  291. package/dist/server-K6XWP7DX.mjs +69 -0
  292. package/dist/wsServer.mjs +60 -482
  293. package/next.config.mjs +15 -0
  294. package/package.json +15 -17
  295. package/server.mjs +1 -1
  296. package/.next-prod/server/chunks/2338.js +0 -1
  297. package/.next-prod/server/chunks/3353.js +0 -1
  298. package/.next-prod/server/chunks/3863.js +0 -1
  299. package/.next-prod/server/chunks/4732.js +0 -1
  300. package/.next-prod/server/chunks/4793.js +0 -1
  301. package/.next-prod/server/chunks/5147.js +0 -1
  302. package/.next-prod/server/chunks/5394.js +0 -1
  303. package/.next-prod/server/chunks/6043.js +0 -4
  304. package/.next-prod/server/chunks/7051.js +0 -1
  305. package/.next-prod/server/chunks/7514.js +0 -31
  306. package/.next-prod/server/chunks/8491.js +0 -5
  307. package/.next-prod/server/chunks/9298.js +0 -139
  308. package/.next-prod/static/chunks/1705-906aa28943dbc391.js +0 -4
  309. package/.next-prod/static/chunks/3530-42727255f967251e.js +0 -14
  310. package/.next-prod/static/chunks/3579-51f0ad7204c67e22.js +0 -1
  311. package/.next-prod/static/chunks/3643-fe2ac2f1accd0649.js +0 -1
  312. package/.next-prod/static/chunks/3743-1f5d8cfd9d92ad97.js +0 -4
  313. package/.next-prod/static/chunks/4186-2bbbcdf03b3c15f5.js +0 -17
  314. package/.next-prod/static/chunks/9062-8d92cbc176f388a0.js +0 -1
  315. package/.next-prod/static/chunks/9114-0d2717c9c2752d0f.js +0 -1
  316. package/.next-prod/static/chunks/app/layout-e091cf70aaec617b.js +0 -1
  317. package/.next-prod/static/chunks/app/page-c9a30c88afc0a0c5.js +0 -1
  318. package/.next-prod/static/chunks/app/project/page-bd8c46d229676a01.js +0 -29
  319. package/.next-prod/static/chunks/app/review/[id]/page-f8bb4748e9a94a0f.js +0 -1
  320. package/.next-prod/static/chunks/webpack-c6cffb10a569677a.js +0 -1
  321. package/.next-prod/static/css/23784ace5d9f83d5.css +0 -1
  322. package/dist/JupyterKernelManager-VBKKSRVJ.mjs +0 -269
  323. /package/.next-prod/static/{T6-Nq3sO9DxU5E0rsM6aX → Uvhbo45hauczMddOCJnSX}/_buildManifest.js +0 -0
  324. /package/.next-prod/static/{T6-Nq3sO9DxU5E0rsM6aX → Uvhbo45hauczMddOCJnSX}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=8750,exports.ids=[8750],exports.modules={383:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.OperatorSubscriber=b.createOperatorSubscriber=void 0;var f=c(47457);b.createOperatorSubscriber=function(a,b,c,d,e){return new g(a,b,c,d,e)};var g=function(a){function b(b,c,d,e,f,g){var h=a.call(this,b)||this;return h.onFinalize=f,h.shouldUnsubscribe=g,h._next=c?function(a){try{c(a)}catch(a){b.error(a)}}:a.prototype._next,h._error=e?function(a){try{e(a)}catch(a){b.error(a)}finally{this.unsubscribe()}}:a.prototype._error,h._complete=d?function(){try{d()}catch(a){b.error(a)}finally{this.unsubscribe()}}:a.prototype._complete,h}return e(b,a),b.prototype.unsubscribe=function(){var b;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;a.prototype.unsubscribe.call(this),c||null==(b=this.onFinalize)||b.call(this)}},b}(f.Subscriber);b.OperatorSubscriber=g},441:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.BehaviorSubject=void 0,b.BehaviorSubject=function(a){function b(b){var c=a.call(this)||this;return c._value=b,c}return e(b,a),Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);return c.closed||b.next(this._value),c},b.prototype.getValue=function(){var a=this.hasError,b=this.thrownError,c=this._value;if(a)throw b;return this._throwIfClosed(),c},b.prototype.next=function(b){a.prototype.next.call(this,this._value=b)},b}(c(57707).Subject)},507:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},g=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},h=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},i=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))},j=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var k=c(32613),l=c(81773),m=j(c(64391)),n=c(8049),o=j(c(16763)),p=j(c(75735)),q=l.error.SERVICE_UNAVAILABLE,r=["Neo.ClientError.Security.CredentialsExpired","Neo.ClientError.Security.Forbidden","Neo.ClientError.Security.TokenExpired","Neo.ClientError.Security.Unauthorized"],s=l.internal.pool,t=s.Pool,u=s.PoolConfig;b.default=function(a){function b(c,d){var e=c.id,j=c.config,l=c.log,n=c.userAgent,q=c.boltAgent,r=c.authTokenManager,s=c.newPool,v=void 0===s?function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return new(t.bind.apply(t,i([void 0],h(a),!1)))}:s;void 0===d&&(d=null);var w=a.call(this)||this;return w._id=e,w._config=j,w._log=l,w._clientCertificateHolder=new p.default({clientCertificateProvider:w._config.clientCertificate}),w._authenticationProvider=new m.default({authTokenManager:r,userAgent:n,boltAgent:q}),w._livenessCheckProvider=new o.default({connectionLivenessCheckTimeout:j.connectionLivenessCheckTimeout}),w._userAgent=n,w._boltAgent=q,w._createChannelConnection=d||function(a){return f(w,void 0,void 0,function(){var b,c;return g(this,function(d){switch(d.label){case 0:return b=k.createChannelConnection,c=[a,this._config,this._createConnectionErrorHandler(),this._log],[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,b.apply(void 0,c.concat([d.sent()]))]}})})},w._connectionPool=v({create:w._createConnection.bind(w),destroy:w._destroyConnection.bind(w),validateOnAcquire:w._validateConnectionOnAcquire.bind(w),validateOnRelease:w._validateConnectionOnRelease.bind(w),installIdleObserver:b._installIdleObserverOnConnection.bind(w),removeIdleObserver:b._removeIdleObserverOnConnection.bind(w),config:u.fromDriverConfig(j),log:w._log}),w._openConnections={},w}return e(b,a),b.prototype._createConnectionErrorHandler=function(){return new k.ConnectionErrorHandler(q)},b.prototype._getClientCertificate=function(){return f(this,void 0,void 0,function(){return g(this,function(a){return[2,this._config.clientCertificate.getClientCertificate()]})})},b.prototype._createConnection=function(a,b,c){var d=this,e=a.auth;return this._createChannelConnection(b).then(function(a){return a.release=function(){return a.idleTimestamp=Date.now(),c(b,a)},d._openConnections[a.id]=a,d._authenticationProvider.authenticate({connection:a,auth:e}).catch(function(b){throw d._destroyConnection(a),b})})},b.prototype._validateConnectionOnAcquire=function(a,b){return f(this,arguments,void 0,function(a,b){var c,d,e=a.auth,f=a.skipReAuth;return g(this,function(a){switch(a.label){case 0:if(!this._validateConnection(b))return[2,!1];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._livenessCheckProvider.check(b)];case 2:return a.sent(),[3,4];case 3:return c=a.sent(),this._log.debug("The connection ".concat(b.id," is not alive because of an error ").concat(c.code," '").concat(c.message,"'")),[2,!1];case 4:return a.trys.push([4,6,,7]),[4,this._authenticationProvider.authenticate({connection:b,auth:e,skipReAuth:f})];case 5:return a.sent(),[2,!0];case 6:return d=a.sent(),this._log.debug("The connection ".concat(b.id," is not valid because of an error ").concat(d.code," '").concat(d.message,"'")),[2,!1];case 7:return[2]}})})},b.prototype._validateConnectionOnRelease=function(a){return!0!==a._sticky&&this._validateConnection(a)},b.prototype._validateConnection=function(a){if(!a.isOpen())return!1;var b=this._config.maxConnectionLifetime;return!(Date.now()-a.creationTimestamp>b)},b.prototype._destroyConnection=function(a){return delete this._openConnections[a.id],a.close()},b.prototype._verifyConnectivityAndGetServerVersion=function(a){return f(this,arguments,void 0,function(a){var b,c,d=a.address;return g(this,function(a){switch(a.label){case 0:return[4,this._connectionPool.acquire({},d)];case 1:b=a.sent(),c=new l.ServerInfo(b.server,b.protocol().version),a.label=2;case 2:if(a.trys.push([2,,5,7]),b.protocol().isLastMessageLogon())return[3,4];return[4,b.resetAndFlush()];case 3:a.sent(),a.label=4;case 4:return[3,7];case 5:return[4,b.release()];case 6:return a.sent(),[7];case 7:return[2,c]}})})},b.prototype._verifyAuthentication=function(a){return f(this,arguments,void 0,function(a){var b,c,d,e,f,h,i=a.getAddress,j=a.auth;return g(this,function(a){switch(a.label){case 0:b=[],a.label=1;case 1:return a.trys.push([1,8,9,11]),[4,i()];case 2:return c=a.sent(),[4,this._connectionPool.acquire({auth:j,skipReAuth:!0},c)];case 3:if(d=a.sent(),b.push(d),e=!d.protocol().isLastMessageLogon(),!d.supportsReAuth)throw(0,l.newError)("Driver is connected to a database that does not support user switch.");if(!(e&&d.supportsReAuth))return[3,5];return[4,this._authenticationProvider.authenticate({connection:d,auth:j,waitReAuth:!0,forceReAuth:!0})];case 4:return a.sent(),[3,7];case 5:if(!(e&&!d.supportsReAuth))return[3,7];return[4,this._connectionPool.acquire({auth:j},c,{requireNew:!0})];case 6:(f=a.sent())._sticky=!0,b.push(f),a.label=7;case 7:return[2,!0];case 8:if(h=a.sent(),r.includes(h.code))return[2,!1];throw h;case 9:return[4,Promise.all(b.map(function(a){return a.release()}))];case 10:return a.sent(),[7];case 11:return[2]}})})},b.prototype._verifyStickyConnection=function(a){return f(this,arguments,void 0,function(a){var b,c,d=a.auth,e=a.connection;return a.address,g(this,function(a){switch(a.label){case 0:if(c=!(b=n.object.equals(d,e.authToken)),e._sticky=b&&!e.supportsReAuth,!(c||e._sticky))return[3,2];return[4,e.release()];case 1:throw a.sent(),(0,l.newError)("Driver is connected to a database that does not support user switch.");case 2:return[2]}})})},b.prototype.close=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._connectionPool.close()];case 1:return a.sent(),[4,Promise.all(Object.values(this._openConnections).map(function(a){return a.close()}))];case 2:return a.sent(),[2]}})})},b._installIdleObserverOnConnection=function(a,b){a._setIdle(b)},b._removeIdleObserverOnConnection=function(a){a._unsetIdle()},b.prototype._handleSecurityError=function(a,b,c){return this._authenticationProvider.handleError({connection:c,code:a.code})&&(a.retriable=!0,a.retryable=!0),"Neo.ClientError.Security.AuthorizationExpired"===a.code&&this._connectionPool.apply(b,function(a){a.authToken=null}),c&&c.close().catch(function(){}),a},b}(l.ConnectionProvider)},570:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mapTo=void 0;var d=c(53767);b.mapTo=function(a){return d.map(function(){return a})}},580:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.interval=void 0;var d=c(84189),e=c(10360);b.interval=function(a,b){return void 0===a&&(a=0),void 0===b&&(b=d.asyncScheduler),a<0&&(a=0),e.timer(a,a,b)}},892:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.materialize=void 0;var d=c(7180),e=c(58555),f=c(383);b.materialize=function(){return e.operate(function(a,b){a.subscribe(f.createOperatorSubscriber(b,function(a){b.next(d.Notification.createNext(a))},function(){b.next(d.Notification.createComplete()),b.complete()},function(a){b.next(d.Notification.createError(a)),b.complete()}))})}},1338:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(88247)),i=g(c(10543)),j=g(c(90797)),k=c(81773).internal.constants.BOLT_PROTOCOL_V5_6,l=Object.freeze({OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"});b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype._enrichMetadata=function(a){return Array.isArray(a.statuses)&&(a.statuses=a.statuses.map(function(a){return f(f({},a),{diagnostic_record:null!==a.diagnostic_record?f(f({},l),a.diagnostic_record):null})})),a},b}(h.default)},1466:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.RawRoutingTable=b.BoltProtocol=void 0;var g=f(c(74795)),h=f(c(29132)),i=f(c(2910)),j=f(c(40990));e(c(95590),b),b.BoltProtocol=i.default,b.RawRoutingTable=j.default,b.default={handshake:g.default,create:h.default}},1501:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},g=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))},h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var i=c(21764),j=c(49619),k=c(81334),l=c(54507),m=h(c(57236)),n=c(27650),o=c(2265),p=c(8506),q=c(87794),r=h(c(71293)),s=h(c(11649)),t=c(29638);b.default=function(){function a(a){var b,c,d,e,f=a.mode,g=a.connectionProvider,h=a.bookmarks,i=a.database,j=a.config,l=a.reactive,m=a.fetchSize,q=a.impersonatedUser,r=a.bookmarkManager,s=a.notificationFilter,t=a.auth,u=a.log,v=a.homeDatabaseCallback;this._mode=f,this._database=i,this._reactive=l,this._fetchSize=m,this._homeDatabaseCallback=v,this._auth=t,this._getConnectionAcquistionBookmarks=this._getConnectionAcquistionBookmarks.bind(this),this._readConnectionHolder=new n.ConnectionHolder({mode:k.ACCESS_MODE_READ,auth:t,database:i,bookmarks:h,connectionProvider:g,impersonatedUser:q,onDatabaseNameResolved:this._onDatabaseNameResolved.bind(this),getConnectionAcquistionBookmarks:this._getConnectionAcquistionBookmarks,log:u}),this._writeConnectionHolder=new n.ConnectionHolder({mode:k.ACCESS_MODE_WRITE,auth:t,database:i,bookmarks:h,connectionProvider:g,impersonatedUser:q,onDatabaseNameResolved:this._onDatabaseNameResolved.bind(this),getConnectionAcquistionBookmarks:this._getConnectionAcquistionBookmarks,log:u}),this._open=!0,this._hasTx=!1,this._impersonatedUser=q,this._lastBookmarks=null!=h?h:p.Bookmarks.empty(),this._configuredBookmarks=this._lastBookmarks,this._transactionExecutor=(d=null!=(c=null==(b=j)?void 0:b.maxTransactionRetryTime)?c:null,new o.TransactionExecutor(d)),this._databaseNameResolved=""!==this._database;var w=this._calculateWatermaks();this._lowRecordWatermark=w.low,this._highRecordWatermark=w.high,this._results=[],this._bookmarkManager=r,this._notificationFilter=s,this._log=u,this._databaseGuess=null==j?void 0:j.cachedHomeDatabase,this._isRoutingSession=null!=(e=null==j?void 0:j.routingDriver)&&e}return a.prototype.run=function(a,b,c){var f=this,g=(0,j.validateQueryAndParameters)(a,b),h=g.validatedQuery,i=g.params,l=null!=c?new q.TxConfig(c,this._log):q.TxConfig.empty(),m=this._run(h,i,function(a){return d(f,void 0,void 0,function(){var b,c=this;return e(this,function(d){switch(d.label){case 0:return[4,this._bookmarks()];case 1:return b=d.sent(),this._assertSessionIsOpen(),[2,a.run(h,i,{bookmarks:b,txConfig:l,mode:this._mode,database:this._database,apiTelemetryConfig:{api:k.TELEMETRY_APIS.AUTO_COMMIT_TRANSACTION},impersonatedUser:this._impersonatedUser,afterComplete:function(a){return c._onCompleteCallback(a,b)},reactive:this._reactive,fetchSize:this._fetchSize,lowRecordWatermark:this._lowRecordWatermark,highRecordWatermark:this._highRecordWatermark,notificationFilter:this._notificationFilter,onDb:this._onDatabaseNameResolved.bind(this)})]}})})});return this._results.push(m),m},a.prototype._run=function(a,b,c){var d=this._acquireAndConsumeConnection(c),e=d.connectionHolder,f=d.resultPromise.catch(function(a){return Promise.resolve(new i.FailedObserver({error:a}))}),g={high:this._highRecordWatermark,low:this._lowRecordWatermark};return new m.default(f,a,b,e,g)},a.prototype._acquireConnection=function(a){var b=this,c=this._acquireAndConsumeConnection(a),f=c.connectionHolder;return c.resultPromise.then(function(a){return d(b,void 0,void 0,function(){return e(this,function(b){switch(b.label){case 0:return[4,f.releaseConnection()];case 1:return b.sent(),[2,a]}})})})},a.prototype._acquireAndConsumeConnection=function(a){var b,c=this._connectionHolderWithMode(this._mode);return b=this._open?!this._hasTx&&c.initializeConnection(this._databaseGuess)?c.getConnection().then(function(b){return a(b)}):Promise.reject((0,l.newError)("Queries cannot be run directly on a session with an open transaction; either run from within the transaction or use a different session.")):Promise.reject((0,l.newError)("Cannot run query in a closed session.")),{connectionHolder:c,resultPromise:b}},a.prototype.beginTransaction=function(a){var b=q.TxConfig.empty();return null!=a&&(b=new q.TxConfig(a,this._log)),this._beginTransaction(this._mode,b,{api:k.TELEMETRY_APIS.UNMANAGED_TRANSACTION})},a.prototype._beginTransaction=function(b,c,d){var e=this;if(!this._open)throw(0,l.newError)("Cannot begin a transaction on a closed session.");if(this._hasTx)throw(0,l.newError)("You cannot begin a transaction on a session with an open transaction; either run from within the transaction or use a different session.");var f=a._validateSessionMode(b),g=this._connectionHolderWithMode(f);g.initializeConnection(this._databaseGuess),this._hasTx=!0;var h=new r.default({connectionHolder:g,impersonatedUser:this._impersonatedUser,onClose:this._transactionClosed.bind(this),onBookmarks:function(a,b,c){return e._updateBookmarks(a,b,c)},onConnection:this._assertSessionIsOpen.bind(this),reactive:this._reactive,fetchSize:this._fetchSize,lowRecordWatermark:this._lowRecordWatermark,highRecordWatermark:this._highRecordWatermark,notificationFilter:this._notificationFilter,apiTelemetryConfig:d,onDbCallback:this._onDatabaseNameResolved.bind(this)});return h._begin(function(){return e._bookmarks()},c),h},a.prototype._assertSessionIsOpen=function(){if(!this._open)throw(0,l.newError)("You cannot run more transactions on a closed session.")},a.prototype._transactionClosed=function(){this._hasTx=!1},a.prototype.lastBookmarks=function(){return this._lastBookmarks.values()},a.prototype._bookmarks=function(){return d(this,void 0,void 0,function(){var a,b;return e(this,function(c){switch(c.label){case 0:return[4,null==(b=this._bookmarkManager)?void 0:b.getBookmarks()];case 1:if(void 0===(a=c.sent()))return[2,this._lastBookmarks];return[2,new p.Bookmarks(g(g([],f(a),!1),f(this._configuredBookmarks),!1))]}})})},a.prototype.executeRead=function(a,b){var c=new q.TxConfig(b,this._log);return this._executeInTransaction(k.ACCESS_MODE_READ,c,a)},a.prototype.executeWrite=function(a,b){var c=new q.TxConfig(b,this._log);return this._executeInTransaction(k.ACCESS_MODE_WRITE,c,a)},a.prototype._executeInTransaction=function(a,b,c){var d=this;return this._transactionExecutor.execute(function(c){return d._beginTransaction(a,b,c)},c,s.default.fromTransaction)},a.prototype._onDatabaseNameResolved=function(a){if(this._isRoutingSession&&(this._databaseGuess=a,!this._databaseNameResolved)){var b=null!=a?a:"";this._database=b,this._readConnectionHolder.setDatabase(b),this._writeConnectionHolder.setDatabase(b),this._databaseNameResolved=!0,null!=this._homeDatabaseCallback&&this._homeDatabaseCallback((0,t.cacheKey)(this._auth,this._impersonatedUser),a)}},a.prototype._getConnectionAcquistionBookmarks=function(){return d(this,void 0,void 0,function(){var a,b;return e(this,function(c){switch(c.label){case 0:return[4,null==(b=this._bookmarkManager)?void 0:b.getBookmarks()];case 1:if(void 0===(a=c.sent()))return[2,this._lastBookmarks];return[2,new p.Bookmarks(g(g([],f(this._configuredBookmarks),!1),f(a),!1))]}})})},a.prototype._updateBookmarks=function(a,b,c){var d,e,f;null==a||a.isEmpty()||(null==(d=this._bookmarkManager)||d.updateBookmarks(null!=(e=null==b?void 0:b.values())?e:[],null!=(f=null==a?void 0:a.values())?f:[]).catch(function(){}),this._lastBookmarks=a,this._configuredBookmarks=p.Bookmarks.empty())},a.prototype.close=function(){return d(this,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:if(!this._open)return[3,3];return this._open=!1,this._results.forEach(function(a){return a._cancel()}),this._transactionExecutor.close(),[4,this._readConnectionHolder.close(this._hasTx)];case 1:return a.sent(),[4,this._writeConnectionHolder.close(this._hasTx)];case 2:a.sent(),a.label=3;case 3:return[2]}})})},a.prototype[Symbol.asyncDispose]=function(){return this.close()},a.prototype._connectionHolderWithMode=function(a){if(a===k.ACCESS_MODE_READ)return this._readConnectionHolder;if(a===k.ACCESS_MODE_WRITE)return this._writeConnectionHolder;throw(0,l.newError)("Unknown access mode: "+a)},a.prototype._onCompleteCallback=function(a,b){this._updateBookmarks(new p.Bookmarks(a.bookmark),b,a.db)},a.prototype._calculateWatermaks=function(){return this._fetchSize===k.FETCH_ALL?{low:Number.MAX_VALUE,high:Number.MAX_VALUE}:{low:.3*this._fetchSize,high:.7*this._fetchSize}},a.prototype._configureTransactionExecutor=function(a,b){this._transactionExecutor.pipelineBegin=a,this._transactionExecutor.telemetryApi=b},a._validateSessionMode=function(a){var b=null!=a?a:k.ACCESS_MODE_WRITE;if(b!==k.ACCESS_MODE_READ&&b!==k.ACCESS_MODE_WRITE)throw(0,l.newError)("Illegal session mode "+b);return b},a}()},1780:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduled=void 0;var d=c(42663),e=c(88273),f=c(45925),g=c(19828),h=c(53982),i=c(96536),j=c(77809),k=c(23526),l=c(45588),m=c(22910),n=c(47934),o=c(60597),p=c(85141);b.scheduled=function(a,b){if(null!=a){if(i.isInteropObservable(a))return d.scheduleObservable(a,b);if(k.isArrayLike(a))return f.scheduleArray(a,b);if(j.isPromise(a))return e.schedulePromise(a,b);if(m.isAsyncIterable(a))return h.scheduleAsyncIterable(a,b);if(l.isIterable(a))return g.scheduleIterable(a,b);if(o.isReadableStreamLike(a))return p.scheduleReadableStreamLike(a,b)}throw n.createInvalidObservableTypeError(a)}},1808:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(29021));function i(a){return new Promise(function(b,c){return h.default.readFile(a,function(a,d){return a?c(a):b(d)})})}b.default={load:function(a){return d(this,void 0,void 0,function(){var b;return e(this,function(c){switch(c.label){case 0:return[4,Promise.all([function a(b){return Array.isArray(b)?Promise.all(b.map(a)):i(b)}(a.certfile),function a(b){return Array.isArray(b)?Promise.all(b.map(a)):"string"==typeof b?i(b):i(b.path).then(function(a){return{pem:a,passphrase:b.password}})}(a.keyfile)])];case 1:return[2,{cert:(b=f.apply(void 0,[c.sent(),2]))[0],key:b[1],passphrase:a.password}]}})})}}},2265:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},f=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},g=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},h=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))};Object.defineProperty(b,"__esModule",{value:!0}),b.TransactionExecutor=void 0;var i=c(54507),j=c(81334);function k(a,b){for(var c=[],d=2;d<arguments.length;d++)c[d-2]=arguments[d];return setTimeout.apply(void 0,h([a,b],g(c),!1))}function l(a){return clearTimeout(a)}function m(a,b){return null!=a?a:b}b.TransactionExecutor=function(){function a(a,b,c,d,e){void 0===e&&(e={setTimeout:k,clearTimeout:l}),this._maxRetryTimeMs=m(a,3e4),this._initialRetryDelayMs=m(b,1e3),this._multiplier=m(c,2),this._jitterFactor=m(d,.2),this._setTimeout=e.setTimeout,this._clearTimeout=e.clearTimeout,this._inFlightTimeoutIds=[],this.pipelineBegin=!1,this.telemetryApi=j.TELEMETRY_APIS.MANAGED_TRANSACTION,this._verifyAfterConstruction()}return a.prototype.execute=function(a,b,c){var d=this,e={apiTransactionConfig:{api:this.telemetryApi,onTelemetrySuccess:function(){e.apiTransactionConfig=void 0}}};return new Promise(function(f,g){d._executeTransactionInsidePromise(a,b,f,g,c,e).catch(g)}).catch(function(f){var g=Date.now(),h=d._initialRetryDelayMs;return d._retryTransactionPromise(a,b,f,g,h,c,e)})},a.prototype.close=function(){var a=this;this._inFlightTimeoutIds.forEach(function(b){return a._clearTimeout(b)}),this._inFlightTimeoutIds=[]},a.prototype._retryTransactionPromise=function(a,b,c,d,e,f,g){var h=this;return Date.now()-d>this._maxRetryTimeMs||!(0,i.isRetryableError)(c)?Promise.reject(c):new Promise(function(c,d){var i=h._computeDelayWithJitter(e),j=h._setTimeout(function(){h._inFlightTimeoutIds=h._inFlightTimeoutIds.filter(function(a){return a!==j}),h._executeTransactionInsidePromise(a,b,c,d,f,g).catch(d)},i);h._inFlightTimeoutIds.push(j)}).catch(function(c){var i=e*h._multiplier;return h._retryTransactionPromise(a,b,c,d,i,f,g)})},a.prototype._executeTransactionInsidePromise=function(a,b,c,g,h,i){return e(this,void 0,void 0,function(){var e,j,k,l,m=this;return f(this,function(f){switch(f.label){case 0:if(f.trys.push([0,4,,5]),j=a((null==i?void 0:i.apiTransactionConfig)!=null?d({},null==i?void 0:i.apiTransactionConfig):void 0),!this.pipelineBegin)return[3,1];return k=j,[3,3];case 1:return[4,j];case 2:k=f.sent(),f.label=3;case 3:return e=k,[3,5];case 4:return g(f.sent()),[2];case 5:return l=(null!=h?h:function(a){return a})(e),this._safeExecuteTransactionWork(l,b).then(function(a){return m._handleTransactionWorkSuccess(a,e,c,g)}).catch(function(a){return m._handleTransactionWorkFailure(a,e,g)}),[2]}})})},a.prototype._safeExecuteTransactionWork=function(a,b){try{var c=b(a);return Promise.resolve(c)}catch(a){return Promise.reject(a)}},a.prototype._handleTransactionWorkSuccess=function(a,b,c,d){b.isOpen()?b.commit().then(function(){c(a)}).catch(function(a){d(a)}):c(a)},a.prototype._handleTransactionWorkFailure=function(a,b,c){b.isOpen()?b.rollback().catch(function(a){}).then(function(){return c(a)}).catch(c):c(a)},a.prototype._computeDelayWithJitter=function(a){var b=a*this._jitterFactor,c=a-b;return Math.random()*(a+b-c)+c},a.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,i.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs.toString());if(this._initialRetryDelayMs<0)throw(0,i.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs.toString());if(this._multiplier<1)throw(0,i.newError)("Multiplier should be >= 1.0: "+this._multiplier.toString());if(this._jitterFactor<0||this._jitterFactor>1)throw(0,i.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor.toFixed())},a}()},2616:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.QueueAction=void 0,b.QueueAction=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.scheduler=b,d.work=c,d}return e(b,a),b.prototype.schedule=function(b,c){return(void 0===c&&(c=0),c>0)?a.prototype.schedule.call(this,b,c):(this.delay=c,this.state=b,this.scheduler.flush(this),this)},b.prototype.execute=function(b,c){return c>0||this.closed?a.prototype.execute.call(this,b,c):this._execute(b,c)},b.prototype.requestAsyncId=function(b,c,d){return(void 0===d&&(d=0),null!=d&&d>0||null==d&&this.delay>0)?a.prototype.requestAsyncId.call(this,b,c,d):(b.flush(this),0)},b}(c(70883).AsyncAction)},2637:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SequenceError=void 0,b.SequenceError=c(8708).createErrorClass(function(a){return function(b){a(this),this.name="SequenceError",this.message=b}})},2910:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(76705)),i=g(c(28881)),j=c(95590),k=c(13273),l=g(c(59435)),m=g(c(85273)),n=g(c(90797)),o=c(81773),p=o.internal.bookmarks.Bookmarks,q=o.internal.constants.BOLT_PROTOCOL_V4_3;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return q},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new n.default(Object.values(l.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.requestRoutingInformation=function(a){var b=a.routingContext,c=a.databaseName,d=a.sessionContext,e=a.onError,f=a.onCompleted,g=new j.RouteObserver({onProtocolError:this._onProtocolError,onError:e,onCompleted:f}),h=(void 0===d?{}:d).bookmarks||p.empty();return this.write(i.default.route(void 0===b?{}:b,h.values(),void 0===c?null:c),g,!0),g},b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),f=c.notificationFilter,g=c.onError,h=c.onComplete,l=new j.LoginObserver({onError:function(a){return b._onLoginError(a,g)},onCompleted:function(a){return void 0!==a.patch_bolt&&b._applyPatches(a.patch_bolt),b._onLoginCompleted(a,e,h)}});return(0,k.assertNotificationFilterIsEmpty)(f,this._onProtocolError,l),this.write(i.default.hello(d,e,this._serversideRouting,["utc"]),l,!0),l},b.prototype._applyPatches=function(a){a.includes("utc")&&this._applyUtcPatch()},b.prototype._applyUtcPatch=function(){var a=this;this._transformer=new n.default(Object.values(f(f({},l.default),m.default)).map(function(b){return b(a._config,a._log)}))},b}(h.default)},2978:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.performanceTimestampProvider=void 0,b.performanceTimestampProvider={now:function(){return(b.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},3073:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(64768)),h=f(c(50968)),i=f(c(90797)),j=c(81773).internal.constants.BOLT_PROTOCOL_V6_0;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return j},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new i.default(Object.values(h.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b}(g.default)},3762:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(61081)),h=c(54507),i=c(39355),j=function(){function a(a){var b=a.create,c=void 0===b?function(a,b,c){return d(r,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:return[4,Promise.reject(Error("Not implemented"))];case 1:return[2,a.sent()]}})})}:b,f=a.destroy,h=void 0===f?function(a){return d(r,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:return[4,Promise.resolve()];case 1:return[2,a.sent()]}})})}:f,j=a.validateOnAcquire,k=a.validateOnRelease,l=a.installIdleObserver,m=a.removeIdleObserver,n=a.config,o=void 0===n?g.default.defaultConfig():n,p=a.log,q=void 0===p?i.Logger.noOp():p,r=this;this._create=c,this._destroy=h,this._validateOnAcquire=void 0===j?function(a,b){return!0}:j,this._validateOnRelease=void 0===k?function(a){return!0}:k,this._installIdleObserver=void 0===l?function(a,b){}:l,this._removeIdleObserver=void 0===m?function(a){}:m,this._maxSize=o.maxSize,this._acquisitionTimeout=o.acquisitionTimeout,this._pools={},this._pendingCreates={},this._acquireRequests={},this._activeResourceCounts={},this._release=this._release.bind(this),this._log=q,this._closed=!1}return a.prototype.acquire=function(a,b,c){return d(this,void 0,void 0,function(){var d,f,g,h,i=this;return e(this,function(e){switch(e.label){case 0:if(d=b.asKey(),g=(f=this._acquireRequests)[d],(h=null!=a.startTime&&0!==a.startTime?new Date().getTime()-a.startTime:0)>=this._acquisitionTimeout)throw this.getAcquisitionTimeoutError(b);return null==g&&(f[d]=[]),[4,new Promise(function(e,g){var j=setTimeout(function(){var a=f[d];null!=a&&(f[d]=a.filter(function(a){return a!==k})),k.isCompleted()||k.reject(i.getAcquisitionTimeoutError(b))},i._acquisitionTimeout-h);"object"==typeof j&&j.unref();var k=new m(d,a,c,e,g,j,i._log);f[d].push(k),i._processPendingAcquireRequests(b)})];case 1:return[2,e.sent()]}})})},a.prototype.getAcquisitionTimeoutError=function(a){var b=a.asKey(),c=this.activeResourceCount(a),d=this.has(a)?this._pools[b].length:0;return(0,h.newError)("Connection acquisition timed out in ".concat(this._acquisitionTimeout," ms. Pool status: Active conn count = ").concat(c,", Idle conn count = ").concat(d,"."))},a.prototype.purge=function(a){return d(this,void 0,void 0,function(){return e(this,function(b){switch(b.label){case 0:return[4,this._purgeKey(a.asKey())];case 1:return[2,b.sent()]}})})},a.prototype.apply=function(a,b){var c=a.asKey();c in this._pools&&this._pools[c].apply(b)},a.prototype.close=function(){return d(this,void 0,void 0,function(){var a=this;return e(this,function(b){switch(b.label){case 0:return this._closed=!0,[4,Promise.all(Object.keys(this._pools).map(function(b){return d(a,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:return[4,this._purgeKey(b)];case 1:return[2,a.sent()]}})})})).then()];case 1:return[2,b.sent()]}})})},a.prototype.keepAll=function(a){return d(this,void 0,void 0,function(){var b,c=this;return e(this,function(f){switch(f.label){case 0:return b=a.map(function(a){return a.asKey()}),[4,Promise.all(Object.keys(this._pools).filter(function(a){return!b.includes(a)}).map(function(a){return d(c,void 0,void 0,function(){return e(this,function(b){switch(b.label){case 0:return[4,this._purgeKey(a)];case 1:return[2,b.sent()]}})})})).then()];case 1:return[2,f.sent()]}})})},a.prototype.has=function(a){return a.asKey()in this._pools},a.prototype.activeResourceCount=function(a){var b;return null!=(b=this._activeResourceCounts[a.asKey()])?b:0},a.prototype._getOrInitializePoolFor=function(a){var b=this._pools[a];return null==b&&(b=new n,this._pools[a]=b,this._pendingCreates[a]=0),b},a.prototype._acquire=function(a,b,c){return d(this,void 0,void 0,function(){var f,g,i,j,m,n,o,p=this;return e(this,function(q){switch(q.label){case 0:if(this._closed)throw(0,h.newError)("Pool is closed, it is no more able to serve requests.");if(f=b.asKey(),g=this._getOrInitializePoolFor(f),c)return[3,10];q.label=1;case 1:if(!(g.length>0))return[3,10];if(null==(i=g.pop()))return[3,1];k(f,this._activeResourceCounts),null!=this._removeIdleObserver&&this._removeIdleObserver(i),j=!1,q.label=2;case 2:return q.trys.push([2,4,,6]),[4,this._validateOnAcquire(a,i)];case 3:return j=q.sent(),[3,6];case 4:return m=q.sent(),l(f,this._activeResourceCounts),g.removeInUse(i),[4,this._destroy(i)];case 5:throw q.sent(),m;case 6:if(!j)return[3,7];return this._log.isDebugEnabled()&&this._log.debug("".concat(i," acquired from the pool ").concat(f)),[2,{resource:i,pool:g}];case 7:return l(f,this._activeResourceCounts),g.removeInUse(i),[4,this._destroy(i)];case 8:q.sent(),q.label=9;case 9:return[3,1];case 10:if(this._maxSize>0&&this.activeResourceCount(b)+this._pendingCreates[f]>=this._maxSize)return[2,{resource:null,pool:g}];this._pendingCreates[f]=this._pendingCreates[f]+1,q.label=11;case 11:if(q.trys.push([11,,15,16]),!(this.activeResourceCount(b)+g.length>=this._maxSize&&c)||null==(o=g.pop()))return[3,13];return null!=this._removeIdleObserver&&this._removeIdleObserver(o),g.removeInUse(o),[4,this._destroy(o)];case 12:q.sent(),q.label=13;case 13:return[4,this._create(a,b,function(a,b){return d(p,void 0,void 0,function(){return e(this,function(c){switch(c.label){case 0:return[4,this._release(a,b,g)];case 1:return[2,c.sent()]}})})})];case 14:return n=q.sent(),g.pushInUse(n),k(f,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug("".concat(n," created for the pool ").concat(f)),[3,16];case 15:return this._pendingCreates[f]=this._pendingCreates[f]-1,[7];case 16:return[2,{resource:n,pool:g}]}})})},a.prototype._release=function(a,b,c){return d(this,void 0,void 0,function(){var d,f=this;return e(this,function(e){switch(e.label){case 0:d=a.asKey(),e.label=1;case 1:if(e.trys.push([1,,9,10]),!c.isActive())return[3,6];return[4,this._validateOnRelease(b)];case 2:if(e.sent())return[3,4];return this._log.isDebugEnabled()&&this._log.debug("".concat(b," destroyed and can't be released to the pool ").concat(d," because it is not functional")),c.removeInUse(b),[4,this._destroy(b)];case 3:return e.sent(),[3,5];case 4:null!=this._installIdleObserver&&this._installIdleObserver(b,{onError:function(a){f._log.debug("Idle connection ".concat(b," destroyed because of error: ").concat(a));var c=f._pools[d];null!=c&&(f._pools[d]=c.filter(function(a){return a!==b}),c.removeInUse(b)),f._destroy(b).catch(function(){})}}),c.push(b),this._log.isDebugEnabled()&&this._log.debug("".concat(b," released to the pool ").concat(d)),e.label=5;case 5:return[3,8];case 6:return this._log.isDebugEnabled()&&this._log.debug("".concat(b," destroyed and can't be released to the pool ").concat(d," because pool has been purged")),c.removeInUse(b),[4,this._destroy(b)];case 7:e.sent(),e.label=8;case 8:return[3,10];case 9:return l(d,this._activeResourceCounts),this._processPendingAcquireRequests(a),[7];case 10:return[2]}})})},a.prototype._purgeKey=function(a){return d(this,void 0,void 0,function(){var b,c,d;return e(this,function(e){switch(e.label){case 0:if(b=this._pools[a],c=[],null==b)return[3,2];for(;b.length>0;)null!=(d=b.pop())&&(null!=this._removeIdleObserver&&this._removeIdleObserver(d),c.push(this._destroy(d)));return b.close(),delete this._pools[a],[4,Promise.all(c)];case 1:e.sent(),e.label=2;case 2:return[2]}})})},a.prototype._processPendingAcquireRequests=function(a){var b=this,c=a.asKey(),d=this._acquireRequests[c];if(null!=d){var e=d.shift();null!=e?this._acquire(e.context,a,e.requireNew).catch(function(a){return e.reject(a),{resource:null,pool:null}}).then(function(d){var f=d.resource,g=d.pool;null!=f&&null!=g?e.isCompleted()?b._release(a,f,g).catch(function(a){b._log.isDebugEnabled()&&b._log.debug("".concat(f," could not be release back to the pool. Cause: ").concat(a))}):e.resolve(f):e.isCompleted()||(null==b._acquireRequests[c]&&(b._acquireRequests[c]=[]),b._acquireRequests[c].unshift(e))}).catch(function(a){return e.reject(a)}):delete this._acquireRequests[c]}},a}();function k(a,b){var c,d=null!=(c=b[a])?c:0;b[a]=d+1}function l(a,b){var c,d=(null!=(c=b[a])?c:0)-1;d>0?b[a]=d:delete b[a]}var m=function(){function a(a,b,c,d,e,f,g){this._key=a,this._context=b,this._resolve=d,this._reject=e,this._timeoutId=f,this._log=g,this._completed=!1,this._config=null!=c?c:{}}return Object.defineProperty(a.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"requireNew",{get:function(){var a;return null!=(a=this._config.requireNew)&&a},enumerable:!1,configurable:!0}),a.prototype.isCompleted=function(){return this._completed},a.prototype.resolve=function(a){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug("".concat(a," acquired from the pool ").concat(this._key)),this._resolve(a))},a.prototype.reject=function(a){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(a))},a}(),n=function(){function a(){this._active=!0,this._elements=[],this._elementsInUse=new Set}return a.prototype.isActive=function(){return this._active},a.prototype.close=function(){this._active=!1,this._elements=[],this._elementsInUse=new Set},a.prototype.filter=function(a){return this._elements=this._elements.filter(a),this},a.prototype.apply=function(a){this._elements.forEach(a),this._elementsInUse.forEach(a)},Object.defineProperty(a.prototype,"length",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),a.prototype.pop=function(){var a=this._elements.pop();return null!=a&&this._elementsInUse.add(a),a},a.prototype.push=function(a){return this._elementsInUse.delete(a),this._elements.push(a)},a.prototype.pushInUse=function(a){this._elementsInUse.add(a)},a.prototype.removeInUse=function(a){this._elementsInUse.delete(a)},a}();b.default=j},3819:function(a,b){var c=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},d=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},e=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},g=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))};Object.defineProperty(b,"__esModule",{value:!0}),b.bookmarkManager=function(a){return void 0===a&&(a={}),new h(new Set(a.initialBookmarks),a.bookmarksSupplier,a.bookmarksConsumer)},b.default=function(){function a(){throw Error("Not implemented")}return a.prototype.updateBookmarks=function(a,b){return c(this,void 0,void 0,function(){return d(this,function(a){throw Error("Not implemented")})})},a.prototype.getBookmarks=function(){return c(this,void 0,void 0,function(){return d(this,function(a){throw Error("Not implemented")})})},a}();var h=function(){function a(a,b,c){this._bookmarks=a,this._bookmarksSupplier=b,this._bookmarksConsumer=c}return a.prototype.updateBookmarks=function(a,b){return c(this,void 0,void 0,function(){var c,h,i,j,k,l,m,n,o,p;return d(this,function(d){switch(d.label){case 0:c=this._bookmarks;try{for(i=(h=e(a)).next();!i.done;i=h.next())j=i.value,c.delete(j)}catch(a){m={error:a}}finally{try{i&&!i.done&&(n=h.return)&&n.call(h)}finally{if(m)throw m.error}}try{for(l=(k=e(b)).next();!l.done;l=k.next())j=l.value,c.add(j)}catch(a){o={error:a}}finally{try{l&&!l.done&&(p=k.return)&&p.call(k)}finally{if(o)throw o.error}}if("function"!=typeof this._bookmarksConsumer)return[3,2];return[4,this._bookmarksConsumer(g([],f(c),!1))];case 1:d.sent(),d.label=2;case 2:return[2]}})})},a.prototype.getBookmarks=function(){return c(this,void 0,void 0,function(){var a,b,c,h,i,j,k,l;return d(this,function(d){switch(d.label){case 0:if(a=new Set(this._bookmarks),"function"!=typeof this._bookmarksSupplier)return[3,2];return[4,this._bookmarksSupplier()];case 1:b=null!=(l=d.sent())?l:[];try{for(h=(c=e(b)).next();!h.done;h=c.next())i=h.value,a.add(i)}catch(a){j={error:a}}finally{try{h&&!h.done&&(k=c.return)&&k.call(c)}finally{if(j)throw j.error}}d.label=2;case 2:return[2,g([],f(a),!1)]}})})},a}()},4563:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(43338));b.default=d({},f.default)},4871:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.EmptyError=void 0,b.EmptyError=c(8708).createErrorClass(function(a){return function(){a(this),this.name="EmptyError",this.message="no elements in sequence"}})},5021:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.iif=void 0;var d=c(84493);b.iif=function(a,b,c){return d.defer(function(){return a()?b:c})}},5055:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(91645)),g=e(c(34631)),h=e(c(29021)),i=e(c(21391)),j=c(81773),k=j.internal.util,l=k.ENCRYPTION_OFF,m=k.ENCRYPTION_ON,n=k.isEmptyObjectOrNull,o=0,p={TRUST_CUSTOM_CA_SIGNED_CERTIFICATES:function(a,b,c){if(!a.trustedCertificates||0===a.trustedCertificates.length)return void c((0,j.newError)('You are using TRUST_CUSTOM_CA_SIGNED_CERTIFICATES as the method to verify trust for encrypted connections, but have not configured any trustedCertificates. You must specify the path to at least one trusted X.509 certificate for this to work. Two other alternatives is to use TRUST_ALL_CERTIFICATES or to disable encryption by setting encrypted="'+l+'"in your driver configuration.'));var d=r(a.address.host(),a.trustedCertificates.map(function(a){return h.default.readFileSync(a)}),a.clientCertificate),e=g.default.connect(a.address.port(),a.address.resolvedHost(),d,function(){e.authorized?b():c((0,j.newError)("Server certificate is not trusted. If you trust the database you are connecting to, add the signing certificate, or the server certificate, to the list of certificates trusted by this driver using `neo4j.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This is a security measure to protect against man-in-the-middle attacks. If you are just trying Neo4j out and are not concerned about encryption, simply disable it using `encrypted=\""+l+'"` in the driver options. Socket responded with: '+e.authorizationError))});return e.on("error",c),s(e)},TRUST_SYSTEM_CA_SIGNED_CERTIFICATES:function(a,b,c){var d=r(a.address.host(),void 0,a.clientCertificate),e=g.default.connect(a.address.port(),a.address.resolvedHost(),d,function(){e.authorized?b():c((0,j.newError)("Server certificate is not trusted. If you trust the database you are connecting to, use TRUST_CUSTOM_CA_SIGNED_CERTIFICATES and add the signing certificate, or the server certificate, to the list of certificates trusted by this driver using `neo4j.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This is a security measure to protect against man-in-the-middle attacks. If you are just trying Neo4j out and are not concerned about encryption, simply disable it using `encrypted=\""+l+'"` in the driver options. Socket responded with: '+e.authorizationError))});return e.on("error",c),s(e)},TRUST_ALL_CERTIFICATES:function(a,b,c){var d=r(a.address.host(),void 0,a.clientCertificate),e=g.default.connect(a.address.port(),a.address.resolvedHost(),d,function(){n(e.getPeerCertificate())?c((0,j.newError)('Secure connection was successful but server did not return any valid certificates. Such connection can not be trusted. If you are just trying Neo4j out and are not concerned about encryption, simply disable it using `encrypted="'+l+'"` in the driver options. Socket responded with: '+e.authorizationError)):b()});return e.on("error",c),s(e)}};function q(a,b,c){void 0===c&&(c=function(){return null});var d,e,g=(d=a).trust?d.trust:"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";if(null!=(e=a).encrypted&&void 0!==e.encrypted&&(!0===e.encrypted||e.encrypted===m)){if(p[g])return p[g](a,b,c);c((0,j.newError)("Unknown trust strategy: "+a.trust+". Please use either trust:'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES' or trust:'TRUST_ALL_CERTIFICATES' in your driver configuration. Alternatively, you can disable encryption by setting `encrypted:\""+l+'"`. There is no mechanism to use encryption without trust verification, because this incurs the overhead of encryption without improving security. If the driver does not verify that the peer it is connected to is really Neo4j, it is very easy for an attacker to bypass the encryption by pretending to be Neo4j.'))}else{var h=f.default.connect(a.address.port(),a.address.resolvedHost(),b);return h.on("error",c),s(h)}}function r(a,b,c){return void 0===b&&(b=void 0),void 0===c&&(c=void 0),d({rejectUnauthorized:!1,servername:a,ca:b},c)}function s(a){return a.setKeepAlive(!0),a}b.default=function(){function a(a,b){void 0===b&&(b=q);var c=this;this.id=o++,this._pending=[],this._open=!0,this._error=null,this._handleConnectionError=this._handleConnectionError.bind(this),this._handleConnectionTerminated=this._handleConnectionTerminated.bind(this),this._connectionErrorCode=a.connectionErrorCode,this._receiveTimeout=null,this._receiveTimeoutStarted=!1,this._conn=b(a,function(){if(c._open){c._conn.on("data",function(a){c.onmessage&&c.onmessage(new i.default(a))}),c._conn.on("end",c._handleConnectionTerminated);var a=c._pending;c._pending=null;for(var b=0;b<a.length;b++)c.write(a[b])}},this._handleConnectionError),this._setupConnectionTimeout(a,this._conn)}return a.prototype._handleConnectionError=function(a){var b="Failed to connect to server. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.";a.message&&(b+=" Caused by: "+a.message),this._conn.destroyed&&(this._open=!1),this._error=(0,j.newError)(b,this._connectionErrorCode),this.onerror&&this.onerror(this._error)},a.prototype._handleConnectionTerminated=function(){this._open=!1,this._error=(0,j.newError)("Connection was closed by server",this._connectionErrorCode),this.onerror&&this.onerror(this._error)},a.prototype._setupConnectionTimeout=function(a,b){var c=this,d=a.connectionTimeout;if(d){var e=function(){b.setTimeout(0)},f=function(){b.setTimeout(0),b.destroy((0,j.newError)("Failed to establish connection in ".concat(d,"ms"),a.connectionErrorCode))};b.on("connect",e),b.on("timeout",f),this._removeConnectionTimeoutListeners=function(){c._conn.off("connect",e),c._conn.off("timeout",f)},b.setTimeout(d)}},a.prototype.setupReceiveTimeout=function(a){var b=this;this._removeConnectionTimeoutListeners&&this._removeConnectionTimeoutListeners(),this._conn.on("timeout",function(){b._conn.destroy((0,j.newError)("Connection lost. Server didn't respond in ".concat(a,"ms"),b._connectionErrorCode))}),this._receiveTimeout=a},a.prototype.stopReceiveTimeout=function(){null!==this._receiveTimeout&&this._receiveTimeoutStarted&&(this._receiveTimeoutStarted=!1,this._conn.setTimeout(0))},a.prototype.startReceiveTimeout=function(){null===this._receiveTimeout||this._receiveTimeoutStarted||(this._receiveTimeoutStarted=!0,this._conn.setTimeout(this._receiveTimeout))},a.prototype.write=function(a){if(null!==this._pending)this._pending.push(a);else if(a instanceof i.default)this._conn.write(a._buffer);else throw(0,j.newError)("Don't know how to write: "+a)},a.prototype.close=function(){var a=this;return new Promise(function(b,c){var d=function(){a._conn.destroyed||a._conn.destroy(),b()};a._open?(a._open=!1,a._conn.removeListener("end",a._handleConnectionTerminated),a._conn.on("end",function(){return d()}),a._conn.on("close",function(){return d()}),a._conn.end(),a._conn.destroy()):d()})},a}()},6399:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.NotFoundError=void 0,b.NotFoundError=c(8708).createErrorClass(function(a){return function(b){a(this),this.name="NotFoundError",this.message=b}})},6424:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(37775)),h=c(13273),i=f(c(52077)),j=f(c(90797)),k=f(c(28881)),l=c(95590),m=c(81773).internal.constants.BOLT_PROTOCOL_V5_0;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),f=c.notificationFilter,g=c.onError,i=c.onComplete,j=new l.LoginObserver({onError:function(a){return b._onLoginError(a,g)},onCompleted:function(a){return b._onLoginCompleted(a,e,i)}});return(0,h.assertNotificationFilterIsEmpty)(f,this._onProtocolError,j),this.write(k.default.hello(d,e,this._serversideRouting),j,!0),j},b}(g.default)},6556:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.subscribeOn=void 0;var d=c(58555);b.subscribeOn=function(a,b){return void 0===b&&(b=0),d.operate(function(c,d){d.add(a.schedule(function(){return c.subscribe(d)},b))})}},6754:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.withLatestFrom=void 0;var f=c(58555),g=c(383),h=c(80241),i=c(70332),j=c(74086),k=c(53851);b.withLatestFrom=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=k.popResultSelector(a);return f.operate(function(b,f){for(var k=a.length,l=Array(k),m=a.map(function(){return!1}),n=!1,o=function(b){h.innerFrom(a[b]).subscribe(g.createOperatorSubscriber(f,function(a){l[b]=a,!n&&!m[b]&&(m[b]=!0,(n=m.every(i.identity))&&(m=null))},j.noop))},p=0;p<k;p++)o(p);b.subscribe(g.createOperatorSubscriber(f,function(a){if(n){var b=e([a],d(l));f.next(c?c.apply(void 0,e([],d(b))):b)}}))})}},6889:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.windowWhen=void 0;var d=c(57707),e=c(58555),f=c(383),g=c(80241);b.windowWhen=function(a){return e.operate(function(b,c){var e,h,i=function(a){e.error(a),c.error(a)},j=function(){var b;null==h||h.unsubscribe(),null==e||e.complete(),e=new d.Subject,c.next(e.asObservable());try{b=g.innerFrom(a())}catch(a){i(a);return}b.subscribe(h=f.createOperatorSubscriber(c,j,j,i))};j(),b.subscribe(f.createOperatorSubscriber(c,function(a){return e.next(a)},function(){e.complete(),c.complete()},i,function(){null==h||h.unsubscribe(),e=null}))})}},7180:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.observeNotification=b.Notification=b.NotificationKind=void 0;var d,e=c(15980),f=c(18776),g=c(44767),h=c(14434);function i(a,b){var c,d,e,f=a.kind,g=a.value,h=a.error;if("string"!=typeof f)throw TypeError('Invalid notification, missing "kind"');"N"===f?null==(c=b.next)||c.call(b,g):"E"===f?null==(d=b.error)||d.call(b,h):null==(e=b.complete)||e.call(b)}(d=b.NotificationKind||(b.NotificationKind={})).NEXT="N",d.ERROR="E",d.COMPLETE="C",b.Notification=function(){function a(a,b,c){this.kind=a,this.value=b,this.error=c,this.hasValue="N"===a}return a.prototype.observe=function(a){return i(this,a)},a.prototype.do=function(a,b,c){var d=this.kind,e=this.value,f=this.error;return"N"===d?null==a?void 0:a(e):"E"===d?null==b?void 0:b(f):null==c?void 0:c()},a.prototype.accept=function(a,b,c){return h.isFunction(null==a?void 0:a.next)?this.observe(a):this.do(a,b,c)},a.prototype.toObservable=function(){var a=this.kind,b=this.value,c=this.error,d="N"===a?f.of(b):"E"===a?g.throwError(function(){return c}):"C"===a?e.EMPTY:0;if(!d)throw TypeError("Unexpected notification kind "+a);return d},a.createNext=function(b){return new a("N",b)},a.createError=function(b){return new a("E",void 0,b)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a}(),b.observeNotification=i},7880:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),e(c(29765),b)},8049:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.object=b.functional=void 0,b.functional=g(c(33024)),b.object=g(c(87942))},8375:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(){}return a.prototype.selectReader=function(a){throw Error("Abstract function")},a.prototype.selectWriter=function(a){throw Error("Abstract function")},a}()},8439:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.multicast=void 0;var d=c(57534),e=c(14434),f=c(53659);b.multicast=function(a,b){var c=e.isFunction(a)?a:function(){return a};return e.isFunction(b)?f.connect(b,{connector:c}):function(a){return new d.ConnectableObservable(a,c)}}},8441:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.not=void 0,b.not=function(a,b){return function(c,d){return!a.call(b,c,d)}}},8493:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.bindNodeCallback=void 0;var d=c(62951);b.bindNodeCallback=function(a,b,c){return d.bindCallbackInternals(!0,a,b,c)}},8506:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},i=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))};Object.defineProperty(b,"__esModule",{value:!0}),b.Bookmarks=void 0;var j=g(c(49619)),k=function(){function a(a){this._values=function(a){if(null==a||""===a)return[];if(j.isString(a))return[a];if(Array.isArray(a)){for(var b=new Set,c=function a(b){return b.reduce(function(b,c){return Array.isArray(c)?b.concat(a(c)):b.concat(c)},[])}(a),d=0;d<c.length;d++){var e=c[d];if(null!=e){if(!j.isString(e))throw TypeError("Bookmark value should be a string, given: '".concat(e,"'"));b.add(e)}}return i([],h(b),!1)}throw TypeError("Bookmarks should either be a string or a string array, given: '".concat(a,"'"))}(a)}return a.empty=function(){return l},a.prototype.isEmpty=function(){return 0===this._values.length},a.prototype.values=function(){return this._values},a.prototype[Symbol.iterator]=function(){return this._values[Symbol.iterator]()},a.prototype.asBeginTransactionParameters=function(){var a;return this.isEmpty()?{}:((a={}).bookmarks=this._values,a)},a}();b.Bookmarks=k;var l=new k(null)},8708:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createErrorClass=void 0,b.createErrorClass=function(a){var b=a(function(a){Error.call(a),a.stack=Error().stack});return b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b}},9177:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.distinct=void 0;var d=c(58555),e=c(383),f=c(74086),g=c(80241);b.distinct=function(a,b){return d.operate(function(c,d){var h=new Set;c.subscribe(e.createOperatorSubscriber(d,function(b){var c=a?a(b):b;h.has(c)||(h.add(c),d.next(b))})),b&&g.innerFrom(b).subscribe(e.createOperatorSubscriber(d,function(){return h.clear()},f.noop))})}},10360:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.timer=void 0;var d=c(44230),e=c(84189),f=c(38857),g=c(19634);b.timer=function(a,b,c){void 0===a&&(a=0),void 0===c&&(c=e.async);var h=-1;return null!=b&&(f.isScheduler(b)?c=b:h=b),new d.Observable(function(b){var d=g.isValidDate(a)?a-c.now():a;d<0&&(d=0);var e=0;return c.schedule(function(){b.closed||(b.next(e++),0<=h?this.schedule(void 0,h):b.complete())},d)})}},10543:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(75046));b.default=d({},f.default)},11410:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.timeout=b.TimeoutError=void 0;var d=c(84189),e=c(19634),f=c(58555),g=c(80241),h=c(8708),i=c(383),j=c(60510);function k(a){throw new b.TimeoutError(a)}b.TimeoutError=h.createErrorClass(function(a){return function(b){void 0===b&&(b=null),a(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=b}}),b.timeout=function(a,b){var c=e.isValidDate(a)?{first:a}:"number"==typeof a?{each:a}:a,h=c.first,l=c.each,m=c.with,n=void 0===m?k:m,o=c.scheduler,p=void 0===o?null!=b?b:d.asyncScheduler:o,q=c.meta,r=void 0===q?null:q;if(null==h&&null==l)throw TypeError("No timeout provided.");return f.operate(function(a,b){var c,d,e=null,f=0,k=function(a){d=j.executeSchedule(b,p,function(){try{c.unsubscribe(),g.innerFrom(n({meta:r,lastValue:e,seen:f})).subscribe(b)}catch(a){b.error(a)}},a)};c=a.subscribe(i.createOperatorSubscriber(b,function(a){null==d||d.unsubscribe(),f++,b.next(e=a),l>0&&k(l)},void 0,void 0,function(){(null==d?void 0:d.closed)||null==d||d.unsubscribe(),e=null})),f||k(null!=h?"number"==typeof h?h:h-p.now():l)})}},11456:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.skipUntil=void 0;var d=c(58555),e=c(383),f=c(80241),g=c(74086);b.skipUntil=function(a){return d.operate(function(b,c){var d=!1,h=e.createOperatorSubscriber(c,function(){null==h||h.unsubscribe(),d=!0},g.noop);f.innerFrom(a).subscribe(h),b.subscribe(e.createOperatorSubscriber(c,function(a){return d&&c.next(a)}))})}},11590:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.ConfiguredCustomResolver=b.BaseHostNameResolver=void 0,b.BaseHostNameResolver=d(c(66033)).default,b.ConfiguredCustomResolver=d(c(90001)).default},11633:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.window=void 0;var d=c(57707),e=c(58555),f=c(383),g=c(74086),h=c(80241);b.window=function(a){return e.operate(function(b,c){var e=new d.Subject;c.next(e.asObservable());var i=function(a){e.error(a),c.error(a)};return b.subscribe(f.createOperatorSubscriber(c,function(a){return null==e?void 0:e.next(a)},function(){e.complete(),c.complete()},i)),h.innerFrom(a).subscribe(f.createOperatorSubscriber(c,function(){e.complete(),c.next(e=new d.Subject)},g.noop,i)),function(){null==e||e.unsubscribe(),e=null}})}},11649:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(a){var b=a.run;this._run=b}return a.fromTransaction=function(b){return new a({run:b.run.bind(b)})},a.prototype.run=function(a,b){return this._run(a,b)},a}()},12210:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.windowCount=void 0;var e=c(57707),f=c(58555),g=c(383);b.windowCount=function(a,b){void 0===b&&(b=0);var c=b>0?b:a;return f.operate(function(b,f){var h=[new e.Subject],i=0;f.next(h[0].asObservable()),b.subscribe(g.createOperatorSubscriber(f,function(b){try{for(var g,j,k=d(h),l=k.next();!l.done;l=k.next())l.value.next(b)}catch(a){g={error:a}}finally{try{l&&!l.done&&(j=k.return)&&j.call(k)}finally{if(g)throw g.error}}var m=i-a+1;if(m>=0&&m%c==0&&h.shift().complete(),++i%c==0){var n=new e.Subject;h.push(n),f.next(n.asObservable())}},function(){for(;h.length>0;)h.shift().complete();f.complete()},function(a){for(;h.length>0;)h.shift().error(a);f.error(a)},function(){h=null}))})}},12495:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Releasable=void 0,b.Releasable=function(){function a(){}return a.prototype.release=function(){throw Error("Not implemented")},a}(),b.default=function(){function a(){}return a.prototype.acquireConnection=function(a){throw Error("Not implemented")},a.prototype.supportsMultiDb=function(){throw Error("Not implemented")},a.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},a.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},a.prototype.supportsSessionAuth=function(){throw Error("Not implemented")},a.prototype.SSREnabled=function(){return!1},a.prototype.verifyConnectivityAndGetServerInfo=function(a){throw Error("Not implemented")},a.prototype.verifyAuthentication=function(a){throw Error("Not implemented")},a.prototype.getNegotiatedProtocolVersion=function(){throw Error("Not Implemented")},a.prototype.close=function(){throw Error("Not implemented")},a}()},12752:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.takeUntil=void 0;var d=c(58555),e=c(383),f=c(80241),g=c(74086);b.takeUntil=function(a){return d.operate(function(b,c){f.innerFrom(a).subscribe(e.createOperatorSubscriber(c,function(){return c.complete()},g.noop)),c.closed||b.subscribe(c)})}},13273:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.assertDatabaseIsEmpty=function(a,b,c){if(void 0===b&&(b=function(){}),a){var e=(0,d.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality");throw b(e.message),c.onError(e),e}},b.assertTxConfigIsEmpty=function(a,b,c){if(void 0===b&&(b=function(){}),a&&!a.isEmpty()){var e=(0,d.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality");throw b(e.message),c.onError(e),e}},b.assertImpersonatedUserIsEmpty=function(a,b,c){if(void 0===b&&(b=function(){}),a){var e=(0,d.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. "+"Trying to impersonate ".concat(a,"."));throw b(e.message),c.onError(e),e}},b.assertNotificationFilterIsEmpty=function(a,b,c){if(void 0===b&&(b=function(){}),void 0!==a){var e=(0,d.newError)("Driver is connected to a database that does not support user notification filters. Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. "+"Trying to set notifications to ".concat(d.json.stringify(a),"."));throw b(e.message),c.onError(e),e}};var d=c(81773);c(95590)},14276:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.structure=b.v2=b.v1=void 0,b.v1=g(c(51485));var h=g(c(48252));b.v2=h,b.structure=g(c(62909)),b.default=h},14434:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isFunction=void 0,b.isFunction=function(a){return"function"==typeof a}},14576:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.publishBehavior=void 0;var d=c(441),e=c(57534);b.publishBehavior=function(a){return function(b){var c=new d.BehaviorSubject(a);return new e.ConnectableObservable(b,function(){return c})}}},15147:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.UnboundRelationship=b.Relationship=b.Node=b.Record=b.ServerInfo=b.GqlStatusObject=b.Notification=b.QueryStatistics=b.ProfiledPlan=b.Plan=b.ResultSummary=b.RxResult=b.RxManagedTransaction=b.RxTransaction=b.RxSession=b.EagerResult=b.Result=b.ManagedTransaction=b.Transaction=b.Session=b.Driver=b.temporal=b.spatial=b.graph=b.error=b.routing=b.session=b.types=b.logging=b.auth=b.isRetryableError=b.isRetriableError=b.Neo4jError=b.integer=b.isUnsupportedType=b.isUnboundRelationship=b.isRelationship=b.isPathSegment=b.isPath=b.isNode=b.isDateTime=b.isLocalDateTime=b.isDate=b.isTime=b.isLocalTime=b.isDuration=b.isPoint=b.isInt=b.int=b.authTokenManagers=void 0,b.ProtocolVersion=b.StandardCase=b.RecordObjectMapping=b.mappingDecorators=b.rule=b.Rules=b.Rule=b.Vector=b.vector=b.isVector=b.clientCertificateProviders=b.notificationFilterMinimumSeverityLevel=b.notificationFilterDisabledClassification=b.notificationFilterDisabledCategory=b.notificationSeverityLevel=b.notificationClassification=b.notificationCategory=b.resultTransformers=b.bookmarkManager=b.DateTime=b.LocalDateTime=b.Date=b.Time=b.LocalTime=b.Duration=b.Integer=b.Point=b.PathSegment=b.Path=void 0,b.driver=v,b.hasReachableServer=w;var g=c(30573);Object.defineProperty(b,"Driver",{enumerable:!0,get:function(){return g.Driver}});var h=f(c(16251)),i=c(81773);Object.defineProperty(b,"authTokenManagers",{enumerable:!0,get:function(){return i.authTokenManagers}}),Object.defineProperty(b,"Neo4jError",{enumerable:!0,get:function(){return i.Neo4jError}}),Object.defineProperty(b,"isRetriableError",{enumerable:!0,get:function(){return i.isRetriableError}}),Object.defineProperty(b,"isRetryableError",{enumerable:!0,get:function(){return i.isRetryableError}}),Object.defineProperty(b,"error",{enumerable:!0,get:function(){return i.error}}),Object.defineProperty(b,"Integer",{enumerable:!0,get:function(){return i.Integer}}),Object.defineProperty(b,"int",{enumerable:!0,get:function(){return i.int}}),Object.defineProperty(b,"isInt",{enumerable:!0,get:function(){return i.isInt}}),Object.defineProperty(b,"isPoint",{enumerable:!0,get:function(){return i.isPoint}}),Object.defineProperty(b,"Point",{enumerable:!0,get:function(){return i.Point}}),Object.defineProperty(b,"Date",{enumerable:!0,get:function(){return i.Date}}),Object.defineProperty(b,"DateTime",{enumerable:!0,get:function(){return i.DateTime}}),Object.defineProperty(b,"Duration",{enumerable:!0,get:function(){return i.Duration}}),Object.defineProperty(b,"isDate",{enumerable:!0,get:function(){return i.isDate}}),Object.defineProperty(b,"isDateTime",{enumerable:!0,get:function(){return i.isDateTime}}),Object.defineProperty(b,"isDuration",{enumerable:!0,get:function(){return i.isDuration}}),Object.defineProperty(b,"isLocalDateTime",{enumerable:!0,get:function(){return i.isLocalDateTime}}),Object.defineProperty(b,"isLocalTime",{enumerable:!0,get:function(){return i.isLocalTime}}),Object.defineProperty(b,"isNode",{enumerable:!0,get:function(){return i.isNode}}),Object.defineProperty(b,"isPath",{enumerable:!0,get:function(){return i.isPath}}),Object.defineProperty(b,"isPathSegment",{enumerable:!0,get:function(){return i.isPathSegment}}),Object.defineProperty(b,"isRelationship",{enumerable:!0,get:function(){return i.isRelationship}}),Object.defineProperty(b,"isTime",{enumerable:!0,get:function(){return i.isTime}}),Object.defineProperty(b,"isUnboundRelationship",{enumerable:!0,get:function(){return i.isUnboundRelationship}}),Object.defineProperty(b,"isUnsupportedType",{enumerable:!0,get:function(){return i.isUnsupportedType}}),Object.defineProperty(b,"LocalDateTime",{enumerable:!0,get:function(){return i.LocalDateTime}}),Object.defineProperty(b,"LocalTime",{enumerable:!0,get:function(){return i.LocalTime}}),Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return i.Time}}),Object.defineProperty(b,"Node",{enumerable:!0,get:function(){return i.Node}}),Object.defineProperty(b,"Path",{enumerable:!0,get:function(){return i.Path}}),Object.defineProperty(b,"PathSegment",{enumerable:!0,get:function(){return i.PathSegment}}),Object.defineProperty(b,"Relationship",{enumerable:!0,get:function(){return i.Relationship}}),Object.defineProperty(b,"UnboundRelationship",{enumerable:!0,get:function(){return i.UnboundRelationship}}),Object.defineProperty(b,"Record",{enumerable:!0,get:function(){return i.Record}}),Object.defineProperty(b,"ResultSummary",{enumerable:!0,get:function(){return i.ResultSummary}}),Object.defineProperty(b,"Plan",{enumerable:!0,get:function(){return i.Plan}}),Object.defineProperty(b,"ProfiledPlan",{enumerable:!0,get:function(){return i.ProfiledPlan}}),Object.defineProperty(b,"QueryStatistics",{enumerable:!0,get:function(){return i.QueryStatistics}}),Object.defineProperty(b,"Notification",{enumerable:!0,get:function(){return i.Notification}}),Object.defineProperty(b,"GqlStatusObject",{enumerable:!0,get:function(){return i.GqlStatusObject}}),Object.defineProperty(b,"ServerInfo",{enumerable:!0,get:function(){return i.ServerInfo}}),Object.defineProperty(b,"Result",{enumerable:!0,get:function(){return i.Result}}),Object.defineProperty(b,"EagerResult",{enumerable:!0,get:function(){return i.EagerResult}}),Object.defineProperty(b,"auth",{enumerable:!0,get:function(){return i.auth}}),Object.defineProperty(b,"Session",{enumerable:!0,get:function(){return i.Session}}),Object.defineProperty(b,"Transaction",{enumerable:!0,get:function(){return i.Transaction}}),Object.defineProperty(b,"ManagedTransaction",{enumerable:!0,get:function(){return i.ManagedTransaction}}),Object.defineProperty(b,"bookmarkManager",{enumerable:!0,get:function(){return i.bookmarkManager}}),Object.defineProperty(b,"routing",{enumerable:!0,get:function(){return i.routing}}),Object.defineProperty(b,"resultTransformers",{enumerable:!0,get:function(){return i.resultTransformers}}),Object.defineProperty(b,"notificationCategory",{enumerable:!0,get:function(){return i.notificationCategory}}),Object.defineProperty(b,"notificationClassification",{enumerable:!0,get:function(){return i.notificationClassification}}),Object.defineProperty(b,"notificationSeverityLevel",{enumerable:!0,get:function(){return i.notificationSeverityLevel}}),Object.defineProperty(b,"notificationFilterDisabledCategory",{enumerable:!0,get:function(){return i.notificationFilterDisabledCategory}}),Object.defineProperty(b,"notificationFilterDisabledClassification",{enumerable:!0,get:function(){return i.notificationFilterDisabledClassification}}),Object.defineProperty(b,"notificationFilterMinimumSeverityLevel",{enumerable:!0,get:function(){return i.notificationFilterMinimumSeverityLevel}}),Object.defineProperty(b,"clientCertificateProviders",{enumerable:!0,get:function(){return i.clientCertificateProviders}}),Object.defineProperty(b,"isVector",{enumerable:!0,get:function(){return i.isVector}}),Object.defineProperty(b,"Vector",{enumerable:!0,get:function(){return i.Vector}}),Object.defineProperty(b,"vector",{enumerable:!0,get:function(){return i.vector}}),Object.defineProperty(b,"Rule",{enumerable:!0,get:function(){return i.Rule}}),Object.defineProperty(b,"Rules",{enumerable:!0,get:function(){return i.Rules}}),Object.defineProperty(b,"rule",{enumerable:!0,get:function(){return i.rule}}),Object.defineProperty(b,"mappingDecorators",{enumerable:!0,get:function(){return i.mappingDecorators}}),Object.defineProperty(b,"RecordObjectMapping",{enumerable:!0,get:function(){return i.RecordObjectMapping}}),Object.defineProperty(b,"StandardCase",{enumerable:!0,get:function(){return i.StandardCase}}),Object.defineProperty(b,"ProtocolVersion",{enumerable:!0,get:function(){return i.ProtocolVersion}});var j=c(66364),k=f(c(23610));b.RxSession=k.default;var l=f(c(56358));b.RxTransaction=l.default;var m=f(c(65674));b.RxManagedTransaction=m.default;var n=f(c(17701));b.RxResult=n.default;var o=i.internal.util,p=o.ENCRYPTION_ON,q=o.assertString,r=o.isEmptyObjectOrNull,s=i.internal.serverAddress.ServerAddress,t=i.internal.urlUtil,u="neo4j-javascript/"+h.default;function v(a,b,c){void 0===c&&(c={}),q(a,"Bolt URL");var d,e=t.parseDatabaseUrl(a),f=!1,k=!1;switch(e.scheme){case"bolt":break;case"bolt+s":k=!0,d="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":k=!0,d="TRUST_ALL_CERTIFICATES";break;case"neo4j":f=!0;break;case"neo4j+s":k=!0,d="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",f=!0;break;case"neo4j+ssc":k=!0,d="TRUST_ALL_CERTIFICATES",f=!0;break;default:throw Error("Unknown scheme: ".concat(e.scheme))}if(k){if("encrypted"in c||"trust"in c)throw Error("Encryption/trust can only be configured either through URL or config, not both");c.encrypted=p,c.trust=d,c.clientCertificate=(0,i.resolveCertificateProvider)(c.clientCertificate)}var l=function(a){if("object"==typeof a&&null!=a&&"getToken"in a&&"handleSecurityException"in a&&"function"==typeof a.getToken&&"function"==typeof a.handleSecurityException)return a;var b=a;return(b=b||{}).scheme=b.scheme||"none",(0,i.staticAuthTokenManager)({authToken:b})}(b);c.userAgent=c.userAgent||u,c.boltAgent=i.internal.boltAgent.fromVersion(h.default);var m=s.fromUrl(e.hostAndPort),n={address:m,typename:f?"Routing":"Direct",routing:f};return new g.Driver(n,c,function(){if(f)return function(a,b,c,d){return new j.RoutingConnectionProvider({id:a,config:b,log:c,hostNameResolver:d,authTokenManager:l,address:m,userAgent:b.userAgent,boltAgent:b.boltAgent,routingContext:e.query})};if(!r(e.query))throw Error("Parameters are not supported with none routed scheme. Given URL: '".concat(a,"'"));return function(a,b,c){return new j.DirectConnectionProvider({id:a,config:b,log:c,authTokenManager:l,address:m,userAgent:b.userAgent,boltAgent:b.boltAgent})}}())}function w(a,b){return d(this,void 0,void 0,function(){var c;return e(this,function(d){switch(d.label){case 0:c=v(a,{scheme:"none",principal:"",credentials:""},b),d.label=1;case 1:return d.trys.push([1,,3,5]),[4,c.getNegotiatedProtocolVersion()];case 2:return d.sent(),[2,!0];case 3:return[4,c.close()];case 4:return d.sent(),[7];case 5:return[2]}})})}var x={console:function(a){return{level:a,logger:function(a,b){return console.log("".concat(global.Date.now()," ").concat(a.toUpperCase()," ").concat(b))}}}};b.logging=x;var y={Node:i.Node,Relationship:i.Relationship,UnboundRelationship:i.UnboundRelationship,PathSegment:i.PathSegment,Path:i.Path,Result:i.Result,EagerResult:i.EagerResult,ResultSummary:i.ResultSummary,Record:i.Record,Point:i.Point,Date:i.Date,DateTime:i.DateTime,Duration:i.Duration,LocalDateTime:i.LocalDateTime,LocalTime:i.LocalTime,Time:i.Time,Integer:i.Integer,Vector:i.Vector,Rule:i.Rule,Rules:i.Rules,ProtocolVersion:i.ProtocolVersion};b.types=y;var z={READ:g.READ,WRITE:g.WRITE};b.session=z;var A={toNumber:i.toNumber,toString:i.toString,inSafeRange:i.inSafeRange};b.integer=A;var B={isPoint:i.isPoint};b.spatial=B;var C={isDuration:i.isDuration,isLocalTime:i.isLocalTime,isTime:i.isTime,isDate:i.isDate,isLocalDateTime:i.isLocalDateTime,isDateTime:i.isDateTime};b.temporal=C;var D={isNode:i.isNode,isPath:i.isPath,isPathSegment:i.isPathSegment,isRelationship:i.isRelationship,isUnboundRelationship:i.isUnboundRelationship};b.graph=D,b.default={authTokenManagers:i.authTokenManagers,driver:v,hasReachableServer:w,int:i.int,isInt:i.isInt,isPoint:i.isPoint,isDuration:i.isDuration,isLocalTime:i.isLocalTime,isTime:i.isTime,isDate:i.isDate,isLocalDateTime:i.isLocalDateTime,isDateTime:i.isDateTime,isNode:i.isNode,isPath:i.isPath,isPathSegment:i.isPathSegment,isRelationship:i.isRelationship,isUnboundRelationship:i.isUnboundRelationship,isUnsupportedType:i.isUnsupportedType,integer:A,Neo4jError:i.Neo4jError,isRetriableError:i.isRetriableError,isRetryableError:i.isRetryableError,auth:i.auth,logging:x,types:y,session:z,routing:i.routing,error:i.error,graph:D,spatial:B,temporal:C,Driver:g.Driver,Session:i.Session,Transaction:i.Transaction,ManagedTransaction:i.ManagedTransaction,Result:i.Result,EagerResult:i.EagerResult,RxSession:k.default,RxTransaction:l.default,RxManagedTransaction:m.default,RxResult:n.default,ResultSummary:i.ResultSummary,Plan:i.Plan,ProfiledPlan:i.ProfiledPlan,QueryStatistics:i.QueryStatistics,Notification:i.Notification,GqlStatusObject:i.GqlStatusObject,ServerInfo:i.ServerInfo,Record:i.Record,Node:i.Node,Relationship:i.Relationship,UnboundRelationship:i.UnboundRelationship,Path:i.Path,PathSegment:i.PathSegment,Point:i.Point,Integer:i.Integer,Duration:i.Duration,LocalTime:i.LocalTime,Time:i.Time,Date:i.Date,LocalDateTime:i.LocalDateTime,DateTime:i.DateTime,bookmarkManager:i.bookmarkManager,resultTransformers:i.resultTransformers,notificationCategory:i.notificationCategory,notificationSeverityLevel:i.notificationSeverityLevel,notificationFilterDisabledCategory:i.notificationFilterDisabledCategory,notificationFilterMinimumSeverityLevel:i.notificationFilterMinimumSeverityLevel,clientCertificateProviders:i.clientCertificateProviders,isVector:i.isVector,vector:i.vector,Vector:i.Vector,rule:i.rule,mappingDecorators:i.mappingDecorators,RecordObjectMapping:i.RecordObjectMapping,StandardCase:i.StandardCase,ProtocolVersion:i.ProtocolVersion}},15612:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeScan=void 0;var d=c(58555),e=c(44255);b.mergeScan=function(a,b,c){return void 0===c&&(c=1/0),d.operate(function(d,f){var g=b;return e.mergeInternals(d,f,function(b,c){return a(g,b,c)},c,function(a){g=a},!1,void 0,function(){return g=null})})}},15980:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.empty=b.EMPTY=void 0;var d=c(44230);b.EMPTY=new d.Observable(function(a){return a.complete()}),b.empty=function(a){var c;return a?(c=a,new d.Observable(function(a){return c.schedule(function(){return a.complete()})})):b.EMPTY}},16055:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},g=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.createChannelConnection=function(a,b,c,d,e,f,g,h){void 0===f&&(f=null),void 0===h&&(h=function(a){return new i.Channel(a)});var j=h(new i.ChannelConfig(a,b,c.errorCode(),e));return l.default.handshake(j,d).then(function(e){var h=e.protocolVersion,k=e.consumeRemainingBuffer,m=new i.Chunker(j),n=new i.Dechunker,o=new p(j,c,a,d,b.disableLosslessIntegers,f,m,b.notificationFilter,function(a){return l.default.create({version:h,channel:j,chunker:m,dechunker:n,disableLosslessIntegers:b.disableLosslessIntegers,useBigInt:b.useBigInt,serversideRouting:f,server:a.server,log:a.logger,observer:{onObserversCountChange:a._handleOngoingRequestsNumberChange.bind(a),onError:a._handleFatalError.bind(a),onFailure:a._resetOnFailure.bind(a),onProtocolError:a._handleProtocolError.bind(a),onErrorApplyTransformation:function(b){return a.handleAndTransformError(b,a._address)}}})},b.telemetryDisabled,g);return k(function(a){return n.write(a)}),o}).catch(function(a){return j.close().then(function(){throw a})})};var i=c(22696),j=c(81773),k=h(c(66709)),l=h(c(1466)),m=j.error.PROTOCOL_ERROR,n=j.internal.logger.Logger,o=0,p=function(a){function b(b,c,d,e,f,g,h,i,j,k,l){void 0===f&&(f=!1),void 0===g&&(g=null),void 0===l&&(l=function(a){});var m,p,q=a.call(this,c)||this;return q._authToken=null,q._idle=!1,q._reseting=!1,q._resetObservers=[],q._id=o++,q._address=d,q._server={address:d.asHostPort()},q._creationTimestamp=Date.now(),q._disableLosslessIntegers=f,q._ch=b,q._chunker=h,m=q,q._log=new n((p=e)._level,function(a,b){return p._loggerFunction(a,"".concat(m," ").concat(b))}),q._serversideRouting=g,q._notificationFilter=i,q._telemetryDisabledDriverConfig=!0===k,q._telemetryDisabledConnection=!0,q._ssrCallback=l,q._dbConnectionId=null,q._protocol=j(q),q._isBroken=!1,q._log.isDebugEnabled()&&q._log.debug("created towards ".concat(d)),q}return e(b,a),b.prototype.beginTransaction=function(a){return this._sendTelemetryIfEnabled(a),this._protocol.beginTransaction(a)},b.prototype.run=function(a,b,c){return this._sendTelemetryIfEnabled(c),this._protocol.run(a,b,c)},b.prototype._sendTelemetryIfEnabled=function(a){this._telemetryDisabledConnection||this._telemetryDisabledDriverConfig||null==a||null==a.apiTelemetryConfig||this._protocol.telemetry({api:a.apiTelemetryConfig.api},{onCompleted:a.apiTelemetryConfig.onTelemetrySuccess,onError:a.beforeError})},b.prototype.commitTransaction=function(a){return this._protocol.commitTransaction(a)},b.prototype.rollbackTransaction=function(a){return this._protocol.rollbackTransaction(a)},b.prototype.getProtocolVersion=function(){return this._protocol.version},Object.defineProperty(b.prototype,"authToken",{get:function(){return this._authToken},set:function(a){this._authToken=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"supportsReAuth",{get:function(){return this._protocol.supportsReAuth},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"databaseId",{get:function(){return this._dbConnectionId},set:function(a){this._dbConnectionId=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"idleTimestamp",{get:function(){return this._idleTimestamp},set:function(a){this._idleTimestamp=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"creationTimestamp",{get:function(){return this._creationTimestamp},enumerable:!1,configurable:!0}),b.prototype.connect=function(a,b,c,d){return f(this,void 0,void 0,function(){var e=this;return g(this,function(f){switch(f.label){case 0:if(this._protocol.initialized&&!this._protocol.supportsReAuth)throw(0,j.newError)("Connection does not support re-auth");if(this._authToken=c,this._protocol.initialized)return[3,2];return[4,this._initialize(a,b,c)];case 1:case 3:return[2,f.sent()];case 2:if(!d)return[3,4];return[4,new Promise(function(a,b){e._protocol.logoff({onError:b}),e._protocol.logon({authToken:c,onError:b,onComplete:function(){return a(e)},flush:!0})})];case 4:return this._protocol.logoff(),this._protocol.logon({authToken:c,flush:!0}),[2,this]}})})},b.prototype._initialize=function(a,b,c){var d=this,e=this;return new Promise(function(f,g){d._protocol.initialize({userAgent:a,boltAgent:b,authToken:c,notificationFilter:d._notificationFilter,onError:function(a){return g(a)},onComplete:function(a){var b;if(a){var c=a.server;(!d.version||c)&&(d.version=c);var g=a.connection_id;if(d.databaseId||(d.databaseId=g),a.hints){var h=a.hints["connection.recv_timeout_seconds"];if(null!=h){var i=(0,j.toNumber)(h);Number.isInteger(i)&&i>0?d._ch.setupReceiveTimeout(1e3*i):d._log.info("Server located at ".concat(d._address," supplied an invalid connection receive timeout value (").concat(i,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}!0===a.hints["telemetry.enabled"]&&(d._telemetryDisabledConnection=!1),d.SSREnabledHint=a.hints["ssr.enabled"]}d._ssrCallback(null!=(b=d.SSREnabledHint)&&b,"OPEN")}f(e)}})})},b.prototype.protocol=function(){return this._protocol},Object.defineProperty(b.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"version",{get:function(){return this._server.version},set:function(a){this._server.version=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),b.prototype._handleFatalError=function(a){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||a,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(j.json.stringify(this._error),")")),this._protocol.notifyFatalError(this._error)},b.prototype._setIdle=function(a){this._idle=!0,this._ch.stopReceiveTimeout(),this._protocol.queueObserverIfProtocolIsNotBroken(a)},b.prototype._unsetIdle=function(){this._idle=!1,this._updateCurrentObserver()},b.prototype._queueObserver=function(a){return this._protocol.queueObserverIfProtocolIsNotBroken(a)},b.prototype.hasOngoingObservableRequests=function(){return!this._idle&&this._protocol.hasOngoingObservableRequests()},b.prototype.resetAndFlush=function(){var a=this;return new Promise(function(b,c){a._reset({onError:function(b){a._isBroken?c(b):c(a._handleProtocolError("Received FAILURE as a response for RESET: ".concat(b)))},onComplete:function(){b()}})})},b.prototype._resetOnFailure=function(){var a=this;this.isOpen()&&this._reset({onError:function(){a._protocol.resetFailure()},onComplete:function(){a._protocol.resetFailure()}})},b.prototype._reset=function(a){var b=this;if(this._reseting)return void(this._protocol.isLastMessageReset()?this._resetObservers.push(a):this._protocol.reset({onError:function(b){a.onError(b)},onComplete:function(){a.onComplete()}}));this._resetObservers.push(a),this._reseting=!0;var c=function(a){b._reseting=!1;var c=b._resetObservers;b._resetObservers=[],c.forEach(a)};this._protocol.reset({onError:function(a){c(function(b){return b.onError(a)})},onComplete:function(){c(function(a){return a.onComplete()})}})},b.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},b.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},b.prototype._handleOngoingRequestsNumberChange=function(a){this._idle||(0===a?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout())},b.prototype.close=function(){return f(this,void 0,void 0,function(){var a;return g(this,function(b){switch(b.label){case 0:return this._ssrCallback(null!=(a=this.SSREnabledHint)&&a,"CLOSE"),this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return b.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}})})},b.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")},b.prototype._handleProtocolError=function(a){this._protocol.resetFailure(),this._updateCurrentObserver();var b=(0,j.newError)(a,m);return this._handleFatalError(b),b},b}(k.default);b.default=p},16198:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(81773),e=d.internal.util,f=e.ENCRYPTION_OFF,g=e.ENCRYPTION_ON,h=d.error.SERVICE_UNAVAILABLE,i=[null,void 0,!0,!1,g,f],j=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];b.default=function(a,b,c,e){this.address=a,this.encrypted=function(a){var b=a.encrypted;if(-1===i.indexOf(b))throw(0,d.newError)("Illegal value of the encrypted setting ".concat(b,". Expected one of ").concat(i));return b}(b),this.trust=function(a){var b=a.trust;if(-1===j.indexOf(b))throw(0,d.newError)("Illegal value of the trust setting ".concat(b,". Expected one of ").concat(j));return b}(b),this.trustedCertificates=b.trustedCertificates||[],this.connectionErrorCode=c||h,this.connectionTimeout=b.connectionTimeout,this.clientCertificate=e}},16251:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default="6.0.1"},16310:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.repeatWhen=void 0;var d=c(80241),e=c(57707),f=c(58555),g=c(383);b.repeatWhen=function(a){return f.operate(function(b,c){var f,h,i=!1,j=!1,k=!1,l=function(){return k&&j&&(c.complete(),!0)},m=function(){k=!1,f=b.subscribe(g.createOperatorSubscriber(c,void 0,function(){k=!0,l()||(!h&&(h=new e.Subject,d.innerFrom(a(h)).subscribe(g.createOperatorSubscriber(c,function(){f?m():i=!0},function(){j=!0,l()}))),h).next()})),i&&(f.unsubscribe(),f=null,i=!1,m())};m()})}},16557:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.merge=void 0;var f=c(58555),g=c(79526),h=c(53851),i=c(77889);b.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=h.popScheduler(a),j=h.popNumber(a,1/0);return f.operate(function(b,f){g.mergeAll(j)(i.from(e([b],d(a)),c)).subscribe(f)})}},16763:function(a,b){var c=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},d=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(a){var b=a.connectionLivenessCheckTimeout;this._connectionLivenessCheckTimeout=b}return a.prototype.check=function(a){return c(this,void 0,void 0,function(){var b;return d(this,function(c){switch(c.label){case 0:if(this._isCheckDisabled||this._isNewlyCreatedConnection(a))return[2,!0];if(b=Date.now()-a.idleTimestamp,!(0===this._connectionLivenessCheckTimeout||b>this._connectionLivenessCheckTimeout))return[3,2];return[4,a.resetAndFlush().then(function(){return!0})];case 1:return[2,c.sent()];case 2:return[2,!0]}})})},Object.defineProperty(a.prototype,"_isCheckDisabled",{get:function(){return null==this._connectionLivenessCheckTimeout||this._connectionLivenessCheckTimeout<0},enumerable:!1,configurable:!0}),a.prototype._isNewlyCreatedConnection=function(a){return null==a.authToken},a}()},17081:function(a,b,c){var d=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))};Object.defineProperty(b,"__esModule",{value:!0}),b.createValidRoutingTable=n;var f=c(81773),g=f.internal.constants,h=g.ACCESS_MODE_WRITE,i=g.ACCESS_MODE_READ,j=f.internal.serverAddress.ServerAddress,k=f.error.PROTOCOL_ERROR,l=function(){function a(a){var b=void 0===a?{}:a,c=b.database,d=b.routers,e=b.readers,g=b.writers,h=b.expirationTime,i=b.ttl;this.database=c||null,this.databaseName=c||"default database",this.routers=d||[],this.readers=e||[],this.writers=g||[],this.expirationTime=h||(0,f.int)(0),this.ttl=i}return a.fromRawRoutingTable=function(a,b,c){return n(a,b,c)},a.prototype.forget=function(a){this.readers=m(this.readers,a),this.writers=m(this.writers,a)},a.prototype.forgetRouter=function(a){this.routers=m(this.routers,a)},a.prototype.forgetWriter=function(a){this.writers=m(this.writers,a)},a.prototype.isStaleFor=function(a){return this.expirationTime.lessThan(Date.now())||this.routers.length<1||a===i&&0===this.readers.length||a===h&&0===this.writers.length},a.prototype.isExpiredFor=function(a){return this.expirationTime.add(a).lessThan(Date.now())},a.prototype.allServers=function(){return e(e(e([],d(this.routers),!1),d(this.readers),!1),d(this.writers),!1)},a.prototype.toString=function(){return"RoutingTable["+"database=".concat(this.databaseName,", ")+"expirationTime=".concat(this.expirationTime,", ")+"currentTime=".concat(Date.now(),", ")+"routers=[".concat(this.routers,"], ")+"readers=[".concat(this.readers,"], ")+"writers=[".concat(this.writers,"]]")},a}();function m(a,b){return a.filter(function(a){return a.asKey()!==b.asKey()})}function n(a,b,c){var d=c.ttl,e=function(a,b){try{var c=(0,f.int)(Date.now()),d=(0,f.int)(a.ttl).multiply(1e3).add(c);if(d.lessThan(c))return f.Integer.MAX_VALUE;return d}catch(c){throw(0,f.newError)("Unable to parse TTL entry from router ".concat(b," from raw routing table:\n").concat(f.json.stringify(a),"\nError message: ").concat(c.message),k)}}(c,b),g=function(a,b){try{var c=[],d=[],e=[];return a.servers.forEach(function(a){var b=a.role,f=a.addresses;"ROUTE"===b?c=p(f).map(function(a){return j.fromUrl(a)}):"WRITE"===b?e=p(f).map(function(a){return j.fromUrl(a)}):"READ"===b&&(d=p(f).map(function(a){return j.fromUrl(a)}))}),{routers:c,readers:d,writers:e}}catch(c){throw(0,f.newError)("Unable to parse servers entry from router ".concat(b," from addresses:\n").concat(f.json.stringify(a.servers),"\nError message: ").concat(c.message),k)}}(c,b),h=g.routers,i=g.readers,m=g.writers;return o(h,"routers",b),o(i,"readers",b),new l({database:a||c.db,routers:h,readers:i,writers:m,expirationTime:e,ttl:d})}function o(a,b,c){if(0===a.length)throw(0,f.newError)("Received no "+b+" from router "+c,k)}function p(a){if(!Array.isArray(a))throw TypeError("Array expected but got: "+a);return Array.from(a)}b.default=l},17286:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.queue=b.queueScheduler=void 0;var d=c(2616);b.queueScheduler=new(c(45537)).QueueScheduler(d.QueueAction),b.queue=b.queueScheduler},17459:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.toString=b.toNumber=b.inSafeRange=b.isInt=b.int=void 0;var d=c(54507),e=new Map,f=function(){function a(a,b){this.low=null!=a?a:0,this.high=null!=b?b:0}return a.prototype.inSafeRange=function(){return this.greaterThanOrEqual(a.MIN_SAFE_VALUE)&&this.lessThanOrEqual(a.MAX_SAFE_VALUE)},a.prototype.toInt=function(){return this.low},a.prototype.toNumber=function(){return this.high*g+(this.low>>>0)},a.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(g)+BigInt(this.low>>>0);var a=this.negate();return BigInt(-1)*(BigInt(a.high>>>0)*BigInt(g)+BigInt(a.low>>>0))},a.prototype.toNumberOrInfinity=function(){return this.lessThan(a.MIN_SAFE_VALUE)?-1/0:this.greaterThan(a.MAX_SAFE_VALUE)?1/0:this.toNumber()},a.prototype.toString=function(b){if((b=null!=b?b:10)<2||b>36)throw RangeError("radix out of range: "+b.toString());if(this.isZero())return"0";if(this.isNegative())if(!this.equals(a.MIN_VALUE))return"-"+this.negate().toString(b);else{var c,d=a.fromNumber(b),e=this.div(d);return c=e.multiply(d).subtract(this),e.toString(b)+c.toInt().toString(b)}var f=a.fromNumber(Math.pow(b,6));c=this;for(var g="";;){var h=c.div(f),i=(c.subtract(h.multiply(f)).toInt()>>>0).toString(b);if((c=h).isZero())return i+g;for(;i.length<6;)i="0"+i;g=""+i+g}},a.prototype.valueOf=function(){return this.toBigInt()},a.prototype.getHighBits=function(){return this.high},a.prototype.getLowBits=function(){return this.low},a.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(a.MIN_VALUE)?64:this.negate().getNumBitsAbs();var b=0!==this.high?this.high:this.low,c=0;for(c=31;c>0&&(b&1<<c)==0;c--);return 0!==this.high?c+33:c+1},a.prototype.isZero=function(){return 0===this.high&&0===this.low},a.prototype.isNegative=function(){return this.high<0},a.prototype.isPositive=function(){return this.high>=0},a.prototype.isOdd=function(){return(1&this.low)==1},a.prototype.isEven=function(){return(1&this.low)==0},a.prototype.equals=function(b){var c=a.fromValue(b);return this.high===c.high&&this.low===c.low},a.prototype.notEquals=function(a){return!this.equals(a)},a.prototype.lessThan=function(a){return 0>this.compare(a)},a.prototype.lessThanOrEqual=function(a){return 0>=this.compare(a)},a.prototype.greaterThan=function(a){return this.compare(a)>0},a.prototype.greaterThanOrEqual=function(a){return this.compare(a)>=0},a.prototype.compare=function(b){var c=a.fromValue(b);if(this.equals(c))return 0;var d=this.isNegative(),e=c.isNegative();return d&&!e?-1:!d&&e?1:this.subtract(c).isNegative()?-1:1},a.prototype.negate=function(){return this.equals(a.MIN_VALUE)?a.MIN_VALUE:this.not().add(a.ONE)},a.prototype.add=function(b){var c,d,e=a.fromValue(b),f=this.high>>>16,g=65535&this.high,h=this.low>>>16,i=65535&this.low,j=e.high>>>16,k=65535&e.high,l=e.low>>>16,m=65535&e.low,n=0,o=0;return c=0+((d=0+(i+m))>>>16),d&=65535,c+=h+l,o+=c>>>16,c&=65535,o+=g+k,n+=o>>>16,o&=65535,n+=f+j,n&=65535,a.fromBits(c<<16|d,n<<16|o)},a.prototype.subtract=function(b){var c=a.fromValue(b);return this.add(c.negate())},a.prototype.multiply=function(b){if(this.isZero())return a.ZERO;var c,d,e=a.fromValue(b);if(e.isZero())return a.ZERO;if(this.equals(a.MIN_VALUE))return e.isOdd()?a.MIN_VALUE:a.ZERO;if(e.equals(a.MIN_VALUE))return this.isOdd()?a.MIN_VALUE:a.ZERO;if(this.isNegative())if(e.isNegative())return this.negate().multiply(e.negate());else return this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(i)&&e.lessThan(i))return a.fromNumber(this.toNumber()*e.toNumber());var f=this.high>>>16,g=65535&this.high,h=this.low>>>16,j=65535&this.low,k=e.high>>>16,l=65535&e.high,m=e.low>>>16,n=65535&e.low,o=0,p=0;return c=0+((d=0+j*n)>>>16),d&=65535,c+=h*n,p+=c>>>16,c&=65535,c+=j*m,p+=c>>>16,c&=65535,p+=g*n,o+=p>>>16,p&=65535,p+=h*m,o+=p>>>16,p&=65535,p+=j*l,o+=p>>>16,p&=65535,o+=f*n+g*m+h*l+j*k,o&=65535,a.fromBits(c<<16|d,o<<16|p)},a.prototype.div=function(b){var c,e,f,g=a.fromValue(b);if(g.isZero())throw(0,d.newError)("division by zero");if(this.isZero())return a.ZERO;if(this.equals(a.MIN_VALUE))return g.equals(a.ONE)||g.equals(a.NEG_ONE)?a.MIN_VALUE:g.equals(a.MIN_VALUE)?a.ONE:(c=this.shiftRight(1).div(g).shiftLeft(1)).equals(a.ZERO)?g.isNegative()?a.ONE:a.NEG_ONE:(e=this.subtract(g.multiply(c)),f=c.add(e.div(g)));if(g.equals(a.MIN_VALUE))return a.ZERO;if(this.isNegative())return g.isNegative()?this.negate().div(g.negate()):this.negate().div(g).negate();if(g.isNegative())return this.div(g.negate()).negate();for(f=a.ZERO,e=this;e.greaterThanOrEqual(g);){for(var h=Math.ceil(Math.log(c=Math.max(1,Math.floor(e.toNumber()/g.toNumber())))/Math.LN2),i=h<=48?1:Math.pow(2,h-48),j=a.fromNumber(c),k=j.multiply(g);k.isNegative()||k.greaterThan(e);)c-=i,k=(j=a.fromNumber(c)).multiply(g);j.isZero()&&(j=a.ONE),f=f.add(j),e=e.subtract(k)}return f},a.prototype.modulo=function(b){var c=a.fromValue(b);return this.subtract(this.div(c).multiply(c))},a.prototype.not=function(){return a.fromBits(~this.low,~this.high)},a.prototype.and=function(b){var c=a.fromValue(b);return a.fromBits(this.low&c.low,this.high&c.high)},a.prototype.or=function(b){var c=a.fromValue(b);return a.fromBits(this.low|c.low,this.high|c.high)},a.prototype.xor=function(b){var c=a.fromValue(b);return a.fromBits(this.low^c.low,this.high^c.high)},a.prototype.shiftLeft=function(b){var c=a.toNumber(b);return 0==(c&=63)?a.ZERO:c<32?a.fromBits(this.low<<c,this.high<<c|this.low>>>32-c):a.fromBits(0,this.low<<c-32)},a.prototype.shiftRight=function(b){var c=a.toNumber(b),d=a.toNumber(b);return 0==(c&=63)?a.ZERO:d<32?a.fromBits(this.low>>>c|this.high<<32-c,this.high>>c):a.fromBits(this.high>>c-32,this.high>=0?0:-1)},a.isInteger=function(a){return(null==a?void 0:a.__isInteger__)===!0},a.fromInt=function(b){if((b|=0)>=-128&&b<128&&null!=(c=e.get(b)))return c;var c,d=new a(b,b<0?-1:0);return b>=-128&&b<128&&e.set(b,d),d},a.fromBits=function(b,c){return new a(b,c)},a.fromNumber=function(b){return isNaN(b)||!isFinite(b)?a.ZERO:b<=-h?a.MIN_VALUE:b+1>=h?a.MAX_VALUE:b<0?a.fromNumber(-b).negate():new a(b%g|0,b/g|0)},a.fromString=function(b,c,e){var f,g=(void 0===e?{}:e).strictStringValidation;if(0===b.length)throw(0,d.newError)("number format error: empty string");if("NaN"===b||"Infinity"===b||"+Infinity"===b||"-Infinity"===b)return a.ZERO;if((c=null!=c?c:10)<2||c>36)throw(0,d.newError)("radix out of range: "+c.toString());if((f=b.indexOf("-"))>0)throw(0,d.newError)('number format error: interior "-" character: '+b);if(0===f)return a.fromString(b.substring(1),c).negate();for(var h=a.fromNumber(Math.pow(c,8)),i=a.ZERO,j=0;j<b.length;j+=8){var k=Math.min(8,b.length-j),l=b.substring(j,j+k),m=parseInt(l,c);if(!0===g&&!function(a,b,c){var d,e,f;return!Number.isNaN(a)&&!Number.isNaN(b)&&(e=Math.max(a.length-(d=b.toString(c)).length,0),f="0".repeat(e),"".concat(f).concat(d)===a.toLowerCase())}(l,m,c))throw(0,d.newError)('number format error: "'.concat(l,'" is NaN in radix ').concat(c,": ").concat(b));if(k<8){var n=a.fromNumber(Math.pow(c,k));i=i.multiply(n).add(a.fromNumber(m))}else i=(i=i.multiply(h)).add(a.fromNumber(m))}return i},a.fromValue=function(b,c){return(void 0===c&&(c={}),b instanceof a)?b:"number"==typeof b?(!0===c.ceilFloat&&(b=Math.ceil(b)),a.fromNumber(b)):"string"==typeof b?a.fromString(b,void 0,c):"bigint"==typeof b?a.fromString(b.toString()):new a(b.low,b.high)},a.toNumber=function(b){switch(typeof b){case"number":return b;case"bigint":return Number(b);default:return a.fromValue(b).toNumber()}},a.toString=function(b,c){return a.fromValue(b).toString(c)},a.inSafeRange=function(b){return a.fromValue(b).inSafeRange()},a.ZERO=a.fromInt(0),a.ONE=a.fromInt(1),a.NEG_ONE=a.fromInt(-1),a.MAX_VALUE=a.fromBits(-1,0x7fffffff),a.MIN_VALUE=a.fromBits(0,-0x80000000),a.MIN_SAFE_VALUE=a.fromBits(1,-2097152),a.MAX_SAFE_VALUE=a.fromBits(-1,2097151),a.__isInteger__=!0,a}();Object.defineProperty(f.prototype,"__isInteger__",{value:!0,enumerable:!1,configurable:!1});var g=0x100000000,h=0x8000000000000000,i=f.fromInt(0x1000000);b.int=f.fromValue,b.isInt=f.isInteger,b.inSafeRange=f.inSafeRange,b.toNumber=f.toNumber,b.toString=f.toString,b.default=f},17506:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createFind=b.find=void 0;var d=c(58555),e=c(383);function f(a,b,c){var d="index"===c;return function(c,f){var g=0;c.subscribe(e.createOperatorSubscriber(f,function(e){var h=g++;a.call(b,e,h,c)&&(f.next(d?h:e),f.complete())},function(){f.next(d?-1:void 0),f.complete()}))}}b.find=function(a,b){return d.operate(f(a,b,"value"))},b.createFind=f},17701:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0});var f=c(81773),g=c(26337),h=c(77347);b.default=function(){function a(a,b){var c=a.pipe((0,h.publishReplay)(1),(0,h.refCount)());this._result=c,this._keys=c.pipe((0,h.mergeMap)(function(a){return(0,g.from)(a.keys())}),(0,h.publishReplay)(1),(0,h.refCount)()),this._records=void 0,this._controls=new i,this._summary=new g.ReplaySubject,this._state=b||0}return a.prototype.keys=function(){return this._keys},a.prototype.records=function(){var a=this,b=this._result.pipe((0,h.mergeMap)(function(b){return new g.Observable(function(c){return a._startStreaming({result:b,recordsObserver:c})})}));return b.push=function(){return a._push()},b},a.prototype.consume=function(){var a=this;return this._result.pipe((0,h.mergeMap)(function(b){return new g.Observable(function(c){return a._startStreaming({result:b,summaryObserver:c})})}))},a.prototype.pause=function(){this._controls.pause()},a.prototype.resume=function(){return this._controls.resume()},a.prototype.push=function(){return this._controls.push()},a.prototype._startStreaming=function(a){var b=void 0===a?{}:a,c=b.result,d=b.recordsObserver,e=void 0===d?null:d,g=b.summaryObserver,h=void 0===g?null:g,i=[];return h&&i.push(this._summary.subscribe(h)),this._state<1?(this._state=1,this._setupRecordsStream(c),e?i.push(this._records.subscribe(e)):c._cancel(),i.push({unsubscribe:function(){c._cancel&&c._cancel()}})):e&&e.error((0,f.newError)("Streaming has already started/consumed with a previous records or summary subscription.")),function(){i.forEach(function(a){return a.unsubscribe()})}},a.prototype._toObservable=function(){var b=this;return new g.Observable(function(c){b._result.subscribe({complete:function(){return c.complete()},next:function(d){return c.next(new a(new g.Observable(function(a){a.next(d),a.complete()})),b._state)},error:function(a){return c.error(a)}})})},a.prototype._setupRecordsStream=function(a){var b=this;return this._records||(this._records=function(a,b,c){var f=this;void 0===c&&(c=new i);var h=new g.Subject,j=function(g){return d(f,void 0,void 0,function(){var d,f,i,k;return e(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),c.pushing=!0,[4,g];case 1:return f=(d=e.sent()).done,i=d.value,f?(h.complete(),b.complete()):(h.next(i),c.paused||j(a.next()).catch(function(){})),[3,4];case 2:return k=e.sent(),h.error(k),b.error(k),[3,4];case 3:return c.pushing=!1,[7];case 4:return[2]}})})};function k(b){return d(this,void 0,void 0,function(){return e(this,function(c){switch(c.label){case 0:return[4,j(a.next(b))];case 1:return c.sent(),[2]}})})}return c.pusher=k,k(),h}(a[Symbol.asyncIterator](),{complete:function(){return d(b,void 0,void 0,function(){var b,c;return e(this,function(d){switch(d.label){case 0:return this._state=2,c=(b=this._summary).next,[4,a.summary()];case 1:return c.apply(b,[d.sent()]),this._summary.complete(),[2]}})})},error:function(a){b._state=2,b._summary.error(a)}},this._controls)),this._records},a}();var i=function(){function a(a){void 0===a&&(a=function(){return d(b,void 0,void 0,function(){return e(this,function(a){return[2]})})});var b=this;this._paused=!1,this._pushing=!1,this._push=a}return a.prototype.pause=function(){this._paused=!0},Object.defineProperty(a.prototype,"paused",{get:function(){return this._paused},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"pushing",{get:function(){return this._pushing},set:function(a){this._pushing=a},enumerable:!1,configurable:!0}),a.prototype.resume=function(){return d(this,void 0,void 0,function(){var a;return e(this,function(b){switch(b.label){case 0:if(a=this._paused,this._paused=!1,!(a&&!this._pushing))return[3,2];return[4,this._push()];case 1:b.sent(),b.label=2;case 2:return[2]}})})},a.prototype.push=function(){return d(this,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:return this.pause(),[4,this._push()];case 1:return[2,a.sent()]}})})},Object.defineProperty(a.prototype,"pusher",{get:function(){return this._push},set:function(a){this._push=a},enumerable:!1,configurable:!0}),a}()},17997:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.exhaustMap=void 0;var d=c(53767),e=c(80241),f=c(58555),g=c(383);b.exhaustMap=function a(b,c){return c?function(f){return f.pipe(a(function(a,f){return e.innerFrom(b(a,f)).pipe(d.map(function(b,d){return c(a,b,f,d)}))}))}:f.operate(function(a,c){var d=0,f=null,h=!1;a.subscribe(g.createOperatorSubscriber(c,function(a){f||(f=g.createOperatorSubscriber(c,void 0,function(){f=null,h&&c.complete()}),e.innerFrom(b(a,d++)).subscribe(f))},function(){h=!0,f||c.complete()}))})}},18548:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.range=void 0;var d=c(44230),e=c(15980);b.range=function(a,b,c){if(null==b&&(b=a,a=0),b<=0)return e.EMPTY;var f=b+a;return new d.Observable(c?function(b){var d=a;return c.schedule(function(){d<f?(b.next(d++),this.schedule()):b.complete()})}:function(b){for(var c=a;c<f&&!b.closed;)b.next(c++);b.complete()})}},18583:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isUnsupportedType=function(a){return null!=a&&!0===a[c]};var c="__isUnsupportedType__",d=function(){function a(a,b,c,d){this.name=a,this.minimumProtocolVersion="".concat(b,".").concat(c),this.message=d}return a.prototype.toString=function(){return"UnsupportedType<".concat(this.name,">")},a}();b.default=d,Object.defineProperty(d.prototype,c,{value:!0,enumerable:!1,configurable:!1,writable:!1})},18776:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.of=void 0;var d=c(53851),e=c(77889);b.of=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=d.popScheduler(a);return e.from(a,c)}},18947:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.retryWhen=void 0;var d=c(80241),e=c(57707),f=c(58555),g=c(383);b.retryWhen=function(a){return f.operate(function(b,c){var f,h,i=!1,j=function(){f=b.subscribe(g.createOperatorSubscriber(c,void 0,void 0,function(b){h||(h=new e.Subject,d.innerFrom(a(h)).subscribe(g.createOperatorSubscriber(c,function(){return f?j():i=!0}))),h&&h.next(b)})),i&&(f.unsubscribe(),f=null,i=!1,j())};j()})}},19142:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.BaseBuffer=void 0;var e=d(c(33969));b.BaseBuffer=e.default,b.default=e.default},19225:(a,b,c)=>{a.exports=c(44870)},19526:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.RoutingTable=b.Rediscovery=void 0;var e=d(c(22951));b.Rediscovery=e.default,b.RoutingTable=d(c(17081)).default,b.default=e.default},19634:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isValidDate=void 0,b.isValidDate=function(a){return a instanceof Date&&!isNaN(a)}},19735:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeMap=void 0;var d=c(53767),e=c(80241),f=c(58555),g=c(44255),h=c(14434);b.mergeMap=function a(b,c,i){return(void 0===i&&(i=1/0),h.isFunction(c))?a(function(a,f){return d.map(function(b,d){return c(a,b,f,d)})(e.innerFrom(b(a,f)))},i):("number"==typeof c&&(i=c),f.operate(function(a,c){return g.mergeInternals(a,c,b,i)}))}},19828:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduleIterable=void 0;var d=c(44230),e=c(67976),f=c(14434),g=c(60510);b.scheduleIterable=function(a,b){return new d.Observable(function(c){var d;return g.executeSchedule(c,b,function(){d=a[e.iterator](),g.executeSchedule(c,b,function(){var a,b,e;try{b=(a=d.next()).value,e=a.done}catch(a){c.error(a);return}e?c.complete():c.next(b)},0,!0)}),function(){return f.isFunction(null==d?void 0:d.return)&&d.return()}})}},20018:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.defaultIfEmpty=void 0;var d=c(58555),e=c(383);b.defaultIfEmpty=function(a){return d.operate(function(b,c){var d=!1;b.subscribe(e.createOperatorSubscriber(c,function(a){d=!0,c.next(a)},function(){d||c.next(a),c.complete()}))})}},20053:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.single=void 0;var d=c(4871),e=c(2637),f=c(6399),g=c(58555),h=c(383);b.single=function(a){return g.operate(function(b,c){var g,i=!1,j=!1,k=0;b.subscribe(h.createOperatorSubscriber(c,function(d){j=!0,(!a||a(d,k++,b))&&(i&&c.error(new e.SequenceError("Too many matching values")),i=!0,g=d)},function(){i?(c.next(g),c.complete()):c.error(j?new f.NotFoundError("No matching values"):new d.EmptyError)}))})}},20331:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.animationFrameProvider=void 0;var f=c(74038);b.animationFrameProvider={schedule:function(a){var c=requestAnimationFrame,d=cancelAnimationFrame,e=b.animationFrameProvider.delegate;e&&(c=e.requestAnimationFrame,d=e.cancelAnimationFrame);var g=c(function(b){d=void 0,a(b)});return new f.Subscription(function(){return null==d?void 0:d(g)})},requestAnimationFrame:function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=b.animationFrameProvider.delegate;return((null==f?void 0:f.requestAnimationFrame)||requestAnimationFrame).apply(void 0,e([],d(a)))},cancelAnimationFrame:function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=b.animationFrameProvider.delegate;return((null==f?void 0:f.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,e([],d(a)))},delegate:void 0}},20396:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.observeOn=void 0;var d=c(60510),e=c(58555),f=c(383);b.observeOn=function(a,b){return void 0===b&&(b=0),e.operate(function(c,e){c.subscribe(f.createOperatorSubscriber(e,function(c){return d.executeSchedule(e,a,function(){return e.next(c)},b)},function(){return d.executeSchedule(e,a,function(){return e.complete()},b)},function(c){return d.executeSchedule(e,a,function(){return e.error(c)},b)}))})}},21182:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.SECONDS_PER_DAY=b.DAYS_PER_400_YEAR_CYCLE=b.DAYS_0000_TO_1970=b.NANOS_PER_HOUR=b.NANOS_PER_MINUTE=b.NANOS_PER_MILLISECOND=b.NANOS_PER_SECOND=b.SECONDS_PER_HOUR=b.SECONDS_PER_MINUTE=b.MINUTES_PER_HOUR=b.NANOSECOND_OF_SECOND_RANGE=b.SECOND_OF_MINUTE_RANGE=b.MINUTE_OF_HOUR_RANGE=b.HOUR_OF_DAY_RANGE=b.DAY_OF_MONTH_RANGE=b.MONTH_OF_YEAR_RANGE=b.YEAR_RANGE=void 0,b.normalizeYearsForDuration=l,b.normalizeMonthsForDuration=m,b.normalizeHoursForDuration=n,b.normalizeMinutesForDuration=o,b.normalizeSecondsForDuration=function(a,c){return(0,h.int)(a).add(u(c,b.NANOS_PER_SECOND))},b.normalizeNanosecondsForDuration=function(a){return v(a,b.NANOS_PER_SECOND)},b.localTimeToNanoOfDay=function(a,c,d,e){a=(0,h.int)(a),c=(0,h.int)(c),d=(0,h.int)(d),e=(0,h.int)(e);var f=a.multiply(b.NANOS_PER_HOUR);return(f=(f=f.add(c.multiply(b.NANOS_PER_MINUTE))).add(d.multiply(b.NANOS_PER_SECOND))).add(e)},b.localDateTimeToEpochSecond=function(a,c,d,e,f,g,i){var j,k,l,m,n=p(a,c,d),o=(j=e,k=f,l=g,j=(0,h.int)(j),k=(0,h.int)(k),l=(0,h.int)(l),(m=(m=j.multiply(b.SECONDS_PER_HOUR)).add(k.multiply(b.SECONDS_PER_MINUTE))).add(l));return n.multiply(b.SECONDS_PER_DAY).add(o)},b.dateToEpochDay=p,b.durationToIsoString=function(a,c,d,e){if((0,h.int)(a).equals(0)&&(0,h.int)(c).equals(0)&&(0,h.int)(d).equals(0)&&(0,h.int)(e).equals(0))return"PT0S";var f,g,i,j,k,p,q=x(l(a)),r=x(m(a)),s=x(c),t=x(n(d,e)),u=x(o(d,e)),v=(f=d,g=e,f=(0,h.int)(f),g=(0,h.int)(g),k=f.isNegative(),p=g.greaterThan(0),i=k&&p?(f=f.add(1).negate().modulo(60).negate()).equals(0)?"-0":f.toString():f.modulo(60).toString(),p&&(j=k?w(g.negate().add(2*b.NANOS_PER_SECOND).modulo(b.NANOS_PER_SECOND)):w(g.add(b.NANOS_PER_SECOND).modulo(b.NANOS_PER_SECOND))),null!=j?i+j:i);return"P".concat("0"!==q?q+"Y":"")+"".concat("0"!==r?r+"M":"")+"".concat("0"!==s?s+"D":"","T")+"".concat("0"!==t?t+"H":"")+"".concat("0"!==u?u+"M":"")+"".concat("0"!==v?v+"S":"")},b.timeToIsoString=function(a,b,c,d){var e=x(a,2),f=x(b,2),g=x(c,2),h=w(d);return"".concat(e,":").concat(f,":").concat(g).concat(h)},b.timeZoneOffsetToIsoString=function(a){if((a=(0,h.int)(a)).equals(0))return"Z";var c=a.isNegative();c&&(a=a.multiply(-1));var d=c?"-":"+",e=x(a.div(b.SECONDS_PER_HOUR),2),f=x(a.div(b.SECONDS_PER_MINUTE).modulo(b.MINUTES_PER_HOUR),2),g=a.modulo(b.SECONDS_PER_MINUTE),i=g.equals(0)?null:x(g,2);return null!=i?"".concat(d).concat(e,":").concat(f,":").concat(i):"".concat(d).concat(e,":").concat(f)},b.dateToIsoString=function(a,b,c){var d,e,f=(d=a,(e=(0,h.int)(d)).isNegative()||e.greaterThan(9999)?x(e,6,{usePositiveSign:!0}):x(e,4)),g=x(b,2),i=x(c,2);return"".concat(f,"-").concat(g,"-").concat(i)},b.isoStringToStandardDate=function(a){return new Date(a)},b.toStandardDate=function(a){return new Date(a)},b.newDate=function(a){return new Date(a)},b.totalNanoseconds=function(a,c){var d,e;return d=c=null!=c?c:0,e=a.getMilliseconds()*b.NANOS_PER_MILLISECOND,d instanceof h.default?d.add(e):"bigint"==typeof d?d+BigInt(e):d+e},b.timeZoneOffsetInSeconds=function(a){var c,d=a.getSeconds()-a.getUTCSeconds(),e=a.getMinutes()-a.getUTCMinutes(),f=a.getHours()-a.getUTCHours(),g=(c=a).getMonth()===c.getUTCMonth()?c.getDate()-c.getUTCDate():c.getFullYear()>c.getUTCFullYear()||c.getMonth()>c.getUTCMonth()&&c.getFullYear()===c.getUTCFullYear()?c.getDate()+q(c.getUTCMonth(),c.getUTCFullYear())-c.getUTCDate():c.getDate()-(c.getUTCDate()+q(c.getMonth(),c.getFullYear()));return f*b.SECONDS_PER_HOUR+e*b.SECONDS_PER_MINUTE+d+g*b.SECONDS_PER_DAY},b.assertValidYear=function(a){return t(a,b.YEAR_RANGE,"Year")},b.assertValidMonth=function(a){return t(a,b.MONTH_OF_YEAR_RANGE,"Month")},b.assertValidDay=function(a){return t(a,b.DAY_OF_MONTH_RANGE,"Day")},b.assertValidHour=function(a){return t(a,b.HOUR_OF_DAY_RANGE,"Hour")},b.assertValidMinute=function(a){return t(a,b.MINUTE_OF_HOUR_RANGE,"Minute")},b.assertValidSecond=function(a){return t(a,b.SECOND_OF_MINUTE_RANGE,"Second")},b.assertValidNanosecond=function(a){return t(a,b.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")},b.assertValidZoneId=function(a,b){var c=r.get(b);if(!0!==c){if(!1===c)throw s(b,a);try{Intl.DateTimeFormat(void 0,{timeZone:b}),r.set(b,!0)}catch(c){throw r.set(b,!1),s(b,a)}}},b.floorDiv=u,b.floorMod=v;var h=g(c(17459)),i=c(54507),j=c(49619),k=function(){function a(a,b){this._minNumber=a,this._maxNumber=b,this._minInteger=(0,h.int)(a),this._maxInteger=(0,h.int)(b)}return a.prototype.contains=function(a){if((0,h.isInt)(a)&&a instanceof h.default)return a.greaterThanOrEqual(this._minInteger)&&a.lessThanOrEqual(this._maxInteger);if("bigint"!=typeof a)return a>=this._minNumber&&a<=this._maxNumber;var b=(0,h.int)(a);return b.greaterThanOrEqual(this._minInteger)&&b.lessThanOrEqual(this._maxInteger)},a.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")},a}();function l(a){return(0,h.int)(a).div(12)}function m(a){return(0,h.int)(a).modulo(12)}function n(a,c){return(0,h.int)(c).greaterThan(0)&&(0,h.int)(a).lessThan(0)&&(a=(0,h.int)(a).add(1)),(0,h.int)(a).div(b.SECONDS_PER_HOUR)}function o(a,c){(0,h.int)(c).greaterThan(0)&&(0,h.int)(a).lessThan(0)&&(a=(0,h.int)(a).add(1));var d=(0,h.int)(a).div(b.SECONDS_PER_MINUTE),e=d.isNegative();return e&&(d=d.negate()),v(d,b.MINUTES_PER_HOUR).multiply(e?-1:1)}function p(a,c,d){a=(0,h.int)(a),c=(0,h.int)(c),d=(0,h.int)(d);var e,f=a.multiply(365);return f=(f=(f=a.greaterThanOrEqual(0)?f.add(a.add(3).div(4).subtract(a.add(99).div(100)).add(a.add(399).div(400))):f.subtract(a.div(-4).subtract(a.div(-100)).add(a.div(-400)))).add(c.multiply(367).subtract(362).div(12))).add(d.subtract(1)),c.greaterThan(2)&&(f=f.subtract(1),e=a,(e=(0,h.int)(e)).modulo(4).equals(0)&&(!e.modulo(100).equals(0)||e.modulo(400).equals(0)&&1)||(f=f.subtract(1))),f.subtract(b.DAYS_0000_TO_1970)}function q(a,b){if(1===a)if(b%400==0||b%4==0&&b%100!=0)return 29;else return 28;return[0,2,4,6,7,9,11].includes(a)?31:30}b.YEAR_RANGE=new k(-0x3b9ac9ff,0x3b9ac9ff),b.MONTH_OF_YEAR_RANGE=new k(1,12),b.DAY_OF_MONTH_RANGE=new k(1,31),b.HOUR_OF_DAY_RANGE=new k(0,23),b.MINUTE_OF_HOUR_RANGE=new k(0,59),b.SECOND_OF_MINUTE_RANGE=new k(0,59),b.NANOSECOND_OF_SECOND_RANGE=new k(0,0x3b9ac9ff),b.MINUTES_PER_HOUR=60,b.SECONDS_PER_MINUTE=60,b.SECONDS_PER_HOUR=b.SECONDS_PER_MINUTE*b.MINUTES_PER_HOUR,b.NANOS_PER_SECOND=1e9,b.NANOS_PER_MILLISECOND=1e6,b.NANOS_PER_MINUTE=b.NANOS_PER_SECOND*b.SECONDS_PER_MINUTE,b.NANOS_PER_HOUR=b.NANOS_PER_MINUTE*b.MINUTES_PER_HOUR,b.DAYS_0000_TO_1970=719528,b.DAYS_PER_400_YEAR_CYCLE=146097,b.SECONDS_PER_DAY=86400;var r=new Map,s=function(a,b){return(0,i.newError)("".concat(b,' is expected to be a valid ZoneId but was: "').concat(a,'"'))};function t(a,b,c){if((0,j.assertNumberOrInteger)(a,c),!b.contains(a))throw(0,i.newError)("".concat(c," is expected to be in range ").concat(b.toString()," but was: ").concat(a.toString()));return a}function u(a,b){a=(0,h.int)(a),b=(0,h.int)(b);var c=a.div(b);return a.isPositive()!==b.isPositive()&&c.multiply(b).notEquals(a)&&(c=c.subtract(1)),c}function v(a,b){return a=(0,h.int)(a),b=(0,h.int)(b),a.subtract(u(a,b).multiply(b))}function w(a){return(a=(0,h.int)(a)).equals(0)?"":"."+x(a,9)}function x(a,b,c){var d=(a=(0,h.int)(a)).isNegative();d&&(a=a.negate());var e=a.toString();if(null!=b)for(;e.length<b;)e="0"+e;return d?"-"+e:(null==c?void 0:c.usePositiveSign)===!0?"+"+e:e}},21391:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.alloc=function(a){return new h(a)};var g=f(c(79428)),h=function(a){function b(b){var c,d=this,e=(c=b)instanceof g.default.Buffer?c:"number"==typeof c&&"function"==typeof g.default.Buffer.alloc?g.default.Buffer.alloc(c):new g.default.Buffer(c);return(d=a.call(this,e.length)||this)._buffer=e,d}return e(b,a),b.prototype.getUInt8=function(a){return this._buffer.readUInt8(a)},b.prototype.getInt8=function(a){return this._buffer.readInt8(a)},b.prototype.getFloat64=function(a){return this._buffer.readDoubleBE(a)},b.prototype.getVarInt=function(a){for(var b=0,c=this._buffer.readInt8(a+b),d=c%128;c/128>=1;)b+=1,d+=(c=this._buffer.readInt8(a+b))%128;return{length:b+1,value:d}},b.prototype.putUInt8=function(a,b){this._buffer.writeUInt8(b,a)},b.prototype.putInt8=function(a,b){this._buffer.writeInt8(b,a)},b.prototype.putFloat64=function(a,b){this._buffer.writeDoubleBE(b,a)},b.prototype.putBytes=function(c,d){if(d instanceof b){var e=Math.min(d.length-d.position,this.length-c);d._buffer.copy(this._buffer,c,d.position,d.position+e),d.position+=e}else a.prototype.putBytes.call(this,c,d)},b.prototype.getSlice=function(a,c){return new b(this._buffer.slice(a,a+c))},b}(f(c(19142)).default);b.default=h},21764:(a,b)=>{function c(a,b,c){null!=b&&b.bind(a)(c)}Object.defineProperty(b,"__esModule",{value:!0}),b.FailedObserver=b.CompletedObserver=void 0,b.CompletedObserver=function(){function a(){}return a.prototype.subscribe=function(a){c(a,a.onKeys,[]),c(a,a.onCompleted,{})},a.prototype.cancel=function(){},a.prototype.pause=function(){},a.prototype.resume=function(){},a.prototype.prepareToHandleSingleResponse=function(){},a.prototype.markCompleted=function(){},a.prototype.onError=function(a){throw Error("CompletedObserver not supposed to call onError",{cause:a})},a}(),b.FailedObserver=function(){function a(a){var b=a.error,c=a.onError;this._error=b,this._beforeError=c,this._observers=[],this.onError(b)}return a.prototype.subscribe=function(a){c(a,a.onError,this._error),this._observers.push(a)},a.prototype.onError=function(a){c(this,this._beforeError,a),this._observers.forEach(function(b){return c(b,b.onError,a)})},a.prototype.cancel=function(){},a.prototype.pause=function(){},a.prototype.resume=function(){},a.prototype.markCompleted=function(){},a.prototype.prepareToHandleSingleResponse=function(){},a}()},21875:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.partition=void 0;var d=c(8441),e=c(97991);b.partition=function(a,b){return function(c){return[e.filter(a,b)(c),e.filter(d.not(a,b))(c)]}}},22696:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.utf8=b.alloc=b.ChannelConfig=void 0,e(c(46581),b),e(c(27801),b);var g=c(16198);Object.defineProperty(b,"ChannelConfig",{enumerable:!0,get:function(){return f(g).default}});var h=c(21391);Object.defineProperty(b,"alloc",{enumerable:!0,get:function(){return h.alloc}});var i=c(38757);Object.defineProperty(b,"utf8",{enumerable:!0,get:function(){return f(i).default}})},22910:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isAsyncIterable=void 0;var d=c(14434);b.isAsyncIterable=function(a){return Symbol.asyncIterator&&d.isFunction(null==a?void 0:a[Symbol.asyncIterator])}},22951:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var e=d(c(17081));c(81773),b.default=function(){function a(a){this._routingContext=a}return a.prototype.lookupRoutingTableOnRouter=function(a,b,c,d){var f=this;return a._acquireConnection(function(g){return f._requestRawRoutingTable(g,a,b,c,d).then(function(a){return a.isNull?null:e.default.fromRawRoutingTable(b,c,a)})})},a.prototype._requestRawRoutingTable=function(a,b,c,d,e){var f=this;return new Promise(function(d,g){a.protocol().requestRoutingInformation({routingContext:f._routingContext,databaseName:c,impersonatedUser:e,sessionContext:{bookmarks:b._lastBookmarks,mode:b._mode,database:b._database,afterComplete:b._onComplete},onCompleted:d,onError:g})})},a}()},22997:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(79327));b.default=d({},f.default)},23004:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AsyncScheduler=void 0;var f=c(69562);b.AsyncScheduler=function(a){function b(b,c){void 0===c&&(c=f.Scheduler.now);var d=a.call(this,b,c)||this;return d.actions=[],d._active=!1,d}return e(b,a),b.prototype.flush=function(a){var b,c=this.actions;if(this._active)return void c.push(a);this._active=!0;do if(b=a.execute(a.state,a.delay))break;while(a=c.shift());if(this._active=!1,b){for(;a=c.shift();)a.unsubscribe();throw b}},b}(f.Scheduler)},23068:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=c(81773),h=c(14276),i=c(90797),j=c(34193),k=f(c(35177)),l=g.internal.temporalUtil,m=l.dateToEpochDay,n=l.localDateTimeToEpochSecond,o=l.localTimeToNanoOfDay;function p(a,b,c){if(!b&&!c)return a;var d=Object.create(Object.getPrototypeOf(a));for(var e in a)if(!0===Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];d[e]=(0,g.isInt)(f)?c?f.toBigInt():f.toNumberOrInfinity():f}return Object.freeze(d),d}b.default=d(d({},k.default),{createPoint2DTransformer:function(){return new i.TypeTransformer({signature:88,isTypeInstance:function(a){return(0,g.isPoint)(a)&&(null===a.z||void 0===a.z)},toStructure:function(a){return new h.structure.Structure(88,[(0,g.int)(a.srid),a.x,a.y])},fromStructure:function(a){h.structure.verifyStructSize("Point2D",3,a.size);var b=e(a.fields,3),c=b[0],d=b[1],f=b[2];return new g.Point(c,d,f,void 0)}})},createPoint3DTransformer:function(){return new i.TypeTransformer({signature:89,isTypeInstance:function(a){return(0,g.isPoint)(a)&&null!==a.z&&void 0!==a.z},toStructure:function(a){return new h.structure.Structure(89,[(0,g.int)(a.srid),a.x,a.y,a.z])},fromStructure:function(a){h.structure.verifyStructSize("Point3D",4,a.size);var b=e(a.fields,4),c=b[0],d=b[1],f=b[2],i=b[3];return new g.Point(c,d,f,i)}})},createDurationTransformer:function(){return new i.TypeTransformer({signature:69,isTypeInstance:g.isDuration,toStructure:function(a){var b=(0,g.int)(a.months),c=(0,g.int)(a.days),d=(0,g.int)(a.seconds),e=(0,g.int)(a.nanoseconds);return new h.structure.Structure(69,[b,c,d,e])},fromStructure:function(a){h.structure.verifyStructSize("Duration",4,a.size);var b=e(a.fields,4),c=b[0],d=b[1],f=b[2],i=b[3];return new g.Duration(c,d,f,i)}})},createLocalTimeTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:116,isTypeInstance:g.isLocalTime,toStructure:function(a){var b=o(a.hour,a.minute,a.second,a.nanosecond);return new h.structure.Structure(116,[b])},fromStructure:function(a){h.structure.verifyStructSize("LocalTime",1,a.size);var d=e(a.fields,1)[0];return p((0,j.nanoOfDayToLocalTime)(d),b,c)}})},createTimeTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:84,isTypeInstance:g.isTime,toStructure:function(a){var b=o(a.hour,a.minute,a.second,a.nanosecond),c=(0,g.int)(a.timeZoneOffsetSeconds);return new h.structure.Structure(84,[b,c])},fromStructure:function(a){h.structure.verifyStructSize("Time",2,a.size);var d=e(a.fields,2),f=d[0],i=d[1],k=(0,j.nanoOfDayToLocalTime)(f);return p(new g.Time(k.hour,k.minute,k.second,k.nanosecond,i),b,c)}})},createDateTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:68,isTypeInstance:g.isDate,toStructure:function(a){var b=m(a.year,a.month,a.day);return new h.structure.Structure(68,[b])},fromStructure:function(a){h.structure.verifyStructSize("Date",1,a.size);var d=e(a.fields,1)[0];return p((0,j.epochDayToDate)(d),b,c)}})},createLocalDateTimeTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:100,isTypeInstance:g.isLocalDateTime,toStructure:function(a){var b=n(a.year,a.month,a.day,a.hour,a.minute,a.second,a.nanosecond),c=(0,g.int)(a.nanosecond);return new h.structure.Structure(100,[b,c])},fromStructure:function(a){h.structure.verifyStructSize("LocalDateTime",2,a.size);var d=e(a.fields,2),f=d[0],g=d[1];return p((0,j.epochSecondAndNanoToLocalDateTime)(f,g),b,c)}})},createDateTimeWithZoneIdTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:102,isTypeInstance:function(a){return(0,g.isDateTime)(a)&&null!=a.timeZoneId},toStructure:function(a){var b=n(a.year,a.month,a.day,a.hour,a.minute,a.second,a.nanosecond),c=(0,g.int)(a.nanosecond),d=a.timeZoneId;return new h.structure.Structure(102,[b,c,d])},fromStructure:function(a){h.structure.verifyStructSize("DateTimeWithZoneId",3,a.size);var d=e(a.fields,3),f=d[0],i=d[1],k=d[2],l=(0,j.epochSecondAndNanoToLocalDateTime)(f,i);return p(new g.DateTime(l.year,l.month,l.day,l.hour,l.minute,l.second,l.nanosecond,null,k),b,c)}})},createDateTimeWithOffsetTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return new i.TypeTransformer({signature:70,isTypeInstance:function(a){return(0,g.isDateTime)(a)&&null==a.timeZoneId},toStructure:function(a){var b=n(a.year,a.month,a.day,a.hour,a.minute,a.second,a.nanosecond),c=(0,g.int)(a.nanosecond),d=(0,g.int)(a.timeZoneOffsetSeconds);return new h.structure.Structure(70,[b,c,d])},fromStructure:function(a){h.structure.verifyStructSize("DateTimeWithZoneOffset",3,a.size);var d=e(a.fields,3),f=d[0],i=d[1],k=d[2],l=(0,j.epochSecondAndNanoToLocalDateTime)(f,i);return p(new g.DateTime(l.year,l.month,l.day,l.hour,l.minute,l.second,l.nanosecond,k,null),b,c)}})}})},23073:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.last=void 0;var d=c(4871),e=c(97991),f=c(83698),g=c(49185),h=c(20018),i=c(70332);b.last=function(a,b){var c=arguments.length>=2;return function(j){return j.pipe(a?e.filter(function(b,c){return a(b,c,j)}):i.identity,f.takeLast(1),c?h.defaultIfEmpty(b):g.throwIfEmpty(function(){return new d.EmptyError}))}}},23494:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.zip=void 0;var f=c(43662),g=c(58555);b.zip=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return g.operate(function(b,c){f.zip.apply(void 0,e([b],d(a))).subscribe(c)})}},23526:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isArrayLike=void 0,b.isArrayLike=function(a){return a&&"number"==typeof a.length&&"function"!=typeof a}},23610:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var e=c(26337),f=c(77347),g=d(c(17701)),h=c(81773),i=d(c(56358)),j=d(c(65674)),k=d(c(30863)),l=h.internal.constants,m=l.ACCESS_MODE_READ,n=l.ACCESS_MODE_WRITE,o=l.TELEMETRY_APIS,p=h.internal.txConfig.TxConfig;b.default=function(){function a(a){var b,c,d=void 0===a?{}:a,e=d.session,f=d.config,g=d.log;this._session=e,this._retryLogic=(c=(b=f)&&b.maxTransactionRetryTime?b.maxTransactionRetryTime:null,new k.default({maxRetryTimeout:c})),this._log=g}return a.prototype.run=function(a,b,c){var d=this;return new g.default(new e.Observable(function(e){try{e.next(d._session.run(a,b,c)),e.complete()}catch(a){e.error(a)}return function(){}}))},a.prototype.beginTransaction=function(a){return this._beginTransaction(this._session._mode,a,{api:o.UNMANAGED_TRANSACTION})},a.prototype.executeRead=function(a,b){return this._executeInTransaction(m,a,b)},a.prototype.executeWrite=function(a,b){return this._executeInTransaction(n,a,b)},a.prototype._executeInTransaction=function(a,b,c){return this._runTransaction(a,b,c,function(a){return new j.default({run:a.run.bind(a)})})},a.prototype.close=function(){var a=this;return new e.Observable(function(b){a._session.close().then(function(){b.complete()}).catch(function(a){return b.error(a)})})},a.prototype[Symbol.asyncDispose]=function(){return this.close()},a.prototype.lastBookmarks=function(){return this._session.lastBookmarks()},a.prototype._beginTransaction=function(a,b,c){var d=this,f=p.empty();return b&&(f=new p(b,this._log)),new e.Observable(function(b){try{d._session._beginTransaction(a,f,c).then(function(a){b.next(new i.default(a)),b.complete()}).catch(function(a){return b.error(a)})}catch(a){b.error(a)}return function(){}})},a.prototype._runTransaction=function(a,b,c,d){var g=this;void 0===d&&(d=function(a){return a});var h=p.empty();c&&(h=new p(c));var i={apiTelemetryConfig:{api:o.MANAGED_TRANSACTION,onTelemetrySuccess:function(){i.apiTelemetryConfig=void 0}}};return this._retryLogic.retry((0,e.of)(1).pipe((0,f.mergeMap)(function(){return g._beginTransaction(a,h,i.apiTelemetryConfig)}),(0,f.mergeMap)(function(a){return(0,e.defer)(function(){try{return b(d(a))}catch(a){return(0,e.throwError)(function(){return a})}}).pipe((0,f.catchError)(function(b){return a.rollback().pipe((0,f.concatWith)((0,e.throwError)(function(){return b})))}),(0,f.concatWith)(a.commit()))})))},a}()},24547:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),e(c(7880),b)},24709:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(63746));b.default=d({},f.default)},25070:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.take=void 0;var d=c(15980),e=c(58555),f=c(383);b.take=function(a){return a<=0?function(){return d.EMPTY}:e.operate(function(b,c){var d=0;b.subscribe(f.createOperatorSubscriber(c,function(b){++d<=a&&(c.next(b),a<=d&&c.complete())}))})}},25119:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.groupBy=void 0;var d=c(44230),e=c(80241),f=c(57707),g=c(58555),h=c(383);b.groupBy=function(a,b,c,i){return g.operate(function(g,j){b&&"function"!=typeof b?(c=b.duration,k=b.element,i=b.connector):k=b;var k,l=new Map,m=function(a){l.forEach(a),a(j)},n=function(a){return m(function(b){return b.error(a)})},o=0,p=!1,q=new h.OperatorSubscriber(j,function(b){try{var g=a(b),m=l.get(g);if(!m){l.set(g,m=i?i():new f.Subject);var r,s,t,u=(r=g,s=m,(t=new d.Observable(function(a){o++;var b=s.subscribe(a);return function(){b.unsubscribe(),0==--o&&p&&q.unsubscribe()}})).key=r,t);if(j.next(u),c){var v=h.createOperatorSubscriber(m,function(){m.complete(),null==v||v.unsubscribe()},void 0,void 0,function(){return l.delete(g)});q.add(e.innerFrom(c(u)).subscribe(v))}}m.next(k?k(b):b)}catch(a){n(a)}},function(){return m(function(a){return a.complete()})},n,function(){return l.clear()},function(){return p=!0,0===o});g.subscribe(q)})}},25307:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(a){this._offset=a||0}return a.prototype.next=function(a){if(0===a)return -1;var b=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),b%a},a}()},26337:(a,b,c)=>{var d=Object.create?function(a,b,c,d){void 0===d&&(d=c),Object.defineProperty(a,d,{enumerable:!0,get:function(){return b[c]}})}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]};Object.defineProperty(b,"__esModule",{value:!0}),b.interval=b.iif=b.generate=b.fromEventPattern=b.fromEvent=b.from=b.forkJoin=b.empty=b.defer=b.connectable=b.concat=b.combineLatest=b.bindNodeCallback=b.bindCallback=b.UnsubscriptionError=b.TimeoutError=b.SequenceError=b.ObjectUnsubscribedError=b.NotFoundError=b.EmptyError=b.ArgumentOutOfRangeError=b.firstValueFrom=b.lastValueFrom=b.isObservable=b.identity=b.noop=b.pipe=b.NotificationKind=b.Notification=b.Subscriber=b.Subscription=b.Scheduler=b.VirtualAction=b.VirtualTimeScheduler=b.animationFrameScheduler=b.animationFrame=b.queueScheduler=b.queue=b.asyncScheduler=b.async=b.asapScheduler=b.asap=b.AsyncSubject=b.ReplaySubject=b.BehaviorSubject=b.Subject=b.animationFrames=b.observable=b.ConnectableObservable=b.Observable=void 0,b.filter=b.expand=b.exhaustMap=b.exhaustAll=b.exhaust=b.every=b.endWith=b.elementAt=b.distinctUntilKeyChanged=b.distinctUntilChanged=b.distinct=b.dematerialize=b.delayWhen=b.delay=b.defaultIfEmpty=b.debounceTime=b.debounce=b.count=b.connect=b.concatWith=b.concatMapTo=b.concatMap=b.concatAll=b.combineLatestWith=b.combineLatestAll=b.combineAll=b.catchError=b.bufferWhen=b.bufferToggle=b.bufferTime=b.bufferCount=b.buffer=b.auditTime=b.audit=b.config=b.NEVER=b.EMPTY=b.scheduled=b.zip=b.using=b.timer=b.throwError=b.range=b.race=b.partition=b.pairs=b.onErrorResumeNext=b.of=b.never=b.merge=void 0,b.switchMap=b.switchAll=b.subscribeOn=b.startWith=b.skipWhile=b.skipUntil=b.skipLast=b.skip=b.single=b.shareReplay=b.share=b.sequenceEqual=b.scan=b.sampleTime=b.sample=b.refCount=b.retryWhen=b.retry=b.repeatWhen=b.repeat=b.reduce=b.raceWith=b.publishReplay=b.publishLast=b.publishBehavior=b.publish=b.pluck=b.pairwise=b.onErrorResumeNextWith=b.observeOn=b.multicast=b.min=b.mergeWith=b.mergeScan=b.mergeMapTo=b.mergeMap=b.flatMap=b.mergeAll=b.max=b.materialize=b.mapTo=b.map=b.last=b.isEmpty=b.ignoreElements=b.groupBy=b.first=b.findIndex=b.find=b.finalize=void 0,b.zipWith=b.zipAll=b.withLatestFrom=b.windowWhen=b.windowToggle=b.windowTime=b.windowCount=b.window=b.toArray=b.timestamp=b.timeoutWith=b.timeout=b.timeInterval=b.throwIfEmpty=b.throttleTime=b.throttle=b.tap=b.takeWhile=b.takeUntil=b.takeLast=b.take=b.switchScan=b.switchMapTo=void 0;var e=c(44230);Object.defineProperty(b,"Observable",{enumerable:!0,get:function(){return e.Observable}});var f=c(57534);Object.defineProperty(b,"ConnectableObservable",{enumerable:!0,get:function(){return f.ConnectableObservable}});var g=c(34479);Object.defineProperty(b,"observable",{enumerable:!0,get:function(){return g.observable}});var h=c(57726);Object.defineProperty(b,"animationFrames",{enumerable:!0,get:function(){return h.animationFrames}});var i=c(57707);Object.defineProperty(b,"Subject",{enumerable:!0,get:function(){return i.Subject}});var j=c(441);Object.defineProperty(b,"BehaviorSubject",{enumerable:!0,get:function(){return j.BehaviorSubject}});var k=c(85770);Object.defineProperty(b,"ReplaySubject",{enumerable:!0,get:function(){return k.ReplaySubject}});var l=c(37311);Object.defineProperty(b,"AsyncSubject",{enumerable:!0,get:function(){return l.AsyncSubject}});var m=c(55856);Object.defineProperty(b,"asap",{enumerable:!0,get:function(){return m.asap}}),Object.defineProperty(b,"asapScheduler",{enumerable:!0,get:function(){return m.asapScheduler}});var n=c(84189);Object.defineProperty(b,"async",{enumerable:!0,get:function(){return n.async}}),Object.defineProperty(b,"asyncScheduler",{enumerable:!0,get:function(){return n.asyncScheduler}});var o=c(17286);Object.defineProperty(b,"queue",{enumerable:!0,get:function(){return o.queue}}),Object.defineProperty(b,"queueScheduler",{enumerable:!0,get:function(){return o.queueScheduler}});var p=c(62254);Object.defineProperty(b,"animationFrame",{enumerable:!0,get:function(){return p.animationFrame}}),Object.defineProperty(b,"animationFrameScheduler",{enumerable:!0,get:function(){return p.animationFrameScheduler}});var q=c(96270);Object.defineProperty(b,"VirtualTimeScheduler",{enumerable:!0,get:function(){return q.VirtualTimeScheduler}}),Object.defineProperty(b,"VirtualAction",{enumerable:!0,get:function(){return q.VirtualAction}});var r=c(69562);Object.defineProperty(b,"Scheduler",{enumerable:!0,get:function(){return r.Scheduler}});var s=c(74038);Object.defineProperty(b,"Subscription",{enumerable:!0,get:function(){return s.Subscription}});var t=c(47457);Object.defineProperty(b,"Subscriber",{enumerable:!0,get:function(){return t.Subscriber}});var u=c(7180);Object.defineProperty(b,"Notification",{enumerable:!0,get:function(){return u.Notification}}),Object.defineProperty(b,"NotificationKind",{enumerable:!0,get:function(){return u.NotificationKind}});var v=c(28610);Object.defineProperty(b,"pipe",{enumerable:!0,get:function(){return v.pipe}});var w=c(74086);Object.defineProperty(b,"noop",{enumerable:!0,get:function(){return w.noop}});var x=c(70332);Object.defineProperty(b,"identity",{enumerable:!0,get:function(){return x.identity}});var y=c(46791);Object.defineProperty(b,"isObservable",{enumerable:!0,get:function(){return y.isObservable}});var z=c(90406);Object.defineProperty(b,"lastValueFrom",{enumerable:!0,get:function(){return z.lastValueFrom}});var A=c(99536);Object.defineProperty(b,"firstValueFrom",{enumerable:!0,get:function(){return A.firstValueFrom}});var B=c(45826);Object.defineProperty(b,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return B.ArgumentOutOfRangeError}});var C=c(4871);Object.defineProperty(b,"EmptyError",{enumerable:!0,get:function(){return C.EmptyError}});var D=c(6399);Object.defineProperty(b,"NotFoundError",{enumerable:!0,get:function(){return D.NotFoundError}});var E=c(85582);Object.defineProperty(b,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return E.ObjectUnsubscribedError}});var F=c(2637);Object.defineProperty(b,"SequenceError",{enumerable:!0,get:function(){return F.SequenceError}});var G=c(11410);Object.defineProperty(b,"TimeoutError",{enumerable:!0,get:function(){return G.TimeoutError}});var H=c(46496);Object.defineProperty(b,"UnsubscriptionError",{enumerable:!0,get:function(){return H.UnsubscriptionError}});var I=c(61253);Object.defineProperty(b,"bindCallback",{enumerable:!0,get:function(){return I.bindCallback}});var J=c(8493);Object.defineProperty(b,"bindNodeCallback",{enumerable:!0,get:function(){return J.bindNodeCallback}});var K=c(81887);Object.defineProperty(b,"combineLatest",{enumerable:!0,get:function(){return K.combineLatest}});var L=c(37965);Object.defineProperty(b,"concat",{enumerable:!0,get:function(){return L.concat}});var M=c(78987);Object.defineProperty(b,"connectable",{enumerable:!0,get:function(){return M.connectable}});var N=c(84493);Object.defineProperty(b,"defer",{enumerable:!0,get:function(){return N.defer}});var O=c(15980);Object.defineProperty(b,"empty",{enumerable:!0,get:function(){return O.empty}});var P=c(27341);Object.defineProperty(b,"forkJoin",{enumerable:!0,get:function(){return P.forkJoin}});var Q=c(77889);Object.defineProperty(b,"from",{enumerable:!0,get:function(){return Q.from}});var R=c(43677);Object.defineProperty(b,"fromEvent",{enumerable:!0,get:function(){return R.fromEvent}});var S=c(71931);Object.defineProperty(b,"fromEventPattern",{enumerable:!0,get:function(){return S.fromEventPattern}});var T=c(47154);Object.defineProperty(b,"generate",{enumerable:!0,get:function(){return T.generate}});var U=c(5021);Object.defineProperty(b,"iif",{enumerable:!0,get:function(){return U.iif}});var V=c(580);Object.defineProperty(b,"interval",{enumerable:!0,get:function(){return V.interval}});var W=c(33157);Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return W.merge}});var X=c(66879);Object.defineProperty(b,"never",{enumerable:!0,get:function(){return X.never}});var Y=c(18776);Object.defineProperty(b,"of",{enumerable:!0,get:function(){return Y.of}});var Z=c(48854);Object.defineProperty(b,"onErrorResumeNext",{enumerable:!0,get:function(){return Z.onErrorResumeNext}});var $=c(97488);Object.defineProperty(b,"pairs",{enumerable:!0,get:function(){return $.pairs}});var _=c(34683);Object.defineProperty(b,"partition",{enumerable:!0,get:function(){return _.partition}});var aa=c(60156);Object.defineProperty(b,"race",{enumerable:!0,get:function(){return aa.race}});var ab=c(18548);Object.defineProperty(b,"range",{enumerable:!0,get:function(){return ab.range}});var ac=c(44767);Object.defineProperty(b,"throwError",{enumerable:!0,get:function(){return ac.throwError}});var ad=c(10360);Object.defineProperty(b,"timer",{enumerable:!0,get:function(){return ad.timer}});var ae=c(32433);Object.defineProperty(b,"using",{enumerable:!0,get:function(){return ae.using}});var af=c(43662);Object.defineProperty(b,"zip",{enumerable:!0,get:function(){return af.zip}});var ag=c(1780);Object.defineProperty(b,"scheduled",{enumerable:!0,get:function(){return ag.scheduled}});var ah=c(15980);Object.defineProperty(b,"EMPTY",{enumerable:!0,get:function(){return ah.EMPTY}});var ai=c(66879);Object.defineProperty(b,"NEVER",{enumerable:!0,get:function(){return ai.NEVER}});var aj=c(83702);for(var ak in aj)"default"===ak||Object.prototype.hasOwnProperty.call(b,ak)||d(b,aj,ak);var al=c(52129);Object.defineProperty(b,"config",{enumerable:!0,get:function(){return al.config}});var am=c(73474);Object.defineProperty(b,"audit",{enumerable:!0,get:function(){return am.audit}});var an=c(74063);Object.defineProperty(b,"auditTime",{enumerable:!0,get:function(){return an.auditTime}});var ao=c(64503);Object.defineProperty(b,"buffer",{enumerable:!0,get:function(){return ao.buffer}});var ap=c(93704);Object.defineProperty(b,"bufferCount",{enumerable:!0,get:function(){return ap.bufferCount}});var aq=c(91162);Object.defineProperty(b,"bufferTime",{enumerable:!0,get:function(){return aq.bufferTime}});var ar=c(27155);Object.defineProperty(b,"bufferToggle",{enumerable:!0,get:function(){return ar.bufferToggle}});var as=c(64031);Object.defineProperty(b,"bufferWhen",{enumerable:!0,get:function(){return as.bufferWhen}});var at=c(56862);Object.defineProperty(b,"catchError",{enumerable:!0,get:function(){return at.catchError}});var au=c(73789);Object.defineProperty(b,"combineAll",{enumerable:!0,get:function(){return au.combineAll}});var av=c(74588);Object.defineProperty(b,"combineLatestAll",{enumerable:!0,get:function(){return av.combineLatestAll}});var aw=c(64079);Object.defineProperty(b,"combineLatestWith",{enumerable:!0,get:function(){return aw.combineLatestWith}});var ax=c(56030);Object.defineProperty(b,"concatAll",{enumerable:!0,get:function(){return ax.concatAll}});var ay=c(92575);Object.defineProperty(b,"concatMap",{enumerable:!0,get:function(){return ay.concatMap}});var az=c(79778);Object.defineProperty(b,"concatMapTo",{enumerable:!0,get:function(){return az.concatMapTo}});var aA=c(40289);Object.defineProperty(b,"concatWith",{enumerable:!0,get:function(){return aA.concatWith}});var aB=c(53659);Object.defineProperty(b,"connect",{enumerable:!0,get:function(){return aB.connect}});var aC=c(98118);Object.defineProperty(b,"count",{enumerable:!0,get:function(){return aC.count}});var aD=c(50674);Object.defineProperty(b,"debounce",{enumerable:!0,get:function(){return aD.debounce}});var aE=c(31295);Object.defineProperty(b,"debounceTime",{enumerable:!0,get:function(){return aE.debounceTime}});var aF=c(20018);Object.defineProperty(b,"defaultIfEmpty",{enumerable:!0,get:function(){return aF.defaultIfEmpty}});var aG=c(36570);Object.defineProperty(b,"delay",{enumerable:!0,get:function(){return aG.delay}});var aH=c(56214);Object.defineProperty(b,"delayWhen",{enumerable:!0,get:function(){return aH.delayWhen}});var aI=c(45597);Object.defineProperty(b,"dematerialize",{enumerable:!0,get:function(){return aI.dematerialize}});var aJ=c(9177);Object.defineProperty(b,"distinct",{enumerable:!0,get:function(){return aJ.distinct}});var aK=c(28853);Object.defineProperty(b,"distinctUntilChanged",{enumerable:!0,get:function(){return aK.distinctUntilChanged}});var aL=c(43048);Object.defineProperty(b,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return aL.distinctUntilKeyChanged}});var aM=c(56724);Object.defineProperty(b,"elementAt",{enumerable:!0,get:function(){return aM.elementAt}});var aN=c(89540);Object.defineProperty(b,"endWith",{enumerable:!0,get:function(){return aN.endWith}});var aO=c(57798);Object.defineProperty(b,"every",{enumerable:!0,get:function(){return aO.every}});var aP=c(83303);Object.defineProperty(b,"exhaust",{enumerable:!0,get:function(){return aP.exhaust}});var aQ=c(85692);Object.defineProperty(b,"exhaustAll",{enumerable:!0,get:function(){return aQ.exhaustAll}});var aR=c(17997);Object.defineProperty(b,"exhaustMap",{enumerable:!0,get:function(){return aR.exhaustMap}});var aS=c(30313);Object.defineProperty(b,"expand",{enumerable:!0,get:function(){return aS.expand}});var aT=c(97991);Object.defineProperty(b,"filter",{enumerable:!0,get:function(){return aT.filter}});var aU=c(60627);Object.defineProperty(b,"finalize",{enumerable:!0,get:function(){return aU.finalize}});var aV=c(17506);Object.defineProperty(b,"find",{enumerable:!0,get:function(){return aV.find}});var aW=c(59632);Object.defineProperty(b,"findIndex",{enumerable:!0,get:function(){return aW.findIndex}});var aX=c(95499);Object.defineProperty(b,"first",{enumerable:!0,get:function(){return aX.first}});var aY=c(25119);Object.defineProperty(b,"groupBy",{enumerable:!0,get:function(){return aY.groupBy}});var aZ=c(95338);Object.defineProperty(b,"ignoreElements",{enumerable:!0,get:function(){return aZ.ignoreElements}});var a$=c(90376);Object.defineProperty(b,"isEmpty",{enumerable:!0,get:function(){return a$.isEmpty}});var a_=c(23073);Object.defineProperty(b,"last",{enumerable:!0,get:function(){return a_.last}});var a0=c(53767);Object.defineProperty(b,"map",{enumerable:!0,get:function(){return a0.map}});var a1=c(570);Object.defineProperty(b,"mapTo",{enumerable:!0,get:function(){return a1.mapTo}});var a2=c(892);Object.defineProperty(b,"materialize",{enumerable:!0,get:function(){return a2.materialize}});var a3=c(65263);Object.defineProperty(b,"max",{enumerable:!0,get:function(){return a3.max}});var a4=c(79526);Object.defineProperty(b,"mergeAll",{enumerable:!0,get:function(){return a4.mergeAll}});var a5=c(89614);Object.defineProperty(b,"flatMap",{enumerable:!0,get:function(){return a5.flatMap}});var a6=c(19735);Object.defineProperty(b,"mergeMap",{enumerable:!0,get:function(){return a6.mergeMap}});var a7=c(39914);Object.defineProperty(b,"mergeMapTo",{enumerable:!0,get:function(){return a7.mergeMapTo}});var a8=c(15612);Object.defineProperty(b,"mergeScan",{enumerable:!0,get:function(){return a8.mergeScan}});var a9=c(71641);Object.defineProperty(b,"mergeWith",{enumerable:!0,get:function(){return a9.mergeWith}});var ba=c(29945);Object.defineProperty(b,"min",{enumerable:!0,get:function(){return ba.min}});var bb=c(8439);Object.defineProperty(b,"multicast",{enumerable:!0,get:function(){return bb.multicast}});var bc=c(20396);Object.defineProperty(b,"observeOn",{enumerable:!0,get:function(){return bc.observeOn}});var bd=c(94962);Object.defineProperty(b,"onErrorResumeNextWith",{enumerable:!0,get:function(){return bd.onErrorResumeNextWith}});var be=c(50221);Object.defineProperty(b,"pairwise",{enumerable:!0,get:function(){return be.pairwise}});var bf=c(53692);Object.defineProperty(b,"pluck",{enumerable:!0,get:function(){return bf.pluck}});var bg=c(71174);Object.defineProperty(b,"publish",{enumerable:!0,get:function(){return bg.publish}});var bh=c(14576);Object.defineProperty(b,"publishBehavior",{enumerable:!0,get:function(){return bh.publishBehavior}});var bi=c(83002);Object.defineProperty(b,"publishLast",{enumerable:!0,get:function(){return bi.publishLast}});var bj=c(27145);Object.defineProperty(b,"publishReplay",{enumerable:!0,get:function(){return bj.publishReplay}});var bk=c(64412);Object.defineProperty(b,"raceWith",{enumerable:!0,get:function(){return bk.raceWith}});var bl=c(90483);Object.defineProperty(b,"reduce",{enumerable:!0,get:function(){return bl.reduce}});var bm=c(99194);Object.defineProperty(b,"repeat",{enumerable:!0,get:function(){return bm.repeat}});var bn=c(16310);Object.defineProperty(b,"repeatWhen",{enumerable:!0,get:function(){return bn.repeatWhen}});var bo=c(42979);Object.defineProperty(b,"retry",{enumerable:!0,get:function(){return bo.retry}});var bp=c(18947);Object.defineProperty(b,"retryWhen",{enumerable:!0,get:function(){return bp.retryWhen}});var bq=c(63397);Object.defineProperty(b,"refCount",{enumerable:!0,get:function(){return bq.refCount}});var br=c(27739);Object.defineProperty(b,"sample",{enumerable:!0,get:function(){return br.sample}});var bs=c(78310);Object.defineProperty(b,"sampleTime",{enumerable:!0,get:function(){return bs.sampleTime}});var bt=c(84876);Object.defineProperty(b,"scan",{enumerable:!0,get:function(){return bt.scan}});var bu=c(36270);Object.defineProperty(b,"sequenceEqual",{enumerable:!0,get:function(){return bu.sequenceEqual}});var bv=c(76590);Object.defineProperty(b,"share",{enumerable:!0,get:function(){return bv.share}});var bw=c(95953);Object.defineProperty(b,"shareReplay",{enumerable:!0,get:function(){return bw.shareReplay}});var bx=c(20053);Object.defineProperty(b,"single",{enumerable:!0,get:function(){return bx.single}});var by=c(26750);Object.defineProperty(b,"skip",{enumerable:!0,get:function(){return by.skip}});var bz=c(64354);Object.defineProperty(b,"skipLast",{enumerable:!0,get:function(){return bz.skipLast}});var bA=c(11456);Object.defineProperty(b,"skipUntil",{enumerable:!0,get:function(){return bA.skipUntil}});var bB=c(83229);Object.defineProperty(b,"skipWhile",{enumerable:!0,get:function(){return bB.skipWhile}});var bC=c(52553);Object.defineProperty(b,"startWith",{enumerable:!0,get:function(){return bC.startWith}});var bD=c(6556);Object.defineProperty(b,"subscribeOn",{enumerable:!0,get:function(){return bD.subscribeOn}});var bE=c(49310);Object.defineProperty(b,"switchAll",{enumerable:!0,get:function(){return bE.switchAll}});var bF=c(85855);Object.defineProperty(b,"switchMap",{enumerable:!0,get:function(){return bF.switchMap}});var bG=c(72354);Object.defineProperty(b,"switchMapTo",{enumerable:!0,get:function(){return bG.switchMapTo}});var bH=c(69716);Object.defineProperty(b,"switchScan",{enumerable:!0,get:function(){return bH.switchScan}});var bI=c(25070);Object.defineProperty(b,"take",{enumerable:!0,get:function(){return bI.take}});var bJ=c(83698);Object.defineProperty(b,"takeLast",{enumerable:!0,get:function(){return bJ.takeLast}});var bK=c(12752);Object.defineProperty(b,"takeUntil",{enumerable:!0,get:function(){return bK.takeUntil}});var bL=c(96301);Object.defineProperty(b,"takeWhile",{enumerable:!0,get:function(){return bL.takeWhile}});var bM=c(35400);Object.defineProperty(b,"tap",{enumerable:!0,get:function(){return bM.tap}});var bN=c(90945);Object.defineProperty(b,"throttle",{enumerable:!0,get:function(){return bN.throttle}});var bO=c(97252);Object.defineProperty(b,"throttleTime",{enumerable:!0,get:function(){return bO.throttleTime}});var bP=c(49185);Object.defineProperty(b,"throwIfEmpty",{enumerable:!0,get:function(){return bP.throwIfEmpty}});var bQ=c(79749);Object.defineProperty(b,"timeInterval",{enumerable:!0,get:function(){return bQ.timeInterval}});var bR=c(11410);Object.defineProperty(b,"timeout",{enumerable:!0,get:function(){return bR.timeout}});var bS=c(89014);Object.defineProperty(b,"timeoutWith",{enumerable:!0,get:function(){return bS.timeoutWith}});var bT=c(54261);Object.defineProperty(b,"timestamp",{enumerable:!0,get:function(){return bT.timestamp}});var bU=c(86903);Object.defineProperty(b,"toArray",{enumerable:!0,get:function(){return bU.toArray}});var bV=c(11633);Object.defineProperty(b,"window",{enumerable:!0,get:function(){return bV.window}});var bW=c(12210);Object.defineProperty(b,"windowCount",{enumerable:!0,get:function(){return bW.windowCount}});var bX=c(72628);Object.defineProperty(b,"windowTime",{enumerable:!0,get:function(){return bX.windowTime}});var bY=c(51353);Object.defineProperty(b,"windowToggle",{enumerable:!0,get:function(){return bY.windowToggle}});var bZ=c(6889);Object.defineProperty(b,"windowWhen",{enumerable:!0,get:function(){return bZ.windowWhen}});var b$=c(6754);Object.defineProperty(b,"withLatestFrom",{enumerable:!0,get:function(){return b$.withLatestFrom}});var b_=c(85947);Object.defineProperty(b,"zipAll",{enumerable:!0,get:function(){return b_.zipAll}});var b0=c(78474);Object.defineProperty(b,"zipWith",{enumerable:!0,get:function(){return b0.zipWith}})},26750:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.skip=void 0;var d=c(97991);b.skip=function(a){return d.filter(function(b,c){return a<=c})}},27038:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(59435));b.default=d({},f.default)},27145:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.publishReplay=void 0;var d=c(85770),e=c(8439),f=c(14434);b.publishReplay=function(a,b,c,g){c&&!f.isFunction(c)&&(g=c);var h=f.isFunction(c)?c:void 0;return function(c){return e.multicast(new d.ReplaySubject(a,b,g),h)(c)}}},27155:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.bufferToggle=void 0;var e=c(74038),f=c(58555),g=c(80241),h=c(383),i=c(74086),j=c(60543);b.bufferToggle=function(a,b){return f.operate(function(c,f){var k=[];g.innerFrom(a).subscribe(h.createOperatorSubscriber(f,function(a){var c=[];k.push(c);var d=new e.Subscription;d.add(g.innerFrom(b(a)).subscribe(h.createOperatorSubscriber(f,function(){j.arrRemove(k,c),f.next(c),d.unsubscribe()},i.noop)))},i.noop)),c.subscribe(h.createOperatorSubscriber(f,function(a){var b,c;try{for(var e=d(k),f=e.next();!f.done;f=e.next())f.value.push(a)}catch(a){b={error:a}}finally{try{f&&!f.done&&(c=e.return)&&c.call(e)}finally{if(b)throw b.error}}},function(){for(;k.length>0;)f.next(k.shift());f.complete()}))})}},27341:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.forkJoin=void 0;var d=c(44230),e=c(49364),f=c(80241),g=c(53851),h=c(383),i=c(88099),j=c(83681);b.forkJoin=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=g.popResultSelector(a),k=e.argsArgArrayOrObject(a),l=k.args,m=k.keys,n=new d.Observable(function(a){var b=l.length;if(!b)return void a.complete();for(var c=Array(b),d=b,e=b,g=function(b){var g=!1;f.innerFrom(l[b]).subscribe(h.createOperatorSubscriber(a,function(a){!g&&(g=!0,e--),c[b]=a},function(){return d--},void 0,function(){d&&g||(e||a.next(m?j.createObject(m,c):c),a.complete())}))},i=0;i<b;i++)g(i)});return c?n.pipe(i.mapOneOrManyArgs(c)):n}},27613:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.notificationFilterDisabledClassification=b.notificationFilterDisabledCategory=b.notificationFilterMinimumSeverityLevel=void 0;var c={OFF:"OFF",WARNING:"WARNING",INFORMATION:"INFORMATION"};b.notificationFilterMinimumSeverityLevel=c,Object.freeze(c);var d={HINT:"HINT",UNRECOGNIZED:"UNRECOGNIZED",UNSUPPORTED:"UNSUPPORTED",PERFORMANCE:"PERFORMANCE",TOPOLOGY:"TOPOLOGY",SECURITY:"SECURITY",DEPRECATION:"DEPRECATION",GENERIC:"GENERIC",SCHEMA:"SCHEMA"};b.notificationFilterDisabledCategory=d,Object.freeze(d),b.notificationFilterDisabledClassification=d,b.default=function(){throw this.minimumSeverityLevel=void 0,this.disabledCategories=void 0,this.disabledClassifications=void 0,Error("Not implemented")}},27650:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},g=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0}),b.EMPTY_CONNECTION_HOLDER=b.ReadOnlyConnectionHolder=b.ConnectionHolder=void 0;var h=c(54507),i=c(49619),j=c(81334),k=c(8506),l=c(39355),m=function(){function a(a){var b=a.mode,c=a.database,d=void 0===c?"":c,e=a.bookmarks,f=a.connectionProvider,g=a.impersonatedUser,h=a.onDatabaseNameResolved,l=a.getConnectionAcquistionBookmarks,m=a.auth,n=a.log;this._mode=null!=b?b:j.ACCESS_MODE_WRITE,this._closed=!1,this._database=null!=d?(0,i.assertString)(d,"database"):"",this._bookmarks=null!=e?e:k.Bookmarks.empty(),this._connectionProvider=f,this._impersonatedUser=g,this._referenceCount=0,this._connectionPromise=Promise.resolve(null),this._onDatabaseNameResolved=h,this._auth=m,this._log=n,this._logError=this._logError.bind(this),this._getConnectionAcquistionBookmarks=null!=l?l:function(){return Promise.resolve(k.Bookmarks.empty())}}return a.prototype.mode=function(){return this._mode},a.prototype.database=function(){return this._database},a.prototype.setDatabase=function(a){this._database=a},a.prototype.bookmarks=function(){return this._bookmarks},a.prototype.connectionProvider=function(){return this._connectionProvider},a.prototype.referenceCount=function(){return this._referenceCount},a.prototype.initializeConnection=function(a){return 0!==this._referenceCount||null==this._connectionProvider?(this._referenceCount++,!1):(this._connectionPromise=this._createConnectionPromise(this._connectionProvider,a),this._referenceCount++,!0)},a.prototype._createConnectionPromise=function(a,b){return f(this,void 0,void 0,function(){var c,d,e;return g(this,function(f){switch(f.label){case 0:return d=(c=a).acquireConnection,e={accessMode:this._mode,database:this._database},[4,this._getBookmarks()];case 1:return[4,d.apply(c,[(e.bookmarks=f.sent(),e.impersonatedUser=this._impersonatedUser,e.onDatabaseNameResolved=this._onDatabaseNameResolved,e.auth=this._auth,e.homeDb=b,e)])];case 2:return[2,f.sent()]}})})},a.prototype._getBookmarks=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._getConnectionAcquistionBookmarks()];case 1:return[2,a.sent()]}})})},a.prototype.getConnection=function(){return this._connectionPromise},a.prototype.releaseConnection=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount--,0===this._referenceCount)?this._releaseConnection():this._connectionPromise},a.prototype.close=function(a){return(this._closed=!0,0===this._referenceCount)?this._connectionPromise:(this._referenceCount=0,this._releaseConnection(a))},a.prototype.log=function(){return this._log},a.prototype._releaseConnection=function(a){return this._connectionPromise=this._connectionPromise.then(function(b){return null==b?Promise.resolve(null):b.isOpen()&&(b.hasOngoingObservableRequests()||!0===a)?b.resetAndFlush().catch(o).then(function(){return b.release().then(function(){return null})}):b.release().then(function(){return null})}).catch(this._logError),this._connectionPromise},a.prototype._logError=function(a){return this._log.isWarnEnabled()&&this._log.warn("ConnectionHolder got an error while releasing the connection. Error ".concat(a,". Stacktrace: ").concat(a.stack)),null},a}();b.ConnectionHolder=m;var n=function(a){function b(b){var c=a.call(this,{mode:b.mode(),database:b.database(),bookmarks:b.bookmarks(),getConnectionAcquistionBookmarks:b._getConnectionAcquistionBookmarks,connectionProvider:b.connectionProvider(),log:b.log()})||this;return c._connectionHolder=b,c}return e(b,a),b.prototype.initializeConnection=function(){return 0!==this._connectionHolder.referenceCount()},b.prototype.getConnection=function(){return this._connectionHolder.getConnection()},b.prototype.releaseConnection=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve(null)})},b.prototype.close=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve(null)})},b}(m);function o(a){return null}b.ReadOnlyConnectionHolder=n,b.default=n,b.EMPTY_CONNECTION_HOLDER=new(function(a){function b(){return a.call(this,{log:l.Logger.create({})})||this}return e(b,a),b.prototype.mode=function(){},b.prototype.database=function(){},b.prototype.initializeConnection=function(){return!0},b.prototype.getConnection=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,Promise.reject((0,h.newError)("This connection holder does not serve connections"))];case 1:return[2,a.sent()]}})})},b.prototype.releaseConnection=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,Promise.resolve(null)];case 1:return[2,a.sent()]}})})},b.prototype.close=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,Promise.resolve(null)];case 1:return[2,a.sent()]}})})},b}(m))},27739:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.sample=void 0;var d=c(80241),e=c(58555),f=c(74086),g=c(383);b.sample=function(a){return e.operate(function(b,c){var e=!1,h=null;b.subscribe(g.createOperatorSubscriber(c,function(a){e=!0,h=a})),d.innerFrom(a).subscribe(g.createOperatorSubscriber(c,function(){if(e){e=!1;var a=h;h=null,c.next(a)}},f.noop))})}},27801:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.Dechunker=b.Chunker=void 0;var g=f(c(33969)),h=c(21391),i=f(c(36061));b.Chunker=function(a){function b(b,c){var d=a.call(this,0)||this;return d._bufferSize=c||1400,d._ch=b,d._buffer=(0,h.alloc)(d._bufferSize),d._currentChunkStart=0,d._chunkOpen=!1,d}return e(b,a),b.prototype.putUInt8=function(a,b){this._ensure(1),this._buffer.writeUInt8(b)},b.prototype.putInt8=function(a,b){this._ensure(1),this._buffer.writeInt8(b)},b.prototype.putFloat64=function(a,b){this._ensure(8),this._buffer.writeFloat64(b)},b.prototype.putBytes=function(a,b){for(;b.remaining()>0;)this._ensure(1),this._buffer.remaining()>b.remaining()?this._buffer.writeBytes(b):this._buffer.writeBytes(b.readSlice(this._buffer.remaining()));return this},b.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var a=this._buffer;this._buffer=null,this._ch.write(a.getSlice(0,a.position)),this._buffer=(0,h.alloc)(this._bufferSize),this._chunkOpen=!1}return this},b.prototype.messageBoundary=function(){this._closeChunkIfOpen(),2>this._buffer.remaining()&&this.flush(),this._buffer.writeInt16(0)},b.prototype._ensure=function(a){var b=this._chunkOpen?a:a+2;this._buffer.remaining()<b&&this.flush(),this._chunkOpen||(this._currentChunkStart=this._buffer.position,this._buffer.position=this._buffer.position+2,this._chunkOpen=!0)},b.prototype._closeChunkIfOpen=function(){if(this._chunkOpen){var a=this._buffer.position-(this._currentChunkStart+2);this._buffer.putUInt16(this._currentChunkStart,a),this._chunkOpen=!1}},b}(g.default),b.Dechunker=function(){function a(){this._currentMessage=[],this._partialChunkHeader=0,this._state=this.AWAITING_CHUNK}return a.prototype.AWAITING_CHUNK=function(a){return a.remaining()>=2?this._onHeader(a.readUInt16()):(this._partialChunkHeader=a.readUInt8()<<8,this.IN_HEADER)},a.prototype.IN_HEADER=function(a){return this._onHeader((this._partialChunkHeader|a.readUInt8())&65535)},a.prototype.IN_CHUNK=function(a){return this._chunkSize<=a.remaining()?(this._currentMessage.push(a.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=a.remaining(),this._currentMessage.push(a.readSlice(a.remaining())),this.IN_CHUNK)},a.prototype.CLOSED=function(a){},a.prototype._onHeader=function(a){if(0!==a)return this._chunkSize=a,this.IN_CHUNK;var b=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:b=this._currentMessage[0];break;default:b=new i.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(b),this.AWAITING_CHUNK},a.prototype.write=function(a){for(;a.hasRemaining();)this._state=this._state(a)},a}()},28610:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.pipeFromArray=b.pipe=void 0;var d=c(70332);function e(a){return 0===a.length?d.identity:1===a.length?a[0]:function(b){return a.reduce(function(a,b){return b(a)},b)}}b.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return e(a)},b.pipeFromArray=e},28853:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.distinctUntilChanged=void 0;var d=c(70332),e=c(58555),f=c(383);function g(a,b){return a===b}b.distinctUntilChanged=function(a,b){return void 0===b&&(b=d.identity),a=null!=a?a:g,e.operate(function(c,d){var e,g=!0;c.subscribe(f.createOperatorSubscriber(d,function(c){var f=b(c);(g||!a(e,f))&&(g=!1,e=f,d.next(c))}))})}},28881:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SIGNATURES=void 0;var d=c(81773),e=d.internal.constants,f=e.ACCESS_MODE_READ,g=e.FETCH_ALL,h=d.internal.util.assertString;b.SIGNATURES=Object.freeze({INIT:1,RESET:15,RUN:16,PULL_ALL:63,HELLO:1,GOODBYE:2,BEGIN:17,COMMIT:18,ROLLBACK:19,TELEMETRY:84,ROUTE:102,LOGON:106,LOGOFF:107,DISCARD:47,PULL:63});var i=function(){function a(a,b,c){this.signature=a,this.fields=b,this.toString=c}return a.init=function(b,c){return new a(1,[b,c],function(){return"INIT ".concat(b," {...}")})},a.run=function(b,c){return new a(16,[b,c],function(){return"RUN ".concat(b," ").concat(d.json.stringify(c))})},a.pullAll=function(){return n},a.reset=function(){return o},a.hello=function(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null);var f=Object.assign({user_agent:b},c);return d&&(f.routing=d),e&&(f.patch_bolt=e),new a(1,[f],function(){return"HELLO {user_agent: '".concat(b,"', ...}")})},a.hello5x1=function(b,c){void 0===c&&(c=null);var d={user_agent:b};return c&&(d.routing=c),new a(1,[d],function(){return"HELLO {user_agent: '".concat(b,"', ...}")})},a.hello5x2=function(b,c,e){void 0===c&&(c=null),void 0===e&&(e=null);var f={user_agent:b};return l(f,c),e&&(f.routing=e),new a(1,[f],function(){return"HELLO ".concat(d.json.stringify(f))})},a.hello5x3=function(b,c,e,f){void 0===e&&(e=null),void 0===f&&(f=null);var g={};return b&&(g.user_agent=b),c&&(g.bolt_agent={product:c.product,platform:c.platform,language:c.language,language_details:c.languageDetails}),l(g,e),f&&(g.routing=f),new a(1,[g],function(){return"HELLO ".concat(d.json.stringify(g))})},a.hello5x5=function(b,c,e,f){void 0===e&&(e=null),void 0===f&&(f=null);var g={};return b&&(g.user_agent=b),c&&(g.bolt_agent={product:c.product,platform:c.platform,language:c.language,language_details:c.languageDetails}),m(g,e),f&&(g.routing=f),new a(1,[g],function(){return"HELLO ".concat(d.json.stringify(g))})},a.logon=function(b){return new a(106,[b],function(){return"LOGON { ... }"})},a.logoff=function(){return new a(107,[],function(){return"LOGOFF"})},a.begin=function(b){var c=void 0===b?{}:b,e=j(c.bookmarks,c.txConfig,c.database,c.mode,c.impersonatedUser,c.notificationFilter);return new a(17,[e],function(){return"BEGIN ".concat(d.json.stringify(e))})},a.begin5x5=function(b){var c=void 0===b?{}:b,e=j(c.bookmarks,c.txConfig,c.database,c.mode,c.impersonatedUser,c.notificationFilter,{appendNotificationFilter:m});return new a(17,[e],function(){return"BEGIN ".concat(d.json.stringify(e))})},a.commit=function(){return p},a.rollback=function(){return q},a.runWithMetadata=function(b,c,e){var f=void 0===e?{}:e,g=j(f.bookmarks,f.txConfig,f.database,f.mode,f.impersonatedUser,f.notificationFilter);return new a(16,[b,c,g],function(){return"RUN ".concat(b," ").concat(d.json.stringify(c)," ").concat(d.json.stringify(g))})},a.runWithMetadata5x5=function(b,c,e){var f=void 0===e?{}:e,g=j(f.bookmarks,f.txConfig,f.database,f.mode,f.impersonatedUser,f.notificationFilter,{appendNotificationFilter:m});return new a(16,[b,c,g],function(){return"RUN ".concat(b," ").concat(d.json.stringify(c)," ").concat(d.json.stringify(g))})},a.goodbye=function(){return r},a.pull=function(b){var c=void 0===b?{}:b,e=c.stmtId,f=void 0===e?-1:e,h=c.n,i=k(null==f?-1:f,(void 0===h?g:h)||g);return new a(63,[i],function(){return"PULL ".concat(d.json.stringify(i))})},a.discard=function(b){var c=void 0===b?{}:b,e=c.stmtId,f=void 0===e?-1:e,h=c.n,i=k(null==f?-1:f,(void 0===h?g:h)||g);return new a(47,[i],function(){return"DISCARD ".concat(d.json.stringify(i))})},a.telemetry=function(b){var c=b.api,e=(0,d.int)(c);return new a(84,[e],function(){return"TELEMETRY ".concat(e.toString())})},a.route=function(b,c,e){return void 0===b&&(b={}),void 0===c&&(c=[]),void 0===e&&(e=null),new a(102,[b,c,e],function(){return"ROUTE ".concat(d.json.stringify(b)," ").concat(d.json.stringify(c)," ").concat(e)})},a.routeV4x4=function(b,c,e){void 0===b&&(b={}),void 0===c&&(c=[]),void 0===e&&(e={});var f={};return e.databaseName&&(f.db=e.databaseName),e.impersonatedUser&&(f.imp_user=e.impersonatedUser),new a(102,[b,c,f],function(){return"ROUTE ".concat(d.json.stringify(b)," ").concat(d.json.stringify(c)," ").concat(d.json.stringify(f))})},a}();function j(a,b,c,d,e,g,i){void 0===i&&(i={});var j,k={};return a.isEmpty()||(k.bookmarks=a.values()),null!==b.timeout&&(k.tx_timeout=b.timeout),b.metadata&&(k.tx_metadata=b.metadata),c&&(k.db=h(c,"database")),e&&(k.imp_user=h(e,"impersonatedUser")),d===f&&(k.mode="r"),(null!=(j=i.appendNotificationFilter)?j:l)(k,g),k}function k(a,b){var c={n:(0,d.int)(b)};return -1!==a&&(c.qid=(0,d.int)(a)),c}function l(a,b){b&&(b.minimumSeverityLevel&&(a.notifications_minimum_severity=b.minimumSeverityLevel),b.disabledCategories&&(a.notifications_disabled_categories=b.disabledCategories),b.disabledClassifications&&(a.notifications_disabled_categories=b.disabledClassifications))}function m(a,b){b&&(b.minimumSeverityLevel&&(a.notifications_minimum_severity=b.minimumSeverityLevel),b.disabledCategories&&(a.notifications_disabled_classifications=b.disabledCategories),b.disabledClassifications&&(a.notifications_disabled_classifications=b.disabledClassifications))}b.default=i;var n=new i(63,[],function(){return"PULL_ALL"}),o=new i(15,[],function(){return"RESET"}),p=new i(18,[],function(){return"COMMIT"}),q=new i(19,[],function(){return"ROLLBACK"}),r=new i(2,[],function(){return"GOODBYE"})},29132:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a){var b=void 0===a?{}:a,c=b.version,d=b.chunker,y=b.dechunker,z=b.channel,A=b.disableLosslessIntegers,B=b.useBigInt,C=b.serversideRouting,D=b.server,E=b.log,F=b.observer;return function(a,b,c,d,x,y,z,A){if(!(a instanceof e.ProtocolVersion)||null==a)throw(0,e.newError)("Unknown Bolt protocol version: "+a);switch(!0){case a.isEqualTo({major:1,minor:0}):return new f.default(b,c,d,y,A,z);case a.isEqualTo({major:2,minor:0}):return new g.default(b,c,d,y,A,z);case a.isEqualTo({major:3,minor:0}):return new h.default(b,c,d,y,A,z);case a.isEqualTo({major:4,minor:0}):return new i.default(b,c,d,y,A,z);case a.isEqualTo({major:4,minor:1}):return new j.default(b,c,d,y,A,z,x);case a.isEqualTo({major:4,minor:2}):return new k.default(b,c,d,y,A,z,x);case a.isEqualTo({major:4,minor:3}):return new l.default(b,c,d,y,A,z,x);case a.isEqualTo({major:4,minor:4}):return new m.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:0}):return new n.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:1}):return new o.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:2}):return new p.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:3}):return new q.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:4}):return new r.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:5}):return new s.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:6}):return new t.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:7}):return new u.default(b,c,d,y,A,z,x);case a.isEqualTo({major:5,minor:8}):return new v.default(b,c,d,y,A,z,x);case a.isEqualTo({major:6,minor:0}):return new w.default(b,c,d,y,A,z,x);default:throw(0,e.newError)("Unknown Bolt protocol version: "+a)}}(c,D,d,{disableLosslessIntegers:A,useBigInt:B},C,function(a){var b=new x.default({transformMetadata:a.transformMetadata.bind(a),enrichErrorMetadata:a.enrichErrorMetadata.bind(a),log:E,observer:F});return z.onerror=F.onError.bind(F),z.onmessage=function(a){return y.write(a)},y.onmessage=function(c){try{b.handleResponse(a.unpack(c))}catch(a){return F.onError(a)}},b},F.onProtocolError.bind(F),E)};var e=c(81773),f=d(c(62428)),g=d(c(88829)),h=d(c(49930)),i=d(c(45483)),j=d(c(53552)),k=d(c(76705)),l=d(c(2910)),m=d(c(37775)),n=d(c(6424)),o=d(c(64691)),p=d(c(44134)),q=d(c(29161)),r=d(c(65964)),s=d(c(88247)),t=d(c(1338)),u=d(c(49677)),v=d(c(64768)),w=d(c(3073));c(22696);var x=d(c(91858))},29161:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(44134)),i=g(c(80128)),j=g(c(90797)),k=g(c(28881)),l=c(95590),m=c(81773).internal.constants.BOLT_PROTOCOL_V5_3;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=c.boltAgent,g=c.authToken,h=c.notificationFilter,i=c.onError,j=c.onComplete,m={},n=new l.LoginObserver({onError:function(a){return b._onLoginError(a,i)},onCompleted:function(a){return m.metadata=a,b._onLoginCompleted(a)}});return this.write(k.default.hello5x3(d,e,h,this._serversideRouting),n,!1),this.logon({authToken:g,onComplete:function(a){return j(f(f({},a),m.metadata))},onError:i,flush:!0})},b}(h.default)},29638:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.cacheKey=function(a,b){var c;return null!=b?"basic:"+b:void 0===a?"DEFAULT":"basic"===a.scheme?"basic:"+(null!=(c=a.principal)?c:""):"kerberos"===a.scheme?"kerberos:"+a.credentials:"bearer"===a.scheme?"bearer:"+a.credentials:"none"===a.scheme?"none":(0,d.stringify)(a,{sortedElements:!0})};var d=c(37459)},29765:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.fromVersion=function(a,b){void 0===b&&(b=function(){return{hostArch:process.config.variables.host_arch,nodeVersion:process.versions.node,v8Version:process.versions.v8,get platform(){return(0,d.platform)()},get release(){return(0,d.release)()}}});var c=b(),e=c.hostArch,f="Node/"+c.nodeVersion,g=c.v8Version,h="".concat(c.platform," ").concat(c.release);return{product:"neo4j-javascript/".concat(a),platform:"".concat(h,"; ").concat(e),languageDetails:"".concat(f," (v8 ").concat(g,")")}};var d=c(21820)},29939:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.reportUnhandledError=void 0;var d=c(52129),e=c(49363);b.reportUnhandledError=function(a){e.timeoutProvider.setTimeout(function(){var b=d.config.onUnhandledError;if(b)b(a);else throw a})}},29945:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.min=void 0;var d=c(90483),e=c(14434);b.min=function(a){return d.reduce(e.isFunction(a)?function(b,c){return 0>a(b,c)?b:c}:function(a,b){return a<b?a:b})}},30313:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.expand=void 0;var d=c(58555),e=c(44255);b.expand=function(a,b,c){return void 0===b&&(b=1/0),b=1>(b||0)?1/0:b,d.operate(function(d,f){return e.mergeInternals(d,f,a,b,void 0,!0,c)})}},30573:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.WRITE=b.READ=b.Driver=void 0;var g=c(81773),h=f(c(23610)),i=g.internal.constants.FETCH_ALL,j=g.driver.READ,k=g.driver.WRITE;b.READ=j,b.WRITE=k;var l=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b.prototype.rxSession=function(a){var b=void 0===a?{}:a,c=b.defaultAccessMode,d=void 0===c?k:c,e=b.bookmarks,f=b.database,g=b.fetchSize,j=b.impersonatedUser,l=b.bookmarkManager,m=b.notificationFilter,n=b.auth;return new h.default({session:this._newSession({defaultAccessMode:d,bookmarkOrBookmarks:e,database:void 0===f?"":f,impersonatedUser:j,auth:n,reactive:!1,fetchSize:function(a,b){var c=parseInt(a,10);if(c>0||c===i)return c;if(0!==c&&!(c<0))return b;throw Error("The fetch size can only be a positive value or ".concat(i," for ALL. However fetchSize = ").concat(c))}(g,this._config.fetchSize),bookmarkManager:l,notificationFilter:m,log:this._log}),config:this._config,log:this._log})},b}(g.Driver);b.Driver=l,b.default=l},30863:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(81773),e=c(26337),f=c(77347);d.internal.logger.Logger;var g=d.error.SERVICE_UNAVAILABLE;function h(a,b){return a||0===a?a:b}b.default=function(){function a(a){var b=void 0===a?{}:a,c=b.maxRetryTimeout,d=b.initialDelay,e=b.delayMultiplier,f=b.delayJitter,g=b.logger;this._maxRetryTimeout=h(void 0===c?3e4:c,3e4),this._initialDelay=h(void 0===d?1e3:d,1e3),this._delayMultiplier=h(void 0===e?2:e,2),this._delayJitter=h(void 0===f?.2:f,.2),this._logger=void 0===g?null:g}return a.prototype.retry=function(a){var b=this;return a.pipe((0,f.retryWhen)(function(a){var c=[],h=Date.now(),i=1,j=b._initialDelay;return a.pipe((0,f.mergeMap)(function(a){if(!(0,d.isRetryableError)(a))return(0,e.throwError)(function(){return a});if(c.push(a),i>=2&&Date.now()-h>=b._maxRetryTimeout){var k=(0,d.newError)("Failed after retried for ".concat(i," times in ").concat(b._maxRetryTimeout," ms. Make sure that your database is online and retry again."),g);return k.seenErrors=c,(0,e.throwError)(function(){return k})}var l=b._computeNextDelay(j);return j*=b._delayMultiplier,i++,b._logger&&b._logger.warn("Transaction failed and will be retried in ".concat(l)),(0,e.of)(1).pipe((0,f.delay)(l))}))}))},a.prototype._computeNextDelay=function(a){var b=a*this._delayJitter;return a-b+2*b*Math.random()},a}()},31295:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.debounceTime=void 0;var d=c(84189),e=c(58555),f=c(383);b.debounceTime=function(a,b){return void 0===b&&(b=d.asyncScheduler),e.operate(function(c,d){var e=null,g=null,h=null,i=function(){if(e){e.unsubscribe(),e=null;var a=g;g=null,d.next(a)}};function j(){var c=h+a,f=b.now();if(f<c){e=this.schedule(void 0,c-f),d.add(e);return}i()}c.subscribe(f.createOperatorSubscriber(d,function(c){g=c,h=b.now(),e||(e=b.schedule(j,a),d.add(e))},function(){i(),d.complete()},void 0,function(){g=e=null}))})}},31880:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=this&&this.__assign||function(){return(g=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},h=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),i=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),j=this&&this.__importStar||(e=function(a){return(e=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=e(a),d=0;d<c.length;d++)"default"!==c[d]&&h(b,a,c[d]);return i(b,a),b}),k=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},l=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},m=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},o=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var p=c(81773),q=j(c(19526)),r=c(22696),s=o(c(84952)),t=o(c(507)),u=c(61863),v=c(32613),w=c(8049),x=p.error.SERVICE_UNAVAILABLE,y=p.error.SESSION_EXPIRED,z=p.internal.bookmarks.Bookmarks,A=p.internal.constants,B=A.ACCESS_MODE_READ,C=A.ACCESS_MODE_WRITE,D=A.BOLT_PROTOCOL_V3,E=A.BOLT_PROTOCOL_V4_0,F=A.BOLT_PROTOCOL_V4_4,G=A.BOLT_PROTOCOL_V5_1,H=(0,p.int)(3e4);b.default=function(a){function b(b){var c=b.id,d=b.address,e=b.routingContext,f=b.hostNameResolver,h=b.config,i=b.log,j=b.userAgent,m=b.boltAgent,n=b.authTokenManager,o=b.routingTablePurgeDelay,s=b.newPool,t=a.call(this,{id:c,config:h,log:i,userAgent:j,boltAgent:m,authTokenManager:n,newPool:s},function(a){return k(t,void 0,void 0,function(){var b,c;return l(this,function(d){switch(d.label){case 0:return b=v.createChannelConnection,c=[a,this._config,this._createConnectionErrorHandler(),this._log],[4,this._clientCertificateHolder.getClientCertificate()];case 1:return[2,b.apply(void 0,c.concat([d.sent(),this._routingContext,this._channelSsrCallback.bind(this)]))]}})})})||this;return t._routingContext=g(g({},e),{address:d.toString()}),t._seedRouter=d,t._rediscovery=new q.default(t._routingContext),t._loadBalancingStrategy=new u.LeastConnectedLoadBalancingStrategy(t._connectionPool),t._startTime=0,t._hostNameResolver=f,t._dnsResolver=new r.HostNameResolver,t._log=i,t._useSeedRouter=!0,t._routingTableRegistry=new I(o?(0,p.int)(o):H),t._refreshRoutingTable=w.functional.reuseOngoingRequest(t._refreshRoutingTable,t),t._withSSR=0,t._withoutSSR=0,t}return f(b,a),b.prototype._createConnectionErrorHandler=function(){return new v.ConnectionErrorHandler(y)},b.prototype._handleUnavailability=function(a,b,c){return this._log.warn("Routing driver ".concat(this._id," will forget ").concat(b," for database '").concat(c,"' because of an error ").concat(a.code," '").concat(a.message,"'")),this.forget(b,c||null),a},b.prototype._handleSecurityError=function(b,c,d,e){return this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(c," for database '").concat(e,"' because of an error ").concat(b.code," '").concat(b.message,"'")),a.prototype._handleSecurityError.call(this,b,c,d,e)},b.prototype._handleWriteFailure=function(a,b,c){return this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(b," for database '").concat(c,"' because of an error ").concat(a.code," '").concat(a.message,"'")),this.forgetWriter(b,c||null),(0,p.newError)("No longer possible to write to server at "+b,y,a)},b.prototype.acquireConnection=function(){return k(this,arguments,void 0,function(a){var b,c,d,e,f,g=this,h=void 0===a?{}:a,i=h.accessMode,j=h.database,k=h.bookmarks,m=h.impersonatedUser,n=h.onDatabaseNameResolved,o=h.auth,p=h.homeDb;return l(this,function(a){switch(a.label){case 0:if(b={database:j||null},c=new v.ConnectionErrorHandler(y,function(a,c){return g._handleUnavailability(a,c,b.database)},function(a,c){return g._handleWriteFailure(a,c,null!=p?p:b.database)},function(a,c,d){return g._handleSecurityError(a,c,d,b.database)}),this._startTime=new Date().getTime(),!(this.SSREnabled()&&void 0!==p&&""===j)||!((e=this._routingTableRegistry.get(p,function(){return new q.RoutingTable({database:p})}))&&!e.isStaleFor(i)))return[3,2];return[4,this._getConnectionFromRoutingTable(e,o,i,c)];case 1:if(d=a.sent(),this.SSREnabled())return[2,d];d.release(),a.label=2;case 2:return[4,this._freshRoutingTable({accessMode:i,database:b.database,bookmarks:k,impersonatedUser:m,auth:o,onDatabaseNameResolved:function(a){b.database=b.database||a,n&&n(a)}})];case 3:return f=a.sent(),[2,this._getConnectionFromRoutingTable(f,o,i,c)]}})})},b.prototype._getConnectionFromRoutingTable=function(a,b,c,d){return k(this,void 0,void 0,function(){var e,f,g,h;return l(this,function(i){switch(i.label){case 0:if(c===B)f=this._loadBalancingStrategy.selectReader(a.readers),e="read";else if(c===C)f=this._loadBalancingStrategy.selectWriter(a.writers),e="write";else throw(0,p.newError)("Illegal mode "+c);if(!f)throw(0,p.newError)("Failed to obtain connection towards ".concat(e," server. Known routing table is: ").concat(a),y);i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this._connectionPool.acquire({auth:b,startTime:this._startTime},f)];case 2:if(g=i.sent(),!b)return[3,4];return[4,this._verifyStickyConnection({auth:b,connection:g,address:f})];case 3:return i.sent(),[2,g];case 4:return[2,new v.DelegateConnection(g,d)];case 5:throw h=i.sent(),d.handleAndTransformError(h,f);case 6:return[2]}})})},b.prototype._hasProtocolVersion=function(a){return k(this,void 0,void 0,function(){var b,c,d,e,f;return l(this,function(g){switch(g.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:b=g.sent(),d=0,g.label=2;case 2:if(!(d<b.length))return[3,8];g.label=3;case 3:return g.trys.push([3,6,,7]),[4,this._createChannelConnection(b[d])];case 4:return f=(e=g.sent()).protocol()?e.protocol().version:null,[4,e.close()];case 5:if(g.sent(),f)return[2,a(f)];return[2,!1];case 6:return c=g.sent(),[3,7];case 7:return d++,[3,2];case 8:if(c)throw c;return[2,!1]}})})},b.prototype.supportsMultiDb=function(){return k(this,void 0,void 0,function(){return l(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(E)})];case 1:return[2,a.sent()]}})})},b.prototype.supportsTransactionConfig=function(){return k(this,void 0,void 0,function(){return l(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(D)})];case 1:return[2,a.sent()]}})})},b.prototype.supportsUserImpersonation=function(){return k(this,void 0,void 0,function(){return l(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(F)})];case 1:return[2,a.sent()]}})})},b.prototype.supportsSessionAuth=function(){return k(this,void 0,void 0,function(){return l(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(G)})];case 1:return[2,a.sent()]}})})},b.prototype.getNegotiatedProtocolVersion=function(){var a=this;return new Promise(function(b,c){a._hasProtocolVersion(b).catch(c)})},b.prototype.verifyAuthentication=function(a){return k(this,arguments,void 0,function(a){var b=this,c=a.database,d=a.accessMode,e=a.auth;return l(this,function(a){return this._startTime=new Date().getTime(),[2,this._verifyAuthentication({auth:e,getAddress:function(){return k(b,void 0,void 0,function(){var a,b,f;return l(this,function(g){switch(g.label){case 0:return a={database:c||null},[4,this._freshRoutingTable({accessMode:d,database:a.database,auth:e,onDatabaseNameResolved:function(b){a.database=a.database||b}})];case 1:if(b=g.sent(),0===(f=d===C?b.writers:b.readers).length)throw(0,p.newError)("No servers available for database '".concat(a.database,"' with access mode '").concat(d,"'"),x);return[2,f[0]]}})})}})]})})},b.prototype.verifyConnectivityAndGetServerInfo=function(a){return k(this,arguments,void 0,function(a){var b,c,d,e,f,g,h,i,j,k=a.database,n=a.accessMode;return l(this,function(a){switch(a.label){case 0:return b={database:k||null},this._startTime=new Date().getTime(),[4,this._freshRoutingTable({accessMode:n,database:b.database,onDatabaseNameResolved:function(a){b.database=b.database||a}})];case 1:c=a.sent(),d=n===C?c.writers:c.readers,e=(0,p.newError)("No servers available for database '".concat(b.database,"' with access mode '").concat(n,"'"),x),a.label=2;case 2:a.trys.push([2,9,10,11]),g=(f=m(d)).next(),a.label=3;case 3:if(g.done)return[3,8];h=g.value,a.label=4;case 4:return a.trys.push([4,6,,7]),[4,this._verifyConnectivityAndGetServerVersion({address:h})];case 5:return[2,a.sent()];case 6:return e=a.sent(),[3,7];case 7:return g=f.next(),[3,3];case 8:return[3,11];case 9:return i={error:a.sent()},[3,11];case 10:try{g&&!g.done&&(j=f.return)&&j.call(f)}finally{if(i)throw i.error}return[7];case 11:throw e}})})},b.prototype.forget=function(a,b){this._routingTableRegistry.apply(b,{applyWhenExists:function(b){return b.forget(a)}}),this._connectionPool.purge(a).catch(function(){})},b.prototype.forgetWriter=function(a,b){this._routingTableRegistry.apply(b,{applyWhenExists:function(b){return b.forgetWriter(a)}})},b.prototype._freshRoutingTable=function(a){var b=void 0===a?{}:a,c=b.accessMode,d=b.database,e=b.bookmarks,f=b.impersonatedUser,g=b.onDatabaseNameResolved,h=b.auth,i=this._routingTableRegistry.get(d,function(){return new q.RoutingTable({database:d})});return i.isStaleFor(c)?(this._log.info('Routing table is stale for database: "'.concat(d,'" and access mode: "').concat(c,'": ').concat(i)),this._refreshRoutingTable(i,e,f,h).then(function(a){return g(a.database),a})):i},b.prototype._refreshRoutingTable=function(a,b,c,d){var e=a.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(e,a,b,c,d):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(e,a,b,c,d)},b.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(a,b,c,d,e){return k(this,void 0,void 0,function(){var f,g,h,i,j,k,m;return l(this,function(l){switch(l.label){case 0:return f=[],[4,this._fetchRoutingTableUsingSeedRouter(f,this._seedRouter,b,c,d,e)];case 1:if(h=(g=n.apply(void 0,[l.sent(),2]))[0],i=g[1],!h)return[3,2];return this._useSeedRouter=!1,[3,4];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(a,b,c,d,e)];case 3:k=(j=n.apply(void 0,[l.sent(),2]))[0],m=j[1],h=k,i=m||i,l.label=4;case 4:return[4,this._applyRoutingTableIfPossible(b,h,i)];case 5:return[2,l.sent()]}})})},b.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(a,b,c,d,e){return k(this,void 0,void 0,function(){var f,g,h,i;return l(this,function(j){switch(j.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(a,b,c,d,e)];case 1:if(g=(f=n.apply(void 0,[j.sent(),2]))[0],h=f[1],g)return[3,3];return[4,this._fetchRoutingTableUsingSeedRouter(a,this._seedRouter,b,c,d,e)];case 2:g=(i=n.apply(void 0,[j.sent(),2]))[0],h=i[1],j.label=3;case 3:return[4,this._applyRoutingTableIfPossible(b,g,h)];case 4:return[2,j.sent()]}})})},b.prototype._fetchRoutingTableUsingKnownRouters=function(a,c,d,e,f){return k(this,void 0,void 0,function(){var g,h,i,j;return l(this,function(k){switch(k.label){case 0:return[4,this._fetchRoutingTable(a,c,d,e,f)];case 1:if(h=(g=n.apply(void 0,[k.sent(),2]))[0],i=g[1],h)return[2,[h,null]];return j=a.length-1,b._forgetRouter(c,a,j),[2,[null,i]]}})})},b.prototype._fetchRoutingTableUsingSeedRouter=function(a,b,c,d,e,f){return k(this,void 0,void 0,function(){var g;return l(this,function(h){switch(h.label){case 0:return[4,this._resolveSeedRouter(b)];case 1:return g=h.sent().filter(function(b){return 0>a.indexOf(b)}),[4,this._fetchRoutingTable(g,c,d,e,f)];case 2:return[2,h.sent()]}})})},b.prototype._resolveSeedRouter=function(a){return k(this,void 0,void 0,function(){var b,c=this;return l(this,function(d){switch(d.label){case 0:return[4,this._hostNameResolver.resolve(a)];case 1:return[4,Promise.all(d.sent().map(function(a){return c._dnsResolver.resolve(a)}))];case 2:return b=d.sent(),[2,[].concat.apply([],b)]}})})},b.prototype._fetchRoutingTable=function(a,c,d,e,f){return k(this,void 0,void 0,function(){var g=this;return l(this,function(h){return[2,a.reduce(function(h,i,j){return k(g,void 0,void 0,function(){var g,k,m,o,p,q;return l(this,function(l){switch(l.label){case 0:return[4,h];case 1:if(g=n.apply(void 0,[l.sent(),1])[0])return[2,[g,null]];return k=j-1,b._forgetRouter(c,a,k),[4,this._createSessionForRediscovery(i,d,e,f)];case 2:if(o=(m=n.apply(void 0,[l.sent(),2]))[0],p=m[1],!o)return[3,8];l.label=3;case 3:return l.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(o,c.database,i,e)];case 4:return[2,[l.sent(),null]];case 5:return q=l.sent(),[2,this._handleRediscoveryError(q,i)];case 6:return o.close(),[7];case 7:return[3,9];case 8:return[2,[null,p]];case 9:return[2]}})})},Promise.resolve([null,null]))]})})},b.prototype._createSessionForRediscovery=function(a,b,c,d){return k(this,void 0,void 0,function(){var e,f,g,h,i,j=this;return l(this,function(k){switch(k.label){case 0:return k.trys.push([0,4,,5]),[4,this._connectionPool.acquire({auth:d,startTime:this._startTime},a)];case 1:if(e=k.sent(),!d)return[3,3];return[4,this._verifyStickyConnection({auth:d,connection:e,address:a})];case 2:k.sent(),k.label=3;case 3:if(f=v.ConnectionErrorHandler.create({errorCode:y,handleSecurityError:function(a,b,c){return j._handleSecurityError(a,b,c)}}),g=e._sticky?new v.DelegateConnection(e):new v.DelegateConnection(e,f),h=new s.default(g),e.protocol().version.isLessThan({major:4,minor:0}))return[2,[new p.Session({mode:C,bookmarks:z.empty(),connectionProvider:h}),null]];return[2,[new p.Session({mode:B,database:"system",bookmarks:b,connectionProvider:h,impersonatedUser:c}),null]];case 4:return i=k.sent(),[2,this._handleRediscoveryError(i,a)];case 5:return[2]}})})},b.prototype._handleRediscoveryError=function(a,b){var c,d;if(["Neo.ClientError.Database.DatabaseNotFound","Neo.ClientError.Transaction.InvalidBookmark","Neo.ClientError.Transaction.InvalidBookmarkMixture","Neo.ClientError.Statement.ArgumentError","Neo.ClientError.Request.Invalid","Neo.ClientError.Statement.TypeError","N/A"].includes(a.code)||(null==(d=(c=a).code)?void 0:d.startsWith("Neo.ClientError.Security."))&&!["Neo.ClientError.Security.AuthorizationExpired"].includes(c.code))throw a;if("Neo.ClientError.Procedure.ProcedureNotFound"===a.code)throw(0,p.newError)("Server at ".concat(b.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),x,a);return this._log.warn("unable to fetch routing table because of an error ".concat(a)),[null,a]},b.prototype._applyRoutingTableIfPossible=function(a,b,c){return k(this,void 0,void 0,function(){return l(this,function(d){switch(d.label){case 0:if(!b)throw(0,p.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(a),x,c);return 0===b.writers.length&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(b)];case 1:return d.sent(),[2,b]}})})},b.prototype._updateRoutingTable=function(a){return k(this,void 0,void 0,function(){return l(this,function(b){switch(b.label){case 0:return[4,this._connectionPool.keepAll(a.allServers())];case 1:return b.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(a),this._log.info("Updated routing table ".concat(a)),[2]}})})},b._forgetRouter=function(a,b,c){var d=b[c];a&&d&&a.forgetRouter(d)},b.prototype._channelSsrCallback=function(a,b){if("OPEN"===b)!0===a?this._withSSR=this._withSSR+1:this._withoutSSR=this._withoutSSR+1;else if("CLOSE"===b)!0===a?this._withSSR=this._withSSR-1:this._withoutSSR=this._withoutSSR-1;else throw(0,p.newError)("Channel SSR Callback invoked with action other than 'OPEN' or 'CLOSE'")},b.prototype.SSREnabled=function(){return this._withSSR>0&&0===this._withoutSSR},b}(t.default);var I=function(){function a(a){this._tables=new Map,this._routingTablePurgeDelay=a}return a.prototype.register=function(a){return this._tables.set(a.database,a),this},a.prototype.apply=function(a,b){var c=void 0===b?{}:b,d=c.applyWhenExists,e=c.applyWhenDontExists;return this._tables.has(a)?d(this._tables.get(a)):"string"==typeof a||null===a?(void 0===e?function(){}:e)():this._forEach(d),this},a.prototype.get=function(a,b){return this._tables.has(a)?this._tables.get(a):"function"==typeof b?b():b},a.prototype.removeExpired=function(){var a=this;return this._removeIf(function(b){return b.isExpiredFor(a._routingTablePurgeDelay)})},a.prototype._forEach=function(a){var b,c;try{for(var d=m(this._tables),e=d.next();!e.done;e=d.next()){var f=n(e.value,2)[1];a(f)}}catch(a){b={error:a}}finally{try{e&&!e.done&&(c=d.return)&&c.call(d)}finally{if(b)throw b.error}}return this},a.prototype._remove=function(a){return this._tables.delete(a),this},a.prototype._removeIf=function(a){var b,c;try{for(var d=m(this._tables),e=d.next();!e.done;e=d.next()){var f=n(e.value,2),g=f[0],h=f[1];a(h)&&this._remove(g)}}catch(a){b={error:a}}finally{try{e&&!e.done&&(c=d.return)&&c.call(d)}finally{if(b)throw b.error}}return this},a}()},32433:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.using=void 0;var d=c(44230),e=c(80241),f=c(15980);b.using=function(a,b){return new d.Observable(function(c){var d=a(),g=b(d);return(g?e.innerFrom(g):f.EMPTY).subscribe(c),function(){d&&d.unsubscribe()}})}},32613:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.createChannelConnection=b.ConnectionErrorHandler=b.DelegateConnection=b.ChannelConnection=b.Connection=void 0;var i=h(c(66709));b.Connection=i.default;var j=g(c(16055));b.ChannelConnection=j.default,Object.defineProperty(b,"createChannelConnection",{enumerable:!0,get:function(){return j.createChannelConnection}}),b.DelegateConnection=h(c(85309)).default,b.ConnectionErrorHandler=h(c(37635)).default,b.default=i.default},33024:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.identity=function(a){return a},b.reuseOngoingRequest=function(a,b){void 0===b&&(b=null);var c=new Map;return function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];var g=d.json.stringify(e);if(c.has(g))return c.get(g);var h=a.apply(b,e);return c.set(g,h),h.finally(function(){c.delete(g)})}};var d=c(81773)},33157:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.merge=void 0;var d=c(79526),e=c(80241),f=c(15980),g=c(53851),h=c(77889);b.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=g.popScheduler(a),i=g.popNumber(a,1/0);return a.length?1===a.length?e.innerFrom(a[0]):d.mergeAll(i)(h.from(a,c)):f.EMPTY}},33441:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b,c){this.keys=a,this.records=b,this.summary=c}},33969:function(a,b){var c,d=this&&this.__extends||(c=function(a,b){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function d(){this.constructor=a}c(a,b),a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)});Object.defineProperty(b,"__esModule",{value:!0});var e=function(){function a(a){this.position=0,this.length=a}return a.prototype.getUInt8=function(a){throw Error("Not implemented")},a.prototype.getInt8=function(a){throw Error("Not implemented")},a.prototype.getFloat64=function(a){throw Error("Not implemented")},a.prototype.getVarInt=function(a){throw Error("Not implemented")},a.prototype.putUInt8=function(a,b){throw Error("Not implemented")},a.prototype.putInt8=function(a,b){throw Error("Not implemented")},a.prototype.putFloat64=function(a,b){throw Error("Not implemented")},a.prototype.getInt16=function(a){return this.getInt8(a)<<8|this.getUInt8(a+1)},a.prototype.getUInt16=function(a){return this.getUInt8(a)<<8|this.getUInt8(a+1)},a.prototype.getInt32=function(a){return this.getInt8(a)<<24|this.getUInt8(a+1)<<16|this.getUInt8(a+2)<<8|this.getUInt8(a+3)},a.prototype.getUInt32=function(a){return this.getUInt8(a)<<24|this.getUInt8(a+1)<<16|this.getUInt8(a+2)<<8|this.getUInt8(a+3)},a.prototype.getInt64=function(a){return this.getInt8(a)<<56|this.getUInt8(a+1)<<48|this.getUInt8(a+2)<<40|this.getUInt8(a+3)<<32|this.getUInt8(a+4)<<24|this.getUInt8(a+5)<<16|this.getUInt8(a+6)<<8|this.getUInt8(a+7)},a.prototype.getSlice=function(a,b){return new f(a,b,this)},a.prototype.putInt16=function(a,b){this.putInt8(a,b>>8),this.putUInt8(a+1,255&b)},a.prototype.putUInt16=function(a,b){this.putUInt8(a,b>>8&255),this.putUInt8(a+1,255&b)},a.prototype.putInt32=function(a,b){this.putInt8(a,b>>24),this.putUInt8(a+1,b>>16&255),this.putUInt8(a+2,b>>8&255),this.putUInt8(a+3,255&b)},a.prototype.putUInt32=function(a,b){this.putUInt8(a,b>>24&255),this.putUInt8(a+1,b>>16&255),this.putUInt8(a+2,b>>8&255),this.putUInt8(a+3,255&b)},a.prototype.putInt64=function(a,b){this.putInt8(a,b>>48),this.putUInt8(a+1,b>>42&255),this.putUInt8(a+2,b>>36&255),this.putUInt8(a+3,b>>30&255),this.putUInt8(a+4,b>>24&255),this.putUInt8(a+5,b>>16&255),this.putUInt8(a+6,b>>8&255),this.putUInt8(a+7,255&b)},a.prototype.putVarInt=function(a,b){for(var c=0;b>1;){var d=b%128;b>=128&&(d+=128),b/=128,this.putUInt8(a+c,d),c+=1}return c},a.prototype.putBytes=function(a,b){for(var c=0,d=b.remaining();c<d;c++)this.putUInt8(a+c,b.readUInt8())},a.prototype.readUInt8=function(){return this.getUInt8(this._updatePos(1))},a.prototype.readInt8=function(){return this.getInt8(this._updatePos(1))},a.prototype.readUInt16=function(){return this.getUInt16(this._updatePos(2))},a.prototype.readUInt32=function(){return this.getUInt32(this._updatePos(4))},a.prototype.readInt16=function(){return this.getInt16(this._updatePos(2))},a.prototype.readInt32=function(){return this.getInt32(this._updatePos(4))},a.prototype.readInt64=function(){return this.getInt32(this._updatePos(8))},a.prototype.readFloat64=function(){return this.getFloat64(this._updatePos(8))},a.prototype.readVarInt=function(){var a=this.getVarInt(this.position);return this._updatePos(a.length),a.value},a.prototype.writeUInt8=function(a){this.putUInt8(this._updatePos(1),a)},a.prototype.writeInt8=function(a){this.putInt8(this._updatePos(1),a)},a.prototype.writeInt16=function(a){this.putInt16(this._updatePos(2),a)},a.prototype.writeInt32=function(a){this.putInt32(this._updatePos(4),a)},a.prototype.writeUInt32=function(a){this.putUInt32(this._updatePos(4),a)},a.prototype.writeInt64=function(a){this.putInt64(this._updatePos(8),a)},a.prototype.writeFloat64=function(a){this.putFloat64(this._updatePos(8),a)},a.prototype.writeVarInt=function(a){var b=this.putVarInt(this.position,a);this._updatePos(b)},a.prototype.writeBytes=function(a){this.putBytes(this._updatePos(a.remaining()),a)},a.prototype.readSlice=function(a){return this.getSlice(this._updatePos(a),a)},a.prototype._updatePos=function(a){var b=this.position;return this.position+=a,b},a.prototype.remaining=function(){return this.length-this.position},a.prototype.hasRemaining=function(){return this.remaining()>0},a.prototype.reset=function(){this.position=0},a.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()},a.prototype.toHex=function(){for(var a="",b=0;b<this.length;b++){var c=this.getUInt8(b).toString(16);1===c.length&&(c="0"+c),a+=c,b!==this.length-1&&(a+=" ")}return a},a}();b.default=e;var f=function(a){function b(b,c,d){var e=a.call(this,c)||this;return e._start=b,e._inner=d,e}return d(b,a),b.prototype.putUInt8=function(a,b){this._inner.putUInt8(this._start+a,b)},b.prototype.getUInt8=function(a){return this._inner.getUInt8(this._start+a)},b.prototype.putInt8=function(a,b){this._inner.putInt8(this._start+a,b)},b.prototype.putFloat64=function(a,b){this._inner.putFloat64(this._start+a,b)},b.prototype.getInt8=function(a){return this._inner.getInt8(this._start+a)},b.prototype.getFloat64=function(a){return this._inner.getFloat64(this._start+a)},b}(e)},34193:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.epochDayToDate=n,b.nanoOfDayToLocalTime=o,b.epochSecondAndNanoToLocalDateTime=function(a,b){var c=l(a,k),e=m(a,k).multiply(j).add(b),f=n(c),g=o(e);return new d.LocalDateTime(f.year,f.month,f.day,g.hour,g.minute,g.second,g.nanosecond)};var d=c(81773),e=d.internal.temporalUtil,f=e.DAYS_0000_TO_1970,g=e.DAYS_PER_400_YEAR_CYCLE,h=e.NANOS_PER_HOUR,i=e.NANOS_PER_MINUTE,j=e.NANOS_PER_SECOND,k=e.SECONDS_PER_DAY,l=e.floorDiv,m=e.floorMod;function n(a){var b=(a=(0,d.int)(a)).add(f).subtract(60),c=(0,d.int)(0);if(b.lessThan(0)){var e=b.add(1).div(g).subtract(1);c=e.multiply(400),b=b.add(e.multiply(-g))}var h=b.multiply(400).add(591).div(g),i=b.subtract(h.multiply(365).add(h.div(4)).subtract(h.div(100)).add(h.div(400)));i.lessThan(0)&&(h=h.subtract(1),i=b.subtract(h.multiply(365).add(h.div(4)).subtract(h.div(100)).add(h.div(400)))),h=h.add(c);var j=i,k=j.multiply(5).add(2).div(153),l=k.add(2).modulo(12).add(1),m=j.subtract(k.multiply(306).add(5).div(10)).add(1);return h=h.add(k.div(10)),new d.Date(h,l,m)}function o(a){var b=(a=(0,d.int)(a)).div(h),c=(a=a.subtract(b.multiply(h))).div(i),e=(a=a.subtract(c.multiply(i))).div(j),f=a.subtract(e.multiply(j));return new d.LocalTime(b,c,e,f)}},34479:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.observable=void 0,b.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},34683:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.partition=void 0;var d=c(8441),e=c(97991),f=c(80241);b.partition=function(a,b,c){return[e.filter(b,c)(f.innerFrom(a)),e.filter(d.not(b,c))(f.innerFrom(a))]}},35177:function(a,b,c){var d=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0});var e=c(81773),f=c(14276),g=c(90797),h=e.error.PROTOCOL_ERROR;b.default={createNodeTransformer:function(){return new g.TypeTransformer({signature:78,isTypeInstance:function(a){return a instanceof e.Node},toStructure:function(a){throw(0,e.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(a),h)},fromStructure:function(a){f.structure.verifyStructSize("Node",3,a.size);var b=d(a.fields,3),c=b[0],g=b[1],h=b[2];return new e.Node(c,g,h)}})},createRelationshipTransformer:function(){return new g.TypeTransformer({signature:82,isTypeInstance:function(a){return a instanceof e.Relationship},toStructure:function(a){throw(0,e.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(a),h)},fromStructure:function(a){f.structure.verifyStructSize("Relationship",5,a.size);var b=d(a.fields,5),c=b[0],g=b[1],h=b[2],i=b[3],j=b[4];return new e.Relationship(c,g,h,i,j)}})},createUnboundRelationshipTransformer:function(){return new g.TypeTransformer({signature:114,isTypeInstance:function(a){return a instanceof e.UnboundRelationship},toStructure:function(a){throw(0,e.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(a),h)},fromStructure:function(a){f.structure.verifyStructSize("UnboundRelationship",3,a.size);var b=d(a.fields,3),c=b[0],g=b[1],h=b[2];return new e.UnboundRelationship(c,g,h)}})},createPathTransformer:function(){return new g.TypeTransformer({signature:80,isTypeInstance:function(a){return a instanceof e.Path},toStructure:function(a){throw(0,e.newError)("It is not allowed to pass paths in query parameters, given: ".concat(a),h)},fromStructure:function(a){f.structure.verifyStructSize("Path",3,a.size);for(var b=d(a.fields,3),c=b[0],g=b[1],h=b[2],i=[],j=c[0],k=0;k<h.length;k+=2){var l=c[h[k+1]],m=(0,e.toNumber)(h[k]),n=void 0;m>0?(n=g[m-1])instanceof e.UnboundRelationship&&(g[m-1]=n=n.bindTo(j,l)):(n=g[-m-1])instanceof e.UnboundRelationship&&(g[-m-1]=n=n.bindTo(l,j)),i.push(new e.PathSegment(j,n,l)),j=l}return new e.Path(c[0],c[c.length-1],i)}})},createVectorTransformer:function(){return new g.TypeTransformer({signature:86,isTypeInstance:function(a){return a instanceof e.Vector},toStructure:function(a){throw(0,e.newError)("Sending vector types require server and driver to be communicating with Bolt protocol 6.0 or later. Please update your database version.")},fromStructure:function(a){throw(0,e.newError)("Server tried to send Vector object, but server and driver are communicating on a version of the Bolt protocol that does not support vectors.")}})}}},35400:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.tap=void 0;var d=c(14434),e=c(58555),f=c(383),g=c(70332);b.tap=function(a,b,c){var h=d.isFunction(a)||b||c?{next:a,error:b,complete:c}:a;return h?e.operate(function(a,b){null==(c=h.subscribe)||c.call(h);var c,d=!0;a.subscribe(f.createOperatorSubscriber(b,function(a){var c;null==(c=h.next)||c.call(h,a),b.next(a)},function(){var a;d=!1,null==(a=h.complete)||a.call(h),b.complete()},function(a){var c;d=!1,null==(c=h.error)||c.call(h,a),b.error(a)},function(){var a,b;d&&(null==(a=h.unsubscribe)||a.call(h)),null==(b=h.finalize)||b.call(h)}))}):g.identity}},35875:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AsapScheduler=void 0,b.AsapScheduler=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b.prototype.flush=function(a){this._active=!0;var b,c=this._scheduled;this._scheduled=void 0;var d=this.actions;a=a||d.shift();do if(b=a.execute(a.state,a.delay))break;while((a=d[0])&&a.id===c&&d.shift());if(this._active=!1,b){for(;(a=d[0])&&a.id===c&&d.shift();)a.unsubscribe();throw b}},b}(c(23004).AsyncScheduler)},36061:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0});var f=c(19142),g=c(21391);b.default=function(a){function b(b){for(var c=this,d=0,e=0;e<b.length;e++)d+=b[e].length;return(c=a.call(this,d)||this)._buffers=b,c}return e(b,a),b.prototype.getUInt8=function(a){for(var b=0;b<this._buffers.length;b++){var c=this._buffers[b];if(!(a>=c.length))return c.getUInt8(a);a-=c.length}},b.prototype.getInt8=function(a){for(var b=0;b<this._buffers.length;b++){var c=this._buffers[b];if(!(a>=c.length))return c.getInt8(a);a-=c.length}},b.prototype.getFloat64=function(a){for(var b=(0,g.alloc)(8),c=0;c<8;c++)b.putUInt8(c,this.getUInt8(a+c));return b.getFloat64(0)},b}(f.BaseBuffer)},36270:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.sequenceEqual=void 0;var d=c(58555),e=c(383),f=c(80241);function g(){return{buffer:[],complete:!1}}b.sequenceEqual=function(a,b){return void 0===b&&(b=function(a,b){return a===b}),d.operate(function(c,d){var h=g(),i=g(),j=function(a){d.next(a),d.complete()},k=function(a,c){var f=e.createOperatorSubscriber(d,function(d){var e=c.buffer,f=c.complete;0===e.length?f?j(!1):a.buffer.push(d):b(d,e.shift())||j(!1)},function(){a.complete=!0;var b=c.complete,d=c.buffer;b&&j(0===d.length),null==f||f.unsubscribe()});return f};c.subscribe(k(h,i)),f.innerFrom(a).subscribe(k(i,h))})}},36570:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.delay=void 0;var d=c(84189),e=c(56214),f=c(10360);b.delay=function(a,b){void 0===b&&(b=d.asyncScheduler);var c=f.timer(a,b);return e.delayWhen(function(){return c})}},36895:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(23068));b.default=d({},f.default)},37311:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AsyncSubject=void 0,b.AsyncSubject=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;return b._value=null,b._hasValue=!1,b._isComplete=!1,b}return e(b,a),b.prototype._checkFinalizedStatuses=function(a){var b=this.hasError,c=this._hasValue,d=this._value,e=this.thrownError,f=this.isStopped,g=this._isComplete;b?a.error(e):(f||g)&&(c&&a.next(d),a.complete())},b.prototype.next=function(a){this.isStopped||(this._value=a,this._hasValue=!0)},b.prototype.complete=function(){var b=this._hasValue,c=this._value;this._isComplete||(this._isComplete=!0,b&&a.prototype.next.call(this,c),a.prototype.complete.call(this))},b}(c(57707).Subject)},37459:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.stringify=function(a,b){return JSON.stringify(a,function(a,c){return(0,d.isBrokenObject)(c)?{__isBrokenObject__:!0,__reason__:(0,d.getBrokenObjectReason)(c)}:"bigint"==typeof c?"".concat(c,"n"):(null==b?void 0:b.sortedElements)!==!0||"object"!=typeof c||Array.isArray(c)?(null==b?void 0:b.useCustomToString)!==!0||"object"!=typeof c||Array.isArray(c)||"function"!=typeof c.toString||c.toString===Object.prototype.toString?c:null==c?void 0:c.toString():Object.keys(c).sort().reduce(function(a,b){return a[b]=c[b],a},{})})};var d=c(68497)},37635:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(81773),e=d.error.SERVICE_UNAVAILABLE,f=d.error.SESSION_EXPIRED;function g(a){return a}b.default=function(){function a(a,b,c,d){this._errorCode=a,this._handleUnavailability=b||g,this._handleWriteFailure=c||g,this._handleSecurityError=d||g}return a.create=function(b){return new a(b.errorCode,b.handleUnavailability,b.handleWriteFailure,b.handleSecurityError)},a.prototype.errorCode=function(){return this._errorCode},a.prototype.handleAndTransformError=function(a,b,c){var d,g,h;return null!=(d=a)&&null!=d.code&&d.code.startsWith("Neo.ClientError.Security.")?this._handleSecurityError(a,b,c):(g=a)&&(g.code===f||g.code===e||"Neo.TransientError.General.DatabaseUnavailable"===g.code)?this._handleUnavailability(a,b,c):(h=a)&&("Neo.ClientError.Cluster.NotALeader"===h.code||"Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"===h.code)?this._handleWriteFailure(a,b,c):a},a}()},37775:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(2910)),i=c(81773),j=g(c(28881)),k=c(95590),l=c(13273),m=g(c(27038)),n=g(c(85273)),o=g(c(90797)),p=i.internal.constants,q=p.BOLT_PROTOCOL_V4_4,r=p.FETCH_ALL,s=i.internal.bookmarks.Bookmarks;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return q},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new o.default(Object.values(m.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.requestRoutingInformation=function(a){var b=a.routingContext,c=a.databaseName,d=a.impersonatedUser,e=a.sessionContext,f=a.onError,g=a.onCompleted,h=new k.RouteObserver({onProtocolError:this._onProtocolError,onError:f,onCompleted:g}),i=(void 0===e?{}:e).bookmarks||s.empty();return this.write(j.default.routeV4x4(void 0===b?{}:b,i.values(),{databaseName:void 0===c?null:c,impersonatedUser:void 0===d?null:d}),h,!0),h},b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.mode,i=d.impersonatedUser,m=d.notificationFilter,n=d.beforeKeys,o=d.afterKeys,p=d.beforeError,q=d.afterError,s=d.beforeComplete,t=d.afterComplete,u=d.flush,v=void 0===u||u,w=d.reactive,x=void 0!==w&&w,y=d.fetchSize,z=void 0===y?r:y,A=d.highRecordWatermark,B=void 0===A?Number.MAX_VALUE:A,C=d.lowRecordWatermark,D=void 0===C?Number.MAX_VALUE:C,E=new k.ResultStreamObserver({server:this._server,reactive:x,fetchSize:z,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:n,afterKeys:o,beforeError:p,afterError:q,beforeComplete:s,afterComplete:t,highRecordWatermark:B,lowRecordWatermark:D});return(0,l.assertNotificationFilterIsEmpty)(m,this._onProtocolError,E),this.write(j.default.runWithMetadata(a,b,{bookmarks:e,txConfig:f,database:g,mode:h,impersonatedUser:i}),E,x&&v),x||this.write(j.default.pull({n:z}),E,v),E},b.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.mode,g=b.impersonatedUser,h=b.notificationFilter,i=b.beforeError,m=b.afterError,n=b.beforeComplete,o=b.afterComplete,p=new k.ResultStreamObserver({server:this._server,beforeError:i,afterError:m,beforeComplete:n,afterComplete:o});return p.prepareToHandleSingleResponse(),(0,l.assertNotificationFilterIsEmpty)(h,this._onProtocolError,p),this.write(j.default.begin({bookmarks:c,txConfig:d,database:e,mode:f,impersonatedUser:g}),p,!0),p},b.prototype._applyUtcPatch=function(){var a=this;this._transformer=new o.default(Object.values(f(f({},m.default),n.default)).map(function(b){return b(a._config,a._log)}))},b}(h.default)},37958:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.rule=void 0;var f=c(93267),g=c(78785),h=c(90705),i=c(51835),j=e(c(95642));function k(a,b){if(null!=b){if(!0===b.stringify)return a.toString();else if(!0===b.toStandardDate)return a.toStandardDate()}return a}b.rule=Object.freeze({asBoolean:function(a){return d({validate:function(a,b){if("boolean"!=typeof a)throw TypeError("".concat(b," should be a boolean but received ").concat(typeof a))}},a)},asString:function(a){return d({validate:function(a,b){if("string"!=typeof a)throw TypeError("".concat(b," should be a string but received ").concat(typeof a))}},a)},asNumber:function(a){return d({validate:function(b,c){if("object"==typeof b&&void 0!==b.low&&void 0!==b.high&&2===Object.keys(b).length)throw TypeError("Number returned as Object. To use asNumber mapping, set disableLosslessIntegers or useBigInt in driver config object");if("number"!=typeof b&&((null==a?void 0:a.acceptBigInt)!==!0||"bigint"!=typeof b))throw TypeError("".concat(c," should be a number but received ").concat(typeof b))},convert:function(a){return"bigint"==typeof a?Number(a):a}},a)},asBigInt:function(a){return d({validate:function(b,c){if("bigint"!=typeof b&&((null==a?void 0:a.acceptNumber)!==!0||"number"!=typeof b))throw TypeError("".concat(c," should be a bigint but received ").concat(typeof b))},convert:function(a){return"number"==typeof a?BigInt(a):a}},a)},asNode:function(a){return d({validate:function(a,b){if(!(0,g.isNode)(a))throw TypeError("".concat(b," should be a Node but received ").concat(typeof a))}},a)},asRelationship:function(a){return d({validate:function(a,b){if(!(0,g.isRelationship)(a))throw TypeError("".concat(b," should be a Relationship but received ").concat(typeof a))}},a)},asUnboundRelationship:function(a){return d({validate:function(a,b){if(!(0,g.isUnboundRelationship)(a))throw TypeError("".concat(b," should be a UnboundRelationship but received ").concat(typeof a))}},a)},asPath:function(a){return d({validate:function(a,b){if(!(0,g.isPath)(a))throw TypeError("".concat(b," should be a Path but received ").concat(typeof a))}},a)},asPoint:function(a){return d({validate:function(a,b){if(!(0,h.isPoint)(a))throw TypeError("".concat(b," should be a Point but received ").concat(typeof a))}},a)},asDuration:function(a){return d({validate:function(a,b){if(!(0,i.isDuration)(a))throw TypeError("".concat(b," should be a Duration but received ").concat(typeof a))},convert:function(b){return(null==a?void 0:a.stringify)===!0?b.toString():b}},a)},asLocalTime:function(a){return d({validate:function(a,b){if(!(0,i.isLocalTime)(a))throw TypeError("".concat(b," should be a LocalTime but received ").concat(typeof a))},convert:function(b){return(null==a?void 0:a.stringify)===!0?b.toString():b}},a)},asTime:function(a){return d({validate:function(a,b){if(!(0,i.isTime)(a))throw TypeError("".concat(b," should be a Time but received ").concat(typeof a))},convert:function(b){return(null==a?void 0:a.stringify)===!0?b.toString():b}},a)},asDate:function(a){return d({validate:function(a,b){if(!(0,i.isDate)(a))throw TypeError("".concat(b," should be a Date but received ").concat(typeof a))},convert:function(b){return k(b,a)}},a)},asLocalDateTime:function(a){return d({validate:function(a,b){if(!(0,i.isLocalDateTime)(a))throw TypeError("".concat(b," should be a LocalDateTime but received ").concat(typeof a))},convert:function(b){return k(b,a)}},a)},asDateTime:function(a){return d({validate:function(a,b){if(!(0,i.isDateTime)(a))throw TypeError("".concat(b," should be a DateTime but received ").concat(typeof a))},convert:function(b){return k(b,a)}},a)},asList:function(a){return d({validate:function(a,b){if(!Array.isArray(a))throw TypeError("".concat(b," should be a list but received ").concat(typeof a))},convert:function(b,c){return(null==a?void 0:a.apply)!=null?b.map(function(b,d){return(0,f.valueAs)(b,"".concat(c,"[").concat(d,"]"),a.apply)}):b}},a)},asVector:function(a){return d({validate:function(a,b){if(!(a instanceof j.default))throw TypeError("".concat(b," should be a vector but received ").concat(typeof a))},convert:function(b){return(null==a?void 0:a.asTypedList)===!0?b._typedArray:b}},a)}})},37965:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.concat=void 0;var d=c(56030),e=c(53851),f=c(77889);b.concat=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return d.concatAll()(f.from(a,e.popScheduler(a)))}},38757:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var e=d(c(21391)),f=c(81773),g=d(c(79428)),h=new(c(41204)).StringDecoder("utf8");b.default={encode:function(a){var b;return new e.default((b=a,"function"==typeof g.default.Buffer.from?g.default.Buffer.from(b,"utf8"):new g.default.Buffer(b,"utf8")))},decode:function(a,b){var c,d,e,g,i,j,k,l,m,n,o,p;if(Object.prototype.hasOwnProperty.call(a,"_buffer")){return c=a,d=b,g=(e=c.position)+d,c.position=Math.min(g,c.length),c._buffer.toString("utf8",e,g)}if(Object.prototype.hasOwnProperty.call(a,"_buffers")){return i=a,j=b,k=i,l=j,m=function(a){return h.write(a._buffer)},n=function(){return h.end()},o=l,p=k.position,k._updatePos(Math.min(l,k.length-p)),k._buffers.reduce(function(a,b){if(o<=0)return a;if(p>=b.length)return p-=b.length,"";b._updatePos(p-b.position);var c=Math.min(b.length-p,o),d=b.readSlice(c);return b._updatePos(c),o=Math.max(o-d.length,0),p=0,a+m(d)},"")+n()}throw(0,f.newError)("Don't know how to decode strings from '".concat(a,"'"))}}},38857:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isScheduler=void 0;var d=c(14434);b.isScheduler=function(a){return a&&d.isFunction(a.schedule)}},39355:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.Logger=void 0;var g=c(54507),h="error",i="warn",j="info",k="debug",l=((e={})[h]=0,e[i]=1,e[j]=2,e[k]=3,e),m=function(){function a(a,b){this._level=a,this._loggerFunction=b}return a.create=function(b){if((null==b?void 0:b.logging)!=null){var c=b.logging;return new a(function(a){if((null==a?void 0:a.level)!=null){var b=a.level,c=l[b];if(null==c&&0!==c)throw(0,g.newError)("Illegal logging level: ".concat(b,". Supported levels are: ").concat(Object.keys(l).toString()));return b}return j}(c),function(a){var b,c;if((null==a?void 0:a.logger)!=null){var d=a.logger;if(null!=d&&"function"==typeof d)return d}throw(0,g.newError)("Illegal logger function: ".concat(null!=(c=null==(b=null==a?void 0:a.logger)?void 0:b.toString())?c:"undefined"))}(c))}return this.noOp()},a.noOp=function(){return n},a.prototype.isErrorEnabled=function(){return o(this._level,h)},a.prototype.error=function(a){this.isErrorEnabled()&&this._loggerFunction(h,a)},a.prototype.isWarnEnabled=function(){return o(this._level,i)},a.prototype.warn=function(a){this.isWarnEnabled()&&this._loggerFunction(i,a)},a.prototype.isInfoEnabled=function(){return o(this._level,j)},a.prototype.info=function(a){this.isInfoEnabled()&&this._loggerFunction(j,a)},a.prototype.isDebugEnabled=function(){return o(this._level,k)},a.prototype.debug=function(a){this.isDebugEnabled()&&this._loggerFunction(k,a)},a}();b.Logger=m;var n=new(function(a){function b(){return a.call(this,j,function(a,b){})||this}return f(b,a),b.prototype.isErrorEnabled=function(){return!1},b.prototype.error=function(a){},b.prototype.isWarnEnabled=function(){return!1},b.prototype.warn=function(a){},b.prototype.isInfoEnabled=function(){return!1},b.prototype.info=function(a){},b.prototype.isDebugEnabled=function(){return!1},b.prototype.debug=function(a){},b}(m));function o(a,b){return l[a]>=l[b]}},39914:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeMapTo=void 0;var d=c(19735),e=c(14434);b.mergeMapTo=function(a,b,c){return(void 0===c&&(c=1/0),e.isFunction(b))?d.mergeMap(function(){return a},b,c):("number"==typeof b&&(c=b),d.mergeMap(function(){return a},c))}},40093:(a,b)=>{var c=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},d=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.intervalProvider=void 0,b.intervalProvider={setInterval:function(a,e){for(var f=[],g=2;g<arguments.length;g++)f[g-2]=arguments[g];var h=b.intervalProvider.delegate;return(null==h?void 0:h.setInterval)?h.setInterval.apply(h,d([a,e],c(f))):setInterval.apply(void 0,d([a,e],c(f)))},clearInterval:function(a){var c=b.intervalProvider.delegate;return((null==c?void 0:c.clearInterval)||clearInterval)(a)},delegate:void 0}},40289:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.concatWith=void 0;var f=c(81525);b.concatWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return f.concat.apply(void 0,e([],d(a)))}},40366:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AsapAction=void 0;var f=c(70883),g=c(58265);b.AsapAction=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.scheduler=b,d.work=c,d}return e(b,a),b.prototype.requestAsyncId=function(b,c,d){return(void 0===d&&(d=0),null!==d&&d>0)?a.prototype.requestAsyncId.call(this,b,c,d):(b.actions.push(this),b._scheduled||(b._scheduled=g.immediateProvider.setImmediate(b.flush.bind(b,void 0))))},b.prototype.recycleAsyncId=function(b,c,d){if(void 0===d&&(d=0),null!=d?d>0:this.delay>0)return a.prototype.recycleAsyncId.call(this,b,c,d);var e,f=b.actions;null!=c&&(null==(e=f[f.length-1])?void 0:e.id)!==c&&(g.immediateProvider.clearImmediate(c),b._scheduled===c&&(b._scheduled=void 0))},b}(f.AsyncAction)},40990:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),f(c(81773));var g=function(){function a(){}return a.ofRecord=function(b){return null===b?a.ofNull():new j(b)},a.ofMessageResponse=function(b){return null===b?a.ofNull():new h(b)},a.ofNull=function(){return new i},Object.defineProperty(a.prototype,"ttl",{get:function(){throw Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"db",{get:function(){throw Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"servers",{get:function(){throw Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isNull",{get:function(){throw Error("Not implemented")},enumerable:!1,configurable:!0}),a}();b.default=g;var h=function(a){function b(b){var c=a.call(this)||this;return c._response=b,c}return e(b,a),Object.defineProperty(b.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isNull",{get:function(){return null===this._response},enumerable:!1,configurable:!0}),b}(g),i=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),b}(g),j=function(a){function b(b){var c=a.call(this)||this;return c._record=b,c}return e(b,a),Object.defineProperty(b.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isNull",{get:function(){return null===this._record},enumerable:!1,configurable:!0}),b}(g)},42663:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduleObservable=void 0;var d=c(80241),e=c(20396),f=c(6556);b.scheduleObservable=function(a,b){return d.innerFrom(a).pipe(f.subscribeOn(b),e.observeOn(b))}},42979:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.retry=void 0;var d=c(58555),e=c(383),f=c(70332),g=c(10360),h=c(80241);b.retry=function(a){void 0===a&&(a=1/0);var b=a&&"object"==typeof a?a:{count:a},c=b.count,i=void 0===c?1/0:c,j=b.delay,k=b.resetOnSuccess,l=void 0!==k&&k;return i<=0?f.identity:d.operate(function(a,b){var c,d=0,f=function(){var k=!1;c=a.subscribe(e.createOperatorSubscriber(b,function(a){l&&(d=0),b.next(a)},void 0,function(a){if(d++<i){var l=function(){c?(c.unsubscribe(),c=null,f()):k=!0};if(null!=j){var m="number"==typeof j?g.timer(j):h.innerFrom(j(a,d)),n=e.createOperatorSubscriber(b,function(){n.unsubscribe(),l()},function(){b.complete()});m.subscribe(n)}else l()}else b.error(a)})),k&&(c.unsubscribe(),c=null,f())};f()})}},43048:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.distinctUntilKeyChanged=void 0;var d=c(28853);b.distinctUntilKeyChanged=function(a,b){return d.distinctUntilChanged(function(c,d){return b?b(c[a],d[a]):c[a]===d[a]})}},43338:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(52077));b.default=d({},f.default)},43662:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.zip=void 0;var f=c(44230),g=c(80241),h=c(90999),i=c(15980),j=c(383),k=c(53851);b.zip=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=k.popResultSelector(a),l=h.argsOrArgArray(a);return l.length?new f.Observable(function(a){var b=l.map(function(){return[]}),f=l.map(function(){return!1});a.add(function(){b=f=null});for(var h=function(h){g.innerFrom(l[h]).subscribe(j.createOperatorSubscriber(a,function(g){if(b[h].push(g),b.every(function(a){return a.length})){var i=b.map(function(a){return a.shift()});a.next(c?c.apply(void 0,e([],d(i))):i),b.some(function(a,b){return!a.length&&f[b]})&&a.complete()}},function(){f[h]=!0,b[h].length||a.complete()}))},i=0;!a.closed&&i<l.length;i++)h(i);return function(){b=f=null}}):i.EMPTY}},43677:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0}),b.fromEvent=void 0;var e=c(80241),f=c(44230),g=c(19735),h=c(23526),i=c(14434),j=c(88099),k=["addListener","removeListener"],l=["addEventListener","removeEventListener"],m=["on","off"];function n(a,b){return function(c){return function(d){return a[c](b,d)}}}b.fromEvent=function a(b,c,o,p){if(i.isFunction(o)&&(p=o,o=void 0),p)return a(b,c,o).pipe(j.mapOneOrManyArgs(p));var q,r,s,t=d((q=b,i.isFunction(q.addEventListener)&&i.isFunction(q.removeEventListener))?l.map(function(a){return function(d){return b[a](c,d,o)}}):(r=b,i.isFunction(r.addListener)&&i.isFunction(r.removeListener))?k.map(n(b,c)):(s=b,i.isFunction(s.on)&&i.isFunction(s.off))?m.map(n(b,c)):[],2),u=t[0],v=t[1];if(!u&&h.isArrayLike(b))return g.mergeMap(function(b){return a(b,c,o)})(e.innerFrom(b));if(!u)throw TypeError("Invalid event target");return new f.Observable(function(a){var b=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.next(1<b.length?b:b[0])};return u(b),function(){return v(b)}})}},44134:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(64691)),i=g(c(4563)),j=g(c(90797)),k=g(c(28881)),l=c(95590),m=c(81773).internal.constants,n=m.BOLT_PROTOCOL_V5_2,o=m.FETCH_ALL;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"supportsReAuth",{get:function(){return!0},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),g=c.notificationFilter,h=c.onError,i=c.onComplete,j={},m=new l.LoginObserver({onError:function(a){return b._onLoginError(a,h)},onCompleted:function(a){return j.metadata=a,b._onLoginCompleted(a)}});return this.write(k.default.hello5x2(d,g,this._serversideRouting),m,!1),this.logon({authToken:e,onComplete:function(a){return i(f(f({},a),j.metadata))},onError:h,flush:!0})},b.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.mode,g=b.impersonatedUser,h=b.notificationFilter,i=b.beforeError,j=b.afterError,m=b.beforeComplete,n=b.afterComplete,o=new l.ResultStreamObserver({server:this._server,beforeError:i,afterError:j,beforeComplete:m,afterComplete:n});return o.prepareToHandleSingleResponse(),this.write(k.default.begin({bookmarks:c,txConfig:d,database:e,mode:f,impersonatedUser:g,notificationFilter:h}),o,!0),o},b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.mode,i=d.impersonatedUser,j=d.notificationFilter,m=d.beforeKeys,n=d.afterKeys,p=d.beforeError,q=d.afterError,r=d.beforeComplete,s=d.afterComplete,t=d.flush,u=void 0===t||t,v=d.reactive,w=void 0!==v&&v,x=d.fetchSize,y=void 0===x?o:x,z=d.highRecordWatermark,A=void 0===z?Number.MAX_VALUE:z,B=d.lowRecordWatermark,C=void 0===B?Number.MAX_VALUE:B,D=new l.ResultStreamObserver({server:this._server,reactive:w,fetchSize:y,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:m,afterKeys:n,beforeError:p,afterError:q,beforeComplete:r,afterComplete:s,highRecordWatermark:A,lowRecordWatermark:C});return this.write(k.default.runWithMetadata(a,b,{bookmarks:e,txConfig:f,database:g,mode:h,impersonatedUser:i,notificationFilter:j}),D,w&&u),w||this.write(k.default.pull({n:y}),D,u),D},b}(h.default)},44230:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Observable=void 0;var d=c(47457),e=c(74038),f=c(34479),g=c(28610),h=c(52129),i=c(14434),j=c(93719);function k(a){var b;return null!=(b=null!=a?a:h.config.Promise)?b:Promise}b.Observable=function(){function a(a){a&&(this._subscribe=a)}return a.prototype.lift=function(b){var c=new a;return c.source=this,c.operator=b,c},a.prototype.subscribe=function(a,b,c){var f=this,g=!function(a){return a&&a instanceof d.Subscriber||a&&i.isFunction(a.next)&&i.isFunction(a.error)&&i.isFunction(a.complete)&&e.isSubscription(a)}(a)?new d.SafeSubscriber(a,b,c):a;return j.errorContext(function(){var a=f.operator,b=f.source;g.add(a?a.call(g,b):b?f._subscribe(g):f._trySubscribe(g))}),g},a.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}},a.prototype.forEach=function(a,b){var c=this;return new(b=k(b))(function(b,e){var f=new d.SafeSubscriber({next:function(b){try{a(b)}catch(a){e(a),f.unsubscribe()}},error:e,complete:b});c.subscribe(f)})},a.prototype._subscribe=function(a){var b;return null==(b=this.source)?void 0:b.subscribe(a)},a.prototype[f.observable]=function(){return this},a.prototype.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return g.pipeFromArray(a)(this)},a.prototype.toPromise=function(a){var b=this;return new(a=k(a))(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})},a.create=function(b){return new a(b)},a}()},44255:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeInternals=void 0;var d=c(80241),e=c(60510),f=c(383);b.mergeInternals=function(a,b,c,g,h,i,j,k){var l=[],m=0,n=0,o=!1,p=function(){!o||l.length||m||b.complete()},q=function(a){return m<g?r(a):l.push(a)},r=function(a){i&&b.next(a),m++;var k=!1;d.innerFrom(c(a,n++)).subscribe(f.createOperatorSubscriber(b,function(a){null==h||h(a),i?q(a):b.next(a)},function(){k=!0},void 0,function(){if(k)try{for(m--;l.length&&m<g;)!function(){var a=l.shift();j?e.executeSchedule(b,j,function(){return r(a)}):r(a)}();p()}catch(a){b.error(a)}}))};return a.subscribe(f.createOperatorSubscriber(b,q,function(){o=!0,p()})),function(){null==k||k()}}},44767:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.throwError=void 0;var d=c(44230),e=c(14434);b.throwError=function(a,b){var c=e.isFunction(a)?a:function(){return a},f=function(a){return a.error(c())};return new d.Observable(b?function(a){return b.schedule(f,0,a)}:f)}},45483:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(49930)),i=g(c(28881)),j=c(13273),k=c(95590),l=g(c(63746)),m=g(c(90797)),n=c(81773);n.internal.bookmarks.Bookmarks;var o=n.internal.constants,p=o.BOLT_PROTOCOL_V4_0,q=o.FETCH_ALL,r=n.internal.txConfig.TxConfig,s="context",t="database",u="CALL dbms.routing.getRoutingTable($".concat(s,", $").concat(t,")");b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new m.default(Object.values(l.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.impersonatedUser,g=b.notificationFilter,h=b.mode,l=b.beforeError,m=b.afterError,n=b.beforeComplete,o=b.afterComplete,p=new k.ResultStreamObserver({server:this._server,beforeError:l,afterError:m,beforeComplete:n,afterComplete:o});return p.prepareToHandleSingleResponse(),(0,j.assertImpersonatedUserIsEmpty)(f,this._onProtocolError,p),(0,j.assertNotificationFilterIsEmpty)(g,this._onProtocolError,p),this.write(i.default.begin({bookmarks:c,txConfig:d,database:e,mode:h}),p,!0),p},b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.impersonatedUser,l=d.notificationFilter,m=d.mode,n=d.beforeKeys,o=d.afterKeys,p=d.beforeError,r=d.afterError,s=d.beforeComplete,t=d.afterComplete,u=d.flush,v=void 0===u||u,w=d.reactive,x=void 0!==w&&w,y=d.fetchSize,z=void 0===y?q:y,A=d.highRecordWatermark,B=void 0===A?Number.MAX_VALUE:A,C=d.lowRecordWatermark,D=void 0===C?Number.MAX_VALUE:C,E=new k.ResultStreamObserver({server:this._server,reactive:x,fetchSize:z,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:n,afterKeys:o,beforeError:p,afterError:r,beforeComplete:s,afterComplete:t,highRecordWatermark:B,lowRecordWatermark:D});return(0,j.assertImpersonatedUserIsEmpty)(h,this._onProtocolError,E),(0,j.assertNotificationFilterIsEmpty)(l,this._onProtocolError,E),this.write(i.default.runWithMetadata(a,b,{bookmarks:e,txConfig:f,database:g,mode:m}),E,x&&v),x||this.write(i.default.pull({n:z}),E,v),E},b.prototype._requestMore=function(a,b,c){this.write(i.default.pull({stmtId:a,n:b}),c,!0)},b.prototype._requestDiscard=function(a,b){this.write(i.default.discard({stmtId:a}),b,!0)},b.prototype._noOp=function(){},b.prototype.requestRoutingInformation=function(a){var b,c=a.routingContext,d=a.databaseName,e=a.sessionContext,g=a.onError,h=a.onCompleted,i=this.run(u,((b={})[s]=void 0===c?{}:c,b[t]=void 0===d?null:d,b),f(f({},void 0===e?{}:e),{txConfig:r.empty()}));return new k.ProcedureRouteObserver({resultObserver:i,onProtocolError:this._onProtocolError,onError:g,onCompleted:h})},b}(h.default)},45537:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.QueueScheduler=void 0,b.QueueScheduler=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b}(c(23004).AsyncScheduler)},45588:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isIterable=void 0;var d=c(67976),e=c(14434);b.isIterable=function(a){return e.isFunction(null==a?void 0:a[d.iterator])}},45597:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.dematerialize=void 0;var d=c(7180),e=c(58555),f=c(383);b.dematerialize=function(){return e.operate(function(a,b){a.subscribe(f.createOperatorSubscriber(b,function(a){return d.observeNotification(a,b)}))})}},45826:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ArgumentOutOfRangeError=void 0,b.ArgumentOutOfRangeError=c(8708).createErrorClass(function(a){return function(){a(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},45925:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduleArray=void 0;var d=c(44230);b.scheduleArray=function(a,b){return new d.Observable(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})}},46397:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(){}return a.prototype.beginTransaction=function(a){throw Error("Not implemented")},a.prototype.run=function(a,b,c){throw Error("Not implemented")},a.prototype.commitTransaction=function(a){throw Error("Not implemented")},a.prototype.rollbackTransaction=function(a){throw Error("Not implemented")},a.prototype.resetAndFlush=function(){throw Error("Not implemented")},a.prototype.isOpen=function(){throw Error("Not implemented")},a.prototype.getProtocolVersion=function(){throw Error("Not implemented")},a.prototype.hasOngoingObservableRequests=function(){throw Error("Not implemented")},a}()},46496:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.UnsubscriptionError=void 0,b.UnsubscriptionError=c(8708).createErrorClass(function(a){return function(b){a(this),this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(a,b){return b+1+") "+a.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=b}})},46581:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.ClientCertificatesLoader=b.HostNameResolver=b.Channel=void 0;var e=d(c(5055)),f=d(c(63829)),g=d(c(1808));b.Channel=e.default,b.HostNameResolver=f.default,b.ClientCertificatesLoader=g.default},46791:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isObservable=void 0;var d=c(44230),e=c(14434);b.isObservable=function(a){return!!a&&(a instanceof d.Observable||e.isFunction(a.lift)&&e.isFunction(a.subscribe))}},47154:(a,b,c)=>{var d=function(a,b){var c,d,e,f,g={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return f={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f;function h(f){return function(h){var i=[f,h];if(c)throw TypeError("Generator is already executing.");for(;g;)try{if(c=1,d&&(e=2&i[0]?d.return:i[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,i[1])).done)return e;switch(d=0,e&&(i=[2&i[0],e.value]),i[0]){case 0:case 1:e=i;break;case 4:return g.label++,{value:i[1],done:!1};case 5:g.label++,d=i[1],i=[0];continue;case 7:i=g.ops.pop(),g.trys.pop();continue;default:if(!(e=(e=g.trys).length>0&&e[e.length-1])&&(6===i[0]||2===i[0])){g=0;continue}if(3===i[0]&&(!e||i[1]>e[0]&&i[1]<e[3])){g.label=i[1];break}if(6===i[0]&&g.label<e[1]){g.label=e[1],e=i;break}if(e&&g.label<e[2]){g.label=e[2],g.ops.push(i);break}e[2]&&g.ops.pop(),g.trys.pop();continue}i=b.call(a,g)}catch(a){i=[6,a],d=0}finally{c=e=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0}),b.generate=void 0;var e=c(70332),f=c(38857),g=c(84493),h=c(19828);b.generate=function(a,b,c,i,j){var k,l,m;function n(){var a;return d(this,function(d){switch(d.label){case 0:a=m,d.label=1;case 1:if(!(!b||b(a)))return[3,4];return[4,l(a)];case 2:d.sent(),d.label=3;case 3:return a=c(a),[3,1];case 4:return[2]}})}return 1==arguments.length?(m=a.initialState,b=a.condition,c=a.iterate,l=void 0===(k=a.resultSelector)?e.identity:k,j=a.scheduler):(m=a,!i||f.isScheduler(i)?(l=e.identity,j=i):l=i),g.defer(j?function(){return h.scheduleIterable(n(),j)}:n)}},47457:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.EMPTY_OBSERVER=b.SafeSubscriber=b.Subscriber=void 0;var f=c(14434),g=c(74038),h=c(52129),i=c(29939),j=c(74086),k=c(65472),l=c(49363),m=c(93719),n=function(a){function c(c){var d=a.call(this)||this;return d.isStopped=!1,c?(d.destination=c,g.isSubscription(c)&&c.add(d)):d.destination=b.EMPTY_OBSERVER,d}return e(c,a),c.create=function(a,b,c){return new r(a,b,c)},c.prototype.next=function(a){this.isStopped?t(k.nextNotification(a),this):this._next(a)},c.prototype.error=function(a){this.isStopped?t(k.errorNotification(a),this):(this.isStopped=!0,this._error(a))},c.prototype.complete=function(){this.isStopped?t(k.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},c.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,a.prototype.unsubscribe.call(this),this.destination=null)},c.prototype._next=function(a){this.destination.next(a)},c.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}},c.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},c}(g.Subscription);b.Subscriber=n;var o=Function.prototype.bind;function p(a,b){return o.call(a,b)}var q=function(){function a(a){this.partialObserver=a}return a.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(a){s(a)}},a.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(a){s(a)}else s(a)},a.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(a){s(a)}},a}(),r=function(a){function b(b,c,d){var e,g,i=a.call(this)||this;return f.isFunction(b)||!b?e={next:null!=b?b:void 0,error:null!=c?c:void 0,complete:null!=d?d:void 0}:i&&h.config.useDeprecatedNextContext?((g=Object.create(b)).unsubscribe=function(){return i.unsubscribe()},e={next:b.next&&p(b.next,g),error:b.error&&p(b.error,g),complete:b.complete&&p(b.complete,g)}):e=b,i.destination=new q(e),i}return e(b,a),b}(n);function s(a){h.config.useDeprecatedSynchronousErrorHandling?m.captureError(a):i.reportUnhandledError(a)}function t(a,b){var c=h.config.onStoppedNotification;c&&l.timeoutProvider.setTimeout(function(){return c(a,b)})}b.SafeSubscriber=r,b.EMPTY_OBSERVER={closed:!0,next:j.noop,error:function(a){throw a},complete:j.noop}},47934:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createInvalidObservableTypeError=void 0,b.createInvalidObservableTypeError=function(a){return TypeError("You provided "+(null!==a&&"object"==typeof a?"an invalid object":"'"+a+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},48252:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),h=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),i=this&&this.__importStar||(e=function(a){return(e=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=e(a),d=0;d<c.length;d++)"default"!==c[d]&&g(b,a,c[d]);return h(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.Unpacker=b.Packer=void 0;var j=i(c(51485));b.Packer=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b.prototype.disableByteArrays=function(){throw Error("Bolt V2 should always support byte arrays")},b}(j.Packer),b.Unpacker=function(a){function b(b,c){return void 0===b&&(b=!1),void 0===c&&(c=!1),a.call(this,b,c)||this}return f(b,a),b}(j.Unpacker)},48854:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.onErrorResumeNext=void 0;var d=c(44230),e=c(90999),f=c(383),g=c(74086),h=c(80241);b.onErrorResumeNext=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=e.argsOrArgArray(a);return new d.Observable(function(a){var b=0,d=function(){if(b<c.length){var e=void 0;try{e=h.innerFrom(c[b++])}catch(a){d();return}var i=new f.OperatorSubscriber(a,void 0,g.noop,g.noop);e.subscribe(i),i.add(d)}else a.complete()};d()})}},49185:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.throwIfEmpty=void 0;var d=c(4871),e=c(58555),f=c(383);function g(){return new d.EmptyError}b.throwIfEmpty=function(a){return void 0===a&&(a=g),e.operate(function(b,c){var d=!1;b.subscribe(f.createOperatorSubscriber(c,function(a){d=!0,c.next(a)},function(){return d?c.complete():c.error(a())}))})}},49310:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.switchAll=void 0;var d=c(85855),e=c(70332);b.switchAll=function(){return d.switchMap(e.identity)}},49363:(a,b)=>{var c=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},d=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.timeoutProvider=void 0,b.timeoutProvider={setTimeout:function(a,e){for(var f=[],g=2;g<arguments.length;g++)f[g-2]=arguments[g];var h=b.timeoutProvider.delegate;return(null==h?void 0:h.setTimeout)?h.setTimeout.apply(h,d([a,e],c(f))):setTimeout.apply(void 0,d([a,e],c(f)))},clearTimeout:function(a){var c=b.timeoutProvider.delegate;return((null==c?void 0:c.clearTimeout)||clearTimeout)(a)},delegate:void 0}},49364:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.argsArgArrayOrObject=void 0;var c=Array.isArray,d=Object.getPrototypeOf,e=Object.prototype,f=Object.keys;b.argsArgArrayOrObject=function(a){if(1===a.length){var b,g=a[0];if(c(g))return{args:g,keys:null};if((b=g)&&"object"==typeof b&&d(b)===e){var h=f(g);return{args:h.map(function(a){return g[a]}),keys:h}}}return{args:a,keys:null}}},49573:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=c(49619),h=c(27650),i=c(8506),j=c(87794),k=c(21764),l=c(54507),m=f(c(57236)),n=function(){function a(a){var b=a.connectionHolder,c=a.onClose,d=a.onBookmarks,e=a.onConnection,f=a.reactive,g=a.fetchSize,h=a.impersonatedUser,j=a.highRecordWatermark,k=a.lowRecordWatermark,l=a.notificationFilter,m=a.apiTelemetryConfig,n=this;this._connectionHolder=b,this._reactive=f,this._state=o.ACTIVE,this._onClose=c,this._onBookmarks=d,this._onConnection=e,this._onError=this._onErrorCallback.bind(this),this._fetchSize=g,this._onComplete=this._onCompleteCallback.bind(this),this._results=[],this._impersonatedUser=h,this._lowRecordWatermark=k,this._highRecordWatermark=j,this._bookmarks=i.Bookmarks.empty(),this._notificationFilter=l,this._apiTelemetryConfig=m,this._acceptActive=function(){},this._activePromise=new Promise(function(a,b){n._acceptActive=a})}return a.prototype._begin=function(a,b,c){var f=this;this._connectionHolder.getConnection().then(function(g){return d(f,void 0,void 0,function(){var d,f=this;return e(this,function(e){switch(e.label){case 0:if(this._onConnection(),null==g)return[3,2];return d=this,[4,a()];case 1:return d._bookmarks=e.sent(),[2,g.beginTransaction({bookmarks:this._bookmarks,txConfig:b,mode:this._connectionHolder.mode(),database:this._connectionHolder.database(),impersonatedUser:this._impersonatedUser,notificationFilter:this._notificationFilter,apiTelemetryConfig:this._apiTelemetryConfig,beforeError:function(a){null!=c&&c.onError(a),f._onError(a).catch(function(){})},afterComplete:function(a){null!=c&&c.onComplete(a),void 0!==a.db&&(null==c?void 0:c.onDB)!=null&&c.onDB(a.db),f._onComplete(a)}})];case 2:throw(0,l.newError)("No connection available")}})})}).catch(function(a){null!=c&&c.onError(a),f._onError(a).catch(function(){})}).finally(function(){return f._acceptActive()})},a.prototype.run=function(a,b){var c=(0,g.validateQueryAndParameters)(a,b),d=c.validatedQuery,e=c.params,f=this._state.run(d,e,{connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,reactive:this._reactive,fetchSize:this._fetchSize,highRecordWatermark:this._highRecordWatermark,lowRecordWatermark:this._lowRecordWatermark,preparationJob:this._activePromise});return this._results.push(f),f},a.prototype.commit=function(){var a=this,b=this._state.commit({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:function(b){return a._onCompleteCallback(b,a._bookmarks)},onConnection:this._onConnection,pendingResults:this._results,preparationJob:this._activePromise});return this._state=b.state,this._onClose(),new Promise(function(a,c){b.result.subscribe({onCompleted:function(){return a()},onError:function(a){return c(a)}})})},a.prototype.rollback=function(){var a=this._state.rollback({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,pendingResults:this._results,preparationJob:this._activePromise});return this._state=a.state,this._onClose(),new Promise(function(b,c){a.result.subscribe({onCompleted:function(){return b()},onError:function(a){return c(a)}})})},a.prototype.isOpen=function(){return this._state===o.ACTIVE},a.prototype.close=function(){return d(this,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:if(!this.isOpen())return[3,2];return[4,this.rollback()];case 1:a.sent(),a.label=2;case 2:return[2]}})})},a.prototype[Symbol.asyncDispose]=function(){return this.close()},a.prototype._onErrorCallback=function(a){return this._state===o.FAILED?Promise.resolve(null):(this._state=o.FAILED,this._onClose(),this._results.forEach(function(b){b.isOpen()&&b._streamObserverPromise.then(function(b){return b.onError(a)}).catch(function(a){})}),this._connectionHolder.releaseConnection())},a.prototype._onCompleteCallback=function(a,b){this._onBookmarks(new i.Bookmarks(null==a?void 0:a.bookmark),null!=b?b:i.Bookmarks.empty(),null==a?void 0:a.db)},a}(),o={ACTIVE:{commit:function(a){return{result:p(!0,a.connectionHolder,a.onError,a.onComplete,a.onConnection,a.pendingResults,a.preparationJob),state:o.SUCCEEDED}},rollback:function(a){return{result:p(!1,a.connectionHolder,a.onError,a.onComplete,a.onConnection,a.pendingResults,a.preparationJob),state:o.ROLLED_BACK}},run:function(a,b,c){var d=c.connectionHolder,e=c.onError,f=c.onComplete,g=c.onConnection,h=c.reactive,m=c.fetchSize,n=c.highRecordWatermark,o=c.lowRecordWatermark,p=c.preparationJob,r=null!=p?p:Promise.resolve();return q(d.getConnection().then(function(a){return r.then(function(){return a})}).then(function(c){if(g(),null!=c)return c.run(a,b,{bookmarks:i.Bookmarks.empty(),txConfig:j.TxConfig.empty(),beforeError:e,afterComplete:f,reactive:h,fetchSize:m,highRecordWatermark:n,lowRecordWatermark:o});throw(0,l.newError)("No connection available")}).catch(function(a){return new k.FailedObserver({error:a,onError:e})}),a,b,d,n,o)}},FAILED:{commit:function(a){var b=a.connectionHolder,c=a.onError;return a.onComplete,{result:q(new k.FailedObserver({error:(0,l.newError)("Cannot commit this transaction, because it has been rolled back either because of an error or explicit termination."),onError:c}),"COMMIT",{},b,0,0),state:o.FAILED}},rollback:function(a){var b=a.connectionHolder;return a.onError,a.onComplete,{result:q(new k.CompletedObserver,"ROLLBACK",{},b,0,0),state:o.FAILED}},run:function(a,b,c){var d=c.connectionHolder,e=c.onError;return c.onComplete,q(new k.FailedObserver({error:(0,l.newError)("Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination."),onError:e}),a,b,d,0,0)}},SUCCEEDED:{commit:function(a){var b=a.connectionHolder,c=a.onError;return a.onComplete,{result:q(new k.FailedObserver({error:(0,l.newError)("Cannot commit this transaction, because it has already been committed."),onError:c}),"COMMIT",{},h.EMPTY_CONNECTION_HOLDER,0,0),state:o.SUCCEEDED,connectionHolder:b}},rollback:function(a){var b=a.connectionHolder,c=a.onError;return a.onComplete,{result:q(new k.FailedObserver({error:(0,l.newError)("Cannot rollback this transaction, because it has already been committed."),onError:c}),"ROLLBACK",{},h.EMPTY_CONNECTION_HOLDER,0,0),state:o.SUCCEEDED,connectionHolder:b}},run:function(a,b,c){var d=c.connectionHolder,e=c.onError;return c.onComplete,q(new k.FailedObserver({error:(0,l.newError)("Cannot run query in this transaction, because it has already been committed."),onError:e}),a,b,d,0,0)}},ROLLED_BACK:{commit:function(a){var b=a.connectionHolder,c=a.onError;return a.onComplete,{result:q(new k.FailedObserver({error:(0,l.newError)("Cannot commit this transaction, because it has already been rolled back."),onError:c}),"COMMIT",{},b,0,0),state:o.ROLLED_BACK}},rollback:function(a){var b=a.connectionHolder;return a.onError,a.onComplete,{result:q(new k.FailedObserver({error:(0,l.newError)("Cannot rollback this transaction, because it has already been rolled back.")}),"ROLLBACK",{},b,0,0),state:o.ROLLED_BACK}},run:function(a,b,c){var d=c.connectionHolder,e=c.onError;return c.onComplete,q(new k.FailedObserver({error:(0,l.newError)("Cannot run query in this transaction, because it has already been rolled back."),onError:e}),a,b,d,0,0)}}};function p(a,b,c,d,e,f,g){var h=null!=g?g:Promise.resolve(),i=b.getConnection().then(function(a){return h.then(function(){return a})}).then(function(b){return e(),f.forEach(function(a){return a._cancel()}),Promise.all(f.map(function(a){return a.summary()})).then(function(e){if(null!=b)if(a)return b.commitTransaction({beforeError:c,afterComplete:d});else return b.rollbackTransaction({beforeError:c,afterComplete:d});throw(0,l.newError)("No connection available")})}).catch(function(a){return new k.FailedObserver({error:a,onError:c})});return new m.default(i,a?"COMMIT":"ROLLBACK",{},b,{high:Number.MAX_VALUE,low:Number.MAX_VALUE})}function q(a,b,c,d,e,f){return void 0===d&&(d=h.EMPTY_CONNECTION_HOLDER),new m.default(Promise.resolve(a),b,c,new h.ReadOnlyConnectionHolder(null!=d?d:h.EMPTY_CONNECTION_HOLDER),{low:f,high:e})}b.default=n},49619:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.ENCRYPTION_OFF=b.ENCRYPTION_ON=void 0,b.isEmptyObjectOrNull=function(a){if(null===a)return!0;if(!k(a))return!1;for(var b in a)if(void 0!==a[b])return!1;return!0},b.isObject=k,b.isString=m,b.assertObject=function(a,b){if(!k(a))throw TypeError(b+" expected to be an object but was: "+(0,j.stringify)(a));return a},b.assertString=l,b.assertNumber=function(a,b){if("number"!=typeof a)throw TypeError(b+" expected to be a number but was: "+(0,j.stringify)(a));return a},b.assertNumberOrInteger=function(a,b){if("number"!=typeof a&&"bigint"!=typeof a&&!(0,i.isInt)(a))throw TypeError(b+" expected to be either a number or an Integer object but was: "+(0,j.stringify)(a));return a},b.assertValidDate=function(a,b){if("[object Date]"!==Object.prototype.toString.call(a))throw TypeError(b+" expected to be a standard JavaScript Date but was: "+(0,j.stringify)(a));if(Number.isNaN(a.getTime()))throw TypeError(b+" expected to be valid JavaScript Date but its time was NaN: "+(0,j.stringify)(a));return a},b.toNumber=function(a){return a instanceof i.default?a.toNumber():"bigint"==typeof a?(0,i.int)(a).toNumber():a},b.validateQueryAndParameters=function(a,b,c){var d,e,f="",g=null!=b?b:{},h=null!=(d=null==c?void 0:c.skipAsserts)&&d;return"string"==typeof a?f=a:a instanceof String?f=a.toString():"object"==typeof a&&null!=a.text&&(f=a.text,g=null!=(e=a.parameters)?e:{}),h||(function(a){if(l(a,"Cypher query"),0===a.trim().length)throw TypeError("Cypher query is expected to be a non-empty string.")}(f),function(a){if(!k(a)){var b=null!=a.constructor?" "+a.constructor.name:"";throw TypeError("Query parameters are expected to either be undefined/null or an object, given:".concat(b," ").concat(JSON.stringify(a)))}}(g)),{validatedQuery:f,params:g}},b.equals=function a(b,c){var d,e;if(b===c)return!0;if(null===b||null===c)return!1;if("object"==typeof b&&"object"==typeof c){var f=Object.keys(b),g=Object.keys(c);if(f.length!==g.length)return!1;try{for(var i=h(f),j=i.next();!j.done;j=i.next()){var k=j.value;if(!a(b[k],c[k]))return!1}}catch(a){d={error:a}}finally{try{j&&!j.done&&(e=i.return)&&e.call(i)}finally{if(d)throw d.error}}return!0}return!1};var i=g(c(17459)),j=c(37459);function k(a){return"object"==typeof a&&!Array.isArray(a)&&null!==a}function l(a,b){if(!m(a))throw TypeError((0,j.stringify)(b)+" expected to be string but was: "+(0,j.stringify)(a));return a}function m(a){return"[object String]"===Object.prototype.toString.call(a)}b.ENCRYPTION_ON="ENCRYPTION_ON",b.ENCRYPTION_OFF="ENCRYPTION_OFF"},49677:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(1338)),i=g(c(79327)),j=g(c(90797)),k=c(81773).internal.constants.BOLT_PROTOCOL_V5_7,l=Object.freeze({OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"});b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.enrichErrorMetadata=function(a){return f(f({},a),{cause:null!==a.cause&&void 0!==a.cause?this.enrichErrorMetadata(a.cause):null,code:a.neo4j_code,diagnostic_record:null!==a.diagnostic_record?f(f({},l),a.diagnostic_record):null})},b}(h.default)},49761:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.rawPolyfilledDiagnosticRecord=void 0,b.rawPolyfilledDiagnosticRecord={OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"},Object.freeze(b.rawPolyfilledDiagnosticRecord)},49930:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(88829)),i=g(c(28881)),j=c(13273),k=c(95590),l=g(c(36895)),m=g(c(90797)),n=c(81773);n.internal.bookmarks.Bookmarks;var o=n.internal.constants.BOLT_PROTOCOL_V3,p=n.internal.txConfig.TxConfig,q="context",r="CALL dbms.cluster.routing.getRoutingTable($".concat(q,")"),s=new k.StreamObserver;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new m.default(Object.values(l.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.transformMetadata=function(a){return"t_first"in a&&(a.result_available_after=a.t_first,delete a.t_first),"t_last"in a&&(a.result_consumed_after=a.t_last,delete a.t_last),a},b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),f=c.notificationFilter,g=c.onError,h=c.onComplete,l=new k.LoginObserver({onError:function(a){return b._onLoginError(a,g)},onCompleted:function(a){return b._onLoginCompleted(a,e,h)}});return(0,j.assertNotificationFilterIsEmpty)(f,this._onProtocolError,l),this.write(i.default.hello(d,e),l,!0),l},b.prototype.prepareToClose=function(){this.write(i.default.goodbye(),s,!0)},b.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.impersonatedUser,g=b.notificationFilter,h=b.mode,l=b.beforeError,m=b.afterError,n=b.beforeComplete,o=b.afterComplete,p=new k.ResultStreamObserver({server:this._server,beforeError:l,afterError:m,beforeComplete:n,afterComplete:o});return p.prepareToHandleSingleResponse(),(0,j.assertDatabaseIsEmpty)(e,this._onProtocolError,p),(0,j.assertImpersonatedUserIsEmpty)(f,this._onProtocolError,p),(0,j.assertNotificationFilterIsEmpty)(g,this._onProtocolError,p),this.write(i.default.begin({bookmarks:c,txConfig:d,mode:h}),p,!0),p},b.prototype.commitTransaction=function(a){var b=void 0===a?{}:a,c=b.beforeError,d=b.afterError,e=b.beforeComplete,f=b.afterComplete,g=new k.ResultStreamObserver({server:this._server,beforeError:c,afterError:d,beforeComplete:e,afterComplete:f});return g.prepareToHandleSingleResponse(),this.write(i.default.commit(),g,!0),g},b.prototype.rollbackTransaction=function(a){var b=void 0===a?{}:a,c=b.beforeError,d=b.afterError,e=b.beforeComplete,f=b.afterComplete,g=new k.ResultStreamObserver({server:this._server,beforeError:c,afterError:d,beforeComplete:e,afterComplete:f});return g.prepareToHandleSingleResponse(),this.write(i.default.rollback(),g,!0),g},b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.impersonatedUser,l=d.notificationFilter,m=d.mode,n=d.beforeKeys,o=d.afterKeys,p=d.beforeError,q=d.afterError,r=d.beforeComplete,s=d.afterComplete,t=d.flush,u=d.highRecordWatermark,v=void 0===u?Number.MAX_VALUE:u,w=d.lowRecordWatermark,x=void 0===w?Number.MAX_VALUE:w,y=new k.ResultStreamObserver({server:this._server,beforeKeys:n,afterKeys:o,beforeError:p,afterError:q,beforeComplete:r,afterComplete:s,highRecordWatermark:v,lowRecordWatermark:x});return(0,j.assertDatabaseIsEmpty)(g,this._onProtocolError,y),(0,j.assertImpersonatedUserIsEmpty)(h,this._onProtocolError,y),(0,j.assertNotificationFilterIsEmpty)(l,this._onProtocolError,y),this.write(i.default.runWithMetadata(a,b,{bookmarks:e,txConfig:f,mode:m}),y,!1),this.write(i.default.pullAll(),y,void 0===t||t),y},b.prototype.requestRoutingInformation=function(a){var b,c=a.routingContext,d=a.sessionContext,e=a.onError,g=a.onCompleted,h=this.run(r,((b={})[q]=void 0===c?{}:c,b),f(f({},void 0===d?{}:d),{txConfig:p.empty()}));return new k.ProcedureRouteObserver({resultObserver:h,onProtocolError:this._onProtocolError,onError:e,onCompleted:g})},b}(h.default)},50221:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.pairwise=void 0;var d=c(58555),e=c(383);b.pairwise=function(){return d.operate(function(a,b){var c,d=!1;a.subscribe(e.createOperatorSubscriber(b,function(a){var e=c;c=a,d&&b.next([e,a]),d=!0}))})}},50674:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.debounce=void 0;var d=c(58555),e=c(74086),f=c(383),g=c(80241);b.debounce=function(a){return d.operate(function(b,c){var d=!1,h=null,i=null,j=function(){if(null==i||i.unsubscribe(),i=null,d){d=!1;var a=h;h=null,c.next(a)}};b.subscribe(f.createOperatorSubscriber(c,function(b){null==i||i.unsubscribe(),d=!0,h=b,i=f.createOperatorSubscriber(c,j,e.noop),g.innerFrom(a(b)).subscribe(i)},function(){j(),c.complete()},void 0,function(){h=i=null}))})}},50968:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(22997)),g=c(90797),h=c(14276),i=c(81773),j={INT8:200,INT16:201,INT32:202,INT64:203,FLOAT32:198,FLOAT64:193};function k(a,b){var c,d=((c=new DataView(new ArrayBuffer(2))).setInt16(0,1e3,!0),1e3===new Int16Array(c.buffer)[0]);if(!d)return b;var e=new DataView(new ArrayBuffer(b.byteLength)),f=new DataView(b),g=void 0,h=void 0,j=void 0;switch(a){case 200:j=1,g=e.setInt8.bind(e),h=f.getInt8.bind(f);break;case 201:j=2,g=e.setInt16.bind(e),h=f.getInt16.bind(f);break;case 202:case 198:j=4,g=e.setInt32.bind(e),h=f.getInt32.bind(f);break;case 203:case 193:j=8,g=e.setBigInt64.bind(e),h=f.getBigInt64.bind(f);break;default:throw(0,i.newError)("Vector is of unsupported type ".concat(a))}for(var k=0;k<b.byteLength;k+=j)g(k,h(k,d));return e.buffer}b.default=d(d({},f.default),{createVectorTransformer:function(){return new g.TypeTransformer({signature:86,isTypeInstance:function(a){return(0,i.isVector)(a)},toStructure:function(a){var b=j[a.getType()];if(void 0===b)throw(0,i.newError)("Vector object has unknown type: ".concat(a.getType()));var c=k(b,a.asTypedArray().buffer);return new h.structure.Structure(86,[Int8Array.from([b]),new Int8Array(c)])},fromStructure:function(a){var b=Uint8Array.from(a.fields[0])[0],c=k(b,a.fields[1].buffer);switch(b){case 200:return new i.Vector(new Int8Array(c));case 201:return new i.Vector(new Int16Array(c));case 202:return new i.Vector(new Int32Array(c));case 203:return new i.Vector(new BigInt64Array(c));case 198:return new i.Vector(new Float32Array(c));case 193:return new i.Vector(new Float64Array(c));default:throw(0,i.newError)("Received Vector structure with unsupported type marker: ".concat(b))}}})},createUnsupportedTypeTransformer:function(){return new g.TypeTransformer({signature:63,isTypeInstance:function(a){return(0,i.isUnsupportedType)(a)},toStructure:function(a){throw(0,i.newError)("UnsupportedType object can not be transmitted")},fromStructure:function(a){return new i.UnsupportedType(a.fields[0],a.fields[1],a.fields[2],a.fields[3].message)}})}})},51353:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.windowToggle=void 0;var e=c(57707),f=c(74038),g=c(58555),h=c(80241),i=c(383),j=c(74086),k=c(60543);b.windowToggle=function(a,b){return g.operate(function(c,g){var l=[],m=function(a){for(;0<l.length;)l.shift().error(a);g.error(a)};h.innerFrom(a).subscribe(i.createOperatorSubscriber(g,function(a){var c,d=new e.Subject;l.push(d);var n=new f.Subscription;try{c=h.innerFrom(b(a))}catch(a){m(a);return}g.next(d.asObservable()),n.add(c.subscribe(i.createOperatorSubscriber(g,function(){k.arrRemove(l,d),d.complete(),n.unsubscribe()},j.noop,m)))},j.noop)),c.subscribe(i.createOperatorSubscriber(g,function(a){var b,c,e=l.slice();try{for(var f=d(e),g=f.next();!g.done;g=f.next())g.value.next(a)}catch(a){b={error:a}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(b)throw b.error}}},function(){for(;0<l.length;)l.shift().complete();g.complete()},m,function(){for(;0<l.length;)l.shift().unsubscribe()}))})}},51485:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Unpacker=b.Packer=void 0;var d=c(22696),e=c(8049),f=c(62909),g=c(81773),h=g.error.PROTOCOL_ERROR;b.Packer=function(){function a(a){this._ch=a,this._byteArraysSupported=!0}return a.prototype.packable=function(a,b){var c,d=this;void 0===b&&(b=e.functional.identity);try{a=b(a)}catch(a){return function(){throw a}}if(null===a)return function(){return d._ch.writeUInt8(192)};if(!0===a)return function(){return d._ch.writeUInt8(195)};if(!1===a)return function(){return d._ch.writeUInt8(194)};if("number"==typeof a)return function(){return d.packFloat(a)};if("string"==typeof a)return function(){return d.packString(a)};else{if("bigint"==typeof a)return function(){return d.packInteger((0,g.int)(a))};if((0,g.isInt)(a))return function(){return d.packInteger(a)};if(a instanceof Int8Array)return function(){return d.packBytes(a)};if(a instanceof Array)return function(){d.packListHeader(a.length);for(var c=0;c<a.length;c++)d.packable(void 0===a[c]?null:a[c],b)()};if(null!=(c=a)&&"function"==typeof c[Symbol.iterator])return this.packableIterable(a,b);else if(a instanceof f.Structure){for(var h=[],i=0;i<a.fields.length;i++)h[i]=this.packable(a.fields[i],b);return function(){return d.packStruct(a.signature,h)}}else if("object"==typeof a)return function(){for(var c=Object.keys(a),e=0,f=0;f<c.length;f++)void 0!==a[c[f]]&&e++;d.packMapHeader(e);for(var f=0;f<c.length;f++){var g=c[f];void 0!==a[g]&&(d.packString(g),d.packable(a[g],b)())}};else return this._nonPackableValue("Unable to pack the given value: ".concat(a))}},a.prototype.packableIterable=function(a,b){try{var c=Array.from(a);return this.packable(c,b)}catch(b){throw(0,g.newError)("Cannot pack given iterable, ".concat(b.message,": ").concat(a))}},a.prototype.packStruct=function(a,b){b=b||[],this.packStructHeader(b.length,a);for(var c=0;c<b.length;c++)b[c]()},a.prototype.packInteger=function(a){var b=a.high,c=a.low;a.greaterThanOrEqual(-16)&&a.lessThan(128)?this._ch.writeInt8(c):a.greaterThanOrEqual(-128)&&a.lessThan(-16)?(this._ch.writeUInt8(200),this._ch.writeInt8(c)):a.greaterThanOrEqual(-32768)&&a.lessThan(32768)?(this._ch.writeUInt8(201),this._ch.writeInt16(c)):(a.greaterThanOrEqual(-0x80000000)&&a.lessThan(0x80000000)?this._ch.writeUInt8(202):(this._ch.writeUInt8(203),this._ch.writeInt32(b)),this._ch.writeInt32(c))},a.prototype.packFloat=function(a){this._ch.writeUInt8(193),this._ch.writeFloat64(a)},a.prototype.packString=function(a){var b=d.utf8.encode(a),c=b.length;if(c<16)this._ch.writeUInt8(128|c),this._ch.writeBytes(b);else if(c<256)this._ch.writeUInt8(208),this._ch.writeUInt8(c),this._ch.writeBytes(b);else if(c<65536)this._ch.writeUInt8(209),this._ch.writeUInt8(c/256|0),this._ch.writeUInt8(c%256),this._ch.writeBytes(b);else if(c<0x100000000)this._ch.writeUInt8(210),this._ch.writeUInt8((c/0x1000000|0)%256),this._ch.writeUInt8((c/65536|0)%256),this._ch.writeUInt8((c/256|0)%256),this._ch.writeUInt8(c%256),this._ch.writeBytes(b);else throw(0,g.newError)("UTF-8 strings of size "+c+" are not supported")},a.prototype.packListHeader=function(a){if(a<16)this._ch.writeUInt8(144|a);else if(a<256)this._ch.writeUInt8(212),this._ch.writeUInt8(a);else if(a<65536)this._ch.writeUInt8(213),this._ch.writeUInt8((a/256|0)%256),this._ch.writeUInt8(a%256);else if(a<0x100000000)this._ch.writeUInt8(214),this._ch.writeUInt8((a/0x1000000|0)%256),this._ch.writeUInt8((a/65536|0)%256),this._ch.writeUInt8((a/256|0)%256),this._ch.writeUInt8(a%256);else throw(0,g.newError)("Lists of size "+a+" are not supported")},a.prototype.packBytes=function(a){if(this._byteArraysSupported){this.packBytesHeader(a.length);for(var b=0;b<a.length;b++)this._ch.writeInt8(a[b])}else throw(0,g.newError)("Byte arrays are not supported by the database this driver is connected to")},a.prototype.packBytesHeader=function(a){if(a<256)this._ch.writeUInt8(204),this._ch.writeUInt8(a);else if(a<65536)this._ch.writeUInt8(205),this._ch.writeUInt8((a/256|0)%256),this._ch.writeUInt8(a%256);else if(a<0x100000000)this._ch.writeUInt8(206),this._ch.writeUInt8((a/0x1000000|0)%256),this._ch.writeUInt8((a/65536|0)%256),this._ch.writeUInt8((a/256|0)%256),this._ch.writeUInt8(a%256);else throw(0,g.newError)("Byte arrays of size "+a+" are not supported")},a.prototype.packMapHeader=function(a){if(a<16)this._ch.writeUInt8(160|a);else if(a<256)this._ch.writeUInt8(216),this._ch.writeUInt8(a);else if(a<65536)this._ch.writeUInt8(217),this._ch.writeUInt8(a/256|0),this._ch.writeUInt8(a%256);else if(a<0x100000000)this._ch.writeUInt8(218),this._ch.writeUInt8((a/0x1000000|0)%256),this._ch.writeUInt8((a/65536|0)%256),this._ch.writeUInt8((a/256|0)%256),this._ch.writeUInt8(a%256);else throw(0,g.newError)("Maps of size "+a+" are not supported")},a.prototype.packStructHeader=function(a,b){if(a<16)this._ch.writeUInt8(176|a),this._ch.writeUInt8(b);else if(a<256)this._ch.writeUInt8(220),this._ch.writeUInt8(a),this._ch.writeUInt8(b);else if(a<65536)this._ch.writeUInt8(221),this._ch.writeUInt8(a/256|0),this._ch.writeUInt8(a%256);else throw(0,g.newError)("Structures of size "+a+" are not supported")},a.prototype.disableByteArrays=function(){this._byteArraysSupported=!1},a.prototype._nonPackableValue=function(a){return function(){throw(0,g.newError)(a,h)}},a}(),b.Unpacker=function(){function a(a,b){void 0===a&&(a=!1),void 0===b&&(b=!1),this._disableLosslessIntegers=a,this._useBigInt=b}return a.prototype.unpack=function(a,b){void 0===b&&(b=e.functional.identity);var c=a.readUInt8(),d=240&c,f=15&c;if(192===c)return null;var h=this._unpackBoolean(c);if(null!==h)return h;var i=this._unpackNumberOrInteger(c,a);if(null!==i){if((0,g.isInt)(i)){if(this._useBigInt)return i.toBigInt();else if(this._disableLosslessIntegers)return i.toNumberOrInfinity()}return i}var j=this._unpackString(c,d,f,a);if(null!==j)return j;var k=this._unpackList(c,d,f,a,b);if(null!==k)return k;var l=this._unpackByteArray(c,a);if(null!==l)return l;var m=this._unpackMap(c,d,f,a,b);if(null!==m)return m;var n=this._unpackStruct(c,d,f,a,b);if(null!==n)return n;throw(0,g.newError)("Unknown packed value with marker "+c.toString(16))},a.prototype.unpackInteger=function(a){var b=a.readUInt8(),c=this._unpackInteger(b,a);if(null==c)throw(0,g.newError)("Unable to unpack integer value with marker "+b.toString(16));return c},a.prototype._unpackBoolean=function(a){return 195===a||194!==a&&null},a.prototype._unpackNumberOrInteger=function(a,b){return 193===a?b.readFloat64():this._unpackInteger(a,b)},a.prototype._unpackInteger=function(a,b){if(a>=0&&a<128)return(0,g.int)(a);if(a>=240&&a<256)return(0,g.int)(a-256);if(200===a)return(0,g.int)(b.readInt8());if(201===a)return(0,g.int)(b.readInt16());if(202===a){var c=b.readInt32();return(0,g.int)(c)}else{if(203!==a)return null;var d=b.readInt32(),e=b.readInt32();return new g.Integer(e,d)}},a.prototype._unpackString=function(a,b,c,e){return 128===b?d.utf8.decode(e,c):208===a?d.utf8.decode(e,e.readUInt8()):209===a?d.utf8.decode(e,e.readUInt16()):210===a?d.utf8.decode(e,e.readUInt32()):null},a.prototype._unpackList=function(a,b,c,d,e){return 144===b?this._unpackListWithSize(c,d,e):212===a?this._unpackListWithSize(d.readUInt8(),d,e):213===a?this._unpackListWithSize(d.readUInt16(),d,e):214===a?this._unpackListWithSize(d.readUInt32(),d,e):null},a.prototype._unpackListWithSize=function(a,b,c){for(var d=[],e=0;e<a;e++)d.push(this.unpack(b,c));return d},a.prototype._unpackByteArray=function(a,b){return 204===a?this._unpackByteArrayWithSize(b.readUInt8(),b):205===a?this._unpackByteArrayWithSize(b.readUInt16(),b):206===a?this._unpackByteArrayWithSize(b.readUInt32(),b):null},a.prototype._unpackByteArrayWithSize=function(a,b){for(var c=new Int8Array(a),d=0;d<a;d++)c[d]=b.readInt8();return c},a.prototype._unpackMap=function(a,b,c,d,e){return 160===b?this._unpackMapWithSize(c,d,e):216===a?this._unpackMapWithSize(d.readUInt8(),d,e):217===a?this._unpackMapWithSize(d.readUInt16(),d,e):218===a?this._unpackMapWithSize(d.readUInt32(),d,e):null},a.prototype._unpackMapWithSize=function(a,b,c){for(var d={},e=0;e<a;e++)d[this.unpack(b,c)]=this.unpack(b,c);return d},a.prototype._unpackStruct=function(a,b,c,d,e){return 176===b?this._unpackStructWithSize(c,d,e):220===a?this._unpackStructWithSize(d.readUInt8(),d,e):221===a?this._unpackStructWithSize(d.readUInt16(),d,e):null},a.prototype._unpackStructWithSize=function(a,b,c){for(var d=b.readUInt8(),e=new f.Structure(d,[]),g=0;g<a;g++)e.fields.push(this.unpack(b,c));return c(e)},a}()},51835:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0}),b.DateTime=b.LocalDateTime=b.Date=b.Time=b.LocalTime=b.Duration=void 0,b.isDuration=function(a){return z(a,n)},b.isLocalTime=function(a){return z(a,o)},b.isTime=function(a){return z(a,p)},b.isDate=function(a){return z(a,q)},b.isLocalDateTime=function(a){return z(a,r)},b.isDateTime=function(a){return z(a,s)};var i=g(c(21182)),j=c(49619),k=c(54507),l=g(c(17459)),m={value:!0,enumerable:!1,configurable:!1,writable:!1},n="__isDuration__",o="__isLocalTime__",p="__isTime__",q="__isDate__",r="__isLocalDateTime__",s="__isDateTime__",t=function(){function a(a,b,c,d){this.months=(0,j.assertNumberOrInteger)(a,"Months"),this.days=(0,j.assertNumberOrInteger)(b,"Days"),(0,j.assertNumberOrInteger)(c,"Seconds"),(0,j.assertNumberOrInteger)(d,"Nanoseconds"),this.seconds=i.normalizeSecondsForDuration(c,d),"number"==typeof c&&(0,l.isInt)(this.seconds)&&(this.seconds=this.seconds.toNumber()),"bigint"==typeof c&&(0,l.isInt)(this.seconds)&&(this.seconds=this.seconds.toBigInt()),this.nanoseconds=i.normalizeNanosecondsForDuration(d),"number"==typeof d&&(0,l.isInt)(this.nanoseconds)&&(this.nanoseconds=this.nanoseconds.toNumber()),"bigint"==typeof d&&(0,l.isInt)(this.nanoseconds)&&(this.nanoseconds=this.nanoseconds.toBigInt()),Object.freeze(this)}return a.prototype.toString=function(){return i.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},a}();b.Duration=t,Object.defineProperty(t.prototype,n,m);var u=function(){function a(a,b,c,d){this.hour=i.assertValidHour(a),this.minute=i.assertValidMinute(b),this.second=i.assertValidSecond(c),this.nanosecond=i.assertValidNanosecond(d),Object.freeze(this)}return a.fromStandardDate=function(b,c){B(b,c);var d=i.totalNanoseconds(b,c);return new a(b.getHours(),b.getMinutes(),b.getSeconds(),d instanceof l.default?d.toInt():"bigint"==typeof d?(0,l.int)(d).toInt():d)},a.prototype.toString=function(){return i.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},a}();b.LocalTime=u,Object.defineProperty(u.prototype,o,m);var v=function(){function a(a,b,c,d,e){this.hour=i.assertValidHour(a),this.minute=i.assertValidMinute(b),this.second=i.assertValidSecond(c),this.nanosecond=i.assertValidNanosecond(d),this.timeZoneOffsetSeconds=(0,j.assertNumberOrInteger)(e,"Time zone offset in seconds"),Object.freeze(this)}return a.fromStandardDate=function(b,c){return B(b,c),new a(b.getHours(),b.getMinutes(),b.getSeconds(),(0,l.toNumber)(i.totalNanoseconds(b,c)),i.timeZoneOffsetInSeconds(b))},a.prototype.toString=function(){return i.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+i.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},a}();b.Time=v,Object.defineProperty(v.prototype,p,m);var w=function(){function a(a,b,c){this.year=i.assertValidYear(a),this.month=i.assertValidMonth(b),this.day=i.assertValidDay(c),Object.freeze(this)}return a.fromStandardDate=function(a){return this.fromStandardDateLocal(a)},a.fromStandardDateLocal=function(b){return B(b),new a(b.getFullYear(),b.getMonth()+1,b.getDate())},a.fromStandardDateUTC=function(b){return B(b),new a(b.getUTCFullYear(),b.getUTCMonth()+1,b.getUTCDate())},a.prototype.toStandardDate=function(){return i.isoStringToStandardDate(this.toString())},a.prototype.toString=function(){return i.dateToIsoString(this.year,this.month,this.day)},a}();b.Date=w,Object.defineProperty(w.prototype,q,m);var x=function(){function a(a,b,c,d,e,f,g){this.year=i.assertValidYear(a),this.month=i.assertValidMonth(b),this.day=i.assertValidDay(c),this.hour=i.assertValidHour(d),this.minute=i.assertValidMinute(e),this.second=i.assertValidSecond(f),this.nanosecond=i.assertValidNanosecond(g),Object.freeze(this)}return a.fromStandardDate=function(b,c){return B(b,c),new a(b.getFullYear(),b.getMonth()+1,b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),(0,l.toNumber)(i.totalNanoseconds(b,c)))},a.prototype.toStandardDate=function(){return i.isoStringToStandardDate(this.toString())},a.prototype.toString=function(){return A(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},a}();b.LocalDateTime=x,Object.defineProperty(x.prototype,r,m);var y=function(){function a(a,b,c,d,e,f,g,l,m){this.year=i.assertValidYear(a),this.month=i.assertValidMonth(b),this.day=i.assertValidDay(c),this.hour=i.assertValidHour(d),this.minute=i.assertValidMinute(e),this.second=i.assertValidSecond(f),this.nanosecond=i.assertValidNanosecond(g);var n=h(function(a,b){var c=null!=a,d=null!=b&&""!==b;if(!c&&!d)throw(0,k.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(a," and id: ").concat(b));var e=[void 0,void 0];return c&&((0,j.assertNumberOrInteger)(a,"Time zone offset in seconds"),e[0]=a),d&&((0,j.assertString)(b,"Time zone ID"),i.assertValidZoneId("Time zone ID",b),e[1]=b),e}(l,m),2),o=n[0],p=n[1];this.timeZoneOffsetSeconds=o,this.timeZoneId=null!=p?p:void 0,Object.freeze(this)}return a.fromStandardDate=function(b,c){return B(b,c),new a(b.getFullYear(),b.getMonth()+1,b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),(0,l.toNumber)(i.totalNanoseconds(b,c)),i.timeZoneOffsetInSeconds(b),null)},a.prototype.toStandardDate=function(){return i.toStandardDate(this._toUTC())},a.prototype.toString=function(){var a;return A(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(null!=this.timeZoneOffsetSeconds?i.timeZoneOffsetToIsoString(null!=(a=this.timeZoneOffsetSeconds)?a:0):"")+(null!=this.timeZoneId?"[".concat(this.timeZoneId,"]"):"")},a.prototype._toUTC=function(){if(void 0===this.timeZoneOffsetSeconds)throw Error("Requires DateTime created with time zone offset");var a,b=i.localDateTimeToEpochSecond(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond).subtract(null!=(a=this.timeZoneOffsetSeconds)?a:0);return(0,l.int)(b).multiply(1e3).add((0,l.int)(this.nanosecond).div(1e6)).toNumber()},a}();function z(a,b){return null!=a&&!0===a[b]}function A(a,b,c,d,e,f,g){return i.dateToIsoString(a,b,c)+"T"+i.timeToIsoString(d,e,f,g)}function B(a,b){(0,j.assertValidDate)(a,"Standard date"),null!=b&&(0,j.assertNumberOrInteger)(b,"Nanosecond")}b.DateTime=y,Object.defineProperty(y.prototype,s,m)},52077:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=c(14276),h=c(81773),i=f(c(27038)),j=f(c(85273));b.default=d(d(d({},i.default),j.default),{createNodeTransformer:function(a){return i.default.createNodeTransformer(a).extendsWith({fromStructure:function(a){g.structure.verifyStructSize("Node",4,a.size);var b=e(a.fields,4),c=b[0],d=b[1],f=b[2],i=b[3];return new h.Node(c,d,f,i)}})},createRelationshipTransformer:function(a){return i.default.createRelationshipTransformer(a).extendsWith({fromStructure:function(a){g.structure.verifyStructSize("Relationship",8,a.size);var b=e(a.fields,8),c=b[0],d=b[1],f=b[2],i=b[3],j=b[4],k=b[5],l=b[6],m=b[7];return new h.Relationship(c,d,f,i,j,k,l,m)}})},createUnboundRelationshipTransformer:function(a){return i.default.createUnboundRelationshipTransformer(a).extendsWith({fromStructure:function(a){g.structure.verifyStructSize("UnboundRelationship",4,a.size);var b=e(a.fields,4),c=b[0],d=b[1],f=b[2],i=b[3];return new h.UnboundRelationship(c,d,f,i)}})}})},52129:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.config=void 0,b.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},52553:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.startWith=void 0;var d=c(37965),e=c(53851),f=c(58555);b.startWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=e.popScheduler(a);return f.operate(function(b,e){(c?d.concat(a,b,c):d.concat(a,b)).subscribe(e)})}},53089:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(33441)),h=c(54507),i=new(function(){function a(){}return a.prototype.eagerResultTransformer=function(){return j},a.prototype.eager=function(){return j},a.prototype.mappedResultTransformer=function(a){return k(a)},a.prototype.mapped=function(a){return k(a)},a.prototype.first=function(){return l},a.prototype.summary=function(){return m},a.prototype.hydrated=function(a,b){var c=this;return function(f){return d(c,void 0,void 0,function(){return e(this,function(c){switch(c.label){case 0:return[4,f.as(a,b).then()];case 1:return[2,c.sent()]}})})}},a}());function j(a){return d(this,void 0,void 0,function(){var b,c,d,f;return e(this,function(e){switch(e.label){case 0:return[4,a];case 1:return c=(b=e.sent()).summary,d=b.records,[4,a.keys()];case 2:return f=e.sent(),[2,new g.default(f,d,c)]}})})}function k(a){var b=this;if(null==a||null==a.collect&&null==a.map)throw(0,h.newError)("Requires a map or/and a collect functions.");return function(c){return d(b,void 0,void 0,function(){return e(this,function(b){switch(b.label){case 0:return[4,new Promise(function(b,d){var e={records:[],keys:[]};c.subscribe({onKeys:function(a){e.keys=a},onNext:function(b){if(null!=a.map){var c=a.map(b);void 0!==c&&e.records.push(c)}else e.records.push(b)},onCompleted:function(c){null!=a.collect?b(a.collect(e.records,c,e.keys)):b({records:e.records,summary:c,keys:e.keys})},onError:function(a){d(a)}})})];case 1:return[2,b.sent()]}})})}}function l(a){return d(this,void 0,void 0,function(){var b,c,d,f;return e(this,function(e){switch(e.label){case 0:return[4,(b=a[Symbol.asyncIterator]()).next()];case 1:d=(c=e.sent()).value,f=c.done,e.label=2;case 2:if(e.trys.push([2,,3,6]),!0===f)return[2,void 0];return[2,d];case 3:if(null==b.return)return[3,5];return[4,b.return()];case 4:e.sent(),e.label=5;case 5:return[7];case 6:return[2]}})})}function m(a){return d(this,void 0,void 0,function(){return e(this,function(b){switch(b.label){case 0:return[4,a.summary()];case 1:return[2,b.sent()]}})})}Object.freeze(i),b.default=i},53316:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.race=void 0;var f=c(90999),g=c(64412);b.race=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return g.raceWith.apply(void 0,e([],d(f.argsOrArgArray(a))))}},53552:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(45483)),h=f(c(28881)),i=c(95590),j=c(81773),k=c(13273),l=f(c(24709)),m=f(c(90797)),n=j.internal.constants.BOLT_PROTOCOL_V4_1;b.default=function(a){function b(b,c,d,e,f,g,h){void 0===e&&(e=function(){return null});var i=a.call(this,b,c,d,e,f,g)||this;return i._serversideRouting=h,i}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new m.default(Object.values(l.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),f=c.notificationFilter,g=c.onError,j=c.onComplete,l=new i.LoginObserver({onError:function(a){return b._onLoginError(a,g)},onCompleted:function(a){return b._onLoginCompleted(a,e,j)}});return(0,k.assertNotificationFilterIsEmpty)(f,this._onProtocolError,l),this.write(h.default.hello(d,e,this._serversideRouting),l,!0),l},b}(g.default)},53659:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.connect=void 0;var d=c(57707),e=c(80241),f=c(58555),g=c(66764),h={connector:function(){return new d.Subject}};b.connect=function(a,b){void 0===b&&(b=h);var c=b.connector;return f.operate(function(b,d){var f=c();e.innerFrom(a(g.fromSubscribable(f))).subscribe(d),d.add(b.subscribe(f))})}},53692:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.pluck=void 0;var d=c(53767);b.pluck=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=a.length;if(0===c)throw Error("list of properties cannot be empty.");return d.map(function(b){for(var d=b,e=0;e<c;e++){var f=null==d?void 0:d[a[e]];if(void 0===f)return;d=f}return d})}},53767:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.map=void 0;var d=c(58555),e=c(383);b.map=function(a,b){return d.operate(function(c,d){var f=0;c.subscribe(e.createOperatorSubscriber(d,function(c){d.next(a.call(b,c,f++))}))})}},53851:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.popNumber=b.popScheduler=b.popResultSelector=void 0;var d=c(14434),e=c(38857);function f(a){return a[a.length-1]}b.popResultSelector=function(a){return d.isFunction(f(a))?a.pop():void 0},b.popScheduler=function(a){return e.isScheduler(f(a))?a.pop():void 0},b.popNumber=function(a,b){return"number"==typeof f(a)?a.pop():b}},53982:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduleAsyncIterable=void 0;var d=c(44230),e=c(60510);b.scheduleAsyncIterable=function(a,b){if(!a)throw Error("Iterable cannot be null");return new d.Observable(function(c){e.executeSchedule(c,b,function(){var d=a[Symbol.asyncIterator]();e.executeSchedule(c,b,function(){d.next().then(function(a){a.done?c.complete():c.next(a.value)})},0,!0)})})}},54173:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0});var f=c(81334);b.default=function(){function a(a){this._createSession=a}return a.prototype.execute=function(a,b,c){return d(this,void 0,void 0,function(){var g,h,i=this;return e(this,function(j){switch(j.label){case 0:var k,l,m;g=this._createSession({database:a.database,bookmarkManager:a.bookmarkManager,impersonatedUser:a.impersonatedUser,auth:a.auth}),k=a.signal,l="abort",m=function(){return d(i,void 0,void 0,function(){return e(this,function(a){switch(a.label){case 0:return[4,g.close()];case 1:return[2,a.sent()]}})})},"function"==typeof(null==k?void 0:k.addEventListener)&&k.addEventListener(l,m),h={uninstall:function(){"function"==typeof(null==k?void 0:k.removeEventListener)&&k.removeEventListener(l,m)}},g._configureTransactionExecutor(!0,f.TELEMETRY_APIS.EXECUTE_QUERY),j.label=1;case 1:return j.trys.push([1,,3,5]),[4,("READ"===a.routing?g.executeRead.bind(g):g.executeWrite.bind(g))(function(f){return d(i,void 0,void 0,function(){var d;return e(this,function(e){switch(e.label){case 0:return d=f.run(b,c),[4,a.resultTransformer(d)];case 1:return[2,e.sent()]}})})},a.transactionConfig)];case 2:return[2,j.sent()];case 3:return h.uninstall(),[4,g.close()];case 4:return j.sent(),[7];case 5:return[2]}})})},a}()},54261:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.timestamp=void 0;var d=c(83476),e=c(53767);b.timestamp=function(a){return void 0===a&&(a=d.dateTimestampProvider),e.map(function(b){return{value:b,timestamp:a.now()}})}},54507:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),h=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),i=this&&this.__importStar||(e=function(a){return(e=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=e(a),d=0;d<c.length;d++)"default"!==c[d]&&g(b,a,c[d]);return h(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.PROTOCOL_ERROR=b.SESSION_EXPIRED=b.SERVICE_UNAVAILABLE=b.GQLError=b.Neo4jError=b.isRetryableError=b.isRetriableError=void 0,b.newError=function(a,b,c,d,e,f){return new q(a,null!=b?b:"N/A",null!=d?d:"50N42",null!=e?e:"error: general processing exception - unexpected error. "+a,null!=f?f:k.rawPolyfilledDiagnosticRecord,c)},b.newGQLError=function(a,b,c,d,e){return new p(a,null!=c?c:"50N42",null!=d?d:"error: general processing exception - unexpected error. "+a,null!=e?e:k.rawPolyfilledDiagnosticRecord,b)};var j=i(c(37459)),k=c(49761),l={DATABASE_ERROR:"DATABASE_ERROR",CLIENT_ERROR:"CLIENT_ERROR",TRANSIENT_ERROR:"TRANSIENT_ERROR",UNKNOWN:"UNKNOWN"};Object.freeze(l);var m=Object.values(l),n="ServiceUnavailable";b.SERVICE_UNAVAILABLE=n;var o="SessionExpired";b.SESSION_EXPIRED=o,b.PROTOCOL_ERROR="ProtocolError";var p=function(a){function b(c,d,e,f,g){var h,i,j=a.call(this,c,null!=g?{cause:g}:void 0)||this;return j.constructor=b,j.__proto__=b.prototype,j.cause=null!=g?g:void 0,j.gqlStatus=d,j.gqlStatusDescription=e,j.diagnosticRecord=f,j.classification=void 0===(h=j.diagnosticRecord)||void 0===h._classification?"UNKNOWN":m.includes(h._classification)?null==h?void 0:h._classification:"UNKNOWN",j.rawClassification=null!=(i=null==f?void 0:f._classification)?i:void 0,j.name="GQLError",j}return f(b,a),b.prototype.containsGqlCause=function(a){return void 0!==this.findByGqlStatus(a)},b.prototype.findByGqlStatus=function(a){return this.gqlStatus===a?this:void 0!==this.cause&&(this.cause instanceof b||this.cause instanceof q)?this.cause.findByGqlStatus(a):void 0},Object.defineProperty(b.prototype,"diagnosticRecordAsJsonString",{get:function(){return j.stringify(this.diagnosticRecord,{useCustomToString:!0})},enumerable:!1,configurable:!0}),b}(Error);b.GQLError=p;var q=function(a){function b(c,d,e,f,g,h){var i,j,k=a.call(this,c,e,f,g,h)||this;k.constructor=b,k.__proto__=b.prototype,k.code=d,k.name="Neo4jError";var l=(i=d)===n||i===o||"Neo.ClientError.Security.AuthorizationExpired"===i||(null==(j=i)?void 0:j.includes("TransientError"))===!0;return k.retriable=l,k.retryable=l,k}return f(b,a),b.isRetriable=function(a){return this.isRetryable(a)},b.isRetryable=function(a){return null!=a&&a instanceof b&&a.retryable},b}(p);b.Neo4jError=q,b.isRetriableError=q.isRetriable,b.isRetryableError=q.isRetryable},55609:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AnimationFrameScheduler=void 0,b.AnimationFrameScheduler=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b.prototype.flush=function(a){this._active=!0,a?b=a.id:(b=this._scheduled,this._scheduled=void 0);var b,c,d=this.actions;a=a||d.shift();do if(c=a.execute(a.state,a.delay))break;while((a=d[0])&&a.id===b&&d.shift());if(this._active=!1,c){for(;(a=d[0])&&a.id===b&&d.shift();)a.unsubscribe();throw c}},b}(c(23004).AsyncScheduler)},55856:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.asap=b.asapScheduler=void 0;var d=c(40366);b.asapScheduler=new(c(35875)).AsapScheduler(d.AsapAction),b.asap=b.asapScheduler},56030:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.concatAll=void 0;var d=c(79526);b.concatAll=function(){return d.mergeAll(1)}},56214:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.delayWhen=void 0;var d=c(37965),e=c(25070),f=c(95338),g=c(570),h=c(19735),i=c(80241);b.delayWhen=function a(b,c){return c?function(g){return d.concat(c.pipe(e.take(1),f.ignoreElements()),g.pipe(a(b)))}:h.mergeMap(function(a,c){return i.innerFrom(b(a,c)).pipe(e.take(1),g.mapTo(a))})}},56358:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var e=c(26337),f=d(c(17701));d(c(81773)),b.default=function(){function a(a){this._txc=a}return a.prototype.run=function(a,b){var c=this;return new f.default(new e.Observable(function(d){try{d.next(c._txc.run(a,b)),d.complete()}catch(a){d.error(a)}return function(){}}))},a.prototype.commit=function(){var a=this;return new e.Observable(function(b){a._txc.commit().then(function(){b.complete()}).catch(function(a){return b.error(a)})})},a.prototype.rollback=function(){var a=this;return new e.Observable(function(b){a._txc.rollback().then(function(){b.complete()}).catch(function(a){return b.error(a)})})},a.prototype.isOpen=function(){return this._txc.isOpen()},a.prototype.close=function(){var a=this;return new e.Observable(function(b){a._txc.close().then(function(){b.complete()}).catch(function(a){return b.error(a)})})},a}()},56724:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.elementAt=void 0;var d=c(45826),e=c(97991),f=c(49185),g=c(20018),h=c(25070);b.elementAt=function(a,b){if(a<0)throw new d.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(i){return i.pipe(e.filter(function(b,c){return c===a}),h.take(1),c?g.defaultIfEmpty(b):f.throwIfEmpty(function(){return new d.ArgumentOutOfRangeError}))}}},56862:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.catchError=void 0;var d=c(80241),e=c(383),f=c(58555);b.catchError=function a(b){return f.operate(function(c,f){var g,h=null,i=!1;h=c.subscribe(e.createOperatorSubscriber(f,void 0,void 0,function(e){g=d.innerFrom(b(e,a(b)(c))),h?(h.unsubscribe(),h=null,g.subscribe(f)):i=!0})),i&&(h.unsubscribe(),h=null,g.subscribe(f))})}},57236:function(a,b,c){var d,e,f,g=this&&this.__extends||(e=function(a,b){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}e(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),h=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},i=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},j=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var k=j(c(99381)),l=c(86163),m=c(54507),n=l.connectionHolder.EMPTY_CONNECTION_HOLDER,o=function(a){console.log("Uncaught error when processing result: "+a)},p=function(a){},q=function(a){},r=function(){function a(a,b,c,d,e){var g;void 0===e&&(e={high:Number.MAX_VALUE,low:Number.MAX_VALUE}),this[f]="Result",this._stack=null!=(g=Error("")).stack?g.stack.replace(/^Error(\n\r)*/,""):null,this._streamObserverPromise=a,this._p=null,this._query=b,this._parameters=null!=c?c:{},this._connectionHolder=null!=d?d:n,this._keys=null,this._summary=null,this._error=null,this._mapper=null,this._watermarks=e}return a.prototype.as=function(a,b){if(null!=this._p)throw(0,m.newError)("Cannot call .as() on a Result that is being consumed");return this._mapper=function(c){return c.as(a,b)},this},a.prototype.keys=function(){var a=this;return null!==this._keys?Promise.resolve(this._keys):null!==this._error?Promise.reject(this._error):new Promise(function(b,c){a._streamObserverPromise.then(function(d){return d.subscribe(a._decorateObserver({onKeys:function(a){return b(a)},onError:function(a){return c(a)}}))}).catch(c)})},a.prototype.summary=function(){var a=this;return null!==this._summary?Promise.resolve(this._summary):null!==this._error?Promise.reject(this._error):new Promise(function(b,c){a._streamObserverPromise.then(function(d){d.cancel(),d.subscribe(a._decorateObserver({onCompleted:function(a){return b(a)},onError:function(a){return c(a)}}))}).catch(c)})},a.prototype._getOrCreatePromise=function(){var a=this;return null==this._p&&(this._p=new Promise(function(b,c){var d=[];a.subscribe({onNext:function(b){null!=a._mapper?d.push(a._mapper(b)):d.push(b)},onCompleted:function(a){b({records:d,summary:a})},onError:function(a){c(a)}})})),this._p},a.prototype[Symbol.asyncIterator]=function(){var a=this;if(!this.isOpen()){var b=(0,m.newError)("Result is already consumed");return{next:function(){return Promise.reject(b)},peek:function(){return Promise.reject(b)}}}var c={paused:!0,firstRun:!0,finished:!1},d=function(){if(null!=c.streaming){var b,d,e=null!=(d=null==(b=c.queuedObserver)?void 0:b.size)?d:0,f=e>=a._watermarks.high,g=e<=a._watermarks.low;f&&!c.paused?(c.paused=!0,c.streaming.pause()):(g&&c.paused||c.firstRun&&!f)&&(c.firstRun=!1,c.paused=!1,c.streaming.resume())}},e=function(){return h(a,void 0,void 0,function(){var a;return i(this,function(b){switch(b.label){case 0:if(void 0!==c.queuedObserver)return[3,2];return c.queuedObserver=this._createQueuedResultObserver(d),a=c,[4,this._subscribe(c.queuedObserver,!0).catch(function(){})];case 1:a.streaming=b.sent(),d(),b.label=2;case 2:return[2,c.queuedObserver]}})})},f=function(a){if(void 0===a)throw(0,m.newError)("InvalidState: Result stream finished without Summary",m.PROTOCOL_ERROR);return!0};return{next:function(){return h(a,void 0,void 0,function(){var a;return i(this,function(b){switch(b.label){case 0:if(c.finished&&f(c.summary))return[2,{done:!0,value:c.summary}];return[4,e()];case 1:return[4,b.sent().dequeue()];case 2:return!0===(a=b.sent()).done&&(c.finished=a.done,c.summary=a.value),[2,a]}})})},return:function(b){return h(a,void 0,void 0,function(){var a,d;return i(this,function(g){switch(g.label){case 0:if(c.finished&&f(c.summary))return[2,{done:!0,value:null!=b?b:c.summary}];return null==(d=c.streaming)||d.cancel(),[4,e()];case 1:return[4,g.sent().dequeueUntilDone()];case 2:return a=g.sent(),c.finished=!0,a.value=null!=b?b:a.value,c.summary=a.value,[2,a]}})})},peek:function(){return h(a,void 0,void 0,function(){return i(this,function(a){switch(a.label){case 0:if(c.finished&&f(c.summary))return[2,{done:!0,value:c.summary}];return[4,e()];case 1:return[4,a.sent().head()];case 2:return[2,a.sent()]}})})}}},a.prototype.then=function(a,b){return this._getOrCreatePromise().then(a,b)},a.prototype.catch=function(a){return this._getOrCreatePromise().catch(a)},a.prototype.finally=function(a){return this._getOrCreatePromise().finally(a)},a.prototype.subscribe=function(a){this._subscribe(a).catch(function(){})},a.prototype.isOpen=function(){return null===this._summary&&null===this._error},a.prototype._subscribe=function(a,b){void 0===b&&(b=!1);var c=this._decorateObserver(a);return this._streamObserverPromise.then(function(a){return b&&a.pause(),a.subscribe(c),a}).catch(function(a){return null!=c.onError&&c.onError(a),Promise.reject(a)})},a.prototype._decorateObserver=function(a){var b,c,d,e=this,f=null!=(b=a.onCompleted)?b:p,g=null!=(c=a.onError)?c:o,h=null!=(d=a.onKeys)?d:q;return{onNext:null!=a.onNext?a.onNext.bind(a):void 0,onKeys:function(b){return e._keys=b,h.call(a,b)},onCompleted:function(b){e._releaseConnectionAndGetSummary(b).then(function(b){return null!==e._summary?f.call(a,e._summary):(e._summary=b,f.call(a,b))}).catch(g)},onError:function(b){e._connectionHolder.releaseConnection().then(function(){var c;null!=(c=e._stack)&&(b.stack=b.toString()+"\n"+c),e._error=b,g.call(a,b)}).catch(g)}}},a.prototype._cancel=function(){null===this._summary&&null===this._error&&this._streamObserverPromise.then(function(a){return a.cancel()}).catch(function(){})},a.prototype._releaseConnectionAndGetSummary=function(a){var b=l.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),c=b.validatedQuery,d=b.params,e=this._connectionHolder;return e.getConnection().then(function(a){return e.releaseConnection().then(function(){return null==a?void 0:a.getProtocolVersion()})},function(a){}).then(function(b){return new k.default(c,d,a,b)})},a.prototype._createQueuedResultObserver=function(a){var b=this;function c(){var a={};return a.promise=new Promise(function(b,c){a.resolve=b,a.reject=c}),a}function d(a){return a instanceof Error}function e(){return h(this,void 0,void 0,function(){var b,e;return i(this,function(h){switch(h.label){case 0:if(f.length>0){if(b=null!=(e=f.shift())?e:(0,m.newError)("Unexpected empty buffer",m.PROTOCOL_ERROR),a(),d(b))throw b;return[2,b]}return g.resolvable=c(),[4,g.resolvable.promise];case 1:return[2,h.sent()]}})})}var f=[],g={resolvable:null},j={onNext:function(a){null!=b._mapper?j._push({done:!1,value:b._mapper(a)}):j._push({done:!1,value:a})},onCompleted:function(a){j._push({done:!0,value:a})},onError:function(a){j._push(a)},_push:function(b){if(null!==g.resolvable){var c=g.resolvable;g.resolvable=null,d(b)?c.reject(b):c.resolve(b)}else f.push(b),a()},dequeue:e,dequeueUntilDone:function(){return h(b,void 0,void 0,function(){var a;return i(this,function(b){switch(b.label){case 0:return[4,e()];case 1:if(!0===(a=b.sent()).done)return[2,a];return[3,0];case 2:return[2]}})})},head:function(){return h(b,void 0,void 0,function(){var b,e;return i(this,function(h){switch(h.label){case 0:if(f.length>0){if(d(b=f[0]))throw b;return[2,b]}g.resolvable=c(),h.label=1;case 1:return h.trys.push([1,3,4,5]),[4,g.resolvable.promise];case 2:return b=h.sent(),f.unshift(b),[2,b];case 3:throw e=h.sent(),f.unshift(e),e;case 4:return a(),[7];case 5:return[2]}})})},get size(){return f.length}};return j},a}();f=Symbol.toStringTag;var s=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return g(b,a),b}(r);g(function(){return null!==d&&d.apply(this,arguments)||this},d=r),b.default=s},57534:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.ConnectableObservable=void 0;var f=c(44230),g=c(74038),h=c(63397),i=c(383),j=c(58555);b.ConnectableObservable=function(a){function b(b,c){var d=a.call(this)||this;return d.source=b,d.subjectFactory=c,d._subject=null,d._refCount=0,d._connection=null,j.hasLift(b)&&(d.lift=b.lift),d}return e(b,a),b.prototype._subscribe=function(a){return this.getSubject().subscribe(a)},b.prototype.getSubject=function(){var a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject},b.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null,null==a||a.unsubscribe()},b.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new g.Subscription;var c=this.getSubject();b.add(this.source.subscribe(i.createOperatorSubscriber(c,void 0,function(){a._teardown(),c.complete()},function(b){a._teardown(),c.error(b)},function(){return a._teardown()}))),b.closed&&(this._connection=null,b=g.Subscription.EMPTY)}return b},b.prototype.refCount=function(){return h.refCount()(this)},b}(f.Observable)},57707:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.AnonymousSubject=b.Subject=void 0;var g=c(44230),h=c(74038),i=c(85582),j=c(60543),k=c(93719),l=function(a){function b(){var b=a.call(this)||this;return b.closed=!1,b.currentObservers=null,b.observers=[],b.isStopped=!1,b.hasError=!1,b.thrownError=null,b}return e(b,a),b.prototype.lift=function(a){var b=new m(this,this);return b.operator=a,b},b.prototype._throwIfClosed=function(){if(this.closed)throw new i.ObjectUnsubscribedError},b.prototype.next=function(a){var b=this;k.errorContext(function(){var c,d;if(b._throwIfClosed(),!b.isStopped){b.currentObservers||(b.currentObservers=Array.from(b.observers));try{for(var e=f(b.currentObservers),g=e.next();!g.done;g=e.next())g.value.next(a)}catch(a){c={error:a}}finally{try{g&&!g.done&&(d=e.return)&&d.call(e)}finally{if(c)throw c.error}}}})},b.prototype.error=function(a){var b=this;k.errorContext(function(){if(b._throwIfClosed(),!b.isStopped){b.hasError=b.isStopped=!0,b.thrownError=a;for(var c=b.observers;c.length;)c.shift().error(a)}})},b.prototype.complete=function(){var a=this;k.errorContext(function(){if(a._throwIfClosed(),!a.isStopped){a.isStopped=!0;for(var b=a.observers;b.length;)b.shift().complete()}})},b.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(b.prototype,"observed",{get:function(){var a;return(null==(a=this.observers)?void 0:a.length)>0},enumerable:!1,configurable:!0}),b.prototype._trySubscribe=function(b){return this._throwIfClosed(),a.prototype._trySubscribe.call(this,b)},b.prototype._subscribe=function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)},b.prototype._innerSubscribe=function(a){var b=this,c=this.hasError,d=this.isStopped,e=this.observers;return c||d?h.EMPTY_SUBSCRIPTION:(this.currentObservers=null,e.push(a),new h.Subscription(function(){b.currentObservers=null,j.arrRemove(e,a)}))},b.prototype._checkFinalizedStatuses=function(a){var b=this.hasError,c=this.thrownError,d=this.isStopped;b?a.error(c):d&&a.complete()},b.prototype.asObservable=function(){var a=new g.Observable;return a.source=this,a},b.create=function(a,b){return new m(a,b)},b}(g.Observable);b.Subject=l;var m=function(a){function b(b,c){var d=a.call(this)||this;return d.destination=b,d.source=c,d}return e(b,a),b.prototype.next=function(a){var b,c;null==(c=null==(b=this.destination)?void 0:b.next)||c.call(b,a)},b.prototype.error=function(a){var b,c;null==(c=null==(b=this.destination)?void 0:b.error)||c.call(b,a)},b.prototype.complete=function(){var a,b;null==(b=null==(a=this.destination)?void 0:a.complete)||b.call(a)},b.prototype._subscribe=function(a){var b,c;return null!=(c=null==(b=this.source)?void 0:b.subscribe(a))?c:h.EMPTY_SUBSCRIPTION},b}(l);b.AnonymousSubject=m},57726:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.animationFrames=void 0;var d=c(44230),e=c(2978),f=c(20331);function g(a){return new d.Observable(function(b){var c=a||e.performanceTimestampProvider,d=c.now(),g=0,h=function(){b.closed||(g=f.animationFrameProvider.requestAnimationFrame(function(e){g=0;var f=c.now();b.next({timestamp:a?f:e,elapsed:f-d}),h()}))};return h(),function(){g&&f.animationFrameProvider.cancelAnimationFrame(g)}})}b.animationFrames=function(a){return a?g(a):h};var h=g()},57798:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.every=void 0;var d=c(58555),e=c(383);b.every=function(a,b){return d.operate(function(c,d){var f=0;c.subscribe(e.createOperatorSubscriber(d,function(e){a.call(b,e,f++,c)||(d.next(!1),d.complete())},function(){d.next(!0),d.complete()}))})}},58257:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.authTokenManagers=b.AuthTokenAndExpiration=void 0,b.staticAuthTokenManager=function(a){return new l(a.authToken)};var g=f(c(89471)),h=c(86163);b.default=function(){function a(){}return a.prototype.getToken=function(){throw Error("Not Implemented")},a.prototype.handleSecurityException=function(a,b){throw Error("Not implemented")},a}(),b.AuthTokenAndExpiration=function(){this.token=g.default.none(),this.expiration=void 0};var i=new(function(){function a(){}return a.prototype.bearer=function(a){var b=a.tokenProvider;if("function"!=typeof b)throw TypeError("tokenProvider should be function, but got: ".concat(typeof b));return new k(b,["Neo.ClientError.Security.Unauthorized","Neo.ClientError.Security.TokenExpired"])},a.prototype.basic=function(a){var b=this,c=a.tokenProvider;if("function"!=typeof c)throw TypeError("tokenProvider should be function, but got: ".concat(typeof c));return new k(function(){return d(b,void 0,void 0,function(){var a;return e(this,function(b){switch(b.label){case 0:return a={},[4,c()];case 1:return[2,(a.token=b.sent(),a)]}})})},["Neo.ClientError.Security.Unauthorized"])},a}());b.authTokenManagers=i,Object.freeze(i);var j=function(){function a(a){void 0===a&&(a=[]),this._subscribers=a}return a.prototype.subscribe=function(a){this._subscribers.push(a)},a.prototype.onCompleted=function(a){this._subscribers.forEach(function(b){return b.onCompleted(a)})},a.prototype.onError=function(a){this._subscribers.forEach(function(b){return b.onError(a)})},a}(),k=function(){function a(a,b,c,d){this._tokenProvider=a,this._handledSecurityCodes=b,this._currentAuthData=c,this._refreshObservable=d}return a.prototype.getToken=function(){return d(this,void 0,void 0,function(){var a;return e(this,function(b){switch(b.label){case 0:if(!(void 0===this._currentAuthData||void 0!==this._currentAuthData.expiration&&this._currentAuthData.expiration<new Date))return[3,2];return[4,this._refreshAuthToken()];case 1:b.sent(),b.label=2;case 2:return[2,null==(a=this._currentAuthData)?void 0:a.token]}})})},a.prototype.handleSecurityException=function(a,b){var c;return!!this._handledSecurityCodes.includes(b)&&(h.util.equals(a,null==(c=this._currentAuthData)?void 0:c.token)&&this._scheduleRefreshAuthToken(),!0)},a.prototype._scheduleRefreshAuthToken=function(a){var b=this;void 0===this._refreshObservable&&(this._currentAuthData=void 0,this._refreshObservable=new j,Promise.resolve(this._tokenProvider()).then(function(a){var c;b._currentAuthData=a,null==(c=b._refreshObservable)||c.onCompleted(a)}).catch(function(a){var c;null==(c=b._refreshObservable)||c.onError(a)}).finally(function(){b._refreshObservable=void 0})),void 0!==a&&this._refreshObservable.subscribe(a)},a.prototype._refreshAuthToken=function(){return d(this,void 0,void 0,function(){var a=this;return e(this,function(b){switch(b.label){case 0:return[4,new Promise(function(b,c){a._scheduleRefreshAuthToken({onCompleted:b,onError:c})})];case 1:return[2,b.sent()]}})})},a}(),l=function(){function a(a){this._authToken=a}return a.prototype.getToken=function(){return this._authToken},a.prototype.handleSecurityException=function(a,b){return!1},a}()},58265:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.immediateProvider=void 0;var f=c(96553),g=f.Immediate.setImmediate,h=f.Immediate.clearImmediate;b.immediateProvider={setImmediate:function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=b.immediateProvider.delegate;return((null==f?void 0:f.setImmediate)||g).apply(void 0,e([],d(a)))},clearImmediate:function(a){var c=b.immediateProvider.delegate;return((null==c?void 0:c.clearImmediate)||h)(a)},delegate:void 0}},58555:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.operate=b.hasLift=void 0;var d=c(14434);function e(a){return d.isFunction(null==a?void 0:a.lift)}b.hasLift=e,b.operate=function(a){return function(b){if(e(b))return b.lift(function(b){try{return a(b,this)}catch(a){this.error(a)}});throw TypeError("Unable to lift unknown Observable type")}}},59138:function(a,b,c){var d,e=this&&this.__assign||function(){return(e=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},f=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),g=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),h=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),e=0;e<c.length;e++)"default"!==c[e]&&f(b,a,c[e]);return g(b,a),b}),i=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},j=this&&this.__spreadArray||function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;e<f;e++)!d&&e in b||(d||(d=Array.prototype.slice.call(b,0,e)),d[e]=b[e]);return a.concat(d||Array.prototype.slice.call(b))};Object.defineProperty(b,"__esModule",{value:!0}),b.GqlStatusObject=b.Notification=b.notificationClassification=b.notificationCategory=b.notificationSeverityLevel=void 0,b.polyfillGqlStatusObject=w,b.polyfillNotification=v,b.buildGqlStatusObjectFromMetadata=function(a){var b,c,d;return null!=a.statuses?a.statuses.map(function(a){return new u(a)}):j([(null==(b=a.stream_summary)?void 0:b.have_records_streamed)===!0?x.SUCCESS:(null==b?void 0:b.has_keys)===!1?x.OMITTED_RESULT:(null==b?void 0:b.pulled)===!0?x.NO_DATA:x.NO_DATA_UNKNOWN_SUBCONDITION],i(null!=(d=null==(c=a.notifications)?void 0:c.map(w))?d:[]),!1).sort(function(a,b){return z(a)-z(b)})},b.buildNotificationsFromMetadata=function(a){return null!=a.notifications?a.notifications.map(function(a){return new t(a)}):null!=a.statuses?a.statuses.map(v).filter(function(a){return null!=a}):[]};var k=h(c(37459)),l=c(86163),m=c(49761),n={gql_status:"01N42",status_description:"warn: unknown warning"},o={gql_status:"03N42",status_description:"info: unknown notification"},p={WARNING:"WARNING",INFORMATION:"INFORMATION",UNKNOWN:"UNKNOWN"};b.notificationSeverityLevel=p,Object.freeze(p);var q=Object.values(p),r={HINT:"HINT",UNRECOGNIZED:"UNRECOGNIZED",UNSUPPORTED:"UNSUPPORTED",PERFORMANCE:"PERFORMANCE",DEPRECATION:"DEPRECATION",TOPOLOGY:"TOPOLOGY",SECURITY:"SECURITY",GENERIC:"GENERIC",SCHEMA:"SCHEMA",UNKNOWN:"UNKNOWN"};b.notificationCategory=r,Object.freeze(r);var s=Object.values(r);b.notificationClassification=r;var t=function(a){this.code=a.code,this.title=a.title,this.description=a.description,this.position=A(a.position),this.severityLevel=B(a.severity),this.rawSeverityLevel=a.severity,this.category=C(a.category),this.rawCategory=a.category};b.Notification=t;var u=function(){function a(a){var b;this.gqlStatus=a.gql_status,this.statusDescription=a.status_description,this.diagnosticRecord=null!=(b=a.diagnostic_record)?b:{},this.position=null!=this.diagnosticRecord._position?A(this.diagnosticRecord._position):void 0,this.severity=B(this.diagnosticRecord._severity),this.rawSeverity=this.diagnosticRecord._severity,this.classification=C(this.diagnosticRecord._classification),this.rawClassification=this.diagnosticRecord._classification,this.isNotification=null!=a.neo4j_code,Object.freeze(this)}return Object.defineProperty(a.prototype,"diagnosticRecordAsJsonString",{get:function(){return k.stringify(this.diagnosticRecord,{useCustomToString:!0})},enumerable:!1,configurable:!0}),a}();function v(a){var b,c,d;if(null!=a.neo4j_code)return new t({code:a.neo4j_code,title:a.title,description:a.description,severity:null==(b=a.diagnostic_record)?void 0:b._severity,category:null==(c=a.diagnostic_record)?void 0:c._classification,position:null==(d=a.diagnostic_record)?void 0:d._position})}function w(a){var b,c=a.severity===p.WARNING?n:o,d={gql_status:c.gql_status,status_description:null!=(b=a.description)?b:c.status_description,neo4j_code:a.code,title:a.title,diagnostic_record:e({},m.rawPolyfilledDiagnosticRecord)};return null!=a.severity&&(d.diagnostic_record._severity=a.severity),null!=a.category&&(d.diagnostic_record._classification=a.category),null!=a.position&&(d.diagnostic_record._position=a.position),new u(d)}b.GqlStatusObject=u;var x={SUCCESS:new u({gql_status:"00000",status_description:"note: successful completion",diagnostic_record:m.rawPolyfilledDiagnosticRecord}),NO_DATA:new u({gql_status:"02000",status_description:"note: no data",diagnostic_record:m.rawPolyfilledDiagnosticRecord}),NO_DATA_UNKNOWN_SUBCONDITION:new u(e(e({},{gql_status:"02N42",status_description:"note: no data - unknown subcondition"}),{diagnostic_record:m.rawPolyfilledDiagnosticRecord})),OMITTED_RESULT:new u({gql_status:"00001",status_description:"note: successful completion - omitted result",diagnostic_record:m.rawPolyfilledDiagnosticRecord})};Object.freeze(x);var y=Object.freeze({"02":0,"01":1,"00":2});function z(a){var b,c;return null!=(c=y[null==(b=a.gqlStatus)?void 0:b.slice(0,2)])?c:9999}function A(a){return null==a?{}:{offset:l.util.toNumber(a.offset),line:l.util.toNumber(a.line),column:l.util.toNumber(a.column)}}function B(a){return q.includes(a)?a:p.UNKNOWN}function C(a){return s.includes(a)?a:r.UNKNOWN}b.default=u},59435:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(90648));b.default=d({},f.default)},59632:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.findIndex=void 0;var d=c(58555),e=c(17506);b.findIndex=function(a,b){return d.operate(e.createFind(a,b,"index"))}},59828:function(a,b){var c,d,e=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0}),b.nameConventions=b.StandardCase=void 0,(c=d||(b.StandardCase=d={})).SnakeCase="snake_case",c.KebabCase="kebab-case",c.ScreamingSnakeCase="SCREAMING_SNAKE_CASE",c.PascalCase="PascalCase",c.CamelCase="camelCase",b.nameConventions={snake_case:{tokenize:function(a){return a.split("_")},encode:function(a){return a.join("_")}},"kebab-case":{tokenize:function(a){return a.split("-")},encode:function(a){return a.join("-")}},PascalCase:{tokenize:function(a){return a.split(/(?=[A-Z])/).map(function(a){return a.toLowerCase()})},encode:function(a){var b,c,d="";try{for(var f=e(a),g=f.next();!g.done;g=f.next()){var h=g.value;h=h.charAt(0).toUpperCase()+h.slice(1),d+=h}}catch(a){b={error:a}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(b)throw b.error}}return d}},camelCase:{tokenize:function(a){return a.split(/(?=[A-Z])/).map(function(a){return a.toLowerCase()})},encode:function(a){var b,c,d="";try{for(var g=e(a.entries()),h=g.next();!h.done;h=g.next()){var i=f(h.value,2),j=i[0],k=i[1];0!==j&&(k=k.charAt(0).toUpperCase()+k.slice(1)),d+=k}}catch(a){b={error:a}}finally{try{h&&!h.done&&(c=g.return)&&c.call(g)}finally{if(b)throw b.error}}return d}},SCREAMING_SNAKE_CASE:{tokenize:function(a){return a.split("_").map(function(a){return a.toLowerCase()})},encode:function(a){return a.join("_").toUpperCase()}}}},60156:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.raceInit=b.race=void 0;var d=c(44230),e=c(80241),f=c(90999),g=c(383);function h(a){return function(b){for(var c=[],d=function(d){c.push(e.innerFrom(a[d]).subscribe(g.createOperatorSubscriber(b,function(a){if(c){for(var e=0;e<c.length;e++)e!==d&&c[e].unsubscribe();c=null}b.next(a)})))},f=0;c&&!b.closed&&f<a.length;f++)d(f)}}b.race=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return 1===(a=f.argsOrArgArray(a)).length?e.innerFrom(a[0]):new d.Observable(h(a))},b.raceInit=h},60510:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.executeSchedule=void 0,b.executeSchedule=function(a,b,c,d,e){void 0===d&&(d=0),void 0===e&&(e=!1);var f=b.schedule(function(){c(),e?a.add(this.schedule(null,d)):this.unsubscribe()},d);if(a.add(f),!e)return f}},60543:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.arrRemove=void 0,b.arrRemove=function(a,b){if(a){var c=a.indexOf(b);0<=c&&a.splice(c,1)}}},60597:(a,b,c)=>{var d=function(a,b){var c,d,e,f,g={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return f={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f;function h(f){return function(h){var i=[f,h];if(c)throw TypeError("Generator is already executing.");for(;g;)try{if(c=1,d&&(e=2&i[0]?d.return:i[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,i[1])).done)return e;switch(d=0,e&&(i=[2&i[0],e.value]),i[0]){case 0:case 1:e=i;break;case 4:return g.label++,{value:i[1],done:!1};case 5:g.label++,d=i[1],i=[0];continue;case 7:i=g.ops.pop(),g.trys.pop();continue;default:if(!(e=(e=g.trys).length>0&&e[e.length-1])&&(6===i[0]||2===i[0])){g=0;continue}if(3===i[0]&&(!e||i[1]>e[0]&&i[1]<e[3])){g.label=i[1];break}if(6===i[0]&&g.label<e[1]){g.label=e[1],e=i;break}if(e&&g.label<e[2]){g.label=e[2],g.ops.push(i);break}e[2]&&g.ops.pop(),g.trys.pop();continue}i=b.call(a,g)}catch(a){i=[6,a],d=0}finally{c=e=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}},e=function(a){return this instanceof e?(this.v=a,this):new e(a)},f=function(a,b,c){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var d,f=c.apply(a,b||[]),g=[];return d={},h("next"),h("throw"),h("return"),d[Symbol.asyncIterator]=function(){return this},d;function h(a){f[a]&&(d[a]=function(b){return new Promise(function(c,d){g.push([a,b,c,d])>1||i(a,b)})})}function i(a,b){try{var c;(c=f[a](b)).value instanceof e?Promise.resolve(c.value.v).then(j,k):l(g[0][2],c)}catch(a){l(g[0][3],a)}}function j(a){i("next",a)}function k(a){i("throw",a)}function l(a,b){a(b),g.shift(),g.length&&i(g[0][0],g[0][1])}};Object.defineProperty(b,"__esModule",{value:!0}),b.isReadableStreamLike=b.readableStreamLikeToAsyncGenerator=void 0;var g=c(14434);b.readableStreamLikeToAsyncGenerator=function(a){return f(this,arguments,function(){var b,c,f;return d(this,function(d){switch(d.label){case 0:b=a.getReader(),d.label=1;case 1:d.trys.push([1,,9,10]),d.label=2;case 2:return[4,e(b.read())];case 3:if(f=(c=d.sent()).value,!c.done)return[3,5];return[4,e(void 0)];case 4:return[2,d.sent()];case 5:return[4,e(f)];case 6:return[4,d.sent()];case 7:return d.sent(),[3,2];case 8:return[3,10];case 9:return b.releaseLock(),[7];case 10:return[2]}})})},b.isReadableStreamLike=function(a){return g.isFunction(null==a?void 0:a.getReader)}},60627:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.finalize=void 0;var d=c(58555);b.finalize=function(a){return d.operate(function(b,c){try{b.subscribe(c)}finally{c.add(a)}})}},61081:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_ACQUISITION_TIMEOUT=b.DEFAULT_MAX_SIZE=void 0,b.DEFAULT_MAX_SIZE=100;function c(a){return 0===a||null!=a}b.DEFAULT_ACQUISITION_TIMEOUT=6e4,b.default=function(){function a(a,b){var d,e;this.maxSize=c(d=a)?d:100,this.acquisitionTimeout=c(e=b)?e:6e4}return a.defaultConfig=function(){return new a(100,6e4)},a.fromDriverConfig=function(b){return new a(c(b.maxConnectionPoolSize)?b.maxConnectionPoolSize:100,c(b.connectionAcquisitionTimeout)?b.connectionAcquisitionTimeout:6e4)},a}()},61253:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.bindCallback=void 0;var d=c(62951);b.bindCallback=function(a,b,c){return d.bindCallbackInternals(!1,a,b,c)}},61327:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0}),b.Url=void 0,b.parseDatabaseUrl=function(a){(0,f.assertString)(a,"URL");var b,c,k,l,m,n,o,p,q,r,s,t,u=(o=(o=a).trim()).includes("://")?{schemeMissing:!1,url:o}:{schemeMissing:!0,url:"none://".concat(o)},v=function(a){function b(a,b){var c=a.indexOf(b);return c>=0?[a.substring(0,c),a[c],a.substring(c+1)]:[a,"",""]}var c,f,g,h,i,j,k,l,m,n,o,p={};return":"===(o=b(a,":"))[1]&&(p.scheme=decodeURIComponent(o[0]),a=o[2]),"#"===(o=b(a,"#"))[1]&&(p.fragment=decodeURIComponent(o[2]),a=o[0]),"?"===(o=b(a,"?"))[1]&&(p.query=o[2],a=o[0]),a.startsWith("//")?(o=b(a.substr(2),"/"),(p=d(d({},p),(c=o[0],k={},"@"===(j=(g=(f=c).lastIndexOf("@"))>=0?[f.substring(0,g),f[g],f.substring(g+1)]:["","",f])[1]&&(k.userInfo=decodeURIComponent(j[0]),c=j[2]),m=(l=e((h=b(c,"["),[(i=b(h[2],"]"))[0],i[2]]),2))[0],n=l[1],""!==m?(k.host=m,j=b(n,":")):k.host=(j=b(c,":"))[0],":"===j[1]&&(k.port=j[2]),k))).path=o[1]+o[2]):p.path=a,p}(u.url),w=u.schemeMissing?null:null!=(p=v.scheme)?(":"===(p=p.trim()).charAt(p.length-1)&&(p=p.substring(0,p.length-1)),p):null,x=function(a){if(null==a)throw Error("Unable to extract host from null or undefined URL");return a.trim()}(v.host),y=function(a){if(""===a||null==a)throw Error("Illegal host ".concat(a));return a.includes(":")?i(a):a}(x),z=(q=v.port,r=w,null==(s="string"==typeof q?parseInt(q,10):q)||isNaN(s)?j(r):s),A="".concat(y,":").concat(z);return new g(w,x,z,A,(c=null!=(t=v.query)?t:"string"!=typeof(b=v.resourceName)?null:e(b.split("?"),2)[1],k=a,m=null!=c?((null==(l=(null!=(l=c)?l:"").trim())?void 0:l.charAt(0))==="?"&&(l=l.substring(1,l.length)),l):null,n={},null!=m&&m.split("&").forEach(function(a){var b=a.split("=");if(2!==b.length)throw Error("Invalid parameters: '".concat(b.toString(),"' in URL '").concat(k,"'."));var c=h(b[0],"key",k),d=h(b[1],"value",k);if(void 0!==n[c])throw Error("Duplicated query parameters with key '".concat(c,"' in URL '").concat(k,"'"));n[c]=d}),n))},b.defaultPortForScheme=j,b.formatIPv4Address=function(a,b){return"".concat(a,":").concat(b)},b.formatIPv6Address=function(a,b){var c=i(a);return"".concat(c,":").concat(b)};var f=c(49619),g=function(a,b,c,d,e){this.scheme=a,this.host=b,this.port=c,this.hostAndPort=d,this.query=e};function h(a,b,c){if(""===(a=(null!=a?a:"").trim()))throw Error("Illegal empty ".concat(b," in URL query '").concat(c,"'"));return a}function i(a){var b="["===a.charAt(0),c="]"===a.charAt(a.length-1);if(!b&&!c)return"[".concat(a,"]");if(b&&c)return a;throw Error("Illegal IPv6 address ".concat(a))}function j(a){return"http"===a?7474:"https"===a?7473:7687}b.Url=g},61863:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.LeastConnectedLoadBalancingStrategy=b.LoadBalancingStrategy=void 0,b.LoadBalancingStrategy=d(c(8375)).default;var e=d(c(93393));b.LeastConnectedLoadBalancingStrategy=e.default,b.default=e.default},62254:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.animationFrame=b.animationFrameScheduler=void 0;var d=c(99280);b.animationFrameScheduler=new(c(55609)).AnimationFrameScheduler(d.AnimationFrameAction),b.animationFrame=b.animationFrameScheduler},62428:function(a,b,c){var d,e=this&&this.__assign||function(){return(e=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},f=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),g=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),h=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),e=0;e<c.length;e++)"default"!==c[e]&&f(b,a,c[e]);return g(b,a),b}),i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var j=c(13273);c(22696);var k=c(14276),l=h(c(28881)),m=c(95590),n=c(81773),o=i(c(35177)),p=i(c(90797)),q=n.internal.bookmarks.Bookmarks,r=n.internal.constants,s=r.ACCESS_MODE_WRITE,t=r.BOLT_PROTOCOL_V1,u=(n.internal.logger.Logger,n.internal.txConfig.TxConfig),v=Object.freeze({OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"});b.default=function(){function a(a,b,c,d,e,f){var g=void 0===c?{}:c,h=g.disableLosslessIntegers,i=g.useBigInt;void 0===d&&(d=function(){return null}),this._server=a||{},this._chunker=b,this._packer=this._createPacker(b),this._unpacker=this._createUnpacker(h,i),this._responseHandler=d(this),this._log=e,this._onProtocolError=f,this._fatalError=null,this._lastMessageSignature=null,this._config={disableLosslessIntegers:h,useBigInt:i}}return Object.defineProperty(a.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new p.default(Object.values(o.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"version",{get:function(){return t},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"supportsReAuth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"initialized",{get:function(){return!!this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"authToken",{get:function(){return this._authToken},enumerable:!1,configurable:!0}),a.prototype.packer=function(){return this._packer},a.prototype.packable=function(a){return this._packer.packable(a,this.transformer.toStructure)},a.prototype.unpacker=function(){return this._unpacker},a.prototype.unpack=function(a){return this._unpacker.unpack(a,this.transformer.fromStructure)},a.prototype.transformMetadata=function(a){return a},a.prototype.enrichErrorMetadata=function(a){return e(e({},a),{diagnostic_record:null!==a.diagnostic_record?e(e({},v),a.diagnostic_record):null})},a.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),f=c.notificationFilter,g=c.onError,h=c.onComplete,i=new m.LoginObserver({onError:function(a){return b._onLoginError(a,g)},onCompleted:function(a){return b._onLoginCompleted(a,h)}});return(0,j.assertNotificationFilterIsEmpty)(f,this._onProtocolError,i),this.write(l.default.init(d,e),i,!0),i},a.prototype.logoff=function(a){var b=void 0===a?{}:a,c=b.onComplete,d=b.onError;b.flush;var e=new m.LogoffObserver({onCompleted:c,onError:d}),f=(0,n.newError)("Driver is connected to a database that does not support logoff. Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");throw this._onProtocolError(f.message),e.onError(f),f},a.prototype.logon=function(a){var b=this,c=void 0===a?{}:a,d=c.authToken,e=c.onComplete,f=c.onError;c.flush;var g=new m.LoginObserver({onCompleted:function(){return b._onLoginCompleted({},d,e)},onError:function(a){return b._onLoginError(a,f)}}),h=(0,n.newError)("Driver is connected to a database that does not support logon. Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.");throw this._onProtocolError(h.message),g.onError(h),h},a.prototype.prepareToClose=function(){},a.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.mode,g=b.impersonatedUser,h=b.notificationFilter,i=b.beforeError,j=b.afterError,k=b.beforeComplete,l=b.afterComplete;return this.run("BEGIN",c?c.asBeginTransactionParameters():{},{bookmarks:c,txConfig:d,database:e,mode:f,impersonatedUser:g,notificationFilter:h,beforeError:i,afterError:j,beforeComplete:k,afterComplete:l,flush:!1})},a.prototype.commitTransaction=function(a){var b=void 0===a?{}:a,c=b.beforeError,d=b.afterError,e=b.beforeComplete,f=b.afterComplete;return this.run("COMMIT",{},{bookmarks:q.empty(),txConfig:u.empty(),mode:s,beforeError:c,afterError:d,beforeComplete:e,afterComplete:f})},a.prototype.rollbackTransaction=function(a){var b=void 0===a?{}:a,c=b.beforeError,d=b.afterError,e=b.beforeComplete,f=b.afterComplete;return this.run("ROLLBACK",{},{bookmarks:q.empty(),txConfig:u.empty(),mode:s,beforeError:c,afterError:d,beforeComplete:e,afterComplete:f})},a.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=(d.bookmarks,d.txConfig),f=d.database,g=(d.mode,d.impersonatedUser),h=d.notificationFilter,i=d.beforeKeys,k=d.afterKeys,n=d.beforeError,o=d.afterError,p=d.beforeComplete,q=d.afterComplete,r=d.flush,s=d.highRecordWatermark,t=void 0===s?Number.MAX_VALUE:s,u=d.lowRecordWatermark,v=void 0===u?Number.MAX_VALUE:u,w=new m.ResultStreamObserver({server:this._server,beforeKeys:i,afterKeys:k,beforeError:n,afterError:o,beforeComplete:p,afterComplete:q,highRecordWatermark:t,lowRecordWatermark:v});return(0,j.assertTxConfigIsEmpty)(e,this._onProtocolError,w),(0,j.assertDatabaseIsEmpty)(f,this._onProtocolError,w),(0,j.assertImpersonatedUserIsEmpty)(g,this._onProtocolError,w),(0,j.assertNotificationFilterIsEmpty)(h,this._onProtocolError,w),this.write(l.default.run(a,b),w,!1),this.write(l.default.pullAll(),w,void 0===r||r),w},Object.defineProperty(a.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:!1,configurable:!0}),a.prototype.reset=function(a){var b=void 0===a?{}:a,c=b.onError,d=b.onComplete,e=new m.ResetObserver({onProtocolError:this._onProtocolError,onError:c,onComplete:d});return this.write(l.default.reset(),e,!0),e},a.prototype.telemetry=function(a,b){a.api;var c=void 0===b?{}:b,d=(c.onError,c.onCompleted),e=new m.CompletedObserver;return d&&d(),e},a.prototype._createPacker=function(a){return new k.v1.Packer(a)},a.prototype._createUnpacker=function(a,b){return new k.v1.Unpacker(a,b)},a.prototype.write=function(a,b,c){this._lastMessageSignature=a.signature;var d=new k.structure.Structure(a.signature,a.fields);this.packable(d)(),this.queueObserverIfProtocolIsNotBroken(b)&&(this._log.isDebugEnabled()&&this._log.debug("C: ".concat(a)),this._chunker.messageBoundary(),c&&this._chunker.flush())},a.prototype.isLastMessageLogon=function(){return this._lastMessageSignature===l.SIGNATURES.HELLO||this._lastMessageSignature===l.SIGNATURES.LOGON},a.prototype.isLastMessageReset=function(){return this._lastMessageSignature===l.SIGNATURES.RESET},a.prototype.notifyFatalError=function(a){return this._fatalError=a,this._responseHandler._notifyErrorToObservers(a)},a.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()},a.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()},a.prototype.queueObserverIfProtocolIsNotBroken=function(a){return this.isBroken()?(this.notifyFatalErrorToObserver(a),!1):this._responseHandler._queueObserver(a)},a.prototype.isBroken=function(){return!!this._fatalError},a.prototype.notifyFatalErrorToObserver=function(a){a&&a.onError&&a.onError(this._fatalError)},a.prototype.resetFailure=function(){this._responseHandler._resetFailure()},a.prototype._onLoginCompleted=function(a,b,c){if(this._initialized=!0,this._authToken=b,a){var d=a.server;this._server.version||(this._server.version=d)}c&&c(a)},a.prototype._onLoginError=function(a,b){this._onProtocolError(a.message),b&&b(a)},a}()},62909:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Structure=void 0,b.verifyStructSize=function(a,b,c){if(b!==c)throw(0,d.newError)("Wrong struct size for ".concat(a,", expected ").concat(b," but was ").concat(c),e)};var d=c(81773),e=d.error.PROTOCOL_ERROR,f=function(){function a(a,b){this.signature=a,this.fields=b}return Object.defineProperty(a.prototype,"size",{get:function(){return this.fields.length},enumerable:!1,configurable:!0}),a.prototype.toString=function(){for(var a="",b=0;b<this.fields.length;b++)b>0&&(a+=", "),a+=this.fields[b];return"Structure("+this.signature+", ["+a+"])"},a}();b.Structure=f,b.default=f},62951:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.bindCallbackInternals=void 0;var f=c(38857),g=c(44230),h=c(6556),i=c(88099),j=c(20396),k=c(37311);b.bindCallbackInternals=function a(b,c,l,m){if(l)if(!f.isScheduler(l))return function(){for(var d=[],e=0;e<arguments.length;e++)d[e]=arguments[e];return a(b,c,m).apply(this,d).pipe(i.mapOneOrManyArgs(l))};else m=l;return m?function(){for(var d=[],e=0;e<arguments.length;e++)d[e]=arguments[e];return a(b,c).apply(this,d).pipe(h.subscribeOn(m),j.observeOn(m))}:function(){for(var a=this,f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var i=new k.AsyncSubject,j=!0;return new g.Observable(function(g){var h=i.subscribe(g);if(j){j=!1;var k=!1,l=!1;c.apply(a,e(e([],d(f)),[function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];if(b){var d=a.shift();if(null!=d)return void i.error(d)}i.next(1<a.length?a:a[0]),l=!0,k&&i.complete()}])),l&&i.complete(),k=!0}return h})}}},63397:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.refCount=void 0;var d=c(58555),e=c(383);b.refCount=function(){return d.operate(function(a,b){var c=null;a._refCount++;var d=e.createOperatorSubscriber(b,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount){c=null;return}var d=a._connection,e=c;c=null,d&&(!e||d===e)&&d.unsubscribe(),b.unsubscribe()});a.subscribe(d),d.closed||(c=a.connect())})}},63746:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(36895));b.default=d({},f.default)},63829:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(14985));b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b.prototype.resolve=function(a){return new Promise(function(b){g.default.lookup(a.host(),{all:!0},function(c,d){c?b([a]):b(d.map(function(b){return a.resolveWith(b.address)}))})})},b}(c(81773).internal.resolver.BaseHostNameResolver)},64031:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.bufferWhen=void 0;var d=c(58555),e=c(74086),f=c(383),g=c(80241);b.bufferWhen=function(a){return d.operate(function(b,c){var d=null,h=null,i=function(){null==h||h.unsubscribe();var b=d;d=[],b&&c.next(b),g.innerFrom(a()).subscribe(h=f.createOperatorSubscriber(c,i,e.noop))};i(),b.subscribe(f.createOperatorSubscriber(c,function(a){return null==d?void 0:d.push(a)},function(){d&&c.next(d),c.complete()},void 0,function(){return d=h=null}))})}},64079:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.combineLatestWith=void 0;var f=c(98759);b.combineLatestWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return f.combineLatest.apply(void 0,e([],d(a)))}},64247:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)};Object.defineProperty(b,"__esModule",{value:!0});var e=c(93267),f=c(37958);b.default={booleanProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asBoolean(a)}},stringProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asString(a)}},numberProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asNumber(a)}},bigIntProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asBigInt(a)}},nodeProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asNode(a)}},relationshipProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asRelationship(a)}},pathProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asPath(a)}},pointProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asPoint(a)}},durationProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asDuration(a)}},listProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asList(d({apply:d({},c.metadata[c.name])},a))}},vectorProperty:function(a){return function(b,c){c.metadata[c.name]=f.rule.asVector(a)}},optionalProperty:function(){return function(a,b){b.metadata[b.name]=d({optional:!0},b.metadata[b.name])}},mapPropertyFromName:function(a){return function(b,c){c.metadata[c.name]=d({from:a},c.metadata[c.name])}},convertPropertyToType:function(a){return function(b,c){c.metadata[c.name]=d({convert:function(b){return b.as(a)}},c.metadata[c.name])}},mappedClass:function(){return function(a,b){e.rulesRegistry[b.name]=b.metadata}}}},64354:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.skipLast=void 0;var d=c(70332),e=c(58555),f=c(383);b.skipLast=function(a){return a<=0?d.identity:e.operate(function(b,c){var d=Array(a),e=0;return b.subscribe(f.createOperatorSubscriber(c,function(b){var f=e++;if(f<a)d[f]=b;else{var g=f%a,h=d[g];d[g]=b,c.next(h)}})),function(){d=null}})}},64391:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0});var f=c(81773),g=c(8049);b.default=function(){function a(a){var b=a.authTokenManager,c=a.userAgent,d=a.boltAgent;this._authTokenManager=b||(0,f.staticAuthTokenManager)({}),this._userAgent=c,this._boltAgent=d}return a.prototype.authenticate=function(a){return d(this,arguments,void 0,function(a){var b,c,d=a.connection,f=a.auth,h=a.skipReAuth,i=a.waitReAuth,j=a.forceReAuth;return e(this,function(a){switch(a.label){case 0:if(null==f)return[3,3];if(b=!0===d.supportsReAuth&&(!g.object.equals(d.authToken,f)&&!0!==h||!0===j),!(null==d.authToken||b))return[3,2];return[4,d.connect(this._userAgent,this._boltAgent,f,i||!1)];case 1:case 5:return[2,a.sent()];case 2:case 6:return[2,d];case 3:return[4,this._authTokenManager.getToken()];case 4:if(c=a.sent(),g.object.equals(c,d.authToken))return[3,6];return[4,d.connect(this._userAgent,this._boltAgent,c,!1)]}})})},a.prototype.handleError=function(a){var b=a.connection,c=a.code;return!!(b&&c.startsWith("Neo.ClientError.Security."))&&this._authTokenManager.handleSecurityException(b.authToken,c)},a}()},64412:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.raceWith=void 0;var f=c(60156),g=c(58555),h=c(70332);b.raceWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return a.length?g.operate(function(b,c){f.raceInit(e([b],d(a)))(c)}):h.identity}},64503:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.buffer=void 0;var d=c(58555),e=c(74086),f=c(383),g=c(80241);b.buffer=function(a){return d.operate(function(b,c){var d=[];return b.subscribe(f.createOperatorSubscriber(c,function(a){return d.push(a)},function(){c.next(d),c.complete()})),g.innerFrom(a).subscribe(f.createOperatorSubscriber(c,function(){var a=d;d=[],c.next(a)},e.noop)),function(){d=null}})}},64691:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(6424)),i=c(13273),j=g(c(43338)),k=g(c(90797)),l=g(c(28881)),m=c(95590),n=c(81773).internal.constants.BOLT_PROTOCOL_V5_1;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new k.default(Object.values(j.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"supportsReAuth",{get:function(){return!0},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=(c.boltAgent,c.authToken),g=c.notificationFilter,h=c.onError,j=c.onComplete,k={},n=new m.LoginObserver({onError:function(a){return b._onLoginError(a,h)},onCompleted:function(a){return k.metadata=a,b._onLoginCompleted(a)}});return(0,i.assertNotificationFilterIsEmpty)(g,this._onProtocolError,n),this.write(l.default.hello5x1(d,this._serversideRouting),n,!1),this.logon({authToken:e,onComplete:function(a){return j(f(f({},a),k.metadata))},onError:h,flush:!0})},b.prototype.logon=function(a){var b=this,c=void 0===a?{}:a,d=c.authToken,e=c.onComplete,f=c.onError,g=c.flush,h=new m.LoginObserver({onCompleted:function(){return b._onLoginCompleted(null,d,e)},onError:function(a){return b._onLoginError(a,f)}});return this.write(l.default.logon(d),h,g),h},b.prototype.logoff=function(a){var b=void 0===a?{}:a,c=b.onComplete,d=b.onError,e=b.flush,f=new m.LogoffObserver({onCompleted:c,onError:d});return this.write(l.default.logoff(),f,e),f},b}(h.default)},64768:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(49677)),h=f(c(22997)),i=f(c(90797)),j=f(c(28881)),k=c(95590),l=c(81773).internal.constants,m=l.BOLT_PROTOCOL_V5_8,n=l.FETCH_ALL;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new i.default(Object.values(h.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.mode,i=d.impersonatedUser,l=d.notificationFilter,m=d.beforeKeys,o=d.afterKeys,p=d.beforeError,q=d.afterError,r=d.beforeComplete,s=d.afterComplete,t=d.flush,u=void 0===t||t,v=d.reactive,w=void 0!==v&&v,x=d.fetchSize,y=void 0===x?n:x,z=d.highRecordWatermark,A=void 0===z?Number.MAX_VALUE:z,B=d.lowRecordWatermark,C=void 0===B?Number.MAX_VALUE:B,D=d.onDb,E=new k.ResultStreamObserver({server:this._server,reactive:w,fetchSize:y,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:m,afterKeys:o,beforeError:p,afterError:q,beforeComplete:r,afterComplete:s,highRecordWatermark:A,lowRecordWatermark:C,enrichMetadata:this._enrichMetadata,onDb:D});return this.write(j.default.runWithMetadata5x5(a,b,{bookmarks:e,txConfig:f,database:g,mode:h,impersonatedUser:i,notificationFilter:l}),E,w&&u),w||this.write(j.default.pull({n:y}),E,u),E},b}(g.default)},65263:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.max=void 0;var d=c(90483),e=c(14434);b.max=function(a){return d.reduce(e.isFunction(a)?function(b,c){return a(b,c)>0?b:c}:function(a,b){return a>b?a:b})}},65472:(a,b)=>{function c(a,b,c){return{kind:a,value:b,error:c}}Object.defineProperty(b,"__esModule",{value:!0}),b.createNotification=b.nextNotification=b.errorNotification=b.COMPLETE_NOTIFICATION=void 0,b.COMPLETE_NOTIFICATION=c("C",void 0,void 0),b.errorNotification=function(a){return c("E",void 0,a)},b.nextNotification=function(a){return c("N",a,void 0)},b.createNotification=c},65674:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),d(c(17701)),d(c(56358)),b.default=function(){function a(a){var b=a.run;this._run=b}return a.fromTransaction=function(b){return new a({run:b.run.bind(b)})},a.prototype.run=function(a,b){return this._run(a,b)},a}()},65964:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(29161)),h=f(c(68761)),i=f(c(28881)),j=c(95590),k=f(c(90797)),l=c(81773).internal.constants.BOLT_PROTOCOL_V5_4;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new k.default(Object.values(h.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.telemetry=function(a,b){var c=a.api,d=void 0===b?{}:b,e=d.onError,f=d.onCompleted,g=new j.TelemetryObserver({onCompleted:f,onError:e});return this.write(i.default.telemetry({api:c}),g,!1),g},b}(g.default)},66033:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(){}return a.prototype.resolve=function(){throw Error("Abstract function")},a.prototype._resolveToItself=function(a){return Promise.resolve([a])},a}()},66364:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||e(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.packstream=b.channel=b.buf=b.bolt=b.loadBalancing=void 0,b.loadBalancing=g(c(61863)),b.bolt=g(c(1466)),b.buf=g(c(19142)),b.channel=g(c(22696)),b.packstream=g(c(14276)),h(c(74325),b)},66709:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),c(1466),b.default=function(a){function b(b){var c=a.call(this)||this;return c._errorHandler=b,c}return e(b,a),Object.defineProperty(b.prototype,"id",{get:function(){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"databaseId",{get:function(){throw Error("not implemented")},set:function(a){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"authToken",{get:function(){throw Error("not implemented")},set:function(a){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"supportsReAuth",{get:function(){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"creationTimestamp",{get:function(){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"idleTimestamp",{get:function(){throw Error("not implemented")},set:function(a){throw Error("not implemented")},enumerable:!1,configurable:!0}),b.prototype.protocol=function(){throw Error("not implemented")},Object.defineProperty(b.prototype,"address",{get:function(){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"version",{get:function(){throw Error("not implemented")},set:function(a){throw Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"server",{get:function(){throw Error("not implemented")},enumerable:!1,configurable:!0}),b.prototype.connect=function(a,b,c,d){throw Error("not implemented")},b.prototype.write=function(a,b,c){throw Error("not implemented")},b.prototype.close=function(){throw Error("not implemented")},b.prototype.handleAndTransformError=function(a,b){return this._errorHandler?this._errorHandler.handleAndTransformError(a,b,this):a},b}(c(81773).Connection)},66764:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.fromSubscribable=void 0;var d=c(44230);b.fromSubscribable=function(a){return new d.Observable(function(b){return a.subscribe(b)})}},66879:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.never=b.NEVER=void 0;var d=c(44230),e=c(74086);b.NEVER=new d.Observable(e.noop),b.never=function(){return b.NEVER}},67015:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.Action=void 0,b.Action=function(a){function b(b,c){return a.call(this)||this}return e(b,a),b.prototype.schedule=function(a,b){return void 0===b&&(b=0),this},b}(c(74038).Subscription)},67976:(a,b)=>{function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(b,"__esModule",{value:!0}),b.iterator=b.getSymbolIterator=void 0,b.getSymbolIterator=c,b.iterator=c()},68497:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createBrokenObject=function(a,b){void 0===b&&(b={});var e=function(){throw a};return new Proxy(b,{get:function(b,f){return f===c||(f===d?a:void("toJSON"!==f&&e()))},set:e,apply:e,construct:e,defineProperty:e,deleteProperty:e,getOwnPropertyDescriptor:e,getPrototypeOf:e,has:e,isExtensible:e,ownKeys:e,preventExtensions:e,setPrototypeOf:e})},b.isBrokenObject=function(a){return null!==a&&"object"==typeof a&&!0===a[c]},b.getBrokenObjectReason=function(a){return a[d]};var c="__isBrokenObject__",d="__reason__"},68761:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(80128));b.default=d({},f.default)},68979:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},f=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.QueryConfig=b.SessionConfig=b.routing=b.WRITE=b.READ=b.Driver=void 0;var h=c(8506),i=g(c(90001)),j=c(81334),k=c(39355),l=g(c(1501)),m=c(49619),n=c(3819),o=g(c(53089)),p=g(c(54173)),q=c(54507),r=g(c(95733)),s=c(29638),t=j.ACCESS_MODE_READ;b.READ=t;var u=j.ACCESS_MODE_WRITE;b.WRITE=u;var v=0;b.SessionConfig=function(){this.defaultAccessMode=u,this.bookmarks=[],this.database="",this.impersonatedUser=void 0,this.auth=void 0,this.fetchSize=void 0,this.bookmarkManager=void 0,this.notificationFilter=void 0};var w={WRITE:"WRITE",READ:"READ"};b.routing=w,Object.freeze(w),b.QueryConfig=function(){this.routing=w.WRITE,this.resultTransformer=void 0,this.database="",this.impersonatedUser=void 0,this.bookmarkManager=void 0,this.transactionConfig=void 0,this.auth=void 0,this.signal=void 0};var x=function(){function a(a,b,c,d,e){void 0===b&&(b={}),void 0===d&&(d=function(a){return new l.default(a)}),void 0===e&&(e=function(a){return new p.default(a)}),(f=b).maxConnectionLifetime=y(f.maxConnectionLifetime,36e5),f.maxConnectionPoolSize=y(f.maxConnectionPoolSize,j.DEFAULT_POOL_MAX_SIZE),f.connectionAcquisitionTimeout=y(f.connectionAcquisitionTimeout,j.DEFAULT_POOL_ACQUISITION_TIMEOUT),f.fetchSize=z(f.fetchSize,1e3),f.connectionTimeout=0===(g=parseInt(f.connectionTimeout,10))||!isNaN(g)&&g<0?null:isNaN(g)?j.DEFAULT_CONNECTION_TIMEOUT_MILLIS:g,f.connectionLivenessCheckTimeout=function(a){if(null!=a){var b=parseInt(a,10);if(b<0||Number.isNaN(b))throw Error("The connectionLivenessCheckTimeout can only be a positive value or 0 for always. However connectionLivenessCheckTimeout = ".concat(b));return b}}(f.connectionLivenessCheckTimeout);var f,g,h=k.Logger.create(b);(function(a,b){var c,d,e=a.resolver;if(null!=e&&"function"!=typeof e)throw TypeError("Configured resolver should be a function. Got: ".concat(typeof e));if(a.connectionAcquisitionTimeout<a.connectionTimeout&&b.warn('Configuration for "connectionAcquisitionTimeout" should be greater than or equal to "connectionTimeout". Otherwise, the connection acquisition timeout will take precedence for over the connection timeout in scenarios where a new connection is created while it is acquired'),(null==(c=a.notificationFilter)?void 0:c.disabledCategories)!=null&&(null==(d=a.notificationFilter)?void 0:d.disabledClassifications)!=null)throw Error('The notificationFilter can\'t have both "disabledCategories" and "disabledClassifications" configured at the same time.')})(b,h),this._id=v++,this._meta=a,this._config=b,this._log=h,this._createConnectionProvider=c,this._createSession=d,this._defaultExecuteQueryBookmarkManager=(0,n.bookmarkManager)(),this._queryExecutor=e(this.session.bind(this)),this._connectionProvider=null,this.homeDatabaseCache=new r.default(1e4),this._afterConstruction()}return Object.defineProperty(a.prototype,"executeQueryBookmarkManager",{get:function(){return this._defaultExecuteQueryBookmarkManager},enumerable:!1,configurable:!0}),a.prototype.executeQuery=function(a,b){return e(this,arguments,void 0,function(a,b,c){var d,e,g,h,i,j;return void 0===c&&(c={}),f(this,function(f){switch(f.label){case 0:if(d=null===c.bookmarkManager?void 0:null!=(h=c.bookmarkManager)?h:this.executeQueryBookmarkManager,e=null!=(i=c.resultTransformer)?i:o.default.eager(),(g=null!=(j=c.routing)?j:w.WRITE)!==w.READ&&g!==w.WRITE)throw(0,q.newError)('Illegal query routing config: "'.concat(g,'"'));return[4,this._queryExecutor.execute({resultTransformer:e,bookmarkManager:d,routing:g,database:c.database,impersonatedUser:c.impersonatedUser,transactionConfig:c.transactionConfig,auth:c.auth,signal:c.signal},a,b)];case 1:return[2,f.sent()]}})})},a.prototype.verifyConnectivity=function(a){var b=(void 0===a?{}:a).database,c=void 0===b?"":b,d=this._getOrCreateConnectionProvider();return new Promise(function(a,b){d.verifyConnectivityAndGetServerInfo({database:c,accessMode:t}).then(function(){return a()}).catch(function(a){return b(a)})})},a.prototype.verifyAuthentication=function(){return e(this,arguments,void 0,function(a){var b=void 0===a?{}:a,c=b.database,d=b.auth;return f(this,function(a){switch(a.label){case 0:return[4,this._getOrCreateConnectionProvider().verifyAuthentication({database:null!=c?c:"system",auth:d,accessMode:t})];case 1:return[2,a.sent()]}})})},a.prototype.getServerInfo=function(a){var b=(void 0===a?{}:a).database;return this._getOrCreateConnectionProvider().verifyConnectivityAndGetServerInfo({database:void 0===b?"":b,accessMode:t})},a.prototype.supportsMultiDb=function(){return this._getOrCreateConnectionProvider().supportsMultiDb()},a.prototype.supportsTransactionConfig=function(){return this._getOrCreateConnectionProvider().supportsTransactionConfig()},a.prototype.supportsUserImpersonation=function(){return this._getOrCreateConnectionProvider().supportsUserImpersonation()},a.prototype.supportsSessionAuth=function(){return this._getOrCreateConnectionProvider().supportsSessionAuth()},a.prototype.getNegotiatedProtocolVersion=function(){return this._getOrCreateConnectionProvider().getNegotiatedProtocolVersion()},a.prototype.isEncrypted=function(){return this._isEncrypted()},a.prototype._supportsRouting=function(){return this._meta.routing},a.prototype._isEncrypted=function(){return this._config.encrypted===m.ENCRYPTION_ON||!0===this._config.encrypted},a.prototype._getTrust=function(){return this._config.trust},a.prototype.session=function(a){var b=void 0===a?{}:a,c=b.defaultAccessMode,d=void 0===c?u:c,e=b.bookmarks,f=b.database,g=b.impersonatedUser,h=b.fetchSize,i=b.bookmarkManager,j=b.notificationFilter,k=b.auth;return this._newSession({defaultAccessMode:d,bookmarkOrBookmarks:e,database:void 0===f?"":f,reactive:!1,impersonatedUser:g,fetchSize:z(h,this._config.fetchSize),bookmarkManager:i,notificationFilter:j,auth:k})},a.prototype.close=function(){return(this._log.info("Driver ".concat(this._id," closing")),null!=this._connectionProvider)?this._connectionProvider.close():Promise.resolve()},a.prototype[Symbol.asyncDispose]=function(){return this.close()},a.prototype._afterConstruction=function(){this._log.info("".concat(this._meta.typename," driver ").concat(this._id," created for server address ").concat(this._meta.address.toString()))},a.prototype._homeDatabaseCallback=function(a,b){this.homeDatabaseCache.set(a,b)},a.prototype._newSession=function(a){var b=a.defaultAccessMode,c=a.bookmarkOrBookmarks,e=a.database,f=a.reactive,g=a.impersonatedUser,i=a.fetchSize,j=a.bookmarkManager,k=a.notificationFilter,m=a.auth,n=l.default._validateSessionMode(b),o=this._getOrCreateConnectionProvider(),p=this.homeDatabaseCache.get((0,s.cacheKey)(m,g)),q=this._homeDatabaseCallback.bind(this),r=null!=c?new h.Bookmarks(c):h.Bookmarks.empty();return this._createSession({mode:n,database:null!=e?e:"",connectionProvider:o,bookmarks:r,config:d({cachedHomeDatabase:p,routingDriver:this._supportsRouting()},this._config),reactive:f,impersonatedUser:g,fetchSize:i,bookmarkManager:j,notificationFilter:k,auth:m,log:this._log,homeDatabaseCallback:q})},a.prototype._getOrCreateConnectionProvider=function(){var a;return null==this._connectionProvider&&(this._connectionProvider=this._createConnectionProvider(this._id,this._config,this._log,(a=this._config,new i.default(a.resolver)))),this._connectionProvider},a}();function y(a,b){var c=parseInt(a,10);return c>0||0===c?c:c<0?Number.MAX_SAFE_INTEGER:b}function z(a,b){var c=parseInt(a,10);if(c>0||c===j.FETCH_ALL)return c;if(0!==c&&!(c<0))return b;throw Error("The fetch size can only be a positive value or ".concat(j.FETCH_ALL," for ALL. However fetchSize = ").concat(c))}b.Driver=x,b.default=x},69562:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Scheduler=void 0;var d=c(83476);b.Scheduler=function(){function a(b,c){void 0===c&&(c=a.now),this.schedulerActionCtor=b,this.now=c}return a.prototype.schedule=function(a,b,c){return void 0===b&&(b=0),new this.schedulerActionCtor(this,a).schedule(c,b)},a.now=d.dateTimestampProvider.now,a}()},69716:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.switchScan=void 0;var d=c(85855),e=c(58555);b.switchScan=function(a,b){return e.operate(function(c,e){var f=b;return d.switchMap(function(b,c){return a(f,b,c)},function(a,b){return f=b,b})(c).subscribe(e),function(){f=null}})}},70332:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.identity=void 0,b.identity=function(a){return a}},70883:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AsyncAction=void 0;var f=c(67015),g=c(40093),h=c(60543);b.AsyncAction=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.scheduler=b,d.work=c,d.pending=!1,d}return e(b,a),b.prototype.schedule=function(a,b){if(void 0===b&&(b=0),this.closed)return this;this.state=a;var c,d=this.id,e=this.scheduler;return null!=d&&(this.id=this.recycleAsyncId(e,d,b)),this.pending=!0,this.delay=b,this.id=null!=(c=this.id)?c:this.requestAsyncId(e,this.id,b),this},b.prototype.requestAsyncId=function(a,b,c){return void 0===c&&(c=0),g.intervalProvider.setInterval(a.flush.bind(a,this),c)},b.prototype.recycleAsyncId=function(a,b,c){if(void 0===c&&(c=0),null!=c&&this.delay===c&&!1===this.pending)return b;null!=b&&g.intervalProvider.clearInterval(b)},b.prototype.execute=function(a,b){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var c=this._execute(a,b);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},b.prototype._execute=function(a,b){var c,d=!1;try{this.work(a)}catch(a){d=!0,c=a||Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),c},b.prototype.unsubscribe=function(){if(!this.closed){var b=this.id,c=this.scheduler,d=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,h.arrRemove(d,this),null!=b&&(this.id=this.recycleAsyncId(c,b,null)),this.delay=null,a.prototype.unsubscribe.call(this)}},b}(f.Action)},71174:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.publish=void 0;var d=c(57707),e=c(8439),f=c(53659);b.publish=function(a){return a?function(b){return f.connect(a)(b)}:function(a){return e.multicast(new d.Subject)(a)}}},71293:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=this&&this.__assign||function(){return(g=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var i=function(a){function b(b){var c=b.connectionHolder,d=b.onClose,f=b.onBookmarks,g=b.onConnection,h=b.reactive,i=b.fetchSize,j=b.impersonatedUser,k=b.highRecordWatermark,l=b.lowRecordWatermark,m=b.notificationFilter,n=b.apiTelemetryConfig,o=b.onDbCallback,p=a.call(this,{connectionHolder:c,onClose:d,onBookmarks:f,onConnection:g,reactive:h,fetchSize:i,impersonatedUser:j,highRecordWatermark:k,lowRecordWatermark:l,notificationFilter:m,apiTelemetryConfig:n})||this;return p[e]="TransactionPromise",p._onDbCallback=o,p}return f(b,a),b.prototype.then=function(a,b){return this._getOrCreateBeginPromise().then(a,b)},b.prototype.catch=function(a){return this._getOrCreateBeginPromise().catch(a)},b.prototype.finally=function(a){return this._getOrCreateBeginPromise().finally(a)},b.prototype._getOrCreateBeginPromise=function(){var a=this;return null==this._beginPromise&&(this._beginPromise=new Promise(function(b,c){a._resolve=b,a._reject=c,null!=a._beginError&&c(a._beginError),null!=a._beginMetadata&&b(a._toTransaction())})),this._beginPromise},b.prototype._toTransaction=function(){return g(g({},this),{run:a.prototype.run.bind(this),commit:a.prototype.commit.bind(this),rollback:a.prototype.rollback.bind(this),close:a.prototype.close.bind(this),isOpen:a.prototype.isOpen.bind(this),_begin:this._begin.bind(this)})},b.prototype._begin=function(b,c){return a.prototype._begin.call(this,b,c,{onError:this._onBeginError.bind(this),onComplete:this._onBeginMetadata.bind(this),onDB:this._onDbCallback})},b.prototype._onBeginError=function(a){this._beginError=a,null!=this._reject&&this._reject(a)},b.prototype._onBeginMetadata=function(a){this._beginMetadata=null!=a?a:{},null!=this._resolve&&this._resolve(this._toTransaction())},b}(h(c(49573)).default);e=Symbol.toStringTag,b.default=i},71641:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.mergeWith=void 0;var f=c(16557);b.mergeWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return f.merge.apply(void 0,e([],d(a)))}},71931:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.fromEventPattern=void 0;var d=c(44230),e=c(14434),f=c(88099);b.fromEventPattern=function a(b,c,g){return g?a(b,c).pipe(f.mapOneOrManyArgs(g)):new d.Observable(function(a){var d=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.next(1===b.length?b[0]:b)},f=b(d);return e.isFunction(c)?function(){return c(d,f)}:void 0})}},72354:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.switchMapTo=void 0;var d=c(85855),e=c(14434);b.switchMapTo=function(a,b){return e.isFunction(b)?d.switchMap(function(){return a},b):d.switchMap(function(){return a})}},72612:function(a,b,c){var d,e,f=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),g=this&&this.__assign||function(){return(g=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},h=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),i=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),j=this&&this.__importStar||(e=function(a){return(e=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=e(a),d=0;d<c.length;d++)"default"!==c[d]&&h(b,a,c[d]);return i(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.clientCertificateProviders=b.RotatingClientCertificateProvider=b.ClientCertificateProvider=void 0,b.resolveCertificateProvider=function(a){if(null!=a){if("object"==typeof a&&"hasUpdate"in a&&"getClientCertificate"in a&&"function"==typeof a.getClientCertificate&&"function"==typeof a.hasUpdate)return a;if(n(a)){var b=g({},a);return{getClientCertificate:function(){return b},hasUpdate:function(){return!1}}}throw TypeError("clientCertificate should be configured with ClientCertificate or ClientCertificateProvider, but got ".concat(k.stringify(a)))}};var k=j(c(37459));b.default=function(){this.certfile="",this.keyfile="",this.password=void 0};var l=function(){function a(){}return a.prototype.hasUpdate=function(){throw Error("Not Implemented")},a.prototype.getClientCertificate=function(){throw Error("Not Implemented")},a}();b.ClientCertificateProvider=l,b.RotatingClientCertificateProvider=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b.prototype.updateCertificate=function(a){throw Error("Not implemented")},b}(l);var m=new(function(){function a(){}return a.prototype.rotating=function(a){var b=a.initialCertificate;if(null==b||!n(b))throw TypeError("initialCertificate should be ClientCertificate, but got ".concat(k.stringify(b)));return new r(g({},b))},a}());function n(a){var b;return null!=a&&"object"==typeof a&&"certfile"in a&&(o(b=a.certfile)||p(b,o))&&"keyfile"in a&&function(a){function b(a){return"string"==typeof a||null!=a&&"object"==typeof a&&"path"in a&&"string"==typeof a.path&&q("password",a)}return b(a)||p(a,b)}(a.keyfile)&&q("password",a)}function o(a){return"string"==typeof a}function p(a,b,c){return void 0===c&&(c=!1),Array.isArray(a)&&(c||a.length>0)&&a.filter(b).length===a.length}function q(a,b){return!(a in b)||null==b[a]||"string"==typeof b[a]}b.clientCertificateProviders=m,Object.freeze(m);var r=function(){function a(a,b){void 0===b&&(b=!1),this._certificate=a,this._updated=b}return a.prototype.hasUpdate=function(){try{return this._updated}finally{this._updated=!1}},a.prototype.getClientCertificate=function(){return this._certificate},a.prototype.updateCertificate=function(a){if(!n(a))throw TypeError("certificate should be ClientCertificate, but got ".concat(k.stringify(a)));this._certificate=g({},a),this._updated=!0},a}()},72628:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.windowTime=void 0;var d=c(57707),e=c(84189),f=c(74038),g=c(58555),h=c(383),i=c(60543),j=c(53851),k=c(60510);b.windowTime=function(a){for(var b,c,l=[],m=1;m<arguments.length;m++)l[m-1]=arguments[m];var n=null!=(b=j.popScheduler(l))?b:e.asyncScheduler,o=null!=(c=l[0])?c:null,p=l[1]||1/0;return g.operate(function(b,c){var e=[],g=!1,j=function(a){var b=a.window,c=a.subs;b.complete(),c.unsubscribe(),i.arrRemove(e,a),g&&l()},l=function(){if(e){var b=new f.Subscription;c.add(b);var g=new d.Subject,h={window:g,subs:b,seen:0};e.push(h),c.next(g.asObservable()),k.executeSchedule(b,n,function(){return j(h)},a)}};null!==o&&o>=0?k.executeSchedule(c,n,l,o,!0):g=!0,l();var m=function(a){return e.slice().forEach(a)},q=function(a){m(function(b){return a(b.window)}),a(c),c.unsubscribe()};return b.subscribe(h.createOperatorSubscriber(c,function(a){m(function(b){b.window.next(a),p<=++b.seen&&j(b)})},function(){return q(function(a){return a.complete()})},function(a){return q(function(b){return b.error(a)})})),function(){e=null}})}},73474:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.audit=void 0;var d=c(58555),e=c(80241),f=c(383);b.audit=function(a){return d.operate(function(b,c){var d=!1,g=null,h=null,i=!1,j=function(){if(null==h||h.unsubscribe(),h=null,d){d=!1;var a=g;g=null,c.next(a)}i&&c.complete()},k=function(){h=null,i&&c.complete()};b.subscribe(f.createOperatorSubscriber(c,function(b){d=!0,g=b,h||e.innerFrom(a(b)).subscribe(h=f.createOperatorSubscriber(c,j,k))},function(){i=!0,d&&h&&!h.closed||c.complete()}))})}},73789:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.combineAll=void 0,b.combineAll=c(74588).combineLatestAll},74038:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},e=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},f=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.isSubscription=b.EMPTY_SUBSCRIPTION=b.Subscription=void 0;var g=c(14434),h=c(46496),i=c(60543),j=function(){var a;function b(a){this.initialTeardown=a,this.closed=!1,this._parentage=null,this._finalizers=null}return b.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a,b,c,i,j,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var m=d(l),n=m.next();!n.done;n=m.next())n.value.remove(this)}catch(b){a={error:b}}finally{try{n&&!n.done&&(b=m.return)&&b.call(m)}finally{if(a)throw a.error}}else l.remove(this);var o=this.initialTeardown;if(g.isFunction(o))try{o()}catch(a){j=a instanceof h.UnsubscriptionError?a.errors:[a]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var q=d(p),r=q.next();!r.done;r=q.next()){var s=r.value;try{k(s)}catch(a){j=null!=j?j:[],a instanceof h.UnsubscriptionError?j=f(f([],e(j)),e(a.errors)):j.push(a)}}}catch(a){c={error:a}}finally{try{r&&!r.done&&(i=q.return)&&i.call(q)}finally{if(c)throw c.error}}}if(j)throw new h.UnsubscriptionError(j)}},b.prototype.add=function(a){var c;if(a&&a!==this)if(this.closed)k(a);else{if(a instanceof b){if(a.closed||a._hasParent(this))return;a._addParent(this)}(this._finalizers=null!=(c=this._finalizers)?c:[]).push(a)}},b.prototype._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)},b.prototype._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a},b.prototype._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&i.arrRemove(b,a)},b.prototype.remove=function(a){var c=this._finalizers;c&&i.arrRemove(c,a),a instanceof b&&a._removeParent(this)},(a=new b).closed=!0,b.EMPTY=a,b}();function k(a){g.isFunction(a)?a():a.unsubscribe()}b.Subscription=j,b.EMPTY_SUBSCRIPTION=j.EMPTY,b.isSubscription=function(a){return a instanceof j||a&&"closed"in a&&g.isFunction(a.remove)&&g.isFunction(a.add)&&g.isFunction(a.unsubscribe)}},74063:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.auditTime=void 0;var d=c(84189),e=c(73474),f=c(10360);b.auditTime=function(a,b){return void 0===b&&(b=d.asyncScheduler),e.audit(function(){return f.timer(a,b)})}},74086:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.noop=void 0,b.noop=function(){}},74325:function(a,b,c){var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.RoutingConnectionProvider=b.DirectConnectionProvider=b.PooledConnectionProvider=b.SingleConnectionProvider=void 0;var e=c(84952);Object.defineProperty(b,"SingleConnectionProvider",{enumerable:!0,get:function(){return d(e).default}});var f=c(507);Object.defineProperty(b,"PooledConnectionProvider",{enumerable:!0,get:function(){return d(f).default}});var g=c(80373);Object.defineProperty(b,"DirectConnectionProvider",{enumerable:!0,get:function(){return d(g).default}});var h=c(31880);Object.defineProperty(b,"RoutingConnectionProvider",{enumerable:!0,get:function(){return d(h).default}})},74588:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.combineLatestAll=void 0;var d=c(81887),e=c(77550);b.combineLatestAll=function(a){return e.joinAllInternals(d.combineLatest,a)}},74795:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){return(function(a,b){var c=this;return new Promise(function(f,h){var i=function(a){h(a)};a.onerror=i.bind(c),a._error&&i(a._error),a.onmessage=function(a){try{var c=function(a,b){var c=[a.readUInt8(),a.readUInt8(),a.readUInt8(),a.readUInt8()];if(72===c[0]&&84===c[1]&&84===c[2]&&80===c[3])throw b.error("Handshake failed since server responded with HTTP."),(0,e.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return new e.ProtocolVersion(c[3],c[2])}(a,b);f({protocolVersion:c,capabilites:0,buffer:a,consumeRemainingBuffer:function(b){a.hasRemaining()&&b(a.readSlice(a.remaining()))}})}catch(a){h(a)}},a.write(function(){var a=[g(255,1),[g(5,8),g(5,0)],[g(4,4),g(4,2)],g(3,0)];if(a.length>4)throw(0,e.newError)("It should not have more than 4 versions of the protocol");var b=(0,d.alloc)(20);return b.writeInt32(0x6060b017),a.forEach(function(a){if(a instanceof Array){var c=a[0],d=c.major,e=c.minor,f=e-a[1].minor;b.writeInt32(f<<16|e<<8|d)}else{var d=a.major,e=a.minor;b.writeInt32(e<<8|d)}}),b.reset(),b}())})})(a,b).then(function(b){return b.protocolVersion.isEqualTo(new e.ProtocolVersion(255,1))?function(a,b){for(var c,g=b.readVarInt(),h=[],i=0;i<g;i++){var j=[b.readUInt8(),b.readUInt8(),b.readUInt8(),b.readUInt8()];h=h.concat(function(a){for(var b=[],c=a[3],d=a[2],e=0;e<=a[1];e++)b.push({major:c,minor:d-e});return b}(j))}var k=(c=b.readVarInt(),0),l=0,m=0;h.sort(function(a,b){return Number(a.major)!==Number(b.major)?Number(b.major)-Number(a.major):Number(b.minor)-Number(a.minor)});for(var i=0;i<h.length;i++){var n=h[i];if(f.includes(n.major+"."+n.minor)){l=n.major,m=n.minor;break}}return new Promise(function(c,f){try{var g=(0,d.alloc)(5);g.writeInt32(m<<8|l),g.writeVarInt(k),a.write(g),c({protocolVersion:new e.ProtocolVersion(l,m),capabilites:k,consumeRemainingBuffer:function(a){b.hasRemaining()&&a(b.readSlice(b.remaining()))}})}catch(a){f(a)}})}(a,b.buffer):b})};var d=c(22696),e=c(81773),f=["6.0","5.8","5.7","5.6","5.4","5.3","5.2","5.1","5.0","4.4","4.3","4.2","3.0"];function g(a,b){return{major:a,minor:b}}},75046:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(68761));b.default=d({},f.default)},75735:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},e=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}};Object.defineProperty(b,"__esModule",{value:!0});var f=c(22696);b.default=function(){function a(a){var b=a.clientCertificateProvider,c=a.loader;this._clientCertificateProvider=b,this._loader=c||f.ClientCertificatesLoader,this._clientCertificate=null}return a.prototype.getClientCertificate=function(){return d(this,void 0,void 0,function(){var a,b,c=this;return e(this,function(d){switch(d.label){case 0:if(!(a=null!=this._clientCertificateProvider))return[3,3];if(b=null==this._clientCertificate)return[3,2];return[4,this._clientCertificateProvider.hasUpdate()];case 1:b=d.sent(),d.label=2;case 2:a=b,d.label=3;case 3:return a&&(this._clientCertificate=Promise.resolve(this._clientCertificateProvider.getClientCertificate()).then(this._loader.load).then(function(a){return c._clientCertificate=a,c._clientCertificate}).catch(function(a){throw c._clientCertificate=null,a})),[2,this._clientCertificate]}})})},a}()},76590:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.share=void 0;var f=c(80241),g=c(57707),h=c(47457),i=c(58555);function j(a,b){for(var c=[],g=2;g<arguments.length;g++)c[g-2]=arguments[g];if(!0===b)return void a();if(!1!==b){var i=new h.SafeSubscriber({next:function(){i.unsubscribe(),a()}});return f.innerFrom(b.apply(void 0,e([],d(c)))).subscribe(i)}}b.share=function(a){void 0===a&&(a={});var b=a.connector,c=void 0===b?function(){return new g.Subject}:b,d=a.resetOnError,e=void 0===d||d,k=a.resetOnComplete,l=void 0===k||k,m=a.resetOnRefCountZero,n=void 0===m||m;return function(a){var b,d,g,k=0,m=!1,o=!1,p=function(){null==d||d.unsubscribe(),d=void 0},q=function(){p(),b=g=void 0,m=o=!1},r=function(){var a=b;q(),null==a||a.unsubscribe()};return i.operate(function(a,i){k++,o||m||p();var s=g=null!=g?g:c();i.add(function(){0!=--k||o||m||(d=j(r,n))}),s.subscribe(i),!b&&k>0&&(b=new h.SafeSubscriber({next:function(a){return s.next(a)},error:function(a){o=!0,p(),d=j(q,e,a),s.error(a)},complete:function(){m=!0,p(),d=j(q,l),s.complete()}}),f.innerFrom(a).subscribe(b))})(a)}}},76705:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(53552)),h=c(81773),i=f(c(90648)),j=f(c(90797)),k=h.internal.constants.BOLT_PROTOCOL_V4_2;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b}(g.default)},77347:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeAll=b.merge=b.max=b.materialize=b.mapTo=b.map=b.last=b.isEmpty=b.ignoreElements=b.groupBy=b.first=b.findIndex=b.find=b.finalize=b.filter=b.expand=b.exhaustMap=b.exhaustAll=b.exhaust=b.every=b.endWith=b.elementAt=b.distinctUntilKeyChanged=b.distinctUntilChanged=b.distinct=b.dematerialize=b.delayWhen=b.delay=b.defaultIfEmpty=b.debounceTime=b.debounce=b.count=b.connect=b.concatWith=b.concatMapTo=b.concatMap=b.concatAll=b.concat=b.combineLatestWith=b.combineLatest=b.combineLatestAll=b.combineAll=b.catchError=b.bufferWhen=b.bufferToggle=b.bufferTime=b.bufferCount=b.buffer=b.auditTime=b.audit=void 0,b.timeInterval=b.throwIfEmpty=b.throttleTime=b.throttle=b.tap=b.takeWhile=b.takeUntil=b.takeLast=b.take=b.switchScan=b.switchMapTo=b.switchMap=b.switchAll=b.subscribeOn=b.startWith=b.skipWhile=b.skipUntil=b.skipLast=b.skip=b.single=b.shareReplay=b.share=b.sequenceEqual=b.scan=b.sampleTime=b.sample=b.refCount=b.retryWhen=b.retry=b.repeatWhen=b.repeat=b.reduce=b.raceWith=b.race=b.publishReplay=b.publishLast=b.publishBehavior=b.publish=b.pluck=b.partition=b.pairwise=b.onErrorResumeNext=b.observeOn=b.multicast=b.min=b.mergeWith=b.mergeScan=b.mergeMapTo=b.mergeMap=b.flatMap=void 0,b.zipWith=b.zipAll=b.zip=b.withLatestFrom=b.windowWhen=b.windowToggle=b.windowTime=b.windowCount=b.window=b.toArray=b.timestamp=b.timeoutWith=b.timeout=void 0;var d=c(73474);Object.defineProperty(b,"audit",{enumerable:!0,get:function(){return d.audit}});var e=c(74063);Object.defineProperty(b,"auditTime",{enumerable:!0,get:function(){return e.auditTime}});var f=c(64503);Object.defineProperty(b,"buffer",{enumerable:!0,get:function(){return f.buffer}});var g=c(93704);Object.defineProperty(b,"bufferCount",{enumerable:!0,get:function(){return g.bufferCount}});var h=c(91162);Object.defineProperty(b,"bufferTime",{enumerable:!0,get:function(){return h.bufferTime}});var i=c(27155);Object.defineProperty(b,"bufferToggle",{enumerable:!0,get:function(){return i.bufferToggle}});var j=c(64031);Object.defineProperty(b,"bufferWhen",{enumerable:!0,get:function(){return j.bufferWhen}});var k=c(56862);Object.defineProperty(b,"catchError",{enumerable:!0,get:function(){return k.catchError}});var l=c(73789);Object.defineProperty(b,"combineAll",{enumerable:!0,get:function(){return l.combineAll}});var m=c(74588);Object.defineProperty(b,"combineLatestAll",{enumerable:!0,get:function(){return m.combineLatestAll}});var n=c(98759);Object.defineProperty(b,"combineLatest",{enumerable:!0,get:function(){return n.combineLatest}});var o=c(64079);Object.defineProperty(b,"combineLatestWith",{enumerable:!0,get:function(){return o.combineLatestWith}});var p=c(81525);Object.defineProperty(b,"concat",{enumerable:!0,get:function(){return p.concat}});var q=c(56030);Object.defineProperty(b,"concatAll",{enumerable:!0,get:function(){return q.concatAll}});var r=c(92575);Object.defineProperty(b,"concatMap",{enumerable:!0,get:function(){return r.concatMap}});var s=c(79778);Object.defineProperty(b,"concatMapTo",{enumerable:!0,get:function(){return s.concatMapTo}});var t=c(40289);Object.defineProperty(b,"concatWith",{enumerable:!0,get:function(){return t.concatWith}});var u=c(53659);Object.defineProperty(b,"connect",{enumerable:!0,get:function(){return u.connect}});var v=c(98118);Object.defineProperty(b,"count",{enumerable:!0,get:function(){return v.count}});var w=c(50674);Object.defineProperty(b,"debounce",{enumerable:!0,get:function(){return w.debounce}});var x=c(31295);Object.defineProperty(b,"debounceTime",{enumerable:!0,get:function(){return x.debounceTime}});var y=c(20018);Object.defineProperty(b,"defaultIfEmpty",{enumerable:!0,get:function(){return y.defaultIfEmpty}});var z=c(36570);Object.defineProperty(b,"delay",{enumerable:!0,get:function(){return z.delay}});var A=c(56214);Object.defineProperty(b,"delayWhen",{enumerable:!0,get:function(){return A.delayWhen}});var B=c(45597);Object.defineProperty(b,"dematerialize",{enumerable:!0,get:function(){return B.dematerialize}});var C=c(9177);Object.defineProperty(b,"distinct",{enumerable:!0,get:function(){return C.distinct}});var D=c(28853);Object.defineProperty(b,"distinctUntilChanged",{enumerable:!0,get:function(){return D.distinctUntilChanged}});var E=c(43048);Object.defineProperty(b,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return E.distinctUntilKeyChanged}});var F=c(56724);Object.defineProperty(b,"elementAt",{enumerable:!0,get:function(){return F.elementAt}});var G=c(89540);Object.defineProperty(b,"endWith",{enumerable:!0,get:function(){return G.endWith}});var H=c(57798);Object.defineProperty(b,"every",{enumerable:!0,get:function(){return H.every}});var I=c(83303);Object.defineProperty(b,"exhaust",{enumerable:!0,get:function(){return I.exhaust}});var J=c(85692);Object.defineProperty(b,"exhaustAll",{enumerable:!0,get:function(){return J.exhaustAll}});var K=c(17997);Object.defineProperty(b,"exhaustMap",{enumerable:!0,get:function(){return K.exhaustMap}});var L=c(30313);Object.defineProperty(b,"expand",{enumerable:!0,get:function(){return L.expand}});var M=c(97991);Object.defineProperty(b,"filter",{enumerable:!0,get:function(){return M.filter}});var N=c(60627);Object.defineProperty(b,"finalize",{enumerable:!0,get:function(){return N.finalize}});var O=c(17506);Object.defineProperty(b,"find",{enumerable:!0,get:function(){return O.find}});var P=c(59632);Object.defineProperty(b,"findIndex",{enumerable:!0,get:function(){return P.findIndex}});var Q=c(95499);Object.defineProperty(b,"first",{enumerable:!0,get:function(){return Q.first}});var R=c(25119);Object.defineProperty(b,"groupBy",{enumerable:!0,get:function(){return R.groupBy}});var S=c(95338);Object.defineProperty(b,"ignoreElements",{enumerable:!0,get:function(){return S.ignoreElements}});var T=c(90376);Object.defineProperty(b,"isEmpty",{enumerable:!0,get:function(){return T.isEmpty}});var U=c(23073);Object.defineProperty(b,"last",{enumerable:!0,get:function(){return U.last}});var V=c(53767);Object.defineProperty(b,"map",{enumerable:!0,get:function(){return V.map}});var W=c(570);Object.defineProperty(b,"mapTo",{enumerable:!0,get:function(){return W.mapTo}});var X=c(892);Object.defineProperty(b,"materialize",{enumerable:!0,get:function(){return X.materialize}});var Y=c(65263);Object.defineProperty(b,"max",{enumerable:!0,get:function(){return Y.max}});var Z=c(16557);Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return Z.merge}});var $=c(79526);Object.defineProperty(b,"mergeAll",{enumerable:!0,get:function(){return $.mergeAll}});var _=c(89614);Object.defineProperty(b,"flatMap",{enumerable:!0,get:function(){return _.flatMap}});var aa=c(19735);Object.defineProperty(b,"mergeMap",{enumerable:!0,get:function(){return aa.mergeMap}});var ab=c(39914);Object.defineProperty(b,"mergeMapTo",{enumerable:!0,get:function(){return ab.mergeMapTo}});var ac=c(15612);Object.defineProperty(b,"mergeScan",{enumerable:!0,get:function(){return ac.mergeScan}});var ad=c(71641);Object.defineProperty(b,"mergeWith",{enumerable:!0,get:function(){return ad.mergeWith}});var ae=c(29945);Object.defineProperty(b,"min",{enumerable:!0,get:function(){return ae.min}});var af=c(8439);Object.defineProperty(b,"multicast",{enumerable:!0,get:function(){return af.multicast}});var ag=c(20396);Object.defineProperty(b,"observeOn",{enumerable:!0,get:function(){return ag.observeOn}});var ah=c(94962);Object.defineProperty(b,"onErrorResumeNext",{enumerable:!0,get:function(){return ah.onErrorResumeNext}});var ai=c(50221);Object.defineProperty(b,"pairwise",{enumerable:!0,get:function(){return ai.pairwise}});var aj=c(21875);Object.defineProperty(b,"partition",{enumerable:!0,get:function(){return aj.partition}});var ak=c(53692);Object.defineProperty(b,"pluck",{enumerable:!0,get:function(){return ak.pluck}});var al=c(71174);Object.defineProperty(b,"publish",{enumerable:!0,get:function(){return al.publish}});var am=c(14576);Object.defineProperty(b,"publishBehavior",{enumerable:!0,get:function(){return am.publishBehavior}});var an=c(83002);Object.defineProperty(b,"publishLast",{enumerable:!0,get:function(){return an.publishLast}});var ao=c(27145);Object.defineProperty(b,"publishReplay",{enumerable:!0,get:function(){return ao.publishReplay}});var ap=c(53316);Object.defineProperty(b,"race",{enumerable:!0,get:function(){return ap.race}});var aq=c(64412);Object.defineProperty(b,"raceWith",{enumerable:!0,get:function(){return aq.raceWith}});var ar=c(90483);Object.defineProperty(b,"reduce",{enumerable:!0,get:function(){return ar.reduce}});var as=c(99194);Object.defineProperty(b,"repeat",{enumerable:!0,get:function(){return as.repeat}});var at=c(16310);Object.defineProperty(b,"repeatWhen",{enumerable:!0,get:function(){return at.repeatWhen}});var au=c(42979);Object.defineProperty(b,"retry",{enumerable:!0,get:function(){return au.retry}});var av=c(18947);Object.defineProperty(b,"retryWhen",{enumerable:!0,get:function(){return av.retryWhen}});var aw=c(63397);Object.defineProperty(b,"refCount",{enumerable:!0,get:function(){return aw.refCount}});var ax=c(27739);Object.defineProperty(b,"sample",{enumerable:!0,get:function(){return ax.sample}});var ay=c(78310);Object.defineProperty(b,"sampleTime",{enumerable:!0,get:function(){return ay.sampleTime}});var az=c(84876);Object.defineProperty(b,"scan",{enumerable:!0,get:function(){return az.scan}});var aA=c(36270);Object.defineProperty(b,"sequenceEqual",{enumerable:!0,get:function(){return aA.sequenceEqual}});var aB=c(76590);Object.defineProperty(b,"share",{enumerable:!0,get:function(){return aB.share}});var aC=c(95953);Object.defineProperty(b,"shareReplay",{enumerable:!0,get:function(){return aC.shareReplay}});var aD=c(20053);Object.defineProperty(b,"single",{enumerable:!0,get:function(){return aD.single}});var aE=c(26750);Object.defineProperty(b,"skip",{enumerable:!0,get:function(){return aE.skip}});var aF=c(64354);Object.defineProperty(b,"skipLast",{enumerable:!0,get:function(){return aF.skipLast}});var aG=c(11456);Object.defineProperty(b,"skipUntil",{enumerable:!0,get:function(){return aG.skipUntil}});var aH=c(83229);Object.defineProperty(b,"skipWhile",{enumerable:!0,get:function(){return aH.skipWhile}});var aI=c(52553);Object.defineProperty(b,"startWith",{enumerable:!0,get:function(){return aI.startWith}});var aJ=c(6556);Object.defineProperty(b,"subscribeOn",{enumerable:!0,get:function(){return aJ.subscribeOn}});var aK=c(49310);Object.defineProperty(b,"switchAll",{enumerable:!0,get:function(){return aK.switchAll}});var aL=c(85855);Object.defineProperty(b,"switchMap",{enumerable:!0,get:function(){return aL.switchMap}});var aM=c(72354);Object.defineProperty(b,"switchMapTo",{enumerable:!0,get:function(){return aM.switchMapTo}});var aN=c(69716);Object.defineProperty(b,"switchScan",{enumerable:!0,get:function(){return aN.switchScan}});var aO=c(25070);Object.defineProperty(b,"take",{enumerable:!0,get:function(){return aO.take}});var aP=c(83698);Object.defineProperty(b,"takeLast",{enumerable:!0,get:function(){return aP.takeLast}});var aQ=c(12752);Object.defineProperty(b,"takeUntil",{enumerable:!0,get:function(){return aQ.takeUntil}});var aR=c(96301);Object.defineProperty(b,"takeWhile",{enumerable:!0,get:function(){return aR.takeWhile}});var aS=c(35400);Object.defineProperty(b,"tap",{enumerable:!0,get:function(){return aS.tap}});var aT=c(90945);Object.defineProperty(b,"throttle",{enumerable:!0,get:function(){return aT.throttle}});var aU=c(97252);Object.defineProperty(b,"throttleTime",{enumerable:!0,get:function(){return aU.throttleTime}});var aV=c(49185);Object.defineProperty(b,"throwIfEmpty",{enumerable:!0,get:function(){return aV.throwIfEmpty}});var aW=c(79749);Object.defineProperty(b,"timeInterval",{enumerable:!0,get:function(){return aW.timeInterval}});var aX=c(11410);Object.defineProperty(b,"timeout",{enumerable:!0,get:function(){return aX.timeout}});var aY=c(89014);Object.defineProperty(b,"timeoutWith",{enumerable:!0,get:function(){return aY.timeoutWith}});var aZ=c(54261);Object.defineProperty(b,"timestamp",{enumerable:!0,get:function(){return aZ.timestamp}});var a$=c(86903);Object.defineProperty(b,"toArray",{enumerable:!0,get:function(){return a$.toArray}});var a_=c(11633);Object.defineProperty(b,"window",{enumerable:!0,get:function(){return a_.window}});var a0=c(12210);Object.defineProperty(b,"windowCount",{enumerable:!0,get:function(){return a0.windowCount}});var a1=c(72628);Object.defineProperty(b,"windowTime",{enumerable:!0,get:function(){return a1.windowTime}});var a2=c(51353);Object.defineProperty(b,"windowToggle",{enumerable:!0,get:function(){return a2.windowToggle}});var a3=c(6889);Object.defineProperty(b,"windowWhen",{enumerable:!0,get:function(){return a3.windowWhen}});var a4=c(6754);Object.defineProperty(b,"withLatestFrom",{enumerable:!0,get:function(){return a4.withLatestFrom}});var a5=c(23494);Object.defineProperty(b,"zip",{enumerable:!0,get:function(){return a5.zip}});var a6=c(85947);Object.defineProperty(b,"zipAll",{enumerable:!0,get:function(){return a6.zipAll}});var a7=c(78474);Object.defineProperty(b,"zipWith",{enumerable:!0,get:function(){return a7.zipWith}})},77550:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.joinAllInternals=void 0;var d=c(70332),e=c(88099),f=c(28610),g=c(19735),h=c(86903);b.joinAllInternals=function(a,b){return f.pipe(h.toArray(),g.mergeMap(function(b){return a(b)}),b?e.mapOneOrManyArgs(b):d.identity)}},77809:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isPromise=void 0;var d=c(14434);b.isPromise=function(a){return d.isFunction(null==a?void 0:a.then)}},77889:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.from=void 0;var d=c(1780),e=c(80241);b.from=function(a,b){return b?d.scheduled(a,b):e.innerFrom(a)}},78310:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.sampleTime=void 0;var d=c(84189),e=c(27739),f=c(580);b.sampleTime=function(a,b){return void 0===b&&(b=d.asyncScheduler),e.sample(f.interval(a,b))}},78474:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.zipWith=void 0;var f=c(23494);b.zipWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return f.zip.apply(void 0,e([],d(a)))}},78785:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.PathSegment=b.Path=b.UnboundRelationship=b.Relationship=b.Node=void 0,b.isNode=function(a){return l(a,g)},b.isRelationship=function(a){return l(a,h)},b.isUnboundRelationship=function(a){return l(a,i)},b.isPath=function(a){return l(a,j)},b.isPathSegment=function(a){return l(a,k)};var d=c(37459),e=c(93267),f={value:!0,enumerable:!1,configurable:!1,writable:!1},g="__isNode__",h="__isRelationship__",i="__isUnboundRelationship__",j="__isPath__",k="__isPathSegment__";function l(a,b){return null!=a&&!0===a[b]}var m=function(){function a(a,b,c,d){this.identity=a,this.labels=b,this.properties=c,this.elementId=r(d,function(){return a.toString()})}return a.prototype.as=function(a,b){var c=this;return(0,e.as)({get:function(a){return c.properties[a]}},a,b)},a.prototype.toString=function(){for(var a="("+this.elementId,b=0;b<this.labels.length;b++)a+=":"+this.labels[b];var c=Object.keys(this.properties);if(c.length>0){a+=" {";for(var b=0;b<c.length;b++)b>0&&(a+=","),a+=c[b]+":"+(0,d.stringify)(this.properties[c[b]]);a+="}"}return a+")"},a}();b.Node=m,Object.defineProperty(m.prototype,g,f);var n=function(){function a(a,b,c,d,e,f,g,h){this.identity=a,this.start=b,this.end=c,this.type=d,this.properties=e,this.elementId=r(f,function(){return a.toString()}),this.startNodeElementId=r(g,function(){return b.toString()}),this.endNodeElementId=r(h,function(){return c.toString()})}return a.prototype.as=function(a,b){var c=this;return(0,e.as)({get:function(a){return c.properties[a]}},a,b)},a.prototype.toString=function(){var a="("+this.startNodeElementId+")-[:"+this.type,b=Object.keys(this.properties);if(b.length>0){a+=" {";for(var c=0;c<b.length;c++)c>0&&(a+=","),a+=b[c]+":"+(0,d.stringify)(this.properties[b[c]]);a+="}"}return a+("]->("+this.endNodeElementId+")")},a}();b.Relationship=n,Object.defineProperty(n.prototype,h,f);var o=function(){function a(a,b,c,d){this.identity=a,this.type=b,this.properties=c,this.elementId=r(d,function(){return a.toString()})}return a.prototype.bind=function(a,b){return new n(this.identity,a,b,this.type,this.properties,this.elementId)},a.prototype.bindTo=function(a,b){return new n(this.identity,a.identity,b.identity,this.type,this.properties,this.elementId,a.elementId,b.elementId)},a.prototype.as=function(a,b){var c=this;return(0,e.as)({get:function(a){return c.properties[a]}},a,b)},a.prototype.toString=function(){var a="-[:"+this.type,b=Object.keys(this.properties);if(b.length>0){a+=" {";for(var c=0;c<b.length;c++)c>0&&(a+=","),a+=b[c]+":"+(0,d.stringify)(this.properties[b[c]]);a+="}"}return a+"]->"},a}();b.UnboundRelationship=o,Object.defineProperty(o.prototype,i,f);var p=function(a,b,c){this.start=a,this.relationship=b,this.end=c};b.PathSegment=p,Object.defineProperty(p.prototype,k,f);var q=function(a,b,c){this.start=a,this.end=b,this.segments=c,this.length=c.length};function r(a,b){return null==a?b():a}b.Path=q,Object.defineProperty(q.prototype,j,f)},78987:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.connectable=void 0;var d=c(57707),e=c(44230),f=c(84493),g={connector:function(){return new d.Subject},resetOnDisconnect:!0};b.connectable=function(a,b){void 0===b&&(b=g);var c=null,d=b.connector,h=b.resetOnDisconnect,i=void 0===h||h,j=d(),k=new e.Observable(function(a){return j.subscribe(a)});return k.connect=function(){return(!c||c.closed)&&(c=f.defer(function(){return a}).subscribe(j),i&&c.add(function(){return j=d()})),c},k}},79008:function(a,b,c){var d=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},e=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0});var g=c(54507),h=c(93267);b.default=function(){function a(a,b,c){var d;this.keys=a,this.length=a.length,this._fields=b,this._fieldLookup=null!=c?c:(d={},a.forEach(function(a,b){d[a]=b}),d)}return a.prototype.forEach=function(a){var b,c;try{for(var d=e(this.entries()),g=d.next();!g.done;g=d.next()){var h=f(g.value,2),i=h[0],j=h[1];a(j,i,this)}}catch(a){b={error:a}}finally{try{g&&!g.done&&(c=d.return)&&c.call(d)}finally{if(b)throw b.error}}},a.prototype.map=function(a){var b,c,d=[];try{for(var g=e(this.entries()),h=g.next();!h.done;h=g.next()){var i=f(h.value,2),j=i[0],k=i[1];d.push(a(k,j,this))}}catch(a){b={error:a}}finally{try{h&&!h.done&&(c=g.return)&&c.call(g)}finally{if(b)throw b.error}}return d},a.prototype.as=function(a,b){return(0,h.as)(this,a,b)},a.prototype.entries=function(){var a;return d(this,function(b){switch(b.label){case 0:a=0,b.label=1;case 1:if(!(a<this.keys.length))return[3,4];return[4,[this.keys[a],this._fields[a]]];case 2:b.sent(),b.label=3;case 3:return a++,[3,1];case 4:return[2]}})},a.prototype.values=function(){var a;return d(this,function(b){switch(b.label){case 0:a=0,b.label=1;case 1:if(!(a<this.keys.length))return[3,4];return[4,this._fields[a]];case 2:b.sent(),b.label=3;case 3:return a++,[3,1];case 4:return[2]}})},a.prototype[Symbol.iterator]=function(){var a;return d(this,function(b){switch(b.label){case 0:a=0,b.label=1;case 1:if(!(a<this.keys.length))return[3,4];return[4,this._fields[a]];case 2:b.sent(),b.label=3;case 3:return a++,[3,1];case 4:return[2]}})},a.prototype.toObject=function(){var a,b,c={};try{for(var d=e(this.entries()),g=d.next();!g.done;g=d.next()){var h=f(g.value,2),i=h[0],j=h[1];c[i]=j}}catch(b){a={error:b}}finally{try{g&&!g.done&&(b=d.return)&&b.call(d)}finally{if(a)throw a.error}}return c},a.prototype.get=function(a){var b;if("number"!=typeof a){if(void 0===(b=this._fieldLookup[a]))throw(0,g.newError)("This record has no field with key '".concat(a.toString(),"', available keys are: [")+this.keys.toString()+"].")}else b=a;if(b>this._fields.length-1||b<0)throw(0,g.newError)("This record has no field with index '"+b.toString()+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[b]},a.prototype.has=function(a){return"number"==typeof a?a>=0&&a<this._fields.length:void 0!==this._fieldLookup[a]},a}()},79327:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(10543));b.default=d({},f.default)},79345:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.ServerAddress=void 0;var h=c(49619),i=g(c(61327));b.ServerAddress=function(){function a(a,b,c,d){this._host=(0,h.assertString)(a,"host"),this._resolved=null!=b?(0,h.assertString)(b,"resolved"):null,this._port=(0,h.assertNumber)(c,"port"),this._hostPort=d,this._stringValue=null!=b?"".concat(d,"(").concat(b,")"):"".concat(d)}return a.prototype.host=function(){return this._host},a.prototype.resolvedHost=function(){return null!=this._resolved?this._resolved:this._host},a.prototype.port=function(){return this._port},a.prototype.resolveWith=function(b){return new a(this._host,b,this._port,this._hostPort)},a.prototype.asHostPort=function(){return this._hostPort},a.prototype.asKey=function(){return this._hostPort},a.prototype.toString=function(){return this._stringValue},a.fromUrl=function(b){var c=i.parseDatabaseUrl(b);return new a(c.host,null,c.port,c.hostAndPort)},a}()},79526:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.mergeAll=void 0;var d=c(19735),e=c(70332);b.mergeAll=function(a){return void 0===a&&(a=1/0),d.mergeMap(e.identity,a)}},79749:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.TimeInterval=b.timeInterval=void 0;var d=c(84189),e=c(58555),f=c(383);b.timeInterval=function(a){return void 0===a&&(a=d.asyncScheduler),e.operate(function(b,c){var d=a.now();b.subscribe(f.createOperatorSubscriber(c,function(b){var e=a.now(),f=e-d;d=e,c.next(new g(b,f))}))})};var g=function(a,b){this.value=a,this.interval=b};b.TimeInterval=g},79778:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.concatMapTo=void 0;var d=c(92575),e=c(14434);b.concatMapTo=function(a,b){return e.isFunction(b)?d.concatMap(function(){return a},b):d.concatMap(function(){return a})}},80128:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(4563));b.default=d({},f.default)},80241:(a,b,c)=>{var d=function(a,b){var c,d,e,f,g={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return f={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f;function h(f){return function(h){var i=[f,h];if(c)throw TypeError("Generator is already executing.");for(;g;)try{if(c=1,d&&(e=2&i[0]?d.return:i[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,i[1])).done)return e;switch(d=0,e&&(i=[2&i[0],e.value]),i[0]){case 0:case 1:e=i;break;case 4:return g.label++,{value:i[1],done:!1};case 5:g.label++,d=i[1],i=[0];continue;case 7:i=g.ops.pop(),g.trys.pop();continue;default:if(!(e=(e=g.trys).length>0&&e[e.length-1])&&(6===i[0]||2===i[0])){g=0;continue}if(3===i[0]&&(!e||i[1]>e[0]&&i[1]<e[3])){g.label=i[1];break}if(6===i[0]&&g.label<e[1]){g.label=e[1],e=i;break}if(e&&g.label<e[2]){g.label=e[2],g.ops.push(i);break}e[2]&&g.ops.pop(),g.trys.pop();continue}i=b.call(a,g)}catch(a){i=[6,a],d=0}finally{c=e=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}},e=function(a){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var b,c=a[Symbol.asyncIterator];return c?c.call(a):(a="function"==typeof f?f(a):a[Symbol.iterator](),b={},d("next"),d("throw"),d("return"),b[Symbol.asyncIterator]=function(){return this},b);function d(c){b[c]=a[c]&&function(b){return new Promise(function(d,e){var f,g,h;f=d,g=e,h=(b=a[c](b)).done,Promise.resolve(b.value).then(function(a){f({value:a,done:h})},g)})}}},f=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.fromReadableStreamLike=b.fromAsyncIterable=b.fromIterable=b.fromPromise=b.fromArrayLike=b.fromInteropObservable=b.innerFrom=void 0;var g=c(23526),h=c(77809),i=c(44230),j=c(96536),k=c(22910),l=c(47934),m=c(45588),n=c(60597),o=c(14434),p=c(29939),q=c(34479);function r(a){return new i.Observable(function(b){var c=a[q.observable]();if(o.isFunction(c.subscribe))return c.subscribe(b);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function s(a){return new i.Observable(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})}function t(a){return new i.Observable(function(b){a.then(function(a){b.closed||(b.next(a),b.complete())},function(a){return b.error(a)}).then(null,p.reportUnhandledError)})}function u(a){return new i.Observable(function(b){var c,d;try{for(var e=f(a),g=e.next();!g.done;g=e.next()){var h=g.value;if(b.next(h),b.closed)return}}catch(a){c={error:a}}finally{try{g&&!g.done&&(d=e.return)&&d.call(e)}finally{if(c)throw c.error}}b.complete()})}function v(a){return new i.Observable(function(b){(function(a,b){var c,f,g,h,i,j,k,l;return i=this,j=void 0,k=void 0,l=function(){var i;return d(this,function(d){switch(d.label){case 0:d.trys.push([0,5,6,11]),c=e(a),d.label=1;case 1:return[4,c.next()];case 2:if((f=d.sent()).done)return[3,4];if(i=f.value,b.next(i),b.closed)return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return g={error:d.sent()},[3,11];case 6:if(d.trys.push([6,,9,10]),!(f&&!f.done&&(h=c.return)))return[3,8];return[4,h.call(c)];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(g)throw g.error;return[7];case 10:return[7];case 11:return b.complete(),[2]}})},new(k||(k=Promise))(function(a,b){function c(a){try{e(l.next(a))}catch(a){b(a)}}function d(a){try{e(l.throw(a))}catch(a){b(a)}}function e(b){var e;b.done?a(b.value):((e=b.value)instanceof k?e:new k(function(a){a(e)})).then(c,d)}e((l=l.apply(i,j||[])).next())})})(a,b).catch(function(a){return b.error(a)})})}function w(a){return v(n.readableStreamLikeToAsyncGenerator(a))}b.innerFrom=function(a){if(a instanceof i.Observable)return a;if(null!=a){if(j.isInteropObservable(a))return r(a);if(g.isArrayLike(a))return s(a);if(h.isPromise(a))return t(a);if(k.isAsyncIterable(a))return v(a);if(m.isIterable(a))return u(a);if(n.isReadableStreamLike(a))return w(a)}throw l.createInvalidObservableTypeError(a)},b.fromInteropObservable=r,b.fromArrayLike=s,b.fromPromise=t,b.fromIterable=u,b.fromAsyncIterable=v,b.fromReadableStreamLike=w},80373:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})},g=this&&this.__generator||function(a,b){var c,d,e,f={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=h(0),g.throw=h(1),g.return=h(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function h(h){return function(i){var j=[h,i];if(c)throw TypeError("Generator is already executing.");for(;g&&(g=0,j[0]&&(f=0)),f;)try{if(c=1,d&&(e=2&j[0]?d.return:j[0]?d.throw||((e=d.return)&&e.call(d),0):d.next)&&!(e=e.call(d,j[1])).done)return e;switch(d=0,e&&(j=[2&j[0],e.value]),j[0]){case 0:case 1:e=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,d=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(e=(e=f.trys).length>0&&e[e.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!e||j[1]>e[0]&&j[1]<e[3])){f.label=j[1];break}if(6===j[0]&&f.label<e[1]){f.label=e[1],e=j;break}if(e&&f.label<e[2]){f.label=e[2],f.ops.push(j);break}e[2]&&f.ops.pop(),f.trys.pop();continue}j=b.call(a,f)}catch(a){j=[6,a],d=0}finally{c=e=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}}},h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var i=h(c(507)),j=c(32613),k=c(81773),l=k.internal.constants,m=l.BOLT_PROTOCOL_V3,n=l.BOLT_PROTOCOL_V4_0,o=l.BOLT_PROTOCOL_V4_4,p=l.BOLT_PROTOCOL_V5_1,q=k.error.SERVICE_UNAVAILABLE;b.default=function(a){function b(b){var c=b.id,d=b.config,e=b.log,f=b.address,g=b.userAgent,h=b.boltAgent,i=b.authTokenManager,j=b.newPool,k=a.call(this,{id:c,config:d,log:e,userAgent:g,boltAgent:h,authTokenManager:i,newPool:j})||this;return k._address=f,k}return e(b,a),b.prototype.acquireConnection=function(){return f(this,arguments,void 0,function(a){var b,c,d=this,e=void 0===a?{}:a,f=(e.accessMode,e.database),h=(e.bookmarks,e.auth),i=e.forceReAuth;return g(this,function(a){switch(a.label){case 0:return b=j.ConnectionErrorHandler.create({errorCode:q,handleSecurityError:function(a,b,c){return d._handleSecurityError(a,b,c,f)}}),[4,this._connectionPool.acquire({auth:h,forceReAuth:i},this._address)];case 1:if(c=a.sent(),!h)return[3,3];return[4,this._verifyStickyConnection({auth:h,connection:c,address:this._address})];case 2:return a.sent(),[2,c];case 3:return[2,new j.DelegateConnection(c,b)]}})})},b.prototype._handleSecurityError=function(b,c,d,e){return this._log.warn("Direct driver ".concat(this._id," will close connection to ").concat(c," for database '").concat(e,"' because of an error ").concat(b.code," '").concat(b.message,"'")),a.prototype._handleSecurityError.call(this,b,c,d)},b.prototype._hasProtocolVersion=function(a){return f(this,void 0,void 0,function(){var b,c;return g(this,function(d){switch(d.label){case 0:return[4,this._createChannelConnection(this._address)];case 1:return c=(b=d.sent()).protocol()?b.protocol().version:null,[4,b.close()];case 2:if(d.sent(),c)return[2,a(c)];return[2,!1]}})})},b.prototype.supportsMultiDb=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(n)})];case 1:return[2,a.sent()]}})})},b.prototype.getNegotiatedProtocolVersion=function(){var a=this;return new Promise(function(b,c){a._hasProtocolVersion(b).catch(c)})},b.prototype.supportsTransactionConfig=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(m)})];case 1:return[2,a.sent()]}})})},b.prototype.supportsUserImpersonation=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(o)})];case 1:return[2,a.sent()]}})})},b.prototype.supportsSessionAuth=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._hasProtocolVersion(function(a){return a.isGreaterOrEqualTo(p)})];case 1:return[2,a.sent()]}})})},b.prototype.verifyAuthentication=function(a){return f(this,arguments,void 0,function(a){var b=this,c=a.auth;return g(this,function(a){return[2,this._verifyAuthentication({auth:c,getAddress:function(){return b._address}})]})})},b.prototype.verifyConnectivityAndGetServerInfo=function(){return f(this,void 0,void 0,function(){return g(this,function(a){switch(a.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,a.sent()]}})})},b}(i.default)},81334:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.TELEMETRY_APIS=b.BOLT_PROTOCOL_V6_0=b.BOLT_PROTOCOL_V5_8=b.BOLT_PROTOCOL_V5_7=b.BOLT_PROTOCOL_V5_6=b.BOLT_PROTOCOL_V5_5=b.BOLT_PROTOCOL_V5_4=b.BOLT_PROTOCOL_V5_3=b.BOLT_PROTOCOL_V5_2=b.BOLT_PROTOCOL_V5_1=b.BOLT_PROTOCOL_V5_0=b.BOLT_PROTOCOL_V4_4=b.BOLT_PROTOCOL_V4_3=b.BOLT_PROTOCOL_V4_2=b.BOLT_PROTOCOL_V4_1=b.BOLT_PROTOCOL_V4_0=b.BOLT_PROTOCOL_V3=b.BOLT_PROTOCOL_V2=b.BOLT_PROTOCOL_V1=b.DEFAULT_POOL_MAX_SIZE=b.DEFAULT_POOL_ACQUISITION_TIMEOUT=b.DEFAULT_CONNECTION_TIMEOUT_MILLIS=b.ACCESS_MODE_WRITE=b.ACCESS_MODE_READ=b.FETCH_ALL=void 0;var d=c(92984);b.FETCH_ALL=-1,b.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4,b.DEFAULT_POOL_MAX_SIZE=100,b.DEFAULT_CONNECTION_TIMEOUT_MILLIS=3e4,b.ACCESS_MODE_READ="READ",b.ACCESS_MODE_WRITE="WRITE",b.BOLT_PROTOCOL_V1=new d.ProtocolVersion(1,0),b.BOLT_PROTOCOL_V2=new d.ProtocolVersion(2,0),b.BOLT_PROTOCOL_V3=new d.ProtocolVersion(3,0),b.BOLT_PROTOCOL_V4_0=new d.ProtocolVersion(4,0),b.BOLT_PROTOCOL_V4_1=new d.ProtocolVersion(4,1),b.BOLT_PROTOCOL_V4_2=new d.ProtocolVersion(4,2),b.BOLT_PROTOCOL_V4_3=new d.ProtocolVersion(4,3),b.BOLT_PROTOCOL_V4_4=new d.ProtocolVersion(4,4),b.BOLT_PROTOCOL_V5_0=new d.ProtocolVersion(5,0),b.BOLT_PROTOCOL_V5_1=new d.ProtocolVersion(5,1),b.BOLT_PROTOCOL_V5_2=new d.ProtocolVersion(5,2),b.BOLT_PROTOCOL_V5_3=new d.ProtocolVersion(5,3),b.BOLT_PROTOCOL_V5_4=new d.ProtocolVersion(5,4),b.BOLT_PROTOCOL_V5_5=new d.ProtocolVersion(5,5),b.BOLT_PROTOCOL_V5_6=new d.ProtocolVersion(5,6),b.BOLT_PROTOCOL_V5_7=new d.ProtocolVersion(5,7),b.BOLT_PROTOCOL_V5_8=new d.ProtocolVersion(5,8),b.BOLT_PROTOCOL_V6_0=new d.ProtocolVersion(6,0),b.TELEMETRY_APIS={MANAGED_TRANSACTION:0,UNMANAGED_TRANSACTION:1,AUTO_COMMIT_TRANSACTION:2,EXECUTE_QUERY:3}},81525:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.concat=void 0;var f=c(58555),g=c(56030),h=c(53851),i=c(77889);b.concat=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=h.popScheduler(a);return f.operate(function(b,f){g.concatAll()(i.from(e([b],d(a)),c)).subscribe(f)})}},81773:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.Result=b.Stats=b.QueryStatistics=b.ProfiledPlan=b.Plan=b.GqlStatusObject=b.Notification=b.ServerInfo=b.queryType=b.ResultSummary=b.Record=b.isPathSegment=b.PathSegment=b.isPath=b.Path=b.isUnboundRelationship=b.UnboundRelationship=b.isRelationship=b.Relationship=b.isNode=b.Node=b.Time=b.LocalTime=b.LocalDateTime=b.isTime=b.isLocalTime=b.isLocalDateTime=b.isDuration=b.isDateTime=b.isDate=b.Duration=b.DateTime=b.Date=b.Point=b.isPoint=b.internal=b.toString=b.toNumber=b.inSafeRange=b.isInt=b.int=b.Integer=b.error=b.isRetriableError=b.isRetryableError=b.GQLError=b.newGQLError=b.Neo4jError=b.newError=b.authTokenManagers=void 0,b.isUnsupportedType=b.UnsupportedType=b.StandardCase=b.RecordObjectMapping=b.mappingDecorators=b.rule=b.ProtocolVersion=b.vector=b.Vector=b.isVector=b.resolveCertificateProvider=b.clientCertificateProviders=b.notificationFilterMinimumSeverityLevel=b.notificationFilterDisabledClassification=b.notificationFilterDisabledCategory=b.notificationSeverityLevel=b.notificationClassification=b.notificationCategory=b.resultTransformers=b.routing=b.staticAuthTokenManager=b.bookmarkManager=b.auth=b.json=b.driver=b.types=b.Driver=b.Session=b.TransactionPromise=b.ManagedTransaction=b.Transaction=b.Connection=b.Releasable=b.ConnectionProvider=b.EagerResult=void 0;var i=c(54507);Object.defineProperty(b,"newError",{enumerable:!0,get:function(){return i.newError}}),Object.defineProperty(b,"Neo4jError",{enumerable:!0,get:function(){return i.Neo4jError}}),Object.defineProperty(b,"newGQLError",{enumerable:!0,get:function(){return i.newGQLError}}),Object.defineProperty(b,"GQLError",{enumerable:!0,get:function(){return i.GQLError}}),Object.defineProperty(b,"isRetryableError",{enumerable:!0,get:function(){return i.isRetryableError}}),Object.defineProperty(b,"isRetriableError",{enumerable:!0,get:function(){return i.isRetriableError}});var j=g(c(17459));b.Integer=j.default,Object.defineProperty(b,"int",{enumerable:!0,get:function(){return j.int}}),Object.defineProperty(b,"isInt",{enumerable:!0,get:function(){return j.isInt}}),Object.defineProperty(b,"inSafeRange",{enumerable:!0,get:function(){return j.inSafeRange}}),Object.defineProperty(b,"toNumber",{enumerable:!0,get:function(){return j.toNumber}}),Object.defineProperty(b,"toString",{enumerable:!0,get:function(){return j.toString}});var k=c(51835);Object.defineProperty(b,"Date",{enumerable:!0,get:function(){return k.Date}}),Object.defineProperty(b,"DateTime",{enumerable:!0,get:function(){return k.DateTime}}),Object.defineProperty(b,"Duration",{enumerable:!0,get:function(){return k.Duration}}),Object.defineProperty(b,"isDate",{enumerable:!0,get:function(){return k.isDate}}),Object.defineProperty(b,"isDateTime",{enumerable:!0,get:function(){return k.isDateTime}}),Object.defineProperty(b,"isDuration",{enumerable:!0,get:function(){return k.isDuration}}),Object.defineProperty(b,"isLocalDateTime",{enumerable:!0,get:function(){return k.isLocalDateTime}}),Object.defineProperty(b,"isLocalTime",{enumerable:!0,get:function(){return k.isLocalTime}}),Object.defineProperty(b,"isTime",{enumerable:!0,get:function(){return k.isTime}}),Object.defineProperty(b,"LocalDateTime",{enumerable:!0,get:function(){return k.LocalDateTime}}),Object.defineProperty(b,"LocalTime",{enumerable:!0,get:function(){return k.LocalTime}}),Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return k.Time}});var l=c(78785);Object.defineProperty(b,"Node",{enumerable:!0,get:function(){return l.Node}}),Object.defineProperty(b,"isNode",{enumerable:!0,get:function(){return l.isNode}}),Object.defineProperty(b,"Relationship",{enumerable:!0,get:function(){return l.Relationship}}),Object.defineProperty(b,"isRelationship",{enumerable:!0,get:function(){return l.isRelationship}}),Object.defineProperty(b,"UnboundRelationship",{enumerable:!0,get:function(){return l.UnboundRelationship}}),Object.defineProperty(b,"isUnboundRelationship",{enumerable:!0,get:function(){return l.isUnboundRelationship}}),Object.defineProperty(b,"Path",{enumerable:!0,get:function(){return l.Path}}),Object.defineProperty(b,"isPath",{enumerable:!0,get:function(){return l.isPath}}),Object.defineProperty(b,"PathSegment",{enumerable:!0,get:function(){return l.PathSegment}}),Object.defineProperty(b,"isPathSegment",{enumerable:!0,get:function(){return l.isPathSegment}});var m=h(c(79008));b.Record=m.default;var n=c(90705);Object.defineProperty(b,"isPoint",{enumerable:!0,get:function(){return n.isPoint}}),Object.defineProperty(b,"Point",{enumerable:!0,get:function(){return n.Point}});var o=g(c(99381));b.ResultSummary=o.default,Object.defineProperty(b,"queryType",{enumerable:!0,get:function(){return o.queryType}}),Object.defineProperty(b,"ServerInfo",{enumerable:!0,get:function(){return o.ServerInfo}}),Object.defineProperty(b,"Plan",{enumerable:!0,get:function(){return o.Plan}}),Object.defineProperty(b,"ProfiledPlan",{enumerable:!0,get:function(){return o.ProfiledPlan}}),Object.defineProperty(b,"QueryStatistics",{enumerable:!0,get:function(){return o.QueryStatistics}}),Object.defineProperty(b,"Stats",{enumerable:!0,get:function(){return o.Stats}});var p=g(c(59138));b.GqlStatusObject=p.default,Object.defineProperty(b,"Notification",{enumerable:!0,get:function(){return p.Notification}}),Object.defineProperty(b,"notificationCategory",{enumerable:!0,get:function(){return p.notificationCategory}}),Object.defineProperty(b,"notificationClassification",{enumerable:!0,get:function(){return p.notificationClassification}}),Object.defineProperty(b,"notificationSeverityLevel",{enumerable:!0,get:function(){return p.notificationSeverityLevel}});var q=c(27613);Object.defineProperty(b,"notificationFilterDisabledCategory",{enumerable:!0,get:function(){return q.notificationFilterDisabledCategory}}),Object.defineProperty(b,"notificationFilterDisabledClassification",{enumerable:!0,get:function(){return q.notificationFilterDisabledClassification}}),Object.defineProperty(b,"notificationFilterMinimumSeverityLevel",{enumerable:!0,get:function(){return q.notificationFilterMinimumSeverityLevel}});var r=h(c(57236));b.Result=r.default;var s=h(c(33441));b.EagerResult=s.default;var t=g(c(12495));b.ConnectionProvider=t.default,Object.defineProperty(b,"Releasable",{enumerable:!0,get:function(){return t.Releasable}});var u=h(c(46397));b.Connection=u.default;var v=h(c(49573));b.Transaction=v.default;var w=h(c(11649));b.ManagedTransaction=w.default;var x=h(c(71293));b.TransactionPromise=x.default;var y=h(c(1501));b.Session=y.default;var z=g(c(68979));b.Driver=z.default,b.driver=z;var A=h(c(89471));b.auth=A.default;var B=c(3819);Object.defineProperty(b,"bookmarkManager",{enumerable:!0,get:function(){return B.bookmarkManager}});var C=c(58257);Object.defineProperty(b,"authTokenManagers",{enumerable:!0,get:function(){return C.authTokenManagers}}),Object.defineProperty(b,"staticAuthTokenManager",{enumerable:!0,get:function(){return C.staticAuthTokenManager}});var D=c(68979);Object.defineProperty(b,"routing",{enumerable:!0,get:function(){return D.routing}});var E=g(c(99644));b.types=E;var F=g(c(37459));b.json=F;var G=h(c(53089));b.resultTransformers=G.default;var H=c(72612);Object.defineProperty(b,"clientCertificateProviders",{enumerable:!0,get:function(){return H.clientCertificateProviders}}),Object.defineProperty(b,"resolveCertificateProvider",{enumerable:!0,get:function(){return H.resolveCertificateProvider}});var I=g(c(86163));b.internal=I;var J=c(92984);Object.defineProperty(b,"ProtocolVersion",{enumerable:!0,get:function(){return J.ProtocolVersion}});var K=g(c(95642));b.Vector=K.default,Object.defineProperty(b,"vector",{enumerable:!0,get:function(){return K.vector}}),Object.defineProperty(b,"isVector",{enumerable:!0,get:function(){return K.isVector}});var L=c(59828);Object.defineProperty(b,"StandardCase",{enumerable:!0,get:function(){return L.StandardCase}});var M=c(93267);Object.defineProperty(b,"RecordObjectMapping",{enumerable:!0,get:function(){return M.RecordObjectMapping}});var N=c(37958);Object.defineProperty(b,"rule",{enumerable:!0,get:function(){return N.rule}});var O=h(c(64247));b.mappingDecorators=O.default;var P=g(c(18583));b.UnsupportedType=P.default,Object.defineProperty(b,"isUnsupportedType",{enumerable:!0,get:function(){return P.isUnsupportedType}});var Q={SERVICE_UNAVAILABLE:i.SERVICE_UNAVAILABLE,SESSION_EXPIRED:i.SESSION_EXPIRED,PROTOCOL_ERROR:i.PROTOCOL_ERROR};b.error=Q,b.default={authTokenManagers:C.authTokenManagers,newError:i.newError,Neo4jError:i.Neo4jError,newGQLError:i.newGQLError,GQLError:i.GQLError,isRetryableError:i.isRetryableError,isRetriableError:i.isRetriableError,error:Q,Integer:j.default,int:j.int,isInt:j.isInt,inSafeRange:j.inSafeRange,toNumber:j.toNumber,toString:j.toString,internal:I,isPoint:n.isPoint,Point:n.Point,Date:k.Date,DateTime:k.DateTime,Duration:k.Duration,isDate:k.isDate,isDateTime:k.isDateTime,isDuration:k.isDuration,isLocalDateTime:k.isLocalDateTime,isLocalTime:k.isLocalTime,isTime:k.isTime,LocalDateTime:k.LocalDateTime,LocalTime:k.LocalTime,Time:k.Time,Node:l.Node,isNode:l.isNode,Relationship:l.Relationship,isRelationship:l.isRelationship,UnboundRelationship:l.UnboundRelationship,isUnboundRelationship:l.isUnboundRelationship,Path:l.Path,isPath:l.isPath,PathSegment:l.PathSegment,isPathSegment:l.isPathSegment,Record:m.default,ResultSummary:o.default,queryType:o.queryType,ServerInfo:o.ServerInfo,Notification:p.Notification,GqlStatusObject:p.default,Plan:o.Plan,ProfiledPlan:o.ProfiledPlan,QueryStatistics:o.QueryStatistics,Stats:o.Stats,Result:r.default,EagerResult:s.default,Transaction:v.default,ManagedTransaction:w.default,TransactionPromise:x.default,Session:y.default,Driver:z.default,Connection:u.default,Releasable:t.Releasable,types:E,driver:z,json:F,auth:A.default,bookmarkManager:B.bookmarkManager,routing:D.routing,resultTransformers:G.default,notificationCategory:p.notificationCategory,notificationClassification:p.notificationClassification,notificationSeverityLevel:p.notificationSeverityLevel,notificationFilterDisabledCategory:q.notificationFilterDisabledCategory,notificationFilterDisabledClassification:q.notificationFilterDisabledClassification,notificationFilterMinimumSeverityLevel:q.notificationFilterMinimumSeverityLevel,clientCertificateProviders:H.clientCertificateProviders,resolveCertificateProvider:H.resolveCertificateProvider,ProtocolVersion:J.ProtocolVersion,rule:N.rule,mappingDecorators:O.default,RecordObjectMapping:M.RecordObjectMapping,StandardCase:L.StandardCase,UnsupportedType:P.default,isUnsupportedType:P.isUnsupportedType,isVector:K.isVector,vector:K.vector}},81887:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.combineLatestInit=b.combineLatest=void 0;var d=c(44230),e=c(49364),f=c(77889),g=c(70332),h=c(88099),i=c(53851),j=c(83681),k=c(383),l=c(60510);function m(a,b,c){return void 0===c&&(c=g.identity),function(d){n(b,function(){for(var e=a.length,g=Array(e),h=e,i=e,j=function(e){n(b,function(){var j=f.from(a[e],b),l=!1;j.subscribe(k.createOperatorSubscriber(d,function(a){g[e]=a,!l&&(l=!0,i--),i||d.next(c(g.slice()))},function(){--h||d.complete()}))},d)},l=0;l<e;l++)j(l)},d)}}function n(a,b,c){a?l.executeSchedule(c,a,b):b()}b.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=i.popScheduler(a),k=i.popResultSelector(a),l=e.argsArgArrayOrObject(a),n=l.args,o=l.keys;if(0===n.length)return f.from([],c);var p=new d.Observable(m(n,c,o?function(a){return j.createObject(o,a)}:g.identity));return k?p.pipe(h.mapOneOrManyArgs(k)):p},b.combineLatestInit=m},83002:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.publishLast=void 0;var d=c(37311),e=c(57534);b.publishLast=function(){return function(a){var b=new d.AsyncSubject;return new e.ConnectableObservable(a,function(){return b})}}},83229:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.skipWhile=void 0;var d=c(58555),e=c(383);b.skipWhile=function(a){return d.operate(function(b,c){var d=!1,f=0;b.subscribe(e.createOperatorSubscriber(c,function(b){return(d||(d=!a(b,f++)))&&c.next(b)}))})}},83303:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.exhaust=void 0,b.exhaust=c(85692).exhaustAll},83420:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scanInternals=void 0;var d=c(383);b.scanInternals=function(a,b,c,e,f){return function(g,h){var i=c,j=b,k=0;g.subscribe(d.createOperatorSubscriber(h,function(b){var c=k++;j=i?a(j,b,c):(i=!0,b),e&&h.next(j)},f&&function(){i&&h.next(j),h.complete()}))}}},83476:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.dateTimestampProvider=void 0,b.dateTimestampProvider={now:function(){return(b.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},83681:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.createObject=void 0,b.createObject=function(a,b){return a.reduce(function(a,c,d){return a[c]=b[d],a},{})}},83698:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.takeLast=void 0;var e=c(15980),f=c(58555),g=c(383);b.takeLast=function(a){return a<=0?function(){return e.EMPTY}:f.operate(function(b,c){var e=[];b.subscribe(g.createOperatorSubscriber(c,function(b){e.push(b),a<e.length&&e.shift()},function(){var a,b;try{for(var f=d(e),g=f.next();!g.done;g=f.next()){var h=g.value;c.next(h)}}catch(b){a={error:b}}finally{try{g&&!g.done&&(b=f.return)&&b.call(f)}finally{if(a)throw a.error}}c.complete()},void 0,function(){e=null}))})}},83702:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0})},84189:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.async=b.asyncScheduler=void 0;var d=c(70883);b.asyncScheduler=new(c(23004)).AsyncScheduler(d.AsyncAction),b.async=b.asyncScheduler},84493:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.defer=void 0;var d=c(44230),e=c(80241);b.defer=function(a){return new d.Observable(function(b){e.innerFrom(a()).subscribe(b)})}},84876:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scan=void 0;var d=c(58555),e=c(83420);b.scan=function(a,b){return d.operate(e.scanInternals(a,b,arguments.length>=2,!0))}},84952:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a){function b(b){var c=a.call(this)||this;return c._connection=b,c}return e(b,a),b.prototype.acquireConnection=function(a){var b=void 0===a?{}:a;b.accessMode,b.database,b.bookmarks;var c=this._connection;return this._connection=null,Promise.resolve(c)},b}(c(81773).ConnectionProvider)},85141:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.scheduleReadableStreamLike=void 0;var d=c(53982),e=c(60597);b.scheduleReadableStreamLike=function(a,b){return d.scheduleAsyncIterable(e.readableStreamLikeToAsyncGenerator(a),b)}},85273:function(a,b,c){var d=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=c(14276),g=c(81773),h=e(c(27038)),i=c(34193),j=c(33024),k=g.internal.temporalUtil.localDateTimeToEpochSecond,l=new Map;function m(a,b,c){var d=function(a){if(!l.has(a)){var b=new Intl.DateTimeFormat("en-US",{timeZone:a,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"});l.set(a,b)}return l.get(a)}(a),e=(0,g.int)(b).multiply(1e3).add((0,g.int)(c).div(1e6)).toNumber(),f=d.formatToParts(e).reduce(function(a,b){return"era"===b.type?a.adjustEra="B"===b.value.toUpperCase()?function(a){return a.subtract(1).negate()}:j.identity:"hour"===b.type?a.hour=(0,g.int)(b.value).modulo(24):"literal"!==b.type&&(a[b.type]=(0,g.int)(b.value)),a},{});f.year=f.adjustEra(f.year);var h=k(f.year,f.month,f.day,f.hour,f.minute,f.second,f.nanosecond);return f.timeZoneOffsetSeconds=h.subtract(b),f.hour=f.hour.modulo(24),f}function n(a,b,c){if(!b&&!c)return a;var d=Object.create(Object.getPrototypeOf(a));for(var e in a)if(!0===Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];d[e]=(0,g.isInt)(f)?c?f.toBigInt():f.toNumberOrInfinity():f}return Object.freeze(d),d}b.default={createDateTimeWithZoneIdTransformer:function(a,b){var c=a.disableLosslessIntegers,e=a.useBigInt;return h.default.createDateTimeWithZoneIdTransformer(a).extendsWith({signature:105,fromStructure:function(a){f.structure.verifyStructSize("DateTimeWithZoneId",3,a.size);var b=d(a.fields,3),h=b[0],i=b[1],j=b[2],k=m(j,h,i);return n(new g.DateTime(k.year,k.month,k.day,k.hour,k.minute,k.second,(0,g.int)(i),k.timeZoneOffsetSeconds,j),c,e)},toStructure:function(a){var c,d,e,h,i,j,l,n=k(a.year,a.month,a.day,a.hour,a.minute,a.second,a.nanosecond),o=null!=a.timeZoneOffsetSeconds?a.timeZoneOffsetSeconds:(c=a.timeZoneId,i=k((h=m(c,d=n,e=a.nanosecond)).year,h.month,h.day,h.hour,h.minute,h.second,e).subtract(d),k((l=m(c,j=d.subtract(i),e)).year,l.month,l.day,l.hour,l.minute,l.second,e).subtract(j));null==a.timeZoneOffsetSeconds&&b.warn('DateTime objects without "timeZoneOffsetSeconds" property are prune to bugs related to ambiguous times. For instance, 2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');var p=n.subtract(o),q=(0,g.int)(a.nanosecond),r=a.timeZoneId;return new f.structure.Structure(105,[p,q,r])}})},createDateTimeWithOffsetTransformer:function(a){var b=a.disableLosslessIntegers,c=a.useBigInt;return h.default.createDateTimeWithOffsetTransformer(a).extendsWith({signature:73,toStructure:function(a){var b=k(a.year,a.month,a.day,a.hour,a.minute,a.second,a.nanosecond),c=(0,g.int)(a.nanosecond),d=(0,g.int)(a.timeZoneOffsetSeconds),e=b.subtract(d);return new f.structure.Structure(73,[e,c,d])},fromStructure:function(a){f.structure.verifyStructSize("DateTimeWithZoneOffset",3,a.size);var e=d(a.fields,3),h=e[0],j=e[1],k=e[2],l=(0,g.int)(h).add(k),m=(0,i.epochSecondAndNanoToLocalDateTime)(l,j);return n(new g.DateTime(m.year,m.month,m.day,m.hour,m.minute,m.second,m.nanosecond,k,null),b,c)}})}}},85309:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a){function b(b,c){var d=a.call(this,c)||this;return c&&(d._originalErrorHandler=b._errorHandler,b._errorHandler=d._errorHandler),d._delegate=b,d}return e(b,a),b.prototype.beginTransaction=function(a){return this._delegate.beginTransaction(a)},b.prototype.run=function(a,b,c){return this._delegate.run(a,b,c)},b.prototype.commitTransaction=function(a){return this._delegate.commitTransaction(a)},b.prototype.rollbackTransaction=function(a){return this._delegate.rollbackTransaction(a)},b.prototype.getProtocolVersion=function(){return this._delegate.getProtocolVersion()},Object.defineProperty(b.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(a){this._delegate.databaseId=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"authToken",{get:function(){return this._delegate.authToken},set:function(a){this._delegate.authToken=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"supportsReAuth",{get:function(){return this._delegate.supportsReAuth},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"version",{get:function(){return this._delegate.version},set:function(a){this._delegate.version=a},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"creationTimestamp",{get:function(){return this._delegate.creationTimestamp},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"idleTimestamp",{get:function(){return this._delegate.idleTimestamp},set:function(a){this._delegate.idleTimestamp=a},enumerable:!1,configurable:!0}),b.prototype.isOpen=function(){return this._delegate.isOpen()},b.prototype.protocol=function(){return this._delegate.protocol()},b.prototype.connect=function(a,b,c,d){return this._delegate.connect(a,b,c,d)},b.prototype.write=function(a,b,c){return this._delegate.write(a,b,c)},b.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},b.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()},b.prototype.close=function(){return this._delegate.close()},b.prototype.release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate.release()},b}(f(c(66709)).default)},85582:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ObjectUnsubscribedError=void 0,b.ObjectUnsubscribedError=c(8708).createErrorClass(function(a){return function(){a(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},85692:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.exhaustAll=void 0;var d=c(17997),e=c(70332);b.exhaustAll=function(){return d.exhaustMap(e.identity)}},85770:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.ReplaySubject=void 0;var f=c(57707),g=c(83476);b.ReplaySubject=function(a){function b(b,c,d){void 0===b&&(b=1/0),void 0===c&&(c=1/0),void 0===d&&(d=g.dateTimestampProvider);var e=a.call(this)||this;return e._bufferSize=b,e._windowTime=c,e._timestampProvider=d,e._buffer=[],e._infiniteTimeWindow=!0,e._infiniteTimeWindow=c===1/0,e._bufferSize=Math.max(1,b),e._windowTime=Math.max(1,c),e}return e(b,a),b.prototype.next=function(b){var c=this.isStopped,d=this._buffer,e=this._infiniteTimeWindow,f=this._timestampProvider,g=this._windowTime;!c&&(d.push(b),e||d.push(f.now()+g)),this._trimBuffer(),a.prototype.next.call(this,b)},b.prototype._subscribe=function(a){this._throwIfClosed(),this._trimBuffer();for(var b=this._innerSubscribe(a),c=this._infiniteTimeWindow,d=this._buffer.slice(),e=0;e<d.length&&!a.closed;e+=c?1:2)a.next(d[e]);return this._checkFinalizedStatuses(a),b},b.prototype._trimBuffer=function(){var a=this._bufferSize,b=this._timestampProvider,c=this._buffer,d=this._infiniteTimeWindow,e=(d?1:2)*a;if(a<1/0&&e<c.length&&c.splice(0,c.length-e),!d){for(var f=b.now(),g=0,h=1;h<c.length&&c[h]<=f;h+=2)g=h;g&&c.splice(0,g+1)}},b}(f.Subject)},85855:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.switchMap=void 0;var d=c(80241),e=c(58555),f=c(383);b.switchMap=function(a,b){return e.operate(function(c,e){var g=null,h=0,i=!1,j=function(){return i&&!g&&e.complete()};c.subscribe(f.createOperatorSubscriber(e,function(c){null==g||g.unsubscribe();var i=0,k=h++;d.innerFrom(a(c,k)).subscribe(g=f.createOperatorSubscriber(e,function(a){return e.next(b?b(c,a,k,i++):a)},function(){g=null,j()}))},function(){i=!0,j()}))})}},85947:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.zipAll=void 0;var d=c(43662),e=c(77550);b.zipAll=function(a){return e.joinAllInternals(d.zip,a)}},86163:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.pool=b.boltAgent=b.objectUtil=b.resolver=b.serverAddress=b.urlUtil=b.logger=b.transactionExecutor=b.txConfig=b.connectionHolder=b.constants=b.bookmarks=b.observer=b.temporalUtil=b.util=void 0,b.util=g(c(49619)),b.temporalUtil=g(c(21182)),b.observer=g(c(21764)),b.bookmarks=g(c(8506)),b.constants=g(c(81334)),b.connectionHolder=g(c(27650)),b.txConfig=g(c(87794)),b.transactionExecutor=g(c(2265)),b.logger=g(c(39355)),b.urlUtil=g(c(61327)),b.serverAddress=g(c(79345)),b.resolver=g(c(11590)),b.objectUtil=g(c(68497)),b.boltAgent=g(c(24547)),b.pool=g(c(99658))},86903:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.toArray=void 0;var d=c(90483),e=c(58555),f=function(a,b){return a.push(b),a};b.toArray=function(){return e.operate(function(a,b){d.reduce(f,[])(a).subscribe(b)})}},87794:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b});Object.defineProperty(b,"__esModule",{value:!0}),b.TxConfig=void 0;var h=g(c(49619)),i=c(54507),j=c(17459),k=function(){function a(a,b){var c;null!=(c=a)&&h.assertObject(c,"Transaction config"),this.timeout=function(a,b){if(h.isObject(a)&&null!=a.timeout){h.assertNumberOrInteger(a.timeout,"Transaction timeout"),"number"!=typeof(c=a).timeout||Number.isInteger(c.timeout)||(null==b?void 0:b.isInfoEnabled())!==!0||null==b||b.info("Transaction timeout expected to be an integer, got: ".concat(a.timeout,". The value will be rounded up."));var c,d=(0,j.int)(a.timeout,{ceilFloat:!0});if(d.isNegative())throw(0,i.newError)("Transaction timeout should not be negative");return d}return null}(a,b),this.metadata=function(a){if(h.isObject(a)&&null!=a.metadata){var b=a.metadata;if(h.assertObject(b,"config.metadata"),0!==Object.keys(b).length)return b}return null}(a)}return a.empty=function(){return l},a.prototype.isEmpty=function(){return Object.values(this).every(function(a){return null==a})},a}();b.TxConfig=k;var l=new k({})},87942:function(a,b){var c=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.equals=function(a,b){var d,e;if(a===b)return!0;if(null===a||null===b)return!1;if("object"==typeof a&&"object"==typeof b){var f=Object.keys(a),g=Object.keys(b);if(f.length!==g.length)return!1;try{for(var h=c(f),i=h.next();!i.done;i=h.next()){var j=i.value;if(a[j]!==b[j])return!1}}catch(a){d={error:a}}finally{try{i&&!i.done&&(e=h.return)&&e.call(h)}finally{if(d)throw d.error}}return!0}return!1}},88099:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.mapOneOrManyArgs=void 0;var f=c(53767),g=Array.isArray;b.mapOneOrManyArgs=function(a){return f.map(function(b){return g(b)?a.apply(void 0,e([],d(b))):a(b)})}},88247:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__assign||function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var h=g(c(65964)),i=g(c(75046)),j=g(c(90797)),k=g(c(28881)),l=c(95590),m=c(81773).internal.constants,n=m.BOLT_PROTOCOL_V5_5,o=m.FETCH_ALL,p=Object.freeze({OPERATION:"",OPERATION_CODE:"0",CURRENT_SCHEMA:"/"});b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),Object.defineProperty(b.prototype,"version",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new j.default(Object.values(i.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.initialize=function(a){var b=this,c=void 0===a?{}:a,d=c.userAgent,e=c.boltAgent,g=c.authToken,h=c.notificationFilter,i=c.onError,j=c.onComplete,m={},n=new l.LoginObserver({onError:function(a){return b._onLoginError(a,i)},onCompleted:function(a){return m.metadata=a,b._onLoginCompleted(a)}});return this.write(k.default.hello5x5(d,e,h,this._serversideRouting),n,!1),this.logon({authToken:g,onComplete:function(a){return j(f(f({},a),m.metadata))},onError:i,flush:!0})},b.prototype.beginTransaction=function(a){var b=void 0===a?{}:a,c=b.bookmarks,d=b.txConfig,e=b.database,f=b.mode,g=b.impersonatedUser,h=b.notificationFilter,i=b.beforeError,j=b.afterError,m=b.beforeComplete,n=b.afterComplete,o=new l.ResultStreamObserver({server:this._server,beforeError:i,afterError:j,beforeComplete:m,afterComplete:n});return o.prepareToHandleSingleResponse(),this.write(k.default.begin5x5({bookmarks:c,txConfig:d,database:e,mode:f,impersonatedUser:g,notificationFilter:h}),o,!0),o},b.prototype.run=function(a,b,c){var d=void 0===c?{}:c,e=d.bookmarks,f=d.txConfig,g=d.database,h=d.mode,i=d.impersonatedUser,j=d.notificationFilter,m=d.beforeKeys,n=d.afterKeys,p=d.beforeError,q=d.afterError,r=d.beforeComplete,s=d.afterComplete,t=d.flush,u=void 0===t||t,v=d.reactive,w=void 0!==v&&v,x=d.fetchSize,y=void 0===x?o:x,z=d.highRecordWatermark,A=void 0===z?Number.MAX_VALUE:z,B=d.lowRecordWatermark,C=void 0===B?Number.MAX_VALUE:B,D=new l.ResultStreamObserver({server:this._server,reactive:w,fetchSize:y,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:m,afterKeys:n,beforeError:p,afterError:q,beforeComplete:r,afterComplete:s,highRecordWatermark:A,lowRecordWatermark:C,enrichMetadata:this._enrichMetadata});return this.write(k.default.runWithMetadata5x5(a,b,{bookmarks:e,txConfig:f,database:g,mode:h,impersonatedUser:i,notificationFilter:j}),D,w&&u),w||this.write(k.default.pull({n:y}),D,u),D},b.prototype._enrichMetadata=function(a){return Array.isArray(a.statuses)&&(a.statuses=a.statuses.map(function(a){return f(f({},a),{description:null!=a.neo4j_code?a.status_description:a.description,diagnostic_record:null!==a.diagnostic_record?f(f({},p),a.diagnostic_record):null})})),a},b}(h.default)},88273:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.schedulePromise=void 0;var d=c(80241),e=c(20396),f=c(6556);b.schedulePromise=function(a,b){return d.innerFrom(a).pipe(f.subscribeOn(b),e.observeOn(b))}},88829:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(62428)),h=f(c(14276)),i=c(81773),j=f(c(23068)),k=f(c(90797)),l=i.internal.constants.BOLT_PROTOCOL_V2;b.default=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return e(b,a),b.prototype._createPacker=function(a){return new h.default.Packer(a)},b.prototype._createUnpacker=function(a,b){return new h.default.Unpacker(a,b)},Object.defineProperty(b.prototype,"transformer",{get:function(){var a=this;return void 0===this._transformer&&(this._transformer=new k.default(Object.values(j.default).map(function(b){return b(a._config,a._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"version",{get:function(){return l},enumerable:!1,configurable:!0}),b}(g.default)},89014:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.timeoutWith=void 0;var d=c(84189),e=c(19634),f=c(11410);b.timeoutWith=function(a,b,c){var g,h,i;if(c=null!=c?c:d.async,e.isValidDate(a)?g=a:"number"==typeof a&&(h=a),b)i=function(){return b};else throw TypeError("No observable provided to switch to");if(null==g&&null==h)throw TypeError("No timeout provided.");return f.timeout({first:g,each:h,scheduler:c,with:i})}},89471:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(54507),e=c(37459);function f(a){return null!=a&&""!==a&&(Object.getPrototypeOf(a)!==Object.prototype||0!==Object.keys(a).length)}b.default={basic:function(a,b,c){return null!=c?{scheme:"basic",principal:a,credentials:b,realm:c}:{scheme:"basic",principal:a,credentials:b}},kerberos:function(a){return{scheme:"kerberos",principal:"",credentials:a}},bearer:function(a){return{scheme:"bearer",credentials:a}},none:function(){return{scheme:"none"}},custom:function(a,b,c,g,h){var i={scheme:g,principal:a};if(f(b)&&(i.credentials=b),f(c)&&(i.realm=c),f(h)){try{(0,e.stringify)(h)}catch(a){throw(0,d.newError)("Circular references in custom auth token parameters",void 0,a)}i.parameters=h}return i}}},89540:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.endWith=void 0;var f=c(37965),g=c(18776);b.endWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return function(b){return f.concat(b,g.of.apply(void 0,e([],d(a))))}}},89614:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.flatMap=void 0,b.flatMap=c(19735).mergeMap},90001:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(79345);function e(a){return Promise.resolve([a])}b.default=function(){function a(a){this._resolverFunction=null!=a?a:e}return a.prototype.resolve=function(a){var b=this;return new Promise(function(c){return c(b._resolverFunction(a.asHostPort()))}).then(function(a){if(!Array.isArray(a))throw TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is '<host>:<port>'. Got: ".concat(a));return a.map(function(a){return d.ServerAddress.fromUrl(a)})})},a}()},90376:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isEmpty=void 0;var d=c(58555),e=c(383);b.isEmpty=function(){return d.operate(function(a,b){a.subscribe(e.createOperatorSubscriber(b,function(){b.next(!1),b.complete()},function(){b.next(!0),b.complete()}))})}},90406:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.lastValueFrom=void 0;var d=c(4871);b.lastValueFrom=function(a,b){var c="object"==typeof b;return new Promise(function(e,f){var g,h=!1;a.subscribe({next:function(a){g=a,h=!0},error:f,complete:function(){h?e(g):c?e(b.defaultValue):f(new d.EmptyError)}})})}},90483:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.reduce=void 0;var d=c(83420),e=c(58555);b.reduce=function(a,b){return e.operate(d.scanInternals(a,b,arguments.length>=2,!1,!0))}},90648:function(a,b,c){var d=this&&this.__assign||function(){return(d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++)for(var e in b=arguments[c])Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e]);return a}).apply(this,arguments)},e=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var f=e(c(24709));b.default=d({},f.default)},90705:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Point=void 0,b.isPoint=function(a){return null!=a&&!0===a[e]};var d=c(49619),e="__isPoint__",f=function(){function a(a,b,c,e){this.srid=(0,d.assertNumberOrInteger)(a,"SRID"),this.x=(0,d.assertNumber)(b,"X coordinate"),this.y=(0,d.assertNumber)(c,"Y coordinate"),this.z=null==e?e:(0,d.assertNumber)(e,"Z coordinate"),Object.freeze(this)}return a.prototype.toString=function(){return null==this.z||isNaN(this.z)?"Point{srid=".concat(g(this.srid),", x=").concat(g(this.x),", y=").concat(g(this.y),"}"):"Point{srid=".concat(g(this.srid),", x=").concat(g(this.x),", y=").concat(g(this.y),", z=").concat(g(this.z),"}")},a}();function g(a){return Number.isInteger(a)?a.toString()+".0":a.toString()}b.Point=f,Object.defineProperty(f.prototype,e,{value:!0,enumerable:!1,configurable:!1,writable:!1})},90797:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.TypeTransformer=void 0;var d=c(14276),e=c(81773).internal.objectUtil;b.default=function(){function a(a){this._transformers=a,this._transformersPerSignature=new Map(a.map(function(a){return[a.signature,a]})),this.fromStructure=this.fromStructure.bind(this),this.toStructure=this.toStructure.bind(this),Object.freeze(this)}return a.prototype.fromStructure=function(a){try{if(a instanceof d.structure.Structure&&this._transformersPerSignature.has(a.signature))return(0,this._transformersPerSignature.get(a.signature).fromStructure)(a);return a}catch(a){return e.createBrokenObject(a)}},a.prototype.toStructure=function(a){var b=typeof a;if("object"!==b&&"function"!==b&&"symbol"!==b||null===a)return a;var c=this._transformers.find(function(b){return(0,b.isTypeInstance)(a)});return void 0!==c?c.toStructure(a):a},a}(),b.TypeTransformer=function(){function a(a){var b=a.signature,c=a.fromStructure,d=a.toStructure,e=a.isTypeInstance;this.signature=b,this.isTypeInstance=e,this.fromStructure=c,this.toStructure=d,Object.freeze(this)}return a.prototype.extendsWith=function(b){var c=b.signature,d=b.fromStructure,e=b.toStructure,f=b.isTypeInstance;return new a({signature:c||this.signature,fromStructure:d||this.fromStructure,toStructure:e||this.toStructure,isTypeInstance:f||this.isTypeInstance})},a}()},90945:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.throttle=void 0;var d=c(58555),e=c(383),f=c(80241);b.throttle=function(a,b){return d.operate(function(c,d){var g=null!=b?b:{},h=g.leading,i=void 0===h||h,j=g.trailing,k=void 0!==j&&j,l=!1,m=null,n=null,o=!1,p=function(){null==n||n.unsubscribe(),n=null,k&&(s(),o&&d.complete())},q=function(){n=null,o&&d.complete()},r=function(b){return n=f.innerFrom(a(b)).subscribe(e.createOperatorSubscriber(d,p,q))},s=function(){if(l){l=!1;var a=m;m=null,d.next(a),o||r(a)}};c.subscribe(e.createOperatorSubscriber(d,function(a){l=!0,m=a,n&&!n.closed||(i?s():r(a))},function(){o=!0,k&&l&&n&&!n.closed||d.complete()}))})}},90999:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.argsOrArgArray=void 0;var c=Array.isArray;b.argsOrArgArray=function(a){return 1===a.length&&c(a[0])?a[0]:a}},91162:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.bufferTime=void 0;var e=c(74038),f=c(58555),g=c(383),h=c(60543),i=c(84189),j=c(53851),k=c(60510);b.bufferTime=function(a){for(var b,c,l=[],m=1;m<arguments.length;m++)l[m-1]=arguments[m];var n=null!=(b=j.popScheduler(l))?b:i.asyncScheduler,o=null!=(c=l[0])?c:null,p=l[1]||1/0;return f.operate(function(b,c){var f=[],i=!1,j=function(a){var b=a.buffer;a.subs.unsubscribe(),h.arrRemove(f,a),c.next(b),i&&l()},l=function(){if(f){var b=new e.Subscription;c.add(b);var d={buffer:[],subs:b};f.push(d),k.executeSchedule(b,n,function(){return j(d)},a)}};null!==o&&o>=0?k.executeSchedule(c,n,l,o,!0):i=!0,l();var m=g.createOperatorSubscriber(c,function(a){var b,c,e=f.slice();try{for(var g=d(e),h=g.next();!h.done;h=g.next()){var i=h.value,k=i.buffer;k.push(a),p<=k.length&&j(i)}}catch(a){b={error:a}}finally{try{h&&!h.done&&(c=g.return)&&c.call(g)}finally{if(b)throw b.error}}},function(){for(;null==f?void 0:f.length;)c.next(f.shift().buffer);null==m||m.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return f=null});b.subscribe(m)})}},91858:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d=c(81773);function e(){}function f(a){return a}var g={onNext:e,onCompleted:e,onError:e};b.default=function(){function a(a){var b=void 0===a?{}:a,c=b.transformMetadata,d=b.enrichErrorMetadata,g=b.log,h=b.observer;this._pendingObservers=[],this._log=g,this._transformMetadata=c||f,this._enrichErrorMetadata=d||f,this._observer=Object.assign({onObserversCountChange:e,onError:e,onFailure:e,onErrorApplyTransformation:f},h)}return Object.defineProperty(a.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),a.prototype.handleResponse=function(a){var b=a.fields[0];switch(a.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD ".concat(d.json.stringify(a))),this._currentObserver.onNext(b);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS ".concat(d.json.stringify(a)));try{var c=this._transformMetadata(b);this._currentObserver.onCompleted(c)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE ".concat(d.json.stringify(a)));try{this._currentFailure=this._handleErrorPayload(this._enrichErrorMetadata(b)),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED ".concat(d.json.stringify(a)));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,d.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,d.newError)("Unknown Bolt protocol message: "+a))}},a.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onObserversCountChange(this._observersCount)},Object.defineProperty(a.prototype,"_observersCount",{get:function(){return null==this._currentObserver?this._pendingObservers.length:this._pendingObservers.length+1},enumerable:!1,configurable:!0}),a.prototype._queueObserver=function(a){return(a=a||g).onCompleted=a.onCompleted||e,a.onError=a.onError||e,a.onNext=a.onNext||e,void 0===this._currentObserver?this._currentObserver=a:this._pendingObservers.push(a),this._observer.onObserversCountChange(this._observersCount),!0},a.prototype._notifyErrorToObservers=function(a){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(a);this._pendingObservers.length>0;){var b=this._pendingObservers.shift();b&&b.onError&&b.onError(a)}},a.prototype.hasOngoingObservableRequests=function(){return null!=this._currentObserver||this._pendingObservers.length>0},a.prototype._resetFailure=function(){this._currentFailure=null},a.prototype._handleErrorPayload=function(a){var b,c="Neo.TransientError.Transaction.Terminated"===(b=a.code)?"Neo.ClientError.Transaction.Terminated":"Neo.TransientError.Transaction.LockClientStopped"===b?"Neo.ClientError.Transaction.LockClientStopped":b,e=null!=a.cause?this._handleErrorCause(a.cause):void 0,f=(0,d.newError)(a.message,c,e,a.gql_status,a.description,a.diagnostic_record);return this._observer.onErrorApplyTransformation(f)},a.prototype._handleErrorCause=function(a){var b=null!=a.cause?this._handleErrorCause(a.cause):void 0,c=(0,d.newGQLError)(a.message,b,a.gql_status,a.description,a.diagnostic_record);return this._observer.onErrorApplyTransformation(c)},a}()},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},92575:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.concatMap=void 0;var d=c(19735),e=c(14434);b.concatMap=function(a,b){return e.isFunction(b)?d.mergeMap(a,b,1):d.mergeMap(a,1)}},92984:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ProtocolVersion=void 0,b.ProtocolVersion=function(){function a(a,b){this.major=a,this.minor=b}return a.prototype.getMajor=function(){return this.major},a.prototype.getMinor=function(){return this.major},a.prototype.isLessThan=function(a){return this.major<a.major||this.major===a.major&&!!(this.minor<a.minor)},a.prototype.isGreaterThan=function(a){return this.major>a.major||this.major===a.major&&!!(this.minor>a.minor)},a.prototype.isGreaterOrEqualTo=function(a){return!this.isLessThan(a)},a.prototype.isLessOrEqualTo=function(a){return!this.isGreaterThan(a)},a.prototype.isEqualTo=function(a){return this.major===a.major&&this.minor===a.minor},a.prototype.toString=function(){return this.major.toString()+"."+this.minor.toString()},a}()},93267:function(a,b,c){var d=this&&this.__values||function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},e=this&&this.__read||function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g};Object.defineProperty(b,"__esModule",{value:!0}),b.RecordObjectMapping=b.rulesRegistry=void 0,b.as=function(a,c,f){var g,h,j,k,l,m,n,o="function"==typeof c?c:Object,p=(g=c,h=f,null!=(j="object"==typeof g?g:h)?j:"object"!=typeof g?b.rulesRegistry[g.name]:void 0),q=[],r=new o;try{for(var s=d(Object.entries(null!=p?p:{})),t=s.next();!t.done;t=s.next()){var u=e(t.value,2),v=u[0],w=u[1];q.push(v),i(a,r,v,w)}}catch(a){k={error:a}}finally{try{t&&!t.done&&(l=s.return)&&l.call(s)}finally{if(k)throw k.error}}try{for(var x=d(Object.getOwnPropertyNames(r)),y=x.next();!y.done;y=x.next()){var v=y.value;q.includes(v)||i(a,r,v,null==p?void 0:p[v])}}catch(a){m={error:a}}finally{try{y&&!y.done&&(n=x.return)&&n.call(x)}finally{if(m)throw m.error}}return r},b.valueAs=j;var f=c(54507),g=c(59828);b.rulesRegistry={};var h=function(a){return a};function i(a,b,c,d){var e,f=h(c),g=j(a.get(null!=(e=null==d?void 0:d.from)?e:f),"".concat(b.constructor.name,"#").concat(c),d);b[c]=null!=g?g:b[c]}function j(a,b,c){return(null==c?void 0:c.optional)===!0&&null==a?a:("function"==typeof(null==c?void 0:c.validate)&&c.validate(a,b),(null==c?void 0:c.convert)!=null?c.convert(a,b):a)}b.RecordObjectMapping=Object.freeze({clearMappingRegistry:function(){b.rulesRegistry={}},getCaseTranslator:function(a,b){var c=Object.keys(g.nameConventions);if(!c.includes(a))throw(0,f.newError)("Naming convention ".concat(a," is not recognized, \n please provide a recognized name convention or manually provide a translation function."));if(!c.includes(b))throw(0,f.newError)("Naming convention ".concat(b," is not recognized, \n please provide a recognized name convention or manually provide a translation function."));return function(c){return g.nameConventions[a].encode(g.nameConventions[b].tokenize(c))}},register:function(a,c){b.rulesRegistry[a.name]=c},translateIdentifiers:function(a){h=a}})},93393:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0});var g=f(c(25307));b.default=function(a){function b(b){var c=a.call(this)||this;return c._readersIndex=new g.default,c._writersIndex=new g.default,c._connectionPool=b,c}return e(b,a),b.prototype.selectReader=function(a){return this._select(a,this._readersIndex)},b.prototype.selectWriter=function(a){return this._select(a,this._writersIndex)},b.prototype._select=function(a,b){var c=a.length;if(0===c)return null;var d=b.next(c),e=d,f=null,g=Number.MAX_SAFE_INTEGER;do{var h=a[e],i=this._connectionPool.activeResourceCount(h);i<g&&(f=h,g=i),e===c-1?e=0:e++}while(e!==d);return f},b}(f(c(8375)).default)},93704:(a,b,c)=>{var d=function(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(b,"__esModule",{value:!0}),b.bufferCount=void 0;var e=c(58555),f=c(383),g=c(60543);b.bufferCount=function(a,b){return void 0===b&&(b=null),b=null!=b?b:a,e.operate(function(c,e){var h=[],i=0;c.subscribe(f.createOperatorSubscriber(e,function(c){var f,j,k,l,m=null;i++%b==0&&h.push([]);try{for(var n=d(h),o=n.next();!o.done;o=n.next()){var p=o.value;p.push(c),a<=p.length&&(m=null!=m?m:[]).push(p)}}catch(a){f={error:a}}finally{try{o&&!o.done&&(j=n.return)&&j.call(n)}finally{if(f)throw f.error}}if(m)try{for(var q=d(m),r=q.next();!r.done;r=q.next()){var p=r.value;g.arrRemove(h,p),e.next(p)}}catch(a){k={error:a}}finally{try{r&&!r.done&&(l=q.return)&&l.call(q)}finally{if(k)throw k.error}}},function(){var a,b;try{for(var c=d(h),f=c.next();!f.done;f=c.next()){var g=f.value;e.next(g)}}catch(b){a={error:b}}finally{try{f&&!f.done&&(b=c.return)&&b.call(c)}finally{if(a)throw a.error}}e.complete()},void 0,function(){h=null}))})}},93719:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.captureError=b.errorContext=void 0;var d=c(52129),e=null;b.errorContext=function(a){if(d.config.useDeprecatedSynchronousErrorHandling){var b=!e;if(b&&(e={errorThrown:!1,error:null}),a(),b){var c=e,f=c.errorThrown,g=c.error;if(e=null,f)throw g}}else a()},b.captureError=function(a){d.config.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},94962:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.onErrorResumeNext=b.onErrorResumeNextWith=void 0;var f=c(90999),g=c(48854);function h(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];var c=f.argsOrArgArray(a);return function(a){return g.onErrorResumeNext.apply(void 0,e([a],d(c)))}}b.onErrorResumeNextWith=h,b.onErrorResumeNext=h},95338:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ignoreElements=void 0;var d=c(58555),e=c(383),f=c(74086);b.ignoreElements=function(){return d.operate(function(a,b){a.subscribe(e.createOperatorSubscriber(b,f.noop))})}},95499:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.first=void 0;var d=c(4871),e=c(97991),f=c(25070),g=c(20018),h=c(49185),i=c(70332);b.first=function(a,b){var c=arguments.length>=2;return function(j){return j.pipe(a?e.filter(function(b,c){return a(b,c,j)}):i.identity,f.take(1),c?g.defaultIfEmpty(b):h.throwIfEmpty(function(){return new d.EmptyError}))}}},95590:function(a,b,c){var d,e=this&&this.__extends||(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}),f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.TelemetryObserver=b.ProcedureRouteObserver=b.RouteObserver=b.CompletedObserver=b.FailedObserver=b.ResetObserver=b.LogoffObserver=b.LoginObserver=b.ResultStreamObserver=b.StreamObserver=void 0;var g=c(81773),h=f(c(40990)),i=c(8049),j=g.internal.constants.FETCH_ALL,k=g.error.PROTOCOL_ERROR,l=function(){function a(){}return a.prototype.onNext=function(a){},a.prototype.onError=function(a){},a.prototype.onCompleted=function(a){},a}();b.StreamObserver=l;var m=function(a){function b(b){var c=void 0===b?{}:b,d=c.reactive,e=void 0!==d&&d,f=c.moreFunction,g=c.discardFunction,h=c.fetchSize,k=c.beforeError,l=c.afterError,m=c.beforeKeys,o=c.afterKeys,p=c.beforeComplete,q=c.afterComplete,r=c.server,s=c.highRecordWatermark,t=void 0===s?Number.MAX_VALUE:s,u=c.lowRecordWatermark,v=void 0===u?Number.MAX_VALUE:u,w=c.enrichMetadata,x=c.onDb,y=a.call(this)||this;return y._fieldKeys=null,y._fieldLookup=null,y._head=null,y._queuedRecords=[],y._tail=null,y._error=null,y._observers=[],y._meta={},y._server=r,y._beforeError=k,y._afterError=l,y._beforeKeys=m,y._afterKeys=o,y._beforeComplete=p,y._afterComplete=q,y._enrichMetadata=w||i.functional.identity,y._queryId=null,y._moreFunction=f,y._discardFunction=g,y._discard=!1,y._fetchSize=void 0===h?j:h,y._lowRecordWatermark=v,y._highRecordWatermark=t,y._setState(e?n.READY:n.READY_STREAMING),y._setupAutoPull(),y._paused=!1,y._pulled=!e,y._haveRecordStreamed=!1,y._onDb=x,y}return e(b,a),b.prototype.pause=function(){this._paused=!0},b.prototype.resume=function(){this._paused=!1,this._setupAutoPull(!0),this._state.pull(this)},b.prototype.onNext=function(a){this._haveRecordStreamed=!0;var b=new g.Record(this._fieldKeys,a,this._fieldLookup);this._observers.some(function(a){return a.onNext})?this._observers.forEach(function(a){a.onNext&&a.onNext(b)}):(this._queuedRecords.push(b),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},b.prototype.onCompleted=function(a){this._state.onSuccess(this,a)},b.prototype.onError=function(a){this._state.onError(this,a)},b.prototype.cancel=function(){this._discard=!0},b.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(n.STREAMING)},b.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(n.SUCCEEDED)},b.prototype.subscribe=function(a){if(this._head&&a.onKeys&&a.onKeys(this._head),this._queuedRecords.length>0&&a.onNext)for(var b=0;b<this._queuedRecords.length;b++)a.onNext(this._queuedRecords[b]),this._queuedRecords.length-b-1<=this._lowRecordWatermark&&(this._autoPull=!0,this._state===n.READY&&this._handleStreaming());this._tail&&a.onCompleted&&a.onCompleted(this._tail),this._error&&a.onError(this._error),this._observers.push(a),this._state===n.READY&&this._handleStreaming()},b.prototype._handleHasMore=function(a){this._setState(n.READY),this._handleStreaming(),delete a.has_more},b.prototype._handlePullSuccess=function(a){var b=this,c=this._enrichMetadata(Object.assign(this._server?{server:this._server}:{},this._meta,{stream_summary:{have_records_streamed:this._haveRecordStreamed,pulled:this._pulled,has_keys:this._fieldKeys.length>0}},a));if(![void 0,null,"r","w","rw","s"].includes(c.type))return void this.onError((0,g.newError)('Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got \''.concat(c.type,"'"),k));this._setState(n.SUCCEEDED);var d=null;this._beforeComplete&&(d=this._beforeComplete(c));var e=function(){b._tail=c,b._observers.some(function(a){return a.onCompleted})&&b._observers.forEach(function(a){a.onCompleted&&a.onCompleted(c)}),b._afterComplete&&b._afterComplete(c)};d?Promise.resolve(d).then(function(){return e()}):e()},b.prototype._handleRunSuccess=function(a,b){var c=this;if(null===this._fieldKeys){if(this._fieldKeys=[],this._fieldLookup={},a.fields&&a.fields.length>0){this._fieldKeys=a.fields;for(var d=0;d<a.fields.length;d++)this._fieldLookup[a.fields[d]]=d}null!==a.db&&void 0!==this._onDb&&this._onDb(a.db),null!=a.fields&&delete a.fields,null!==a.qid&&void 0!==a.qid&&(this._queryId=a.qid,delete a.qid),this._storeMetadataForCompletion(a);var e=null;this._beforeKeys&&(e=this._beforeKeys(this._fieldKeys));var f=function(){c._head=c._fieldKeys,c._observers.some(function(a){return a.onKeys})&&c._observers.forEach(function(a){a.onKeys&&a.onKeys(c._fieldKeys)}),c._afterKeys&&c._afterKeys(c._fieldKeys),b()};e?Promise.resolve(e).then(function(){return f()}):f()}},b.prototype._handleError=function(a){var b=this;this._setState(n.FAILED),this._error=a;var c=null;this._beforeError&&(c=this._beforeError(a));var d=function(){b._observers.some(function(a){return a.onError})&&b._observers.forEach(function(b){b.onError&&b.onError(a)}),b._afterError&&b._afterError(a)};c?Promise.resolve(c).then(function(){return d()}):d()},b.prototype._handleStreaming=function(){this._head&&this._observers.some(function(a){return a.onNext||a.onCompleted})&&!this._paused&&(this._discard||this._autoPull)&&this._more()},b.prototype._more=function(){this._discard?this._discardFunction(this._queryId,this):(this._pulled=!0,this._moreFunction(this._queryId,this._fetchSize,this)),this._setState(n.STREAMING)},b.prototype._storeMetadataForCompletion=function(a){for(var b=Object.keys(a),c=b.length,d="";c--;)d=b[c],this._meta[d]=a[d]},b.prototype._setState=function(a){this._state=a},b.prototype._setupAutoPull=function(){this._autoPull=!0},b}(l);b.ResultStreamObserver=m,b.LoginObserver=function(a){function b(b){var c=void 0===b?{}:b,d=c.onError,e=c.onCompleted,f=a.call(this)||this;return f._onError=d,f._onCompleted=e,f}return e(b,a),b.prototype.onNext=function(a){this.onError((0,g.newError)("Received RECORD when initializing "+g.json.stringify(a)))},b.prototype.onError=function(a){this._onError&&this._onError(a)},b.prototype.onCompleted=function(a){this._onCompleted&&this._onCompleted(a)},b}(l),b.LogoffObserver=function(a){function b(b){var c=void 0===b?{}:b,d=c.onError,e=c.onCompleted,f=a.call(this)||this;return f._onError=d,f._onCompleted=e,f}return e(b,a),b.prototype.onNext=function(a){this.onError((0,g.newError)("Received RECORD when logging off "+g.json.stringify(a)))},b.prototype.onError=function(a){this._onError&&this._onError(a)},b.prototype.onCompleted=function(a){this._onCompleted&&this._onCompleted(a)},b}(l),b.ResetObserver=function(a){function b(b){var c=void 0===b?{}:b,d=c.onProtocolError,e=c.onError,f=c.onComplete,g=a.call(this)||this;return g._onProtocolError=d,g._onError=e,g._onComplete=f,g}return e(b,a),b.prototype.onNext=function(a){this.onError((0,g.newError)("Received RECORD when resetting: received record is: "+g.json.stringify(a),k))},b.prototype.onError=function(a){a.code===k&&this._onProtocolError&&this._onProtocolError(a.message),this._onError&&this._onError(a)},b.prototype.onCompleted=function(a){this._onComplete&&this._onComplete(a)},b}(l),b.TelemetryObserver=function(a){function b(b){var c=void 0===b?{}:b,d=c.onError,e=c.onCompleted,f=a.call(this)||this;return f._onError=d,f._onCompleted=e,f}return e(b,a),b.prototype.onNext=function(a){this.onError((0,g.newError)("Received RECORD when sending telemetry "+g.json.stringify(a),k))},b.prototype.onError=function(a){this._onError&&this._onError(a)},b.prototype.onCompleted=function(a){this._onCompleted&&this._onCompleted(a)},b}(m),b.FailedObserver=function(a){function b(b){var c=b.error,d=b.onError,e=a.call(this,{beforeError:d})||this;return e.onError(c),e}return e(b,a),b}(m),b.CompletedObserver=function(a){function b(){var b=a.call(this)||this;return a.prototype.markCompleted.call(b),b}return e(b,a),b}(m),b.ProcedureRouteObserver=function(a){function b(b){var c=b.resultObserver,d=b.onProtocolError,e=b.onError,f=b.onCompleted,g=a.call(this)||this;return g._resultObserver=c,g._onError=e,g._onCompleted=f,g._records=[],g._onProtocolError=d,c.subscribe(g),g}return e(b,a),b.prototype.onNext=function(a){this._records.push(a)},b.prototype.onError=function(a){a.code===k&&this._onProtocolError&&this._onProtocolError(a.message),this._onError&&this._onError(a)},b.prototype.onCompleted=function(){null!==this._records&&1!==this._records.length?this.onError((0,g.newError)("Illegal response from router. Received "+this._records.length+" records but expected only one.\n"+g.json.stringify(this._records),k)):this._onCompleted&&this._onCompleted(h.default.ofRecord(this._records[0]))},b}(l),b.RouteObserver=function(a){function b(b){var c=void 0===b?{}:b,d=c.onProtocolError,e=c.onError,f=c.onCompleted,g=a.call(this)||this;return g._onProtocolError=d,g._onError=e,g._onCompleted=f,g}return e(b,a),b.prototype.onNext=function(a){this.onError((0,g.newError)("Received RECORD when resetting: received record is: "+g.json.stringify(a),k))},b.prototype.onError=function(a){a.code===k&&this._onProtocolError&&this._onProtocolError(a.message),this._onError&&this._onError(a)},b.prototype.onCompleted=function(a){this._onCompleted&&this._onCompleted(h.default.ofMessageResponse(a))},b}(l);var n={READY_STREAMING:{onSuccess:function(a,b){a._handleRunSuccess(b,function(){a._setState(n.STREAMING)})},onError:function(a,b){a._handleError(b)},name:function(){return"READY_STREAMING"},pull:function(){}},READY:{onSuccess:function(a,b){a._handleRunSuccess(b,function(){return a._handleStreaming()})},onError:function(a,b){a._handleError(b)},name:function(){return"READY"},pull:function(a){return a._more()}},STREAMING:{onSuccess:function(a,b){b.has_more?a._handleHasMore(b):a._handlePullSuccess(b)},onError:function(a,b){a._handleError(b)},name:function(){return"STREAMING"},pull:function(){}},FAILED:{onError:function(a){},name:function(){return"FAILED"},pull:function(){}},SUCCEEDED:{name:function(){return"SUCCEEDED"},pull:function(){}}}},95642:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.vector=function(a){var b,c;try{return new g(a)}catch(e){throw(0,d.newError)("Invalid argument type passed to vector constructor function: should be signed integer or float TypedArray, got: ".concat(null!=(c=null==(b=null==a?void 0:a.constructor)?void 0:b.name)?c:"undefined or type without constructor name"))}},b.isVector=function(a){return null!=a&&!0===a[e]};var d=c(54507),e="__isVector__",f={INT8:"INT8",INT16:"INT16",INT32:"INT32",INT64:"INT64",FLOAT32:"FLOAT32",FLOAT64:"FLOAT64"};Object.freeze(f);var g=function(){function a(a){var b,c;if(a instanceof Int8Array)this._type=f.INT8;else if(a instanceof Int16Array)this._type=f.INT16;else if(a instanceof Int32Array)this._type=f.INT32;else if(a instanceof BigInt64Array)this._type=f.INT64;else if(a instanceof Float32Array)this._type=f.FLOAT32;else if(a instanceof Float64Array)this._type=f.FLOAT64;else throw(0,d.newError)("Invalid argument type passed to Vector constructor: should be signed integer or float TypedArray, got: ".concat(null!=(c=null==(b=null==a?void 0:a.constructor)?void 0:b.name)?c:"undefined or type without constructor name"));this._typedArray=a}return a.prototype.asTypedArray=function(){return this._typedArray},a.prototype.getType=function(){return this._type},a.prototype.toString=function(){return"vector([".concat(this._typedArray.join(", "),"], ").concat(this._typedArray.length,", ").concat(function(a){switch(a){case"INT8":return"INTEGER8 NOT NULL";case"INT16":return"INTEGER16 NOT NULL";case"INT32":return"INTEGER32 NOT NULL";case"INT64":return"INTEGER NOT NULL";case"FLOAT32":return"FLOAT32 NOT NULL";case"FLOAT64":return"FLOAT NOT NULL";default:throw(0,d.newError)("Cannot stringify vector with unsupported type. Got type: ".concat(a))}}(this._type),")")},a}();b.default=g,Object.defineProperty(g.prototype,e,{value:!0,enumerable:!1,configurable:!1,writable:!1})},95733:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(){function a(a){this.maxSize=a,this.pruneCount=Math.max(Math.round(.01*a*Math.log(a)),1),this.map=new Map}return a.prototype.set=function(a,b){this.map.set(a,{database:b,lastUsed:Date.now()}),this._pruneCache()},a.prototype.get=function(a){var b=this.map.get(a);if(void 0!==b)return b.lastUsed=Date.now(),b.database},a.prototype.delete=function(a){this.map.delete(a)},a.prototype._pruneCache=function(){if(this.map.size>this.maxSize)for(var a=Array.from(this.map.entries()).sort(function(a,b){return a[1].lastUsed-b[1].lastUsed}),b=0;b<this.pruneCount;b++)this.map.delete(a[b][0])},a}()},95953:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.shareReplay=void 0;var d=c(85770),e=c(76590);b.shareReplay=function(a,b,c){var f,g,h,i,j=!1;return a&&"object"==typeof a?(i=void 0===(f=a.bufferSize)?1/0:f,b=void 0===(g=a.windowTime)?1/0:g,j=void 0!==(h=a.refCount)&&h,c=a.scheduler):i=null!=a?a:1/0,e.share({connector:function(){return new d.ReplaySubject(i,b,c)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:j})}},96270:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.VirtualAction=b.VirtualTimeScheduler=void 0;var f=c(70883),g=c(74038);b.VirtualTimeScheduler=function(a){function b(b,c){void 0===b&&(b=h),void 0===c&&(c=1/0);var d=a.call(this,b,function(){return d.frame})||this;return d.maxFrames=c,d.frame=0,d.index=-1,d}return e(b,a),b.prototype.flush=function(){for(var a,b,c=this.actions,d=this.maxFrames;(b=c[0])&&b.delay<=d&&(c.shift(),this.frame=b.delay,!(a=b.execute(b.state,b.delay))););if(a){for(;b=c.shift();)b.unsubscribe();throw a}},b.frameTimeFactor=10,b}(c(23004).AsyncScheduler);var h=function(a){function b(b,c,d){void 0===d&&(d=b.index+=1);var e=a.call(this,b,c)||this;return e.scheduler=b,e.work=c,e.index=d,e.active=!0,e.index=b.index=d,e}return e(b,a),b.prototype.schedule=function(c,d){if(void 0===d&&(d=0),!Number.isFinite(d))return g.Subscription.EMPTY;if(!this.id)return a.prototype.schedule.call(this,c,d);this.active=!1;var e=new b(this.scheduler,this.work);return this.add(e),e.schedule(c,d)},b.prototype.requestAsyncId=function(a,c,d){void 0===d&&(d=0),this.delay=a.frame+d;var e=a.actions;return e.push(this),e.sort(b.sortActions),1},b.prototype.recycleAsyncId=function(a,b,c){void 0===c&&(c=0)},b.prototype._execute=function(b,c){if(!0===this.active)return a.prototype._execute.call(this,b,c)},b.sortActions=function(a,b){if(a.delay===b.delay)if(a.index===b.index)return 0;else if(a.index>b.index)return 1;else return -1;return a.delay>b.delay?1:-1},b}(f.AsyncAction);b.VirtualAction=h},96301:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.takeWhile=void 0;var d=c(58555),e=c(383);b.takeWhile=function(a,b){return void 0===b&&(b=!1),d.operate(function(c,d){var f=0;c.subscribe(e.createOperatorSubscriber(d,function(c){var e=a(c,f++);(e||b)&&d.next(c),e||d.complete()}))})}},96536:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isInteropObservable=void 0;var d=c(34479),e=c(14434);b.isInteropObservable=function(a){return e.isFunction(a[d.observable])}},96553:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.TestTools=b.Immediate=void 0;var c,d=1,e={};function f(a){return a in e&&(delete e[a],!0)}b.Immediate={setImmediate:function(a){var b=d++;return e[b]=!0,c||(c=Promise.resolve()),c.then(function(){return f(b)&&a()}),b},clearImmediate:function(a){f(a)}},b.TestTools={pending:function(){return Object.keys(e).length}}},97252:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.throttleTime=void 0;var d=c(84189),e=c(90945),f=c(10360);b.throttleTime=function(a,b,c){void 0===b&&(b=d.asyncScheduler);var g=f.timer(a,b);return e.throttle(function(){return g},c)}},97488:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.pairs=void 0;var d=c(77889);b.pairs=function(a,b){return d.from(Object.entries(a),b)}},97991:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.filter=void 0;var d=c(58555),e=c(383);b.filter=function(a,b){return d.operate(function(c,d){var f=0;c.subscribe(e.createOperatorSubscriber(d,function(c){return a.call(b,c,f++)&&d.next(c)}))})}},98118:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.count=void 0;var d=c(90483);b.count=function(a){return d.reduce(function(b,c,d){return!a||a(c,d)?b+1:b},0)}},98759:(a,b,c)=>{var d=function(a,b){var c="function"==typeof Symbol&&a[Symbol.iterator];if(!c)return a;var d,e,f=c.call(a),g=[];try{for(;(void 0===b||b-- >0)&&!(d=f.next()).done;)g.push(d.value)}catch(a){e={error:a}}finally{try{d&&!d.done&&(c=f.return)&&c.call(f)}finally{if(e)throw e.error}}return g},e=function(a,b){for(var c=0,d=b.length,e=a.length;c<d;c++,e++)a[e]=b[c];return a};Object.defineProperty(b,"__esModule",{value:!0}),b.combineLatest=void 0;var f=c(81887),g=c(58555),h=c(90999),i=c(88099),j=c(28610),k=c(53851);b.combineLatest=function a(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];var l=k.popResultSelector(b);return l?j.pipe(a.apply(void 0,e([],d(b))),i.mapOneOrManyArgs(l)):g.operate(function(a,c){f.combineLatestInit(e([a],d(h.argsOrArgArray(b))))(c)})}},99194:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.repeat=void 0;var d=c(15980),e=c(58555),f=c(383),g=c(80241),h=c(10360);b.repeat=function(a){var b,c,i=1/0;return null!=a&&("object"==typeof a?(i=void 0===(b=a.count)?1/0:b,c=a.delay):i=a),i<=0?function(){return d.EMPTY}:e.operate(function(a,b){var d,e=0,j=function(){if(null==d||d.unsubscribe(),d=null,null!=c){var a="number"==typeof c?h.timer(c):g.innerFrom(c(e)),i=f.createOperatorSubscriber(b,function(){i.unsubscribe(),k()});a.subscribe(i)}else k()},k=function(){var c=!1;d=a.subscribe(f.createOperatorSubscriber(b,void 0,function(){++e<i?d?j():c=!0:b.complete()})),c&&j()};k()})}},99280:(a,b,c)=>{var d,e=(d=function(a,b){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}d(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0}),b.AnimationFrameAction=void 0;var f=c(70883),g=c(20331);b.AnimationFrameAction=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.scheduler=b,d.work=c,d}return e(b,a),b.prototype.requestAsyncId=function(b,c,d){return(void 0===d&&(d=0),null!==d&&d>0)?a.prototype.requestAsyncId.call(this,b,c,d):(b.actions.push(this),b._scheduled||(b._scheduled=g.animationFrameProvider.requestAnimationFrame(function(){return b.flush(void 0)})))},b.prototype.recycleAsyncId=function(b,c,d){if(void 0===d&&(d=0),null!=d?d>0:this.delay>0)return a.prototype.recycleAsyncId.call(this,b,c,d);var e,f=b.actions;null!=c&&c===b._scheduled&&(null==(e=f[f.length-1])?void 0:e.id)!==c&&(g.animationFrameProvider.cancelAnimationFrame(c),b._scheduled=void 0)},b}(f.AsyncAction)},99381:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.Stats=b.QueryStatistics=b.ProfiledPlan=b.Plan=b.ServerInfo=b.queryType=void 0;var d=c(86163),e=c(59138),f=function(){function a(a,b,c,d){var f,k,l;this.query={text:a,parameters:b},this.queryType=c.type,this.counters=new i(null!=(f=c.stats)?f:{}),this.plan=(null!=c.plan||null!=c.profile)&&new g(null!=(k=c.plan)?k:c.profile),this.profile=null!=c.profile&&new h(c.profile),this.notifications=(0,e.buildNotificationsFromMetadata)(c),this.gqlStatusObjects=(0,e.buildGqlStatusObjectFromMetadata)(c),this.server=new j(c.server,d),this.resultConsumedAfter=c.result_consumed_after,this.resultAvailableAfter=c.result_available_after,this.database={name:null!=(l=c.db)?l:null}}return a.prototype.hasPlan=function(){return this.plan instanceof g},a.prototype.hasProfile=function(){return this.profile instanceof h},a}(),g=function a(b){this.operatorType=b.operatorType,this.identifiers=b.identifiers,this.arguments=b.args,this.children=null!=b.children?b.children.map(function(b){return new a(b)}):[]};b.Plan=g;var h=function(){function a(b){this.operatorType=b.operatorType,this.identifiers=b.identifiers,this.arguments=b.args,this.dbHits=k("dbHits",b),this.rows=k("rows",b),this.pageCacheMisses=k("pageCacheMisses",b),this.pageCacheHits=k("pageCacheHits",b),this.pageCacheHitRatio=k("pageCacheHitRatio",b),this.time=k("time",b),this.children=null!=b.children?b.children.map(function(b){return new a(b)}):[]}return a.prototype.hasPageCacheStats=function(){return this.pageCacheMisses>0||this.pageCacheHits>0||this.pageCacheHitRatio>0},a}();b.ProfiledPlan=h,b.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0};var i=function(){function a(a){var b=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(a).forEach(function(c){var e=c.replace(/(-\w)/g,function(a){return a[1].toUpperCase()});e in b._stats?b._stats[e]=d.util.toNumber(a[c]):"systemUpdates"===e?b._systemUpdates=d.util.toNumber(a[c]):"containsSystemUpdates"===e?b._containsSystemUpdates=a[c]:"containsUpdates"===e&&(b._containsUpdates=a[c])}),this._stats=Object.freeze(this._stats)}return a.prototype.containsUpdates=function(){var a=this;return void 0!==this._containsUpdates?this._containsUpdates:Object.keys(this._stats).reduce(function(b,c){return b+a._stats[c]},0)>0},a.prototype.updates=function(){return this._stats},a.prototype.containsSystemUpdates=function(){return void 0!==this._containsSystemUpdates?this._containsSystemUpdates:this._systemUpdates>0},a.prototype.systemUpdates=function(){return this._systemUpdates},a}();b.QueryStatistics=i;var j=function(a,b){null!=a&&(this.address=a.address,this.agent=a.version),this.protocolVersion=b};function k(a,b,c){if(void 0===c&&(c=0),!1===b||!(a in b))return c;var e=b[a];return d.util.toNumber(e)}b.ServerInfo=j,b.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},b.default=f},99536:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.firstValueFrom=void 0;var d=c(4871),e=c(47457);b.firstValueFrom=function(a,b){var c="object"==typeof b;return new Promise(function(f,g){var h=new e.SafeSubscriber({next:function(a){f(a),h.unsubscribe()},error:g,complete:function(){c?f(b.defaultValue):g(new d.EmptyError)}});a.subscribe(h)})}},99644:function(a,b){var c,d=this&&this.__extends||(c=function(a,b){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)},function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function d(){this.constructor=a}c(a,b),a.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)});Object.defineProperty(b,"__esModule",{value:!0}),b.InternalConfig=b.Config=void 0;var e=function(){this.encrypted=void 0,this.trust=void 0,this.trustedCertificates=[],this.maxConnectionPoolSize=100,this.maxConnectionLifetime=36e5,this.connectionAcquisitionTimeout=6e4,this.maxTransactionRetryTime=3e4,this.connectionLivenessCheckTimeout=void 0,this.connectionTimeout=3e4,this.disableLosslessIntegers=!1,this.useBigInt=!1,this.logging=void 0,this.resolver=void 0,this.notificationFilter=void 0,this.userAgent=void 0,this.telemetryDisabled=!1,this.clientCertificate=void 0};b.Config=e,b.InternalConfig=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b}(e)},99658:function(a,b,c){var d,e=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),g=this&&this.__importStar||(d=function(a){return(d=Object.getOwnPropertyNames||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[b.length]=c);return b})(a)},function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c=d(a),g=0;g<c.length;g++)"default"!==c[g]&&e(b,a,c[g]);return f(b,a),b}),h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_MAX_SIZE=b.DEFAULT_ACQUISITION_TIMEOUT=b.PoolConfig=b.Pool=void 0;var i=g(c(61081));b.PoolConfig=i.default,Object.defineProperty(b,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return i.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(b,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return i.DEFAULT_MAX_SIZE}});var j=h(c(3762));b.Pool=j.default,b.default=j.default}};