@burdenoff/microfe-newsletter 2026.510.108

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 (218) hide show
  1. package/README.md +277 -0
  2. package/dist/dev/main.d.ts +2 -0
  3. package/dist/dev/main.d.ts.map +1 -0
  4. package/dist/generated/global-operations.d.ts +2170 -0
  5. package/dist/generated/global-operations.d.ts.map +1 -0
  6. package/dist/generated/global-operations.js +672 -0
  7. package/dist/generated/global-operations.js.map +1 -0
  8. package/dist/generated/global-types.d.ts +20716 -0
  9. package/dist/generated/global-types.d.ts.map +1 -0
  10. package/dist/generated/wspace-operations.d.ts +2 -0
  11. package/dist/generated/wspace-operations.d.ts.map +1 -0
  12. package/dist/generated/wspace-types.d.ts +53363 -0
  13. package/dist/generated/wspace-types.d.ts.map +1 -0
  14. package/dist/index.d.ts +6 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +8 -0
  17. package/dist/newsletter/AdminNewsletterRoot.d.ts +49 -0
  18. package/dist/newsletter/AdminNewsletterRoot.d.ts.map +1 -0
  19. package/dist/newsletter/AdminNewsletterRoot.js +227 -0
  20. package/dist/newsletter/AdminNewsletterRoot.js.map +1 -0
  21. package/dist/newsletter/AdminNewsletterRoutes.d.ts +36 -0
  22. package/dist/newsletter/AdminNewsletterRoutes.d.ts.map +1 -0
  23. package/dist/newsletter/AdminNewsletterRoutes.js +116 -0
  24. package/dist/newsletter/AdminNewsletterRoutes.js.map +1 -0
  25. package/dist/newsletter/NewsletterRoot.d.ts +11 -0
  26. package/dist/newsletter/NewsletterRoot.d.ts.map +1 -0
  27. package/dist/newsletter/NewsletterRoot.js +7 -0
  28. package/dist/newsletter/NewsletterRoot.js.map +1 -0
  29. package/dist/newsletter/NewsletterRoutes.d.ts +8 -0
  30. package/dist/newsletter/NewsletterRoutes.d.ts.map +1 -0
  31. package/dist/newsletter/UserNewsletterRoot.d.ts +38 -0
  32. package/dist/newsletter/UserNewsletterRoot.d.ts.map +1 -0
  33. package/dist/newsletter/UserNewsletterRoot.js +91 -0
  34. package/dist/newsletter/UserNewsletterRoot.js.map +1 -0
  35. package/dist/newsletter/UserNewsletterRoutes.d.ts +25 -0
  36. package/dist/newsletter/UserNewsletterRoutes.d.ts.map +1 -0
  37. package/dist/newsletter/UserNewsletterRoutes.js +56 -0
  38. package/dist/newsletter/UserNewsletterRoutes.js.map +1 -0
  39. package/dist/newsletter/components/index.d.ts +25 -0
  40. package/dist/newsletter/components/index.d.ts.map +1 -0
  41. package/dist/newsletter/components/ui.d.ts +6 -0
  42. package/dist/newsletter/components/ui.d.ts.map +1 -0
  43. package/dist/newsletter/constants/permissions.d.ts +44 -0
  44. package/dist/newsletter/constants/permissions.d.ts.map +1 -0
  45. package/dist/newsletter/constants/permissions.js +33 -0
  46. package/dist/newsletter/constants/permissions.js.map +1 -0
  47. package/dist/newsletter/hooks/index.d.ts +9 -0
  48. package/dist/newsletter/hooks/index.d.ts.map +1 -0
  49. package/dist/newsletter/hooks/index.js +5 -0
  50. package/dist/newsletter/hooks/useAnalyticsOperations.d.ts +98 -0
  51. package/dist/newsletter/hooks/useAnalyticsOperations.d.ts.map +1 -0
  52. package/dist/newsletter/hooks/useAnalyticsOperations.js +33 -0
  53. package/dist/newsletter/hooks/useAnalyticsOperations.js.map +1 -0
  54. package/dist/newsletter/hooks/useComplianceOperations.d.ts +185 -0
  55. package/dist/newsletter/hooks/useComplianceOperations.d.ts.map +1 -0
  56. package/dist/newsletter/hooks/useComplianceOperations.js +95 -0
  57. package/dist/newsletter/hooks/useComplianceOperations.js.map +1 -0
  58. package/dist/newsletter/hooks/useNewsletterOperations.d.ts +459 -0
  59. package/dist/newsletter/hooks/useNewsletterOperations.d.ts.map +1 -0
  60. package/dist/newsletter/hooks/useNewsletterOperations.js +397 -0
  61. package/dist/newsletter/hooks/useNewsletterOperations.js.map +1 -0
  62. package/dist/newsletter/hooks/useNewsletterPermissions.d.ts +41 -0
  63. package/dist/newsletter/hooks/useNewsletterPermissions.d.ts.map +1 -0
  64. package/dist/newsletter/hooks/useNewsletterPermissions.js +35 -0
  65. package/dist/newsletter/hooks/useNewsletterPermissions.js.map +1 -0
  66. package/dist/newsletter/hooks/useWaitlistOperations.d.ts +95 -0
  67. package/dist/newsletter/hooks/useWaitlistOperations.d.ts.map +1 -0
  68. package/dist/newsletter/hooks/useWaitlistOperations.js +46 -0
  69. package/dist/newsletter/hooks/useWaitlistOperations.js.map +1 -0
  70. package/dist/newsletter/index.d.ts +55 -0
  71. package/dist/newsletter/index.d.ts.map +1 -0
  72. package/dist/newsletter/index.js +7 -0
  73. package/dist/newsletter/pages/ABTestingPage.d.ts +17 -0
  74. package/dist/newsletter/pages/ABTestingPage.d.ts.map +1 -0
  75. package/dist/newsletter/pages/ABTestingPage.js +806 -0
  76. package/dist/newsletter/pages/ABTestingPage.js.map +1 -0
  77. package/dist/newsletter/pages/AnalyticsDashboardPage.d.ts +17 -0
  78. package/dist/newsletter/pages/AnalyticsDashboardPage.d.ts.map +1 -0
  79. package/dist/newsletter/pages/AnalyticsDashboardPage.js +452 -0
  80. package/dist/newsletter/pages/AnalyticsDashboardPage.js.map +1 -0
  81. package/dist/newsletter/pages/CampaignAnalyticsPage.d.ts +17 -0
  82. package/dist/newsletter/pages/CampaignAnalyticsPage.d.ts.map +1 -0
  83. package/dist/newsletter/pages/CampaignAnalyticsPage.js +498 -0
  84. package/dist/newsletter/pages/CampaignAnalyticsPage.js.map +1 -0
  85. package/dist/newsletter/pages/CampaignEditorPage.d.ts +16 -0
  86. package/dist/newsletter/pages/CampaignEditorPage.d.ts.map +1 -0
  87. package/dist/newsletter/pages/CampaignEditorPage.js +523 -0
  88. package/dist/newsletter/pages/CampaignEditorPage.js.map +1 -0
  89. package/dist/newsletter/pages/CampaignsListPage.d.ts +15 -0
  90. package/dist/newsletter/pages/CampaignsListPage.d.ts.map +1 -0
  91. package/dist/newsletter/pages/CampaignsListPage.js +302 -0
  92. package/dist/newsletter/pages/CampaignsListPage.js.map +1 -0
  93. package/dist/newsletter/pages/CompliancePage.d.ts +17 -0
  94. package/dist/newsletter/pages/CompliancePage.d.ts.map +1 -0
  95. package/dist/newsletter/pages/CompliancePage.js +1094 -0
  96. package/dist/newsletter/pages/CompliancePage.js.map +1 -0
  97. package/dist/newsletter/pages/SchedulerPage.d.ts +17 -0
  98. package/dist/newsletter/pages/SchedulerPage.d.ts.map +1 -0
  99. package/dist/newsletter/pages/SchedulerPage.js +503 -0
  100. package/dist/newsletter/pages/SchedulerPage.js.map +1 -0
  101. package/dist/newsletter/pages/SubscriberDetailPage.d.ts +17 -0
  102. package/dist/newsletter/pages/SubscriberDetailPage.d.ts.map +1 -0
  103. package/dist/newsletter/pages/SubscriberDetailPage.js +442 -0
  104. package/dist/newsletter/pages/SubscriberDetailPage.js.map +1 -0
  105. package/dist/newsletter/pages/SubscribersListPage.d.ts +17 -0
  106. package/dist/newsletter/pages/SubscribersListPage.d.ts.map +1 -0
  107. package/dist/newsletter/pages/SubscribersListPage.js +553 -0
  108. package/dist/newsletter/pages/SubscribersListPage.js.map +1 -0
  109. package/dist/newsletter/pages/TemplateEditorPage.d.ts +17 -0
  110. package/dist/newsletter/pages/TemplateEditorPage.d.ts.map +1 -0
  111. package/dist/newsletter/pages/TemplateEditorPage.js +451 -0
  112. package/dist/newsletter/pages/TemplateEditorPage.js.map +1 -0
  113. package/dist/newsletter/pages/TemplateLibraryPage.d.ts +17 -0
  114. package/dist/newsletter/pages/TemplateLibraryPage.d.ts.map +1 -0
  115. package/dist/newsletter/pages/TemplateLibraryPage.js +360 -0
  116. package/dist/newsletter/pages/TemplateLibraryPage.js.map +1 -0
  117. package/dist/newsletter/pages/WaitlistDetailPage.d.ts +13 -0
  118. package/dist/newsletter/pages/WaitlistDetailPage.d.ts.map +1 -0
  119. package/dist/newsletter/pages/WaitlistDetailPage.js +321 -0
  120. package/dist/newsletter/pages/WaitlistDetailPage.js.map +1 -0
  121. package/dist/newsletter/pages/WaitlistListPage.d.ts +15 -0
  122. package/dist/newsletter/pages/WaitlistListPage.d.ts.map +1 -0
  123. package/dist/newsletter/pages/WaitlistListPage.js +432 -0
  124. package/dist/newsletter/pages/WaitlistListPage.js.map +1 -0
  125. package/dist/newsletter/providers/NewsletterProvider.d.ts +54 -0
  126. package/dist/newsletter/providers/NewsletterProvider.d.ts.map +1 -0
  127. package/dist/newsletter/providers/NewsletterProvider.js +119 -0
  128. package/dist/newsletter/providers/NewsletterProvider.js.map +1 -0
  129. package/dist/newsletter/shared/hooks/useTr.d.ts +14 -0
  130. package/dist/newsletter/shared/hooks/useTr.d.ts.map +1 -0
  131. package/dist/newsletter/shared/hooks/useTr.js +14 -0
  132. package/dist/newsletter/shared/hooks/useTr.js.map +1 -0
  133. package/dist/newsletter/store/newsletterStore.d.ts +49 -0
  134. package/dist/newsletter/store/newsletterStore.d.ts.map +1 -0
  135. package/dist/newsletter/store/newsletterStore.js +109 -0
  136. package/dist/newsletter/store/newsletterStore.js.map +1 -0
  137. package/dist/newsletter/types/index.d.ts +509 -0
  138. package/dist/newsletter/types/index.d.ts.map +1 -0
  139. package/dist/newsletter/utils/cn.d.ts +8 -0
  140. package/dist/newsletter/utils/cn.d.ts.map +1 -0
  141. package/dist/newsletter/utils/formatting.d.ts +29 -0
  142. package/dist/newsletter/utils/formatting.d.ts.map +1 -0
  143. package/dist/newsletter/utils/index.d.ts +6 -0
  144. package/dist/newsletter/utils/index.d.ts.map +1 -0
  145. package/dist/newsletter/utils/validation.d.ts +26 -0
  146. package/dist/newsletter/utils/validation.d.ts.map +1 -0
  147. package/dist/node_modules/@apollo/client/errors/index.js +22 -0
  148. package/dist/node_modules/@apollo/client/errors/index.js.map +1 -0
  149. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +75 -0
  150. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -0
  151. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +38 -0
  152. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -0
  153. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +20 -0
  154. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -0
  155. package/dist/node_modules/@apollo/client/link/utils/transformOperation.js +15 -0
  156. package/dist/node_modules/@apollo/client/link/utils/transformOperation.js.map +1 -0
  157. package/dist/node_modules/@apollo/client/link/utils/validateOperation.js +19 -0
  158. package/dist/node_modules/@apollo/client/link/utils/validateOperation.js.map +1 -0
  159. package/dist/node_modules/@apollo/client/node_modules/tslib/tslib.es6.js +30 -0
  160. package/dist/node_modules/@apollo/client/node_modules/tslib/tslib.es6.js.map +1 -0
  161. package/dist/node_modules/@apollo/client/utilities/caching/caches.js +19 -0
  162. package/dist/node_modules/@apollo/client/utilities/caching/caches.js.map +1 -0
  163. package/dist/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js +27 -0
  164. package/dist/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js.map +1 -0
  165. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +7 -0
  166. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -0
  167. package/dist/node_modules/@apollo/client/utilities/common/makeUniqueId.js +10 -0
  168. package/dist/node_modules/@apollo/client/utilities/common/makeUniqueId.js.map +1 -0
  169. package/dist/node_modules/@apollo/client/utilities/common/objects.js +8 -0
  170. package/dist/node_modules/@apollo/client/utilities/common/objects.js.map +1 -0
  171. package/dist/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js +13 -0
  172. package/dist/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js.map +1 -0
  173. package/dist/node_modules/@apollo/client/utilities/deprecation/index.js +15 -0
  174. package/dist/node_modules/@apollo/client/utilities/deprecation/index.js.map +1 -0
  175. package/dist/node_modules/@apollo/client/utilities/globals/global.js +17 -0
  176. package/dist/node_modules/@apollo/client/utilities/globals/global.js.map +1 -0
  177. package/dist/node_modules/@apollo/client/utilities/globals/invariantWrappers.js +51 -0
  178. package/dist/node_modules/@apollo/client/utilities/globals/invariantWrappers.js.map +1 -0
  179. package/dist/node_modules/@apollo/client/utilities/globals/maybe.js +10 -0
  180. package/dist/node_modules/@apollo/client/utilities/globals/maybe.js.map +1 -0
  181. package/dist/node_modules/@apollo/client/utilities/graphql/getFromAST.js +36 -0
  182. package/dist/node_modules/@apollo/client/utilities/graphql/getFromAST.js.map +1 -0
  183. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +18 -0
  184. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -0
  185. package/dist/node_modules/@apollo/client/version.js +6 -0
  186. package/dist/node_modules/@apollo/client/version.js.map +1 -0
  187. package/dist/node_modules/@wry/caches/lib/weak.js +67 -0
  188. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -0
  189. package/dist/node_modules/@wry/context/lib/index.js +6 -0
  190. package/dist/node_modules/@wry/context/lib/index.js.map +1 -0
  191. package/dist/node_modules/@wry/context/lib/slot.js +79 -0
  192. package/dist/node_modules/@wry/context/lib/slot.js.map +1 -0
  193. package/dist/node_modules/@wry/trie/lib/index.js +5 -0
  194. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -0
  195. package/dist/node_modules/graphql-ws/lib/client.js +320 -0
  196. package/dist/node_modules/graphql-ws/lib/client.js.map +1 -0
  197. package/dist/node_modules/graphql-ws/lib/common.js +58 -0
  198. package/dist/node_modules/graphql-ws/lib/common.js.map +1 -0
  199. package/dist/node_modules/graphql-ws/lib/utils.js +17 -0
  200. package/dist/node_modules/graphql-ws/lib/utils.js.map +1 -0
  201. package/dist/node_modules/optimism/lib/context.js +8 -0
  202. package/dist/node_modules/optimism/lib/context.js.map +1 -0
  203. package/dist/node_modules/optimism/lib/dep.js +2 -0
  204. package/dist/node_modules/optimism/lib/entry.js +124 -0
  205. package/dist/node_modules/optimism/lib/entry.js.map +1 -0
  206. package/dist/node_modules/optimism/lib/helpers.js +13 -0
  207. package/dist/node_modules/optimism/lib/helpers.js.map +1 -0
  208. package/dist/node_modules/optimism/lib/index.js +5 -0
  209. package/dist/node_modules/ts-invariant/lib/invariant.js +35 -0
  210. package/dist/node_modules/ts-invariant/lib/invariant.js.map +1 -0
  211. package/dist/node_modules/ts-invariant/node_modules/tslib/tslib.es6.js +20 -0
  212. package/dist/node_modules/ts-invariant/node_modules/tslib/tslib.es6.js.map +1 -0
  213. package/dist/node_modules/zen-observable-ts/module.js +402 -0
  214. package/dist/node_modules/zen-observable-ts/module.js.map +1 -0
  215. package/dist/utils/nativeBridge.d.ts +3 -0
  216. package/dist/utils/nativeBridge.d.ts.map +1 -0
  217. package/dist/utils/nativeBridge.js +2 -0
  218. package/package.json +106 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFromAST.js","names":[],"sources":["../../../../../../node_modules/@apollo/client/utilities/graphql/getFromAST.js"],"sourcesContent":["import { invariant, newInvariantError } from \"../globals/index.js\";\nimport { valueToObjectRepresentation } from \"./storeUtils.js\";\n// Checks the document for errors and throws an exception if there is an error.\nexport function checkDocument(doc) {\n invariant(doc && doc.kind === \"Document\", 115);\n var operations = doc.definitions\n .filter(function (d) { return d.kind !== \"FragmentDefinition\"; })\n .map(function (definition) {\n if (definition.kind !== \"OperationDefinition\") {\n throw newInvariantError(116, definition.kind);\n }\n return definition;\n });\n invariant(operations.length <= 1, 117, operations.length);\n return doc;\n}\nexport function getOperationDefinition(doc) {\n checkDocument(doc);\n return doc.definitions.filter(function (definition) {\n return definition.kind === \"OperationDefinition\";\n })[0];\n}\nexport function getOperationName(doc) {\n return (doc.definitions\n .filter(function (definition) {\n return definition.kind === \"OperationDefinition\" && !!definition.name;\n })\n .map(function (x) { return x.name.value; })[0] || null);\n}\n// Returns the FragmentDefinitions from a particular document as an array\nexport function getFragmentDefinitions(doc) {\n return doc.definitions.filter(function (definition) {\n return definition.kind === \"FragmentDefinition\";\n });\n}\nexport function getQueryDefinition(doc) {\n var queryDef = getOperationDefinition(doc);\n invariant(queryDef && queryDef.operation === \"query\", 118);\n return queryDef;\n}\nexport function getFragmentDefinition(doc) {\n invariant(doc.kind === \"Document\", 119);\n invariant(doc.definitions.length <= 1, 120);\n var fragmentDef = doc.definitions[0];\n invariant(fragmentDef.kind === \"FragmentDefinition\", 121);\n return fragmentDef;\n}\n/**\n * Returns the first operation definition found in this document.\n * If no operation definition is found, the first fragment definition will be returned.\n * If no definitions are found, an error will be thrown.\n */\nexport function getMainDefinition(queryDoc) {\n checkDocument(queryDoc);\n var fragmentDefinition;\n for (var _i = 0, _a = queryDoc.definitions; _i < _a.length; _i++) {\n var definition = _a[_i];\n if (definition.kind === \"OperationDefinition\") {\n var operation = definition.operation;\n if (operation === \"query\" ||\n operation === \"mutation\" ||\n operation === \"subscription\") {\n return definition;\n }\n }\n if (definition.kind === \"FragmentDefinition\" && !fragmentDefinition) {\n // we do this because we want to allow multiple fragment definitions\n // to precede an operation definition.\n fragmentDefinition = definition;\n }\n }\n if (fragmentDefinition) {\n return fragmentDefinition;\n }\n throw newInvariantError(122);\n}\nexport function getDefaultValues(definition) {\n var defaultValues = Object.create(null);\n var defs = definition && definition.variableDefinitions;\n if (defs && defs.length) {\n defs.forEach(function (def) {\n if (def.defaultValue) {\n valueToObjectRepresentation(defaultValues, def.variable.name, def.defaultValue);\n }\n });\n }\n return defaultValues;\n}\n//# sourceMappingURL=getFromAST.js.map"],"x_google_ignoreList":[0],"mappings":";;AAGA,SAAgB,EAAc,GAAK;AAC/B,GAAU,KAAO,EAAI,SAAS,YAAY,IAAI;CAC9C,IAAI,IAAa,EAAI,YAChB,OAAO,SAAU,GAAG;AAAE,SAAO,EAAE,SAAS;GAAwB,CAChE,IAAI,SAAU,GAAY;AAC3B,MAAI,EAAW,SAAS,sBACpB,OAAM,EAAkB,KAAK,EAAW,KAAK;AAEjD,SAAO;GACT;AAEF,QADA,EAAU,EAAW,UAAU,GAAG,KAAK,EAAW,OAAO,EAClD;;AAQX,SAAgB,EAAiB,GAAK;AAClC,QAAQ,EAAI,YACP,OAAO,SAAU,GAAY;AAC9B,SAAO,EAAW,SAAS,yBAAyB,CAAC,CAAC,EAAW;GACnE,CACG,IAAI,SAAU,GAAG;AAAE,SAAO,EAAE,KAAK;GAAS,CAAC,MAAM;;AAyB1D,SAAgB,EAAkB,GAAU;AACxC,GAAc,EAAS;AAEvB,MAAK,IADD,GACK,IAAK,GAAG,IAAK,EAAS,aAAa,IAAK,EAAG,QAAQ,KAAM;EAC9D,IAAI,IAAa,EAAG;AACpB,MAAI,EAAW,SAAS,uBAAuB;GAC3C,IAAI,IAAY,EAAW;AAC3B,OAAI,MAAc,WACd,MAAc,cACd,MAAc,eACd,QAAO;;AAGf,EAAI,EAAW,SAAS,wBAAwB,CAAC,MAG7C,IAAqB;;AAG7B,KAAI,EACA,QAAO;AAEX,OAAM,EAAkB,IAAI"}
