@cedarjs/web 0.0.4

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 (263) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -0
  3. package/apollo/index.js +2 -0
  4. package/apollo/package.json +4 -0
  5. package/dist/apollo/fragmentRegistry.d.ts +43 -0
  6. package/dist/apollo/fragmentRegistry.d.ts.map +1 -0
  7. package/dist/apollo/fragmentRegistry.js +39 -0
  8. package/dist/apollo/index.d.ts +77 -0
  9. package/dist/apollo/index.d.ts.map +1 -0
  10. package/dist/apollo/index.js +198 -0
  11. package/dist/apollo/links.d.ts +27 -0
  12. package/dist/apollo/links.d.ts.map +1 -0
  13. package/dist/apollo/links.js +94 -0
  14. package/dist/apollo/sseLink.d.ts +29 -0
  15. package/dist/apollo/sseLink.d.ts.map +1 -0
  16. package/dist/apollo/sseLink.js +94 -0
  17. package/dist/apollo/suspense.d.ts +59 -0
  18. package/dist/apollo/suspense.d.ts.map +1 -0
  19. package/dist/apollo/suspense.js +113 -0
  20. package/dist/apollo/typeOverride.d.ts +21 -0
  21. package/dist/apollo/typeOverride.d.ts.map +1 -0
  22. package/dist/apollo/typeOverride.js +0 -0
  23. package/dist/apollo/useCache.d.ts +22 -0
  24. package/dist/apollo/useCache.d.ts.map +1 -0
  25. package/dist/apollo/useCache.js +25 -0
  26. package/dist/bins/cross-env.d.ts +3 -0
  27. package/dist/bins/cross-env.d.ts.map +1 -0
  28. package/dist/bins/msw.d.ts +3 -0
  29. package/dist/bins/msw.d.ts.map +1 -0
  30. package/dist/bins/redwood.d.ts +9 -0
  31. package/dist/bins/redwood.d.ts.map +1 -0
  32. package/dist/bins/rwfw.d.ts +3 -0
  33. package/dist/bins/rwfw.d.ts.map +1 -0
  34. package/dist/bins/storybook.d.ts +3 -0
  35. package/dist/bins/storybook.d.ts.map +1 -0
  36. package/dist/bins/tsc.d.ts +3 -0
  37. package/dist/bins/tsc.d.ts.map +1 -0
  38. package/dist/bundled/apollo-upload-client.d.ts +3 -0
  39. package/dist/bundled/apollo-upload-client.d.ts.map +1 -0
  40. package/dist/bundled/apollo-upload-client.js +4 -0
  41. package/dist/cjs/apollo/fragmentRegistry.d.ts +43 -0
  42. package/dist/cjs/apollo/fragmentRegistry.d.ts.map +1 -0
  43. package/dist/cjs/apollo/fragmentRegistry.js +75 -0
  44. package/dist/cjs/apollo/index.d.ts +77 -0
  45. package/dist/cjs/apollo/index.d.ts.map +1 -0
  46. package/dist/cjs/apollo/index.js +216 -0
  47. package/dist/cjs/apollo/links.d.ts +27 -0
  48. package/dist/cjs/apollo/links.d.ts.map +1 -0
  49. package/dist/cjs/apollo/links.js +122 -0
  50. package/dist/cjs/apollo/sseLink.d.ts +29 -0
  51. package/dist/cjs/apollo/sseLink.d.ts.map +1 -0
  52. package/dist/cjs/apollo/sseLink.js +120 -0
  53. package/dist/cjs/apollo/suspense.d.ts +59 -0
  54. package/dist/cjs/apollo/suspense.d.ts.map +1 -0
  55. package/dist/cjs/apollo/suspense.js +127 -0
  56. package/dist/cjs/apollo/typeOverride.d.ts +21 -0
  57. package/dist/cjs/apollo/typeOverride.d.ts.map +1 -0
  58. package/dist/cjs/apollo/typeOverride.js +16 -0
  59. package/dist/cjs/apollo/useCache.d.ts +22 -0
  60. package/dist/cjs/apollo/useCache.d.ts.map +1 -0
  61. package/dist/cjs/apollo/useCache.js +49 -0
  62. package/dist/cjs/bins/cross-env.d.ts +3 -0
  63. package/dist/cjs/bins/cross-env.d.ts.map +1 -0
  64. package/dist/cjs/bins/cross-env.js +30 -0
  65. package/dist/cjs/bins/msw.d.ts +3 -0
  66. package/dist/cjs/bins/msw.d.ts.map +1 -0
  67. package/dist/cjs/bins/msw.js +28 -0
  68. package/dist/cjs/bins/redwood.d.ts +9 -0
  69. package/dist/cjs/bins/redwood.d.ts.map +1 -0
  70. package/dist/cjs/bins/redwood.js +36 -0
  71. package/dist/cjs/bins/rwfw.d.ts +3 -0
  72. package/dist/cjs/bins/rwfw.d.ts.map +1 -0
  73. package/dist/cjs/bins/rwfw.js +36 -0
  74. package/dist/cjs/bins/storybook.d.ts +3 -0
  75. package/dist/cjs/bins/storybook.d.ts.map +1 -0
  76. package/dist/cjs/bins/storybook.js +49 -0
  77. package/dist/cjs/bins/tsc.d.ts +3 -0
  78. package/dist/cjs/bins/tsc.d.ts.map +1 -0
  79. package/dist/cjs/bins/tsc.js +30 -0
  80. package/dist/cjs/bundled/apollo-upload-client.d.ts +3 -0
  81. package/dist/cjs/bundled/apollo-upload-client.d.ts.map +1 -0
  82. package/dist/cjs/bundled/apollo-upload-client.js +2474 -0
  83. package/dist/cjs/components/DevFatalErrorPage.d.ts +21 -0
  84. package/dist/cjs/components/DevFatalErrorPage.d.ts.map +1 -0
  85. package/dist/cjs/components/DevFatalErrorPage.js +436 -0
  86. package/dist/cjs/components/FatalErrorBoundary.d.ts +24 -0
  87. package/dist/cjs/components/FatalErrorBoundary.d.ts.map +1 -0
  88. package/dist/cjs/components/FatalErrorBoundary.js +63 -0
  89. package/dist/cjs/components/FetchConfigProvider.d.ts +25 -0
  90. package/dist/cjs/components/FetchConfigProvider.d.ts.map +1 -0
  91. package/dist/cjs/components/FetchConfigProvider.js +80 -0
  92. package/dist/cjs/components/GraphQLHooksProvider.d.ts +45 -0
  93. package/dist/cjs/components/GraphQLHooksProvider.d.ts.map +1 -0
  94. package/dist/cjs/components/GraphQLHooksProvider.js +135 -0
  95. package/dist/cjs/components/MetaTags.d.ts +52 -0
  96. package/dist/cjs/components/MetaTags.d.ts.map +1 -0
  97. package/dist/cjs/components/MetaTags.js +69 -0
  98. package/dist/cjs/components/Metadata.d.ts +9 -0
  99. package/dist/cjs/components/Metadata.d.ts.map +1 -0
  100. package/dist/cjs/components/Metadata.js +95 -0
  101. package/dist/cjs/components/PortalHead.d.ts +4 -0
  102. package/dist/cjs/components/PortalHead.d.ts.map +1 -0
  103. package/dist/cjs/components/PortalHead.js +59 -0
  104. package/dist/cjs/components/RedwoodProvider.d.ts +9 -0
  105. package/dist/cjs/components/RedwoodProvider.d.ts.map +1 -0
  106. package/dist/cjs/components/RedwoodProvider.js +58 -0
  107. package/dist/cjs/components/ServerInject.d.ts +26 -0
  108. package/dist/cjs/components/ServerInject.d.ts.map +1 -0
  109. package/dist/cjs/components/ServerInject.js +75 -0
  110. package/dist/cjs/components/cell/CellCacheContext.d.ts +20 -0
  111. package/dist/cjs/components/cell/CellCacheContext.d.ts.map +1 -0
  112. package/dist/cjs/components/cell/CellCacheContext.js +53 -0
  113. package/dist/cjs/components/cell/CellErrorBoundary.d.ts +25 -0
  114. package/dist/cjs/components/cell/CellErrorBoundary.d.ts.map +1 -0
  115. package/dist/cjs/components/cell/CellErrorBoundary.js +66 -0
  116. package/dist/cjs/components/cell/cellTypes.d.ts +152 -0
  117. package/dist/cjs/components/cell/cellTypes.d.ts.map +1 -0
  118. package/dist/cjs/components/cell/cellTypes.js +16 -0
  119. package/dist/cjs/components/cell/createCell.d.ts +10 -0
  120. package/dist/cjs/components/cell/createCell.d.ts.map +1 -0
  121. package/dist/cjs/components/cell/createCell.js +165 -0
  122. package/dist/cjs/components/cell/createCell.test.js +351 -0
  123. package/dist/cjs/components/cell/createServerCell.d.ts +15 -0
  124. package/dist/cjs/components/cell/createServerCell.d.ts.map +1 -0
  125. package/dist/cjs/components/cell/createServerCell.js +91 -0
  126. package/dist/cjs/components/cell/createSuspendingCell.d.ts +11 -0
  127. package/dist/cjs/components/cell/createSuspendingCell.d.ts.map +1 -0
  128. package/dist/cjs/components/cell/createSuspendingCell.js +152 -0
  129. package/dist/cjs/components/cell/createSuspendingCell.test.js +115 -0
  130. package/dist/cjs/components/cell/isCellEmpty.d.ts +41 -0
  131. package/dist/cjs/components/cell/isCellEmpty.d.ts.map +1 -0
  132. package/dist/cjs/components/cell/isCellEmpty.js +35 -0
  133. package/dist/cjs/components/htmlTags.d.ts +52 -0
  134. package/dist/cjs/components/htmlTags.d.ts.map +1 -0
  135. package/dist/cjs/components/htmlTags.js +88 -0
  136. package/dist/cjs/config.d.ts +2 -0
  137. package/dist/cjs/config.d.ts.map +1 -0
  138. package/dist/cjs/config.js +6 -0
  139. package/dist/cjs/entry/index.js +39 -0
  140. package/dist/cjs/global.web-auto-imports.d.ts +30 -0
  141. package/dist/cjs/global.web-auto-imports.d.ts.map +1 -0
  142. package/dist/cjs/global.web-auto-imports.js +16 -0
  143. package/dist/cjs/graphql.d.ts +24 -0
  144. package/dist/cjs/graphql.d.ts.map +1 -0
  145. package/dist/cjs/graphql.js +36 -0
  146. package/dist/cjs/index.d.ts +20 -0
  147. package/dist/cjs/index.d.ts.map +1 -0
  148. package/dist/cjs/index.js +80 -0
  149. package/dist/cjs/package.json +1 -0
  150. package/dist/cjs/routeHooks.types.d.ts +12 -0
  151. package/dist/cjs/routeHooks.types.d.ts.map +1 -0
  152. package/dist/cjs/routeHooks.types.js +16 -0
  153. package/dist/cjs/server/MiddlewareRequest.d.ts +28 -0
  154. package/dist/cjs/server/MiddlewareRequest.d.ts.map +1 -0
  155. package/dist/cjs/server/MiddlewareRequest.js +71 -0
  156. package/dist/cjs/server/MiddlewareResponse.d.ts +44 -0
  157. package/dist/cjs/server/MiddlewareResponse.d.ts.map +1 -0
  158. package/dist/cjs/server/MiddlewareResponse.js +130 -0
  159. package/dist/cjs/server/middleware.d.ts +17 -0
  160. package/dist/cjs/server/middleware.d.ts.map +1 -0
  161. package/dist/cjs/server/middleware.js +24 -0
  162. package/dist/cjs/server/request.d.ts +2 -0
  163. package/dist/cjs/server/request.d.ts.map +1 -0
  164. package/dist/cjs/server/request.js +34 -0
  165. package/dist/cjs/streamUtils/useDocumentReady.d.ts +11 -0
  166. package/dist/cjs/streamUtils/useDocumentReady.d.ts.map +1 -0
  167. package/dist/cjs/streamUtils/useDocumentReady.js +41 -0
  168. package/dist/cjs/toast/index.d.ts +3 -0
  169. package/dist/cjs/toast/index.d.ts.map +1 -0
  170. package/dist/cjs/toast/index.js +41 -0
  171. package/dist/components/DevFatalErrorPage.d.ts +21 -0
  172. package/dist/components/DevFatalErrorPage.d.ts.map +1 -0
  173. package/dist/components/DevFatalErrorPage.js +402 -0
  174. package/dist/components/FatalErrorBoundary.d.ts +24 -0
  175. package/dist/components/FatalErrorBoundary.d.ts.map +1 -0
  176. package/dist/components/FatalErrorBoundary.js +29 -0
  177. package/dist/components/FetchConfigProvider.d.ts +25 -0
  178. package/dist/components/FetchConfigProvider.d.ts.map +1 -0
  179. package/dist/components/FetchConfigProvider.js +43 -0
  180. package/dist/components/GraphQLHooksProvider.d.ts +45 -0
  181. package/dist/components/GraphQLHooksProvider.d.ts.map +1 -0
  182. package/dist/components/GraphQLHooksProvider.js +94 -0
  183. package/dist/components/MetaTags.d.ts +52 -0
  184. package/dist/components/MetaTags.d.ts.map +1 -0
  185. package/dist/components/MetaTags.js +35 -0
  186. package/dist/components/Metadata.d.ts +9 -0
  187. package/dist/components/Metadata.d.ts.map +1 -0
  188. package/dist/components/Metadata.js +61 -0
  189. package/dist/components/PortalHead.d.ts +4 -0
  190. package/dist/components/PortalHead.d.ts.map +1 -0
  191. package/dist/components/PortalHead.js +29 -0
  192. package/dist/components/RedwoodProvider.d.ts +9 -0
  193. package/dist/components/RedwoodProvider.d.ts.map +1 -0
  194. package/dist/components/RedwoodProvider.js +24 -0
  195. package/dist/components/ServerInject.d.ts +26 -0
  196. package/dist/components/ServerInject.d.ts.map +1 -0
  197. package/dist/components/ServerInject.js +37 -0
  198. package/dist/components/cell/CellCacheContext.d.ts +20 -0
  199. package/dist/components/cell/CellCacheContext.d.ts.map +1 -0
  200. package/dist/components/cell/CellCacheContext.js +18 -0
  201. package/dist/components/cell/CellErrorBoundary.d.ts +25 -0
  202. package/dist/components/cell/CellErrorBoundary.d.ts.map +1 -0
  203. package/dist/components/cell/CellErrorBoundary.js +32 -0
  204. package/dist/components/cell/cellTypes.d.ts +152 -0
  205. package/dist/components/cell/cellTypes.d.ts.map +1 -0
  206. package/dist/components/cell/cellTypes.js +0 -0
  207. package/dist/components/cell/createCell.d.ts +10 -0
  208. package/dist/components/cell/createCell.d.ts.map +1 -0
  209. package/dist/components/cell/createCell.js +131 -0
  210. package/dist/components/cell/createCell.test.js +328 -0
  211. package/dist/components/cell/createServerCell.d.ts +15 -0
  212. package/dist/components/cell/createServerCell.d.ts.map +1 -0
  213. package/dist/components/cell/createServerCell.js +57 -0
  214. package/dist/components/cell/createSuspendingCell.d.ts +11 -0
  215. package/dist/components/cell/createSuspendingCell.d.ts.map +1 -0
  216. package/dist/components/cell/createSuspendingCell.js +118 -0
  217. package/dist/components/cell/createSuspendingCell.test.js +92 -0
  218. package/dist/components/cell/isCellEmpty.d.ts +41 -0
  219. package/dist/components/cell/isCellEmpty.d.ts.map +1 -0
  220. package/dist/components/cell/isCellEmpty.js +11 -0
  221. package/dist/components/htmlTags.d.ts +52 -0
  222. package/dist/components/htmlTags.d.ts.map +1 -0
  223. package/dist/components/htmlTags.js +53 -0
  224. package/dist/config.d.ts +2 -0
  225. package/dist/config.d.ts.map +1 -0
  226. package/dist/config.js +5 -0
  227. package/dist/entry/index.d.ts +1 -0
  228. package/dist/entry/index.js +16 -0
  229. package/dist/global.web-auto-imports.d.ts +30 -0
  230. package/dist/global.web-auto-imports.d.ts.map +1 -0
  231. package/dist/global.web-auto-imports.js +0 -0
  232. package/dist/graphql.d.ts +24 -0
  233. package/dist/graphql.d.ts.map +1 -0
  234. package/dist/graphql.js +12 -0
  235. package/dist/index.d.ts +20 -0
  236. package/dist/index.d.ts.map +1 -0
  237. package/dist/index.js +36 -0
  238. package/dist/package.json +1 -0
  239. package/dist/routeHooks.types.d.ts +12 -0
  240. package/dist/routeHooks.types.d.ts.map +1 -0
  241. package/dist/routeHooks.types.js +0 -0
  242. package/dist/server/MiddlewareRequest.d.ts +28 -0
  243. package/dist/server/MiddlewareRequest.d.ts.map +1 -0
  244. package/dist/server/MiddlewareRequest.js +46 -0
  245. package/dist/server/MiddlewareResponse.d.ts +44 -0
  246. package/dist/server/MiddlewareResponse.d.ts.map +1 -0
  247. package/dist/server/MiddlewareResponse.js +95 -0
  248. package/dist/server/middleware.d.ts +17 -0
  249. package/dist/server/middleware.d.ts.map +1 -0
  250. package/dist/server/middleware.js +2 -0
  251. package/dist/server/request.d.ts +2 -0
  252. package/dist/server/request.d.ts.map +1 -0
  253. package/dist/server/request.js +12 -0
  254. package/dist/streamUtils/useDocumentReady.d.ts +11 -0
  255. package/dist/streamUtils/useDocumentReady.d.ts.map +1 -0
  256. package/dist/streamUtils/useDocumentReady.js +17 -0
  257. package/dist/toast/index.d.ts +3 -0
  258. package/dist/toast/index.d.ts.map +1 -0
  259. package/dist/toast/index.js +5 -0
  260. package/package.json +193 -0
  261. package/src/entry/index.jsx +29 -0
  262. package/toast/index.js +2 -0
  263. package/toast/package.json +4 -0
