@absolutejs/absolute 0.20.0-beta.130 → 0.20.0-beta.132
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/CHANGELOG.md +28 -0
- package/changelog.json +52 -0
- package/dist/angular/browser.js +406 -396
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -3
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -4
- package/dist/angular/index.js +560 -701
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +197 -338
- package/dist/angular/server.js.map +5 -5
- package/dist/build/buildWorker.js +27 -35
- package/dist/build.js +3833 -5876
- package/dist/build.js.map +4 -4
- package/dist/cli/{add-9sa7e3vd.js → add-hvqeg5sz.js} +23 -25
- package/dist/cli/{analyze-c1sep5y9.js → analyze-c2x2aym5.js} +6 -7
- package/dist/cli/androidEmulatorController-j73a1br6.js +22 -0
- package/dist/cli/{androidNativeWatcher-dnp95nk2.js → androidNativeWatcher-ctbnsr1v.js} +11 -14
- package/dist/cli/{api-2hd8cahp.js → api-rk13rfd9.js} +11 -13
- package/dist/cli/{build-857rc1ds.js → build-20y4b6rj.js} +8 -9
- package/dist/cli/{buildDepVendor-8akhr8n8.js → buildDepVendor-axqvbbm6.js} +5 -170
- package/dist/cli/{compile-9by2vxy5.js → compile-nf4qsqyd.js} +45 -48
- package/dist/cli/config/client.js +8 -8
- package/dist/cli/config/server.js +5615 -5595
- package/dist/cli/config-3te1fbry.js +7 -0
- package/dist/cli/{db-8wweexdp.js → db-p8pc325y.js} +5 -13
- package/dist/cli/{dev-qg7fr16s.js → dev-6f0gry3y.js} +75 -77
- package/dist/cli/{devCert-avr89zf3.js → devCert-n33ep8pg.js} +0 -3
- package/dist/cli/{doctor-mbh9bk05.js → doctor-8rm8p4dm.js} +13 -14
- package/dist/cli/emulatorDoctor-cwa70kgt.js +17 -0
- package/dist/cli/emulatorInstaller-dx3fmm2m.js +14 -0
- package/dist/cli/env-2107nff1.js +11 -0
- package/dist/cli/eslint-zz0t0kfp.js +17 -0
- package/dist/cli/eslintChunked-wg10jj9m.js +12 -0
- package/dist/cli/expoDevController-s70fj7vf.js +16 -0
- package/dist/cli/{expoNativeWatcher-rmc95bak.js → expoNativeWatcher-aakp7xvj.js} +1 -5
- package/dist/cli/expoProject-zy02tbfg.js +10 -0
- package/dist/cli/{generate-069p0dk3.js → generate-nz4w03yz.js} +19 -21
- package/dist/cli/{heapDiff-87v24x7p.js → heapDiff-2etr2r26.js} +5 -6
- package/dist/cli/{htmx-5wh1jh75.js → htmx-0xcaqrny.js} +12 -14
- package/dist/cli/{index-sjvydg2r.js → index-1ff9q1vx.js} +7 -7
- package/dist/cli/{index-rqbk0b30.js → index-1qewxkgy.js} +26 -26
- package/dist/cli/{index-prwyfnn3.js → index-1x1vah31.js} +2 -2
- package/dist/cli/{index-ddakkws4.js → index-31j3beht.js} +13 -13
- package/dist/cli/{index-j2nw3edf.js → index-3gtnqd57.js} +5 -5
- package/dist/cli/{index-54q7pxcx.js → index-434b7j4a.js} +2 -32
- package/dist/cli/{index-w5vswatm.js → index-43a1vvb7.js} +6 -10
- package/dist/cli/{index-nxcwg9ma.js → index-5sjk7daj.js} +31 -31
- package/dist/cli/{index-6j1xaheg.js → index-73sk1ney.js} +5 -5
- package/dist/cli/{index-3x5wpx5d.js → index-8kdmmgvc.js} +2 -2
- package/dist/cli/{index-1ys3dnrs.js → index-8w2wazrk.js} +34 -34
- package/dist/cli/{index-wtfnv3n2.js → index-92hmw204.js} +3 -3
- package/dist/cli/{index-vdbn8brx.js → index-c3tqbpkq.js} +40 -41
- package/dist/cli/{index-mywsk201.js → index-fde3c297.js} +1 -1
- package/dist/cli/{index-wctgx65x.js → index-hfvxsgf4.js} +48 -31
- package/dist/cli/{index-255xs63d.js → index-j57pgg5m.js} +10 -10
- package/dist/cli/{index-5cgsrv62.js → index-jcjwsdqt.js} +13 -182
- package/dist/cli/{index-00wfffav.js → index-k4t9k1xk.js} +5 -5
- package/dist/cli/{index-yxgaf8j0.js → index-m1vntzf1.js} +7 -5
- package/dist/cli/{index-9r7n9dqp.js → index-ma1dw7x2.js} +1 -1
- package/dist/cli/index-pch0v1z6.js +60 -0
- package/dist/cli/{index-8nym68py.js → index-ppxed116.js} +1 -1
- package/dist/cli/{index-9kwmb3c0.js → index-qyxd5n9a.js} +3 -3
- package/dist/cli/{index-tn4crd40.js → index-r62705dc.js} +12 -12
- package/dist/cli/{index-hty8111z.js → index-r915cvqp.js} +17 -17
- package/dist/cli/{index-exdd5k1g.js → index-rrxeqrbn.js} +2 -2
- package/dist/cli/{index-keg69zm1.js → index-snbzdwb9.js} +5 -5
- package/dist/cli/{index-v26ze17p.js → index-thqwfzy8.js} +3 -3
- package/dist/cli/{index-0hr7c4qe.js → index-vdnmqkt8.js} +14 -18
- package/dist/cli/{index-vkkqe08e.js → index-vj2v38sq.js} +29 -29
- package/dist/cli/{index-erngp7a9.js → index-wy0yh4jj.js} +16 -16
- package/dist/cli/{index-1cypb2zn.js → index-xcr3r6a1.js} +8 -8
- package/dist/cli/index.js +44 -48
- package/dist/cli/{info-d74dr585.js → info-kx5510rq.js} +7 -7
- package/dist/cli/{inspect-23chj4nc.js → inspect-5dj06x0m.js} +18 -20
- package/dist/cli/{iosNativeWatcher-kggp7j9a.js → iosNativeWatcher-zx49pzej.js} +12 -16
- package/dist/cli/iosSimulatorController-haa1cc3p.js +23 -0
- package/dist/cli/{islands-wpqgmwh0.js → islands-z4adh55n.js} +8 -9
- package/dist/cli/{lintProof-wx3b6dzy.js → lintProof-qcwdvzcz.js} +12 -17
- package/dist/cli/{logs-bx2n5ey6.js → logs-3p2vrq5h.js} +8 -10
- package/dist/cli/{ls-kvmcmd2j.js → ls-nkspq73y.js} +13 -14
- package/dist/cli/{mem-apbk7bx4.js → mem-h3f497cr.js} +10 -14
- package/dist/cli/{migrate-p4rp5r6b.js → migrate-52bqqp08.js} +7 -8
- package/dist/cli/{mobile-43q3zmjf.js → mobile-m0cdh8cf.js} +572 -575
- package/dist/cli/nativeAuth-ysv0x5dy.js +27 -0
- package/dist/cli/patchedBun-m7vj5sks.js +9 -0
- package/dist/cli/prerender-mfnwsvyt.js +7 -0
- package/dist/cli/{prettier-vtk5yaw4.js → prettier-c1624g36.js} +2 -6
- package/dist/cli/{ps-8y28kzmb.js → ps-0jedm91n.js} +12 -16
- package/dist/cli/{psTui-8e96mwgz.js → psTui-tpr5nbmc.js} +28 -30
- package/dist/cli/remoteMacProtocol-v3ax0y0f.js +41 -0
- package/dist/cli/{remove-3fd1z2hx.js → remove-z0brj5nd.js} +16 -18
- package/dist/cli/{rewriteImports-d1gmaa68.js → rewriteImports-k6rjjmg1.js} +2 -100
- package/dist/cli/{routes-0xpanj8z.js → routes-ey0sw1eq.js} +7 -9
- package/dist/cli/start-3z3gtgm0.js +20 -0
- package/dist/cli/telemetry-3wnc06wa.js +9 -0
- package/dist/cli/{tunnelRelay-5at2v8w6.js → tunnelRelay-19ay0fxn.js} +3 -4
- package/dist/cli/{typecheck-yj9s13eb.js → typecheck-nmf6e7k7.js} +147 -149
- package/dist/cli/{workspace-m56sgfkc.js → workspace-yetzedke.js} +32 -36
- package/dist/client/chunks/{index-dk743xs6.js → index-8m2qq61n.js} +12 -8
- package/dist/client/chunks/{index-dk743xs6.js.map → index-8m2qq61n.js.map} +4 -3
- package/dist/client/chunks/{index-m35nbkdp.js → islands-rc28k5sx.js} +104 -42
- package/dist/client/chunks/islands-rc28k5sx.js.map +15 -0
- package/dist/client/chunks/{react-yq4ss9y4.js → react-dcvkaba2.js} +5 -7
- package/dist/client/chunks/{react-yq4ss9y4.js.map → react-dcvkaba2.js.map} +2 -2
- package/dist/client/chunks/{svelte-s0c964kb.js → svelte-4yfa5bxa.js} +2 -4
- package/dist/client/chunks/{svelte-s0c964kb.js.map → svelte-4yfa5bxa.js.map} +2 -2
- package/dist/client/chunks/{vue-rdskrnyg.js → vue-a84fzp3v.js} +2 -4
- package/dist/client/chunks/{vue-rdskrnyg.js.map → vue-a84fzp3v.js.map} +2 -2
- package/dist/client/index.js +42 -15
- package/dist/client/index.js.map +2 -2
- package/dist/client/prefetch.js +1 -3
- package/dist/client/prefetch.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +1 -64
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -64
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/serverBootstrap.js +1802 -2018
- package/dist/index.js +5247 -8794
- package/dist/index.js.map +9 -20
- package/dist/islands/browser.js +13 -3
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +26 -142
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +13 -3
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +1067 -2182
- package/dist/mobile/index.js.map +2 -2
- package/dist/mobile/remoteMacAgentEntry.js +156 -156
- package/dist/mobile/shellAuth.js +0 -16
- package/dist/mobile/shellBootstrap.js +734 -724
- package/dist/mobile/shellExpoAuth.js +4 -18
- package/dist/mobile/shellExpoDevices.js +0 -16
- package/dist/mobile/shellExpoSync.js +0 -16
- package/dist/mobile/shellSync.js +3 -19
- package/dist/mobile/shellUpdate.js +5 -21
- package/dist/mobile/uiPrimitives.js +0 -16
- package/dist/react/browser.js +15 -5
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js +68 -58
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/hooks/index.js +1 -63
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +56 -195
- package/dist/react/index.js.map +5 -5
- package/dist/react/jsxDevRuntimeCompat.js +1 -64
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +1 -64
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +1 -64
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +1 -64
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +38 -51
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/config/server.d.ts +7 -129
- package/dist/src/cli/patchedBun.d.ts +14 -14
- package/dist/src/cli/serverBundleExternals.d.ts +17 -2
- package/dist/src/core/prepare.d.ts +149 -1805
- package/dist/src/core/requestContext.d.ts +1 -1
- package/dist/src/dev/requestInspector.d.ts +1 -1
- package/dist/src/mobile/associationFiles.d.ts +2 -2
- package/dist/src/mobile/compatibilityDispatcher.d.ts +1 -1
- package/dist/src/mobile/mobilePreview.d.ts +8 -130
- package/dist/src/mobile/updateServer.d.ts +2 -2
- package/dist/src/plugins/devtoolsJson.d.ts +2 -2
- package/dist/src/plugins/hmr.d.ts +2 -2
- package/dist/src/plugins/imageOptimizer.d.ts +2 -151
- package/dist/src/plugins/telemetryPlugin.d.ts +1 -19
- package/dist/svelte/browser.js +13 -3
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +66 -210
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/server.js +51 -99
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +0 -6
- package/dist/vue/browser.js +13 -3
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +13 -3
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +62 -50
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +1115 -1258
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +42 -59
- package/dist/vue/server.js.map +5 -5
- package/package.json +9 -9
- package/dist/cli/androidEmulatorController-sj141e1c.js +0 -30
- package/dist/cli/config-rjeexvza.js +0 -8
- package/dist/cli/emulatorDoctor-gzarrsex.js +0 -18
- package/dist/cli/emulatorInstaller-pjw4ex6q.js +0 -15
- package/dist/cli/env-4f6f6z69.js +0 -14
- package/dist/cli/eslint-qfkxe89p.js +0 -20
- package/dist/cli/eslintChunked-7ef700pn.js +0 -21
- package/dist/cli/expoDevController-weywa74d.js +0 -26
- package/dist/cli/expoProject-w2pzjwnx.js +0 -11
- package/dist/cli/index-1rabqyq0.js +0 -7
- package/dist/cli/index-ar4gz15x.js +0 -60
- package/dist/cli/iosSimulatorController-xcxxfkzx.js +0 -34
- package/dist/cli/nativeAuth-zx4tsb1f.js +0 -38
- package/dist/cli/patchedBun-zjtrn2s4.js +0 -38
- package/dist/cli/prerender-yex2zwj3.js +0 -18
- package/dist/cli/remoteMacProtocol-r38jhg44.js +0 -69
- package/dist/cli/start-gzhrkhxe.js +0 -23
- package/dist/cli/telemetry-94rka1w2.js +0 -14
- package/dist/client/chunks/angularPatch-arh4sr68.js +0 -157
- package/dist/client/chunks/angularPatch-arh4sr68.js.map +0 -10
- package/dist/client/chunks/index-jrcwp722.js +0 -12
- package/dist/client/chunks/index-jrcwp722.js.map +0 -10
- package/dist/client/chunks/index-m35nbkdp.js.map +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js.map +0 -9
- package/dist/client/chunks/islands-50dg63j9.js +0 -284
- package/dist/client/chunks/islands-50dg63j9.js.map +0 -14
- /package/dist/cli/{index-me8nczrw.js → index-039rh39e.js} +0 -0
- /package/dist/cli/{index-bw4ktfnz.js → index-1y5mmnwg.js} +0 -0
- /package/dist/cli/{index-5xfxd7xa.js → index-3wm8p7rg.js} +0 -0
- /package/dist/cli/{index-4rme31py.js → index-420h9hq7.js} +0 -0
- /package/dist/cli/{index-4rhxthsy.js → index-65kqn88a.js} +0 -0
- /package/dist/cli/{index-r8x3839e.js → index-71gchbzt.js} +0 -0
- /package/dist/cli/{index-s2tazax7.js → index-92g14j47.js} +0 -0
- /package/dist/cli/{index-j66p8hn5.js → index-bwsa6ax4.js} +0 -0
- /package/dist/cli/{index-bzs19w3r.js → index-e6ysp900.js} +0 -0
- /package/dist/cli/{index-06cmrcdq.js → index-h7qhz02e.js} +0 -0
- /package/dist/cli/{index-6h54jqdq.js → index-hg54jyts.js} +0 -0
- /package/dist/cli/{index-czwrxgdj.js → index-hxqprc80.js} +0 -0
- /package/dist/cli/{index-zh6hhrwy.js → index-jjfbjv1z.js} +0 -0
- /package/dist/cli/{index-fc9vxw56.js → index-prs14ys9.js} +0 -0
- /package/dist/cli/{index-v1k46q3x.js → index-tx0kx9zx.js} +0 -0
- /package/dist/cli/{index-fhaf3tdk.js → index-x8x0f3ha.js} +0 -0
- /package/dist/cli/{index-18q9qc7f.js → index-ypcqx24p.js} +0 -0
package/dist/angular/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
return cached;
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
22
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
23
|
for (let key of __getOwnPropNames(mod))
|
|
24
24
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -59,7 +59,17 @@ var __legacyMetadataTS = (k, v) => {
|
|
|
59
59
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
60
60
|
return Reflect.metadata(k, v);
|
|
61
61
|
};
|
|
62
|
-
var __esm = (fn, res) => () =>
|
|
62
|
+
var __esm = (fn, res, err) => () => {
|
|
63
|
+
if (fn)
|
|
64
|
+
try {
|
|
65
|
+
res = fn(fn = 0);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
err = [e];
|
|
68
|
+
}
|
|
69
|
+
if (err)
|
|
70
|
+
throw err[0];
|
|
71
|
+
return res;
|
|
72
|
+
};
|
|
63
73
|
var __require = import.meta.require;
|
|
64
74
|
|
|
65
75
|
// src/angular/httpTransferCache.ts
|
|
@@ -369,11 +379,6 @@ var init_inlinePageCss = __esm(() => {
|
|
|
369
379
|
});
|
|
370
380
|
|
|
371
381
|
// src/utils/ssrErrorPage.ts
|
|
372
|
-
var exports_ssrErrorPage = {};
|
|
373
|
-
__export(exports_ssrErrorPage, {
|
|
374
|
-
buildErrorPage: () => buildErrorPage,
|
|
375
|
-
ssrErrorPage: () => ssrErrorPage
|
|
376
|
-
});
|
|
377
382
|
var errorPageHtml = ({
|
|
378
383
|
framework,
|
|
379
384
|
hint,
|
|
@@ -844,10 +849,6 @@ var init_resolveAngularPackage = () => {};
|
|
|
844
849
|
var ENV_VAR = "NODE_ENV", isDevelopmentRuntime = () => process.env[ENV_VAR] === "development", isProductionRuntime = () => process.env[ENV_VAR] === "production";
|
|
845
850
|
|
|
846
851
|
// src/angular/angularPatch.ts
|
|
847
|
-
var exports_angularPatch = {};
|
|
848
|
-
__export(exports_angularPatch, {
|
|
849
|
-
applyPatches: () => applyPatches
|
|
850
|
-
});
|
|
851
852
|
var ensureHead = (doc) => {
|
|
852
853
|
if (!doc || doc.head || !doc.documentElement) {
|
|
853
854
|
return;
|
|
@@ -1003,8 +1004,8 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1003
1004
|
if (!isProductionRuntime()) {
|
|
1004
1005
|
await import("@angular/compiler");
|
|
1005
1006
|
}
|
|
1006
|
-
|
|
1007
|
-
await
|
|
1007
|
+
await Promise.resolve().then(() => init_angularPatch());
|
|
1008
|
+
await applyPatches();
|
|
1008
1009
|
const useBareSpecifiers = !isProductionRuntime();
|
|
1009
1010
|
const [platformBrowser, platformServer, common, core] = await Promise.all([
|
|
1010
1011
|
useBareSpecifiers ? import("@angular/platform-browser") : import(resolveAngularRuntimePath("@angular/platform-browser")),
|
|
@@ -1232,49 +1233,7 @@ var init_ssrRender = __esm(() => {
|
|
|
1232
1233
|
});
|
|
1233
1234
|
|
|
1234
1235
|
// src/angular/islands.ts
|
|
1235
|
-
var
|
|
1236
|
-
__export(exports_islands, {
|
|
1237
|
-
getAngularIslandSelector: () => getAngularIslandSelector,
|
|
1238
|
-
isAngularComponent: () => isAngularComponent,
|
|
1239
|
-
mountAngularIsland: () => mountAngularIsland,
|
|
1240
|
-
renderAngularIslandToHtml: () => renderAngularIslandToHtml
|
|
1241
|
-
});
|
|
1242
|
-
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
|
|
1243
|
-
const firstChild = rootElement.firstElementChild;
|
|
1244
|
-
if (!(firstChild instanceof HTMLElement)) {
|
|
1245
|
-
return null;
|
|
1246
|
-
}
|
|
1247
|
-
const selector = firstChild.tagName.toLowerCase();
|
|
1248
|
-
return selector.length > 0 ? selector : null;
|
|
1249
|
-
}, getClientAngularComponentSelector = (component) => {
|
|
1250
|
-
const maybeDef = Reflect.get(component, "\u0275cmp");
|
|
1251
|
-
if (typeof maybeDef !== "object" || maybeDef === null) {
|
|
1252
|
-
return null;
|
|
1253
|
-
}
|
|
1254
|
-
const maybeSelectors = Reflect.get(maybeDef, "selectors");
|
|
1255
|
-
if (!Array.isArray(maybeSelectors)) {
|
|
1256
|
-
return null;
|
|
1257
|
-
}
|
|
1258
|
-
const [firstSelectorGroup] = maybeSelectors;
|
|
1259
|
-
if (!Array.isArray(firstSelectorGroup)) {
|
|
1260
|
-
return null;
|
|
1261
|
-
}
|
|
1262
|
-
const [selector] = firstSelectorGroup;
|
|
1263
|
-
return typeof selector === "string" && selector.length > 0 ? selector : null;
|
|
1264
|
-
}, createAngularIslandApp = async () => {
|
|
1265
|
-
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("@angular/core");
|
|
1266
|
-
const { createApplication } = await import("@angular/platform-browser");
|
|
1267
|
-
const app = await createApplication({
|
|
1268
|
-
providers: [provideZonelessChangeDetection()]
|
|
1269
|
-
});
|
|
1270
|
-
const environmentInjector = app.injector.get(EnvironmentInjector);
|
|
1271
|
-
return { app, environmentInjector };
|
|
1272
|
-
}, angularIslandAppPromise = null, getAngularIslandApp = async () => {
|
|
1273
|
-
if (!angularIslandAppPromise) {
|
|
1274
|
-
angularIslandAppPromise = createAngularIslandApp();
|
|
1275
|
-
}
|
|
1276
|
-
return angularIslandAppPromise;
|
|
1277
|
-
}, wrapperMetadataCache, requestRenderCache, getRequestRenderCache = () => {
|
|
1236
|
+
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, wrapperMetadataCache, requestRenderCache, getRequestRenderCache = () => {
|
|
1278
1237
|
const requestId = getSsrContextId();
|
|
1279
1238
|
if (!requestId) {
|
|
1280
1239
|
return null;
|
|
@@ -1294,9 +1253,9 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
1294
1253
|
return `${componentName}:${JSON.stringify(props)}`;
|
|
1295
1254
|
}, buildAngularIslandWrapperMetadata = async (component, islandId, wrapperKey) => {
|
|
1296
1255
|
const deps = await getAngularDeps();
|
|
1297
|
-
const { Component, InjectionToken
|
|
1256
|
+
const { Component, InjectionToken, NgComponentOutlet, inject } = deps;
|
|
1298
1257
|
const selector = getAngularIslandSelector(islandId);
|
|
1299
|
-
const propsToken = new
|
|
1258
|
+
const propsToken = new InjectionToken(`${wrapperKey}:props`);
|
|
1300
1259
|
|
|
1301
1260
|
class AngularIslandWrapperComponent {
|
|
1302
1261
|
constructor() {
|
|
@@ -1336,36 +1295,6 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
1336
1295
|
throw new Error(`Could not close Angular island root "${selector}".`);
|
|
1337
1296
|
}
|
|
1338
1297
|
return html.slice(start, end + endTag.length);
|
|
1339
|
-
}, mountAngularIsland = async (component, element, props, islandId) => {
|
|
1340
|
-
await import("@angular/compiler");
|
|
1341
|
-
const { createComponent, inputBinding } = await import("@angular/core");
|
|
1342
|
-
const selector = getAngularIslandSelector(islandId);
|
|
1343
|
-
const { app, environmentInjector } = await getAngularIslandApp();
|
|
1344
|
-
let rootElement = element.querySelector(selector);
|
|
1345
|
-
if (!(rootElement instanceof HTMLElement)) {
|
|
1346
|
-
element.innerHTML = `<${selector}></${selector}>`;
|
|
1347
|
-
rootElement = element.querySelector(selector);
|
|
1348
|
-
}
|
|
1349
|
-
if (!(rootElement instanceof HTMLElement))
|
|
1350
|
-
return app;
|
|
1351
|
-
const componentSelector = getClientAngularComponentSelector(component) ?? getSelectorFromRenderedIsland(rootElement);
|
|
1352
|
-
if (!componentSelector)
|
|
1353
|
-
return app;
|
|
1354
|
-
rootElement.innerHTML = `<${componentSelector}></${componentSelector}>`;
|
|
1355
|
-
const hostElement = rootElement.querySelector(componentSelector);
|
|
1356
|
-
if (!(hostElement instanceof HTMLElement))
|
|
1357
|
-
return app;
|
|
1358
|
-
const bindings = Object.entries(props).map(([key, value]) => inputBinding(key, () => value));
|
|
1359
|
-
const componentRef = createComponent(component, {
|
|
1360
|
-
bindings,
|
|
1361
|
-
environmentInjector,
|
|
1362
|
-
hostElement
|
|
1363
|
-
});
|
|
1364
|
-
app.attachView(componentRef.hostView);
|
|
1365
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
1366
|
-
window.__ABS_ANGULAR_ISLAND_APPS__ ??= [];
|
|
1367
|
-
window.__ABS_ANGULAR_ISLAND_APPS__.push(app);
|
|
1368
|
-
return app;
|
|
1369
1298
|
}, renderAngularIslandToHtml = async (component, props, islandId) => {
|
|
1370
1299
|
const requestCache = getRequestRenderCache();
|
|
1371
1300
|
const renderCacheKey = getIslandRenderCacheKey(component, props);
|
|
@@ -1400,8 +1329,8 @@ var init_islands = __esm(() => {
|
|
|
1400
1329
|
|
|
1401
1330
|
// src/core/islandSsr.ts
|
|
1402
1331
|
var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
1403
|
-
|
|
1404
|
-
return
|
|
1332
|
+
await Promise.resolve().then(() => init_islands());
|
|
1333
|
+
return renderAngularIslandToHtml(component, props, islandId);
|
|
1405
1334
|
}, renderAngularIslandToHtml2, LEADING_HOISTED_RESOURCE_RE, stripLeadingHoistedResources = (html) => {
|
|
1406
1335
|
let result = html;
|
|
1407
1336
|
let match = LEADING_HOISTED_RESOURCE_RE.exec(result);
|
|
@@ -1740,25 +1669,9 @@ var init_specifierRewriter = __esm(() => {
|
|
|
1740
1669
|
});
|
|
1741
1670
|
|
|
1742
1671
|
// src/build/rewriteImportsPlugin.ts
|
|
1743
|
-
var exports_rewriteImportsPlugin = {};
|
|
1744
|
-
__export(exports_rewriteImportsPlugin, {
|
|
1745
|
-
buildWithImportRewrite: () => buildWithImportRewrite,
|
|
1746
|
-
fixMissingReExportNamespacesInContent: () => fixMissingReExportNamespacesInContent,
|
|
1747
|
-
jsRewriteImports: () => jsRewriteImports,
|
|
1748
|
-
rewriteBuildOutputs: () => rewriteBuildOutputs,
|
|
1749
|
-
rewriteBuildOutputsWith: () => rewriteBuildOutputsWith,
|
|
1750
|
-
rewriteImportsInContent: () => rewriteImportsInContent,
|
|
1751
|
-
rewriteVendorDirectories: () => rewriteVendorDirectories
|
|
1752
|
-
});
|
|
1753
1672
|
import { readdir } from "fs/promises";
|
|
1754
1673
|
import { join as join2 } from "path";
|
|
1755
|
-
var REEXPORT_PATTERN, IMPORT_PATH_PATTERN, isMissingFile = (error) => error instanceof Error && ("code" in error) && error.code === "ENOENT",
|
|
1756
|
-
const result = await pendingBuild;
|
|
1757
|
-
if (result.outputs.length > 0) {
|
|
1758
|
-
await rewriteBuildOutputs(result.outputs, vendorPaths);
|
|
1759
|
-
}
|
|
1760
|
-
return result;
|
|
1761
|
-
}, fixMissingReExportNamespacesInContent = (content) => {
|
|
1674
|
+
var REEXPORT_PATTERN, IMPORT_PATH_PATTERN, isMissingFile = (error) => error instanceof Error && ("code" in error) && error.code === "ENOENT", fixMissingReExportNamespacesInContent = (content) => {
|
|
1762
1675
|
const missing = collectMissingNamespaceImports(content);
|
|
1763
1676
|
if (missing.length === 0)
|
|
1764
1677
|
return content;
|
|
@@ -1801,10 +1714,6 @@ ${content}`;
|
|
|
1801
1714
|
missing.push({ ident, path: sourcePath });
|
|
1802
1715
|
}
|
|
1803
1716
|
return missing;
|
|
1804
|
-
}, jsRewriteImports = (content, replacements) => rewriteSpecifiers(content, compileSpecifierRewriter(Object.fromEntries(replacements)), { sweep: false }), rewriteBuildOutputs = async (outputs, vendorPaths) => {
|
|
1805
|
-
if (Object.keys(vendorPaths).length === 0)
|
|
1806
|
-
return;
|
|
1807
|
-
await Promise.all(outputs.filter(isReadableArtifact).map((artifact) => rewriteArtifact(artifact, vendorPaths)));
|
|
1808
1717
|
}, isReadableArtifact = (artifact) => artifact.path.endsWith(".js"), readArtifactText = async (artifact) => {
|
|
1809
1718
|
try {
|
|
1810
1719
|
return await artifact.text();
|
|
@@ -1879,12 +1788,12 @@ var serverCacheRoot, compiledModuleCache, ANGULAR_SPECIFIER_RE, getCachedModuleP
|
|
|
1879
1788
|
const relativeSourcePath = relative(process.cwd(), sourcePath).replace(/\\/g, "/");
|
|
1880
1789
|
const normalizedSourcePath = relativeSourcePath.startsWith("..") ? sourcePath.replace(/[:\\/]/g, "_") : relativeSourcePath;
|
|
1881
1790
|
return join3(serverCacheRoot, `${normalizedSourcePath}.server.js`);
|
|
1882
|
-
}, collectVendorPaths = (
|
|
1791
|
+
}, collectVendorPaths = (code) => {
|
|
1883
1792
|
const vendorPaths = {};
|
|
1884
1793
|
if (!isProductionRuntime()) {
|
|
1885
1794
|
return vendorPaths;
|
|
1886
1795
|
}
|
|
1887
|
-
const specifiers = new Set([...
|
|
1796
|
+
const specifiers = new Set([...code.matchAll(ANGULAR_SPECIFIER_RE)].map((match) => match[1]));
|
|
1888
1797
|
specifiers.forEach((specifier) => {
|
|
1889
1798
|
if (!specifier)
|
|
1890
1799
|
return;
|
|
@@ -1909,8 +1818,8 @@ var serverCacheRoot, compiledModuleCache, ANGULAR_SPECIFIER_RE, getCachedModuleP
|
|
|
1909
1818
|
throw new Error(`Failed to compile Angular island server module for "${sourcePath}":
|
|
1910
1819
|
${message}`);
|
|
1911
1820
|
}
|
|
1912
|
-
const
|
|
1913
|
-
const rewritten = rewriteImportsInContent(
|
|
1821
|
+
const code = await entry.text();
|
|
1822
|
+
const rewritten = rewriteImportsInContent(code, collectVendorPaths(code));
|
|
1914
1823
|
const modulePath = getCachedModulePath(sourcePath);
|
|
1915
1824
|
await mkdir(dirname(modulePath), { recursive: true });
|
|
1916
1825
|
await Bun.write(modulePath, rewritten);
|
|
@@ -2112,26 +2021,6 @@ var init_lowerAwaitSlotSyntax = __esm(() => {
|
|
|
2112
2021
|
});
|
|
2113
2022
|
|
|
2114
2023
|
// src/build/stylePreprocessor.ts
|
|
2115
|
-
var exports_stylePreprocessor = {};
|
|
2116
|
-
__export(exports_stylePreprocessor, {
|
|
2117
|
-
addStyleImporter: () => addStyleImporter,
|
|
2118
|
-
compileStyleFileIfNeeded: () => compileStyleFileIfNeeded,
|
|
2119
|
-
compileStyleFileIfNeededSync: () => compileStyleFileIfNeededSync,
|
|
2120
|
-
compileStyleSource: () => compileStyleSource,
|
|
2121
|
-
createStylePreprocessorPlugin: () => createStylePreprocessorPlugin,
|
|
2122
|
-
createStyleTransformConfig: () => createStyleTransformConfig,
|
|
2123
|
-
createSvelteStylePreprocessor: () => createSvelteStylePreprocessor,
|
|
2124
|
-
findStyleEntriesImporting: () => findStyleEntriesImporting,
|
|
2125
|
-
forgetStyleEntry: () => forgetStyleEntry,
|
|
2126
|
-
getCssOutputExtension: () => getCssOutputExtension,
|
|
2127
|
-
getStyleBaseName: () => getStyleBaseName,
|
|
2128
|
-
isPreprocessableStylePath: () => isPreprocessableStylePath,
|
|
2129
|
-
isStyleModulePath: () => isStyleModulePath,
|
|
2130
|
-
isStylePath: () => isStylePath,
|
|
2131
|
-
recordStyleOutput: () => recordStyleOutput,
|
|
2132
|
-
stylePreprocessorPlugin: () => stylePreprocessorPlugin
|
|
2133
|
-
});
|
|
2134
|
-
import { createHash } from "crypto";
|
|
2135
2024
|
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
2136
2025
|
import { readFile } from "fs/promises";
|
|
2137
2026
|
import { createRequire } from "module";
|
|
@@ -2462,16 +2351,6 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
2462
2351
|
importers.push(entry);
|
|
2463
2352
|
}
|
|
2464
2353
|
return importers;
|
|
2465
|
-
}, recordStyleOutput = (entry, css) => {
|
|
2466
|
-
const key = resolve3(entry);
|
|
2467
|
-
const hash = createHash("sha1").update(css).digest("hex");
|
|
2468
|
-
const previous = styleOutputHashes.get(key);
|
|
2469
|
-
styleOutputHashes.set(key, hash);
|
|
2470
|
-
return previous !== hash;
|
|
2471
|
-
}, forgetStyleEntry = (entry) => {
|
|
2472
|
-
const key = resolve3(entry);
|
|
2473
|
-
styleDependencyGraph.delete(key);
|
|
2474
|
-
styleOutputHashes.delete(key);
|
|
2475
2354
|
}, compileStyleSource = async (filePath, source, languageHint, config) => {
|
|
2476
2355
|
const language = getStyleLanguage(languageHint ?? filePath);
|
|
2477
2356
|
const rawContents = source ?? await readFile(filePath, "utf-8");
|
|
@@ -2702,7 +2581,7 @@ ${contents}` : contents, normalizePostcssModule = (mod) => {
|
|
|
2702
2581
|
throw new Error(`Unable to compile ${filePath}: Stylus styleUrl preprocessing is async-only. Import the Stylus file from a bundled entrypoint or use SCSS/CSS for Angular styleUrl.`);
|
|
2703
2582
|
}
|
|
2704
2583
|
return resolveCssImportsSync(rawContents, dirname2(filePath), new Set([filePath]));
|
|
2705
|
-
}
|
|
2584
|
+
};
|
|
2706
2585
|
var init_stylePreprocessor = __esm(() => {
|
|
2707
2586
|
CSS_EXTENSION_PATTERN = /\.css$/i;
|
|
2708
2587
|
STYLE_EXTENSION_PATTERN = /\.(s[ac]ss|less|styl(?:us)?)$/i;
|
|
@@ -2939,8 +2818,8 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
2939
2818
|
return;
|
|
2940
2819
|
}
|
|
2941
2820
|
await Bun.write(path, content);
|
|
2942
|
-
}, stripExports = (
|
|
2943
|
-
const lines =
|
|
2821
|
+
}, stripExports = (code) => code.replace(/export\s+default/, "const script ="), mergeVueImports = (code) => {
|
|
2822
|
+
const lines = code.split(`
|
|
2944
2823
|
`);
|
|
2945
2824
|
const specifierSet = new Set;
|
|
2946
2825
|
const vueImportRegex = /^import\s+{([^}]+)}\s+from\s+['"]vue['"];?$/;
|
|
@@ -3238,13 +3117,6 @@ var init_renderIslandMarkup = __esm(() => {
|
|
|
3238
3117
|
});
|
|
3239
3118
|
|
|
3240
3119
|
// src/core/devRouteRegistrationCallsite.ts
|
|
3241
|
-
var exports_devRouteRegistrationCallsite = {};
|
|
3242
|
-
__export(exports_devRouteRegistrationCallsite, {
|
|
3243
|
-
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite,
|
|
3244
|
-
getOriginalPageHandlerSource: () => getOriginalPageHandlerSource,
|
|
3245
|
-
isPageHandler: () => isPageHandler,
|
|
3246
|
-
patchElysiaRouteRegistrationCallsites: () => patchElysiaRouteRegistrationCallsites
|
|
3247
|
-
});
|
|
3248
3120
|
import { AsyncLocalStorage } from "async_hooks";
|
|
3249
3121
|
import { Elysia } from "elysia";
|
|
3250
3122
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, NODE_ENV_KEY = "NODE_ENV", ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, isPageHandlerFunction = (value) => typeof value === "function", handlerSourceMentionsPageHelper = (handler) => {
|
|
@@ -3261,12 +3133,12 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, NODE_ENV_KEY = "NODE
|
|
|
3261
3133
|
if (pageHandlerWrappers.has(handler))
|
|
3262
3134
|
return true;
|
|
3263
3135
|
return handlerSourceMentionsPageHelper(handler);
|
|
3264
|
-
},
|
|
3136
|
+
}, isObjectRecord = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage = (value) => isObjectRecord(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
|
|
3265
3137
|
const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
|
|
3266
3138
|
if (value === null || typeof value === "undefined") {
|
|
3267
3139
|
return;
|
|
3268
3140
|
}
|
|
3269
|
-
return
|
|
3141
|
+
return isAsyncLocalStorage(value) ? value : undefined;
|
|
3270
3142
|
}, ensureRouteCallsiteStorage = () => {
|
|
3271
3143
|
const existing = getRouteCallsiteStorage();
|
|
3272
3144
|
if (existing) {
|
|
@@ -3347,19 +3219,6 @@ var init_devRouteRegistrationCallsite = __esm(() => {
|
|
|
3347
3219
|
});
|
|
3348
3220
|
|
|
3349
3221
|
// src/core/requestContext.ts
|
|
3350
|
-
var exports_requestContext = {};
|
|
3351
|
-
__export(exports_requestContext, {
|
|
3352
|
-
absoluteRequestContext: () => absoluteRequestContext,
|
|
3353
|
-
devBuildErrorResponse: () => devBuildErrorResponse,
|
|
3354
|
-
getCurrentAbsoluteRequest: () => getCurrentAbsoluteRequest,
|
|
3355
|
-
getDevPageWarmer: () => getDevPageWarmer,
|
|
3356
|
-
getMissingAssets: () => getMissingAssets,
|
|
3357
|
-
recordMissingAsset: () => recordMissingAsset,
|
|
3358
|
-
resolveDeferredPageAssets: () => resolveDeferredPageAssets,
|
|
3359
|
-
runWithAbsoluteRequest: () => runWithAbsoluteRequest,
|
|
3360
|
-
setDevPageWarmer: () => setDevPageWarmer,
|
|
3361
|
-
withDeferredStylesheets: () => withDeferredStylesheets
|
|
3362
|
-
});
|
|
3363
3222
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
3364
3223
|
import { Elysia as Elysia2 } from "elysia";
|
|
3365
3224
|
var REQUEST_STORAGE_KEY, PAGE_WARMER_KEY, isAbsoluteRequestStorage = (value) => typeof value === "object" && value !== null && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", getRequestStorage = () => {
|
|
@@ -3791,13 +3650,13 @@ var init_pageProtocol = __esm(() => {
|
|
|
3791
3650
|
});
|
|
3792
3651
|
|
|
3793
3652
|
// src/core/pageResponseCache.ts
|
|
3794
|
-
import { createHash
|
|
3653
|
+
import { createHash } from "crypto";
|
|
3795
3654
|
var STREAMING_PAGE_HEADER = "x-absolute-stream", HTML_CONTENT_TYPE = "text/html", streamingPageHeaders = (extra) => {
|
|
3796
3655
|
const headers = new Headers(extra);
|
|
3797
3656
|
headers.set("content-type", HTML_CONTENT_TYPE);
|
|
3798
3657
|
headers.set(STREAMING_PAGE_HEADER, "1");
|
|
3799
3658
|
return headers;
|
|
3800
|
-
}, computeEtag = (html) => `W/"${
|
|
3659
|
+
}, computeEtag = (html) => `W/"${createHash("sha1").update(html).digest("base64url")}"`, withPageCacheHeaders = async (response, request, options) => {
|
|
3801
3660
|
const contentType = response.headers.get("content-type") ?? "";
|
|
3802
3661
|
if (!contentType.includes(HTML_CONTENT_TYPE))
|
|
3803
3662
|
return response;
|
|
@@ -3838,26 +3697,26 @@ var streamSwapRuntime = () => {
|
|
|
3838
3697
|
absoluteWindow.__ABS_SLOT_PENDING__ = absoluteWindow.__ABS_SLOT_PENDING__ ?? {};
|
|
3839
3698
|
const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__;
|
|
3840
3699
|
const pending = absoluteWindow.__ABS_SLOT_PENDING__;
|
|
3841
|
-
const
|
|
3700
|
+
const isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
3842
3701
|
const isPatchedPendingEntry = (value) => {
|
|
3843
|
-
if (!
|
|
3702
|
+
if (!isObjectRecord(value))
|
|
3844
3703
|
return false;
|
|
3845
3704
|
return value.domPatched === true && "payload" in value;
|
|
3846
3705
|
};
|
|
3847
3706
|
const unwrapPendingPayload = (value) => isPatchedPendingEntry(value) ? value.payload : value;
|
|
3848
3707
|
const canApplyImmediately = () => absoluteWindow.__ABS_SLOT_HYDRATION_PENDING__ !== true;
|
|
3849
3708
|
const isAngularDeferPayload = (payload) => {
|
|
3850
|
-
if (!
|
|
3709
|
+
if (!isObjectRecord(payload))
|
|
3851
3710
|
return false;
|
|
3852
3711
|
return payload.kind === "angular-defer";
|
|
3853
3712
|
};
|
|
3854
3713
|
const isVueSuspensePayload = (payload) => {
|
|
3855
|
-
if (!
|
|
3714
|
+
if (!isObjectRecord(payload))
|
|
3856
3715
|
return false;
|
|
3857
3716
|
return payload.kind === "vue-suspense";
|
|
3858
3717
|
};
|
|
3859
3718
|
const resolveHtml = (payload) => {
|
|
3860
|
-
if (!
|
|
3719
|
+
if (!isObjectRecord(payload)) {
|
|
3861
3720
|
return typeof payload === "string" ? payload : "";
|
|
3862
3721
|
}
|
|
3863
3722
|
if (typeof payload.html === "string") {
|
|
@@ -4590,12 +4449,12 @@ var init_startupBanner = __esm(() => {
|
|
|
4590
4449
|
// src/utils/logger.ts
|
|
4591
4450
|
var colors2, frameworkColors, formatPath = (filePath) => {
|
|
4592
4451
|
const cwd = process.cwd();
|
|
4593
|
-
let
|
|
4594
|
-
|
|
4595
|
-
if (!
|
|
4596
|
-
|
|
4452
|
+
let relative = filePath.startsWith(cwd) ? filePath.slice(cwd.length + 1) : filePath;
|
|
4453
|
+
relative = relative.replace(/\\/g, "/");
|
|
4454
|
+
if (!relative.startsWith("/")) {
|
|
4455
|
+
relative = `/${relative}`;
|
|
4597
4456
|
}
|
|
4598
|
-
return
|
|
4457
|
+
return relative;
|
|
4599
4458
|
}, getFrameworkColor = (framework) => frameworkColors[framework] || colors2.white, log = (action, options) => {
|
|
4600
4459
|
const timestamp = `${colors2.dim}${formatTimestamp()}${colors2.reset}`;
|
|
4601
4460
|
const tag = `${colors2.cyan}[hmr]${colors2.reset}`;
|
|
@@ -5222,9 +5081,7 @@ var init_generatedDir = () => {};
|
|
|
5222
5081
|
var exports_compileAngular = {};
|
|
5223
5082
|
__export(exports_compileAngular, {
|
|
5224
5083
|
compileAngular: () => compileAngular,
|
|
5225
|
-
compileAngularFile: () => compileAngularFile,
|
|
5226
5084
|
compileAngularFileJIT: () => compileAngularFileJIT,
|
|
5227
|
-
compileAngularFiles: () => compileAngularFiles,
|
|
5228
5085
|
invalidateAngularJitCache: () => invalidateAngularJitCache
|
|
5229
5086
|
});
|
|
5230
5087
|
import { existsSync as existsSync4, readFileSync as readFileSync5, promises as fs } from "fs";
|
|
@@ -5288,7 +5145,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5288
5145
|
}, createLegacyAngularAnimationUsageResolver = (rootDir) => {
|
|
5289
5146
|
const baseDir = resolve6(rootDir);
|
|
5290
5147
|
const tsconfigAliases = readTsconfigPathAliases();
|
|
5291
|
-
const
|
|
5148
|
+
const transpiler = new Bun.Transpiler({ loader: "tsx" });
|
|
5292
5149
|
const scanCache = new Map;
|
|
5293
5150
|
const resolveLocalImport = (specifier, fromDir) => {
|
|
5294
5151
|
if (specifier.startsWith(".") || specifier.startsWith("/")) {
|
|
@@ -5330,7 +5187,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5330
5187
|
}
|
|
5331
5188
|
let imports;
|
|
5332
5189
|
try {
|
|
5333
|
-
imports =
|
|
5190
|
+
imports = transpiler.scanImports(sourceCode);
|
|
5334
5191
|
} catch {
|
|
5335
5192
|
return { imports: [], usesLegacyAnimations: false };
|
|
5336
5193
|
}
|
|
@@ -5458,8 +5315,8 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5458
5315
|
join9(basePath, "index.cts")
|
|
5459
5316
|
];
|
|
5460
5317
|
return candidates.map((candidate) => resolve6(candidate)).find((candidate) => existsSync4(candidate) && !candidate.endsWith(".d.ts")) ?? null;
|
|
5461
|
-
}, readFileForAotTransform = async (fileName,
|
|
5462
|
-
const hostSource =
|
|
5318
|
+
}, readFileForAotTransform = async (fileName, readFile) => {
|
|
5319
|
+
const hostSource = readFile?.(fileName);
|
|
5463
5320
|
if (typeof hostSource === "string")
|
|
5464
5321
|
return hostSource;
|
|
5465
5322
|
return fs.readFile(fileName, "utf-8");
|
|
@@ -5522,9 +5379,9 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5522
5379
|
...resourceContents,
|
|
5523
5380
|
safeStableStringify(stylePreprocessors ?? null)
|
|
5524
5381
|
].join("\x00");
|
|
5525
|
-
const
|
|
5526
|
-
return join9(process.cwd(), ".absolutejs", "cache", "angular-resources", `${
|
|
5527
|
-
}, precomputeAotResourceTransforms = async (inputPaths,
|
|
5382
|
+
const cacheKey = Bun.hash(cacheInput).toString(BASE_36_RADIX);
|
|
5383
|
+
return join9(process.cwd(), ".absolutejs", "cache", "angular-resources", `${cacheKey}.json`);
|
|
5384
|
+
}, precomputeAotResourceTransforms = async (inputPaths, readFile, stylePreprocessors) => {
|
|
5528
5385
|
const transformedSources = new Map;
|
|
5529
5386
|
const visited = new Set;
|
|
5530
5387
|
const stats = {
|
|
@@ -5541,7 +5398,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5541
5398
|
if (!existsSync4(resolvedPath) || resolvedPath.endsWith(".d.ts"))
|
|
5542
5399
|
return;
|
|
5543
5400
|
stats.filesVisited += 1;
|
|
5544
|
-
const source = await readFileForAotTransform(resolvedPath,
|
|
5401
|
+
const source = await readFileForAotTransform(resolvedPath, readFile);
|
|
5545
5402
|
const cachePath = await resolveResourceTransformCachePath(resolvedPath, source, stylePreprocessors);
|
|
5546
5403
|
const cached = await readResourceCacheFile(cachePath);
|
|
5547
5404
|
let transformedSource;
|
|
@@ -5697,7 +5554,7 @@ var atomicWriteSequence = 0, writeTextFileAtomically = async (path, content) =>
|
|
|
5697
5554
|
await writeTextFileAtomically(target, content);
|
|
5698
5555
|
})), { outputs: entries.length });
|
|
5699
5556
|
return await traceAngularPhase("aot/collect-output-paths", () => entries.map(({ target }) => target), { outputs: entries.length });
|
|
5700
|
-
},
|
|
5557
|
+
}, jitContentCache, invalidateAngularJitCache = (filePath) => {
|
|
5701
5558
|
jitContentCache.delete(resolve6(filePath));
|
|
5702
5559
|
}, wrapperOutputCache, escapeTemplateContent = (content) => content.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${"), findUncommentedMatch = (source, pattern) => {
|
|
5703
5560
|
const re = new RegExp(pattern.source, pattern.flags.includes("g") ? pattern.flags : pattern.flags + "g");
|
|
@@ -5852,13 +5709,13 @@ ${fields}
|
|
|
5852
5709
|
if (!existsSync4(templatePath)) {
|
|
5853
5710
|
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
5854
5711
|
}
|
|
5855
|
-
const
|
|
5856
|
-
const
|
|
5857
|
-
const
|
|
5858
|
-
const
|
|
5712
|
+
const templateRaw = await fs.readFile(templatePath, "utf-8");
|
|
5713
|
+
const lowered = lowerAngularDeferSyntax(templateRaw);
|
|
5714
|
+
const escaped = escapeTemplateContent(lowered.template);
|
|
5715
|
+
const replacedSource = source.slice(0, templateUrlMatch.index) + `template: \`${escaped}\`` + source.slice(templateUrlMatch.index + templateUrlMatch[0].length);
|
|
5859
5716
|
return {
|
|
5860
|
-
deferSlots:
|
|
5861
|
-
source: injectDeferSlotFields(
|
|
5717
|
+
deferSlots: lowered.slots,
|
|
5718
|
+
source: injectDeferSlotFields(replacedSource, lowered.slots, resolveAngularDeferImportSpecifier())
|
|
5862
5719
|
};
|
|
5863
5720
|
}
|
|
5864
5721
|
const inlineTemplateMatch = findUncommentedMatch(source, /template\s*:\s*(`([\s\S]*?)`|'([^']*)'|"([^"]*)")/);
|
|
@@ -5883,13 +5740,13 @@ ${fields}
|
|
|
5883
5740
|
if (!existsSync4(templatePath)) {
|
|
5884
5741
|
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
5885
5742
|
}
|
|
5886
|
-
const
|
|
5887
|
-
const
|
|
5888
|
-
const
|
|
5889
|
-
const
|
|
5743
|
+
const templateRaw = readFileSync5(templatePath, "utf-8");
|
|
5744
|
+
const lowered = lowerAngularDeferSyntax(templateRaw);
|
|
5745
|
+
const escaped = escapeTemplateContent(lowered.template);
|
|
5746
|
+
const replacedSource = source.slice(0, templateUrlMatch.index) + `template: \`${escaped}\`` + source.slice(templateUrlMatch.index + templateUrlMatch[0].length);
|
|
5890
5747
|
return {
|
|
5891
|
-
deferSlots:
|
|
5892
|
-
source: injectDeferSlotFields(
|
|
5748
|
+
deferSlots: lowered.slots,
|
|
5749
|
+
source: injectDeferSlotFields(replacedSource, lowered.slots, resolveAngularDeferImportSpecifier())
|
|
5893
5750
|
};
|
|
5894
5751
|
}
|
|
5895
5752
|
const inlineTemplateMatch = findUncommentedMatch(source, /template\s*:\s*(`([\s\S]*?)`|'([^']*)'|"([^"]*)")/);
|
|
@@ -6016,7 +5873,7 @@ ${fields}
|
|
|
6016
5873
|
})
|
|
6017
5874
|
});
|
|
6018
5875
|
const tsconfigAliases = readTsconfigPathAliases();
|
|
6019
|
-
const
|
|
5876
|
+
const resolveSourceFile = (candidate) => {
|
|
6020
5877
|
const candidates = candidate.match(/\.(?:[cm]?[tj]sx?|json)$/) ? [candidate] : [
|
|
6021
5878
|
`${candidate}.ts`,
|
|
6022
5879
|
`${candidate}.tsx`,
|
|
@@ -6032,9 +5889,9 @@ ${fields}
|
|
|
6032
5889
|
};
|
|
6033
5890
|
const resolveLocalImport = (specifier, fromDir) => {
|
|
6034
5891
|
if (specifier.startsWith(".") || specifier.startsWith("/")) {
|
|
6035
|
-
return
|
|
5892
|
+
return resolveSourceFile(resolve6(fromDir, specifier));
|
|
6036
5893
|
}
|
|
6037
|
-
const aliased = matchTsconfigAlias(specifier, tsconfigAliases.aliases, tsconfigAliases.baseUrl,
|
|
5894
|
+
const aliased = matchTsconfigAlias(specifier, tsconfigAliases.aliases, tsconfigAliases.baseUrl, resolveSourceFile);
|
|
6038
5895
|
if (aliased)
|
|
6039
5896
|
return aliased;
|
|
6040
5897
|
try {
|
|
@@ -6044,7 +5901,7 @@ ${fields}
|
|
|
6044
5901
|
const absolute = resolve6(resolved);
|
|
6045
5902
|
if (!absolute.startsWith(baseDir))
|
|
6046
5903
|
return;
|
|
6047
|
-
return
|
|
5904
|
+
return resolveSourceFile(absolute);
|
|
6048
5905
|
} catch {
|
|
6049
5906
|
return;
|
|
6050
5907
|
}
|
|
@@ -6104,13 +5961,13 @@ ${fields}
|
|
|
6104
5961
|
return;
|
|
6105
5962
|
visited.add(resolved);
|
|
6106
5963
|
if (resolved.endsWith(".json") && existsSync4(resolved)) {
|
|
6107
|
-
const
|
|
6108
|
-
const
|
|
6109
|
-
const
|
|
6110
|
-
const
|
|
6111
|
-
await fs.mkdir(
|
|
6112
|
-
await fs.copyFile(resolved,
|
|
6113
|
-
allOutputs.push(
|
|
5964
|
+
const inputDir = dirname5(resolved);
|
|
5965
|
+
const relativeDir = inputDir.startsWith(baseDir) ? inputDir.substring(baseDir.length + 1) : inputDir;
|
|
5966
|
+
const targetDir = join9(outDir, relativeDir);
|
|
5967
|
+
const targetPath = join9(targetDir, basename4(resolved));
|
|
5968
|
+
await fs.mkdir(targetDir, { recursive: true });
|
|
5969
|
+
await fs.copyFile(resolved, targetPath);
|
|
5970
|
+
allOutputs.push(targetPath);
|
|
6114
5971
|
return;
|
|
6115
5972
|
}
|
|
6116
5973
|
let actualPath = resolved;
|
|
@@ -6143,24 +6000,24 @@ ${fields}
|
|
|
6143
6000
|
usesLegacyAnimations = true;
|
|
6144
6001
|
}
|
|
6145
6002
|
const localImportPaths = localImports.map((specifier) => {
|
|
6146
|
-
const
|
|
6147
|
-
if (!
|
|
6003
|
+
const resolved = resolveLocalImport(specifier, inputDir);
|
|
6004
|
+
if (!resolved)
|
|
6148
6005
|
return null;
|
|
6149
|
-
const relativeImport = relative5(targetDir, toOutputPath(
|
|
6006
|
+
const relativeImport = relative5(targetDir, toOutputPath(resolved)).replace(/\\/g, "/").replace(/\.js$/, "");
|
|
6150
6007
|
const relativeRewrite = relativeImport.startsWith(".") ? relativeImport : `./${relativeImport}`;
|
|
6151
6008
|
importRewrites.set(specifier, relativeRewrite);
|
|
6152
|
-
return
|
|
6009
|
+
return resolved;
|
|
6153
6010
|
}).filter((path) => Boolean(path));
|
|
6154
6011
|
const isEntry = resolve6(actualPath) === resolve6(entryPath);
|
|
6155
6012
|
const contentHash = Bun.hash(sourceCode).toString(BASE_36_RADIX);
|
|
6156
|
-
const
|
|
6157
|
-
const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(
|
|
6013
|
+
const cacheKey = actualPath;
|
|
6014
|
+
const shouldWriteFile = cacheBuster && isEntry ? true : jitContentCache.get(cacheKey) !== contentHash || !existsSync4(targetPath);
|
|
6158
6015
|
if (shouldWriteFile) {
|
|
6159
6016
|
const processedContent = transpileAndRewrite(sourceCode, relativeDir, actualPath, importRewrites);
|
|
6160
6017
|
const preservedInjection = await readPreservedInjection(targetPath);
|
|
6161
6018
|
await fs.mkdir(targetDir, { recursive: true });
|
|
6162
6019
|
await writeTextFileAtomically(targetPath, processedContent + preservedInjection);
|
|
6163
|
-
jitContentCache.set(
|
|
6020
|
+
jitContentCache.set(cacheKey, contentHash);
|
|
6164
6021
|
}
|
|
6165
6022
|
allOutputs.push(targetPath);
|
|
6166
6023
|
await Promise.all(localImportPaths.map((importPath) => transpileFile(importPath)));
|
|
@@ -6692,13 +6549,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
6692
6549
|
var UnsubscriptionError_1 = require_UnsubscriptionError();
|
|
6693
6550
|
var arrRemove_1 = require_arrRemove();
|
|
6694
6551
|
var Subscription = function() {
|
|
6695
|
-
function
|
|
6552
|
+
function Subscription(initialTeardown) {
|
|
6696
6553
|
this.initialTeardown = initialTeardown;
|
|
6697
6554
|
this.closed = false;
|
|
6698
6555
|
this._parentage = null;
|
|
6699
6556
|
this._finalizers = null;
|
|
6700
6557
|
}
|
|
6701
|
-
|
|
6558
|
+
Subscription.prototype.unsubscribe = function() {
|
|
6702
6559
|
var e_1, _a, e_2, _b;
|
|
6703
6560
|
var errors;
|
|
6704
6561
|
if (!this.closed) {
|
|
@@ -6769,13 +6626,13 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
6769
6626
|
}
|
|
6770
6627
|
}
|
|
6771
6628
|
};
|
|
6772
|
-
|
|
6629
|
+
Subscription.prototype.add = function(teardown) {
|
|
6773
6630
|
var _a;
|
|
6774
6631
|
if (teardown && teardown !== this) {
|
|
6775
6632
|
if (this.closed) {
|
|
6776
6633
|
execFinalizer(teardown);
|
|
6777
6634
|
} else {
|
|
6778
|
-
if (teardown instanceof
|
|
6635
|
+
if (teardown instanceof Subscription) {
|
|
6779
6636
|
if (teardown.closed || teardown._hasParent(this)) {
|
|
6780
6637
|
return;
|
|
6781
6638
|
}
|
|
@@ -6785,15 +6642,15 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
6785
6642
|
}
|
|
6786
6643
|
}
|
|
6787
6644
|
};
|
|
6788
|
-
|
|
6645
|
+
Subscription.prototype._hasParent = function(parent) {
|
|
6789
6646
|
var _parentage = this._parentage;
|
|
6790
6647
|
return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);
|
|
6791
6648
|
};
|
|
6792
|
-
|
|
6649
|
+
Subscription.prototype._addParent = function(parent) {
|
|
6793
6650
|
var _parentage = this._parentage;
|
|
6794
6651
|
this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
|
|
6795
6652
|
};
|
|
6796
|
-
|
|
6653
|
+
Subscription.prototype._removeParent = function(parent) {
|
|
6797
6654
|
var _parentage = this._parentage;
|
|
6798
6655
|
if (_parentage === parent) {
|
|
6799
6656
|
this._parentage = null;
|
|
@@ -6801,19 +6658,19 @@ var require_Subscription = __commonJS(function(exports) {
|
|
|
6801
6658
|
arrRemove_1.arrRemove(_parentage, parent);
|
|
6802
6659
|
}
|
|
6803
6660
|
};
|
|
6804
|
-
|
|
6661
|
+
Subscription.prototype.remove = function(teardown) {
|
|
6805
6662
|
var _finalizers = this._finalizers;
|
|
6806
6663
|
_finalizers && arrRemove_1.arrRemove(_finalizers, teardown);
|
|
6807
|
-
if (teardown instanceof
|
|
6664
|
+
if (teardown instanceof Subscription) {
|
|
6808
6665
|
teardown._removeParent(this);
|
|
6809
6666
|
}
|
|
6810
6667
|
};
|
|
6811
|
-
|
|
6812
|
-
var empty = new
|
|
6668
|
+
Subscription.EMPTY = function() {
|
|
6669
|
+
var empty = new Subscription;
|
|
6813
6670
|
empty.closed = true;
|
|
6814
6671
|
return empty;
|
|
6815
6672
|
}();
|
|
6816
|
-
return
|
|
6673
|
+
return Subscription;
|
|
6817
6674
|
}();
|
|
6818
6675
|
exports.Subscription = Subscription;
|
|
6819
6676
|
exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
@@ -6959,7 +6816,7 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
6959
6816
|
}
|
|
6960
6817
|
cb();
|
|
6961
6818
|
if (isRoot) {
|
|
6962
|
-
var _a = context,
|
|
6819
|
+
var _a = context, { errorThrown, error } = _a;
|
|
6963
6820
|
context = null;
|
|
6964
6821
|
if (errorThrown) {
|
|
6965
6822
|
throw error;
|
|
@@ -6983,12 +6840,12 @@ var require_errorContext = __commonJS(function(exports) {
|
|
|
6983
6840
|
var require_Subscriber = __commonJS(function(exports) {
|
|
6984
6841
|
var __extends = exports && exports.__extends || function() {
|
|
6985
6842
|
var extendStatics = function(d, b) {
|
|
6986
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
6987
|
-
|
|
6988
|
-
} || function(
|
|
6989
|
-
for (var p in
|
|
6990
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
6991
|
-
|
|
6843
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
6844
|
+
d.__proto__ = b;
|
|
6845
|
+
} || function(d, b) {
|
|
6846
|
+
for (var p in b)
|
|
6847
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
6848
|
+
d[p] = b[p];
|
|
6992
6849
|
};
|
|
6993
6850
|
return extendStatics(d, b);
|
|
6994
6851
|
};
|
|
@@ -7013,8 +6870,8 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7013
6870
|
var timeoutProvider_1 = require_timeoutProvider();
|
|
7014
6871
|
var errorContext_1 = require_errorContext();
|
|
7015
6872
|
var Subscriber = function(_super) {
|
|
7016
|
-
__extends(
|
|
7017
|
-
function
|
|
6873
|
+
__extends(Subscriber, _super);
|
|
6874
|
+
function Subscriber(destination) {
|
|
7018
6875
|
var _this = _super.call(this) || this;
|
|
7019
6876
|
_this.isStopped = false;
|
|
7020
6877
|
if (destination) {
|
|
@@ -7027,17 +6884,17 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7027
6884
|
}
|
|
7028
6885
|
return _this;
|
|
7029
6886
|
}
|
|
7030
|
-
|
|
6887
|
+
Subscriber.create = function(next, error, complete) {
|
|
7031
6888
|
return new SafeSubscriber(next, error, complete);
|
|
7032
6889
|
};
|
|
7033
|
-
|
|
6890
|
+
Subscriber.prototype.next = function(value) {
|
|
7034
6891
|
if (this.isStopped) {
|
|
7035
6892
|
handleStoppedNotification(NotificationFactories_1.nextNotification(value), this);
|
|
7036
6893
|
} else {
|
|
7037
6894
|
this._next(value);
|
|
7038
6895
|
}
|
|
7039
6896
|
};
|
|
7040
|
-
|
|
6897
|
+
Subscriber.prototype.error = function(err) {
|
|
7041
6898
|
if (this.isStopped) {
|
|
7042
6899
|
handleStoppedNotification(NotificationFactories_1.errorNotification(err), this);
|
|
7043
6900
|
} else {
|
|
@@ -7045,7 +6902,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7045
6902
|
this._error(err);
|
|
7046
6903
|
}
|
|
7047
6904
|
};
|
|
7048
|
-
|
|
6905
|
+
Subscriber.prototype.complete = function() {
|
|
7049
6906
|
if (this.isStopped) {
|
|
7050
6907
|
handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this);
|
|
7051
6908
|
} else {
|
|
@@ -7053,31 +6910,31 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7053
6910
|
this._complete();
|
|
7054
6911
|
}
|
|
7055
6912
|
};
|
|
7056
|
-
|
|
6913
|
+
Subscriber.prototype.unsubscribe = function() {
|
|
7057
6914
|
if (!this.closed) {
|
|
7058
6915
|
this.isStopped = true;
|
|
7059
6916
|
_super.prototype.unsubscribe.call(this);
|
|
7060
6917
|
this.destination = null;
|
|
7061
6918
|
}
|
|
7062
6919
|
};
|
|
7063
|
-
|
|
6920
|
+
Subscriber.prototype._next = function(value) {
|
|
7064
6921
|
this.destination.next(value);
|
|
7065
6922
|
};
|
|
7066
|
-
|
|
6923
|
+
Subscriber.prototype._error = function(err) {
|
|
7067
6924
|
try {
|
|
7068
6925
|
this.destination.error(err);
|
|
7069
6926
|
} finally {
|
|
7070
6927
|
this.unsubscribe();
|
|
7071
6928
|
}
|
|
7072
6929
|
};
|
|
7073
|
-
|
|
6930
|
+
Subscriber.prototype._complete = function() {
|
|
7074
6931
|
try {
|
|
7075
6932
|
this.destination.complete();
|
|
7076
6933
|
} finally {
|
|
7077
6934
|
this.unsubscribe();
|
|
7078
6935
|
}
|
|
7079
6936
|
};
|
|
7080
|
-
return
|
|
6937
|
+
return Subscriber;
|
|
7081
6938
|
}(Subscription_1.Subscription);
|
|
7082
6939
|
exports.Subscriber = Subscriber;
|
|
7083
6940
|
var _bind = Function.prototype.bind;
|
|
@@ -7085,10 +6942,10 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7085
6942
|
return _bind.call(fn, thisArg);
|
|
7086
6943
|
}
|
|
7087
6944
|
var ConsumerObserver = function() {
|
|
7088
|
-
function
|
|
6945
|
+
function ConsumerObserver(partialObserver) {
|
|
7089
6946
|
this.partialObserver = partialObserver;
|
|
7090
6947
|
}
|
|
7091
|
-
|
|
6948
|
+
ConsumerObserver.prototype.next = function(value) {
|
|
7092
6949
|
var partialObserver = this.partialObserver;
|
|
7093
6950
|
if (partialObserver.next) {
|
|
7094
6951
|
try {
|
|
@@ -7098,7 +6955,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7098
6955
|
}
|
|
7099
6956
|
}
|
|
7100
6957
|
};
|
|
7101
|
-
|
|
6958
|
+
ConsumerObserver.prototype.error = function(err) {
|
|
7102
6959
|
var partialObserver = this.partialObserver;
|
|
7103
6960
|
if (partialObserver.error) {
|
|
7104
6961
|
try {
|
|
@@ -7110,7 +6967,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7110
6967
|
handleUnhandledError(err);
|
|
7111
6968
|
}
|
|
7112
6969
|
};
|
|
7113
|
-
|
|
6970
|
+
ConsumerObserver.prototype.complete = function() {
|
|
7114
6971
|
var partialObserver = this.partialObserver;
|
|
7115
6972
|
if (partialObserver.complete) {
|
|
7116
6973
|
try {
|
|
@@ -7120,11 +6977,11 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7120
6977
|
}
|
|
7121
6978
|
}
|
|
7122
6979
|
};
|
|
7123
|
-
return
|
|
6980
|
+
return ConsumerObserver;
|
|
7124
6981
|
}();
|
|
7125
6982
|
var SafeSubscriber = function(_super) {
|
|
7126
|
-
__extends(
|
|
7127
|
-
function
|
|
6983
|
+
__extends(SafeSubscriber, _super);
|
|
6984
|
+
function SafeSubscriber(observerOrNext, error, complete) {
|
|
7128
6985
|
var _this = _super.call(this) || this;
|
|
7129
6986
|
var partialObserver;
|
|
7130
6987
|
if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) {
|
|
@@ -7152,7 +7009,7 @@ var require_Subscriber = __commonJS(function(exports) {
|
|
|
7152
7009
|
_this.destination = new ConsumerObserver(partialObserver);
|
|
7153
7010
|
return _this;
|
|
7154
7011
|
}
|
|
7155
|
-
return
|
|
7012
|
+
return SafeSubscriber;
|
|
7156
7013
|
}(Subscriber);
|
|
7157
7014
|
exports.SafeSubscriber = SafeSubscriber;
|
|
7158
7015
|
function handleUnhandledError(error) {
|
|
@@ -7239,37 +7096,37 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
7239
7096
|
var isFunction_1 = require_isFunction();
|
|
7240
7097
|
var errorContext_1 = require_errorContext();
|
|
7241
7098
|
var Observable = function() {
|
|
7242
|
-
function
|
|
7099
|
+
function Observable(subscribe) {
|
|
7243
7100
|
if (subscribe) {
|
|
7244
7101
|
this._subscribe = subscribe;
|
|
7245
7102
|
}
|
|
7246
7103
|
}
|
|
7247
|
-
|
|
7248
|
-
var observable = new
|
|
7104
|
+
Observable.prototype.lift = function(operator) {
|
|
7105
|
+
var observable = new Observable;
|
|
7249
7106
|
observable.source = this;
|
|
7250
7107
|
observable.operator = operator;
|
|
7251
7108
|
return observable;
|
|
7252
7109
|
};
|
|
7253
|
-
|
|
7110
|
+
Observable.prototype.subscribe = function(observerOrNext, error, complete) {
|
|
7254
7111
|
var _this = this;
|
|
7255
7112
|
var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new Subscriber_1.SafeSubscriber(observerOrNext, error, complete);
|
|
7256
7113
|
errorContext_1.errorContext(function() {
|
|
7257
|
-
var _a = _this,
|
|
7114
|
+
var _a = _this, { operator, source } = _a;
|
|
7258
7115
|
subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
|
|
7259
7116
|
});
|
|
7260
7117
|
return subscriber;
|
|
7261
7118
|
};
|
|
7262
|
-
|
|
7119
|
+
Observable.prototype._trySubscribe = function(sink) {
|
|
7263
7120
|
try {
|
|
7264
7121
|
return this._subscribe(sink);
|
|
7265
7122
|
} catch (err) {
|
|
7266
7123
|
sink.error(err);
|
|
7267
7124
|
}
|
|
7268
7125
|
};
|
|
7269
|
-
|
|
7126
|
+
Observable.prototype.forEach = function(next, promiseCtor) {
|
|
7270
7127
|
var _this = this;
|
|
7271
7128
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
7272
|
-
return new promiseCtor(function(
|
|
7129
|
+
return new promiseCtor(function(resolve, reject) {
|
|
7273
7130
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
7274
7131
|
next: function(value) {
|
|
7275
7132
|
try {
|
|
@@ -7280,43 +7137,43 @@ var require_Observable = __commonJS(function(exports) {
|
|
|
7280
7137
|
}
|
|
7281
7138
|
},
|
|
7282
7139
|
error: reject,
|
|
7283
|
-
complete:
|
|
7140
|
+
complete: resolve
|
|
7284
7141
|
});
|
|
7285
7142
|
_this.subscribe(subscriber);
|
|
7286
7143
|
});
|
|
7287
7144
|
};
|
|
7288
|
-
|
|
7145
|
+
Observable.prototype._subscribe = function(subscriber) {
|
|
7289
7146
|
var _a;
|
|
7290
7147
|
return (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber);
|
|
7291
7148
|
};
|
|
7292
|
-
|
|
7149
|
+
Observable.prototype[observable_1.observable] = function() {
|
|
7293
7150
|
return this;
|
|
7294
7151
|
};
|
|
7295
|
-
|
|
7152
|
+
Observable.prototype.pipe = function() {
|
|
7296
7153
|
var operations = [];
|
|
7297
7154
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
7298
7155
|
operations[_i] = arguments[_i];
|
|
7299
7156
|
}
|
|
7300
7157
|
return pipe_1.pipeFromArray(operations)(this);
|
|
7301
7158
|
};
|
|
7302
|
-
|
|
7159
|
+
Observable.prototype.toPromise = function(promiseCtor) {
|
|
7303
7160
|
var _this = this;
|
|
7304
7161
|
promiseCtor = getPromiseCtor(promiseCtor);
|
|
7305
|
-
return new promiseCtor(function(
|
|
7162
|
+
return new promiseCtor(function(resolve, reject) {
|
|
7306
7163
|
var value;
|
|
7307
7164
|
_this.subscribe(function(x) {
|
|
7308
7165
|
return value = x;
|
|
7309
7166
|
}, function(err) {
|
|
7310
7167
|
return reject(err);
|
|
7311
7168
|
}, function() {
|
|
7312
|
-
return
|
|
7169
|
+
return resolve(value);
|
|
7313
7170
|
});
|
|
7314
7171
|
});
|
|
7315
7172
|
};
|
|
7316
|
-
|
|
7317
|
-
return new
|
|
7173
|
+
Observable.create = function(subscribe) {
|
|
7174
|
+
return new Observable(subscribe);
|
|
7318
7175
|
};
|
|
7319
|
-
return
|
|
7176
|
+
return Observable;
|
|
7320
7177
|
}();
|
|
7321
7178
|
exports.Observable = Observable;
|
|
7322
7179
|
function getPromiseCtor(promiseCtor) {
|
|
@@ -7361,12 +7218,12 @@ var require_lift = __commonJS(function(exports) {
|
|
|
7361
7218
|
var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
7362
7219
|
var __extends = exports && exports.__extends || function() {
|
|
7363
7220
|
var extendStatics = function(d, b) {
|
|
7364
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
7365
|
-
|
|
7366
|
-
} || function(
|
|
7367
|
-
for (var p in
|
|
7368
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7369
|
-
|
|
7221
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7222
|
+
d.__proto__ = b;
|
|
7223
|
+
} || function(d, b) {
|
|
7224
|
+
for (var p in b)
|
|
7225
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7226
|
+
d[p] = b[p];
|
|
7370
7227
|
};
|
|
7371
7228
|
return extendStatics(d, b);
|
|
7372
7229
|
};
|
|
@@ -7388,8 +7245,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
7388
7245
|
}
|
|
7389
7246
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
|
7390
7247
|
var OperatorSubscriber = function(_super) {
|
|
7391
|
-
__extends(
|
|
7392
|
-
function
|
|
7248
|
+
__extends(OperatorSubscriber, _super);
|
|
7249
|
+
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
7393
7250
|
var _this = _super.call(this, destination) || this;
|
|
7394
7251
|
_this.onFinalize = onFinalize;
|
|
7395
7252
|
_this.shouldUnsubscribe = shouldUnsubscribe;
|
|
@@ -7403,8 +7260,8 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
7403
7260
|
_this._error = onError ? function(err) {
|
|
7404
7261
|
try {
|
|
7405
7262
|
onError(err);
|
|
7406
|
-
} catch (
|
|
7407
|
-
destination.error(
|
|
7263
|
+
} catch (err) {
|
|
7264
|
+
destination.error(err);
|
|
7408
7265
|
} finally {
|
|
7409
7266
|
this.unsubscribe();
|
|
7410
7267
|
}
|
|
@@ -7420,7 +7277,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
7420
7277
|
} : _super.prototype._complete;
|
|
7421
7278
|
return _this;
|
|
7422
7279
|
}
|
|
7423
|
-
|
|
7280
|
+
OperatorSubscriber.prototype.unsubscribe = function() {
|
|
7424
7281
|
var _a;
|
|
7425
7282
|
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
7426
7283
|
var closed_1 = this.closed;
|
|
@@ -7428,7 +7285,7 @@ var require_OperatorSubscriber = __commonJS(function(exports) {
|
|
|
7428
7285
|
!closed_1 && ((_a = this.onFinalize) === null || _a === undefined || _a.call(this));
|
|
7429
7286
|
}
|
|
7430
7287
|
};
|
|
7431
|
-
return
|
|
7288
|
+
return OperatorSubscriber;
|
|
7432
7289
|
}(Subscriber_1.Subscriber);
|
|
7433
7290
|
exports.OperatorSubscriber = OperatorSubscriber;
|
|
7434
7291
|
});
|
|
@@ -7469,12 +7326,12 @@ var require_refCount = __commonJS(function(exports) {
|
|
|
7469
7326
|
var require_ConnectableObservable = __commonJS(function(exports) {
|
|
7470
7327
|
var __extends = exports && exports.__extends || function() {
|
|
7471
7328
|
var extendStatics = function(d, b) {
|
|
7472
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
7473
|
-
|
|
7474
|
-
} || function(
|
|
7475
|
-
for (var p in
|
|
7476
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7477
|
-
|
|
7329
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7330
|
+
d.__proto__ = b;
|
|
7331
|
+
} || function(d, b) {
|
|
7332
|
+
for (var p in b)
|
|
7333
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7334
|
+
d[p] = b[p];
|
|
7478
7335
|
};
|
|
7479
7336
|
return extendStatics(d, b);
|
|
7480
7337
|
};
|
|
@@ -7496,8 +7353,8 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
7496
7353
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
7497
7354
|
var lift_1 = require_lift();
|
|
7498
7355
|
var ConnectableObservable = function(_super) {
|
|
7499
|
-
__extends(
|
|
7500
|
-
function
|
|
7356
|
+
__extends(ConnectableObservable, _super);
|
|
7357
|
+
function ConnectableObservable(source, subjectFactory) {
|
|
7501
7358
|
var _this = _super.call(this) || this;
|
|
7502
7359
|
_this.source = source;
|
|
7503
7360
|
_this.subjectFactory = subjectFactory;
|
|
@@ -7509,23 +7366,23 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
7509
7366
|
}
|
|
7510
7367
|
return _this;
|
|
7511
7368
|
}
|
|
7512
|
-
|
|
7369
|
+
ConnectableObservable.prototype._subscribe = function(subscriber) {
|
|
7513
7370
|
return this.getSubject().subscribe(subscriber);
|
|
7514
7371
|
};
|
|
7515
|
-
|
|
7372
|
+
ConnectableObservable.prototype.getSubject = function() {
|
|
7516
7373
|
var subject = this._subject;
|
|
7517
7374
|
if (!subject || subject.isStopped) {
|
|
7518
7375
|
this._subject = this.subjectFactory();
|
|
7519
7376
|
}
|
|
7520
7377
|
return this._subject;
|
|
7521
7378
|
};
|
|
7522
|
-
|
|
7379
|
+
ConnectableObservable.prototype._teardown = function() {
|
|
7523
7380
|
this._refCount = 0;
|
|
7524
7381
|
var _connection = this._connection;
|
|
7525
7382
|
this._subject = this._connection = null;
|
|
7526
7383
|
_connection === null || _connection === undefined || _connection.unsubscribe();
|
|
7527
7384
|
};
|
|
7528
|
-
|
|
7385
|
+
ConnectableObservable.prototype.connect = function() {
|
|
7529
7386
|
var _this = this;
|
|
7530
7387
|
var connection = this._connection;
|
|
7531
7388
|
if (!connection) {
|
|
@@ -7547,10 +7404,10 @@ var require_ConnectableObservable = __commonJS(function(exports) {
|
|
|
7547
7404
|
}
|
|
7548
7405
|
return connection;
|
|
7549
7406
|
};
|
|
7550
|
-
|
|
7407
|
+
ConnectableObservable.prototype.refCount = function() {
|
|
7551
7408
|
return refCount_1.refCount()(this);
|
|
7552
7409
|
};
|
|
7553
|
-
return
|
|
7410
|
+
return ConnectableObservable;
|
|
7554
7411
|
}(Observable_1.Observable);
|
|
7555
7412
|
exports.ConnectableObservable = ConnectableObservable;
|
|
7556
7413
|
});
|
|
@@ -7693,12 +7550,12 @@ var require_ObjectUnsubscribedError = __commonJS(function(exports) {
|
|
|
7693
7550
|
var require_Subject = __commonJS(function(exports) {
|
|
7694
7551
|
var __extends = exports && exports.__extends || function() {
|
|
7695
7552
|
var extendStatics = function(d, b) {
|
|
7696
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
7697
|
-
|
|
7698
|
-
} || function(
|
|
7699
|
-
for (var p in
|
|
7700
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7701
|
-
|
|
7553
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7554
|
+
d.__proto__ = b;
|
|
7555
|
+
} || function(d, b) {
|
|
7556
|
+
for (var p in b)
|
|
7557
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7558
|
+
d[p] = b[p];
|
|
7702
7559
|
};
|
|
7703
7560
|
return extendStatics(d, b);
|
|
7704
7561
|
};
|
|
@@ -7734,8 +7591,8 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7734
7591
|
var arrRemove_1 = require_arrRemove();
|
|
7735
7592
|
var errorContext_1 = require_errorContext();
|
|
7736
7593
|
var Subject = function(_super) {
|
|
7737
|
-
__extends(
|
|
7738
|
-
function
|
|
7594
|
+
__extends(Subject, _super);
|
|
7595
|
+
function Subject() {
|
|
7739
7596
|
var _this = _super.call(this) || this;
|
|
7740
7597
|
_this.closed = false;
|
|
7741
7598
|
_this.currentObservers = null;
|
|
@@ -7745,17 +7602,17 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7745
7602
|
_this.thrownError = null;
|
|
7746
7603
|
return _this;
|
|
7747
7604
|
}
|
|
7748
|
-
|
|
7605
|
+
Subject.prototype.lift = function(operator) {
|
|
7749
7606
|
var subject = new AnonymousSubject(this, this);
|
|
7750
7607
|
subject.operator = operator;
|
|
7751
7608
|
return subject;
|
|
7752
7609
|
};
|
|
7753
|
-
|
|
7610
|
+
Subject.prototype._throwIfClosed = function() {
|
|
7754
7611
|
if (this.closed) {
|
|
7755
7612
|
throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError;
|
|
7756
7613
|
}
|
|
7757
7614
|
};
|
|
7758
|
-
|
|
7615
|
+
Subject.prototype.next = function(value) {
|
|
7759
7616
|
var _this = this;
|
|
7760
7617
|
errorContext_1.errorContext(function() {
|
|
7761
7618
|
var e_1, _a;
|
|
@@ -7783,7 +7640,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7783
7640
|
}
|
|
7784
7641
|
});
|
|
7785
7642
|
};
|
|
7786
|
-
|
|
7643
|
+
Subject.prototype.error = function(err) {
|
|
7787
7644
|
var _this = this;
|
|
7788
7645
|
errorContext_1.errorContext(function() {
|
|
7789
7646
|
_this._throwIfClosed();
|
|
@@ -7797,7 +7654,7 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7797
7654
|
}
|
|
7798
7655
|
});
|
|
7799
7656
|
};
|
|
7800
|
-
|
|
7657
|
+
Subject.prototype.complete = function() {
|
|
7801
7658
|
var _this = this;
|
|
7802
7659
|
errorContext_1.errorContext(function() {
|
|
7803
7660
|
_this._throwIfClosed();
|
|
@@ -7810,11 +7667,11 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7810
7667
|
}
|
|
7811
7668
|
});
|
|
7812
7669
|
};
|
|
7813
|
-
|
|
7670
|
+
Subject.prototype.unsubscribe = function() {
|
|
7814
7671
|
this.isStopped = this.closed = true;
|
|
7815
7672
|
this.observers = this.currentObservers = null;
|
|
7816
7673
|
};
|
|
7817
|
-
Object.defineProperty(
|
|
7674
|
+
Object.defineProperty(Subject.prototype, "observed", {
|
|
7818
7675
|
get: function() {
|
|
7819
7676
|
var _a;
|
|
7820
7677
|
return ((_a = this.observers) === null || _a === undefined ? undefined : _a.length) > 0;
|
|
@@ -7822,18 +7679,18 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7822
7679
|
enumerable: false,
|
|
7823
7680
|
configurable: true
|
|
7824
7681
|
});
|
|
7825
|
-
|
|
7682
|
+
Subject.prototype._trySubscribe = function(subscriber) {
|
|
7826
7683
|
this._throwIfClosed();
|
|
7827
7684
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
7828
7685
|
};
|
|
7829
|
-
|
|
7686
|
+
Subject.prototype._subscribe = function(subscriber) {
|
|
7830
7687
|
this._throwIfClosed();
|
|
7831
7688
|
this._checkFinalizedStatuses(subscriber);
|
|
7832
7689
|
return this._innerSubscribe(subscriber);
|
|
7833
7690
|
};
|
|
7834
|
-
|
|
7691
|
+
Subject.prototype._innerSubscribe = function(subscriber) {
|
|
7835
7692
|
var _this = this;
|
|
7836
|
-
var _a = this,
|
|
7693
|
+
var _a = this, { hasError, isStopped, observers } = _a;
|
|
7837
7694
|
if (hasError || isStopped) {
|
|
7838
7695
|
return Subscription_1.EMPTY_SUBSCRIPTION;
|
|
7839
7696
|
}
|
|
@@ -7844,50 +7701,50 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7844
7701
|
arrRemove_1.arrRemove(observers, subscriber);
|
|
7845
7702
|
});
|
|
7846
7703
|
};
|
|
7847
|
-
|
|
7848
|
-
var _a = this,
|
|
7704
|
+
Subject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
7705
|
+
var _a = this, { hasError, thrownError, isStopped } = _a;
|
|
7849
7706
|
if (hasError) {
|
|
7850
7707
|
subscriber.error(thrownError);
|
|
7851
7708
|
} else if (isStopped) {
|
|
7852
7709
|
subscriber.complete();
|
|
7853
7710
|
}
|
|
7854
7711
|
};
|
|
7855
|
-
|
|
7712
|
+
Subject.prototype.asObservable = function() {
|
|
7856
7713
|
var observable = new Observable_1.Observable;
|
|
7857
7714
|
observable.source = this;
|
|
7858
7715
|
return observable;
|
|
7859
7716
|
};
|
|
7860
|
-
|
|
7717
|
+
Subject.create = function(destination, source) {
|
|
7861
7718
|
return new AnonymousSubject(destination, source);
|
|
7862
7719
|
};
|
|
7863
|
-
return
|
|
7720
|
+
return Subject;
|
|
7864
7721
|
}(Observable_1.Observable);
|
|
7865
7722
|
exports.Subject = Subject;
|
|
7866
7723
|
var AnonymousSubject = function(_super) {
|
|
7867
|
-
__extends(
|
|
7868
|
-
function
|
|
7724
|
+
__extends(AnonymousSubject, _super);
|
|
7725
|
+
function AnonymousSubject(destination, source) {
|
|
7869
7726
|
var _this = _super.call(this) || this;
|
|
7870
7727
|
_this.destination = destination;
|
|
7871
7728
|
_this.source = source;
|
|
7872
7729
|
return _this;
|
|
7873
7730
|
}
|
|
7874
|
-
|
|
7731
|
+
AnonymousSubject.prototype.next = function(value) {
|
|
7875
7732
|
var _a, _b;
|
|
7876
7733
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.next) === null || _b === undefined || _b.call(_a, value);
|
|
7877
7734
|
};
|
|
7878
|
-
|
|
7735
|
+
AnonymousSubject.prototype.error = function(err) {
|
|
7879
7736
|
var _a, _b;
|
|
7880
7737
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.error) === null || _b === undefined || _b.call(_a, err);
|
|
7881
7738
|
};
|
|
7882
|
-
|
|
7739
|
+
AnonymousSubject.prototype.complete = function() {
|
|
7883
7740
|
var _a, _b;
|
|
7884
7741
|
(_b = (_a = this.destination) === null || _a === undefined ? undefined : _a.complete) === null || _b === undefined || _b.call(_a);
|
|
7885
7742
|
};
|
|
7886
|
-
|
|
7743
|
+
AnonymousSubject.prototype._subscribe = function(subscriber) {
|
|
7887
7744
|
var _a, _b;
|
|
7888
7745
|
return (_b = (_a = this.source) === null || _a === undefined ? undefined : _a.subscribe(subscriber)) !== null && _b !== undefined ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
|
|
7889
7746
|
};
|
|
7890
|
-
return
|
|
7747
|
+
return AnonymousSubject;
|
|
7891
7748
|
}(Subject);
|
|
7892
7749
|
exports.AnonymousSubject = AnonymousSubject;
|
|
7893
7750
|
});
|
|
@@ -7896,12 +7753,12 @@ var require_Subject = __commonJS(function(exports) {
|
|
|
7896
7753
|
var require_BehaviorSubject = __commonJS(function(exports) {
|
|
7897
7754
|
var __extends = exports && exports.__extends || function() {
|
|
7898
7755
|
var extendStatics = function(d, b) {
|
|
7899
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
7900
|
-
|
|
7901
|
-
} || function(
|
|
7902
|
-
for (var p in
|
|
7903
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7904
|
-
|
|
7756
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7757
|
+
d.__proto__ = b;
|
|
7758
|
+
} || function(d, b) {
|
|
7759
|
+
for (var p in b)
|
|
7760
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7761
|
+
d[p] = b[p];
|
|
7905
7762
|
};
|
|
7906
7763
|
return extendStatics(d, b);
|
|
7907
7764
|
};
|
|
@@ -7919,36 +7776,36 @@ var require_BehaviorSubject = __commonJS(function(exports) {
|
|
|
7919
7776
|
exports.BehaviorSubject = undefined;
|
|
7920
7777
|
var Subject_1 = require_Subject();
|
|
7921
7778
|
var BehaviorSubject = function(_super) {
|
|
7922
|
-
__extends(
|
|
7923
|
-
function
|
|
7779
|
+
__extends(BehaviorSubject, _super);
|
|
7780
|
+
function BehaviorSubject(_value) {
|
|
7924
7781
|
var _this = _super.call(this) || this;
|
|
7925
7782
|
_this._value = _value;
|
|
7926
7783
|
return _this;
|
|
7927
7784
|
}
|
|
7928
|
-
Object.defineProperty(
|
|
7785
|
+
Object.defineProperty(BehaviorSubject.prototype, "value", {
|
|
7929
7786
|
get: function() {
|
|
7930
7787
|
return this.getValue();
|
|
7931
7788
|
},
|
|
7932
7789
|
enumerable: false,
|
|
7933
7790
|
configurable: true
|
|
7934
7791
|
});
|
|
7935
|
-
|
|
7792
|
+
BehaviorSubject.prototype._subscribe = function(subscriber) {
|
|
7936
7793
|
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
|
7937
7794
|
!subscription.closed && subscriber.next(this._value);
|
|
7938
7795
|
return subscription;
|
|
7939
7796
|
};
|
|
7940
|
-
|
|
7941
|
-
var _a = this,
|
|
7797
|
+
BehaviorSubject.prototype.getValue = function() {
|
|
7798
|
+
var _a = this, { hasError, thrownError, _value } = _a;
|
|
7942
7799
|
if (hasError) {
|
|
7943
7800
|
throw thrownError;
|
|
7944
7801
|
}
|
|
7945
7802
|
this._throwIfClosed();
|
|
7946
7803
|
return _value;
|
|
7947
7804
|
};
|
|
7948
|
-
|
|
7805
|
+
BehaviorSubject.prototype.next = function(value) {
|
|
7949
7806
|
_super.prototype.next.call(this, this._value = value);
|
|
7950
7807
|
};
|
|
7951
|
-
return
|
|
7808
|
+
return BehaviorSubject;
|
|
7952
7809
|
}(Subject_1.Subject);
|
|
7953
7810
|
exports.BehaviorSubject = BehaviorSubject;
|
|
7954
7811
|
});
|
|
@@ -7969,12 +7826,12 @@ var require_dateTimestampProvider = __commonJS(function(exports) {
|
|
|
7969
7826
|
var require_ReplaySubject = __commonJS(function(exports) {
|
|
7970
7827
|
var __extends = exports && exports.__extends || function() {
|
|
7971
7828
|
var extendStatics = function(d, b) {
|
|
7972
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
7973
|
-
|
|
7974
|
-
} || function(
|
|
7975
|
-
for (var p in
|
|
7976
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7977
|
-
|
|
7829
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7830
|
+
d.__proto__ = b;
|
|
7831
|
+
} || function(d, b) {
|
|
7832
|
+
for (var p in b)
|
|
7833
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7834
|
+
d[p] = b[p];
|
|
7978
7835
|
};
|
|
7979
7836
|
return extendStatics(d, b);
|
|
7980
7837
|
};
|
|
@@ -7993,8 +7850,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
7993
7850
|
var Subject_1 = require_Subject();
|
|
7994
7851
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
7995
7852
|
var ReplaySubject = function(_super) {
|
|
7996
|
-
__extends(
|
|
7997
|
-
function
|
|
7853
|
+
__extends(ReplaySubject, _super);
|
|
7854
|
+
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
7998
7855
|
if (_bufferSize === undefined) {
|
|
7999
7856
|
_bufferSize = Infinity;
|
|
8000
7857
|
}
|
|
@@ -8015,8 +7872,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
8015
7872
|
_this._windowTime = Math.max(1, _windowTime);
|
|
8016
7873
|
return _this;
|
|
8017
7874
|
}
|
|
8018
|
-
|
|
8019
|
-
var _a = this,
|
|
7875
|
+
ReplaySubject.prototype.next = function(value) {
|
|
7876
|
+
var _a = this, { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = _a;
|
|
8020
7877
|
if (!isStopped) {
|
|
8021
7878
|
_buffer.push(value);
|
|
8022
7879
|
!_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
|
|
@@ -8024,11 +7881,11 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
8024
7881
|
this._trimBuffer();
|
|
8025
7882
|
_super.prototype.next.call(this, value);
|
|
8026
7883
|
};
|
|
8027
|
-
|
|
7884
|
+
ReplaySubject.prototype._subscribe = function(subscriber) {
|
|
8028
7885
|
this._throwIfClosed();
|
|
8029
7886
|
this._trimBuffer();
|
|
8030
7887
|
var subscription = this._innerSubscribe(subscriber);
|
|
8031
|
-
var _a = this,
|
|
7888
|
+
var _a = this, { _infiniteTimeWindow, _buffer } = _a;
|
|
8032
7889
|
var copy = _buffer.slice();
|
|
8033
7890
|
for (var i = 0;i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {
|
|
8034
7891
|
subscriber.next(copy[i]);
|
|
@@ -8036,8 +7893,8 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
8036
7893
|
this._checkFinalizedStatuses(subscriber);
|
|
8037
7894
|
return subscription;
|
|
8038
7895
|
};
|
|
8039
|
-
|
|
8040
|
-
var _a = this,
|
|
7896
|
+
ReplaySubject.prototype._trimBuffer = function() {
|
|
7897
|
+
var _a = this, { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = _a;
|
|
8041
7898
|
var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
|
|
8042
7899
|
_bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
|
|
8043
7900
|
if (!_infiniteTimeWindow) {
|
|
@@ -8049,7 +7906,7 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
8049
7906
|
last && _buffer.splice(0, last + 1);
|
|
8050
7907
|
}
|
|
8051
7908
|
};
|
|
8052
|
-
return
|
|
7909
|
+
return ReplaySubject;
|
|
8053
7910
|
}(Subject_1.Subject);
|
|
8054
7911
|
exports.ReplaySubject = ReplaySubject;
|
|
8055
7912
|
});
|
|
@@ -8058,12 +7915,12 @@ var require_ReplaySubject = __commonJS(function(exports) {
|
|
|
8058
7915
|
var require_AsyncSubject = __commonJS(function(exports) {
|
|
8059
7916
|
var __extends = exports && exports.__extends || function() {
|
|
8060
7917
|
var extendStatics = function(d, b) {
|
|
8061
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8062
|
-
|
|
8063
|
-
} || function(
|
|
8064
|
-
for (var p in
|
|
8065
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8066
|
-
|
|
7918
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7919
|
+
d.__proto__ = b;
|
|
7920
|
+
} || function(d, b) {
|
|
7921
|
+
for (var p in b)
|
|
7922
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7923
|
+
d[p] = b[p];
|
|
8067
7924
|
};
|
|
8068
7925
|
return extendStatics(d, b);
|
|
8069
7926
|
};
|
|
@@ -8081,16 +7938,16 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
8081
7938
|
exports.AsyncSubject = undefined;
|
|
8082
7939
|
var Subject_1 = require_Subject();
|
|
8083
7940
|
var AsyncSubject = function(_super) {
|
|
8084
|
-
__extends(
|
|
8085
|
-
function
|
|
7941
|
+
__extends(AsyncSubject, _super);
|
|
7942
|
+
function AsyncSubject() {
|
|
8086
7943
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8087
7944
|
_this._value = null;
|
|
8088
7945
|
_this._hasValue = false;
|
|
8089
7946
|
_this._isComplete = false;
|
|
8090
7947
|
return _this;
|
|
8091
7948
|
}
|
|
8092
|
-
|
|
8093
|
-
var _a = this,
|
|
7949
|
+
AsyncSubject.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
7950
|
+
var _a = this, { hasError, _hasValue, _value, thrownError, isStopped, _isComplete } = _a;
|
|
8094
7951
|
if (hasError) {
|
|
8095
7952
|
subscriber.error(thrownError);
|
|
8096
7953
|
} else if (isStopped || _isComplete) {
|
|
@@ -8098,21 +7955,21 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
8098
7955
|
subscriber.complete();
|
|
8099
7956
|
}
|
|
8100
7957
|
};
|
|
8101
|
-
|
|
7958
|
+
AsyncSubject.prototype.next = function(value) {
|
|
8102
7959
|
if (!this.isStopped) {
|
|
8103
7960
|
this._value = value;
|
|
8104
7961
|
this._hasValue = true;
|
|
8105
7962
|
}
|
|
8106
7963
|
};
|
|
8107
|
-
|
|
8108
|
-
var _a = this,
|
|
7964
|
+
AsyncSubject.prototype.complete = function() {
|
|
7965
|
+
var _a = this, { _hasValue, _value, _isComplete } = _a;
|
|
8109
7966
|
if (!_isComplete) {
|
|
8110
7967
|
this._isComplete = true;
|
|
8111
7968
|
_hasValue && _super.prototype.next.call(this, _value);
|
|
8112
7969
|
_super.prototype.complete.call(this);
|
|
8113
7970
|
}
|
|
8114
7971
|
};
|
|
8115
|
-
return
|
|
7972
|
+
return AsyncSubject;
|
|
8116
7973
|
}(Subject_1.Subject);
|
|
8117
7974
|
exports.AsyncSubject = AsyncSubject;
|
|
8118
7975
|
});
|
|
@@ -8121,12 +7978,12 @@ var require_AsyncSubject = __commonJS(function(exports) {
|
|
|
8121
7978
|
var require_Action = __commonJS(function(exports) {
|
|
8122
7979
|
var __extends = exports && exports.__extends || function() {
|
|
8123
7980
|
var extendStatics = function(d, b) {
|
|
8124
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8125
|
-
|
|
8126
|
-
} || function(
|
|
8127
|
-
for (var p in
|
|
8128
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8129
|
-
|
|
7981
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
7982
|
+
d.__proto__ = b;
|
|
7983
|
+
} || function(d, b) {
|
|
7984
|
+
for (var p in b)
|
|
7985
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
7986
|
+
d[p] = b[p];
|
|
8130
7987
|
};
|
|
8131
7988
|
return extendStatics(d, b);
|
|
8132
7989
|
};
|
|
@@ -8144,17 +8001,17 @@ var require_Action = __commonJS(function(exports) {
|
|
|
8144
8001
|
exports.Action = undefined;
|
|
8145
8002
|
var Subscription_1 = require_Subscription();
|
|
8146
8003
|
var Action = function(_super) {
|
|
8147
|
-
__extends(
|
|
8148
|
-
function
|
|
8004
|
+
__extends(Action, _super);
|
|
8005
|
+
function Action(scheduler, work) {
|
|
8149
8006
|
return _super.call(this) || this;
|
|
8150
8007
|
}
|
|
8151
|
-
|
|
8008
|
+
Action.prototype.schedule = function(state, delay) {
|
|
8152
8009
|
if (delay === undefined) {
|
|
8153
8010
|
delay = 0;
|
|
8154
8011
|
}
|
|
8155
8012
|
return this;
|
|
8156
8013
|
};
|
|
8157
|
-
return
|
|
8014
|
+
return Action;
|
|
8158
8015
|
}(Subscription_1.Subscription);
|
|
8159
8016
|
exports.Action = Action;
|
|
8160
8017
|
});
|
|
@@ -8213,12 +8070,12 @@ var require_intervalProvider = __commonJS(function(exports) {
|
|
|
8213
8070
|
var require_AsyncAction = __commonJS(function(exports) {
|
|
8214
8071
|
var __extends = exports && exports.__extends || function() {
|
|
8215
8072
|
var extendStatics = function(d, b) {
|
|
8216
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8217
|
-
|
|
8218
|
-
} || function(
|
|
8219
|
-
for (var p in
|
|
8220
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8221
|
-
|
|
8073
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8074
|
+
d.__proto__ = b;
|
|
8075
|
+
} || function(d, b) {
|
|
8076
|
+
for (var p in b)
|
|
8077
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8078
|
+
d[p] = b[p];
|
|
8222
8079
|
};
|
|
8223
8080
|
return extendStatics(d, b);
|
|
8224
8081
|
};
|
|
@@ -8238,15 +8095,15 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8238
8095
|
var intervalProvider_1 = require_intervalProvider();
|
|
8239
8096
|
var arrRemove_1 = require_arrRemove();
|
|
8240
8097
|
var AsyncAction = function(_super) {
|
|
8241
|
-
__extends(
|
|
8242
|
-
function
|
|
8098
|
+
__extends(AsyncAction, _super);
|
|
8099
|
+
function AsyncAction(scheduler, work) {
|
|
8243
8100
|
var _this = _super.call(this, scheduler, work) || this;
|
|
8244
8101
|
_this.scheduler = scheduler;
|
|
8245
8102
|
_this.work = work;
|
|
8246
8103
|
_this.pending = false;
|
|
8247
8104
|
return _this;
|
|
8248
8105
|
}
|
|
8249
|
-
|
|
8106
|
+
AsyncAction.prototype.schedule = function(state, delay) {
|
|
8250
8107
|
var _a;
|
|
8251
8108
|
if (delay === undefined) {
|
|
8252
8109
|
delay = 0;
|
|
@@ -8265,13 +8122,13 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8265
8122
|
this.id = (_a = this.id) !== null && _a !== undefined ? _a : this.requestAsyncId(scheduler, this.id, delay);
|
|
8266
8123
|
return this;
|
|
8267
8124
|
};
|
|
8268
|
-
|
|
8125
|
+
AsyncAction.prototype.requestAsyncId = function(scheduler, _id, delay) {
|
|
8269
8126
|
if (delay === undefined) {
|
|
8270
8127
|
delay = 0;
|
|
8271
8128
|
}
|
|
8272
8129
|
return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
|
8273
8130
|
};
|
|
8274
|
-
|
|
8131
|
+
AsyncAction.prototype.recycleAsyncId = function(_scheduler, id, delay) {
|
|
8275
8132
|
if (delay === undefined) {
|
|
8276
8133
|
delay = 0;
|
|
8277
8134
|
}
|
|
@@ -8283,7 +8140,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8283
8140
|
}
|
|
8284
8141
|
return;
|
|
8285
8142
|
};
|
|
8286
|
-
|
|
8143
|
+
AsyncAction.prototype.execute = function(state, delay) {
|
|
8287
8144
|
if (this.closed) {
|
|
8288
8145
|
return new Error("executing a cancelled action");
|
|
8289
8146
|
}
|
|
@@ -8295,7 +8152,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8295
8152
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
8296
8153
|
}
|
|
8297
8154
|
};
|
|
8298
|
-
|
|
8155
|
+
AsyncAction.prototype._execute = function(state, _delay) {
|
|
8299
8156
|
var errored = false;
|
|
8300
8157
|
var errorValue;
|
|
8301
8158
|
try {
|
|
@@ -8309,9 +8166,9 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8309
8166
|
return errorValue;
|
|
8310
8167
|
}
|
|
8311
8168
|
};
|
|
8312
|
-
|
|
8169
|
+
AsyncAction.prototype.unsubscribe = function() {
|
|
8313
8170
|
if (!this.closed) {
|
|
8314
|
-
var _a = this,
|
|
8171
|
+
var _a = this, { id, scheduler } = _a;
|
|
8315
8172
|
var actions = scheduler.actions;
|
|
8316
8173
|
this.work = this.state = this.scheduler = null;
|
|
8317
8174
|
this.pending = false;
|
|
@@ -8323,7 +8180,7 @@ var require_AsyncAction = __commonJS(function(exports) {
|
|
|
8323
8180
|
_super.prototype.unsubscribe.call(this);
|
|
8324
8181
|
}
|
|
8325
8182
|
};
|
|
8326
|
-
return
|
|
8183
|
+
return AsyncAction;
|
|
8327
8184
|
}(Action_1.Action);
|
|
8328
8185
|
exports.AsyncAction = AsyncAction;
|
|
8329
8186
|
});
|
|
@@ -8419,12 +8276,12 @@ var require_immediateProvider = __commonJS(function(exports) {
|
|
|
8419
8276
|
var require_AsapAction = __commonJS(function(exports) {
|
|
8420
8277
|
var __extends = exports && exports.__extends || function() {
|
|
8421
8278
|
var extendStatics = function(d, b) {
|
|
8422
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8423
|
-
|
|
8424
|
-
} || function(
|
|
8425
|
-
for (var p in
|
|
8426
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8427
|
-
|
|
8279
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8280
|
+
d.__proto__ = b;
|
|
8281
|
+
} || function(d, b) {
|
|
8282
|
+
for (var p in b)
|
|
8283
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8284
|
+
d[p] = b[p];
|
|
8428
8285
|
};
|
|
8429
8286
|
return extendStatics(d, b);
|
|
8430
8287
|
};
|
|
@@ -8443,14 +8300,14 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
8443
8300
|
var AsyncAction_1 = require_AsyncAction();
|
|
8444
8301
|
var immediateProvider_1 = require_immediateProvider();
|
|
8445
8302
|
var AsapAction = function(_super) {
|
|
8446
|
-
__extends(
|
|
8447
|
-
function
|
|
8303
|
+
__extends(AsapAction, _super);
|
|
8304
|
+
function AsapAction(scheduler, work) {
|
|
8448
8305
|
var _this = _super.call(this, scheduler, work) || this;
|
|
8449
8306
|
_this.scheduler = scheduler;
|
|
8450
8307
|
_this.work = work;
|
|
8451
8308
|
return _this;
|
|
8452
8309
|
}
|
|
8453
|
-
|
|
8310
|
+
AsapAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
8454
8311
|
if (delay === undefined) {
|
|
8455
8312
|
delay = 0;
|
|
8456
8313
|
}
|
|
@@ -8460,7 +8317,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
8460
8317
|
scheduler.actions.push(this);
|
|
8461
8318
|
return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));
|
|
8462
8319
|
};
|
|
8463
|
-
|
|
8320
|
+
AsapAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
8464
8321
|
var _a;
|
|
8465
8322
|
if (delay === undefined) {
|
|
8466
8323
|
delay = 0;
|
|
@@ -8477,7 +8334,7 @@ var require_AsapAction = __commonJS(function(exports) {
|
|
|
8477
8334
|
}
|
|
8478
8335
|
return;
|
|
8479
8336
|
};
|
|
8480
|
-
return
|
|
8337
|
+
return AsapAction;
|
|
8481
8338
|
}(AsyncAction_1.AsyncAction);
|
|
8482
8339
|
exports.AsapAction = AsapAction;
|
|
8483
8340
|
});
|
|
@@ -8488,21 +8345,21 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
8488
8345
|
exports.Scheduler = undefined;
|
|
8489
8346
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
8490
8347
|
var Scheduler = function() {
|
|
8491
|
-
function
|
|
8348
|
+
function Scheduler(schedulerActionCtor, now) {
|
|
8492
8349
|
if (now === undefined) {
|
|
8493
|
-
now =
|
|
8350
|
+
now = Scheduler.now;
|
|
8494
8351
|
}
|
|
8495
8352
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
8496
8353
|
this.now = now;
|
|
8497
8354
|
}
|
|
8498
|
-
|
|
8355
|
+
Scheduler.prototype.schedule = function(work, delay, state) {
|
|
8499
8356
|
if (delay === undefined) {
|
|
8500
8357
|
delay = 0;
|
|
8501
8358
|
}
|
|
8502
8359
|
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
8503
8360
|
};
|
|
8504
|
-
|
|
8505
|
-
return
|
|
8361
|
+
Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now;
|
|
8362
|
+
return Scheduler;
|
|
8506
8363
|
}();
|
|
8507
8364
|
exports.Scheduler = Scheduler;
|
|
8508
8365
|
});
|
|
@@ -8511,12 +8368,12 @@ var require_Scheduler = __commonJS(function(exports) {
|
|
|
8511
8368
|
var require_AsyncScheduler = __commonJS(function(exports) {
|
|
8512
8369
|
var __extends = exports && exports.__extends || function() {
|
|
8513
8370
|
var extendStatics = function(d, b) {
|
|
8514
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8515
|
-
|
|
8516
|
-
} || function(
|
|
8517
|
-
for (var p in
|
|
8518
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8519
|
-
|
|
8371
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8372
|
+
d.__proto__ = b;
|
|
8373
|
+
} || function(d, b) {
|
|
8374
|
+
for (var p in b)
|
|
8375
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8376
|
+
d[p] = b[p];
|
|
8520
8377
|
};
|
|
8521
8378
|
return extendStatics(d, b);
|
|
8522
8379
|
};
|
|
@@ -8534,8 +8391,8 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
8534
8391
|
exports.AsyncScheduler = undefined;
|
|
8535
8392
|
var Scheduler_1 = require_Scheduler();
|
|
8536
8393
|
var AsyncScheduler = function(_super) {
|
|
8537
|
-
__extends(
|
|
8538
|
-
function
|
|
8394
|
+
__extends(AsyncScheduler, _super);
|
|
8395
|
+
function AsyncScheduler(SchedulerAction, now) {
|
|
8539
8396
|
if (now === undefined) {
|
|
8540
8397
|
now = Scheduler_1.Scheduler.now;
|
|
8541
8398
|
}
|
|
@@ -8544,7 +8401,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
8544
8401
|
_this._active = false;
|
|
8545
8402
|
return _this;
|
|
8546
8403
|
}
|
|
8547
|
-
|
|
8404
|
+
AsyncScheduler.prototype.flush = function(action) {
|
|
8548
8405
|
var actions = this.actions;
|
|
8549
8406
|
if (this._active) {
|
|
8550
8407
|
actions.push(action);
|
|
@@ -8565,7 +8422,7 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
8565
8422
|
throw error;
|
|
8566
8423
|
}
|
|
8567
8424
|
};
|
|
8568
|
-
return
|
|
8425
|
+
return AsyncScheduler;
|
|
8569
8426
|
}(Scheduler_1.Scheduler);
|
|
8570
8427
|
exports.AsyncScheduler = AsyncScheduler;
|
|
8571
8428
|
});
|
|
@@ -8574,12 +8431,12 @@ var require_AsyncScheduler = __commonJS(function(exports) {
|
|
|
8574
8431
|
var require_AsapScheduler = __commonJS(function(exports) {
|
|
8575
8432
|
var __extends = exports && exports.__extends || function() {
|
|
8576
8433
|
var extendStatics = function(d, b) {
|
|
8577
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8578
|
-
|
|
8579
|
-
} || function(
|
|
8580
|
-
for (var p in
|
|
8581
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8582
|
-
|
|
8434
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8435
|
+
d.__proto__ = b;
|
|
8436
|
+
} || function(d, b) {
|
|
8437
|
+
for (var p in b)
|
|
8438
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8439
|
+
d[p] = b[p];
|
|
8583
8440
|
};
|
|
8584
8441
|
return extendStatics(d, b);
|
|
8585
8442
|
};
|
|
@@ -8597,11 +8454,11 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
8597
8454
|
exports.AsapScheduler = undefined;
|
|
8598
8455
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
8599
8456
|
var AsapScheduler = function(_super) {
|
|
8600
|
-
__extends(
|
|
8601
|
-
function
|
|
8457
|
+
__extends(AsapScheduler, _super);
|
|
8458
|
+
function AsapScheduler() {
|
|
8602
8459
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8603
8460
|
}
|
|
8604
|
-
|
|
8461
|
+
AsapScheduler.prototype.flush = function(action) {
|
|
8605
8462
|
this._active = true;
|
|
8606
8463
|
var flushId = this._scheduled;
|
|
8607
8464
|
this._scheduled = undefined;
|
|
@@ -8621,7 +8478,7 @@ var require_AsapScheduler = __commonJS(function(exports) {
|
|
|
8621
8478
|
throw error;
|
|
8622
8479
|
}
|
|
8623
8480
|
};
|
|
8624
|
-
return
|
|
8481
|
+
return AsapScheduler;
|
|
8625
8482
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
8626
8483
|
exports.AsapScheduler = AsapScheduler;
|
|
8627
8484
|
});
|
|
@@ -8650,12 +8507,12 @@ var require_async = __commonJS(function(exports) {
|
|
|
8650
8507
|
var require_QueueAction = __commonJS(function(exports) {
|
|
8651
8508
|
var __extends = exports && exports.__extends || function() {
|
|
8652
8509
|
var extendStatics = function(d, b) {
|
|
8653
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8654
|
-
|
|
8655
|
-
} || function(
|
|
8656
|
-
for (var p in
|
|
8657
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8658
|
-
|
|
8510
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8511
|
+
d.__proto__ = b;
|
|
8512
|
+
} || function(d, b) {
|
|
8513
|
+
for (var p in b)
|
|
8514
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8515
|
+
d[p] = b[p];
|
|
8659
8516
|
};
|
|
8660
8517
|
return extendStatics(d, b);
|
|
8661
8518
|
};
|
|
@@ -8673,14 +8530,14 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
8673
8530
|
exports.QueueAction = undefined;
|
|
8674
8531
|
var AsyncAction_1 = require_AsyncAction();
|
|
8675
8532
|
var QueueAction = function(_super) {
|
|
8676
|
-
__extends(
|
|
8677
|
-
function
|
|
8533
|
+
__extends(QueueAction, _super);
|
|
8534
|
+
function QueueAction(scheduler, work) {
|
|
8678
8535
|
var _this = _super.call(this, scheduler, work) || this;
|
|
8679
8536
|
_this.scheduler = scheduler;
|
|
8680
8537
|
_this.work = work;
|
|
8681
8538
|
return _this;
|
|
8682
8539
|
}
|
|
8683
|
-
|
|
8540
|
+
QueueAction.prototype.schedule = function(state, delay) {
|
|
8684
8541
|
if (delay === undefined) {
|
|
8685
8542
|
delay = 0;
|
|
8686
8543
|
}
|
|
@@ -8692,10 +8549,10 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
8692
8549
|
this.scheduler.flush(this);
|
|
8693
8550
|
return this;
|
|
8694
8551
|
};
|
|
8695
|
-
|
|
8552
|
+
QueueAction.prototype.execute = function(state, delay) {
|
|
8696
8553
|
return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
|
|
8697
8554
|
};
|
|
8698
|
-
|
|
8555
|
+
QueueAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
8699
8556
|
if (delay === undefined) {
|
|
8700
8557
|
delay = 0;
|
|
8701
8558
|
}
|
|
@@ -8705,7 +8562,7 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
8705
8562
|
scheduler.flush(this);
|
|
8706
8563
|
return 0;
|
|
8707
8564
|
};
|
|
8708
|
-
return
|
|
8565
|
+
return QueueAction;
|
|
8709
8566
|
}(AsyncAction_1.AsyncAction);
|
|
8710
8567
|
exports.QueueAction = QueueAction;
|
|
8711
8568
|
});
|
|
@@ -8714,12 +8571,12 @@ var require_QueueAction = __commonJS(function(exports) {
|
|
|
8714
8571
|
var require_QueueScheduler = __commonJS(function(exports) {
|
|
8715
8572
|
var __extends = exports && exports.__extends || function() {
|
|
8716
8573
|
var extendStatics = function(d, b) {
|
|
8717
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8718
|
-
|
|
8719
|
-
} || function(
|
|
8720
|
-
for (var p in
|
|
8721
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8722
|
-
|
|
8574
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8575
|
+
d.__proto__ = b;
|
|
8576
|
+
} || function(d, b) {
|
|
8577
|
+
for (var p in b)
|
|
8578
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8579
|
+
d[p] = b[p];
|
|
8723
8580
|
};
|
|
8724
8581
|
return extendStatics(d, b);
|
|
8725
8582
|
};
|
|
@@ -8737,11 +8594,11 @@ var require_QueueScheduler = __commonJS(function(exports) {
|
|
|
8737
8594
|
exports.QueueScheduler = undefined;
|
|
8738
8595
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
8739
8596
|
var QueueScheduler = function(_super) {
|
|
8740
|
-
__extends(
|
|
8741
|
-
function
|
|
8597
|
+
__extends(QueueScheduler, _super);
|
|
8598
|
+
function QueueScheduler() {
|
|
8742
8599
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8743
8600
|
}
|
|
8744
|
-
return
|
|
8601
|
+
return QueueScheduler;
|
|
8745
8602
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
8746
8603
|
exports.QueueScheduler = QueueScheduler;
|
|
8747
8604
|
});
|
|
@@ -8760,12 +8617,12 @@ var require_queue = __commonJS(function(exports) {
|
|
|
8760
8617
|
var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
8761
8618
|
var __extends = exports && exports.__extends || function() {
|
|
8762
8619
|
var extendStatics = function(d, b) {
|
|
8763
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8764
|
-
|
|
8765
|
-
} || function(
|
|
8766
|
-
for (var p in
|
|
8767
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8768
|
-
|
|
8620
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8621
|
+
d.__proto__ = b;
|
|
8622
|
+
} || function(d, b) {
|
|
8623
|
+
for (var p in b)
|
|
8624
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8625
|
+
d[p] = b[p];
|
|
8769
8626
|
};
|
|
8770
8627
|
return extendStatics(d, b);
|
|
8771
8628
|
};
|
|
@@ -8784,14 +8641,14 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
8784
8641
|
var AsyncAction_1 = require_AsyncAction();
|
|
8785
8642
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
|
8786
8643
|
var AnimationFrameAction = function(_super) {
|
|
8787
|
-
__extends(
|
|
8788
|
-
function
|
|
8644
|
+
__extends(AnimationFrameAction, _super);
|
|
8645
|
+
function AnimationFrameAction(scheduler, work) {
|
|
8789
8646
|
var _this = _super.call(this, scheduler, work) || this;
|
|
8790
8647
|
_this.scheduler = scheduler;
|
|
8791
8648
|
_this.work = work;
|
|
8792
8649
|
return _this;
|
|
8793
8650
|
}
|
|
8794
|
-
|
|
8651
|
+
AnimationFrameAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
8795
8652
|
if (delay === undefined) {
|
|
8796
8653
|
delay = 0;
|
|
8797
8654
|
}
|
|
@@ -8803,7 +8660,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
8803
8660
|
return scheduler.flush(undefined);
|
|
8804
8661
|
}));
|
|
8805
8662
|
};
|
|
8806
|
-
|
|
8663
|
+
AnimationFrameAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
8807
8664
|
var _a;
|
|
8808
8665
|
if (delay === undefined) {
|
|
8809
8666
|
delay = 0;
|
|
@@ -8818,7 +8675,7 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
8818
8675
|
}
|
|
8819
8676
|
return;
|
|
8820
8677
|
};
|
|
8821
|
-
return
|
|
8678
|
+
return AnimationFrameAction;
|
|
8822
8679
|
}(AsyncAction_1.AsyncAction);
|
|
8823
8680
|
exports.AnimationFrameAction = AnimationFrameAction;
|
|
8824
8681
|
});
|
|
@@ -8827,12 +8684,12 @@ var require_AnimationFrameAction = __commonJS(function(exports) {
|
|
|
8827
8684
|
var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
8828
8685
|
var __extends = exports && exports.__extends || function() {
|
|
8829
8686
|
var extendStatics = function(d, b) {
|
|
8830
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8831
|
-
|
|
8832
|
-
} || function(
|
|
8833
|
-
for (var p in
|
|
8834
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8835
|
-
|
|
8687
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8688
|
+
d.__proto__ = b;
|
|
8689
|
+
} || function(d, b) {
|
|
8690
|
+
for (var p in b)
|
|
8691
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8692
|
+
d[p] = b[p];
|
|
8836
8693
|
};
|
|
8837
8694
|
return extendStatics(d, b);
|
|
8838
8695
|
};
|
|
@@ -8850,11 +8707,11 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
8850
8707
|
exports.AnimationFrameScheduler = undefined;
|
|
8851
8708
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
8852
8709
|
var AnimationFrameScheduler = function(_super) {
|
|
8853
|
-
__extends(
|
|
8854
|
-
function
|
|
8710
|
+
__extends(AnimationFrameScheduler, _super);
|
|
8711
|
+
function AnimationFrameScheduler() {
|
|
8855
8712
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8856
8713
|
}
|
|
8857
|
-
|
|
8714
|
+
AnimationFrameScheduler.prototype.flush = function(action) {
|
|
8858
8715
|
this._active = true;
|
|
8859
8716
|
var flushId;
|
|
8860
8717
|
if (action) {
|
|
@@ -8879,7 +8736,7 @@ var require_AnimationFrameScheduler = __commonJS(function(exports) {
|
|
|
8879
8736
|
throw error;
|
|
8880
8737
|
}
|
|
8881
8738
|
};
|
|
8882
|
-
return
|
|
8739
|
+
return AnimationFrameScheduler;
|
|
8883
8740
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
8884
8741
|
exports.AnimationFrameScheduler = AnimationFrameScheduler;
|
|
8885
8742
|
});
|
|
@@ -8898,12 +8755,12 @@ var require_animationFrame = __commonJS(function(exports) {
|
|
|
8898
8755
|
var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
8899
8756
|
var __extends = exports && exports.__extends || function() {
|
|
8900
8757
|
var extendStatics = function(d, b) {
|
|
8901
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
8902
|
-
|
|
8903
|
-
} || function(
|
|
8904
|
-
for (var p in
|
|
8905
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
8906
|
-
|
|
8758
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
8759
|
+
d.__proto__ = b;
|
|
8760
|
+
} || function(d, b) {
|
|
8761
|
+
for (var p in b)
|
|
8762
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
8763
|
+
d[p] = b[p];
|
|
8907
8764
|
};
|
|
8908
8765
|
return extendStatics(d, b);
|
|
8909
8766
|
};
|
|
@@ -8923,8 +8780,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
8923
8780
|
var Subscription_1 = require_Subscription();
|
|
8924
8781
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
|
8925
8782
|
var VirtualTimeScheduler = function(_super) {
|
|
8926
|
-
__extends(
|
|
8927
|
-
function
|
|
8783
|
+
__extends(VirtualTimeScheduler, _super);
|
|
8784
|
+
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
8928
8785
|
if (schedulerActionCtor === undefined) {
|
|
8929
8786
|
schedulerActionCtor = VirtualAction;
|
|
8930
8787
|
}
|
|
@@ -8939,8 +8796,8 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
8939
8796
|
_this.index = -1;
|
|
8940
8797
|
return _this;
|
|
8941
8798
|
}
|
|
8942
|
-
|
|
8943
|
-
var _a = this,
|
|
8799
|
+
VirtualTimeScheduler.prototype.flush = function() {
|
|
8800
|
+
var _a = this, { actions, maxFrames } = _a;
|
|
8944
8801
|
var error;
|
|
8945
8802
|
var action;
|
|
8946
8803
|
while ((action = actions[0]) && action.delay <= maxFrames) {
|
|
@@ -8957,13 +8814,13 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
8957
8814
|
throw error;
|
|
8958
8815
|
}
|
|
8959
8816
|
};
|
|
8960
|
-
|
|
8961
|
-
return
|
|
8817
|
+
VirtualTimeScheduler.frameTimeFactor = 10;
|
|
8818
|
+
return VirtualTimeScheduler;
|
|
8962
8819
|
}(AsyncScheduler_1.AsyncScheduler);
|
|
8963
8820
|
exports.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
8964
8821
|
var VirtualAction = function(_super) {
|
|
8965
|
-
__extends(
|
|
8966
|
-
function
|
|
8822
|
+
__extends(VirtualAction, _super);
|
|
8823
|
+
function VirtualAction(scheduler, work, index) {
|
|
8967
8824
|
if (index === undefined) {
|
|
8968
8825
|
index = scheduler.index += 1;
|
|
8969
8826
|
}
|
|
@@ -8975,7 +8832,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
8975
8832
|
_this.index = scheduler.index = index;
|
|
8976
8833
|
return _this;
|
|
8977
8834
|
}
|
|
8978
|
-
|
|
8835
|
+
VirtualAction.prototype.schedule = function(state, delay) {
|
|
8979
8836
|
if (delay === undefined) {
|
|
8980
8837
|
delay = 0;
|
|
8981
8838
|
}
|
|
@@ -8984,35 +8841,35 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
8984
8841
|
return _super.prototype.schedule.call(this, state, delay);
|
|
8985
8842
|
}
|
|
8986
8843
|
this.active = false;
|
|
8987
|
-
var action = new
|
|
8844
|
+
var action = new VirtualAction(this.scheduler, this.work);
|
|
8988
8845
|
this.add(action);
|
|
8989
8846
|
return action.schedule(state, delay);
|
|
8990
8847
|
} else {
|
|
8991
8848
|
return Subscription_1.Subscription.EMPTY;
|
|
8992
8849
|
}
|
|
8993
8850
|
};
|
|
8994
|
-
|
|
8851
|
+
VirtualAction.prototype.requestAsyncId = function(scheduler, id, delay) {
|
|
8995
8852
|
if (delay === undefined) {
|
|
8996
8853
|
delay = 0;
|
|
8997
8854
|
}
|
|
8998
8855
|
this.delay = scheduler.frame + delay;
|
|
8999
8856
|
var actions = scheduler.actions;
|
|
9000
8857
|
actions.push(this);
|
|
9001
|
-
actions.sort(
|
|
8858
|
+
actions.sort(VirtualAction.sortActions);
|
|
9002
8859
|
return 1;
|
|
9003
8860
|
};
|
|
9004
|
-
|
|
8861
|
+
VirtualAction.prototype.recycleAsyncId = function(scheduler, id, delay) {
|
|
9005
8862
|
if (delay === undefined) {
|
|
9006
8863
|
delay = 0;
|
|
9007
8864
|
}
|
|
9008
8865
|
return;
|
|
9009
8866
|
};
|
|
9010
|
-
|
|
8867
|
+
VirtualAction.prototype._execute = function(state, delay) {
|
|
9011
8868
|
if (this.active === true) {
|
|
9012
8869
|
return _super.prototype._execute.call(this, state, delay);
|
|
9013
8870
|
}
|
|
9014
8871
|
};
|
|
9015
|
-
|
|
8872
|
+
VirtualAction.sortActions = function(a, b) {
|
|
9016
8873
|
if (a.delay === b.delay) {
|
|
9017
8874
|
if (a.index === b.index) {
|
|
9018
8875
|
return 0;
|
|
@@ -9027,7 +8884,7 @@ var require_VirtualTimeScheduler = __commonJS(function(exports) {
|
|
|
9027
8884
|
return -1;
|
|
9028
8885
|
}
|
|
9029
8886
|
};
|
|
9030
|
-
return
|
|
8887
|
+
return VirtualAction;
|
|
9031
8888
|
}(AsyncAction_1.AsyncAction);
|
|
9032
8889
|
exports.VirtualAction = VirtualAction;
|
|
9033
8890
|
});
|
|
@@ -9337,11 +9194,11 @@ var require_isReadableStreamLike = __commonJS(function(exports) {
|
|
|
9337
9194
|
var require_innerFrom = __commonJS(function(exports) {
|
|
9338
9195
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
9339
9196
|
function adopt(value) {
|
|
9340
|
-
return value instanceof P ? value : new P(function(
|
|
9341
|
-
|
|
9197
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
9198
|
+
resolve(value);
|
|
9342
9199
|
});
|
|
9343
9200
|
}
|
|
9344
|
-
return new (P || (P = Promise))(function(
|
|
9201
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
9345
9202
|
function fulfilled(value) {
|
|
9346
9203
|
try {
|
|
9347
9204
|
step(generator.next(value));
|
|
@@ -9357,7 +9214,7 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
9357
9214
|
}
|
|
9358
9215
|
}
|
|
9359
9216
|
function step(result) {
|
|
9360
|
-
result.done ?
|
|
9217
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
9361
9218
|
}
|
|
9362
9219
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9363
9220
|
});
|
|
@@ -9447,14 +9304,14 @@ var require_innerFrom = __commonJS(function(exports) {
|
|
|
9447
9304
|
}, i);
|
|
9448
9305
|
function verb(n) {
|
|
9449
9306
|
i[n] = o[n] && function(v) {
|
|
9450
|
-
return new Promise(function(
|
|
9451
|
-
v = o[n](v), settle(
|
|
9307
|
+
return new Promise(function(resolve, reject) {
|
|
9308
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
9452
9309
|
});
|
|
9453
9310
|
};
|
|
9454
9311
|
}
|
|
9455
|
-
function settle(
|
|
9456
|
-
Promise.resolve(v).then(function(
|
|
9457
|
-
|
|
9312
|
+
function settle(resolve, reject, d, v) {
|
|
9313
|
+
Promise.resolve(v).then(function(v) {
|
|
9314
|
+
resolve({ value: v, done: d });
|
|
9458
9315
|
}, reject);
|
|
9459
9316
|
}
|
|
9460
9317
|
};
|
|
@@ -9940,31 +9797,31 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
9940
9797
|
var throwError_1 = require_throwError();
|
|
9941
9798
|
var isFunction_1 = require_isFunction();
|
|
9942
9799
|
var NotificationKind;
|
|
9943
|
-
(function(
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9800
|
+
(function(NotificationKind) {
|
|
9801
|
+
NotificationKind["NEXT"] = "N";
|
|
9802
|
+
NotificationKind["ERROR"] = "E";
|
|
9803
|
+
NotificationKind["COMPLETE"] = "C";
|
|
9947
9804
|
})(NotificationKind = exports.NotificationKind || (exports.NotificationKind = {}));
|
|
9948
9805
|
var Notification = function() {
|
|
9949
|
-
function
|
|
9806
|
+
function Notification(kind, value, error) {
|
|
9950
9807
|
this.kind = kind;
|
|
9951
9808
|
this.value = value;
|
|
9952
9809
|
this.error = error;
|
|
9953
9810
|
this.hasValue = kind === "N";
|
|
9954
9811
|
}
|
|
9955
|
-
|
|
9812
|
+
Notification.prototype.observe = function(observer) {
|
|
9956
9813
|
return observeNotification(this, observer);
|
|
9957
9814
|
};
|
|
9958
|
-
|
|
9959
|
-
var _a = this,
|
|
9815
|
+
Notification.prototype.do = function(nextHandler, errorHandler, completeHandler) {
|
|
9816
|
+
var _a = this, { kind, value, error } = _a;
|
|
9960
9817
|
return kind === "N" ? nextHandler === null || nextHandler === undefined ? undefined : nextHandler(value) : kind === "E" ? errorHandler === null || errorHandler === undefined ? undefined : errorHandler(error) : completeHandler === null || completeHandler === undefined ? undefined : completeHandler();
|
|
9961
9818
|
};
|
|
9962
|
-
|
|
9819
|
+
Notification.prototype.accept = function(nextOrObserver, error, complete) {
|
|
9963
9820
|
var _a;
|
|
9964
9821
|
return isFunction_1.isFunction((_a = nextOrObserver) === null || _a === undefined ? undefined : _a.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete);
|
|
9965
9822
|
};
|
|
9966
|
-
|
|
9967
|
-
var _a = this,
|
|
9823
|
+
Notification.prototype.toObservable = function() {
|
|
9824
|
+
var _a = this, { kind, value, error } = _a;
|
|
9968
9825
|
var result = kind === "N" ? of_1.of(value) : kind === "E" ? throwError_1.throwError(function() {
|
|
9969
9826
|
return error;
|
|
9970
9827
|
}) : kind === "C" ? empty_1.EMPTY : 0;
|
|
@@ -9973,22 +9830,22 @@ var require_Notification = __commonJS(function(exports) {
|
|
|
9973
9830
|
}
|
|
9974
9831
|
return result;
|
|
9975
9832
|
};
|
|
9976
|
-
|
|
9977
|
-
return new
|
|
9833
|
+
Notification.createNext = function(value) {
|
|
9834
|
+
return new Notification("N", value);
|
|
9978
9835
|
};
|
|
9979
|
-
|
|
9980
|
-
return new
|
|
9836
|
+
Notification.createError = function(err) {
|
|
9837
|
+
return new Notification("E", undefined, err);
|
|
9981
9838
|
};
|
|
9982
|
-
|
|
9983
|
-
return
|
|
9839
|
+
Notification.createComplete = function() {
|
|
9840
|
+
return Notification.completeNotification;
|
|
9984
9841
|
};
|
|
9985
|
-
|
|
9986
|
-
return
|
|
9842
|
+
Notification.completeNotification = new Notification("C");
|
|
9843
|
+
return Notification;
|
|
9987
9844
|
}();
|
|
9988
9845
|
exports.Notification = Notification;
|
|
9989
9846
|
function observeNotification(notification, observer) {
|
|
9990
9847
|
var _a, _b, _c;
|
|
9991
|
-
var _d = notification,
|
|
9848
|
+
var _d = notification, { kind, value, error } = _d;
|
|
9992
9849
|
if (typeof kind !== "string") {
|
|
9993
9850
|
throw new TypeError('Invalid notification, missing "kind"');
|
|
9994
9851
|
}
|
|
@@ -10030,7 +9887,7 @@ var require_lastValueFrom = __commonJS(function(exports) {
|
|
|
10030
9887
|
var EmptyError_1 = require_EmptyError();
|
|
10031
9888
|
function lastValueFrom(source, config) {
|
|
10032
9889
|
var hasConfig = typeof config === "object";
|
|
10033
|
-
return new Promise(function(
|
|
9890
|
+
return new Promise(function(resolve, reject) {
|
|
10034
9891
|
var _hasValue = false;
|
|
10035
9892
|
var _value;
|
|
10036
9893
|
source.subscribe({
|
|
@@ -10041,9 +9898,9 @@ var require_lastValueFrom = __commonJS(function(exports) {
|
|
|
10041
9898
|
error: reject,
|
|
10042
9899
|
complete: function() {
|
|
10043
9900
|
if (_hasValue) {
|
|
10044
|
-
|
|
9901
|
+
resolve(_value);
|
|
10045
9902
|
} else if (hasConfig) {
|
|
10046
|
-
|
|
9903
|
+
resolve(config.defaultValue);
|
|
10047
9904
|
} else {
|
|
10048
9905
|
reject(new EmptyError_1.EmptyError);
|
|
10049
9906
|
}
|
|
@@ -10062,16 +9919,16 @@ var require_firstValueFrom = __commonJS(function(exports) {
|
|
|
10062
9919
|
var Subscriber_1 = require_Subscriber();
|
|
10063
9920
|
function firstValueFrom(source, config) {
|
|
10064
9921
|
var hasConfig = typeof config === "object";
|
|
10065
|
-
return new Promise(function(
|
|
9922
|
+
return new Promise(function(resolve, reject) {
|
|
10066
9923
|
var subscriber = new Subscriber_1.SafeSubscriber({
|
|
10067
9924
|
next: function(value) {
|
|
10068
|
-
|
|
9925
|
+
resolve(value);
|
|
10069
9926
|
subscriber.unsubscribe();
|
|
10070
9927
|
},
|
|
10071
9928
|
error: reject,
|
|
10072
9929
|
complete: function() {
|
|
10073
9930
|
if (hasConfig) {
|
|
10074
|
-
|
|
9931
|
+
resolve(config.defaultValue);
|
|
10075
9932
|
} else {
|
|
10076
9933
|
reject(new EmptyError_1.EmptyError);
|
|
10077
9934
|
}
|
|
@@ -10158,7 +10015,7 @@ var require_timeout = __commonJS(function(exports) {
|
|
|
10158
10015
|
};
|
|
10159
10016
|
});
|
|
10160
10017
|
function timeout(config, schedulerArg) {
|
|
10161
|
-
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config,
|
|
10018
|
+
var _a = isDate_1.isValidDate(config) ? { first: config } : typeof config === "number" ? { each: config } : config, { first, each, with: _b } = _a, _with = _b === undefined ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === undefined ? schedulerArg !== null && schedulerArg !== undefined ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === undefined ? null : _d;
|
|
10162
10019
|
if (first == null && each == null) {
|
|
10163
10020
|
throw new TypeError("No timeout provided.");
|
|
10164
10021
|
}
|
|
@@ -10337,8 +10194,8 @@ var require_bindCallbackInternals = __commonJS(function(exports) {
|
|
|
10337
10194
|
callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
|
|
10338
10195
|
function() {
|
|
10339
10196
|
var results = [];
|
|
10340
|
-
for (var
|
|
10341
|
-
results[
|
|
10197
|
+
for (var _i = 0;_i < arguments.length; _i++) {
|
|
10198
|
+
results[_i] = arguments[_i];
|
|
10342
10199
|
}
|
|
10343
10200
|
if (isNodeStyle) {
|
|
10344
10201
|
var err = results.shift();
|
|
@@ -10452,7 +10309,7 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
10452
10309
|
}
|
|
10453
10310
|
var scheduler = args_1.popScheduler(args);
|
|
10454
10311
|
var resultSelector = args_1.popResultSelector(args);
|
|
10455
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
10312
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: observables, keys } = _a;
|
|
10456
10313
|
if (observables.length === 0) {
|
|
10457
10314
|
return from_1.from([], scheduler);
|
|
10458
10315
|
}
|
|
@@ -10472,12 +10329,12 @@ var require_combineLatest = __commonJS(function(exports) {
|
|
|
10472
10329
|
var values = new Array(length);
|
|
10473
10330
|
var active = length;
|
|
10474
10331
|
var remainingFirstValues = length;
|
|
10475
|
-
var _loop_1 = function(
|
|
10332
|
+
var _loop_1 = function(i) {
|
|
10476
10333
|
maybeSchedule(scheduler, function() {
|
|
10477
|
-
var source = from_1.from(observables[
|
|
10334
|
+
var source = from_1.from(observables[i], scheduler);
|
|
10478
10335
|
var hasFirstValue = false;
|
|
10479
10336
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
10480
|
-
values[
|
|
10337
|
+
values[i] = value;
|
|
10481
10338
|
if (!hasFirstValue) {
|
|
10482
10339
|
hasFirstValue = true;
|
|
10483
10340
|
remainingFirstValues--;
|
|
@@ -10680,7 +10537,7 @@ var require_connectable = __commonJS(function(exports) {
|
|
|
10680
10537
|
config = DEFAULT_CONFIG;
|
|
10681
10538
|
}
|
|
10682
10539
|
var connection = null;
|
|
10683
|
-
var
|
|
10540
|
+
var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === undefined ? true : _a;
|
|
10684
10541
|
var subject = connector();
|
|
10685
10542
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
10686
10543
|
return subject.subscribe(subscriber);
|
|
@@ -10720,7 +10577,7 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
10720
10577
|
args[_i] = arguments[_i];
|
|
10721
10578
|
}
|
|
10722
10579
|
var resultSelector = args_1.popResultSelector(args);
|
|
10723
|
-
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args),
|
|
10580
|
+
var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), { args: sources, keys } = _a;
|
|
10724
10581
|
var result = new Observable_1.Observable(function(subscriber) {
|
|
10725
10582
|
var length = sources.length;
|
|
10726
10583
|
if (!length) {
|
|
@@ -10730,14 +10587,14 @@ var require_forkJoin = __commonJS(function(exports) {
|
|
|
10730
10587
|
var values = new Array(length);
|
|
10731
10588
|
var remainingCompletions = length;
|
|
10732
10589
|
var remainingEmissions = length;
|
|
10733
|
-
var _loop_1 = function(
|
|
10590
|
+
var _loop_1 = function(sourceIndex) {
|
|
10734
10591
|
var hasValue = false;
|
|
10735
|
-
innerFrom_1.innerFrom(sources[
|
|
10592
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
10736
10593
|
if (!hasValue) {
|
|
10737
10594
|
hasValue = true;
|
|
10738
10595
|
remainingEmissions--;
|
|
10739
10596
|
}
|
|
10740
|
-
values[
|
|
10597
|
+
values[sourceIndex] = value;
|
|
10741
10598
|
}, function() {
|
|
10742
10599
|
return remainingCompletions--;
|
|
10743
10600
|
}, undefined, function() {
|
|
@@ -10977,18 +10834,18 @@ var require_generate = __commonJS(function(exports) {
|
|
|
10977
10834
|
}
|
|
10978
10835
|
function gen() {
|
|
10979
10836
|
var state;
|
|
10980
|
-
return __generator(this, function(
|
|
10981
|
-
switch (
|
|
10837
|
+
return __generator(this, function(_a) {
|
|
10838
|
+
switch (_a.label) {
|
|
10982
10839
|
case 0:
|
|
10983
10840
|
state = initialState;
|
|
10984
|
-
|
|
10841
|
+
_a.label = 1;
|
|
10985
10842
|
case 1:
|
|
10986
10843
|
if (!(!condition || condition(state)))
|
|
10987
10844
|
return [3, 4];
|
|
10988
10845
|
return [4, resultSelector(state)];
|
|
10989
10846
|
case 2:
|
|
10990
|
-
|
|
10991
|
-
|
|
10847
|
+
_a.sent();
|
|
10848
|
+
_a.label = 3;
|
|
10992
10849
|
case 3:
|
|
10993
10850
|
state = iterate(state);
|
|
10994
10851
|
return [3, 1];
|
|
@@ -11240,11 +11097,11 @@ var require_race = __commonJS(function(exports) {
|
|
|
11240
11097
|
function raceInit(sources) {
|
|
11241
11098
|
return function(subscriber) {
|
|
11242
11099
|
var subscriptions = [];
|
|
11243
|
-
var _loop_1 = function(
|
|
11244
|
-
subscriptions.push(innerFrom_1.innerFrom(sources[
|
|
11100
|
+
var _loop_1 = function(i) {
|
|
11101
|
+
subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
11245
11102
|
if (subscriptions) {
|
|
11246
11103
|
for (var s = 0;s < subscriptions.length; s++) {
|
|
11247
|
-
s !==
|
|
11104
|
+
s !== i && subscriptions[s].unsubscribe();
|
|
11248
11105
|
}
|
|
11249
11106
|
subscriptions = null;
|
|
11250
11107
|
}
|
|
@@ -11371,9 +11228,9 @@ var require_zip = __commonJS(function(exports) {
|
|
|
11371
11228
|
subscriber.add(function() {
|
|
11372
11229
|
buffers = completed = null;
|
|
11373
11230
|
});
|
|
11374
|
-
var _loop_1 = function(
|
|
11375
|
-
innerFrom_1.innerFrom(sources[
|
|
11376
|
-
buffers[
|
|
11231
|
+
var _loop_1 = function(sourceIndex) {
|
|
11232
|
+
innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
11233
|
+
buffers[sourceIndex].push(value);
|
|
11377
11234
|
if (buffers.every(function(buffer) {
|
|
11378
11235
|
return buffer.length;
|
|
11379
11236
|
})) {
|
|
@@ -11388,8 +11245,8 @@ var require_zip = __commonJS(function(exports) {
|
|
|
11388
11245
|
}
|
|
11389
11246
|
}
|
|
11390
11247
|
}, function() {
|
|
11391
|
-
completed[
|
|
11392
|
-
!buffers[
|
|
11248
|
+
completed[sourceIndex] = true;
|
|
11249
|
+
!buffers[sourceIndex].length && subscriber.complete();
|
|
11393
11250
|
}));
|
|
11394
11251
|
};
|
|
11395
11252
|
for (var sourceIndex = 0;!subscriber.closed && sourceIndex < sources.length; sourceIndex++) {
|
|
@@ -11666,7 +11523,7 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
11666
11523
|
}
|
|
11667
11524
|
startBuffer();
|
|
11668
11525
|
var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
11669
|
-
var e_1,
|
|
11526
|
+
var e_1, _a;
|
|
11670
11527
|
var recordsCopy = bufferRecords.slice();
|
|
11671
11528
|
try {
|
|
11672
11529
|
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next();!recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
|
@@ -11679,8 +11536,8 @@ var require_bufferTime = __commonJS(function(exports) {
|
|
|
11679
11536
|
e_1 = { error: e_1_1 };
|
|
11680
11537
|
} finally {
|
|
11681
11538
|
try {
|
|
11682
|
-
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (
|
|
11683
|
-
|
|
11539
|
+
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return))
|
|
11540
|
+
_a.call(recordsCopy_1);
|
|
11684
11541
|
} finally {
|
|
11685
11542
|
if (e_1)
|
|
11686
11543
|
throw e_1.error;
|
|
@@ -14128,23 +13985,23 @@ var require_tap = __commonJS(function(exports) {
|
|
|
14128
13985
|
(_a = tapObserver.subscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
14129
13986
|
var isUnsub = true;
|
|
14130
13987
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
14131
|
-
var
|
|
14132
|
-
(
|
|
13988
|
+
var _a;
|
|
13989
|
+
(_a = tapObserver.next) === null || _a === undefined || _a.call(tapObserver, value);
|
|
14133
13990
|
subscriber.next(value);
|
|
14134
13991
|
}, function() {
|
|
14135
|
-
var
|
|
13992
|
+
var _a;
|
|
14136
13993
|
isUnsub = false;
|
|
14137
|
-
(
|
|
13994
|
+
(_a = tapObserver.complete) === null || _a === undefined || _a.call(tapObserver);
|
|
14138
13995
|
subscriber.complete();
|
|
14139
13996
|
}, function(err) {
|
|
14140
|
-
var
|
|
13997
|
+
var _a;
|
|
14141
13998
|
isUnsub = false;
|
|
14142
|
-
(
|
|
13999
|
+
(_a = tapObserver.error) === null || _a === undefined || _a.call(tapObserver, err);
|
|
14143
14000
|
subscriber.error(err);
|
|
14144
14001
|
}, function() {
|
|
14145
|
-
var
|
|
14002
|
+
var _a, _b;
|
|
14146
14003
|
if (isUnsub) {
|
|
14147
|
-
(
|
|
14004
|
+
(_a = tapObserver.unsubscribe) === null || _a === undefined || _a.call(tapObserver);
|
|
14148
14005
|
}
|
|
14149
14006
|
(_b = tapObserver.finalize) === null || _b === undefined || _b.call(tapObserver);
|
|
14150
14007
|
}));
|
|
@@ -14246,11 +14103,11 @@ var require_timeInterval = __commonJS(function(exports) {
|
|
|
14246
14103
|
}
|
|
14247
14104
|
exports.timeInterval = timeInterval;
|
|
14248
14105
|
var TimeInterval = function() {
|
|
14249
|
-
function
|
|
14106
|
+
function TimeInterval(value, interval) {
|
|
14250
14107
|
this.value = value;
|
|
14251
14108
|
this.interval = interval;
|
|
14252
14109
|
}
|
|
14253
|
-
return
|
|
14110
|
+
return TimeInterval;
|
|
14254
14111
|
}();
|
|
14255
14112
|
exports.TimeInterval = TimeInterval;
|
|
14256
14113
|
});
|
|
@@ -14480,8 +14337,8 @@ var require_windowTime = __commonJS(function(exports) {
|
|
|
14480
14337
|
return windowRecords.slice().forEach(cb);
|
|
14481
14338
|
};
|
|
14482
14339
|
var terminate = function(cb) {
|
|
14483
|
-
loop(function(
|
|
14484
|
-
var window2 =
|
|
14340
|
+
loop(function(_a) {
|
|
14341
|
+
var window2 = _a.window;
|
|
14485
14342
|
return cb(window2);
|
|
14486
14343
|
});
|
|
14487
14344
|
cb(subscriber);
|
|
@@ -14690,11 +14547,11 @@ var require_withLatestFrom = __commonJS(function(exports) {
|
|
|
14690
14547
|
return false;
|
|
14691
14548
|
});
|
|
14692
14549
|
var ready = false;
|
|
14693
|
-
var _loop_1 = function(
|
|
14694
|
-
innerFrom_1.innerFrom(inputs[
|
|
14695
|
-
otherValues[
|
|
14696
|
-
if (!ready && !hasValue[
|
|
14697
|
-
hasValue[
|
|
14550
|
+
var _loop_1 = function(i) {
|
|
14551
|
+
innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
14552
|
+
otherValues[i] = value;
|
|
14553
|
+
if (!ready && !hasValue[i]) {
|
|
14554
|
+
hasValue[i] = true;
|
|
14698
14555
|
(ready = hasValue.every(identity_1.identity)) && (hasValue = null);
|
|
14699
14556
|
}
|
|
14700
14557
|
}, noop_1.noop));
|
|
@@ -15522,114 +15379,6 @@ var require_cjs = __commonJS(function(exports) {
|
|
|
15522
15379
|
} });
|
|
15523
15380
|
});
|
|
15524
15381
|
|
|
15525
|
-
// src/core/streamingSlotRegistrar.ts
|
|
15526
|
-
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
15527
|
-
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
15528
|
-
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
15529
|
-
var getRegisteredStreamingSlotRegistrar = () => {
|
|
15530
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
|
|
15531
|
-
if (typeof value === "function" || value === null) {
|
|
15532
|
-
return value;
|
|
15533
|
-
}
|
|
15534
|
-
return;
|
|
15535
|
-
};
|
|
15536
|
-
var isObjectRecord = (value) => Boolean(value) && typeof value === "object";
|
|
15537
|
-
var isStreamingSlotWarningController = (value) => isObjectRecord(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
|
|
15538
|
-
var isStreamingSlotCollectionController = (value) => isObjectRecord(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
|
|
15539
|
-
var getWarningController = () => {
|
|
15540
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
|
|
15541
|
-
if (value === null || typeof value === "undefined")
|
|
15542
|
-
return;
|
|
15543
|
-
return isStreamingSlotWarningController(value) ? value : undefined;
|
|
15544
|
-
};
|
|
15545
|
-
var getCollectionController = () => {
|
|
15546
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
|
|
15547
|
-
if (value === null || typeof value === "undefined")
|
|
15548
|
-
return;
|
|
15549
|
-
return isStreamingSlotCollectionController(value) ? value : undefined;
|
|
15550
|
-
};
|
|
15551
|
-
var hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function";
|
|
15552
|
-
var isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true;
|
|
15553
|
-
var registerStreamingSlot = (slot) => {
|
|
15554
|
-
getRegisteredStreamingSlotRegistrar()?.(slot);
|
|
15555
|
-
};
|
|
15556
|
-
var setStreamingSlotCollectionController = (controller) => {
|
|
15557
|
-
Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
|
|
15558
|
-
};
|
|
15559
|
-
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
15560
|
-
Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
|
|
15561
|
-
};
|
|
15562
|
-
var setStreamingSlotWarningController = (controller) => {
|
|
15563
|
-
Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
|
|
15564
|
-
};
|
|
15565
|
-
var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
15566
|
-
if (isStreamingSlotCollectionActive()) {
|
|
15567
|
-
return;
|
|
15568
|
-
}
|
|
15569
|
-
getWarningController()?.maybeWarn(primitiveName);
|
|
15570
|
-
};
|
|
15571
|
-
|
|
15572
|
-
// src/core/streamingSlotRegistry.ts
|
|
15573
|
-
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
15574
|
-
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
15575
|
-
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
|
15576
|
-
var getStorageGlobal = () => {
|
|
15577
|
-
const value = Reflect.get(globalThis, STREAMING_SLOT_STORAGE_KEY);
|
|
15578
|
-
if (value === null || typeof value === "undefined") {
|
|
15579
|
-
return value;
|
|
15580
|
-
}
|
|
15581
|
-
return isAsyncLocalStorage(value) ? value : undefined;
|
|
15582
|
-
};
|
|
15583
|
-
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
15584
|
-
var ensureAsyncLocalStorage = async () => {
|
|
15585
|
-
const storage = getStorageGlobal();
|
|
15586
|
-
if (typeof storage !== "undefined") {
|
|
15587
|
-
return storage;
|
|
15588
|
-
}
|
|
15589
|
-
if (!isServerRuntime()) {
|
|
15590
|
-
Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, null);
|
|
15591
|
-
return getStorageGlobal();
|
|
15592
|
-
}
|
|
15593
|
-
const mod = await import("async_hooks");
|
|
15594
|
-
Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, new mod.AsyncLocalStorage);
|
|
15595
|
-
return getStorageGlobal();
|
|
15596
|
-
};
|
|
15597
|
-
var getActiveSlotStore = () => {
|
|
15598
|
-
const storage = getStorageGlobal();
|
|
15599
|
-
if (!storage)
|
|
15600
|
-
return;
|
|
15601
|
-
return storage.getStore();
|
|
15602
|
-
};
|
|
15603
|
-
var registerStreamingSlot2 = (slot) => {
|
|
15604
|
-
const store = getActiveSlotStore();
|
|
15605
|
-
if (!store)
|
|
15606
|
-
return;
|
|
15607
|
-
store.set(slot.id, slot);
|
|
15608
|
-
};
|
|
15609
|
-
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
15610
|
-
setStreamingSlotCollectionController({
|
|
15611
|
-
isCollecting: () => getActiveSlotStore() !== undefined
|
|
15612
|
-
});
|
|
15613
|
-
var hasActiveStreamingSlotRegistry = () => getActiveSlotStore() !== undefined;
|
|
15614
|
-
var runWithStreamingSlotRegistry = async (task) => {
|
|
15615
|
-
const storage = await ensureAsyncLocalStorage();
|
|
15616
|
-
if (!storage) {
|
|
15617
|
-
const slots = [];
|
|
15618
|
-
return {
|
|
15619
|
-
result: await task(),
|
|
15620
|
-
slots
|
|
15621
|
-
};
|
|
15622
|
-
}
|
|
15623
|
-
return storage.run(new Map, async () => {
|
|
15624
|
-
const result = await task();
|
|
15625
|
-
const store = storage.getStore();
|
|
15626
|
-
return {
|
|
15627
|
-
result,
|
|
15628
|
-
slots: store ? [...store.values()] : []
|
|
15629
|
-
};
|
|
15630
|
-
});
|
|
15631
|
-
};
|
|
15632
|
-
|
|
15633
15382
|
// src/angular/index.ts
|
|
15634
15383
|
import"@angular/compiler";
|
|
15635
15384
|
|
|
@@ -15922,6 +15671,116 @@ init_pageResponseCache();
|
|
|
15922
15671
|
// src/core/responseEnhancers.ts
|
|
15923
15672
|
init_streamingSlots();
|
|
15924
15673
|
init_pageResponseCache();
|
|
15674
|
+
|
|
15675
|
+
// src/core/streamingSlotRegistrar.ts
|
|
15676
|
+
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
15677
|
+
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
15678
|
+
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
15679
|
+
var getRegisteredStreamingSlotRegistrar = () => {
|
|
15680
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_REGISTRAR_KEY);
|
|
15681
|
+
if (typeof value === "function" || value === null) {
|
|
15682
|
+
return value;
|
|
15683
|
+
}
|
|
15684
|
+
return;
|
|
15685
|
+
};
|
|
15686
|
+
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
15687
|
+
var isStreamingSlotWarningController = (value) => isObjectRecord2(value) && ("maybeWarn" in value) && typeof value.maybeWarn === "function";
|
|
15688
|
+
var isStreamingSlotCollectionController = (value) => isObjectRecord2(value) && ("isCollecting" in value) && typeof value.isCollecting === "function";
|
|
15689
|
+
var getWarningController = () => {
|
|
15690
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY);
|
|
15691
|
+
if (value === null || typeof value === "undefined")
|
|
15692
|
+
return;
|
|
15693
|
+
return isStreamingSlotWarningController(value) ? value : undefined;
|
|
15694
|
+
};
|
|
15695
|
+
var getCollectionController = () => {
|
|
15696
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY);
|
|
15697
|
+
if (value === null || typeof value === "undefined")
|
|
15698
|
+
return;
|
|
15699
|
+
return isStreamingSlotCollectionController(value) ? value : undefined;
|
|
15700
|
+
};
|
|
15701
|
+
var hasRegisteredStreamingSlotRegistrar = () => typeof getRegisteredStreamingSlotRegistrar() === "function";
|
|
15702
|
+
var isStreamingSlotCollectionActive = () => getCollectionController()?.isCollecting() === true;
|
|
15703
|
+
var registerStreamingSlot = (slot) => {
|
|
15704
|
+
getRegisteredStreamingSlotRegistrar()?.(slot);
|
|
15705
|
+
};
|
|
15706
|
+
var setStreamingSlotCollectionController = (controller) => {
|
|
15707
|
+
Reflect.set(globalThis, STREAMING_SLOT_COLLECTION_STORAGE_KEY, controller);
|
|
15708
|
+
};
|
|
15709
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
15710
|
+
Reflect.set(globalThis, STREAMING_SLOT_REGISTRAR_KEY, nextRegistrar);
|
|
15711
|
+
};
|
|
15712
|
+
var setStreamingSlotWarningController = (controller) => {
|
|
15713
|
+
Reflect.set(globalThis, STREAMING_SLOT_WARNING_STORAGE_KEY, controller);
|
|
15714
|
+
};
|
|
15715
|
+
var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
15716
|
+
if (isStreamingSlotCollectionActive()) {
|
|
15717
|
+
return;
|
|
15718
|
+
}
|
|
15719
|
+
getWarningController()?.maybeWarn(primitiveName);
|
|
15720
|
+
};
|
|
15721
|
+
|
|
15722
|
+
// src/core/streamingSlotRegistry.ts
|
|
15723
|
+
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
15724
|
+
var isObjectRecord3 = (value) => Boolean(value) && typeof value === "object";
|
|
15725
|
+
var isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
|
15726
|
+
var getStorageGlobal = () => {
|
|
15727
|
+
const value = Reflect.get(globalThis, STREAMING_SLOT_STORAGE_KEY);
|
|
15728
|
+
if (value === null || typeof value === "undefined") {
|
|
15729
|
+
return value;
|
|
15730
|
+
}
|
|
15731
|
+
return isAsyncLocalStorage2(value) ? value : undefined;
|
|
15732
|
+
};
|
|
15733
|
+
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
15734
|
+
var ensureAsyncLocalStorage = async () => {
|
|
15735
|
+
const storage = getStorageGlobal();
|
|
15736
|
+
if (typeof storage !== "undefined") {
|
|
15737
|
+
return storage;
|
|
15738
|
+
}
|
|
15739
|
+
if (!isServerRuntime()) {
|
|
15740
|
+
Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, null);
|
|
15741
|
+
return getStorageGlobal();
|
|
15742
|
+
}
|
|
15743
|
+
const mod = await import("async_hooks");
|
|
15744
|
+
Reflect.set(globalThis, STREAMING_SLOT_STORAGE_KEY, new mod.AsyncLocalStorage);
|
|
15745
|
+
return getStorageGlobal();
|
|
15746
|
+
};
|
|
15747
|
+
var getActiveSlotStore = () => {
|
|
15748
|
+
const storage = getStorageGlobal();
|
|
15749
|
+
if (!storage)
|
|
15750
|
+
return;
|
|
15751
|
+
return storage.getStore();
|
|
15752
|
+
};
|
|
15753
|
+
var registerStreamingSlot2 = (slot) => {
|
|
15754
|
+
const store = getActiveSlotStore();
|
|
15755
|
+
if (!store)
|
|
15756
|
+
return;
|
|
15757
|
+
store.set(slot.id, slot);
|
|
15758
|
+
};
|
|
15759
|
+
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
15760
|
+
setStreamingSlotCollectionController({
|
|
15761
|
+
isCollecting: () => getActiveSlotStore() !== undefined
|
|
15762
|
+
});
|
|
15763
|
+
var hasActiveStreamingSlotRegistry = () => getActiveSlotStore() !== undefined;
|
|
15764
|
+
var runWithStreamingSlotRegistry = async (task) => {
|
|
15765
|
+
const storage = await ensureAsyncLocalStorage();
|
|
15766
|
+
if (!storage) {
|
|
15767
|
+
const slots = [];
|
|
15768
|
+
return {
|
|
15769
|
+
result: await task(),
|
|
15770
|
+
slots
|
|
15771
|
+
};
|
|
15772
|
+
}
|
|
15773
|
+
return storage.run(new Map, async () => {
|
|
15774
|
+
const result = await task();
|
|
15775
|
+
const store = storage.getStore();
|
|
15776
|
+
return {
|
|
15777
|
+
result,
|
|
15778
|
+
slots: store ? [...store.values()] : []
|
|
15779
|
+
};
|
|
15780
|
+
});
|
|
15781
|
+
};
|
|
15782
|
+
|
|
15783
|
+
// src/core/responseEnhancers.ts
|
|
15925
15784
|
var toResponse = async (responseLike) => responseLike;
|
|
15926
15785
|
var cloneHeaders = (response) => {
|
|
15927
15786
|
const headers = new Headers(response.headers);
|
|
@@ -16032,7 +15891,7 @@ var runWithStreamingSlotWarningScope = (task, metadata) => ensureWarningStorage(
|
|
|
16032
15891
|
// src/angular/pageHandler.ts
|
|
16033
15892
|
init_ssrRender();
|
|
16034
15893
|
var isRecord6 = (value) => typeof value === "object" && value !== null;
|
|
16035
|
-
var
|
|
15894
|
+
var isAngularComponent = (value) => typeof value === "function";
|
|
16036
15895
|
var componentHostsRouterOutlet = (component) => {
|
|
16037
15896
|
const componentDef = Reflect.get(component, "\u0275cmp");
|
|
16038
15897
|
if (!isRecord6(componentDef))
|
|
@@ -16053,10 +15912,10 @@ var componentHostsRouterOutlet = (component) => {
|
|
|
16053
15912
|
};
|
|
16054
15913
|
var resolvePageComponent = (pageModule) => {
|
|
16055
15914
|
const defaultExport = pageModule.default;
|
|
16056
|
-
if (
|
|
15915
|
+
if (isAngularComponent(defaultExport)) {
|
|
16057
15916
|
return defaultExport;
|
|
16058
15917
|
}
|
|
16059
|
-
const components = Object.values(pageModule).filter(
|
|
15918
|
+
const components = Object.values(pageModule).filter(isAngularComponent);
|
|
16060
15919
|
if (components.length <= 1) {
|
|
16061
15920
|
return components[0];
|
|
16062
15921
|
}
|
|
@@ -16141,9 +16000,9 @@ var resolveRuntimeAngularModulePath = async (pagePath) => {
|
|
|
16141
16000
|
}
|
|
16142
16001
|
const outDir = resolveAngularSsrOutDir();
|
|
16143
16002
|
await ensureAngularSsrNodeModules(outDir);
|
|
16144
|
-
|
|
16003
|
+
await Promise.resolve().then(() => init_compileAngular());
|
|
16145
16004
|
const cacheBuster = createAngularRuntimeCacheBuster();
|
|
16146
|
-
const outputs = await
|
|
16005
|
+
const outputs = await compileAngularFileJIT(pagePath, outDir, process.cwd(), undefined, cacheBuster);
|
|
16147
16006
|
const expectedFileName = basename5(pagePath).replace(/\.ts$/, ".js");
|
|
16148
16007
|
const runtimePagePath = outputs.find((output) => output.endsWith(`/${expectedFileName}`)) ?? outputs.find((output) => output.endsWith(`\\${expectedFileName}`)) ?? outputs[0] ?? pagePath;
|
|
16149
16008
|
return {
|
|
@@ -16247,7 +16106,7 @@ var handleAngularPageRequest = async (input) => {
|
|
|
16247
16106
|
throw new Error(`Invalid Angular page module: ${resolvedPagePath}`);
|
|
16248
16107
|
}
|
|
16249
16108
|
const PageComponent = resolvePageComponent(pageModule);
|
|
16250
|
-
if (!
|
|
16109
|
+
if (!isAngularComponent(PageComponent)) {
|
|
16251
16110
|
throw new Error(`Angular page module must export an Angular component: ${resolvedPagePath}`);
|
|
16252
16111
|
}
|
|
16253
16112
|
const hasIslands = typeof pageModule.__ABSOLUTE_PAGE_HAS_ISLANDS__ === "boolean" ? pageModule.__ABSOLUTE_PAGE_HAS_ISLANDS__ : false;
|
|
@@ -16562,7 +16421,7 @@ Island = __legacyDecorateClassTS([
|
|
|
16562
16421
|
__legacyMetadataTS("design:paramtypes", [])
|
|
16563
16422
|
], Island);
|
|
16564
16423
|
// src/angular/islandStore.ts
|
|
16565
|
-
var import_rxjs = __toESM(require_cjs()
|
|
16424
|
+
var import_rxjs = __toESM(require_cjs());
|
|
16566
16425
|
import { Injectable } from "@angular/core";
|
|
16567
16426
|
|
|
16568
16427
|
// node_modules/zustand/esm/vanilla.mjs
|
|
@@ -16814,5 +16673,5 @@ export {
|
|
|
16814
16673
|
withPendingTask
|
|
16815
16674
|
};
|
|
16816
16675
|
|
|
16817
|
-
//# debugId=
|
|
16676
|
+
//# debugId=EBC28DBD8FEE1CF364756E2164756E21
|
|
16818
16677
|
//# sourceMappingURL=index.js.map
|