@@ -0,0 +1,18 @@
1
+ import { AutoCleanedWeakCache as e } from "../caching/caches.js";
2
+ import { cacheSizes as t } from "../caching/sizes.js";
3
+ import { registerGlobalCache as n } from "../caching/getMemoryInternals.js";
4
+ import { print as r } from "graphql";
5
+ //#region node_modules/@apollo/client/utilities/graphql/print.js
6
+ var i, a = Object.assign(function(e) {
7
+ var t = i.get(e);
8
+ return t || (t = r(e), i.set(e, t)), t;
9
+ }, { reset: function() {
10
+ i = new e(t.print || 2e3);
11
+ } });
12
+ a.reset(), globalThis.__DEV__ !== !1 && n("print", function() {
13
+ return i ? i.size : 0;
14
+ });
15
+ //#endregion
16
+ export { a as print };
17
+
18
+ //# sourceMappingURL=print.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print.js","names":["print","origPrint"],"sources":["../../../../../../node_modules/@apollo/client/utilities/graphql/print.js"],"sourcesContent":["import { print as origPrint } from \"graphql\";\nimport { AutoCleanedWeakCache, cacheSizes, } from \"../caching/index.js\";\nimport { registerGlobalCache } from \"../caching/getMemoryInternals.js\";\nvar printCache;\nexport var print = Object.assign(function (ast) {\n var result = printCache.get(ast);\n if (!result) {\n result = origPrint(ast);\n printCache.set(ast, result);\n }\n return result;\n}, {\n reset: function () {\n printCache = new AutoCleanedWeakCache(cacheSizes.print || 2000 /* defaultCacheSizes.print */);\n },\n});\nprint.reset();\nif (globalThis.__DEV__ !== false) {\n registerGlobalCache(\"print\", function () { return (printCache ? printCache.size : 0); });\n}\n//# sourceMappingURL=print.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AAGA,IAAI,GACOA,IAAQ,OAAO,OAAO,SAAU,GAAK;CAC5C,IAAI,IAAS,EAAW,IAAI,EAAI;AAKhC,QAJK,MACD,IAASC,EAAU,EAAI,EACvB,EAAW,IAAI,GAAK,EAAO,GAExB;GACR,EACC,OAAO,WAAY;AACf,KAAa,IAAI,EAAqB,EAAW,SAAS,IAAmC;GAEpG,CAAC;AACFD,EAAM,OAAO,EACT,WAAW,YAAY,MACvB,EAAoB,SAAS,WAAY;AAAE,QAAQ,IAAa,EAAW,OAAO;EAAM"}
@@ -0,0 +1,6 @@
1
+ //#region node_modules/@apollo/client/version.js
2
+ var e = "3.14.1";
3
+ //#endregion
4
+ export { e as version };
5
+
6
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","names":[],"sources":["../../../../node_modules/@apollo/client/version.js"],"sourcesContent":["export var version = \"3.14.1\";\n//# sourceMappingURL=version.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAW,IAAU"}
@@ -0,0 +1,67 @@
1
+ //#region node_modules/@wry/caches/lib/weak.js
2
+ function e() {}
3
+ var t = e, n = typeof WeakRef < "u" ? WeakRef : function(e) {
4
+ return { deref: () => e };
5
+ }, r = typeof WeakMap < "u" ? WeakMap : Map, i = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
6
+ return {
7
+ register: e,
8
+ unregister: e
9
+ };
10
+ }, a = 10024, o = class {
11
+ constructor(e = Infinity, o = t) {
12
+ this.max = e, this.dispose = o, this.map = new r(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
13
+ let e = this.unfinalizedNodes.values();
14
+ for (let t = 0; t < a; t++) {
15
+ let t = e.next().value;
16
+ if (!t) break;
17
+ this.unfinalizedNodes.delete(t);
18
+ let r = t.key;
19
+ delete t.key, t.keyRef = new n(r), this.registry.register(r, t, t);
20
+ }
21
+ this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
22
+ }, this.registry = new i(this.deleteNode.bind(this));
23
+ }
24
+ has(e) {
25
+ return this.map.has(e);
26
+ }
27
+ get(e) {
28
+ let t = this.getNode(e);
29
+ return t && t.value;
30
+ }
31
+ getNode(e) {
32
+ let t = this.map.get(e);
33
+ if (t && t !== this.newest) {
34
+ let { older: e, newer: n } = t;
35
+ n && (n.older = e), e && (e.newer = n), t.older = this.newest, t.older.newer = t, t.newer = null, this.newest = t, t === this.oldest && (this.oldest = n);
36
+ }
37
+ return t;
38
+ }
39
+ set(e, t) {
40
+ let n = this.getNode(e);
41
+ return n ? n.value = t : (n = {
42
+ key: e,
43
+ value: t,
44
+ newer: null,
45
+ older: this.newest
46
+ }, this.newest && (this.newest.newer = n), this.newest = n, this.oldest = this.oldest || n, this.scheduleFinalization(n), this.map.set(e, n), this.size++, n.value);
47
+ }
48
+ clean() {
49
+ for (; this.oldest && this.size > this.max;) this.deleteNode(this.oldest);
50
+ }
51
+ deleteNode(e) {
52
+ e === this.newest && (this.newest = e.older), e === this.oldest && (this.oldest = e.newer), e.newer && (e.newer.older = e.older), e.older && (e.older.newer = e.newer), this.size--;
53
+ let t = e.key || e.keyRef && e.keyRef.deref();
54
+ this.dispose(e.value, t), e.keyRef ? this.registry.unregister(e) : this.unfinalizedNodes.delete(e), t && this.map.delete(t);
55
+ }
56
+ delete(e) {
57
+ let t = this.map.get(e);
58
+ return t ? (this.deleteNode(t), !0) : !1;
59
+ }
60
+ scheduleFinalization(e) {
61
+ this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
62
+ }
63
+ };
64
+ //#endregion
65
+ export { o as WeakCache };
66
+
67
+ //# sourceMappingURL=weak.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weak.js","names":[],"sources":["../../../../../node_modules/@wry/caches/lib/weak.js"],"sourcesContent":["function noop() { }\nconst defaultDispose = noop;\nconst _WeakRef = typeof WeakRef !== \"undefined\"\n ? WeakRef\n : function (value) {\n return { deref: () => value };\n };\nconst _WeakMap = typeof WeakMap !== \"undefined\" ? WeakMap : Map;\nconst _FinalizationRegistry = typeof FinalizationRegistry !== \"undefined\"\n ? FinalizationRegistry\n : function () {\n return {\n register: noop,\n unregister: noop,\n };\n };\nconst finalizationBatchSize = 10024;\nexport class WeakCache {\n constructor(max = Infinity, dispose = defaultDispose) {\n this.max = max;\n this.dispose = dispose;\n this.map = new _WeakMap();\n this.newest = null;\n this.oldest = null;\n this.unfinalizedNodes = new Set();\n this.finalizationScheduled = false;\n this.size = 0;\n this.finalize = () => {\n const iterator = this.unfinalizedNodes.values();\n for (let i = 0; i < finalizationBatchSize; i++) {\n const node = iterator.next().value;\n if (!node)\n break;\n this.unfinalizedNodes.delete(node);\n const key = node.key;\n delete node.key;\n node.keyRef = new _WeakRef(key);\n this.registry.register(key, node, node);\n }\n if (this.unfinalizedNodes.size > 0) {\n queueMicrotask(this.finalize);\n }\n else {\n this.finalizationScheduled = false;\n }\n };\n this.registry = new _FinalizationRegistry(this.deleteNode.bind(this));\n }\n has(key) {\n return this.map.has(key);\n }\n get(key) {\n const node = this.getNode(key);\n return node && node.value;\n }\n getNode(key) {\n const node = this.map.get(key);\n if (node && node !== this.newest) {\n const { older, newer } = node;\n if (newer) {\n newer.older = older;\n }\n if (older) {\n older.newer = newer;\n }\n node.older = this.newest;\n node.older.newer = node;\n node.newer = null;\n this.newest = node;\n if (node === this.oldest) {\n this.oldest = newer;\n }\n }\n return node;\n }\n set(key, value) {\n let node = this.getNode(key);\n if (node) {\n return (node.value = value);\n }\n node = {\n key,\n value,\n newer: null,\n older: this.newest,\n };\n if (this.newest) {\n this.newest.newer = node;\n }\n this.newest = node;\n this.oldest = this.oldest || node;\n this.scheduleFinalization(node);\n this.map.set(key, node);\n this.size++;\n return node.value;\n }\n clean() {\n while (this.oldest && this.size > this.max) {\n this.deleteNode(this.oldest);\n }\n }\n deleteNode(node) {\n if (node === this.newest) {\n this.newest = node.older;\n }\n if (node === this.oldest) {\n this.oldest = node.newer;\n }\n if (node.newer) {\n node.newer.older = node.older;\n }\n if (node.older) {\n node.older.newer = node.newer;\n }\n this.size--;\n const key = node.key || (node.keyRef && node.keyRef.deref());\n this.dispose(node.value, key);\n if (!node.keyRef) {\n this.unfinalizedNodes.delete(node);\n }\n else {\n this.registry.unregister(node);\n }\n if (key)\n this.map.delete(key);\n }\n delete(key) {\n const node = this.map.get(key);\n if (node) {\n this.deleteNode(node);\n return true;\n }\n return false;\n }\n scheduleFinalization(node) {\n this.unfinalizedNodes.add(node);\n if (!this.finalizationScheduled) {\n this.finalizationScheduled = true;\n queueMicrotask(this.finalize);\n }\n }\n}\n//# sourceMappingURL=weak.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,IAAO;AAChB,IAAM,IAAiB,GACjB,IAAW,OAAO,UAAY,MAC9B,UACA,SAAU,GAAO;AACf,QAAO,EAAE,aAAa,GAAO;GAE/B,IAAW,OAAO,UAAY,MAAc,UAAU,KACtD,IAAwB,OAAO,uBAAyB,MACxD,uBACA,WAAY;AACV,QAAO;EACH,UAAU;EACV,YAAY;EACf;GAEH,IAAwB,OACjB,IAAb,MAAuB;CACnB,YAAY,IAAM,UAAU,IAAU,GAAgB;AA4BlD,EA3BA,KAAK,MAAM,GACX,KAAK,UAAU,GACf,KAAK,MAAM,IAAI,GAAU,EACzB,KAAK,SAAS,MACd,KAAK,SAAS,MACd,KAAK,mCAAmB,IAAI,KAAK,EACjC,KAAK,wBAAwB,IAC7B,KAAK,OAAO,GACZ,KAAK,iBAAiB;GAClB,IAAM,IAAW,KAAK,iBAAiB,QAAQ;AAC/C,QAAK,IAAI,IAAI,GAAG,IAAI,GAAuB,KAAK;IAC5C,IAAM,IAAO,EAAS,MAAM,CAAC;AAC7B,QAAI,CAAC,EACD;AACJ,SAAK,iBAAiB,OAAO,EAAK;IAClC,IAAM,IAAM,EAAK;AAGjB,IAFA,OAAO,EAAK,KACZ,EAAK,SAAS,IAAI,EAAS,EAAI,EAC/B,KAAK,SAAS,SAAS,GAAK,GAAM,EAAK;;AAE3C,GAAI,KAAK,iBAAiB,OAAO,IAC7B,eAAe,KAAK,SAAS,GAG7B,KAAK,wBAAwB;KAGrC,KAAK,WAAW,IAAI,EAAsB,KAAK,WAAW,KAAK,KAAK,CAAC;;CAEzE,IAAI,GAAK;AACL,SAAO,KAAK,IAAI,IAAI,EAAI;;CAE5B,IAAI,GAAK;EACL,IAAM,IAAO,KAAK,QAAQ,EAAI;AAC9B,SAAO,KAAQ,EAAK;;CAExB,QAAQ,GAAK;EACT,IAAM,IAAO,KAAK,IAAI,IAAI,EAAI;AAC9B,MAAI,KAAQ,MAAS,KAAK,QAAQ;GAC9B,IAAM,EAAE,UAAO,aAAU;AAWzB,GAVI,MACA,EAAM,QAAQ,IAEd,MACA,EAAM,QAAQ,IAElB,EAAK,QAAQ,KAAK,QAClB,EAAK,MAAM,QAAQ,GACnB,EAAK,QAAQ,MACb,KAAK,SAAS,GACV,MAAS,KAAK,WACd,KAAK,SAAS;;AAGtB,SAAO;;CAEX,IAAI,GAAK,GAAO;EACZ,IAAI,IAAO,KAAK,QAAQ,EAAI;AAkB5B,SAjBI,IACQ,EAAK,QAAQ,KAEzB,IAAO;GACH;GACA;GACA,OAAO;GACP,OAAO,KAAK;GACf,EACG,KAAK,WACL,KAAK,OAAO,QAAQ,IAExB,KAAK,SAAS,GACd,KAAK,SAAS,KAAK,UAAU,GAC7B,KAAK,qBAAqB,EAAK,EAC/B,KAAK,IAAI,IAAI,GAAK,EAAK,EACvB,KAAK,QACE,EAAK;;CAEhB,QAAQ;AACJ,SAAO,KAAK,UAAU,KAAK,OAAO,KAAK,KACnC,MAAK,WAAW,KAAK,OAAO;;CAGpC,WAAW,GAAM;AAab,EAZI,MAAS,KAAK,WACd,KAAK,SAAS,EAAK,QAEnB,MAAS,KAAK,WACd,KAAK,SAAS,EAAK,QAEnB,EAAK,UACL,EAAK,MAAM,QAAQ,EAAK,QAExB,EAAK,UACL,EAAK,MAAM,QAAQ,EAAK,QAE5B,KAAK;EACL,IAAM,IAAM,EAAK,OAAQ,EAAK,UAAU,EAAK,OAAO,OAAO;AAQ3D,EAPA,KAAK,QAAQ,EAAK,OAAO,EAAI,EACxB,EAAK,SAIN,KAAK,SAAS,WAAW,EAAK,GAH9B,KAAK,iBAAiB,OAAO,EAAK,EAKlC,KACA,KAAK,IAAI,OAAO,EAAI;;CAE5B,OAAO,GAAK;EACR,IAAM,IAAO,KAAK,IAAI,IAAI,EAAI;AAK9B,SAJI,KACA,KAAK,WAAW,EAAK,EACd,MAEJ;;CAEX,qBAAqB,GAAM;AAEvB,EADA,KAAK,iBAAiB,IAAI,EAAK,EAC1B,KAAK,0BACN,KAAK,wBAAwB,IAC7B,eAAe,KAAK,SAAS"}
@@ -0,0 +1,6 @@
1
+ import { Slot as e } from "./slot.js";
2
+ //#region node_modules/@wry/context/lib/index.js
3
+ var { bind: t, noContext: n } = e;
4
+ //#endregion
5
+
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@wry/context/lib/index.js"],"sourcesContent":["import { Slot } from \"./slot.js\";\nexport { Slot };\nexport const { bind, noContext } = Slot;\n// Like global.setTimeout, except the callback runs with captured context.\nexport { setTimeoutWithContext as setTimeout };\nfunction setTimeoutWithContext(callback, delay) {\n return setTimeout(bind(callback), delay);\n}\n// Turn any generator function into an async function (using yield instead\n// of await), with context automatically preserved across yields.\nexport function asyncFromGen(genFn) {\n return function () {\n const gen = genFn.apply(this, arguments);\n const boundNext = bind(gen.next);\n const boundThrow = bind(gen.throw);\n return new Promise((resolve, reject) => {\n function invoke(method, argument) {\n try {\n var result = method.call(gen, argument);\n }\n catch (error) {\n return reject(error);\n }\n const next = result.done ? resolve : invokeNext;\n if (isPromiseLike(result.value)) {\n result.value.then(next, result.done ? reject : invokeThrow);\n }\n else {\n next(result.value);\n }\n }\n const invokeNext = (value) => invoke(boundNext, value);\n const invokeThrow = (error) => invoke(boundThrow, error);\n invokeNext();\n });\n };\n}\nfunction isPromiseLike(value) {\n return value && typeof value.then === \"function\";\n}\n// If you use the fibers npm package to implement coroutines in Node.js,\n// you should call this function at least once to ensure context management\n// remains coherent across any yields.\nconst wrappedFibers = [];\nexport function wrapYieldingFiberMethods(Fiber) {\n // There can be only one implementation of Fiber per process, so this array\n // should never grow longer than one element.\n if (wrappedFibers.indexOf(Fiber) < 0) {\n const wrap = (obj, method) => {\n const fn = obj[method];\n obj[method] = function () {\n return noContext(fn, arguments, this);\n };\n };\n // These methods can yield, according to\n // https://github.com/laverdet/node-fibers/blob/ddebed9b8ae3883e57f822e2108e6943e5c8d2a8/fibers.js#L97-L100\n wrap(Fiber, \"yield\");\n wrap(Fiber.prototype, \"run\");\n wrap(Fiber.prototype, \"throwInto\");\n wrappedFibers.push(Fiber);\n }\n return Fiber;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAa,EAAE,SAAM,iBAAc"}
@@ -0,0 +1,79 @@
1
+ //#region node_modules/@wry/context/lib/slot.js
2
+ var e = null, t = {}, n = 1, r = () => class {
3
+ constructor() {
4
+ this.id = [
5
+ "slot",
6
+ n++,
7
+ Date.now(),
8
+ Math.random().toString(36).slice(2)
9
+ ].join(":");
10
+ }
11
+ hasValue() {
12
+ for (let n = e; n; n = n.parent) if (this.id in n.slots) {
13
+ let r = n.slots[this.id];
14
+ if (r === t) break;
15
+ return n !== e && (e.slots[this.id] = r), !0;
16
+ }
17
+ return e && (e.slots[this.id] = t), !1;
18
+ }
19
+ getValue() {
20
+ if (this.hasValue()) return e.slots[this.id];
21
+ }
22
+ withValue(t, n, r, i) {
23
+ let a = {
24
+ __proto__: null,
25
+ [this.id]: t
26
+ }, o = e;
27
+ e = {
28
+ parent: o,
29
+ slots: a
30
+ };
31
+ try {
32
+ return n.apply(i, r);
33
+ } finally {
34
+ e = o;
35
+ }
36
+ }
37
+ static bind(t) {
38
+ let n = e;
39
+ return function() {
40
+ let r = e;
41
+ try {
42
+ return e = n, t.apply(this, arguments);
43
+ } finally {
44
+ e = r;
45
+ }
46
+ };
47
+ }
48
+ static noContext(t, n, r) {
49
+ if (e) {
50
+ let i = e;
51
+ try {
52
+ return e = null, t.apply(r, n);
53
+ } finally {
54
+ e = i;
55
+ }
56
+ } else return t.apply(r, n);
57
+ }
58
+ };
59
+ function i(e) {
60
+ try {
61
+ return e();
62
+ } catch {}
63
+ }
64
+ var a = "@wry/context:Slot", o = i(() => globalThis) || i(() => global) || Object.create(null), s = o[a] || Array[a] || (function(e) {
65
+ try {
66
+ Object.defineProperty(o, a, {
67
+ value: e,
68
+ enumerable: !1,
69
+ writable: !1,
70
+ configurable: !0
71
+ });
72
+ } finally {
73
+ return e;
74
+ }
75
+ })(r());
76
+ //#endregion
77
+ export { s as Slot };
78
+
79
+ //# sourceMappingURL=slot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot.js","names":[],"sources":["../../../../../node_modules/@wry/context/lib/slot.js"],"sourcesContent":["// This currentContext variable will only be used if the makeSlotClass\n// function is called, which happens only if this is the first copy of the\n// @wry/context package to be imported.\nlet currentContext = null;\n// This unique internal object is used to denote the absence of a value\n// for a given Slot, and is never exposed to outside code.\nconst MISSING_VALUE = {};\nlet idCounter = 1;\n// Although we can't do anything about the cost of duplicated code from\n// accidentally bundling multiple copies of the @wry/context package, we can\n// avoid creating the Slot class more than once using makeSlotClass.\nconst makeSlotClass = () => class Slot {\n constructor() {\n // If you have a Slot object, you can find out its slot.id, but you cannot\n // guess the slot.id of a Slot you don't have access to, thanks to the\n // randomized suffix.\n this.id = [\n \"slot\",\n idCounter++,\n Date.now(),\n Math.random().toString(36).slice(2),\n ].join(\":\");\n }\n hasValue() {\n for (let context = currentContext; context; context = context.parent) {\n // We use the Slot object iself as a key to its value, which means the\n // value cannot be obtained without a reference to the Slot object.\n if (this.id in context.slots) {\n const value = context.slots[this.id];\n if (value === MISSING_VALUE)\n break;\n if (context !== currentContext) {\n // Cache the value in currentContext.slots so the next lookup will\n // be faster. This caching is safe because the tree of contexts and\n // the values of the slots are logically immutable.\n currentContext.slots[this.id] = value;\n }\n return true;\n }\n }\n if (currentContext) {\n // If a value was not found for this Slot, it's never going to be found\n // no matter how many times we look it up, so we might as well cache\n // the absence of the value, too.\n currentContext.slots[this.id] = MISSING_VALUE;\n }\n return false;\n }\n getValue() {\n if (this.hasValue()) {\n return currentContext.slots[this.id];\n }\n }\n withValue(value, callback, \n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n const slots = {\n __proto__: null,\n [this.id]: value,\n };\n const parent = currentContext;\n currentContext = { parent, slots };\n try {\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n }\n finally {\n currentContext = parent;\n }\n }\n // Capture the current context and wrap a callback function so that it\n // reestablishes the captured context when called.\n static bind(callback) {\n const context = currentContext;\n return function () {\n const saved = currentContext;\n try {\n currentContext = context;\n return callback.apply(this, arguments);\n }\n finally {\n currentContext = saved;\n }\n };\n }\n // Immediately run a callback function without any captured context.\n static noContext(callback, \n // Given the prevalence of arrow functions, specifying arguments is likely\n // to be much more common than specifying `this`, hence this ordering:\n args, thisArg) {\n if (currentContext) {\n const saved = currentContext;\n try {\n currentContext = null;\n // Function.prototype.apply allows the arguments array argument to be\n // omitted or undefined, so args! is fine here.\n return callback.apply(thisArg, args);\n }\n finally {\n currentContext = saved;\n }\n }\n else {\n return callback.apply(thisArg, args);\n }\n }\n};\nfunction maybe(fn) {\n try {\n return fn();\n }\n catch (ignored) { }\n}\n// We store a single global implementation of the Slot class as a permanent\n// non-enumerable property of the globalThis object. This obfuscation does\n// nothing to prevent access to the Slot class, but at least it ensures the\n// implementation (i.e. currentContext) cannot be tampered with, and all copies\n// of the @wry/context package (hopefully just one) will share the same Slot\n// implementation. Since the first copy of the @wry/context package to be\n// imported wins, this technique imposes a steep cost for any future breaking\n// changes to the Slot class.\nconst globalKey = \"@wry/context:Slot\";\nconst host = \n// Prefer globalThis when available.\n// https://github.com/benjamn/wryware/issues/347\nmaybe(() => globalThis) ||\n // Fall back to global, which works in Node.js and may be converted by some\n // bundlers to the appropriate identifier (window, self, ...) depending on the\n // bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224\n maybe(() => global) ||\n // Otherwise, use a dummy host that's local to this module. We used to fall\n // back to using the Array constructor as a namespace, but that was flagged in\n // https://github.com/benjamn/wryware/issues/347, and can be avoided.\n Object.create(null);\n// Whichever globalHost we're using, make TypeScript happy about the additional\n// globalKey property.\nconst globalHost = host;\nexport const Slot = globalHost[globalKey] ||\n // Earlier versions of this package stored the globalKey property on the Array\n // constructor, so we check there as well, to prevent Slot class duplication.\n Array[globalKey] ||\n (function (Slot) {\n try {\n Object.defineProperty(globalHost, globalKey, {\n value: Slot,\n enumerable: false,\n writable: false,\n // When it was possible for globalHost to be the Array constructor (a\n // legacy Slot dedup strategy), it was important for the property to be\n // configurable:true so it could be deleted. That does not seem to be as\n // important when globalHost is the global object, but I don't want to\n // cause similar problems again, and configurable:true seems safest.\n // https://github.com/endojs/endo/issues/576#issuecomment-1178274008\n configurable: true\n });\n }\n finally {\n return Slot;\n }\n })(makeSlotClass());\n//# sourceMappingURL=slot.js.map"],"x_google_ignoreList":[0],"mappings":";AAGA,IAAI,IAAiB,MAGf,IAAgB,EAAE,EACpB,IAAY,GAIV,UAAsB,MAAW;CACnC,cAAc;AAIV,OAAK,KAAK;GACN;GACA;GACA,KAAK,KAAK;GACV,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE;GACtC,CAAC,KAAK,IAAI;;CAEf,WAAW;AACP,OAAK,IAAI,IAAU,GAAgB,GAAS,IAAU,EAAQ,OAG1D,KAAI,KAAK,MAAM,EAAQ,OAAO;GAC1B,IAAM,IAAQ,EAAQ,MAAM,KAAK;AACjC,OAAI,MAAU,EACV;AAOJ,UANI,MAAY,MAIZ,EAAe,MAAM,KAAK,MAAM,IAE7B;;AASf,SANI,MAIA,EAAe,MAAM,KAAK,MAAM,IAE7B;;CAEX,WAAW;AACP,MAAI,KAAK,UAAU,CACf,QAAO,EAAe,MAAM,KAAK;;CAGzC,UAAU,GAAO,GAGjB,GAAM,GAAS;EACX,IAAM,IAAQ;GACV,WAAW;IACV,KAAK,KAAK;GACd,EACK,IAAS;AACf,MAAiB;GAAE;GAAQ;GAAO;AAClC,MAAI;AAGA,UAAO,EAAS,MAAM,GAAS,EAAK;YAEhC;AACJ,OAAiB;;;CAKzB,OAAO,KAAK,GAAU;EAClB,IAAM,IAAU;AAChB,SAAO,WAAY;GACf,IAAM,IAAQ;AACd,OAAI;AAEA,WADA,IAAiB,GACV,EAAS,MAAM,MAAM,UAAU;aAElC;AACJ,QAAiB;;;;CAK7B,OAAO,UAAU,GAGjB,GAAM,GAAS;AACX,MAAI,GAAgB;GAChB,IAAM,IAAQ;AACd,OAAI;AAIA,WAHA,IAAiB,MAGV,EAAS,MAAM,GAAS,EAAK;aAEhC;AACJ,QAAiB;;QAIrB,QAAO,EAAS,MAAM,GAAS,EAAK;;;AAIhD,SAAS,EAAM,GAAI;AACf,KAAI;AACA,SAAO,GAAI;SAEC;;AAUpB,IAAM,IAAY,qBAeZ,IAXN,QAAY,WAAW,IAInB,QAAY,OAAO,IAInB,OAAO,OAAO,KAAK,EAIV,IAAO,EAAW,MAG3B,MAAM,OACL,SAAU,GAAM;AACb,KAAI;AACA,SAAO,eAAe,GAAY,GAAW;GACzC,OAAO;GACP,YAAY;GACZ,UAAU;GAOV,cAAc;GACjB,CAAC;WAEE;AACJ,SAAO;;GAEZ,GAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ //#region node_modules/@wry/trie/lib/index.js
2
+ var { forEach: e, slice: t } = Array.prototype, { hasOwnProperty: n } = Object.prototype;
3
+ //#endregion
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@wry/trie/lib/index.js"],"sourcesContent":["// A [trie](https://en.wikipedia.org/wiki/Trie) data structure that holds\n// object keys weakly, yet can also hold non-object keys, unlike the\n// native `WeakMap`.\n// If no makeData function is supplied, the looked-up data will be an empty,\n// null-prototype Object.\nconst defaultMakeData = () => Object.create(null);\n// Useful for processing arguments objects as well as arrays.\nconst { forEach, slice } = Array.prototype;\nconst { hasOwnProperty } = Object.prototype;\nexport class Trie {\n constructor(weakness = true, makeData = defaultMakeData) {\n this.weakness = weakness;\n this.makeData = makeData;\n }\n lookup() {\n return this.lookupArray(arguments);\n }\n lookupArray(array) {\n let node = this;\n forEach.call(array, key => node = node.getChildTrie(key));\n return hasOwnProperty.call(node, \"data\")\n ? node.data\n : node.data = this.makeData(slice.call(array));\n }\n peek() {\n return this.peekArray(arguments);\n }\n peekArray(array) {\n let node = this;\n for (let i = 0, len = array.length; node && i < len; ++i) {\n const map = node.mapFor(array[i], false);\n node = map && map.get(array[i]);\n }\n return node && node.data;\n }\n remove() {\n return this.removeArray(arguments);\n }\n removeArray(array) {\n let data;\n if (array.length) {\n const head = array[0];\n const map = this.mapFor(head, false);\n const child = map && map.get(head);\n if (child) {\n data = child.removeArray(slice.call(array, 1));\n if (!child.data && !child.weak && !(child.strong && child.strong.size)) {\n map.delete(head);\n }\n }\n }\n else {\n data = this.data;\n delete this.data;\n }\n return data;\n }\n getChildTrie(key) {\n const map = this.mapFor(key, true);\n let child = map.get(key);\n if (!child)\n map.set(key, child = new Trie(this.weakness, this.makeData));\n return child;\n }\n mapFor(key, create) {\n return this.weakness && isObjRef(key)\n ? this.weak || (create ? this.weak = new WeakMap : void 0)\n : this.strong || (create ? this.strong = new Map : void 0);\n }\n}\nfunction isObjRef(value) {\n switch (typeof value) {\n case \"object\":\n if (value === null)\n break;\n // Fall through to return true...\n case \"function\":\n return true;\n }\n return false;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,EAAE,YAAS,aAAU,MAAM,WAC3B,EAAE,sBAAmB,OAAO"}
@@ -0,0 +1,320 @@
1
+ import { isObject as e, limitCloseReason as t } from "./utils.js";
2
+ import { CloseCode as n, GRAPHQL_TRANSPORT_WS_PROTOCOL as r, MessageType as i, parseMessage as a, stringifyMessage as o } from "./common.js";
3
+ //#region node_modules/graphql-ws/lib/client.mjs
4
+ var s = function(e) {
5
+ return this instanceof s ? (this.v = e, this) : new s(e);
6
+ }, c = function(e, t, n) {
7
+ if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
8
+ var r = n.apply(e, t || []), i, a = [];
9
+ return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), c("next"), c("throw"), c("return", o), i[Symbol.asyncIterator] = function() {
10
+ return this;
11
+ }, i;
12
+ function o(e) {
13
+ return function(t) {
14
+ return Promise.resolve(t).then(e, f);
15
+ };
16
+ }
17
+ function c(e, t) {
18
+ r[e] && (i[e] = function(t) {
19
+ return new Promise(function(n, r) {
20
+ a.push([
21
+ e,
22
+ t,
23
+ n,
24
+ r
25
+ ]) > 1 || l(e, t);
26
+ });
27
+ }, t && (i[e] = t(i[e])));
28
+ }
29
+ function l(e, t) {
30
+ try {
31
+ u(r[e](t));
32
+ } catch (e) {
33
+ p(a[0][3], e);
34
+ }
35
+ }
36
+ function u(e) {
37
+ e.value instanceof s ? Promise.resolve(e.value.v).then(d, f) : p(a[0][2], e);
38
+ }
39
+ function d(e) {
40
+ l("next", e);
41
+ }
42
+ function f(e) {
43
+ l("throw", e);
44
+ }
45
+ function p(e, t) {
46
+ e(t), a.shift(), a.length && l(a[0][0], a[0][1]);
47
+ }
48
+ };
49
+ function l(e) {
50
+ let { url: l, connectionParams: m, lazy: h = !0, onNonLazyError: g = console.error, lazyCloseTimeout: _ = 0, keepAlive: v = 0, disablePong: y, connectionAckWaitTimeout: b = 0, retryAttempts: x = 5, retryWait: S = async function(e) {
51
+ let t = 1e3;
52
+ for (let n = 0; n < e; n++) t *= 2;
53
+ await new Promise((e) => setTimeout(e, t + Math.floor(Math.random() * 2700 + 300)));
54
+ }, shouldRetry: C = d, isFatalConnectionProblem: w, on: T, webSocketImpl: E, generateID: D = function() {
55
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
56
+ let t = Math.random() * 16 | 0;
57
+ return (e == "x" ? t : t & 3 | 8).toString(16);
58
+ });
59
+ }, jsonMessageReplacer: O, jsonMessageReviver: k } = e, A;
60
+ if (E) {
61
+ if (!p(E)) throw Error("Invalid WebSocket implementation provided");
62
+ A = E;
63
+ } else typeof WebSocket < "u" ? A = WebSocket : typeof global < "u" ? A = global.WebSocket || global.MozWebSocket : typeof window < "u" && (A = window.WebSocket || window.MozWebSocket);
64
+ if (!A) throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");
65
+ let j = A, M = (() => {
66
+ let e = (() => {
67
+ let e = {};
68
+ return {
69
+ on(t, n) {
70
+ return e[t] = n, () => {
71
+ delete e[t];
72
+ };
73
+ },
74
+ emit(t) {
75
+ var n;
76
+ "id" in t && ((n = e[t.id]) == null || n.call(e, t));
77
+ }
78
+ };
79
+ })(), t = {
80
+ connecting: T?.connecting ? [T.connecting] : [],
81
+ opened: T?.opened ? [T.opened] : [],
82
+ connected: T?.connected ? [T.connected] : [],
83
+ ping: T?.ping ? [T.ping] : [],
84
+ pong: T?.pong ? [T.pong] : [],
85
+ message: T?.message ? [e.emit, T.message] : [e.emit],
86
+ closed: T?.closed ? [T.closed] : [],
87
+ error: T?.error ? [T.error] : []
88
+ };
89
+ return {
90
+ onMessage: e.on,
91
+ on(e, n) {
92
+ let r = t[e];
93
+ return r.push(n), () => {
94
+ r.splice(r.indexOf(n), 1);
95
+ };
96
+ },
97
+ emit(e, ...n) {
98
+ for (let r of [...t[e]]) r(...n);
99
+ }
100
+ };
101
+ })();
102
+ function N(e) {
103
+ let t = [M.on("error", (n) => {
104
+ t.forEach((e) => e()), e(n);
105
+ }), M.on("closed", (n) => {
106
+ t.forEach((e) => e()), e(n);
107
+ })];
108
+ }
109
+ let P, F = 0, I, L = !1, R = 0, z = !1;
110
+ async function B() {
111
+ clearTimeout(I);
112
+ let [e, s] = await (P ??= new Promise((e, s) => (async () => {
113
+ if (L) {
114
+ if (await S(R), !F) return P = void 0, s({
115
+ code: 1e3,
116
+ reason: "All Subscriptions Gone"
117
+ });
118
+ R++;
119
+ }
120
+ M.emit("connecting", L);
121
+ let c = new j(typeof l == "function" ? await l() : l, r), d, f;
122
+ function p() {
123
+ isFinite(v) && v > 0 && (clearTimeout(f), f = setTimeout(() => {
124
+ c.readyState === j.OPEN && (c.send(o({ type: i.Ping })), M.emit("ping", !1, void 0));
125
+ }, v));
126
+ }
127
+ N((e) => {
128
+ P = void 0, clearTimeout(d), clearTimeout(f), s(e), e instanceof u && (c.close(4499, "Terminated"), c.onerror = null, c.onclose = null);
129
+ }), c.onerror = (e) => M.emit("error", e), c.onclose = (e) => M.emit("closed", e), c.onopen = async () => {
130
+ try {
131
+ M.emit("opened", c);
132
+ let e = typeof m == "function" ? await m() : m;
133
+ if (c.readyState !== j.OPEN) return;
134
+ c.send(o(e ? {
135
+ type: i.ConnectionInit,
136
+ payload: e
137
+ } : { type: i.ConnectionInit }, O)), isFinite(b) && b > 0 && (d = setTimeout(() => {
138
+ c.close(n.ConnectionAcknowledgementTimeout, "Connection acknowledgement timeout");
139
+ }, b)), p();
140
+ } catch (e) {
141
+ M.emit("error", e), c.close(n.InternalClientError, t(e instanceof Error ? e.message : Error(e).message, "Internal client error"));
142
+ }
143
+ };
144
+ let h = !1;
145
+ c.onmessage = ({ data: r }) => {
146
+ try {
147
+ let t = a(r, k);
148
+ if (M.emit("message", t), t.type === "ping" || t.type === "pong") {
149
+ M.emit(t.type, !0, t.payload), t.type === "pong" ? p() : y || (c.send(o(t.payload ? {
150
+ type: i.Pong,
151
+ payload: t.payload
152
+ } : { type: i.Pong })), M.emit("pong", !1, t.payload));
153
+ return;
154
+ }
155
+ if (h) return;
156
+ if (t.type !== i.ConnectionAck) throw Error(`First message cannot be of type ${t.type}`);
157
+ clearTimeout(d), h = !0, M.emit("connected", c, t.payload, L), L = !1, R = 0, e([c, new Promise((e, t) => N(t))]);
158
+ } catch (e) {
159
+ c.onmessage = null, M.emit("error", e), c.close(n.BadResponse, t(e instanceof Error ? e.message : Error(e).message, "Bad response"));
160
+ }
161
+ };
162
+ })()));
163
+ e.readyState === j.CLOSING && await s;
164
+ let c = () => {}, d = new Promise((e) => c = e);
165
+ return [
166
+ e,
167
+ c,
168
+ Promise.race([d.then(() => {
169
+ if (!F) {
170
+ let t = () => e.close(1e3, "Normal Closure");
171
+ isFinite(_) && _ > 0 ? I = setTimeout(() => {
172
+ e.readyState === j.OPEN && t();
173
+ }, _) : t();
174
+ }
175
+ }), s])
176
+ ];
177
+ }
178
+ function V(e) {
179
+ if (d(e) && (f(e.code) || [
180
+ n.InternalServerError,
181
+ n.InternalClientError,
182
+ n.BadRequest,
183
+ n.BadResponse,
184
+ n.Unauthorized,
185
+ n.SubprotocolNotAcceptable,
186
+ n.SubscriberAlreadyExists,
187
+ n.TooManyInitialisationRequests
188
+ ].includes(e.code))) throw e;
189
+ if (z) return !1;
190
+ if (d(e) && e.code === 1e3) return F > 0;
191
+ if (!x || R >= x || !C(e) || w?.(e)) throw e;
192
+ return L = !0;
193
+ }
194
+ h || (async () => {
195
+ for (F++;;) try {
196
+ let [, , e] = await B();
197
+ await e;
198
+ } catch (e) {
199
+ try {
200
+ if (!V(e)) return;
201
+ } catch (e) {
202
+ return g?.(e);
203
+ }
204
+ }
205
+ })();
206
+ function H(e, t) {
207
+ let n = D(e), r = !1, a = !1, s = () => {
208
+ F--, r = !0;
209
+ };
210
+ return (async () => {
211
+ for (F++;;) try {
212
+ let [c, l, u] = await B();
213
+ if (r) return l();
214
+ let d = M.onMessage(n, (e) => {
215
+ switch (e.type) {
216
+ case i.Next:
217
+ t.next(e.payload);
218
+ return;
219
+ case i.Error:
220
+ a = !0, r = !0, t.error(e.payload), s();
221
+ return;
222
+ case i.Complete:
223
+ r = !0, s();
224
+ return;
225
+ }
226
+ });
227
+ c.send(o({
228
+ id: n,
229
+ type: i.Subscribe,
230
+ payload: e
231
+ }, O)), s = () => {
232
+ !r && c.readyState === j.OPEN && c.send(o({
233
+ id: n,
234
+ type: i.Complete
235
+ }, O)), F--, r = !0, l();
236
+ }, await u.finally(d);
237
+ return;
238
+ } catch (e) {
239
+ if (!V(e)) return;
240
+ }
241
+ })().then(() => {
242
+ a || t.complete();
243
+ }).catch((e) => {
244
+ t.error(e);
245
+ }), () => {
246
+ r || s();
247
+ };
248
+ }
249
+ return {
250
+ on: M.on,
251
+ subscribe: H,
252
+ iterate(e) {
253
+ let t = [], n = {
254
+ done: !1,
255
+ error: null,
256
+ resolve: () => {}
257
+ }, r = H(e, {
258
+ next(e) {
259
+ t.push(e), n.resolve();
260
+ },
261
+ error(e) {
262
+ n.done = !0, n.error = e, n.resolve();
263
+ },
264
+ complete() {
265
+ n.done = !0, n.resolve();
266
+ }
267
+ }), i = (function() {
268
+ return c(this, arguments, function* () {
269
+ for (;;) {
270
+ for (t.length || (yield s(new Promise((e) => n.resolve = e))); t.length;) yield yield s(t.shift());
271
+ if (n.error) throw n.error;
272
+ if (n.done) return yield s(void 0);
273
+ }
274
+ });
275
+ })();
276
+ return i.throw = async (e) => (n.done || (n.done = !0, n.error = e, n.resolve()), {
277
+ done: !0,
278
+ value: void 0
279
+ }), i.return = async () => (r(), {
280
+ done: !0,
281
+ value: void 0
282
+ }), i;
283
+ },
284
+ async dispose() {
285
+ if (z = !0, P) {
286
+ let [e] = await P;
287
+ e.close(1e3, "Normal Closure");
288
+ }
289
+ },
290
+ terminate() {
291
+ P && M.emit("closed", new u());
292
+ }
293
+ };
294
+ }
295
+ var u = class extends Error {
296
+ constructor() {
297
+ super(...arguments), this.name = "TerminatedCloseEvent", this.message = "4499: Terminated", this.code = 4499, this.reason = "Terminated", this.wasClean = !1;
298
+ }
299
+ };
300
+ function d(t) {
301
+ return e(t) && "code" in t && "reason" in t;
302
+ }
303
+ function f(e) {
304
+ return [
305
+ 1e3,
306
+ 1001,
307
+ 1006,
308
+ 1005,
309
+ 1012,
310
+ 1013,
311
+ 1014
312
+ ].includes(e) ? !1 : e >= 1e3 && e <= 1999;
313
+ }
314
+ function p(e) {
315
+ return typeof e == "function" && "constructor" in e && "CLOSED" in e && "CLOSING" in e && "CONNECTING" in e && "OPEN" in e;
316
+ }
317
+ //#endregion
318
+ export { l as createClient };
319
+
320
+ //# sourceMappingURL=client.js.map