@burdenoff/microfe-export 2026.1107.2 → 2026.1113.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/main.d.ts +0 -2
- package/dist/export/ExportRoot.d.ts +0 -2
- package/dist/export/ExportRoot.js +50 -42
- package/dist/export/ExportRoot.js.map +1 -1
- package/dist/export/ExportRoutes.d.ts +8 -2
- package/dist/export/ExportRoutes.js +71 -53
- package/dist/export/ExportRoutes.js.map +1 -1
- package/dist/export/components/ConfirmDestructiveDialog.d.ts +21 -0
- package/dist/export/components/ConfirmDestructiveDialog.js +37 -0
- package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -0
- package/dist/export/components/DownloadSections.d.ts +10 -0
- package/dist/export/components/DownloadSections.js +161 -0
- package/dist/export/components/DownloadSections.js.map +1 -0
- package/dist/export/components/DownloadStatus.d.ts +13 -0
- package/dist/export/components/DownloadStatus.js +36 -0
- package/dist/export/components/DownloadStatus.js.map +1 -0
- package/dist/export/components/DownloadsTabs.d.ts +5 -0
- package/dist/export/components/DownloadsTabs.js +25 -0
- package/dist/export/components/DownloadsTabs.js.map +1 -0
- package/dist/export/components/ExportProgressBar.d.ts +1 -2
- package/dist/export/components/ExportProgressBar.js +1 -2
- package/dist/export/components/ExportProgressBar.js.map +1 -1
- package/dist/export/components/ExportStatusBadge.d.ts +1 -3
- package/dist/export/components/ExportStatusBadge.js +7 -8
- package/dist/export/components/ExportStatusBadge.js.map +1 -1
- package/dist/export/components/PageLayout.d.ts +3 -5
- package/dist/export/components/PageLayout.js +1 -2
- package/dist/export/components/PageLayout.js.map +1 -1
- package/dist/export/constants/enums.d.ts +0 -2
- package/dist/export/constants/enums.js +1 -2
- package/dist/export/constants/enums.js.map +1 -1
- package/dist/export/constants/index.d.ts +0 -1
- package/dist/export/hooks/useEntityLabel.d.ts +7 -0
- package/dist/export/hooks/useEntityLabel.js +16 -0
- package/dist/export/hooks/useEntityLabel.js.map +1 -0
- package/dist/export/hooks/useExportQueries.d.ts +17 -32
- package/dist/export/hooks/useExportQueries.js +144 -145
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/hooks/useTr.d.ts +0 -2
- package/dist/export/hooks/useTr.js +1 -2
- package/dist/export/hooks/useTr.js.map +1 -1
- package/dist/export/index.d.ts +0 -1
- package/dist/export/index.js +5 -4
- package/dist/export/navigation-v2/NavigationV2.d.ts +7 -0
- package/dist/export/navigation-v2/NavigationV2.js +16 -0
- package/dist/export/navigation-v2/NavigationV2.js.map +1 -0
- package/dist/export/pages/CreateExportPage.d.ts +1 -2
- package/dist/export/pages/CreateExportPage.js +126 -125
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
- package/dist/export/pages/ExportDashboardPage.js +17 -18
- package/dist/export/pages/ExportDashboardPage.js.map +1 -1
- package/dist/export/pages/ExportDetailPage.d.ts +1 -2
- package/dist/export/pages/ExportDetailPage.js +133 -127
- package/dist/export/pages/ExportDetailPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
- package/dist/export/pages/ExportHistoryPage.js +74 -69
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportLandingPage.d.ts +1 -2
- package/dist/export/pages/ExportLandingPage.js +1 -2
- package/dist/export/pages/ExportLandingPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
- package/dist/export/pages/ExportTemplatesPage.js +219 -192
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
- package/dist/export/pages/TemplateDetailPage.js +146 -125
- package/dist/export/pages/TemplateDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadDetailPage.d.ts +8 -0
- package/dist/export/pages/v2/DownloadDetailPage.js +176 -0
- package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -0
- package/dist/export/pages/v2/DownloadsPage.d.ts +10 -0
- package/dist/export/pages/v2/DownloadsPage.js +401 -0
- package/dist/export/pages/v2/DownloadsPage.js.map +1 -0
- package/dist/export/pages/v2/NewDownloadPage.d.ts +8 -0
- package/dist/export/pages/v2/NewDownloadPage.js +440 -0
- package/dist/export/pages/v2/NewDownloadPage.js.map +1 -0
- package/dist/export/providers/ExportProvider.d.ts +0 -2
- package/dist/export/providers/ExportProvider.js +12 -16
- package/dist/export/providers/ExportProvider.js.map +1 -1
- package/dist/export/store/exportStore.d.ts +0 -2
- package/dist/export/store/exportStore.js +1 -2
- package/dist/export/store/exportStore.js.map +1 -1
- package/dist/export/types/index.d.ts +7 -1
- package/dist/export/utils/billing.d.ts +6 -0
- package/dist/export/utils/billing.js +7 -0
- package/dist/export/utils/billing.js.map +1 -0
- package/dist/export/utils/cn.d.ts +0 -2
- package/dist/export/utils/cn.js +2 -3
- package/dist/export/utils/cn.js.map +1 -1
- package/dist/export/utils/disabledModules.d.ts +0 -1
- package/dist/export/utils/disabledModules.js +3 -4
- package/dist/export/utils/disabledModules.js.map +1 -1
- package/dist/export/utils/downloadStatus.d.ts +15 -0
- package/dist/export/utils/downloadStatus.js +48 -0
- package/dist/export/utils/downloadStatus.js.map +1 -0
- package/dist/export/utils/entityLabels.d.ts +47 -0
- package/dist/export/utils/entityLabels.js +150 -0
- package/dist/export/utils/entityLabels.js.map +1 -0
- package/dist/export/utils/events.d.ts +0 -2
- package/dist/export/utils/events.js +1 -2
- package/dist/export/utils/events.js.map +1 -1
- package/dist/export/utils/exportAuthority.d.ts +0 -2
- package/dist/export/utils/exportAuthority.js +1 -2
- package/dist/export/utils/exportAuthority.js.map +1 -1
- package/dist/export/utils/formatBytes.d.ts +2 -0
- package/dist/export/utils/formatBytes.js +15 -0
- package/dist/export/utils/formatBytes.js.map +1 -0
- package/dist/export/utils/i18n.d.ts +0 -2
- package/dist/export/utils/i18n.js +1 -2
- package/dist/export/utils/i18n.js.map +1 -1
- package/dist/export/utils/newDownloadForm.d.ts +32 -0
- package/dist/export/utils/newDownloadForm.js +42 -0
- package/dist/export/utils/newDownloadForm.js.map +1 -0
- package/dist/export/utils/paths.d.ts +2 -0
- package/dist/export/utils/paths.js +7 -0
- package/dist/export/utils/paths.js.map +1 -0
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +226 -181
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/version.js +2 -3
- package/dist/node_modules/@apollo/client/version.js.map +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js +2 -3
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js +76 -69
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.d.ts +0 -1
- package/dist/translations/en.js +1 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +63 -47
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/export/ExportRoot.d.ts.map +0 -1
- package/dist/export/ExportRoutes.d.ts.map +0 -1
- package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
- package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
- package/dist/export/components/PageLayout.d.ts.map +0 -1
- package/dist/export/constants/enums.d.ts.map +0 -1
- package/dist/export/constants/index.d.ts.map +0 -1
- package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
- package/dist/export/hooks/useTr.d.ts.map +0 -1
- package/dist/export/index.d.ts.map +0 -1
- package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
- package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
- package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
- package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
- package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
- package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
- package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
- package/dist/export/providers/ExportProvider.d.ts.map +0 -1
- package/dist/export/store/exportStore.d.ts.map +0 -1
- package/dist/export/types/index.d.ts.map +0 -1
- package/dist/export/utils/cn.d.ts.map +0 -1
- package/dist/export/utils/disabledModules.d.ts.map +0 -1
- package/dist/export/utils/events.d.ts.map +0 -1
- package/dist/export/utils/exportAuthority.d.ts.map +0 -1
- package/dist/export/utils/i18n.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe.js","names":[],"sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/globals/maybe.js"],"sourcesContent":["export function maybe(thunk) {\n try {\n return thunk();\n }\n catch { }\n}\n//# sourceMappingURL=maybe.js.map"],"
|
|
1
|
+
{"version":3,"file":"maybe.js","names":["maybe","thunk"],"sources":["../../../../../../../node_modules/@apollo/client/utilities/internal/globals/maybe.js"],"sourcesContent":["export function maybe(thunk) {\n try {\n return thunk();\n }\n catch { }\n}\n//# sourceMappingURL=maybe.js.map"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAM,GAAO;CACzB,IAAI;EACA,OAAOC,EAAM;CACjB,QACM,CAAE;AACZ"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@apollo/client/utilities/internal/isNonNullObject.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return typeof e == "object" && !!e;
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
export { e as isNonNullObject };
|
|
7
6
|
|
|
8
7
|
//# sourceMappingURL=isNonNullObject.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNonNullObject.js","names":[],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/isNonNullObject.js"],"sourcesContent":["/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function isNonNullObject(obj) {\n return obj !== null && typeof obj === \"object\";\n}\n//# sourceMappingURL=isNonNullObject.js.map\n"],"
|
|
1
|
+
{"version":3,"file":"isNonNullObject.js","names":["isNonNullObject","obj"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/isNonNullObject.js"],"sourcesContent":["/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function isNonNullObject(obj) {\n return obj !== null && typeof obj === \"object\";\n}\n//# sourceMappingURL=isNonNullObject.js.map\n"],"ignoreList":[0],"mappings":";AAKA,SAAgBA,EAAgB,GAAK;CACjC,OAAuB,OAAOC,KAAQ,cAA/BA;AACX"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@apollo/client/utilities/internal/makeUniqueId.js
|
|
2
2
|
var e = /* @__PURE__ */ new Map();
|
|
3
3
|
function t(t) {
|
|
4
4
|
let n = e.get(t) || 1;
|
|
5
5
|
return e.set(t, n + 1), `${t}:${n}:${Math.random().toString(36).slice(2)}`;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as makeUniqueId };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=makeUniqueId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeUniqueId.js","names":[],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/makeUniqueId.js"],"sourcesContent":["const prefixCounts = new Map();\n/**\n* These IDs won't be globally unique, but they will be unique within this\n* process, thanks to the counter, and unguessable thanks to the random suffix.\n*\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function makeUniqueId(prefix) {\n const count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return `${prefix}:${count}:${Math.random().toString(36).slice(2)}`;\n}\n//# sourceMappingURL=makeUniqueId.js.map\n"],"
|
|
1
|
+
{"version":3,"file":"makeUniqueId.js","names":["prefixCounts","makeUniqueId","count","prefix"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/makeUniqueId.js"],"sourcesContent":["const prefixCounts = new Map();\n/**\n* These IDs won't be globally unique, but they will be unique within this\n* process, thanks to the counter, and unguessable thanks to the random suffix.\n*\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function makeUniqueId(prefix) {\n const count = prefixCounts.get(prefix) || 1;\n prefixCounts.set(prefix, count + 1);\n return `${prefix}:${count}:${Math.random().toString(36).slice(2)}`;\n}\n//# sourceMappingURL=makeUniqueId.js.map\n"],"ignoreList":[0],"mappings":";AAAA,IAAMA,oBAAe,IAAI,IAAI;AAS7B,SAAgBC,EAAa,GAAQ;CACjC,IAAMC,IAAQF,EAAa,IAAIG,CAAM,KAAK;CAE1C,OADAH,EAAa,IAAIG,GAAQD,IAAQ,CAAC,GAC3B,GAAGC,EAAO,GAAGD,EAAM,GAAG,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;AACnE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Trie as e } from "../../../../@wry/trie/lib/index.js";
|
|
2
2
|
import { AutoCleanedWeakCache as t } from "./caches.js";
|
|
3
|
-
|
|
3
|
+
// node_modules/@apollo/client/utilities/internal/memoize.js
|
|
4
4
|
function n(n, { max: r, makeCacheKey: i = (e) => e }) {
|
|
5
5
|
let a = new e(!0), o = new t(r);
|
|
6
6
|
return (...e) => {
|
|
@@ -17,7 +17,6 @@ function n(n, { max: r, makeCacheKey: i = (e) => e }) {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { n as memoize };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=memoize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.js","names":[],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/memoize.js"],"sourcesContent":["import { Trie } from \"@wry/trie\";\nimport { AutoCleanedWeakCache } from \"./caches.js\";\n/**\n * Naive alternative to `wrap` without any dependency tracking, potentially avoiding resulting memory leaks.\n */\nexport function memoize(fn, { max, makeCacheKey = (args) => args, }) {\n const keys = new Trie(true);\n const cache = new AutoCleanedWeakCache(max);\n return (...args) => {\n const cacheKey = keys.lookupArray(makeCacheKey(args));\n const cached = cache.get(cacheKey);\n if (cached) {\n if (cached.error) {\n throw cached.error;\n }\n return cached.result;\n }\n const entry = cache.set(cacheKey, {});\n try {\n return (entry.result = fn(...args));\n }\n catch (error) {\n entry.error = error;\n throw error;\n }\n };\n}\n//# sourceMappingURL=memoize.js.map"],"
|
|
1
|
+
{"version":3,"file":"memoize.js","names":["memoize","args","keys","Trie","cache","AutoCleanedWeakCache","max","cacheKey","makeCacheKey","cached","entry","fn","error"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/memoize.js"],"sourcesContent":["import { Trie } from \"@wry/trie\";\nimport { AutoCleanedWeakCache } from \"./caches.js\";\n/**\n * Naive alternative to `wrap` without any dependency tracking, potentially avoiding resulting memory leaks.\n */\nexport function memoize(fn, { max, makeCacheKey = (args) => args, }) {\n const keys = new Trie(true);\n const cache = new AutoCleanedWeakCache(max);\n return (...args) => {\n const cacheKey = keys.lookupArray(makeCacheKey(args));\n const cached = cache.get(cacheKey);\n if (cached) {\n if (cached.error) {\n throw cached.error;\n }\n return cached.result;\n }\n const entry = cache.set(cacheKey, {});\n try {\n return (entry.result = fn(...args));\n }\n catch (error) {\n entry.error = error;\n throw error;\n }\n };\n}\n//# sourceMappingURL=memoize.js.map"],"ignoreList":[0],"mappings":";;;AAKA,SAAgBA,EAAQ,GAAI,EAAE,QAAK,mBAAgB,MAASC,KAAS;CACjE,IAAMC,IAAO,IAAIC,EAAK,EAAI,GACpBC,IAAQ,IAAIC,EAAqBC,CAAG;CAC1C,QAAQ,GAAGL,MAAS;EAChB,IAAMM,IAAWL,EAAK,YAAYM,EAAaP,CAAI,CAAC,GAC9CQ,IAASL,EAAM,IAAIG,CAAQ;EACjC,IAAIE,GAAQ;GACR,IAAIA,EAAO,OACP,MAAMA,EAAO;GAEjB,OAAOA,EAAO;EAClB;EACA,IAAMC,IAAQN,EAAM,IAAIG,GAAU,CAAC,CAAC;EACpC,IAAI;GACA,OAAQ,EAAM,SAASI,EAAG,GAAGV,CAAI;EACrC,SACOW,GAAO;GAEV,MADA,EAAM,QAAQA,GACRA;EACV;CACJ;AACJ"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { makeUniqueId as e } from "./makeUniqueId.js";
|
|
2
|
-
|
|
2
|
+
// node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js
|
|
3
3
|
function t(t, n = 0) {
|
|
4
4
|
let r = e("stringifyForDisplay");
|
|
5
5
|
return JSON.stringify(t, (e, t) => t === void 0 ? r : t, n).split(JSON.stringify(r)).join("<undefined>");
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as stringifyForDisplay };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=stringifyForDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringifyForDisplay.js","names":[],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js"],"sourcesContent":["import { makeUniqueId } from \"./makeUniqueId.js\";\n/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function stringifyForDisplay(value, space = 0) {\n const undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, (_, value) => {\n return value === void 0 ? undefId : value;\n }, space)\n .split(JSON.stringify(undefId))\n .join(\"<undefined>\");\n}\n//# sourceMappingURL=stringifyForDisplay.js.map\n"],"
|
|
1
|
+
{"version":3,"file":"stringifyForDisplay.js","names":["stringifyForDisplay","undefId","makeUniqueId","value","space"],"sources":["../../../../../../node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js"],"sourcesContent":["import { makeUniqueId } from \"./makeUniqueId.js\";\n/**\n* @internal\n* \n* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.\n*/\nexport function stringifyForDisplay(value, space = 0) {\n const undefId = makeUniqueId(\"stringifyForDisplay\");\n return JSON.stringify(value, (_, value) => {\n return value === void 0 ? undefId : value;\n }, space)\n .split(JSON.stringify(undefId))\n .join(\"<undefined>\");\n}\n//# sourceMappingURL=stringifyForDisplay.js.map\n"],"ignoreList":[0],"mappings":";;AAMA,SAAgBA,EAAoB,GAAO,IAAQ,GAAG;CAClD,IAAMC,IAAUC,EAAa,qBAAqB;CAClD,OAAO,KAAK,UAAUC,IAAQ,GAAG,MACtBA,MAAU,KAAK,IAAIF,IAAUE,GACrCC,CAAK,CAAC,CACJ,MAAM,KAAK,UAAUH,CAAO,CAAC,CAAC,CAC9B,KAAK,aAAa;AAC3B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../internal/globals/global.js";
|
|
2
2
|
import { version as t } from "../../version.js";
|
|
3
3
|
import { stringifyForDisplay as n } from "../internal/stringifyForDisplay.js";
|
|
4
|
-
|
|
4
|
+
// node_modules/@apollo/client/utilities/invariant/index.js
|
|
5
5
|
var r = "Invariant Violation", i = class e extends Error {
|
|
6
6
|
constructor(t = r) {
|
|
7
7
|
super(t), this.name = r, Object.setPrototypeOf(this, e.prototype);
|
|
@@ -51,7 +51,6 @@ function p(e, n = []) {
|
|
|
51
51
|
args: n.map(d)
|
|
52
52
|
}))}`;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
export { s as invariant, l as newInvariantError };
|
|
54
|
+
export { u as ApolloErrorMessageHandler, i as InvariantError, s as invariant, l as newInvariantError };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["global"],"sources":["../../../../../../node_modules/@apollo/client/utilities/invariant/index.js"],"sourcesContent":["import { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport { global } from \"@apollo/client/utilities/internal/globals\";\nimport { version } from \"../../version.js\";\n// eslint-disable-next-line local-rules/import-from-inside-other-export\nimport { stringifyForDisplay } from \"../internal/stringifyForDisplay.js\";\nconst genericMessage = \"Invariant Violation\";\nexport class InvariantError extends Error {\n constructor(message = genericMessage) {\n super(message);\n this.name = genericMessage;\n Object.setPrototypeOf(this, InvariantError.prototype);\n }\n}\nconst verbosityLevels = [\"debug\", \"log\", \"warn\", \"error\", \"silent\"];\nlet verbosityLevel = verbosityLevels.indexOf(__DEV__ ? \"log\" : \"silent\");\nexport function invariant(condition, ...args) {\n if (!condition) {\n throw newInvariantError(...args);\n }\n}\nfunction wrapConsoleMethod(name) {\n return function (message, ...args) {\n if (verbosityLevels.indexOf(name) >= verbosityLevel) {\n // Default to console.log if this host environment happens not to provide\n // all the console.* methods we need.\n const method = console[name] || console.log;\n if (typeof message === \"number\") {\n const arg0 = message;\n message = getHandledErrorMsg(arg0);\n if (!message) {\n message = getFallbackErrorMsg(arg0, args);\n args = [];\n }\n }\n method(message, ...args);\n }\n };\n}\ninvariant.debug = wrapConsoleMethod(\"debug\");\ninvariant.log = wrapConsoleMethod(\"log\");\ninvariant.warn = wrapConsoleMethod(\"warn\");\ninvariant.error = wrapConsoleMethod(\"error\");\nexport function setVerbosity(level) {\n const old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\n/**\n * Returns an InvariantError.\n *\n * `message` can only be a string, a concatenation of strings, or a ternary statement\n * that results in a string. This will be enforced on build, where the message will\n * be replaced with a message number.\n * String substitutions with %s are supported and will also return\n * pretty-stringified objects.\n * Excess `optionalParams` will be swallowed.\n */\nexport function newInvariantError(message, ...optionalParams) {\n return new InvariantError(getHandledErrorMsg(message, optionalParams) ||\n getFallbackErrorMsg(message, optionalParams));\n}\n// This is duplicated between `@apollo/client/dev` and `@apollo/client/utilities/invariant` to prevent circular references.\nexport const ApolloErrorMessageHandler = Symbol.for(\"ApolloErrorMessageHandler_\" + version);\nfunction stringify(arg) {\n if (typeof arg == \"string\") {\n return arg;\n }\n try {\n return stringifyForDisplay(arg, 2).slice(0, 1000);\n }\n catch {\n return \"<non-serializable>\";\n }\n}\nfunction getHandledErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n return (global[ApolloErrorMessageHandler] &&\n global[ApolloErrorMessageHandler](message, messageArgs.map(stringify)));\n}\nfunction getFallbackErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n if (typeof message === \"string\") {\n return messageArgs.reduce((msg, arg) => msg.replace(/%[sdfo]/, stringify(arg)), message);\n }\n return `An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({\n version,\n message,\n args: messageArgs.map(stringify),\n }))}`;\n}\n//# sourceMappingURL=index.js.map"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":["global","global_default","genericMessage","InvariantError","message","verbosityLevels","verbosityLevel","invariant","args","condition","newInvariantError","wrapConsoleMethod","name","method","arg0","getHandledErrorMsg","getFallbackErrorMsg","optionalParams","ApolloErrorMessageHandler","version","stringify","arg","stringifyForDisplay","messageArgs","msg"],"sources":["../../../../../../node_modules/@apollo/client/utilities/invariant/index.js"],"sourcesContent":["import { __DEV__ } from \"@apollo/client/utilities/environment\";\nimport { global } from \"@apollo/client/utilities/internal/globals\";\nimport { version } from \"../../version.js\";\n// eslint-disable-next-line local-rules/import-from-inside-other-export\nimport { stringifyForDisplay } from \"../internal/stringifyForDisplay.js\";\nconst genericMessage = \"Invariant Violation\";\nexport class InvariantError extends Error {\n constructor(message = genericMessage) {\n super(message);\n this.name = genericMessage;\n Object.setPrototypeOf(this, InvariantError.prototype);\n }\n}\nconst verbosityLevels = [\"debug\", \"log\", \"warn\", \"error\", \"silent\"];\nlet verbosityLevel = verbosityLevels.indexOf(__DEV__ ? \"log\" : \"silent\");\nexport function invariant(condition, ...args) {\n if (!condition) {\n throw newInvariantError(...args);\n }\n}\nfunction wrapConsoleMethod(name) {\n return function (message, ...args) {\n if (verbosityLevels.indexOf(name) >= verbosityLevel) {\n // Default to console.log if this host environment happens not to provide\n // all the console.* methods we need.\n const method = console[name] || console.log;\n if (typeof message === \"number\") {\n const arg0 = message;\n message = getHandledErrorMsg(arg0);\n if (!message) {\n message = getFallbackErrorMsg(arg0, args);\n args = [];\n }\n }\n method(message, ...args);\n }\n };\n}\ninvariant.debug = wrapConsoleMethod(\"debug\");\ninvariant.log = wrapConsoleMethod(\"log\");\ninvariant.warn = wrapConsoleMethod(\"warn\");\ninvariant.error = wrapConsoleMethod(\"error\");\nexport function setVerbosity(level) {\n const old = verbosityLevels[verbosityLevel];\n verbosityLevel = Math.max(0, verbosityLevels.indexOf(level));\n return old;\n}\n/**\n * Returns an InvariantError.\n *\n * `message` can only be a string, a concatenation of strings, or a ternary statement\n * that results in a string. This will be enforced on build, where the message will\n * be replaced with a message number.\n * String substitutions with %s are supported and will also return\n * pretty-stringified objects.\n * Excess `optionalParams` will be swallowed.\n */\nexport function newInvariantError(message, ...optionalParams) {\n return new InvariantError(getHandledErrorMsg(message, optionalParams) ||\n getFallbackErrorMsg(message, optionalParams));\n}\n// This is duplicated between `@apollo/client/dev` and `@apollo/client/utilities/invariant` to prevent circular references.\nexport const ApolloErrorMessageHandler = Symbol.for(\"ApolloErrorMessageHandler_\" + version);\nfunction stringify(arg) {\n if (typeof arg == \"string\") {\n return arg;\n }\n try {\n return stringifyForDisplay(arg, 2).slice(0, 1000);\n }\n catch {\n return \"<non-serializable>\";\n }\n}\nfunction getHandledErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n return (global[ApolloErrorMessageHandler] &&\n global[ApolloErrorMessageHandler](message, messageArgs.map(stringify)));\n}\nfunction getFallbackErrorMsg(message, messageArgs = []) {\n if (!message)\n return;\n if (typeof message === \"string\") {\n return messageArgs.reduce((msg, arg) => msg.replace(/%[sdfo]/, stringify(arg)), message);\n }\n return `An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({\n version,\n message,\n args: messageArgs.map(stringify),\n }))}`;\n}\n//# sourceMappingURL=index.js.map"],"ignoreList":[0],"mappings":";;;;AAKA,IAAME,IAAiB,uBACVC,IAAb,MAAaA,UAAuB,MAAM;CACtC,YAAY,IAAUD,GAAgB;EAGlC,AAFA,MAAME,CAAO,GACb,KAAK,OAAOF,GACZ,OAAO,eAAe,MAAMC,EAAe,SAAS;CACxD;AACJ,GACME,IAAkB;CAAC;CAAS;CAAO;CAAQ;CAAS;AAAQ,GAC9DC,IAAiBD,EAAgB,QAA0B,QAAQ;AACvE,SAAgBE,EAAU,GAAW,GAAGC,GAAM;CAC1C,IAAI,CAACC,GACD,MAAMC,EAAkB,GAAGF,CAAI;AAEvC;AACA,SAASG,EAAkB,GAAM;CAC7B,OAAO,SAAU,GAAS,GAAGH,GAAM;EAC/B,IAAIH,EAAgB,QAAQO,CAAI,KAAKN,GAAgB;GAGjD,IAAMO,IAAS,QAAQD,MAAS,QAAQ;GACxC,IAAI,OAAOR,KAAY,UAAU;IAC7B,IAAMU,IAAOV;IAEb,AADA,IAAUW,EAAmBD,CAAI,GAC5BV,MACD,IAAUY,EAAoBF,GAAMN,CAAI,GACxC,IAAO,CAAC;GAEhB;GACA,EAAOJ,GAAS,GAAGI,CAAI;EAC3B;CACJ;AACJ;AACA,EAAU,QAAQG,EAAkB,OAAO,GAC3C,EAAU,MAAMA,EAAkB,KAAK,GACvC,EAAU,OAAOA,EAAkB,MAAM,GACzC,EAAU,QAAQA,EAAkB,OAAO;AAgB3C,SAAgBD,EAAkB,GAAS,GAAGO,GAAgB;CAC1D,OAAO,IAAId,EAAeY,EAAmBX,GAASa,CAAc,KAChED,EAAoBZ,GAASa,CAAc,CAAC;AACpD;AAEA,IAAaC,IAA4B,OAAO,IAAI,+BAA+BC,CAAO;AAC1F,SAASC,EAAU,GAAK;CACpB,IAAI,OAAOC,KAAO,UACd,OAAOA;CAEX,IAAI;EACA,OAAOC,EAAoBD,GAAK,CAAC,CAAC,CAAC,MAAM,GAAG,GAAI;CACpD,QACM;EACF,OAAO;CACX;AACJ;AACA,SAASN,EAAmB,GAAS,IAAc,CAAC,GAAG;CACnD,IAAKX,GAEL,OAAQJ,EAAOkB,MACXlB,EAAOkB,EAA0B,CAACd,GAASmB,EAAY,IAAIH,CAAS,CAAC;AAC7E;AACA,SAASJ,EAAoB,GAAS,IAAc,CAAC,GAAG;CACpD,IAAKZ,GAKL,OAHI,OAAOA,KAAY,WACZmB,EAAY,QAAQ,GAAK,MAAQC,EAAI,QAAQ,WAAWJ,EAAUC,CAAG,CAAC,GAAGjB,CAAO,IAEpF,+FAA+F,mBAAmB,KAAK,UAAU;EACpI;EACA;EACA,MAAMmB,EAAY,IAAIH,CAAS;CACnC,CAAC,CAAC;AACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../../../node_modules/@apollo/client/version.js"],"sourcesContent":["export const version = \"4.
|
|
1
|
+
{"version":3,"file":"version.js","names":["version"],"sources":["../../../../node_modules/@apollo/client/version.js"],"sourcesContent":["export const version = \"4.3.7\";\nexport const build = \"esm\";\n//# sourceMappingURL=version.js.map\n"],"ignoreList":[0],"mappings":";AAAA,IAAaA,IAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@wry/caches/lib/weak.js
|
|
2
2
|
function e() {}
|
|
3
3
|
var t = e, n = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
4
4
|
return { deref: () => e };
|
|
@@ -61,7 +61,6 @@ var t = e, n = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
|
61
61
|
this.unfinalizedNodes.add(e), this.finalizationScheduled || (this.finalizationScheduled = !0, queueMicrotask(this.finalize));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { o as WeakCache };
|
|
66
65
|
|
|
67
66
|
//# sourceMappingURL=weak.js.map
|
|
@@ -1 +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"],"
|
|
1
|
+
{"version":3,"file":"weak.js","names":["noop","defaultDispose","_WeakRef","value","_WeakMap","_FinalizationRegistry","finalizationBatchSize","WeakCache","max","dispose","iterator","i","node","key","newer","older"],"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"],"ignoreList":[0],"mappings":";AAAA,SAASA,IAAO,CAAE;AAClB,IAAMC,IAAiBD,GACjBE,IAAW,OAAO,UAAY,MAC9B,UACA,SAAU,GAAO;CACf,OAAO,EAAE,aAAaC,EAAM;AAChC,GACEC,IAAW,OAAO,UAAY,MAAc,UAAU,KACtDC,IAAwB,OAAO,uBAAyB,MACxD,uBACA,WAAY;CACV,OAAO;EACH,UAAUL;EACV,YAAYA;CAChB;AACJ,GACEM,IAAwB,OACjBC,IAAb,MAAuB;CACnB,YAAY,IAAM,UAAU,IAAUN,GAAgB;EA4BlD,AA3BA,KAAK,MAAMO,GACX,KAAK,UAAUC,GACf,KAAK,MAAM,IAAIL,EAAS,GACxB,KAAK,SAAS,MACd,KAAK,SAAS,MACd,KAAK,mCAAmB,IAAI,IAAI,GAChC,KAAK,wBAAwB,IAC7B,KAAK,OAAO,GACZ,KAAK,iBAAiB;GAClB,IAAMM,IAAW,KAAK,iBAAiB,OAAO;GAC9C,KAAK,IAAIC,IAAI,GAAGA,IAAIL,GAAuB,KAAK;IAC5C,IAAMM,IAAOF,EAAS,KAAK,CAAC,CAAC;IAC7B,IAAI,CAACE,GACD;IACJ,KAAK,iBAAiB,OAAOA,CAAI;IACjC,IAAMC,IAAMD,EAAK;IAGjB,AAFA,OAAOA,EAAK,KACZ,EAAK,SAAS,IAAIV,EAASW,CAAG,GAC9B,KAAK,SAAS,SAASA,GAAKD,GAAMA,CAAI;GAC1C;GACA,AAAI,KAAK,iBAAiB,OAAO,IAC7B,eAAe,KAAK,QAAQ,IAG5B,KAAK,wBAAwB;EAErC,GACA,KAAK,WAAW,IAAIP,EAAsB,KAAK,WAAW,KAAK,IAAI,CAAC;CACxE;CACA,IAAI,GAAK;EACL,OAAO,KAAK,IAAI,IAAIQ,CAAG;CAC3B;CACA,IAAI,GAAK;EACL,IAAMD,IAAO,KAAK,QAAQC,CAAG;EAC7B,OAAOD,KAAQA,EAAK;CACxB;CACA,QAAQ,GAAK;EACT,IAAMA,IAAO,KAAK,IAAI,IAAIC,CAAG;EAC7B,IAAID,KAAQA,MAAS,KAAK,QAAQ;GAC9B,IAAM,EAAE,UAAO,aAAUA;GAWzB,AAVIE,MACA,EAAM,QAAQC,IAEdA,MACA,EAAM,QAAQD,IAElB,EAAK,QAAQ,KAAK,QAClB,EAAK,MAAM,QAAQF,GACnB,EAAK,QAAQ,MACb,KAAK,SAASA,GACVA,MAAS,KAAK,WACd,KAAK,SAASE;EAEtB;EACA,OAAOF;CACX;CACA,IAAI,GAAK,GAAO;EACZ,IAAIA,IAAO,KAAK,QAAQC,CAAG;EAkB3B,OAjBID,IACQ,EAAK,QAAQT,KAEzB,IAAO;GACH;GACA;GACA,OAAO;GACP,OAAO,KAAK;EAChB,GACI,KAAK,WACL,KAAK,OAAO,QAAQS,IAExB,KAAK,SAASA,GACd,KAAK,SAAS,KAAK,UAAUA,GAC7B,KAAK,qBAAqBA,CAAI,GAC9B,KAAK,IAAI,IAAIC,GAAKD,CAAI,GACtB,KAAK,QACEA,EAAK;CAChB;CACA,QAAQ;EACJ,OAAO,KAAK,UAAU,KAAK,OAAO,KAAK,MACnC,KAAK,WAAW,KAAK,MAAM;CAEnC;CACA,WAAW,GAAM;EAab,AAZIA,MAAS,KAAK,WACd,KAAK,SAASA,EAAK,QAEnBA,MAAS,KAAK,WACd,KAAK,SAASA,EAAK,QAEnBA,EAAK,UACL,EAAK,MAAM,QAAQA,EAAK,QAExBA,EAAK,UACL,EAAK,MAAM,QAAQA,EAAK,QAE5B,KAAK;EACL,IAAMC,IAAMD,EAAK,OAAQA,EAAK,UAAUA,EAAK,OAAO,MAAM;EAQ1D,AAPA,KAAK,QAAQA,EAAK,OAAOC,CAAG,GACvBD,EAAK,SAIN,KAAK,SAAS,WAAWA,CAAI,IAH7B,KAAK,iBAAiB,OAAOA,CAAI,GAKjCC,KACA,KAAK,IAAI,OAAOA,CAAG;CAC3B;CACA,OAAO,GAAK;EACR,IAAMD,IAAO,KAAK,IAAI,IAAIC,CAAG;EAK7B,OAJID,KACA,KAAK,WAAWA,CAAI,GACb,MAEJ;CACX;CACA,qBAAqB,GAAM;EAEvB,AADA,KAAK,iBAAiB,IAAIA,CAAI,GACzB,KAAK,0BACN,KAAK,wBAAwB,IAC7B,eAAe,KAAK,QAAQ;CAEpC;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@wry/trie/lib/index.js
|
|
2
2
|
var e = () => Object.create(null), { forEach: t, slice: n } = Array.prototype, { hasOwnProperty: r } = Object.prototype, i = class i {
|
|
3
3
|
constructor(t = !0, n = e) {
|
|
4
4
|
this.weakness = t, this.makeData = n;
|
|
@@ -28,7 +28,7 @@ var e = () => Object.create(null), { forEach: t, slice: n } = Array.prototype, {
|
|
|
28
28
|
let t;
|
|
29
29
|
if (e.length) {
|
|
30
30
|
let r = e[0], i = this.mapFor(r, !1), a = i && i.get(r);
|
|
31
|
-
a && (t = a.removeArray(n.call(e, 1)),
|
|
31
|
+
a && (t = a.removeArray(n.call(e, 1)), a.data || a.weak || a.strong && a.strong.size || i.delete(r));
|
|
32
32
|
} else t = this.data, delete this.data;
|
|
33
33
|
return t;
|
|
34
34
|
}
|
|
@@ -47,7 +47,6 @@ function a(e) {
|
|
|
47
47
|
}
|
|
48
48
|
return !1;
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { i as Trie };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":["defaultMakeData","Trie","weakness","makeData","node","forEach","array","key","hasOwnProperty","slice","i","len","map","data","head","child","isObjRef","create","value"],"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"],"ignoreList":[0],"mappings":";AAKA,IAAMA,UAAwB,OAAO,OAAO,IAAI,GAE1C,EAAE,YAAS,aAAU,MAAM,WAC3B,EAAE,sBAAmB,OAAO,WACrBC,IAAb,MAAaA,EAAK;CACd,YAAY,IAAW,IAAM,IAAWD,GAAiB;EAErD,AADA,KAAK,WAAWE,GAChB,KAAK,WAAWC;CACpB;CACA,SAAS;EACL,OAAO,KAAK,YAAY,SAAS;CACrC;CACA,YAAY,GAAO;EACf,IAAIC,IAAO;EAEX,OADAC,EAAQ,KAAKC,IAAO,MAAO,IAAOF,EAAK,aAAaG,CAAG,CAAC,GACjDC,EAAe,KAAKJ,GAAM,MAAM,IACjCA,EAAK,OACL,EAAK,OAAO,KAAK,SAASK,EAAM,KAAKH,CAAK,CAAC;CACrD;CACA,OAAO;EACH,OAAO,KAAK,UAAU,SAAS;CACnC;CACA,UAAU,GAAO;EACb,IAAIF,IAAO;EACX,KAAK,IAAIM,IAAI,GAAGC,IAAML,EAAM,QAAQF,KAAQM,IAAIC,GAAK,EAAED,GAAG;GACtD,IAAME,IAAMR,EAAK,OAAOE,EAAMI,IAAI,EAAK;GACvC,IAAOE,KAAOA,EAAI,IAAIN,EAAMI,EAAE;EAClC;EACA,OAAON,KAAQA,EAAK;CACxB;CACA,SAAS;EACL,OAAO,KAAK,YAAY,SAAS;CACrC;CACA,YAAY,GAAO;EACf,IAAIS;EACJ,IAAIP,EAAM,QAAQ;GACd,IAAMQ,IAAOR,EAAM,IACbM,IAAM,KAAK,OAAOE,GAAM,EAAK,GAC7BC,IAAQH,KAAOA,EAAI,IAAIE,CAAI;GACjC,AAAIC,MACA,IAAOA,EAAM,YAAYN,EAAM,KAAKH,GAAO,CAAC,CAAC,GACxCS,EAAM,QAASA,EAAM,QAAUA,EAAM,UAAUA,EAAM,OAAO,QAC7DH,EAAI,OAAOE,CAAI;EAG3B,OAGI,AADA,IAAO,KAAK,MACZ,OAAO,KAAK;EAEhB,OAAOD;CACX;CACA,aAAa,GAAK;EACd,IAAMD,IAAM,KAAK,OAAOL,GAAK,EAAI,GAC7BQ,IAAQH,EAAI,IAAIL,CAAG;EAGvB,OAFKQ,KACDH,EAAI,IAAIL,GAAK,IAAQ,IAAIN,EAAK,KAAK,UAAU,KAAK,QAAQ,CAAC,GACxDc;CACX;CACA,OAAO,GAAK,GAAQ;EAChB,OAAO,KAAK,YAAYC,EAAST,CAAG,IAC9B,KAAK,SAASU,IAAS,KAAK,uBAAO,IAAI,QAAM,IAAI,KAAK,KACtD,KAAK,WAAWA,IAAS,KAAK,yBAAS,IAAI,IAAE,IAAI,KAAK;CAChE;AACJ;AACA,SAASD,EAAS,GAAO;CACrB,QAAQ,OAAOE,GAAf;EACI,KAAK,UACD,IAAIA,MAAU,MACV;EAER,KAAK,YACD,OAAO;CACf;CACA,OAAO;AACX"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
2
2
|
function e(t) {
|
|
3
3
|
var n, r, i = "";
|
|
4
4
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
5
|
-
else if (typeof t == "object")
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
else if (typeof t == "object") {
|
|
6
|
+
if (Array.isArray(t)) {
|
|
7
|
+
var a = t.length;
|
|
8
|
+
for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
|
|
9
|
+
} else for (r in t) t[r] && (i && (i += " "), i += r);
|
|
10
|
+
}
|
|
9
11
|
return i;
|
|
10
12
|
}
|
|
11
13
|
function t() {
|
|
12
14
|
for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
|
|
13
15
|
return i;
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
export { t as default };
|
|
17
|
+
export { t as clsx, t as default };
|
|
17
18
|
|
|
18
19
|
//# sourceMappingURL=clsx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clsx.js","names":[],"sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"
|
|
1
|
+
{"version":3,"file":"clsx.js","names":["r","t","f","n","e","o","clsx"],"sources":["../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"ignoreList":[0],"mappings":";AAAA,SAASA,EAAE,GAAE;CAAC,IAAIC,GAAEC,GAAEC,IAAE;CAAG,IAAa,OAAOC,KAAjB,YAA8B,OAAOA,KAAjB,UAAmB,KAAGA;MAAO,IAAa,OAAOA,KAAjB,UAAmB;MAAG,MAAM,QAAQA,CAAC,GAAE;GAAC,IAAIC,IAAED,EAAE;GAAO,KAAI,IAAE,GAAEH,IAAEI,GAAE,KAAI,EAAEJ,OAAK,IAAED,EAAEI,EAAEH,EAAE,OAAKE,MAAI,KAAG,MAAK,KAAGD;EAAE,OAAM,KAAIA,KAAKE,GAAE,EAAEF,OAAKC,MAAI,KAAG,MAAK,KAAGD;CAAA;CAAG,OAAOC;AAAC;AAAC,SAAgBG,IAAM;CAAC,KAAI,IAAIF,GAAEH,GAAEC,IAAE,GAAEC,IAAE,IAAGE,IAAE,UAAU,QAAOH,IAAEG,GAAE,KAAI,CAAC,IAAE,UAAUH,QAAM,IAAEF,EAAEI,CAAC,OAAKD,MAAI,KAAG,MAAK,KAAGF;CAAG,OAAOE;AAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
let { url:
|
|
1
|
+
import { C as e, G as t, M as n, i as r, l as i, p as a, s as o } from "./common-CGW11Fyb.js";
|
|
2
|
+
// node_modules/graphql-ws/dist/client.js
|
|
3
|
+
function s(t) {
|
|
4
|
+
let { url: r, connectionParams: s, lazy: f = !0, onNonLazyError: p = console.error, lazyCloseTimeout: m = 0, keepAlive: h = 0, disablePong: g, connectionAckWaitTimeout: _ = 0, retryAttempts: v = 5, retryWait: y = async function(e) {
|
|
5
5
|
let t = 2 ** e;
|
|
6
6
|
await new Promise((e) => setTimeout(e, t * 1e3 + Math.floor(Math.random() * 2700 + 300)));
|
|
7
|
-
}, shouldRetry: b =
|
|
7
|
+
}, shouldRetry: b = l, on: x, webSocketImpl: S, generateID: C = function() {
|
|
8
8
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
9
9
|
let t = Math.random() * 16 | 0;
|
|
10
10
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
11
11
|
});
|
|
12
|
-
}, jsonMessageReplacer: w, jsonMessageReviver: T } =
|
|
12
|
+
}, jsonMessageReplacer: w, jsonMessageReviver: T } = t, E;
|
|
13
13
|
if (S) {
|
|
14
|
-
if (!
|
|
14
|
+
if (!d(S)) throw Error("Invalid WebSocket implementation provided");
|
|
15
15
|
E = S;
|
|
16
16
|
} else typeof WebSocket < "u" ? E = WebSocket : typeof global < "u" ? E = global.WebSocket || global.MozWebSocket : typeof window < "u" && (E = window.WebSocket || window.MozWebSocket);
|
|
17
17
|
if (!E) throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");
|
|
@@ -43,7 +43,8 @@ function o(n) {
|
|
|
43
43
|
on(e, n) {
|
|
44
44
|
let r = t[e];
|
|
45
45
|
return r.push(n), () => {
|
|
46
|
-
r.
|
|
46
|
+
let e = r.indexOf(n);
|
|
47
|
+
e > -1 && r.splice(e, 1);
|
|
47
48
|
};
|
|
48
49
|
},
|
|
49
50
|
emit(e, ...n) {
|
|
@@ -57,78 +58,85 @@ function o(n) {
|
|
|
57
58
|
}), O.on("closed", (n) => {
|
|
58
59
|
t.forEach((e) => e()), e(n);
|
|
59
60
|
})];
|
|
61
|
+
return () => t.forEach((e) => e());
|
|
60
62
|
}
|
|
61
63
|
let A, j = 0, M, N = !1, P = 0, F = !1;
|
|
62
64
|
async function I() {
|
|
63
65
|
clearTimeout(M);
|
|
64
|
-
let [
|
|
66
|
+
let [t, l] = await (A ??= new Promise((t, l) => (async () => {
|
|
65
67
|
if (N) {
|
|
66
|
-
if (await y(P), !j) return A = void 0,
|
|
68
|
+
if (await y(P), !j) return A = void 0, l({
|
|
67
69
|
code: 1e3,
|
|
68
70
|
reason: "All Subscriptions Gone"
|
|
69
71
|
});
|
|
70
72
|
P++;
|
|
71
73
|
}
|
|
72
74
|
O.emit("connecting", N);
|
|
73
|
-
let
|
|
75
|
+
let u = new D(typeof r == "function" ? await r() : r, "graphql-transport-ws"), d, f;
|
|
74
76
|
function p() {
|
|
75
77
|
isFinite(h) && h > 0 && (clearTimeout(f), f = setTimeout(() => {
|
|
76
|
-
|
|
78
|
+
u.readyState === D.OPEN && (u.send(o({ type: n.Ping })), O.emit("ping", !1, void 0));
|
|
77
79
|
}, h));
|
|
78
80
|
}
|
|
79
81
|
k((e) => {
|
|
80
|
-
A = void 0, clearTimeout(
|
|
81
|
-
}),
|
|
82
|
+
A = void 0, clearTimeout(d), clearTimeout(f), l(e), e instanceof c && (u.close(4499, "Terminated"), u.onerror = null, u.onclose = null);
|
|
83
|
+
}), u.onerror = (e) => O.emit("error", e), u.onclose = (e) => O.emit("closed", e), u.onopen = async () => {
|
|
82
84
|
try {
|
|
83
|
-
O.emit("opened",
|
|
84
|
-
let
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
type:
|
|
88
|
-
payload:
|
|
89
|
-
} : { type:
|
|
90
|
-
|
|
85
|
+
O.emit("opened", u);
|
|
86
|
+
let t = typeof s == "function" ? await s() : s;
|
|
87
|
+
if (u.readyState !== D.OPEN) return;
|
|
88
|
+
u.send(o(t ? {
|
|
89
|
+
type: n.ConnectionInit,
|
|
90
|
+
payload: t
|
|
91
|
+
} : { type: n.ConnectionInit }, w)), isFinite(_) && _ > 0 && (d = setTimeout(() => {
|
|
92
|
+
u.close(e.ConnectionAcknowledgementTimeout, "Connection acknowledgement timeout");
|
|
91
93
|
}, _)), p();
|
|
92
94
|
} catch (t) {
|
|
93
|
-
O.emit("error", t),
|
|
95
|
+
O.emit("error", t), u.close(e.InternalClientError, i(t instanceof Error ? t.message : String(t), "Internal client error"));
|
|
94
96
|
}
|
|
95
97
|
};
|
|
96
98
|
let m = !1;
|
|
97
|
-
|
|
99
|
+
u.onmessage = ({ data: r }) => {
|
|
98
100
|
try {
|
|
99
|
-
let e =
|
|
101
|
+
let e = a(r, T);
|
|
100
102
|
if (O.emit("message", e), e.type === "ping" || e.type === "pong") {
|
|
101
|
-
O.emit(e.type, !0, e.payload), e.type === "pong" ? p() : g || (
|
|
102
|
-
type:
|
|
103
|
+
O.emit(e.type, !0, e.payload), e.type === "pong" ? p() : g || (u.send(o(e.payload ? {
|
|
104
|
+
type: n.Pong,
|
|
103
105
|
payload: e.payload
|
|
104
|
-
} : { type:
|
|
106
|
+
} : { type: n.Pong }, w)), O.emit("pong", !1, e.payload));
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
109
|
if (m) return;
|
|
108
|
-
if (e.type !==
|
|
109
|
-
clearTimeout(
|
|
110
|
+
if (e.type !== n.ConnectionAck) throw Error(`First message cannot be of type ${e.type}`);
|
|
111
|
+
clearTimeout(d), m = !0, O.emit("connected", u, e.payload, N), N = !1, P = 0;
|
|
112
|
+
let i = new Promise((e, t) => k(t));
|
|
113
|
+
i.catch(() => {}), t([u, i]);
|
|
110
114
|
} catch (t) {
|
|
111
|
-
|
|
115
|
+
u.onmessage = null, O.emit("error", t), u.close(e.BadResponse, i(t instanceof Error ? t.message : String(t), "Bad response"));
|
|
112
116
|
}
|
|
113
117
|
};
|
|
114
118
|
})()));
|
|
115
|
-
|
|
116
|
-
let
|
|
119
|
+
t.readyState === D.CLOSING && await l;
|
|
120
|
+
let u = () => {}, d = new Promise((e) => u = e);
|
|
117
121
|
return [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
Promise
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
t,
|
|
123
|
+
u,
|
|
124
|
+
new Promise((e, n) => {
|
|
125
|
+
let r = k(n);
|
|
126
|
+
t.readyState !== D.OPEN && l.catch(n), d.then(() => {
|
|
127
|
+
if (r(), !j) {
|
|
128
|
+
let e = () => t.close(1e3, "Normal Closure");
|
|
129
|
+
isFinite(m) && m > 0 ? (clearTimeout(M), M = setTimeout(() => {
|
|
130
|
+
!j && t.readyState === D.OPEN && e();
|
|
131
|
+
}, m)) : e();
|
|
132
|
+
}
|
|
133
|
+
e();
|
|
134
|
+
});
|
|
135
|
+
})
|
|
128
136
|
];
|
|
129
137
|
}
|
|
130
138
|
function L(t) {
|
|
131
|
-
if (
|
|
139
|
+
if (l(t) && (u(t.code) || [
|
|
132
140
|
e.InternalServerError,
|
|
133
141
|
e.InternalClientError,
|
|
134
142
|
e.BadRequest,
|
|
@@ -139,7 +147,7 @@ function o(n) {
|
|
|
139
147
|
e.TooManyInitialisationRequests
|
|
140
148
|
].includes(t.code))) throw t;
|
|
141
149
|
if (F) return !1;
|
|
142
|
-
if (
|
|
150
|
+
if (l(t) && t.code === 1e3) return j > 0;
|
|
143
151
|
if (!v || P >= v || !b(t)) throw t;
|
|
144
152
|
return N = !0;
|
|
145
153
|
}
|
|
@@ -155,35 +163,35 @@ function o(n) {
|
|
|
155
163
|
}
|
|
156
164
|
}
|
|
157
165
|
})();
|
|
158
|
-
function R(e,
|
|
159
|
-
let r = C(e), i = !1,
|
|
166
|
+
function R(e, t) {
|
|
167
|
+
let r = C(e), i = !1, a = !1, s = () => {
|
|
160
168
|
j--, i = !0;
|
|
161
169
|
};
|
|
162
170
|
return (async () => {
|
|
163
171
|
for (j++;;) try {
|
|
164
172
|
let [c, l, u] = await I();
|
|
165
|
-
if (i) return l();
|
|
173
|
+
if (i) return u.catch(() => {}), l();
|
|
166
174
|
let d = O.onMessage(r, (e) => {
|
|
167
175
|
switch (e.type) {
|
|
168
|
-
case
|
|
169
|
-
|
|
176
|
+
case n.Next:
|
|
177
|
+
t.next(e.payload);
|
|
170
178
|
return;
|
|
171
|
-
case
|
|
172
|
-
|
|
179
|
+
case n.Error:
|
|
180
|
+
a = !0, i = !0, t.error(e.payload), s();
|
|
173
181
|
return;
|
|
174
|
-
case
|
|
182
|
+
case n.Complete:
|
|
175
183
|
i = !0, s();
|
|
176
184
|
return;
|
|
177
185
|
}
|
|
178
186
|
});
|
|
179
|
-
c.send(
|
|
187
|
+
c.send(o({
|
|
180
188
|
id: r,
|
|
181
|
-
type:
|
|
189
|
+
type: n.Subscribe,
|
|
182
190
|
payload: e
|
|
183
191
|
}, w)), s = () => {
|
|
184
|
-
!i && c.readyState === D.OPEN && c.send(
|
|
192
|
+
!i && c.readyState === D.OPEN && c.send(o({
|
|
185
193
|
id: r,
|
|
186
|
-
type:
|
|
194
|
+
type: n.Complete
|
|
187
195
|
}, w)), j--, i = !0, l();
|
|
188
196
|
}, await u.finally(d);
|
|
189
197
|
return;
|
|
@@ -191,9 +199,9 @@ function o(n) {
|
|
|
191
199
|
if (!L(e)) return;
|
|
192
200
|
}
|
|
193
201
|
})().then(() => {
|
|
194
|
-
|
|
202
|
+
a || t.complete();
|
|
195
203
|
}).catch((e) => {
|
|
196
|
-
|
|
204
|
+
t.error(e);
|
|
197
205
|
}), () => {
|
|
198
206
|
i || s();
|
|
199
207
|
};
|
|
@@ -238,22 +246,22 @@ function o(n) {
|
|
|
238
246
|
}
|
|
239
247
|
},
|
|
240
248
|
terminate() {
|
|
241
|
-
A && O.emit("closed", new
|
|
249
|
+
A && O.emit("closed", new c());
|
|
242
250
|
}
|
|
243
251
|
};
|
|
244
252
|
}
|
|
245
|
-
var
|
|
253
|
+
var c = class extends Error {
|
|
246
254
|
name = "TerminatedCloseEvent";
|
|
247
255
|
message = "4499: Terminated";
|
|
248
256
|
code = 4499;
|
|
249
257
|
reason = "Terminated";
|
|
250
258
|
wasClean = !1;
|
|
251
259
|
};
|
|
252
|
-
function c(e) {
|
|
253
|
-
return n(e) && "code" in e && "reason" in e;
|
|
254
|
-
}
|
|
255
260
|
function l(e) {
|
|
256
|
-
return
|
|
261
|
+
return r(e) && "code" in e && "reason" in e;
|
|
262
|
+
}
|
|
263
|
+
function u(e) {
|
|
264
|
+
return ![
|
|
257
265
|
1e3,
|
|
258
266
|
1001,
|
|
259
267
|
1006,
|
|
@@ -261,12 +269,11 @@ function l(e) {
|
|
|
261
269
|
1012,
|
|
262
270
|
1013,
|
|
263
271
|
1014
|
|
264
|
-
].includes(e)
|
|
272
|
+
].includes(e) && e >= 1e3 && e <= 1999;
|
|
265
273
|
}
|
|
266
|
-
function
|
|
274
|
+
function d(e) {
|
|
267
275
|
return typeof e == "function" && "constructor" in e && "CLOSED" in e && "CLOSING" in e && "CONNECTING" in e && "OPEN" in e;
|
|
268
276
|
}
|
|
269
|
-
|
|
270
|
-
export { o as createClient };
|
|
277
|
+
export { e as CloseCode, t as GRAPHQL_TRANSPORT_WS_PROTOCOL, n as MessageType, c as TerminatedCloseEvent, s as createClient, a as parseMessage, o as stringifyMessage };
|
|
271
278
|
|
|
272
279
|
//# sourceMappingURL=client.js.map
|