@@ -0,0 +1,2474 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/bundled/apollo-upload-client.ts
21
+ var apollo_upload_client_exports = {};
22
+ __export(apollo_upload_client_exports, {
23
+ createUploadLink: () => createUploadLink
24
+ });
25
+ module.exports = __toCommonJS(apollo_upload_client_exports);
26
+
27
+ // ../../node_modules/tslib/tslib.es6.mjs
28
+ var extendStatics = function(d, b) {
29
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
30
+ d2.__proto__ = b2;
31
+ } || function(d2, b2) {
32
+ for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
33
+ };
34
+ return extendStatics(d, b);
35
+ };
36
+ function __extends(d, b) {
37
+ if (typeof b !== "function" && b !== null)
38
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
39
+ extendStatics(d, b);
40
+ function __() {
41
+ this.constructor = d;
42
+ }
43
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
44
+ }
45
+ var __assign = function() {
46
+ __assign = Object.assign || function __assign2(t) {
47
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
48
+ s = arguments[i];
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
+ }
51
+ return t;
52
+ };
53
+ return __assign.apply(this, arguments);
54
+ };
55
+ function __spreadArray(to, from, pack) {
56
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
57
+ if (ar || !(i in from)) {
58
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
59
+ ar[i] = from[i];
60
+ }
61
+ }
62
+ return to.concat(ar || Array.prototype.slice.call(from));
63
+ }
64
+
65
+ // ../../node_modules/ts-invariant/lib/invariant.js
66
+ var genericMessage = "Invariant Violation";
67
+ var _a = Object.setPrototypeOf;
68
+ var setPrototypeOf = _a === void 0 ? function(obj, proto) {
69
+ obj.__proto__ = proto;
70
+ return obj;
71
+ } : _a;
72
+ var InvariantError = (
73
+ /** @class */
74
+ function(_super) {
75
+ __extends(InvariantError2, _super);
76
+ function InvariantError2(message) {
77
+ if (message === void 0) {
78
+ message = genericMessage;
79
+ }
80
+ var _this = _super.call(this, typeof message === "number" ? genericMessage + ": " + message + " (see https://github.com/apollographql/invariant-packages)" : message) || this;
81
+ _this.framesToPop = 1;
82
+ _this.name = genericMessage;
83
+ setPrototypeOf(_this, InvariantError2.prototype);
84
+ return _this;
85
+ }
86
+ return InvariantError2;
87
+ }(Error)
88
+ );
89
+ function invariant(condition, message) {
90
+ if (!condition) {
91
+ throw new InvariantError(message);
92
+ }
93
+ }
94
+ var verbosityLevels = ["debug", "log", "warn", "error", "silent"];
95
+ var verbosityLevel = verbosityLevels.indexOf("log");
96
+ function wrapConsoleMethod(name) {
97
+ return function() {
98
+ if (verbosityLevels.indexOf(name) >= verbosityLevel) {
99
+ var method = console[name] || console.log;
100
+ return method.apply(console, arguments);
101
+ }
102
+ };
103
+ }
104
+ (function(invariant4) {
105
+ invariant4.debug = wrapConsoleMethod("debug");
106
+ invariant4.log = wrapConsoleMethod("log");
107
+ invariant4.warn = wrapConsoleMethod("warn");
108
+ invariant4.error = wrapConsoleMethod("error");
109
+ })(invariant || (invariant = {}));
110
+
111
+ // ../../node_modules/@apollo/client/version.js
112
+ var version = "3.11.1";
113
+
114
+ // ../../node_modules/@apollo/client/utilities/globals/maybe.js
115
+ function maybe(thunk) {
116
+ try {
117
+ return thunk();
118
+ } catch (_a2) {
119
+ }
120
+ }
121
+
122
+ // ../../node_modules/@apollo/client/utilities/globals/global.js
123
+ var global_default = maybe(function() {
124
+ return globalThis;
125
+ }) || maybe(function() {
126
+ return window;
127
+ }) || maybe(function() {
128
+ return self;
129
+ }) || maybe(function() {
130
+ return global;
131
+ }) || // We don't expect the Function constructor ever to be invoked at runtime, as
132
+ // long as at least one of globalThis, window, self, or global is defined, so
133
+ // we are under no obligation to make it easy for static analysis tools to
134
+ // detect syntactic usage of the Function constructor. If you think you can
135
+ // improve your static analysis to detect this obfuscation, think again. This
136
+ // is an arms race you cannot win, at least not in JavaScript.
137
+ maybe(function() {
138
+ return maybe.constructor("return this")();
139
+ });
140
+
141
+ // ../../node_modules/@apollo/client/utilities/common/makeUniqueId.js
142
+ var prefixCounts = /* @__PURE__ */ new Map();
143
+ function makeUniqueId(prefix) {
144
+ var count = prefixCounts.get(prefix) || 1;
145
+ prefixCounts.set(prefix, count + 1);
146
+ return "".concat(prefix, ":").concat(count, ":").concat(Math.random().toString(36).slice(2));
147
+ }
148
+
149
+ // ../../node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
150
+ function stringifyForDisplay(value, space) {
151
+ if (space === void 0) {
152
+ space = 0;
153
+ }
154
+ var undefId = makeUniqueId("stringifyForDisplay");
155
+ return JSON.stringify(value, function(key, value2) {
156
+ return value2 === void 0 ? undefId : value2;
157
+ }, space).split(JSON.stringify(undefId)).join("<undefined>");
158
+ }
159
+
160
+ // ../../node_modules/@apollo/client/utilities/globals/invariantWrappers.js
161
+ function wrap(fn) {
162
+ return function(message) {
163
+ var args = [];
164
+ for (var _i = 1; _i < arguments.length; _i++) {
165
+ args[_i - 1] = arguments[_i];
166
+ }
167
+ if (typeof message === "number") {
168
+ var arg0 = message;
169
+ message = getHandledErrorMsg(arg0);
170
+ if (!message) {
171
+ message = getFallbackErrorMsg(arg0, args);
172
+ args = [];
173
+ }
174
+ }
175
+ fn.apply(void 0, [message].concat(args));
176
+ };
177
+ }
178
+ var invariant2 = Object.assign(function invariant3(condition, message) {
179
+ var args = [];
180
+ for (var _i = 2; _i < arguments.length; _i++) {
181
+ args[_i - 2] = arguments[_i];
182
+ }
183
+ if (!condition) {
184
+ invariant(condition, getHandledErrorMsg(message, args) || getFallbackErrorMsg(message, args));
185
+ }
186
+ }, {
187
+ debug: wrap(invariant.debug),
188
+ log: wrap(invariant.log),
189
+ warn: wrap(invariant.warn),
190
+ error: wrap(invariant.error)
191
+ });
192
+ function newInvariantError(message) {
193
+ var optionalParams = [];
194
+ for (var _i = 1; _i < arguments.length; _i++) {
195
+ optionalParams[_i - 1] = arguments[_i];
196
+ }
197
+ return new InvariantError(getHandledErrorMsg(message, optionalParams) || getFallbackErrorMsg(message, optionalParams));
198
+ }
199
+ var ApolloErrorMessageHandler = Symbol.for("ApolloErrorMessageHandler_" + version);
200
+ function stringify(arg) {
201
+ if (typeof arg == "string") {
202
+ return arg;
203
+ }
204
+ try {
205
+ return stringifyForDisplay(arg, 2).slice(0, 1e3);
206
+ } catch (_a2) {
207
+ return "<non-serializable>";
208
+ }
209
+ }
210
+ function getHandledErrorMsg(message, messageArgs) {
211
+ if (messageArgs === void 0) {
212
+ messageArgs = [];
213
+ }
214
+ if (!message)
215
+ return;
216
+ return global_default[ApolloErrorMessageHandler] && global_default[ApolloErrorMessageHandler](message, messageArgs.map(stringify));
217
+ }
218
+ function getFallbackErrorMsg(message, messageArgs) {
219
+ if (messageArgs === void 0) {
220
+ messageArgs = [];
221
+ }
222
+ if (!message)
223
+ return;
224
+ return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
225
+ version,
226
+ message,
227
+ args: messageArgs.map(stringify)
228
+ })));
229
+ }
230
+
231
+ // ../../node_modules/@apollo/client/utilities/globals/index.js
232
+ var DEV = globalThis.__DEV__ !== false;
233
+
234
+ // ../../node_modules/graphql/jsutils/devAssert.mjs
235
+ function devAssert(condition, message) {
236
+ const booleanCondition = Boolean(condition);
237
+ if (!booleanCondition) {
238
+ throw new Error(message);
239
+ }
240
+ }
241
+
242
+ // ../../node_modules/graphql/language/ast.mjs
243
+ var QueryDocumentKeys = {
244
+ Name: [],
245
+ Document: ["definitions"],
246
+ OperationDefinition: [
247
+ "name",
248
+ "variableDefinitions",
249
+ "directives",
250
+ "selectionSet"
251
+ ],
252
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
253
+ Variable: ["name"],
254
+ SelectionSet: ["selections"],
255
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
256
+ Argument: ["name", "value"],
257
+ FragmentSpread: ["name", "directives"],
258
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
259
+ FragmentDefinition: [
260
+ "name",
261
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
262
+ "variableDefinitions",
263
+ "typeCondition",
264
+ "directives",
265
+ "selectionSet"
266
+ ],
267
+ IntValue: [],
268
+ FloatValue: [],
269
+ StringValue: [],
270
+ BooleanValue: [],
271
+ NullValue: [],
272
+ EnumValue: [],
273
+ ListValue: ["values"],
274
+ ObjectValue: ["fields"],
275
+ ObjectField: ["name", "value"],
276
+ Directive: ["name", "arguments"],
277
+ NamedType: ["name"],
278
+ ListType: ["type"],
279
+ NonNullType: ["type"],
280
+ SchemaDefinition: ["description", "directives", "operationTypes"],
281
+ OperationTypeDefinition: ["type"],
282
+ ScalarTypeDefinition: ["description", "name", "directives"],
283
+ ObjectTypeDefinition: [
284
+ "description",
285
+ "name",
286
+ "interfaces",
287
+ "directives",
288
+ "fields"
289
+ ],
290
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
291
+ InputValueDefinition: [
292
+ "description",
293
+ "name",
294
+ "type",
295
+ "defaultValue",
296
+ "directives"
297
+ ],
298
+ InterfaceTypeDefinition: [
299
+ "description",
300
+ "name",
301
+ "interfaces",
302
+ "directives",
303
+ "fields"
304
+ ],
305
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
306
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
307
+ EnumValueDefinition: ["description", "name", "directives"],
308
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
309
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
310
+ SchemaExtension: ["directives", "operationTypes"],
311
+ ScalarTypeExtension: ["name", "directives"],
312
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
313
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
314
+ UnionTypeExtension: ["name", "directives", "types"],
315
+ EnumTypeExtension: ["name", "directives", "values"],
316
+ InputObjectTypeExtension: ["name", "directives", "fields"]
317
+ };
318
+ var kindValues = new Set(Object.keys(QueryDocumentKeys));
319
+ function isNode(maybeNode) {
320
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
321
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
322
+ }
323
+ var OperationTypeNode;
324
+ (function(OperationTypeNode2) {
325
+ OperationTypeNode2["QUERY"] = "query";
326
+ OperationTypeNode2["MUTATION"] = "mutation";
327
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
328
+ })(OperationTypeNode || (OperationTypeNode = {}));
329
+
330
+ // ../../node_modules/graphql/language/kinds.mjs
331
+ var Kind;
332
+ (function(Kind2) {
333
+ Kind2["NAME"] = "Name";
334
+ Kind2["DOCUMENT"] = "Document";
335
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
336
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
337
+ Kind2["SELECTION_SET"] = "SelectionSet";
338
+ Kind2["FIELD"] = "Field";
339
+ Kind2["ARGUMENT"] = "Argument";
340
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
341
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
342
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
343
+ Kind2["VARIABLE"] = "Variable";
344
+ Kind2["INT"] = "IntValue";
345
+ Kind2["FLOAT"] = "FloatValue";
346
+ Kind2["STRING"] = "StringValue";
347
+ Kind2["BOOLEAN"] = "BooleanValue";
348
+ Kind2["NULL"] = "NullValue";
349
+ Kind2["ENUM"] = "EnumValue";
350
+ Kind2["LIST"] = "ListValue";
351
+ Kind2["OBJECT"] = "ObjectValue";
352
+ Kind2["OBJECT_FIELD"] = "ObjectField";
353
+ Kind2["DIRECTIVE"] = "Directive";
354
+ Kind2["NAMED_TYPE"] = "NamedType";
355
+ Kind2["LIST_TYPE"] = "ListType";
356
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
357
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
358
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
359
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
360
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
361
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
362
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
363
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
364
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
365
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
366
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
367
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
368
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
369
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
370
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
371
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
372
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
373
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
374
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
375
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
376
+ })(Kind || (Kind = {}));
377
+
378
+ // ../../node_modules/graphql/language/characterClasses.mjs
379
+ function isWhiteSpace(code) {
380
+ return code === 9 || code === 32;
381
+ }
382
+
383
+ // ../../node_modules/graphql/language/blockString.mjs
384
+ function printBlockString(value, options) {
385
+ const escapedValue = value.replace(/"""/g, '\\"""');
386
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
387
+ const isSingleLine = lines.length === 1;
388
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
389
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
390
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
391
+ const hasTrailingSlash = value.endsWith("\\");
392
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
393
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
394
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
395
+ let result2 = "";
396
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
397
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
398
+ result2 += "\n";
399
+ }
400
+ result2 += escapedValue;
401
+ if (printAsMultipleLines || forceTrailingNewline) {
402
+ result2 += "\n";
403
+ }
404
+ return '"""' + result2 + '"""';
405
+ }
406
+
407
+ // ../../node_modules/graphql/jsutils/inspect.mjs
408
+ var MAX_ARRAY_LENGTH = 10;
409
+ var MAX_RECURSIVE_DEPTH = 2;
410
+ function inspect(value) {
411
+ return formatValue(value, []);
412
+ }
413
+ function formatValue(value, seenValues) {
414
+ switch (typeof value) {
415
+ case "string":
416
+ return JSON.stringify(value);
417
+ case "function":
418
+ return value.name ? `[function ${value.name}]` : "[function]";
419
+ case "object":
420
+ return formatObjectValue(value, seenValues);
421
+ default:
422
+ return String(value);
423
+ }
424
+ }
425
+ function formatObjectValue(value, previouslySeenValues) {
426
+ if (value === null) {
427
+ return "null";
428
+ }
429
+ if (previouslySeenValues.includes(value)) {
430
+ return "[Circular]";
431
+ }
432
+ const seenValues = [...previouslySeenValues, value];
433
+ if (isJSONable(value)) {
434
+ const jsonValue = value.toJSON();
435
+ if (jsonValue !== value) {
436
+ return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
437
+ }
438
+ } else if (Array.isArray(value)) {
439
+ return formatArray(value, seenValues);
440
+ }
441
+ return formatObject(value, seenValues);
442
+ }
443
+ function isJSONable(value) {
444
+ return typeof value.toJSON === "function";
445
+ }
446
+ function formatObject(object, seenValues) {
447
+ const entries = Object.entries(object);
448
+ if (entries.length === 0) {
449
+ return "{}";
450
+ }
451
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
452
+ return "[" + getObjectTag(object) + "]";
453
+ }
454
+ const properties = entries.map(
455
+ ([key, value]) => key + ": " + formatValue(value, seenValues)
456
+ );
457
+ return "{ " + properties.join(", ") + " }";
458
+ }
459
+ function formatArray(array, seenValues) {
460
+ if (array.length === 0) {
461
+ return "[]";
462
+ }
463
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
464
+ return "[Array]";
465
+ }
466
+ const len = Math.min(MAX_ARRAY_LENGTH, array.length);
467
+ const remaining = array.length - len;
468
+ const items = [];
469
+ for (let i = 0; i < len; ++i) {
470
+ items.push(formatValue(array[i], seenValues));
471
+ }
472
+ if (remaining === 1) {
473
+ items.push("... 1 more item");
474
+ } else if (remaining > 1) {
475
+ items.push(`... ${remaining} more items`);
476
+ }
477
+ return "[" + items.join(", ") + "]";
478
+ }
479
+ function getObjectTag(object) {
480
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
481
+ if (tag === "Object" && typeof object.constructor === "function") {
482
+ const name = object.constructor.name;
483
+ if (typeof name === "string" && name !== "") {
484
+ return name;
485
+ }
486
+ }
487
+ return tag;
488
+ }
489
+
490
+ // ../../node_modules/graphql/language/printString.mjs
491
+ function printString(str) {
492
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
493
+ }
494
+ var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
495
+ function escapedReplacer(str) {
496
+ return escapeSequences[str.charCodeAt(0)];
497
+ }
498
+ var escapeSequences = [
499
+ "\\u0000",
500
+ "\\u0001",
501
+ "\\u0002",
502
+ "\\u0003",
503
+ "\\u0004",
504
+ "\\u0005",
505
+ "\\u0006",
506
+ "\\u0007",
507
+ "\\b",
508
+ "\\t",
509
+ "\\n",
510
+ "\\u000B",
511
+ "\\f",
512
+ "\\r",
513
+ "\\u000E",
514
+ "\\u000F",
515
+ "\\u0010",
516
+ "\\u0011",
517
+ "\\u0012",
518
+ "\\u0013",
519
+ "\\u0014",
520
+ "\\u0015",
521
+ "\\u0016",
522
+ "\\u0017",
523
+ "\\u0018",
524
+ "\\u0019",
525
+ "\\u001A",
526
+ "\\u001B",
527
+ "\\u001C",
528
+ "\\u001D",
529
+ "\\u001E",
530
+ "\\u001F",
531
+ "",
532
+ "",
533
+ '\\"',
534
+ "",
535
+ "",
536
+ "",
537
+ "",
538
+ "",
539
+ "",
540
+ "",
541
+ "",
542
+ "",
543
+ "",
544
+ "",
545
+ "",
546
+ "",
547
+ // 2F
548
+ "",
549
+ "",
550
+ "",
551
+ "",
552
+ "",
553
+ "",
554
+ "",
555
+ "",
556
+ "",
557
+ "",
558
+ "",
559
+ "",
560
+ "",
561
+ "",
562
+ "",
563
+ "",
564
+ // 3F
565
+ "",
566
+ "",
567
+ "",
568
+ "",
569
+ "",
570
+ "",
571
+ "",
572
+ "",
573
+ "",
574
+ "",
575
+ "",
576
+ "",
577
+ "",
578
+ "",
579
+ "",
580
+ "",
581
+ // 4F
582
+ "",
583
+ "",
584
+ "",
585
+ "",
586
+ "",
587
+ "",
588
+ "",
589
+ "",
590
+ "",
591
+ "",
592
+ "",
593
+ "",
594
+ "\\\\",
595
+ "",
596
+ "",
597
+ "",
598
+ // 5F
599
+ "",
600
+ "",
601
+ "",
602
+ "",
603
+ "",
604
+ "",
605
+ "",
606
+ "",
607
+ "",
608
+ "",
609
+ "",
610
+ "",
611
+ "",
612
+ "",
613
+ "",
614
+ "",
615
+ // 6F
616
+ "",
617
+ "",
618
+ "",
619
+ "",
620
+ "",
621
+ "",
622
+ "",
623
+ "",
624
+ "",
625
+ "",
626
+ "",
627
+ "",
628
+ "",
629
+ "",
630
+ "",
631
+ "\\u007F",
632
+ "\\u0080",
633
+ "\\u0081",
634
+ "\\u0082",
635
+ "\\u0083",
636
+ "\\u0084",
637
+ "\\u0085",
638
+ "\\u0086",
639
+ "\\u0087",
640
+ "\\u0088",
641
+ "\\u0089",
642
+ "\\u008A",
643
+ "\\u008B",
644
+ "\\u008C",
645
+ "\\u008D",
646
+ "\\u008E",
647
+ "\\u008F",
648
+ "\\u0090",
649
+ "\\u0091",
650
+ "\\u0092",
651
+ "\\u0093",
652
+ "\\u0094",
653
+ "\\u0095",
654
+ "\\u0096",
655
+ "\\u0097",
656
+ "\\u0098",
657
+ "\\u0099",
658
+ "\\u009A",
659
+ "\\u009B",
660
+ "\\u009C",
661
+ "\\u009D",
662
+ "\\u009E",
663
+ "\\u009F"
664
+ ];
665
+
666
+ // ../../node_modules/graphql/language/visitor.mjs
667
+ var BREAK = Object.freeze({});
668
+ function visit(root2, visitor, visitorKeys = QueryDocumentKeys) {
669
+ const enterLeaveMap = /* @__PURE__ */ new Map();
670
+ for (const kind of Object.values(Kind)) {
671
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
672
+ }
673
+ let stack = void 0;
674
+ let inArray = Array.isArray(root2);
675
+ let keys = [root2];
676
+ let index = -1;
677
+ let edits = [];
678
+ let node = root2;
679
+ let key = void 0;
680
+ let parent = void 0;
681
+ const path = [];
682
+ const ancestors = [];
683
+ do {
684
+ index++;
685
+ const isLeaving = index === keys.length;
686
+ const isEdited = isLeaving && edits.length !== 0;
687
+ if (isLeaving) {
688
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
689
+ node = parent;
690
+ parent = ancestors.pop();
691
+ if (isEdited) {
692
+ if (inArray) {
693
+ node = node.slice();
694
+ let editOffset = 0;
695
+ for (const [editKey, editValue] of edits) {
696
+ const arrayKey = editKey - editOffset;
697
+ if (editValue === null) {
698
+ node.splice(arrayKey, 1);
699
+ editOffset++;
700
+ } else {
701
+ node[arrayKey] = editValue;
702
+ }
703
+ }
704
+ } else {
705
+ node = Object.defineProperties(
706
+ {},
707
+ Object.getOwnPropertyDescriptors(node)
708
+ );
709
+ for (const [editKey, editValue] of edits) {
710
+ node[editKey] = editValue;
711
+ }
712
+ }
713
+ }
714
+ index = stack.index;
715
+ keys = stack.keys;
716
+ edits = stack.edits;
717
+ inArray = stack.inArray;
718
+ stack = stack.prev;
719
+ } else if (parent) {
720
+ key = inArray ? index : keys[index];
721
+ node = parent[key];
722
+ if (node === null || node === void 0) {
723
+ continue;
724
+ }
725
+ path.push(key);
726
+ }
727
+ let result2;
728
+ if (!Array.isArray(node)) {
729
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
730
+ isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
731
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
732
+ result2 = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
733
+ if (result2 === BREAK) {
734
+ break;
735
+ }
736
+ if (result2 === false) {
737
+ if (!isLeaving) {
738
+ path.pop();
739
+ continue;
740
+ }
741
+ } else if (result2 !== void 0) {
742
+ edits.push([key, result2]);
743
+ if (!isLeaving) {
744
+ if (isNode(result2)) {
745
+ node = result2;
746
+ } else {
747
+ path.pop();
748
+ continue;
749
+ }
750
+ }
751
+ }
752
+ }
753
+ if (result2 === void 0 && isEdited) {
754
+ edits.push([key, node]);
755
+ }
756
+ if (isLeaving) {
757
+ path.pop();
758
+ } else {
759
+ var _node$kind;
760
+ stack = {
761
+ inArray,
762
+ index,
763
+ keys,
764
+ edits,
765
+ prev: stack
766
+ };
767
+ inArray = Array.isArray(node);
768
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
769
+ index = -1;
770
+ edits = [];
771
+ if (parent) {
772
+ ancestors.push(parent);
773
+ }
774
+ parent = node;
775
+ }
776
+ } while (stack !== void 0);
777
+ if (edits.length !== 0) {
778
+ return edits[edits.length - 1][1];
779
+ }
780
+ return root2;
781
+ }
782
+ function getEnterLeaveForKind(visitor, kind) {
783
+ const kindVisitor = visitor[kind];
784
+ if (typeof kindVisitor === "object") {
785
+ return kindVisitor;
786
+ } else if (typeof kindVisitor === "function") {
787
+ return {
788
+ enter: kindVisitor,
789
+ leave: void 0
790
+ };
791
+ }
792
+ return {
793
+ enter: visitor.enter,
794
+ leave: visitor.leave
795
+ };
796
+ }
797
+
798
+ // ../../node_modules/graphql/language/printer.mjs
799
+ function print(ast) {
800
+ return visit(ast, printDocASTReducer);
801
+ }
802
+ var MAX_LINE_LENGTH = 80;
803
+ var printDocASTReducer = {
804
+ Name: {
805
+ leave: (node) => node.value
806
+ },
807
+ Variable: {
808
+ leave: (node) => "$" + node.name
809
+ },
810
+ // Document
811
+ Document: {
812
+ leave: (node) => join(node.definitions, "\n\n")
813
+ },
814
+ OperationDefinition: {
815
+ leave(node) {
816
+ const varDefs = wrap2("(", join(node.variableDefinitions, ", "), ")");
817
+ const prefix = join(
818
+ [
819
+ node.operation,
820
+ join([node.name, varDefs]),
821
+ join(node.directives, " ")
822
+ ],
823
+ " "
824
+ );
825
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
826
+ }
827
+ },
828
+ VariableDefinition: {
829
+ leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap2(" = ", defaultValue) + wrap2(" ", join(directives, " "))
830
+ },
831
+ SelectionSet: {
832
+ leave: ({ selections }) => block(selections)
833
+ },
834
+ Field: {
835
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
836
+ const prefix = wrap2("", alias, ": ") + name;
837
+ let argsLine = prefix + wrap2("(", join(args, ", "), ")");
838
+ if (argsLine.length > MAX_LINE_LENGTH) {
839
+ argsLine = prefix + wrap2("(\n", indent(join(args, "\n")), "\n)");
840
+ }
841
+ return join([argsLine, join(directives, " "), selectionSet], " ");
842
+ }
843
+ },
844
+ Argument: {
845
+ leave: ({ name, value }) => name + ": " + value
846
+ },
847
+ // Fragments
848
+ FragmentSpread: {
849
+ leave: ({ name, directives }) => "..." + name + wrap2(" ", join(directives, " "))
850
+ },
851
+ InlineFragment: {
852
+ leave: ({ typeCondition, directives, selectionSet }) => join(
853
+ [
854
+ "...",
855
+ wrap2("on ", typeCondition),
856
+ join(directives, " "),
857
+ selectionSet
858
+ ],
859
+ " "
860
+ )
861
+ },
862
+ FragmentDefinition: {
863
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
864
+ // or removed in the future.
865
+ `fragment ${name}${wrap2("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap2("", join(directives, " "), " ")}` + selectionSet
866
+ )
867
+ },
868
+ // Value
869
+ IntValue: {
870
+ leave: ({ value }) => value
871
+ },
872
+ FloatValue: {
873
+ leave: ({ value }) => value
874
+ },
875
+ StringValue: {
876
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
877
+ },
878
+ BooleanValue: {
879
+ leave: ({ value }) => value ? "true" : "false"
880
+ },
881
+ NullValue: {
882
+ leave: () => "null"
883
+ },
884
+ EnumValue: {
885
+ leave: ({ value }) => value
886
+ },
887
+ ListValue: {
888
+ leave: ({ values }) => "[" + join(values, ", ") + "]"
889
+ },
890
+ ObjectValue: {
891
+ leave: ({ fields }) => "{" + join(fields, ", ") + "}"
892
+ },
893
+ ObjectField: {
894
+ leave: ({ name, value }) => name + ": " + value
895
+ },
896
+ // Directive
897
+ Directive: {
898
+ leave: ({ name, arguments: args }) => "@" + name + wrap2("(", join(args, ", "), ")")
899
+ },
900
+ // Type
901
+ NamedType: {
902
+ leave: ({ name }) => name
903
+ },
904
+ ListType: {
905
+ leave: ({ type }) => "[" + type + "]"
906
+ },
907
+ NonNullType: {
908
+ leave: ({ type }) => type + "!"
909
+ },
910
+ // Type System Definitions
911
+ SchemaDefinition: {
912
+ leave: ({ description, directives, operationTypes }) => wrap2("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
913
+ },
914
+ OperationTypeDefinition: {
915
+ leave: ({ operation, type }) => operation + ": " + type
916
+ },
917
+ ScalarTypeDefinition: {
918
+ leave: ({ description, name, directives }) => wrap2("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
919
+ },
920
+ ObjectTypeDefinition: {
921
+ leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") + join(
922
+ [
923
+ "type",
924
+ name,
925
+ wrap2("implements ", join(interfaces, " & ")),
926
+ join(directives, " "),
927
+ block(fields)
928
+ ],
929
+ " "
930
+ )
931
+ },
932
+ FieldDefinition: {
933
+ leave: ({ description, name, arguments: args, type, directives }) => wrap2("", description, "\n") + name + (hasMultilineItems(args) ? wrap2("(\n", indent(join(args, "\n")), "\n)") : wrap2("(", join(args, ", "), ")")) + ": " + type + wrap2(" ", join(directives, " "))
934
+ },
935
+ InputValueDefinition: {
936
+ leave: ({ description, name, type, defaultValue, directives }) => wrap2("", description, "\n") + join(
937
+ [name + ": " + type, wrap2("= ", defaultValue), join(directives, " ")],
938
+ " "
939
+ )
940
+ },
941
+ InterfaceTypeDefinition: {
942
+ leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") + join(
943
+ [
944
+ "interface",
945
+ name,
946
+ wrap2("implements ", join(interfaces, " & ")),
947
+ join(directives, " "),
948
+ block(fields)
949
+ ],
950
+ " "
951
+ )
952
+ },
953
+ UnionTypeDefinition: {
954
+ leave: ({ description, name, directives, types }) => wrap2("", description, "\n") + join(
955
+ ["union", name, join(directives, " "), wrap2("= ", join(types, " | "))],
956
+ " "
957
+ )
958
+ },
959
+ EnumTypeDefinition: {
960
+ leave: ({ description, name, directives, values }) => wrap2("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
961
+ },
962
+ EnumValueDefinition: {
963
+ leave: ({ description, name, directives }) => wrap2("", description, "\n") + join([name, join(directives, " ")], " ")
964
+ },
965
+ InputObjectTypeDefinition: {
966
+ leave: ({ description, name, directives, fields }) => wrap2("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
967
+ },
968
+ DirectiveDefinition: {
969
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap2("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap2("(\n", indent(join(args, "\n")), "\n)") : wrap2("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
970
+ },
971
+ SchemaExtension: {
972
+ leave: ({ directives, operationTypes }) => join(
973
+ ["extend schema", join(directives, " "), block(operationTypes)],
974
+ " "
975
+ )
976
+ },
977
+ ScalarTypeExtension: {
978
+ leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
979
+ },
980
+ ObjectTypeExtension: {
981
+ leave: ({ name, interfaces, directives, fields }) => join(
982
+ [
983
+ "extend type",
984
+ name,
985
+ wrap2("implements ", join(interfaces, " & ")),
986
+ join(directives, " "),
987
+ block(fields)
988
+ ],
989
+ " "
990
+ )
991
+ },
992
+ InterfaceTypeExtension: {
993
+ leave: ({ name, interfaces, directives, fields }) => join(
994
+ [
995
+ "extend interface",
996
+ name,
997
+ wrap2("implements ", join(interfaces, " & ")),
998
+ join(directives, " "),
999
+ block(fields)
1000
+ ],
1001
+ " "
1002
+ )
1003
+ },
1004
+ UnionTypeExtension: {
1005
+ leave: ({ name, directives, types }) => join(
1006
+ [
1007
+ "extend union",
1008
+ name,
1009
+ join(directives, " "),
1010
+ wrap2("= ", join(types, " | "))
1011
+ ],
1012
+ " "
1013
+ )
1014
+ },
1015
+ EnumTypeExtension: {
1016
+ leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
1017
+ },
1018
+ InputObjectTypeExtension: {
1019
+ leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
1020
+ }
1021
+ };
1022
+ function join(maybeArray, separator = "") {
1023
+ var _maybeArray$filter$jo;
1024
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
1025
+ }
1026
+ function block(array) {
1027
+ return wrap2("{\n", indent(join(array, "\n")), "\n}");
1028
+ }
1029
+ function wrap2(start, maybeString, end = "") {
1030
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
1031
+ }
1032
+ function indent(str) {
1033
+ return wrap2(" ", str.replace(/\n/g, "\n "));
1034
+ }
1035
+ function hasMultilineItems(maybeArray) {
1036
+ var _maybeArray$some;
1037
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
1038
+ }
1039
+
1040
+ // ../../node_modules/@wry/caches/lib/weak.js
1041
+ function noop() {
1042
+ }
1043
+ var defaultDispose = noop;
1044
+ var _WeakRef = typeof WeakRef !== "undefined" ? WeakRef : function(value) {
1045
+ return { deref: () => value };
1046
+ };
1047
+ var _WeakMap = typeof WeakMap !== "undefined" ? WeakMap : Map;
1048
+ var _FinalizationRegistry = typeof FinalizationRegistry !== "undefined" ? FinalizationRegistry : function() {
1049
+ return {
1050
+ register: noop,
1051
+ unregister: noop
1052
+ };
1053
+ };
1054
+ var finalizationBatchSize = 10024;
1055
+ var WeakCache = class {
1056
+ constructor(max = Infinity, dispose = defaultDispose) {
1057
+ this.max = max;
1058
+ this.dispose = dispose;
1059
+ this.map = new _WeakMap();
1060
+ this.newest = null;
1061
+ this.oldest = null;
1062
+ this.unfinalizedNodes = /* @__PURE__ */ new Set();
1063
+ this.finalizationScheduled = false;
1064
+ this.size = 0;
1065
+ this.finalize = () => {
1066
+ const iterator = this.unfinalizedNodes.values();
1067
+ for (let i = 0; i < finalizationBatchSize; i++) {
1068
+ const node = iterator.next().value;
1069
+ if (!node)
1070
+ break;
1071
+ this.unfinalizedNodes.delete(node);
1072
+ const key = node.key;
1073
+ delete node.key;
1074
+ node.keyRef = new _WeakRef(key);
1075
+ this.registry.register(key, node, node);
1076
+ }
1077
+ if (this.unfinalizedNodes.size > 0) {
1078
+ queueMicrotask(this.finalize);
1079
+ } else {
1080
+ this.finalizationScheduled = false;
1081
+ }
1082
+ };
1083
+ this.registry = new _FinalizationRegistry(this.deleteNode.bind(this));
1084
+ }
1085
+ has(key) {
1086
+ return this.map.has(key);
1087
+ }
1088
+ get(key) {
1089
+ const node = this.getNode(key);
1090
+ return node && node.value;
1091
+ }
1092
+ getNode(key) {
1093
+ const node = this.map.get(key);
1094
+ if (node && node !== this.newest) {
1095
+ const { older, newer } = node;
1096
+ if (newer) {
1097
+ newer.older = older;
1098
+ }
1099
+ if (older) {
1100
+ older.newer = newer;
1101
+ }
1102
+ node.older = this.newest;
1103
+ node.older.newer = node;
1104
+ node.newer = null;
1105
+ this.newest = node;
1106
+ if (node === this.oldest) {
1107
+ this.oldest = newer;
1108
+ }
1109
+ }
1110
+ return node;
1111
+ }
1112
+ set(key, value) {
1113
+ let node = this.getNode(key);
1114
+ if (node) {
1115
+ return node.value = value;
1116
+ }
1117
+ node = {
1118
+ key,
1119
+ value,
1120
+ newer: null,
1121
+ older: this.newest
1122
+ };
1123
+ if (this.newest) {
1124
+ this.newest.newer = node;
1125
+ }
1126
+ this.newest = node;
1127
+ this.oldest = this.oldest || node;
1128
+ this.scheduleFinalization(node);
1129
+ this.map.set(key, node);
1130
+ this.size++;
1131
+ return node.value;
1132
+ }
1133
+ clean() {
1134
+ while (this.oldest && this.size > this.max) {
1135
+ this.deleteNode(this.oldest);
1136
+ }
1137
+ }
1138
+ deleteNode(node) {
1139
+ if (node === this.newest) {
1140
+ this.newest = node.older;
1141
+ }
1142
+ if (node === this.oldest) {
1143
+ this.oldest = node.newer;
1144
+ }
1145
+ if (node.newer) {
1146
+ node.newer.older = node.older;
1147
+ }
1148
+ if (node.older) {
1149
+ node.older.newer = node.newer;
1150
+ }
1151
+ this.size--;
1152
+ const key = node.key || node.keyRef && node.keyRef.deref();
1153
+ this.dispose(node.value, key);
1154
+ if (!node.keyRef) {
1155
+ this.unfinalizedNodes.delete(node);
1156
+ } else {
1157
+ this.registry.unregister(node);
1158
+ }
1159
+ if (key)
1160
+ this.map.delete(key);
1161
+ }
1162
+ delete(key) {
1163
+ const node = this.map.get(key);
1164
+ if (node) {
1165
+ this.deleteNode(node);
1166
+ return true;
1167
+ }
1168
+ return false;
1169
+ }
1170
+ scheduleFinalization(node) {
1171
+ this.unfinalizedNodes.add(node);
1172
+ if (!this.finalizationScheduled) {
1173
+ this.finalizationScheduled = true;
1174
+ queueMicrotask(this.finalize);
1175
+ }
1176
+ }
1177
+ };
1178
+
1179
+ // ../../node_modules/@apollo/client/utilities/caching/caches.js
1180
+ var scheduledCleanup = /* @__PURE__ */ new WeakSet();
1181
+ function schedule(cache) {
1182
+ if (cache.size <= (cache.max || -1)) {
1183
+ return;
1184
+ }
1185
+ if (!scheduledCleanup.has(cache)) {
1186
+ scheduledCleanup.add(cache);
1187
+ setTimeout(function() {
1188
+ cache.clean();
1189
+ scheduledCleanup.delete(cache);
1190
+ }, 100);
1191
+ }
1192
+ }
1193
+ var AutoCleanedWeakCache = function(max, dispose) {
1194
+ var cache = new WeakCache(max, dispose);
1195
+ cache.set = function(key, value) {
1196
+ var ret = WeakCache.prototype.set.call(this, key, value);
1197
+ schedule(this);
1198
+ return ret;
1199
+ };
1200
+ return cache;
1201
+ };
1202
+
1203
+ // ../../node_modules/@apollo/client/utilities/caching/sizes.js
1204
+ var cacheSizeSymbol = Symbol.for("apollo.cacheSize");
1205
+ var cacheSizes = __assign({}, global_default[cacheSizeSymbol]);
1206
+
1207
+ // ../../node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
1208
+ var globalCaches = {};
1209
+ function registerGlobalCache(name, getSize) {
1210
+ globalCaches[name] = getSize;
1211
+ }
1212
+ var getApolloClientMemoryInternals = globalThis.__DEV__ !== false ? _getApolloClientMemoryInternals : void 0;
1213
+ var getInMemoryCacheMemoryInternals = globalThis.__DEV__ !== false ? _getInMemoryCacheMemoryInternals : void 0;
1214
+ var getApolloCacheMemoryInternals = globalThis.__DEV__ !== false ? _getApolloCacheMemoryInternals : void 0;
1215
+ function getCurrentCacheSizes() {
1216
+ var defaults = {
1217
+ parser: 1e3,
1218
+ canonicalStringify: 1e3,
1219
+ print: 2e3,
1220
+ "documentTransform.cache": 2e3,
1221
+ "queryManager.getDocumentInfo": 2e3,
1222
+ "PersistedQueryLink.persistedQueryHashes": 2e3,
1223
+ "fragmentRegistry.transform": 2e3,
1224
+ "fragmentRegistry.lookup": 1e3,
1225
+ "fragmentRegistry.findFragmentSpreads": 4e3,
1226
+ "cache.fragmentQueryDocuments": 1e3,
1227
+ "removeTypenameFromVariables.getVariableDefinitions": 2e3,
1228
+ "inMemoryCache.maybeBroadcastWatch": 5e3,
1229
+ "inMemoryCache.executeSelectionSet": 5e4,
1230
+ "inMemoryCache.executeSubSelectedArray": 1e4
1231
+ };
1232
+ return Object.fromEntries(Object.entries(defaults).map(function(_a2) {
1233
+ var k = _a2[0], v = _a2[1];
1234
+ return [
1235
+ k,
1236
+ cacheSizes[k] || v
1237
+ ];
1238
+ }));
1239
+ }
1240
+ function _getApolloClientMemoryInternals() {
1241
+ var _a2, _b, _c, _d, _e;
1242
+ if (!(globalThis.__DEV__ !== false))
1243
+ throw new Error("only supported in development mode");
1244
+ return {
1245
+ limits: getCurrentCacheSizes(),
1246
+ sizes: __assign({ print: (_a2 = globalCaches.print) === null || _a2 === void 0 ? void 0 : _a2.call(globalCaches), parser: (_b = globalCaches.parser) === null || _b === void 0 ? void 0 : _b.call(globalCaches), canonicalStringify: (_c = globalCaches.canonicalStringify) === null || _c === void 0 ? void 0 : _c.call(globalCaches), links: linkInfo(this.link), queryManager: {
1247
+ getDocumentInfo: this["queryManager"]["transformCache"].size,
1248
+ documentTransforms: transformInfo(this["queryManager"].documentTransform)
1249
+ } }, (_e = (_d = this.cache).getMemoryInternals) === null || _e === void 0 ? void 0 : _e.call(_d))
1250
+ };
1251
+ }
1252
+ function _getApolloCacheMemoryInternals() {
1253
+ return {
1254
+ cache: {
1255
+ fragmentQueryDocuments: getWrapperInformation(this["getFragmentDoc"])
1256
+ }
1257
+ };
1258
+ }
1259
+ function _getInMemoryCacheMemoryInternals() {
1260
+ var fragments = this.config.fragments;
1261
+ return __assign(__assign({}, _getApolloCacheMemoryInternals.apply(this)), { addTypenameDocumentTransform: transformInfo(this["addTypenameTransform"]), inMemoryCache: {
1262
+ executeSelectionSet: getWrapperInformation(this["storeReader"]["executeSelectionSet"]),
1263
+ executeSubSelectedArray: getWrapperInformation(this["storeReader"]["executeSubSelectedArray"]),
1264
+ maybeBroadcastWatch: getWrapperInformation(this["maybeBroadcastWatch"])
1265
+ }, fragmentRegistry: {
1266
+ findFragmentSpreads: getWrapperInformation(fragments === null || fragments === void 0 ? void 0 : fragments.findFragmentSpreads),
1267
+ lookup: getWrapperInformation(fragments === null || fragments === void 0 ? void 0 : fragments.lookup),
1268
+ transform: getWrapperInformation(fragments === null || fragments === void 0 ? void 0 : fragments.transform)
1269
+ } });
1270
+ }
1271
+ function isWrapper(f) {
1272
+ return !!f && "dirtyKey" in f;
1273
+ }
1274
+ function getWrapperInformation(f) {
1275
+ return isWrapper(f) ? f.size : void 0;
1276
+ }
1277
+ function isDefined(value) {
1278
+ return value != null;
1279
+ }
1280
+ function transformInfo(transform) {
1281
+ return recurseTransformInfo(transform).map(function(cache) {
1282
+ return { cache };
1283
+ });
1284
+ }
1285
+ function recurseTransformInfo(transform) {
1286
+ return transform ? __spreadArray(__spreadArray([
1287
+ getWrapperInformation(transform === null || transform === void 0 ? void 0 : transform["performWork"])
1288
+ ], recurseTransformInfo(transform === null || transform === void 0 ? void 0 : transform["left"]), true), recurseTransformInfo(transform === null || transform === void 0 ? void 0 : transform["right"]), true).filter(isDefined) : [];
1289
+ }
1290
+ function linkInfo(link) {
1291
+ var _a2;
1292
+ return link ? __spreadArray(__spreadArray([
1293
+ (_a2 = link === null || link === void 0 ? void 0 : link.getMemoryInternals) === null || _a2 === void 0 ? void 0 : _a2.call(link)
1294
+ ], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
1295
+ }
1296
+
1297
+ // ../../node_modules/@apollo/client/utilities/graphql/getFromAST.js
1298
+ function getOperationName(doc) {
1299
+ return doc.definitions.filter(function(definition) {
1300
+ return definition.kind === "OperationDefinition" && !!definition.name;
1301
+ }).map(function(x) {
1302
+ return x.name.value;
1303
+ })[0] || null;
1304
+ }
1305
+
1306
+ // ../../node_modules/@apollo/client/utilities/graphql/print.js
1307
+ var printCache;
1308
+ var print2 = Object.assign(function(ast) {
1309
+ var result2 = printCache.get(ast);
1310
+ if (!result2) {
1311
+ result2 = print(ast);
1312
+ printCache.set(ast, result2);
1313
+ }
1314
+ return result2;
1315
+ }, {
1316
+ reset: function() {
1317
+ printCache = new AutoCleanedWeakCache(
1318
+ cacheSizes.print || 2e3
1319
+ /* defaultCacheSizes.print */
1320
+ );
1321
+ }
1322
+ });
1323
+ print2.reset();
1324
+ if (globalThis.__DEV__ !== false) {
1325
+ registerGlobalCache("print", function() {
1326
+ return printCache ? printCache.size : 0;
1327
+ });
1328
+ }
1329
+
1330
+ // ../../node_modules/zen-observable-ts/module.js
1331
+ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
1332
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1333
+ if (it) return (it = it.call(o)).next.bind(it);
1334
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1335
+ if (it) o = it;
1336
+ var i = 0;
1337
+ return function() {
1338
+ if (i >= o.length) return { done: true };
1339
+ return { done: false, value: o[i++] };
1340
+ };
1341
+ }
1342
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1343
+ }
1344
+ function _unsupportedIterableToArray(o, minLen) {
1345
+ if (!o) return;
1346
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1347
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1348
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1349
+ if (n === "Map" || n === "Set") return Array.from(o);
1350
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1351
+ }
1352
+ function _arrayLikeToArray(arr, len) {
1353
+ if (len == null || len > arr.length) len = arr.length;
1354
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
1355
+ arr2[i] = arr[i];
1356
+ }
1357
+ return arr2;
1358
+ }
1359
+ function _defineProperties(target, props) {
1360
+ for (var i = 0; i < props.length; i++) {
1361
+ var descriptor = props[i];
1362
+ descriptor.enumerable = descriptor.enumerable || false;
1363
+ descriptor.configurable = true;
1364
+ if ("value" in descriptor) descriptor.writable = true;
1365
+ Object.defineProperty(target, descriptor.key, descriptor);
1366
+ }
1367
+ }
1368
+ function _createClass(Constructor, protoProps, staticProps) {
1369
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1370
+ if (staticProps) _defineProperties(Constructor, staticProps);
1371
+ Object.defineProperty(Constructor, "prototype", { writable: false });
1372
+ return Constructor;
1373
+ }
1374
+ var hasSymbols = function() {
1375
+ return typeof Symbol === "function";
1376
+ };
1377
+ var hasSymbol = function(name) {
1378
+ return hasSymbols() && Boolean(Symbol[name]);
1379
+ };
1380
+ var getSymbol = function(name) {
1381
+ return hasSymbol(name) ? Symbol[name] : "@@" + name;
1382
+ };
1383
+ if (hasSymbols() && !hasSymbol("observable")) {
1384
+ Symbol.observable = Symbol("observable");
1385
+ }
1386
+ var SymbolIterator = getSymbol("iterator");
1387
+ var SymbolObservable = getSymbol("observable");
1388
+ var SymbolSpecies = getSymbol("species");
1389
+ function getMethod(obj, key) {
1390
+ var value = obj[key];
1391
+ if (value == null) return void 0;
1392
+ if (typeof value !== "function") throw new TypeError(value + " is not a function");
1393
+ return value;
1394
+ }
1395
+ function getSpecies(obj) {
1396
+ var ctor = obj.constructor;
1397
+ if (ctor !== void 0) {
1398
+ ctor = ctor[SymbolSpecies];
1399
+ if (ctor === null) {
1400
+ ctor = void 0;
1401
+ }
1402
+ }
1403
+ return ctor !== void 0 ? ctor : Observable;
1404
+ }
1405
+ function isObservable(x) {
1406
+ return x instanceof Observable;
1407
+ }
1408
+ function hostReportError(e) {
1409
+ if (hostReportError.log) {
1410
+ hostReportError.log(e);
1411
+ } else {
1412
+ setTimeout(function() {
1413
+ throw e;
1414
+ });
1415
+ }
1416
+ }
1417
+ function enqueue(fn) {
1418
+ Promise.resolve().then(function() {
1419
+ try {
1420
+ fn();
1421
+ } catch (e) {
1422
+ hostReportError(e);
1423
+ }
1424
+ });
1425
+ }
1426
+ function cleanupSubscription(subscription) {
1427
+ var cleanup = subscription._cleanup;
1428
+ if (cleanup === void 0) return;
1429
+ subscription._cleanup = void 0;
1430
+ if (!cleanup) {
1431
+ return;
1432
+ }
1433
+ try {
1434
+ if (typeof cleanup === "function") {
1435
+ cleanup();
1436
+ } else {
1437
+ var unsubscribe = getMethod(cleanup, "unsubscribe");
1438
+ if (unsubscribe) {
1439
+ unsubscribe.call(cleanup);
1440
+ }
1441
+ }
1442
+ } catch (e) {
1443
+ hostReportError(e);
1444
+ }
1445
+ }
1446
+ function closeSubscription(subscription) {
1447
+ subscription._observer = void 0;
1448
+ subscription._queue = void 0;
1449
+ subscription._state = "closed";
1450
+ }
1451
+ function flushSubscription(subscription) {
1452
+ var queue = subscription._queue;
1453
+ if (!queue) {
1454
+ return;
1455
+ }
1456
+ subscription._queue = void 0;
1457
+ subscription._state = "ready";
1458
+ for (var i = 0; i < queue.length; ++i) {
1459
+ notifySubscription(subscription, queue[i].type, queue[i].value);
1460
+ if (subscription._state === "closed") break;
1461
+ }
1462
+ }
1463
+ function notifySubscription(subscription, type, value) {
1464
+ subscription._state = "running";
1465
+ var observer = subscription._observer;
1466
+ try {
1467
+ var m = getMethod(observer, type);
1468
+ switch (type) {
1469
+ case "next":
1470
+ if (m) m.call(observer, value);
1471
+ break;
1472
+ case "error":
1473
+ closeSubscription(subscription);
1474
+ if (m) m.call(observer, value);
1475
+ else throw value;
1476
+ break;
1477
+ case "complete":
1478
+ closeSubscription(subscription);
1479
+ if (m) m.call(observer);
1480
+ break;
1481
+ }
1482
+ } catch (e) {
1483
+ hostReportError(e);
1484
+ }
1485
+ if (subscription._state === "closed") cleanupSubscription(subscription);
1486
+ else if (subscription._state === "running") subscription._state = "ready";
1487
+ }
1488
+ function onNotify(subscription, type, value) {
1489
+ if (subscription._state === "closed") return;
1490
+ if (subscription._state === "buffering") {
1491
+ subscription._queue.push({
1492
+ type,
1493
+ value
1494
+ });
1495
+ return;
1496
+ }
1497
+ if (subscription._state !== "ready") {
1498
+ subscription._state = "buffering";
1499
+ subscription._queue = [{
1500
+ type,
1501
+ value
1502
+ }];
1503
+ enqueue(function() {
1504
+ return flushSubscription(subscription);
1505
+ });
1506
+ return;
1507
+ }
1508
+ notifySubscription(subscription, type, value);
1509
+ }
1510
+ var Subscription = /* @__PURE__ */ function() {
1511
+ function Subscription2(observer, subscriber) {
1512
+ this._cleanup = void 0;
1513
+ this._observer = observer;
1514
+ this._queue = void 0;
1515
+ this._state = "initializing";
1516
+ var subscriptionObserver = new SubscriptionObserver(this);
1517
+ try {
1518
+ this._cleanup = subscriber.call(void 0, subscriptionObserver);
1519
+ } catch (e) {
1520
+ subscriptionObserver.error(e);
1521
+ }
1522
+ if (this._state === "initializing") this._state = "ready";
1523
+ }
1524
+ var _proto = Subscription2.prototype;
1525
+ _proto.unsubscribe = function unsubscribe() {
1526
+ if (this._state !== "closed") {
1527
+ closeSubscription(this);
1528
+ cleanupSubscription(this);
1529
+ }
1530
+ };
1531
+ _createClass(Subscription2, [{
1532
+ key: "closed",
1533
+ get: function() {
1534
+ return this._state === "closed";
1535
+ }
1536
+ }]);
1537
+ return Subscription2;
1538
+ }();
1539
+ var SubscriptionObserver = /* @__PURE__ */ function() {
1540
+ function SubscriptionObserver2(subscription) {
1541
+ this._subscription = subscription;
1542
+ }
1543
+ var _proto2 = SubscriptionObserver2.prototype;
1544
+ _proto2.next = function next(value) {
1545
+ onNotify(this._subscription, "next", value);
1546
+ };
1547
+ _proto2.error = function error(value) {
1548
+ onNotify(this._subscription, "error", value);
1549
+ };
1550
+ _proto2.complete = function complete() {
1551
+ onNotify(this._subscription, "complete");
1552
+ };
1553
+ _createClass(SubscriptionObserver2, [{
1554
+ key: "closed",
1555
+ get: function() {
1556
+ return this._subscription._state === "closed";
1557
+ }
1558
+ }]);
1559
+ return SubscriptionObserver2;
1560
+ }();
1561
+ var Observable = /* @__PURE__ */ function() {
1562
+ function Observable2(subscriber) {
1563
+ if (!(this instanceof Observable2)) throw new TypeError("Observable cannot be called as a function");
1564
+ if (typeof subscriber !== "function") throw new TypeError("Observable initializer must be a function");
1565
+ this._subscriber = subscriber;
1566
+ }
1567
+ var _proto3 = Observable2.prototype;
1568
+ _proto3.subscribe = function subscribe(observer) {
1569
+ if (typeof observer !== "object" || observer === null) {
1570
+ observer = {
1571
+ next: observer,
1572
+ error: arguments[1],
1573
+ complete: arguments[2]
1574
+ };
1575
+ }
1576
+ return new Subscription(observer, this._subscriber);
1577
+ };
1578
+ _proto3.forEach = function forEach(fn) {
1579
+ var _this = this;
1580
+ return new Promise(function(resolve, reject) {
1581
+ if (typeof fn !== "function") {
1582
+ reject(new TypeError(fn + " is not a function"));
1583
+ return;
1584
+ }
1585
+ function done() {
1586
+ subscription.unsubscribe();
1587
+ resolve();
1588
+ }
1589
+ var subscription = _this.subscribe({
1590
+ next: function(value) {
1591
+ try {
1592
+ fn(value, done);
1593
+ } catch (e) {
1594
+ reject(e);
1595
+ subscription.unsubscribe();
1596
+ }
1597
+ },
1598
+ error: reject,
1599
+ complete: resolve
1600
+ });
1601
+ });
1602
+ };
1603
+ _proto3.map = function map(fn) {
1604
+ var _this2 = this;
1605
+ if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
1606
+ var C = getSpecies(this);
1607
+ return new C(function(observer) {
1608
+ return _this2.subscribe({
1609
+ next: function(value) {
1610
+ try {
1611
+ value = fn(value);
1612
+ } catch (e) {
1613
+ return observer.error(e);
1614
+ }
1615
+ observer.next(value);
1616
+ },
1617
+ error: function(e) {
1618
+ observer.error(e);
1619
+ },
1620
+ complete: function() {
1621
+ observer.complete();
1622
+ }
1623
+ });
1624
+ });
1625
+ };
1626
+ _proto3.filter = function filter(fn) {
1627
+ var _this3 = this;
1628
+ if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
1629
+ var C = getSpecies(this);
1630
+ return new C(function(observer) {
1631
+ return _this3.subscribe({
1632
+ next: function(value) {
1633
+ try {
1634
+ if (!fn(value)) return;
1635
+ } catch (e) {
1636
+ return observer.error(e);
1637
+ }
1638
+ observer.next(value);
1639
+ },
1640
+ error: function(e) {
1641
+ observer.error(e);
1642
+ },
1643
+ complete: function() {
1644
+ observer.complete();
1645
+ }
1646
+ });
1647
+ });
1648
+ };
1649
+ _proto3.reduce = function reduce(fn) {
1650
+ var _this4 = this;
1651
+ if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
1652
+ var C = getSpecies(this);
1653
+ var hasSeed = arguments.length > 1;
1654
+ var hasValue = false;
1655
+ var seed = arguments[1];
1656
+ var acc = seed;
1657
+ return new C(function(observer) {
1658
+ return _this4.subscribe({
1659
+ next: function(value) {
1660
+ var first = !hasValue;
1661
+ hasValue = true;
1662
+ if (!first || hasSeed) {
1663
+ try {
1664
+ acc = fn(acc, value);
1665
+ } catch (e) {
1666
+ return observer.error(e);
1667
+ }
1668
+ } else {
1669
+ acc = value;
1670
+ }
1671
+ },
1672
+ error: function(e) {
1673
+ observer.error(e);
1674
+ },
1675
+ complete: function() {
1676
+ if (!hasValue && !hasSeed) return observer.error(new TypeError("Cannot reduce an empty sequence"));
1677
+ observer.next(acc);
1678
+ observer.complete();
1679
+ }
1680
+ });
1681
+ });
1682
+ };
1683
+ _proto3.concat = function concat() {
1684
+ var _this5 = this;
1685
+ for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
1686
+ sources[_key] = arguments[_key];
1687
+ }
1688
+ var C = getSpecies(this);
1689
+ return new C(function(observer) {
1690
+ var subscription;
1691
+ var index = 0;
1692
+ function startNext(next) {
1693
+ subscription = next.subscribe({
1694
+ next: function(v) {
1695
+ observer.next(v);
1696
+ },
1697
+ error: function(e) {
1698
+ observer.error(e);
1699
+ },
1700
+ complete: function() {
1701
+ if (index === sources.length) {
1702
+ subscription = void 0;
1703
+ observer.complete();
1704
+ } else {
1705
+ startNext(C.from(sources[index++]));
1706
+ }
1707
+ }
1708
+ });
1709
+ }
1710
+ startNext(_this5);
1711
+ return function() {
1712
+ if (subscription) {
1713
+ subscription.unsubscribe();
1714
+ subscription = void 0;
1715
+ }
1716
+ };
1717
+ });
1718
+ };
1719
+ _proto3.flatMap = function flatMap(fn) {
1720
+ var _this6 = this;
1721
+ if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
1722
+ var C = getSpecies(this);
1723
+ return new C(function(observer) {
1724
+ var subscriptions = [];
1725
+ var outer = _this6.subscribe({
1726
+ next: function(value) {
1727
+ if (fn) {
1728
+ try {
1729
+ value = fn(value);
1730
+ } catch (e) {
1731
+ return observer.error(e);
1732
+ }
1733
+ }
1734
+ var inner = C.from(value).subscribe({
1735
+ next: function(value2) {
1736
+ observer.next(value2);
1737
+ },
1738
+ error: function(e) {
1739
+ observer.error(e);
1740
+ },
1741
+ complete: function() {
1742
+ var i = subscriptions.indexOf(inner);
1743
+ if (i >= 0) subscriptions.splice(i, 1);
1744
+ completeIfDone();
1745
+ }
1746
+ });
1747
+ subscriptions.push(inner);
1748
+ },
1749
+ error: function(e) {
1750
+ observer.error(e);
1751
+ },
1752
+ complete: function() {
1753
+ completeIfDone();
1754
+ }
1755
+ });
1756
+ function completeIfDone() {
1757
+ if (outer.closed && subscriptions.length === 0) observer.complete();
1758
+ }
1759
+ return function() {
1760
+ subscriptions.forEach(function(s) {
1761
+ return s.unsubscribe();
1762
+ });
1763
+ outer.unsubscribe();
1764
+ };
1765
+ });
1766
+ };
1767
+ _proto3[SymbolObservable] = function() {
1768
+ return this;
1769
+ };
1770
+ Observable2.from = function from(x) {
1771
+ var C = typeof this === "function" ? this : Observable2;
1772
+ if (x == null) throw new TypeError(x + " is not an object");
1773
+ var method = getMethod(x, SymbolObservable);
1774
+ if (method) {
1775
+ var observable = method.call(x);
1776
+ if (Object(observable) !== observable) throw new TypeError(observable + " is not an object");
1777
+ if (isObservable(observable) && observable.constructor === C) return observable;
1778
+ return new C(function(observer) {
1779
+ return observable.subscribe(observer);
1780
+ });
1781
+ }
1782
+ if (hasSymbol("iterator")) {
1783
+ method = getMethod(x, SymbolIterator);
1784
+ if (method) {
1785
+ return new C(function(observer) {
1786
+ enqueue(function() {
1787
+ if (observer.closed) return;
1788
+ for (var _iterator = _createForOfIteratorHelperLoose(method.call(x)), _step; !(_step = _iterator()).done; ) {
1789
+ var item = _step.value;
1790
+ observer.next(item);
1791
+ if (observer.closed) return;
1792
+ }
1793
+ observer.complete();
1794
+ });
1795
+ });
1796
+ }
1797
+ }
1798
+ if (Array.isArray(x)) {
1799
+ return new C(function(observer) {
1800
+ enqueue(function() {
1801
+ if (observer.closed) return;
1802
+ for (var i = 0; i < x.length; ++i) {
1803
+ observer.next(x[i]);
1804
+ if (observer.closed) return;
1805
+ }
1806
+ observer.complete();
1807
+ });
1808
+ });
1809
+ }
1810
+ throw new TypeError(x + " is not observable");
1811
+ };
1812
+ Observable2.of = function of() {
1813
+ for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1814
+ items[_key2] = arguments[_key2];
1815
+ }
1816
+ var C = typeof this === "function" ? this : Observable2;
1817
+ return new C(function(observer) {
1818
+ enqueue(function() {
1819
+ if (observer.closed) return;
1820
+ for (var i = 0; i < items.length; ++i) {
1821
+ observer.next(items[i]);
1822
+ if (observer.closed) return;
1823
+ }
1824
+ observer.complete();
1825
+ });
1826
+ });
1827
+ };
1828
+ _createClass(Observable2, null, [{
1829
+ key: SymbolSpecies,
1830
+ get: function() {
1831
+ return this;
1832
+ }
1833
+ }]);
1834
+ return Observable2;
1835
+ }();
1836
+ if (hasSymbols()) {
1837
+ Object.defineProperty(Observable, Symbol("extensions"), {
1838
+ value: {
1839
+ symbol: SymbolObservable,
1840
+ hostReportError
1841
+ },
1842
+ configurable: true
1843
+ });
1844
+ }
1845
+
1846
+ // ../../node_modules/symbol-observable/es/ponyfill.js
1847
+ function symbolObservablePonyfill(root2) {
1848
+ var result2;
1849
+ var Symbol2 = root2.Symbol;
1850
+ if (typeof Symbol2 === "function") {
1851
+ if (Symbol2.observable) {
1852
+ result2 = Symbol2.observable;
1853
+ } else {
1854
+ if (typeof Symbol2.for === "function") {
1855
+ result2 = Symbol2.for("https://github.com/benlesh/symbol-observable");
1856
+ } else {
1857
+ result2 = Symbol2("https://github.com/benlesh/symbol-observable");
1858
+ }
1859
+ try {
1860
+ Symbol2.observable = result2;
1861
+ } catch (err) {
1862
+ }
1863
+ }
1864
+ } else {
1865
+ result2 = "@@observable";
1866
+ }
1867
+ return result2;
1868
+ }
1869
+
1870
+ // ../../node_modules/symbol-observable/es/index.js
1871
+ var root;
1872
+ if (typeof self !== "undefined") {
1873
+ root = self;
1874
+ } else if (typeof window !== "undefined") {
1875
+ root = window;
1876
+ } else if (typeof global !== "undefined") {
1877
+ root = global;
1878
+ } else if (typeof module !== "undefined") {
1879
+ root = module;
1880
+ } else {
1881
+ root = Function("return this")();
1882
+ }
1883
+ var result = symbolObservablePonyfill(root);
1884
+
1885
+ // ../../node_modules/@apollo/client/utilities/observables/Observable.js
1886
+ var prototype = Observable.prototype;
1887
+ var fakeObsSymbol = "@@observable";
1888
+ if (!prototype[fakeObsSymbol]) {
1889
+ prototype[fakeObsSymbol] = function() {
1890
+ return this;
1891
+ };
1892
+ }
1893
+
1894
+ // ../../node_modules/@apollo/client/link/utils/throwServerError.js
1895
+ var throwServerError = function(response, result2, message) {
1896
+ var error = new Error(message);
1897
+ error.name = "ServerError";
1898
+ error.response = response;
1899
+ error.statusCode = response.status;
1900
+ error.result = result2;
1901
+ throw error;
1902
+ };
1903
+
1904
+ // ../../node_modules/@apollo/client/link/utils/validateOperation.js
1905
+ function validateOperation(operation) {
1906
+ var OPERATION_FIELDS = [
1907
+ "query",
1908
+ "operationName",
1909
+ "variables",
1910
+ "extensions",
1911
+ "context"
1912
+ ];
1913
+ for (var _i = 0, _a2 = Object.keys(operation); _i < _a2.length; _i++) {
1914
+ var key = _a2[_i];
1915
+ if (OPERATION_FIELDS.indexOf(key) < 0) {
1916
+ throw newInvariantError(43, key);
1917
+ }
1918
+ }
1919
+ return operation;
1920
+ }
1921
+
1922
+ // ../../node_modules/@apollo/client/link/utils/createOperation.js
1923
+ function createOperation(starting, operation) {
1924
+ var context = __assign({}, starting);
1925
+ var setContext = function(next) {
1926
+ if (typeof next === "function") {
1927
+ context = __assign(__assign({}, context), next(context));
1928
+ } else {
1929
+ context = __assign(__assign({}, context), next);
1930
+ }
1931
+ };
1932
+ var getContext = function() {
1933
+ return __assign({}, context);
1934
+ };
1935
+ Object.defineProperty(operation, "setContext", {
1936
+ enumerable: false,
1937
+ value: setContext
1938
+ });
1939
+ Object.defineProperty(operation, "getContext", {
1940
+ enumerable: false,
1941
+ value: getContext
1942
+ });
1943
+ return operation;
1944
+ }
1945
+
1946
+ // ../../node_modules/@apollo/client/link/utils/transformOperation.js
1947
+ function transformOperation(operation) {
1948
+ var transformedOperation = {
1949
+ variables: operation.variables || {},
1950
+ extensions: operation.extensions || {},
1951
+ operationName: operation.operationName,
1952
+ query: operation.query
1953
+ };
1954
+ if (!transformedOperation.operationName) {
1955
+ transformedOperation.operationName = typeof transformedOperation.query !== "string" ? getOperationName(transformedOperation.query) || void 0 : "";
1956
+ }
1957
+ return transformedOperation;
1958
+ }
1959
+
1960
+ // ../../node_modules/@apollo/client/link/core/ApolloLink.js
1961
+ function passthrough(op, forward) {
1962
+ return forward ? forward(op) : Observable.of();
1963
+ }
1964
+ function toLink(handler) {
1965
+ return typeof handler === "function" ? new ApolloLink(handler) : handler;
1966
+ }
1967
+ function isTerminating(link) {
1968
+ return link.request.length <= 1;
1969
+ }
1970
+ var ApolloLink = (
1971
+ /** @class */
1972
+ function() {
1973
+ function ApolloLink2(request) {
1974
+ if (request)
1975
+ this.request = request;
1976
+ }
1977
+ ApolloLink2.empty = function() {
1978
+ return new ApolloLink2(function() {
1979
+ return Observable.of();
1980
+ });
1981
+ };
1982
+ ApolloLink2.from = function(links) {
1983
+ if (links.length === 0)
1984
+ return ApolloLink2.empty();
1985
+ return links.map(toLink).reduce(function(x, y) {
1986
+ return x.concat(y);
1987
+ });
1988
+ };
1989
+ ApolloLink2.split = function(test, left, right) {
1990
+ var leftLink = toLink(left);
1991
+ var rightLink = toLink(right || new ApolloLink2(passthrough));
1992
+ var ret;
1993
+ if (isTerminating(leftLink) && isTerminating(rightLink)) {
1994
+ ret = new ApolloLink2(function(operation) {
1995
+ return test(operation) ? leftLink.request(operation) || Observable.of() : rightLink.request(operation) || Observable.of();
1996
+ });
1997
+ } else {
1998
+ ret = new ApolloLink2(function(operation, forward) {
1999
+ return test(operation) ? leftLink.request(operation, forward) || Observable.of() : rightLink.request(operation, forward) || Observable.of();
2000
+ });
2001
+ }
2002
+ return Object.assign(ret, { left: leftLink, right: rightLink });
2003
+ };
2004
+ ApolloLink2.execute = function(link, operation) {
2005
+ return link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of();
2006
+ };
2007
+ ApolloLink2.concat = function(first, second) {
2008
+ var firstLink = toLink(first);
2009
+ if (isTerminating(firstLink)) {
2010
+ globalThis.__DEV__ !== false && invariant2.warn(35, firstLink);
2011
+ return firstLink;
2012
+ }
2013
+ var nextLink = toLink(second);
2014
+ var ret;
2015
+ if (isTerminating(nextLink)) {
2016
+ ret = new ApolloLink2(function(operation) {
2017
+ return firstLink.request(operation, function(op) {
2018
+ return nextLink.request(op) || Observable.of();
2019
+ }) || Observable.of();
2020
+ });
2021
+ } else {
2022
+ ret = new ApolloLink2(function(operation, forward) {
2023
+ return firstLink.request(operation, function(op) {
2024
+ return nextLink.request(op, forward) || Observable.of();
2025
+ }) || Observable.of();
2026
+ });
2027
+ }
2028
+ return Object.assign(ret, { left: firstLink, right: nextLink });
2029
+ };
2030
+ ApolloLink2.prototype.split = function(test, left, right) {
2031
+ return this.concat(ApolloLink2.split(test, left, right || new ApolloLink2(passthrough)));
2032
+ };
2033
+ ApolloLink2.prototype.concat = function(next) {
2034
+ return ApolloLink2.concat(this, next);
2035
+ };
2036
+ ApolloLink2.prototype.request = function(operation, forward) {
2037
+ throw newInvariantError(36);
2038
+ };
2039
+ ApolloLink2.prototype.onError = function(error, observer) {
2040
+ if (observer && observer.error) {
2041
+ observer.error(error);
2042
+ return false;
2043
+ }
2044
+ throw error;
2045
+ };
2046
+ ApolloLink2.prototype.setOnError = function(fn) {
2047
+ this.onError = fn;
2048
+ return this;
2049
+ };
2050
+ return ApolloLink2;
2051
+ }()
2052
+ );
2053
+
2054
+ // ../../node_modules/@apollo/client/link/http/createSignalIfSupported.js
2055
+ var createSignalIfSupported = function() {
2056
+ if (typeof AbortController === "undefined")
2057
+ return { controller: false, signal: false };
2058
+ var controller = new AbortController();
2059
+ var signal = controller.signal;
2060
+ return { controller, signal };
2061
+ };
2062
+
2063
+ // ../../node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
2064
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2065
+ function parseJsonBody(response, bodyText) {
2066
+ if (response.status >= 300) {
2067
+ var getResult = function() {
2068
+ try {
2069
+ return JSON.parse(bodyText);
2070
+ } catch (err) {
2071
+ return bodyText;
2072
+ }
2073
+ };
2074
+ throwServerError(response, getResult(), "Response not successful: Received status code ".concat(response.status));
2075
+ }
2076
+ try {
2077
+ return JSON.parse(bodyText);
2078
+ } catch (err) {
2079
+ var parseError = err;
2080
+ parseError.name = "ServerParseError";
2081
+ parseError.response = response;
2082
+ parseError.statusCode = response.status;
2083
+ parseError.bodyText = bodyText;
2084
+ throw parseError;
2085
+ }
2086
+ }
2087
+ function parseAndCheckHttpResponse(operations) {
2088
+ return function(response) {
2089
+ return response.text().then(function(bodyText) {
2090
+ return parseJsonBody(response, bodyText);
2091
+ }).then(function(result2) {
2092
+ if (!Array.isArray(result2) && !hasOwnProperty.call(result2, "data") && !hasOwnProperty.call(result2, "errors")) {
2093
+ throwServerError(response, result2, "Server response was missing for query '".concat(Array.isArray(operations) ? operations.map(function(op) {
2094
+ return op.operationName;
2095
+ }) : operations.operationName, "'."));
2096
+ }
2097
+ return result2;
2098
+ });
2099
+ };
2100
+ }
2101
+
2102
+ // ../../node_modules/@apollo/client/link/http/serializeFetchParameter.js
2103
+ var serializeFetchParameter = function(p, label) {
2104
+ var serialized;
2105
+ try {
2106
+ serialized = JSON.stringify(p);
2107
+ } catch (e) {
2108
+ var parseError = newInvariantError(39, label, e.message);
2109
+ parseError.parseError = e;
2110
+ throw parseError;
2111
+ }
2112
+ return serialized;
2113
+ };
2114
+
2115
+ // ../../node_modules/@apollo/client/link/http/rewriteURIForGET.js
2116
+ function rewriteURIForGET(chosenURI, body) {
2117
+ var queryParams = [];
2118
+ var addQueryParam = function(key, value) {
2119
+ queryParams.push("".concat(key, "=").concat(encodeURIComponent(value)));
2120
+ };
2121
+ if ("query" in body) {
2122
+ addQueryParam("query", body.query);
2123
+ }
2124
+ if (body.operationName) {
2125
+ addQueryParam("operationName", body.operationName);
2126
+ }
2127
+ if (body.variables) {
2128
+ var serializedVariables = void 0;
2129
+ try {
2130
+ serializedVariables = serializeFetchParameter(body.variables, "Variables map");
2131
+ } catch (parseError) {
2132
+ return { parseError };
2133
+ }
2134
+ addQueryParam("variables", serializedVariables);
2135
+ }
2136
+ if (body.extensions) {
2137
+ var serializedExtensions = void 0;
2138
+ try {
2139
+ serializedExtensions = serializeFetchParameter(body.extensions, "Extensions map");
2140
+ } catch (parseError) {
2141
+ return { parseError };
2142
+ }
2143
+ addQueryParam("extensions", serializedExtensions);
2144
+ }
2145
+ var fragment = "", preFragment = chosenURI;
2146
+ var fragmentStart = chosenURI.indexOf("#");
2147
+ if (fragmentStart !== -1) {
2148
+ fragment = chosenURI.substr(fragmentStart);
2149
+ preFragment = chosenURI.substr(0, fragmentStart);
2150
+ }
2151
+ var queryParamsPrefix = preFragment.indexOf("?") === -1 ? "?" : "&";
2152
+ var newURI = preFragment + queryParamsPrefix + queryParams.join("&") + fragment;
2153
+ return { newURI };
2154
+ }
2155
+
2156
+ // ../../node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
2157
+ var defaultHttpOptions = {
2158
+ includeQuery: true,
2159
+ includeExtensions: false,
2160
+ preserveHeaderCase: false
2161
+ };
2162
+ var defaultHeaders = {
2163
+ // headers are case insensitive (https://stackoverflow.com/a/5259004)
2164
+ accept: "*/*",
2165
+ // The content-type header describes the type of the body of the request, and
2166
+ // so it typically only is sent with requests that actually have bodies. One
2167
+ // could imagine that Apollo Client would remove this header when constructing
2168
+ // a GET request (which has no body), but we historically have not done that.
2169
+ // This means that browsers will preflight all Apollo Client requests (even
2170
+ // GET requests). Apollo Server's CSRF prevention feature (introduced in
2171
+ // AS3.7) takes advantage of this fact and does not block requests with this
2172
+ // header. If you want to drop this header from GET requests, then you should
2173
+ // probably replace it with a `apollo-require-preflight` header, or servers
2174
+ // with CSRF prevention enabled might block your GET request. See
2175
+ // https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf
2176
+ // for more details.
2177
+ "content-type": "application/json"
2178
+ };
2179
+ var defaultOptions = {
2180
+ method: "POST"
2181
+ };
2182
+ var fallbackHttpConfig = {
2183
+ http: defaultHttpOptions,
2184
+ headers: defaultHeaders,
2185
+ options: defaultOptions
2186
+ };
2187
+ var defaultPrinter = function(ast, printer) {
2188
+ return printer(ast);
2189
+ };
2190
+ function selectHttpOptionsAndBodyInternal(operation, printer) {
2191
+ var configs = [];
2192
+ for (var _i = 2; _i < arguments.length; _i++) {
2193
+ configs[_i - 2] = arguments[_i];
2194
+ }
2195
+ var options = {};
2196
+ var http = {};
2197
+ configs.forEach(function(config) {
2198
+ options = __assign(__assign(__assign({}, options), config.options), { headers: __assign(__assign({}, options.headers), config.headers) });
2199
+ if (config.credentials) {
2200
+ options.credentials = config.credentials;
2201
+ }
2202
+ http = __assign(__assign({}, http), config.http);
2203
+ });
2204
+ if (options.headers) {
2205
+ options.headers = removeDuplicateHeaders(options.headers, http.preserveHeaderCase);
2206
+ }
2207
+ var operationName = operation.operationName, extensions = operation.extensions, variables = operation.variables, query = operation.query;
2208
+ var body = { operationName, variables };
2209
+ if (http.includeExtensions)
2210
+ body.extensions = extensions;
2211
+ if (http.includeQuery)
2212
+ body.query = printer(query, print2);
2213
+ return {
2214
+ options,
2215
+ body
2216
+ };
2217
+ }
2218
+ function removeDuplicateHeaders(headers, preserveHeaderCase) {
2219
+ if (!preserveHeaderCase) {
2220
+ var normalizedHeaders_1 = /* @__PURE__ */ Object.create(null);
2221
+ Object.keys(Object(headers)).forEach(function(name) {
2222
+ normalizedHeaders_1[name.toLowerCase()] = headers[name];
2223
+ });
2224
+ return normalizedHeaders_1;
2225
+ }
2226
+ var headerData = /* @__PURE__ */ Object.create(null);
2227
+ Object.keys(Object(headers)).forEach(function(name) {
2228
+ headerData[name.toLowerCase()] = {
2229
+ originalName: name,
2230
+ value: headers[name]
2231
+ };
2232
+ });
2233
+ var normalizedHeaders = /* @__PURE__ */ Object.create(null);
2234
+ Object.keys(headerData).forEach(function(name) {
2235
+ normalizedHeaders[headerData[name].originalName] = headerData[name].value;
2236
+ });
2237
+ return normalizedHeaders;
2238
+ }
2239
+
2240
+ // ../../node_modules/@apollo/client/link/http/selectURI.js
2241
+ var selectURI = function(operation, fallbackURI) {
2242
+ var context = operation.getContext();
2243
+ var contextURI = context.uri;
2244
+ if (contextURI) {
2245
+ return contextURI;
2246
+ } else if (typeof fallbackURI === "function") {
2247
+ return fallbackURI(operation);
2248
+ } else {
2249
+ return fallbackURI || "/graphql";
2250
+ }
2251
+ };
2252
+
2253
+ // ../../node_modules/apollo-upload-client/node_modules/is-plain-obj/index.js
2254
+ function isPlainObject(value) {
2255
+ if (typeof value !== "object" || value === null) {
2256
+ return false;
2257
+ }
2258
+ const prototype2 = Object.getPrototypeOf(value);
2259
+ return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
2260
+ }
2261
+
2262
+ // ../../node_modules/apollo-upload-client/node_modules/extract-files/extractFiles.mjs
2263
+ function extractFiles(value, isExtractable, path = "") {
2264
+ if (!arguments.length) throw new TypeError("Argument 1 `value` is required.");
2265
+ if (typeof isExtractable !== "function")
2266
+ throw new TypeError("Argument 2 `isExtractable` must be a function.");
2267
+ if (typeof path !== "string")
2268
+ throw new TypeError("Argument 3 `path` must be a string.");
2269
+ const clones = /* @__PURE__ */ new Map();
2270
+ const files = /* @__PURE__ */ new Map();
2271
+ function recurse(value2, path2, recursed) {
2272
+ if (isExtractable(value2)) {
2273
+ const filePaths = files.get(value2);
2274
+ filePaths ? filePaths.push(path2) : files.set(value2, [path2]);
2275
+ return null;
2276
+ }
2277
+ const valueIsList = Array.isArray(value2) || typeof FileList !== "undefined" && value2 instanceof FileList;
2278
+ const valueIsPlainObject = isPlainObject(value2);
2279
+ if (valueIsList || valueIsPlainObject) {
2280
+ let clone = clones.get(value2);
2281
+ const uncloned = !clone;
2282
+ if (uncloned) {
2283
+ clone = valueIsList ? [] : (
2284
+ // Replicate if the plain object is an `Object` instance.
2285
+ value2 instanceof /** @type {any} */
2286
+ Object ? {} : /* @__PURE__ */ Object.create(null)
2287
+ );
2288
+ clones.set(
2289
+ value2,
2290
+ /** @type {Clone} */
2291
+ clone
2292
+ );
2293
+ }
2294
+ if (!recursed.has(value2)) {
2295
+ const pathPrefix = path2 ? `${path2}.` : "";
2296
+ const recursedDeeper = new Set(recursed).add(value2);
2297
+ if (valueIsList) {
2298
+ let index = 0;
2299
+ for (const item of value2) {
2300
+ const itemClone = recurse(
2301
+ item,
2302
+ pathPrefix + index++,
2303
+ recursedDeeper
2304
+ );
2305
+ if (uncloned) clone.push(itemClone);
2306
+ }
2307
+ } else
2308
+ for (const key in value2) {
2309
+ const propertyClone = recurse(
2310
+ value2[key],
2311
+ pathPrefix + key,
2312
+ recursedDeeper
2313
+ );
2314
+ if (uncloned)
2315
+ clone[key] = propertyClone;
2316
+ }
2317
+ }
2318
+ return clone;
2319
+ }
2320
+ return value2;
2321
+ }
2322
+ return {
2323
+ clone: recurse(value, path, /* @__PURE__ */ new Set()),
2324
+ files
2325
+ };
2326
+ }
2327
+
2328
+ // ../../node_modules/apollo-upload-client/formDataAppendFile.mjs
2329
+ function formDataAppendFile(formData, fieldName, file) {
2330
+ "name" in file ? formData.append(fieldName, file, file.name) : formData.append(fieldName, file);
2331
+ }
2332
+
2333
+ // ../../node_modules/apollo-upload-client/node_modules/extract-files/isExtractableFile.mjs
2334
+ function isExtractableFile(value) {
2335
+ return typeof File !== "undefined" && value instanceof File || typeof Blob !== "undefined" && value instanceof Blob;
2336
+ }
2337
+
2338
+ // ../../node_modules/apollo-upload-client/createUploadLink.mjs
2339
+ function createUploadLink({
2340
+ uri: fetchUri = "/graphql",
2341
+ useGETForQueries,
2342
+ isExtractableFile: customIsExtractableFile = isExtractableFile,
2343
+ FormData: CustomFormData,
2344
+ formDataAppendFile: customFormDataAppendFile = formDataAppendFile,
2345
+ print: print3 = defaultPrinter,
2346
+ fetch: customFetch,
2347
+ fetchOptions,
2348
+ credentials,
2349
+ headers,
2350
+ includeExtensions
2351
+ } = {}) {
2352
+ const linkConfig = {
2353
+ http: { includeExtensions },
2354
+ options: fetchOptions,
2355
+ credentials,
2356
+ headers
2357
+ };
2358
+ return new ApolloLink((operation) => {
2359
+ const context = (
2360
+ /**
2361
+ * @type {import("@apollo/client/core/types.js").DefaultContext & {
2362
+ * clientAwareness?: {
2363
+ * name?: string,
2364
+ * version?: string,
2365
+ * },
2366
+ * }}
2367
+ */
2368
+ operation.getContext()
2369
+ );
2370
+ const {
2371
+ // Apollo Studio client awareness `name` and `version` can be configured
2372
+ // via `ApolloClient` constructor options:
2373
+ // https://www.apollographql.com/docs/graphos/metrics/client-awareness/#setup
2374
+ clientAwareness: { name, version: version2 } = {},
2375
+ headers: headers2
2376
+ } = context;
2377
+ const contextConfig = {
2378
+ http: context.http,
2379
+ options: context.fetchOptions,
2380
+ credentials: context.credentials,
2381
+ headers: {
2382
+ // Client awareness headers can be overridden by context `headers`.
2383
+ ...name && { "apollographql-client-name": name },
2384
+ ...version2 && { "apollographql-client-version": version2 },
2385
+ ...headers2
2386
+ }
2387
+ };
2388
+ const { options, body } = selectHttpOptionsAndBodyInternal(
2389
+ operation,
2390
+ print3,
2391
+ fallbackHttpConfig,
2392
+ linkConfig,
2393
+ contextConfig
2394
+ );
2395
+ const { clone, files } = extractFiles(body, customIsExtractableFile, "");
2396
+ let uri = selectURI(operation, fetchUri);
2397
+ if (files.size) {
2398
+ if (options.headers)
2399
+ delete options.headers["content-type"];
2400
+ const RuntimeFormData = CustomFormData || FormData;
2401
+ const form = new RuntimeFormData();
2402
+ form.append("operations", serializeFetchParameter(clone, "Payload"));
2403
+ const map = {};
2404
+ let i = 0;
2405
+ files.forEach((paths) => {
2406
+ map[++i] = paths;
2407
+ });
2408
+ form.append("map", JSON.stringify(map));
2409
+ i = 0;
2410
+ files.forEach((_paths, file) => {
2411
+ customFormDataAppendFile(form, String(++i), file);
2412
+ });
2413
+ options.body = form;
2414
+ } else {
2415
+ if (useGETForQueries && // If the operation contains some mutations GET shouldn’t be used.
2416
+ !operation.query.definitions.some(
2417
+ (definition) => definition.kind === "OperationDefinition" && definition.operation === "mutation"
2418
+ ))
2419
+ options.method = "GET";
2420
+ if (options.method === "GET") {
2421
+ const { newURI, parseError } = rewriteURIForGET(uri, body);
2422
+ if (parseError)
2423
+ return new Observable((observer) => {
2424
+ observer.error(parseError);
2425
+ });
2426
+ uri = newURI;
2427
+ } else options.body = serializeFetchParameter(clone, "Payload");
2428
+ }
2429
+ const { controller } = createSignalIfSupported();
2430
+ if (typeof controller !== "boolean") {
2431
+ if (options.signal)
2432
+ options.signal.aborted ? (
2433
+ // Signal already aborted, so immediately abort.
2434
+ controller.abort()
2435
+ ) : (
2436
+ // Signal not already aborted, so setup a listener to abort when it
2437
+ // does.
2438
+ options.signal.addEventListener(
2439
+ "abort",
2440
+ () => {
2441
+ controller.abort();
2442
+ },
2443
+ {
2444
+ // Prevent a memory leak if the user configured abort controller
2445
+ // is long lasting, or controls multiple things.
2446
+ once: true
2447
+ }
2448
+ )
2449
+ );
2450
+ options.signal = controller.signal;
2451
+ }
2452
+ const runtimeFetch = customFetch || fetch;
2453
+ return new Observable((observer) => {
2454
+ let cleaningUp;
2455
+ runtimeFetch(uri, options).then((response) => {
2456
+ operation.setContext({ response });
2457
+ return response;
2458
+ }).then(parseAndCheckHttpResponse(operation)).then((result2) => {
2459
+ observer.next(result2);
2460
+ observer.complete();
2461
+ }).catch((error) => {
2462
+ if (!cleaningUp) {
2463
+ if (error.result && error.result.errors && error.result.data)
2464
+ observer.next(error.result);
2465
+ observer.error(error);
2466
+ }
2467
+ });
2468
+ return () => {
2469
+ cleaningUp = true;
2470
+ if (typeof controller !== "boolean") controller.abort();
2471
+ };
2472
+ });
2473
+ });
2474
+ }