@openmrs/esm-patient-programs-app 4.3.0 → 4.3.1-pre.1292
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/.turbo/turbo-build.log +13 -13
- package/dist/195.js +1 -0
- package/dist/195.js.map +1 -0
- package/dist/358.js +1 -0
- package/dist/358.js.map +1 -0
- package/dist/{206.js → 442.js} +2 -2
- package/dist/{206.js.map → 442.js.map} +1 -1
- package/dist/{238.js → 462.js} +1 -1
- package/dist/{238.js.map → 462.js.map} +1 -1
- package/dist/{692.js → 507.js} +2 -2
- package/dist/{692.js.map → 507.js.map} +1 -1
- package/dist/534.js +1 -0
- package/dist/{461.js.map → 534.js.map} +1 -1
- package/dist/588.js +1 -0
- package/dist/{709.js.map → 588.js.map} +1 -1
- package/dist/591.js +2 -0
- package/dist/591.js.map +1 -0
- package/dist/650.js +1 -0
- package/dist/{733.js.map → 650.js.map} +1 -1
- package/dist/798.js +1 -0
- package/dist/{821.js.map → 798.js.map} +1 -1
- package/dist/{641.js → 810.js} +1 -1
- package/dist/{641.js.map → 810.js.map} +1 -1
- package/dist/858.js +1 -1
- package/dist/858.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-programs-app.js +1 -1
- package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +133 -133
- package/dist/openmrs-esm-patient-programs-app.js.map +1 -1
- package/dist/openmrs-esm-patient-programs-app.old +1 -1
- package/package.json +3 -3
- package/dist/34.js +0 -2
- package/dist/34.js.map +0 -1
- package/dist/435.js +0 -1
- package/dist/435.js.map +0 -1
- package/dist/461.js +0 -1
- package/dist/610.js +0 -1
- package/dist/610.js.map +0 -1
- package/dist/709.js +0 -1
- package/dist/733.js +0 -1
- package/dist/821.js +0 -1
- /package/dist/{206.js.LICENSE.txt → 442.js.LICENSE.txt} +0 -0
- /package/dist/{692.js.LICENSE.txt → 507.js.LICENSE.txt} +0 -0
- /package/dist/{34.js.LICENSE.txt → 591.js.LICENSE.txt} +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,27 +6,27 @@ Browserslist: caniuse-lite is outdated. Please run:
|
|
|
6
6
|
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
7
7
|
assets by chunk 928 KiB (id hint: vendors)
|
|
8
8
|
assets by status [1m[33m801 KiB[39m[22m [1m[33m[big][39m[22m
|
|
9
|
-
asset [1m[
|
|
9
|
+
asset [1m[33m507.js[39m[22m [1m[33m419 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
10
10
|
asset [1m[33m858.js[39m[22m [1m[33m381 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
11
|
-
asset [1m[
|
|
12
|
-
asset [1m[
|
|
13
|
-
asset [1m[
|
|
14
|
-
asset [1m[
|
|
15
|
-
asset [1m[
|
|
11
|
+
asset [1m[32m591.js[39m[22m 50.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
12
|
+
asset [1m[32m442.js[39m[22m 45.4 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
13
|
+
asset [1m[32m588.js[39m[22m 19.1 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
14
|
+
asset [1m[32m462.js[39m[22m 7.93 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
15
|
+
asset [1m[32m534.js[39m[22m 3.84 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
16
16
|
+ 13 assets
|
|
17
|
-
orphan modules 4.05 MiB [1m[33m[orphan][39m[22m
|
|
17
|
+
orphan modules 4.05 MiB [1m[33m[orphan][39m[22m 739 modules
|
|
18
18
|
runtime modules 40.8 KiB 28 modules
|
|
19
|
-
built modules 3.
|
|
19
|
+
built modules 3.21 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-init) [1m[33m[built][39m[22m
|
|
20
20
|
modules by path [1m../../node_modules/[39m[22m 3.09 MiB 91 modules
|
|
21
|
-
modules by path [1m./[39m[22m
|
|
21
|
+
modules by path [1m./[39m[22m 57.1 KiB 12 modules
|
|
22
22
|
consume-shared-module modules 336 bytes
|
|
23
23
|
modules by path [1mconsume shared module (default) @openmrs/[39m[22m 126 bytes 3 modules
|
|
24
24
|
+ 5 modules
|
|
25
25
|
provide-module modules 294 bytes
|
|
26
26
|
modules by path [1mprovide shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
27
27
|
+ 5 modules
|
|
28
|
-
modules by path [1m../esm-patient-common-lib/src/[39m[22m
|
|
29
|
-
[1m../esm-patient-common-lib/src/index.ts +
|
|
28
|
+
modules by path [1m../esm-patient-common-lib/src/[39m[22m 70.2 KiB
|
|
29
|
+
[1m../esm-patient-common-lib/src/index.ts + 30 modules[39m[22m 57.3 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
30
30
|
+ 4 modules
|
|
31
31
|
[1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
32
32
|
|
|
@@ -34,6 +34,6 @@ built modules 3.22 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-
|
|
|
34
34
|
This can impact web performance.
|
|
35
35
|
Assets:
|
|
36
36
|
858.js (381 KiB)
|
|
37
|
-
|
|
37
|
+
507.js (419 KiB)[39m[22m
|
|
38
38
|
|
|
39
|
-
webpack 5.
|
|
39
|
+
webpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in 113095 ms
|
package/dist/195.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[195],{7358:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(272),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__card-header__desktopHeader___mvRkI,.-esm-patient-programs__card-header__tabletHeader____XRaH{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-programs__card-header__desktopHeader___mvRkI h4:after,.-esm-patient-programs__card-header__tabletHeader____XRaH h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__card-header__desktopHeader___mvRkI{height:3rem}.-esm-patient-programs__card-header__desktopHeader___mvRkI h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__card-header__tabletHeader____XRaH{height:4.5rem}.-esm-patient-programs__card-header__tabletHeader____XRaH h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,qHACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDFc,CCId,uIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,2DACE,WAAA,CACA,8DCozBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDlzBA,aDnBM,CCuBV,0DACE,aAAA,CACA,6DC4yBE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD1yBA,aD3BM",sourceRoot:""}]),i.locals={desktopHeader:"-esm-patient-programs__card-header__desktopHeader___mvRkI",tabletHeader:"-esm-patient-programs__card-header__tabletHeader____XRaH"};const s=i},6414:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(272),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__empty-state__action___w2Rpi{margin-bottom:.5rem}.-esm-patient-programs__empty-state__content___dQqii{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-patient-programs__empty-state__desktopHeading___J5r4x h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__tabletHeading___zFnYm h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__desktopHeading___J5r4x,.-esm-patient-programs__empty-state__tabletHeading___zFnYm{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__empty-state__desktopHeading___J5r4x h4:after,.-esm-patient-programs__empty-state__tabletHeading___zFnYm h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__heading___xSy_D:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__tile___LwYVR{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,oDACE,mBCgBW,CDbb,qDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,aDLQ,CCMR,eCoBW,CDnBX,mBCSW,CDLX,+DE0zBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFxzBA,aDbM,CCkBR,8DEmzBE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFjzBA,aDpBM,CCwBV,uHACE,eAAA,CACA,yBAAA,CACA,kBCDW,CDGX,yIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,2DACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAGF,kDACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),i.locals={action:"-esm-patient-programs__empty-state__action___w2Rpi",content:"-esm-patient-programs__empty-state__content___dQqii",desktopHeading:"-esm-patient-programs__empty-state__desktopHeading___J5r4x",tabletHeading:"-esm-patient-programs__empty-state__tabletHeading___zFnYm",heading:"-esm-patient-programs__empty-state__heading___xSy_D",tile:"-esm-patient-programs__empty-state__tile___LwYVR"};const s=i},774:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(272),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__error-state__errorMessage___uXSKG{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-top:2.25rem;margin-bottom:.5rem}.-esm-patient-programs__error-state__errorCopy___kCXa5{margin-bottom:.5rem;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-programs__error-state__desktopHeading____qul2 h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__tabletHeading___TRYMk h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__desktopHeading____qul2,.-esm-patient-programs__error-state__tabletHeading___TRYMk{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__error-state__desktopHeading____qul2 h4:after,.-esm-patient-programs__error-state__tabletHeading___TRYMk h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__error-state__tile___zTWes{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../esm-patient-common-lib/src/error-state/error-state.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,0DCs0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDn0BF,kBAAA,CACA,mBEaW,CFVb,uDACE,mBESW,CDqzBT,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CD5zBF,aDTQ,CCaR,+DCwzBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDtzBA,aDfM,CCoBR,8DCizBE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD/yBA,aDtBM,CC0BV,uHACE,eAAA,CACA,yBAAA,CACA,kBEHW,CFKX,yIACE,UAAA,CACA,aAAA,CACA,UAAA,CACA,mBAAA,CACA,2CAAA,CAIJ,kDACE,iBAAA,CACA,wBAAA",sourceRoot:""}]),i.locals={errorMessage:"-esm-patient-programs__error-state__errorMessage___uXSKG",errorCopy:"-esm-patient-programs__error-state__errorCopy___kCXa5",desktopHeading:"-esm-patient-programs__error-state__desktopHeading____qul2",tabletHeading:"-esm-patient-programs__error-state__tabletHeading___TRYMk",tile:"-esm-patient-programs__error-state__tile___zTWes"};const s=i},8097:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(272),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__pagination__bodyShort01___HrrGH,.-esm-patient-programs__pagination__configurableLink___cz8kG{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-patient-programs__pagination__desktop___Mb5rG,.-esm-patient-programs__pagination__tablet___hVupo{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center}.-esm-patient-programs__pagination__desktop___Mb5rG .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-programs__pagination__desktop___Mb5rG .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__desktop___Mb5rG .cds--pagination .cds--btn,.-esm-patient-programs__pagination__desktop___Mb5rG .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-programs__pagination__tablet___hVupo .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-programs__pagination__tablet___hVupo .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__tablet___hVupo .cds--pagination .cds--btn,.-esm-patient-programs__pagination__tablet___hVupo .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-programs__pagination__configurableLink___cz8kG{text-decoration:none;padding:0 .5rem}.-esm-patient-programs__pagination__pagination___h0wbV{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-patient-programs__pagination__pagination___h0wbV>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,qHCs0BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDl0BJ,uGCk0BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDh0BF,YAAA,CACA,6BAAA,CACA,aDPQ,CCQR,qBDZM,CCaN,iBAAA,CACA,kBAAA,CAGF,qEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,oQACE,eAAA,CACA,WAAA,CAIJ,oEACE,eAAA,CACA,WAAA,CACA,UAAA,CACA,WAAA,CAEA,iQACE,eAAA,CACA,WAAA,CAIJ,6DACE,oBAAA,CAEA,eAAA,CAGF,uDC0xBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDxxBF,qBDjDM,CCkDN,aD9CQ,CC+CR,YAAA,CAIA,iFACE,YAAA",sourceRoot:""}]),i.locals={bodyShort01:"-esm-patient-programs__pagination__bodyShort01___HrrGH",configurableLink:"-esm-patient-programs__pagination__configurableLink___cz8kG",desktop:"-esm-patient-programs__pagination__desktop___Mb5rG",tablet:"-esm-patient-programs__pagination__tablet___hVupo",pagination:"-esm-patient-programs__pagination__pagination___h0wbV"};const s=i},3195:(e,t,r)=>{r.r(t),r.d(t,{CardHeader:()=>C,DashboardExtension:()=>R,DashboardGroupExtension:()=>I,EmptyDataIllustration:()=>k,EmptyState:()=>B,ErrorState:()=>H,PatientChartPagination:()=>X,WorkspaceWindowSizeProvider:()=>Me,cancelPrompt:()=>ge,changeWorkspaceContext:()=>ve,closeAllWorkspaces:()=>he,closeWorkspace:()=>fe,convertTime12to24:()=>J,createDashboardGroup:()=>W,createDashboardLink:()=>V,createOfflineVisitForPatient:()=>Ye,formEntrySub:()=>te,getOfflineVisitForPatient:()=>Ze,getPatientSummaryOrder:()=>et,getPromptBeforeClosingFcn:()=>_e,getWorkspaceStore:()=>Ce,launchPatientChartWithWorkspaceOpen:()=>ue,launchPatientWorkspace:()=>Ae,launchStartVisitPrompt:()=>N,promptBeforeClosing:()=>me,registerNavGroup:()=>O,registerWorkspace:()=>le,resetWorkspaceStore:()=>be,useActivePatientEnrollment:()=>We,useAutoCreatedOfflineVisit:()=>Ge,useNavGroups:()=>P,useOfflineVisit:()=>Ue,usePaginationInfo:()=>G,useVisitOrOfflineVisit:()=>Ne,useVitalsConceptMetadata:()=>K,useWorkspaceWindowSize:()=>xe,useWorkspaces:()=>Ee,visitSyncType:()=>Ve,withUnit:()=>ee});var n=r(268),a=r.n(n),o=r(906),i=r(1354),s=r.n(i),c=r(1583),l=r.n(c),p=r(7378),A=r.n(p),u=r(5993),d=r.n(u),m=r(4154),_=r.n(m),g=r(8141),f=r.n(g),h=r(7358),v={};v.styleTagTransform=f(),v.setAttributes=d(),v.insert=A().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=_(),s()(h.Z,v);const y=h.Z&&h.Z.locals?h.Z.locals:void 0;function C(e){var t=e.title,r=e.children,n="tablet"===(0,o.useLayoutType)();return a().createElement("div",{className:n?y.tabletHeader:y.desktopHeader},a().createElement("h4",null,t),r)}var b=r(7289),w=r(4924),k=function(e){var t=e.width,r=void 0===t?"64":t,n=e.height,o=void 0===n?"64":n;return a().createElement("svg",{width:r,height:o,viewBox:"0 0 64 64"},a().createElement("title",null,"Empty data illustration"),a().createElement("g",{fill:"none",fillRule:"evenodd"},a().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),a().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),a().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),a().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},S=r(6414),E={};E.styleTagTransform=f(),E.setAttributes=d(),E.insert=A().bind(null,"head"),E.domAPI=l(),E.insertStyleElement=_(),s()(S.Z,E);const D=S.Z&&S.Z.locals?S.Z.locals:void 0;var B=function(e){var t=(0,w.useTranslation)().t,r="tablet"===(0,o.useLayoutType)();return a().createElement(b.mh4,null,a().createElement(b.n9L,{className:D.tile},a().createElement("div",{className:r?D.tabletHeading:D.desktopHeading},a().createElement("h4",null,e.headerTitle)),a().createElement(k,null),a().createElement("p",{className:D.content},a().createElement(w.Trans,{i18nKey:"emptyStateText",values:{displayText:e.displayText.toLowerCase()}},"There are no ",e.displayText.toLowerCase()," to display for this patient")),a().createElement("p",{className:D.action},e.launchForm&&a().createElement("span",null,a().createElement(b.rUS,{onClick:function(){return e.launchForm()}},a().createElement(a().Fragment,null,t("record","Record")," ",e.displayText.toLowerCase()))))))},z=r(774),x={};x.styleTagTransform=f(),x.setAttributes=d(),x.insert=A().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=_(),s()(z.Z,x);const M=z.Z&&z.Z.locals?z.Z.locals:void 0;var H=function(e){var t,r,n=e.error,i=e.headerTitle,s=(0,w.useTranslation)().t,c="tablet"===(0,o.useLayoutType)();return a().createElement(b.mh4,null,a().createElement(b.n9L,{className:M.tile},a().createElement("div",{className:c?M.tabletHeading:M.desktopHeading},a().createElement("h4",null,i)),a().createElement("p",{className:M.errorMessage},s("error","Error")," ","".concat(null==n||null===(t=n.response)||void 0===t?void 0:t.status,": "),null==n||null===(r=n.response)||void 0===r?void 0:r.statusText),a().createElement("p",{className:M.errorCopy},s("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above."))))},I=function(e){var t=e.title,r=e.slotName,i=e.basePath,s=e.isExpanded;return(0,n.useEffect)((function(){O(r)}),[r]),a().createElement(b.UQy,null,a().createElement(b.Qdk,{open:null==s||s,title:t,style:{border:"none"}},a().createElement(o.ExtensionSlot,{extensionSlotName:null!=r?r:t,state:{basePath:i}})))},W=function(e){var t=e.title,r=e.slotName,n=e.isExpanded;return function(e){var o=e.basePath;return a().createElement(I,{title:t,slotName:r,basePath:o,isExpanded:n})}};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var F=(0,o.createGlobalStore)("nav-groups",{navGroups:[]});function O(e){var t,r=F.getState();F.setState({navGroups:[e].concat((t=r.navGroups,function(e){if(Array.isArray(e))return T(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}var P=(0,o.createUseStore)(F),j=r(8744),L=r(2228),R=function(e){var t=e.title,r=e.basePath,i=(0,j.useLocation)(),s=(0,n.useMemo)((function(){return decodeURIComponent((0,L.Z)(i.pathname.split("/")))}),[i.pathname]);return a().createElement("div",{key:t},a().createElement(o.ConfigurableLink,{to:"".concat(r,"/").concat(encodeURIComponent(t)),className:"cds--side-nav__link ".concat(t===s&&"active-left-nav-link")},t))},V=function(e){return function(t){var r=t.basePath;return a().createElement(j.BrowserRouter,null,a().createElement(R,{title:e.title,basePath:r}))}};function N(){var e=(0,o.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function G(e,t,r,a){var o=(0,w.useTranslation)().t,i=(0,n.useMemo)((function(){var r,n=Math.ceil(t/e);return isNaN(n)&&(n=0),(r=Array(n).keys(),function(e){if(Array.isArray(e))return U(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){return(t+1)*e}))}),[e,t]),s=(0,n.useMemo)((function(){return e>t?"".concat(t," / ").concat(t):e*r>t?"".concat(e*(r-1)+a," / ").concat(t):"".concat(e*r," / ").concat(t)}),[e,t,r,a]);return{pageSizes:i,itemsDisplayed:"".concat(s," ").concat(o("items"," items"))}}var Z=r(8097),q={};q.styleTagTransform=f(),q.setAttributes=d(),q.insert=A().bind(null,"head"),q.domAPI=l(),q.insertStyleElement=_(),s()(Z.Z,q);const Y=Z.Z&&Z.Z.locals?Z.Z.locals:void 0;var X=function(e){var t=e.totalItems,r=e.pageSize,n=e.onPageNumberChange,i=e.pageNumber,s=e.dashboardLinkUrl,c=e.currentItems,l=e.dashboardLinkLabel,p=(0,w.useTranslation)().t,A=G(r,t,i,c),u=A.itemsDisplayed,d=A.pageSizes,m="tablet"===(0,o.useLayoutType)();return a().createElement(a().Fragment,null,t>0&&a().createElement("div",{className:m?Y.tablet:Y.desktop},a().createElement("div",null,u,s&&a().createElement(o.ConfigurableLink,{to:s,className:Y.configurableLink},null!=l?l:p("seeAll","See all"))),a().createElement(b.tlE,{className:Y.pagination,page:i,pageSize:r,pageSizes:d,totalItems:t,onChange:n,size:m?"lg":"sm"})))};function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var J=function(e,t){var r,n,a=(r=e.split(":"),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(r,n)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],i=a[1];return"12"===o&&"AM"===t&&(o="00"),"PM"===t&&(o="12"===o?o:parseInt(o,10)+12),[o,i]},$=r(2303);function K(){var e,t,r,n,a="/ws/rest/v1/concept/?q=VITALS SIGNS&v=".concat("custom:(setMembers:(uuid,display,hiNormal,hiAbsolute,hiCritical,lowNormal,lowAbsolute,lowCritical,units))"),i=(0,$.Z)(a,o.openmrsFetch),s=i.data,c=i.error,l=i.isLoading,p=null===(t=null==s||null===(e=s.data)||void 0===e?void 0:e.results[0])||void 0===t?void 0:t.setMembers,A=(null==p?void 0:p.length)?new Map(p.map((function(e){return[e.uuid,e.units]}))):new Map([]),u=(null==p?void 0:p.length)?new Map(p.map((function(e){return[e.uuid,{lowAbsolute:null!==(r=e.lowAbsolute)&&void 0!==r?r:null,highAbsolute:null!==(n=e.hiAbsolute)&&void 0!==n?n:null}]}))):new Map([]);return{data:A,isError:c,isLoading:l,conceptMetadata:p,conceptRanges:u}}var ee=function(e,t){return"".concat(e," ").concat(t?"(".concat(t,")"):"")},te=new(r(2444).BehaviorSubject)(null),re=r(6081);function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ae(e,t,r[t])}))}return e}function ie(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function se(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ce={};function le(e){var t,r;ce[e.name]=ie(oe({},e),{preferredWindowSize:null!==(t=e.preferredWindowSize)&&void 0!==t?t:"normal",type:null!==(r=e.type)&&void 0!==r?r:"form"})}function pe(e){var t,r=null==e||null===(t=e.meta)||void 0===t?void 0:t.title;return"string"==typeof r?r:r&&"object"==typeof r?(0,o.translateFrom)(e.moduleName,r.key,r.default):e.name}function Ae(e,t){var r=Ce(),n=r.getState(),a=function(e){if(ce[e])return ce[e];var t,r,n,a,o=(0,re.getExtensionRegistration)(e);if(o)return{name:o.name,title:pe(o),preferredWindowSize:null!==(n=null===(t=o.meta)||void 0===t?void 0:t.screenSize)&&void 0!==n?n:"normal",load:o.load,type:null!==(a=null===(r=o.meta)||void 0===r?void 0:r.type)&&void 0!==a?a:"form"};throw new Error("No workspace named '".concat(e,"' has been registered."))}(e),i=ie(oe({},a),{closeWorkspace:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return fe(e,t)},promptBeforeClosing:function(t){return me(e,t)},additionalProps:t}),s=n.openWorkspaces.filter((function(e){return e.type==i.type}));if(0==s.length)r.setState(ie(oe({},n),{openWorkspaces:[i].concat(se(n.openWorkspaces))}));else{var c=n.openWorkspaces.findIndex((function(t){return t.name==e})),l=_e(s[0].name);if(c>=0){var p=se(n.openWorkspaces);p.splice(c,1),n.openWorkspaces[c].additionalProps=i.additionalProps;var A=[n.openWorkspaces[c]].concat(se(p));r.setState(ie(oe({},n),{openWorkspaces:A}))}else if(!l||l()){var u,d=null!==(u=s[0].title)&&void 0!==u?u:s[0].name,m={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","activeFormWarning","There is an active form open in the workspace"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","workspaceModalText","Launching a new form in the workspace could cause you to lose unsaved work on the ".concat(d," form."),{formName:d}),onConfirm:function(){var e=r.getState();r.setState({openWorkspaces:[i].concat(se(e.openWorkspaces.filter((function(e){return e.type!=i.type})))),prompt:null})},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","openAnyway","Open anyway")};r.setState(ie(oe({},n),{prompt:m}))}else{var _=r.getState();r.setState(ie(oe({},_),{openWorkspaces:[i].concat(se(_.openWorkspaces.filter((function(e){return e.type!=i.type}))))}))}}}function ue(e){var t=e.patientUuid,r=e.workspaceName,n=e.dashboardName,a=e.additionalProps;ve(t),Ae(r,a),(0,o.navigate)({to:"${openmrsSpaBase}/patient/"+"".concat(t,"/chart")+(n?"/".concat(n):"")})}var de={};function me(e,t){de[e]=t}function _e(e){return de[e]}function ge(){var e=Ce(),t=e.getState();e.setState(ie(oe({},t),{prompt:null}))}function fe(e,t){var r=Ce(),n=_e(e);if(!t&&n&&n()){var a={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangesTitleText","Unsaved Changes"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangeText","You have unsaved changes in the side panel. Do you want to discard these changes?"),onConfirm:function(){var t=r.getState();r.setState(ie(oe({},t),{prompt:null,openWorkspaces:t.openWorkspaces.filter((function(t){return t.name!=e}))}))},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","discard","Discard")};r.setState(ie(oe({},r.getState()),{prompt:a}))}else{var i=r.getState();r.setState(ie(oe({},i),{openWorkspaces:i.openWorkspaces.filter((function(t){return t.name!=e}))}))}}function he(){var e=Ce(),t=e.getState();e.setState(ie(oe({},t),{openWorkspaces:[]}))}function ve(e){var t=Ce();t.getState().patientUuid!=e&&t.setState({patientUuid:e,openWorkspaces:[],prompt:null})}var ye={patientUuid:null,openWorkspaces:[],prompt:null};function Ce(){return(0,o.getGlobalStore)("workspace",ye)}function be(){Ce().setState(ye)}var we=r(6217);function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(){var e=Se((0,n.useState)([]),2),t=e[0],r=e[1],a=Se((0,n.useState)(null),2),o=a[0],i=a[1];(0,n.useEffect)((function(){var e=function(e){r(e.openWorkspaces),i(e.prompt)};e((0,we.getWorkspaceStore)().getState()),(0,we.getWorkspaceStore)().subscribe(e)}),[]);var s=(0,n.useMemo)((function(){return 0===t.length?"hidden":t[0].preferredWindowSize}),[t]);return{active:t.length>0,windowState:s,workspaces:t,prompt:o}}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Be(e,t){switch(t){case"minimized":case"reopened":return{size:"normal"};default:return{size:t}}}var ze=(0,n.createContext)({windowSize:{size:"normal"},active:!1}),xe=function(){return(0,n.useContext)(ze)},Me=function(e){var t,r,o=e.children,i=(t=a().useReducer(Be,{size:"normal"}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return De(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],c=i[1],l=Ee(),p=l.workspaces,A=l.windowState,u=l.active;(0,n.useEffect)((function(){p.length>0&&"maximized"===A?c("maximized"):c("reopened")}),[p.length,A]);var d=(0,n.useCallback)((function(e){c(e)}),[]),m=(0,n.useMemo)((function(){return{windowSize:s,updateWindowSize:d,active:u}}),[s,d,u]);return a().createElement(ze.Provider,{value:m},o)},He=r(3255),Ie=r(4221),We=function(e){var t,r=(0,He.ZP)("/ws/rest/v1/programenrollment?patient=".concat(e,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),o.openmrsFetch),a=r.data,i=r.error,s=r.isLoading,c=(0,n.useMemo)((function(){return null!==(t=null==a?void 0:a.data.results.sort((function(e,t){return t.dateEnrolled>e.dateEnrolled?1:-1})).filter((function(e){return null===e.dateCompleted})))&&void 0!==t?t:[]}),[null==a?void 0:a.data.results]);return{activePatientEnrollment:(0,Ie.Z)(c,(function(e){var t;return null==e||null===(t=e.program)||void 0===t?void 0:t.uuid})),error:i,isLoading:s}},Te=r(5047),Fe=r.n(Te),Oe=r(6804);function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function je(e,t,r,n,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function Le(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){je(o,n,a,i,s,"next",e)}function s(e){je(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Re,Ve="visit";function Ne(e){var t=(0,o.useConnectivity)(),r=(0,o.useVisit)(e),n=Ue(e);return t?r:n}function Ue(e){var t,r,a=(t=(0,n.useState)({data:null,error:null,isLoading:!0}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pe(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[0],i=a[1];return(0,n.useEffect)((function(){Ze(e).then((function(e){i({error:null,data:e?Qe(e):null,isLoading:!1})})).catch((function(e){i({error:e,data:null,isLoading:!1})}))}),[e]),{currentVisit:o.data,isLoading:o.isLoading,isValidating:!1,error:o.error,mutate:function(){}}}function Ge(e,t){var r,a,i=(0,o.useConnectivity)(),s=null===(r=(0,o.useSession)())||void 0===r||null===(a=r.sessionLocation)||void 0===a?void 0:a.uuid,c=Ue(e),l=c.currentVisit,p=c.isValidating,A=c.error,u=c.mutate;(0,n.useEffect)((function(){i||p||l||A||Ye(e,s,t).finally((function(){return u()}))}),[i,l,p,A,u,s,t,e])}function Ze(e){return qe.apply(this,arguments)}function qe(){return(qe=Le(Fe().mark((function e(t){var r;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Ve);case 2:return r=e.sent,e.abrupt("return",r.find((function(e){return e.patient===t})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e,t,r){return Xe.apply(this,arguments)}function Xe(){return(Xe=Le(Fe().mark((function e(t,r,n){var a,i,s,c;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)("patient-registration");case 2:return a=e.sent,i=a.some((function(e){return e.fhirPatient.id===t})),s={uuid:(0,Oe.Z)(),patient:t,startDatetime:new Date,location:r,visitType:n},c={id:s.uuid,displayName:"Offline visit",patientUuid:t,dependencies:i?[{type:"patient-registration",id:t}]:[]},e.next=8,(0,o.queueSynchronizationItem)(Ve,s,c);case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qe(e){var t,r;return{uuid:e.uuid,startDatetime:null===(t=e.startDatetime)||void 0===t?void 0:t.toString(),stopDatetime:null===(r=e.stopDatetime)||void 0===r?void 0:r.toString(),encounters:[],visitType:{uuid:e.visitType,display:"Offline"},patient:{uuid:e.patient}}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $e,Ke={Vitals:1,Biometrics:2,Conditions:3,Medications:4},et=function(e){return null!==($e=Ke[e])&&void 0!==$e?$e:(Re=Math).max.apply(Re,function(e){if(Array.isArray(e))return Je(e)}(t=Object.values(Ke))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+1;var t}}}]);
|
package/dist/195.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"195.js","mappings":"kNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,2vCAA8vC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,mEAAmE,iEAAiE,MAAQ,GAAG,SAAW,mUAAmU,WAAa,MAEp3DH,EAAwBI,OAAS,CAChC,cAAiB,4DACjB,aAAgB,4DAEjB,W,gECRIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,muDAAwuD,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yEAAyE,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,4cAA4c,WAAa,MAE1jFH,EAAwBI,OAAS,CAChC,OAAU,qDACV,QAAW,sDACX,eAAkB,6DAClB,cAAiB,4DACjB,QAAW,sDACX,KAAQ,oDAET,W,+DCZIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,kxDAAqxD,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yEAAyE,g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xC,GAAeM,EAAcyB,G,gCACrDzB,G,4CAnCyC,sBAsClD,SAASM,GAAoBN,G,IAGVA,EACDA,EAHhB,MAAO,CACL7G,KAAM6G,EAAa7G,KACnB0I,cAAyC,QAA1B7B,EAAAA,EAAa6B,qBAAa,IAA1B7B,OAAAA,EAAAA,EAA4BmC,WAC3CC,aAAuC,QAAzBpC,EAAAA,EAAaoC,oBAAY,IAAzBpC,OAAAA,EAAAA,EAA2BmC,WACzCE,WAAY,GACZN,UAAW,CACT5I,KAAM6G,EAAa+B,UACnBO,QAAS,WAEXhB,QAAS,CACPnI,KAAM6G,EAAasB,UCjJzB,kB,yFAAA,IAWEiB,GAXIA,GAEF,CAEFC,OAAQ,EACRC,WAAY,EACZC,WAAY,EACZC,YAAa,GAGFC,GAAgD,SAACC,G,OACjB,QAA3CN,GAAAA,GAA6BM,UAAc,IAA3CN,GAAAA,IAA+CzL,GAAAA,MAAKgM,IAALhM,MAAAA,G,gDAAYiM,OAAO/P,OAAOuP,M,okBAAiC,E","sources":["webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/cards/card-header.scss","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/error-state/error-state.scss","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/pagination/pagination.scss","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/cards/card-header.scss?ae53","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/cards/card-header.component.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/empty-state/empty-data-illustration.component.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/empty-state/empty-state.scss?0643","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/empty-state/empty-state.component.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/error-state/error-state.scss?39c1","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/error-state/error-state.component.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/nav-group/DashboardGroupExtension.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/nav-group/createDashboardGroup.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/nav-group/nav-group.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/dashboards/DashboardExtension.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/dashboards/createDashboardLink.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/launchStartVisitPrompt.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/pagination/usePaginationInfo.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/pagination/pagination.scss?46c8","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/pagination/pagination.component.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/time-helper.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/useVitalsConceptMetadata.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/form-entry/form-entry.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/workspaces/workspaces.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/workspaces/useWorkspaces.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/workspaces/useWorkspaceWindowSize.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/programs/usePatientProgramEnrollment.tsx","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/offline/visit.ts","webpack://@openmrs/esm-patient-programs-app/../esm-patient-common-lib/src/patient-summary/patient-summary-extension-order.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","CardHeader","title","children","isTablet","useLayoutType","div","className","styles","h4","EmptyDataIllustration","width","height","svg","viewBox","g","fill","fillRule","path","d","circle","cx","cy","r","EmptyState","props","useTranslation","t","Layer","Tile","headerTitle","p","Trans","i18nKey","values","displayText","toLowerCase","launchForm","span","Link","onClick","ErrorState","error","response","status","statusText","DashboardGroupExtension","slotName","basePath","isExpanded","useEffect","registerNavGroup","Accordion","AccordionItem","open","style","border","ExtensionSlot","extensionSlotName","state","createDashboardGroup","navGroupStore","createGlobalStore","navGroups","store","getState","setState","useNavGroups","createUseStore","DashboardExtension","location","useLocation","navLink","useMemo","decodeURIComponent","last","pathname","split","key","ConfigurableLink","to","encodeURIComponent","createDashboardLink","db","BrowserRouter","launchStartVisitPrompt","dispose","showModal","closeModal","usePaginationInfo","pageSize","totalItems","pageNumber","currentItems","pageSizes","numberOfPages","Math","ceil","isNaN","Array","keys","map","x","numberOfItemsDisplayed","itemsDisplayed","PatientChartPagination","onPageNumberChange","dashboardLinkUrl","dashboardLinkLabel","urlLabel","Pagination","page","onChange","size","convertTime12to24","time12h","timeFormat","hours","minutes","parseInt","useVitalsConceptMetadata","data","concept","apiUrl","useSWRImmutable","openmrsFetch","isLoading","conceptMetadata","results","setMembers","conceptUnits","length","Map","uuid","units","conceptRanges","lowAbsolute","highAbsolute","hiAbsolute","isError","withUnit","label","unit","formEntrySub","BehaviorSubject","registeredWorkspaces","registerWorkspace","workspace","name","preferredWindowSize","type","getTitleFromExtension","ext","meta","translateFrom","moduleName","default","launchPatientWorkspace","additionalProps","getWorkspaceStore","workspaceExtension","getExtensionRegistration","screenSize","load","Error","getWorkspaceRegistration","newWorkspace","closeWorkspace","ignoreChanges","promptBeforeClosing","testFcn","existingWorkspaces","openWorkspaces","filter","w","existingIdx","findIndex","promptCheckFcn","getPromptBeforeClosingFcn","restOfWorkspaces","splice","currentName","prompt","body","formName","onConfirm","confirmText","launchPatientChartWithWorkspaceOpen","patientUuid","workspaceName","dashboardName","changeWorkspaceContext","navigate","promptBeforeClosingFcns","cancelPrompt","closeAllWorkspaces","initialState","getGlobalStore","resetWorkspaceStore","useWorkspaces","useState","workspaces","setWorkspaces","setPrompt","update","subscribe","windowState","active","reducer","action","WorkspaceWindowSizeContext","createContext","windowSize","useWorkspaceWindowSize","useContext","WorkspaceWindowSizeProvider","React","contextWorkspaceWindowSize","updateContextWorkspaceWindowSize","updateWindowSize","useCallback","windowSizeValue","Provider","value","useActivePatientEnrollment","useSWR","customRepresentation","activePatientEnrollment","sort","a","b","dateEnrolled","enrollment","dateCompleted","uniqBy","program","visitSyncType","useVisitOrOfflineVisit","isOnline","useConnectivity","onlineVisit","useVisit","offlineVisit","useOfflineVisit","offlineVisitState","setOfflineVisitState","getOfflineVisitForPatient","then","offlineVisitToVisit","catch","err","currentVisit","isValidating","mutate","useAutoCreatedOfflineVisit","offlineVisitTypeUuid","useSession","sessionLocation","createOfflineVisitForPatient","finally","offlineVisits","getSynchronizationItems","find","visit","patient","patientRegistrationSyncItems","isVisitForOfflineRegisteredPatient","descriptor","some","item","fhirPatient","startDatetime","Date","visitType","displayName","dependencies","queueSynchronizationItem","toString","stopDatetime","encounters","display","patientSummaryExtensionOrder","Vitals","Biometrics","Conditions","Medications","getPatientSummaryOrder","extensionName","max","Object"],"sourceRoot":""}
|
package/dist/358.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[358,660],{9358:(e,r,t)=>{"use strict";t.r(r),t.d(r,{backendDependencies:()=>p,importTranslation:()=>i,setupOpenMRS:()=>l,version:()=>m});var a=t(906),n=t(6217),o={customUrl:{_type:a.Type.String,_default:""},hideAddProgramButton:{_type:a.Type.Boolean,_default:!1}},s={slot:"patient-chart-programs-dashboard-slot",columns:1,title:"Programs"},m="4.3.1-pre.1292",i=t(3979),p={"webservices.rest":"^2.2.0"};function l(){var e="@openmrs/esm-patient-programs-app",r={featureName:"patient-programs",moduleName:e};return(0,a.defineConfigSchema)(e,o),{extensions:[{name:"programs-overview-widget",order:(0,n.getPatientSummaryOrder)("Programs"),load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(507),t.e(534),t.e(268),t.e(924),t.e(810)]).then(t.bind(t,3810))}),r),meta:{columnSpan:4}},{name:"programs-details-widget",slot:s.slot,load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(507),t.e(268),t.e(924),t.e(798)]).then(t.bind(t,798))}),r),meta:{columnSpan:1}},{name:"programs-summary-dashboard",slot:"patient-chart-dashboard-slot",order:10,load:(0,a.getSyncLifecycle)((0,n.createDashboardLink)(s),r),meta:s},{name:"programs-form-workspace",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(507),t.e(268),t.e(924),t.e(650)]).then(t.bind(t,5650))}),r),meta:{title:"Record program enrollment"}}]}}},3979:(e,r,t)=>{var a={"./en.json":[3574,574],"./fr.json":[2757,757],"./km.json":[7807,807]};function n(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=a[e],n=r[0];return t.e(r[1]).then((()=>t(n)))}n.keys=()=>Object.keys(a),n.id=3979,e.exports=n}}]);
|
package/dist/358.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"358.js","mappings":"+RAEaA,EAAe,CAC1BC,UAAW,CACTC,MAAOC,EAAAA,KAAAA,OACPC,SAAU,IAEZC,qBAAsB,CACpBH,MAAOC,EAAAA,KAAAA,QACPC,UAAU,ICTDE,EAAgB,CAC3BC,KAAM,wCACNC,QAAS,EACTC,MAAO,YCIHC,EAAUC,iBAEVC,EAAoBC,EAAAA,MAEpBC,EAAsB,CAC1B,mBAAoB,UAGtB,SAASC,IACP,IAAMC,EAAa,oCAEbC,EAAU,CACdC,YAAa,mBACbF,WAAAA,GAKF,OAFAG,EAAAA,EAAAA,oBAAmBH,EAAYhB,GAExB,CACLoB,WAAY,CACV,CACEC,KAAM,2BACNC,OAAOC,EAAAA,EAAAA,wBAAuB,YAC9BC,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,mFAAkDR,GAChFS,KAAM,CACJC,WAAY,IAGhB,CACEN,KAAM,0BACNd,KAAMD,EAAcC,KACpBiB,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,yEAA0DR,GACxFS,KAAM,CACJC,WAAY,IAGhB,CACEN,KAAM,6BACNd,KAAM,+BACNe,MAAO,GACPE,MAAMI,EAAAA,EAAAA,mBAAiBC,EAAAA,EAAAA,qBAAoBvB,GAAgBW,GAC3DS,KAAMpB,GAER,CACEe,KAAM,0BACNG,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,0EAA8CR,GAC5ES,KAAM,CACJjB,MAAO,kC,eCtDjB,IAAIqB,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,KAG7BX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf","sources":["webpack://@openmrs/esm-patient-programs-app/./src/config-schema.ts","webpack://@openmrs/esm-patient-programs-app/./src/dashboard.meta.tsx","webpack://@openmrs/esm-patient-programs-app/./src/index.ts","webpack://@openmrs/esm-patient-programs-app/./translations/ lazy nonrecursive .json$"],"names":["configSchema","customUrl","_type","Type","_default","hideAddProgramButton","dashboardMeta","slot","columns","title","version","__VERSION__","importTranslation","require","backendDependencies","setupOpenMRS","moduleName","options","featureName","defineConfigSchema","extensions","name","order","getPatientSummaryOrder","load","getAsyncLifecycle","meta","columnSpan","getSyncLifecycle","createDashboardLink","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports"],"sourceRoot":""}
|
package/dist/{206.js → 442.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[206],{5206:(t,e,r)=>{r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>xt,AsyncSubject:()=>it,BehaviorSubject:()=>Y,ConnectableObservable:()=>C,EMPTY:()=>L,EmptyError:()=>gt,GroupedObservable:()=>V,NEVER:()=>ve,Notification:()=>$,NotificationKind:()=>B,ObjectUnsubscribedError:()=>I,Observable:()=>E,ReplaySubject:()=>rt,Scheduler:()=>q,Subject:()=>N,Subscriber:()=>v,Subscription:()=>p,TimeoutError:()=>Et,UnsubscriptionError:()=>f,VirtualAction:()=>mt,VirtualTimeScheduler:()=>yt,animationFrame:()=>vt,animationFrameScheduler:()=>bt,asap:()=>lt,asapScheduler:()=>at,async:()=>pt,asyncScheduler:()=>ft,bindCallback:()=>jt,bindNodeCallback:()=>kt,combineLatest:()=>Lt,concat:()=>re,config:()=>u,defer:()=>ne,empty:()=>W,forkJoin:()=>ie,from:()=>Gt,fromEvent:()=>se,fromEventPattern:()=>ce,generate:()=>he,identity:()=>_,iif:()=>le,interval:()=>pe,isObservable:()=>_t,merge:()=>be,never:()=>ye,noop:()=>wt,observable:()=>w,of:()=>Q,onErrorResumeNext:()=>me,pairs:()=>we,partition:()=>Ie,pipe:()=>x,queue:()=>H,queueScheduler:()=>U,race:()=>Te,range:()=>Oe,scheduled:()=>Bt,throwError:()=>X,timer:()=>Ae,using:()=>Pe,zip:()=>Ve});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function c(t){setTimeout((function(){throw t}),0)}var h={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function l(t){return null!==t&&"object"==typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),p=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof f?d(t.errors):[t]}}if(a(u)){c=-1;for(var h=u.length;++c<h;){var p=u[c];if(l(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof f?e=e.concat(d(t.errors)):e.push(t)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var b=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=h;break;case 1:if(!r){o.destination=h;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(e,t),e.prototype[b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(p),y=function(t){function e(e,r,n,i){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==h&&(o((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=n,u._complete=i,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=u.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function m(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var w=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function _(t){return t}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g(t)}function g(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var E=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||r?new v(t,e,r):new v(h)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),m(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=S(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:g(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),T=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(p),j=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return i(e,t),e}(v),N=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[b]=function(){return new j(this)},e.prototype.lift=function(t){var e=new O(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new T(this,t))},e.prototype.asObservable=function(){var t=new E;return t.source=this,t},e.create=function(t,e){return new O(t,e)},e}(E),O=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(N),k=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new A(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(v),C=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new k(t));var t},e}(E),P=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j),V=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return i(e,t),e.prototype._subscribe=function(t){var e=new p,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new F(r)),e.add(n.subscribe(t)),e},e}(E),F=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p),Y=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(N),M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(M),q=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),D=function(t){function e(r,n){void 0===n&&(n=q.now);var i=t.call(this,r,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(q),U=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(D))(R),H=U,L=new E((function(t){return t.complete()}));function W(t){return t?function(t){return new E((function(e){return t.schedule((function(){return e.complete()}))}))}(t):L}function z(t){return t&&"function"==typeof t.schedule}var B,G=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function J(t,e){return new E((function(r){var n=new p,i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function K(t,e){return e?J(t,e):new E(G(t))}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return z(r)?(t.pop(),J(t,r)):K(t)}function X(t,e){return new E(e?function(r){return e.schedule(Z,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function Z(t){var e=t.error;t.subscriber.error(e)}B||(B={});var $=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Q(this.value);case"E":return X(this.error);case"C":return W()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),tt=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new et(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage($.createNext(t))},e.prototype._error=function(t){this.scheduleMessage($.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage($.createComplete()),this.unsubscribe()},e}(v),et=function(){return function(t,e){this.notification=t,this.destination=e}}(),rt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new nt(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new tt(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||H).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(N),nt=function(){return function(t,e){this.time=t,this.value=e}}(),it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(N),ot=1,st=function(){return Promise.resolve()}(),ut={};function ct(t){return t in ut&&(delete ut[t],!0)}var ht=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=ot++,ut[o]=!0,st.then((function(){return ct(o)&&i()})),o)));var i,o},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ct(r),e.scheduled=void 0)},e}(M),at=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(ht),lt=at,ft=new D(M),pt=ft,dt=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(M),bt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(dt),vt=bt,yt=function(t){function e(e,r){void 0===e&&(e=mt),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(D),mt=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return i(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(M);function wt(){}function _t(t){return!!t&&(t instanceof E||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var xt=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),gt=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Et=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function St(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new It(t,e))}}var It=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.project,this.thisArg))},t}(),Tt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function jt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return jt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:t,scheduler:r};return new E((function(n){if(r){var u={args:e,subscriber:n,params:s};return r.schedule(Nt,0,u)}if(!i){i=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(t){m(i)?i.error(t):console.warn(t)}}return i.subscribe(n)}))}}function Nt(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new it;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(Ot,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function Ot(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function kt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return kt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new E((function(n){var o=i.context,s=i.subject;if(r)return r.schedule(At,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){m(s)?s.error(t):console.warn(t)}}return s.subscribe(n)}))}}function At(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new it;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(Pt,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(Ct,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(Pt,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function Ct(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Pt(t){var e=t.err;t.subject.error(e)}var Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),Ft=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v);function Yt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Mt=Yt(),Rt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function qt(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Dt=function(t){if(t&&"function"==typeof t[w])return n=t,function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Rt(t))return G(t);if(qt(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,c),t};if(t&&"function"==typeof t[Mt])return e=t,function(t){for(var r=e[Mt]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,n,i=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ut(t,e,r,n,i){if(void 0===i&&(i=new Ft(t,r,n)),!i.closed)return e instanceof E?e.subscribe(i):Dt(e)(i)}var Ht={};function Lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return z(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),K(t,n).lift(new Wt(r))}var Wt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.resultSelector))},t}(),zt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(e,t),e.prototype._next=function(t){this.values.push(Ht),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Ut(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===Ht?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Vt);function Bt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if(qt(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if(Rt(t))return J(t,e);if(function(t){return t&&"function"==typeof t[Mt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new E((function(r){var n,i=new p;return i.add((function(){n&&"function"==typeof n.return&&n.return()})),i.add(e.schedule((function(){n=t[Mt](),i.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Gt(t,e){return e?Bt(t,e):t instanceof E?t:new E(Dt(t))}var Jt=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function Qt(t,e){if(!e.closed){if(t instanceof E)return t.subscribe(e);var r;try{r=Dt(t)(e)}catch(t){e.error(t)}return r}}function Xt(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(Xt((function(r,n){return Gt(t(r,n)).pipe(St((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new Zt(t,r))})}var Zt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new $t(t,this.project,this.concurrent))},t}(),$t=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Jt(this),r=this.destination;r.add(e);var n=Qt(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Kt);function te(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Xt(_,t)}function ee(){return te(1)}function re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ee()(Q.apply(void 0,t))}function ne(t){return new E((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?Gt(r):W()).subscribe(e)}))}function ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(a(r))return oe(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return oe(n.map((function(t){return r[t]})),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return oe(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(St((function(t){return i.apply(void 0,t)})))}return oe(t,null)}function oe(t,e){return new E((function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,s=0,u=function(u){var c=Gt(t[u]),h=!1;r.add(c.subscribe({next:function(t){h||(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce((function(t,e,r){return t[e]=i[r],t}),{}):i),r.complete())}}))},c=0;c<n;c++)u(c);else r.complete()}))}function se(t,e,r,n){return o(r)&&(n=r,r=void 0),n?se(t,e,r).pipe(St((function(t){return a(t)?n.apply(void 0,t):n(t)}))):new E((function(n){ue(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function ue(t,e,r,n,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,r,i),o=function(){return s.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,r),o=function(){return u.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),o=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,a=t.length;h<a;h++)ue(t[h],e,r,n,i)}n.add(o)}function ce(t,e,r){return r?ce(t,e).pipe(St((function(t){return a(t)?r.apply(void 0,t):r(t)}))):new E((function(r){var n,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(i)}catch(t){return void r.error(t)}if(o(e))return function(){return e(i,n)}}))}function he(t,e,r,n,i){var o,s;if(1==arguments.length){var u=t;s=u.initialState,e=u.condition,r=u.iterate,o=u.resultSelector||_,i=u.scheduler}else void 0===n||z(n)?(s=t,o=_,i=n):(s=t,o=n);return new E((function(t){var n=s;if(i)return i.schedule(ae,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){return void t.error(e)}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){return void t.error(e)}}}))}function ae(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(r){var n=void 0;try{n=r(t.state)}catch(t){return void e.error(t)}if(!n)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function le(t,e,r){return void 0===e&&(e=L),void 0===r&&(r=L),ne((function(){return t()?e:r}))}function fe(t){return!a(t)&&t-parseFloat(t)+1>=0}function pe(t,e){return void 0===t&&(t=0),void 0===e&&(e=pt),(!fe(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=pt),new E((function(r){return r.add(e.schedule(de,t,{subscriber:r,counter:0,period:t})),r}))}function de(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return z(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof E?t[0]:te(r)(K(t,n))}var ve=new E(wt);function ye(){return ve}function me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return L;var r=t[0],n=t.slice(1);return 1===t.length&&a(r)?me.apply(void 0,r):new E((function(t){var e=function(){return t.add(me.apply(void 0,n).subscribe(t))};return Gt(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function we(t,e){return new E(e?function(r){var n=Object.keys(t),i=new p;return i.add(e.schedule(_e,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function _e(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function xe(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}function ge(t,e){return function(r){return r.lift(new Ee(t,e))}}var Ee=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Se(t,this.predicate,this.thisArg))},t}(),Se=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(v);function Ie(t,e,r){return[ge(e,r)(new E(Dt(t))),ge(xe(e,r))(new E(Dt(t)))]}function Te(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return K(t,void 0).lift(new je)}var je=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t))},t}(),Ne=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=Ut(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Vt);function Oe(t,e,r){return void 0===t&&(t=0),new E((function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(ke,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}}))}function ke(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function Ae(t,e,r){void 0===t&&(t=0);var n=-1;return fe(e)?n=Number(e)<1?1:Number(e):z(e)&&(r=e),z(r)||(r=pt),new E((function(e){var i=fe(t)?t:+t-r.now();return r.schedule(Ce,i,{index:0,period:n,subscriber:e})}))}function Ce(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function Pe(t,e){return new E((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var o=(i?Gt(i):L).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}}))}function Ve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),K(t,void 0).lift(new Fe(r))}var Fe=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ye(t,this.resultSelector))},t}(),Ye=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new Re(t)):"function"==typeof t[Mt]?e.push(new Me(t[Mt]())):e.push(new qe(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(i=!0),u.done)return void r.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v),Me=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),Re=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Mt]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),qe=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Mt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Qt(this.observable,new Jt(this))},e}(Kt)}}]);
|
|
1
|
+
/*! For license information please see 442.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[442],{2442:(t,e,r)=>{r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>xt,AsyncSubject:()=>it,BehaviorSubject:()=>Y,ConnectableObservable:()=>C,EMPTY:()=>L,EmptyError:()=>gt,GroupedObservable:()=>V,NEVER:()=>ve,Notification:()=>$,NotificationKind:()=>B,ObjectUnsubscribedError:()=>I,Observable:()=>E,ReplaySubject:()=>rt,Scheduler:()=>q,Subject:()=>N,Subscriber:()=>v,Subscription:()=>p,TimeoutError:()=>Et,UnsubscriptionError:()=>f,VirtualAction:()=>mt,VirtualTimeScheduler:()=>yt,animationFrame:()=>vt,animationFrameScheduler:()=>bt,asap:()=>lt,asapScheduler:()=>at,async:()=>pt,asyncScheduler:()=>ft,bindCallback:()=>jt,bindNodeCallback:()=>kt,combineLatest:()=>Lt,concat:()=>re,config:()=>u,defer:()=>ne,empty:()=>W,forkJoin:()=>ie,from:()=>Gt,fromEvent:()=>se,fromEventPattern:()=>ce,generate:()=>he,identity:()=>_,iif:()=>le,interval:()=>pe,isObservable:()=>_t,merge:()=>be,never:()=>ye,noop:()=>wt,observable:()=>w,of:()=>Q,onErrorResumeNext:()=>me,pairs:()=>we,partition:()=>Ie,pipe:()=>x,queue:()=>H,queueScheduler:()=>U,race:()=>Te,range:()=>Oe,scheduled:()=>Bt,throwError:()=>X,timer:()=>Ae,using:()=>Pe,zip:()=>Ve});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function c(t){setTimeout((function(){throw t}),0)}var h={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function l(t){return null!==t&&"object"==typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),p=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof f?d(t.errors):[t]}}if(a(u)){c=-1;for(var h=u.length;++c<h;){var p=u[c];if(l(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof f?e=e.concat(d(t.errors)):e.push(t)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var b=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=h;break;case 1:if(!r){o.destination=h;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(e,t),e.prototype[b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(p),y=function(t){function e(e,r,n,i){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==h&&(o((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=n,u._complete=i,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=u.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function m(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var w=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function _(t){return t}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g(t)}function g(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var E=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||r?new v(t,e,r):new v(h)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),m(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=S(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:g(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),T=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(p),j=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return i(e,t),e}(v),N=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[b]=function(){return new j(this)},e.prototype.lift=function(t){var e=new O(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new T(this,t))},e.prototype.asObservable=function(){var t=new E;return t.source=this,t},e.create=function(t,e){return new O(t,e)},e}(E),O=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(N),k=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new A(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(v),C=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new k(t));var t},e}(E),P=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j),V=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return i(e,t),e.prototype._subscribe=function(t){var e=new p,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new F(r)),e.add(n.subscribe(t)),e},e}(E),F=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p),Y=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(N),M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(M),q=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),D=function(t){function e(r,n){void 0===n&&(n=q.now);var i=t.call(this,r,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(q),U=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(D))(R),H=U,L=new E((function(t){return t.complete()}));function W(t){return t?function(t){return new E((function(e){return t.schedule((function(){return e.complete()}))}))}(t):L}function z(t){return t&&"function"==typeof t.schedule}var B,G=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function J(t,e){return new E((function(r){var n=new p,i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}function K(t,e){return e?J(t,e):new E(G(t))}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return z(r)?(t.pop(),J(t,r)):K(t)}function X(t,e){return new E(e?function(r){return e.schedule(Z,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function Z(t){var e=t.error;t.subscriber.error(e)}B||(B={});var $=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Q(this.value);case"E":return X(this.error);case"C":return W()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),tt=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new et(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage($.createNext(t))},e.prototype._error=function(t){this.scheduleMessage($.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage($.createComplete()),this.unsubscribe()},e}(v),et=function(){return function(t,e){this.notification=t,this.destination=e}}(),rt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new nt(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new tt(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||H).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(N),nt=function(){return function(t,e){this.time=t,this.value=e}}(),it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(N),ot=1,st=function(){return Promise.resolve()}(),ut={};function ct(t){return t in ut&&(delete ut[t],!0)}var ht=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=ot++,ut[o]=!0,st.then((function(){return ct(o)&&i()})),o)));var i,o},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ct(r),e.scheduled=void 0)},e}(M),at=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(ht),lt=at,ft=new D(M),pt=ft,dt=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(M),bt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D))(dt),vt=bt,yt=function(t){function e(e,r){void 0===e&&(e=mt),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(D),mt=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return i(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(M);function wt(){}function _t(t){return!!t&&(t instanceof E||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var xt=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),gt=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Et=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function St(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new It(t,e))}}var It=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.project,this.thisArg))},t}(),Tt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function jt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return jt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:t,scheduler:r};return new E((function(n){if(r){var u={args:e,subscriber:n,params:s};return r.schedule(Nt,0,u)}if(!i){i=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(t){m(i)?i.error(t):console.warn(t)}}return i.subscribe(n)}))}}function Nt(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new it;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(Ot,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function Ot(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function kt(t,e,r){if(e){if(!z(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return kt(t,r).apply(void 0,n).pipe(St((function(t){return a(t)?e.apply(void 0,t):e(t)})))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new E((function(n){var o=i.context,s=i.subject;if(r)return r.schedule(At,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){m(s)?s.error(t):console.warn(t)}}return s.subscribe(n)}))}}function At(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new it;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(Pt,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(Ct,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(Pt,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function Ct(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Pt(t){var e=t.err;t.subject.error(e)}var Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),Ft=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v);function Yt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Mt=Yt(),Rt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function qt(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Dt=function(t){if(t&&"function"==typeof t[w])return n=t,function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Rt(t))return G(t);if(qt(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,c),t};if(t&&"function"==typeof t[Mt])return e=t,function(t){for(var r=e[Mt]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,n,i=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ut(t,e,r,n,i){if(void 0===i&&(i=new Ft(t,r,n)),!i.closed)return e instanceof E?e.subscribe(i):Dt(e)(i)}var Ht={};function Lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return z(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),K(t,n).lift(new Wt(r))}var Wt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.resultSelector))},t}(),zt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(e,t),e.prototype._next=function(t){this.values.push(Ht),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Ut(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===Ht?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Vt);function Bt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if(qt(t))return function(t,e){return new E((function(r){var n=new p;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if(Rt(t))return J(t,e);if(function(t){return t&&"function"==typeof t[Mt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new E((function(r){var n,i=new p;return i.add((function(){n&&"function"==typeof n.return&&n.return()})),i.add(e.schedule((function(){n=t[Mt](),i.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Gt(t,e){return e?Bt(t,e):t instanceof E?t:new E(Dt(t))}var Jt=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function Qt(t,e){if(!e.closed){if(t instanceof E)return t.subscribe(e);var r;try{r=Dt(t)(e)}catch(t){e.error(t)}return r}}function Xt(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(Xt((function(r,n){return Gt(t(r,n)).pipe(St((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new Zt(t,r))})}var Zt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new $t(t,this.project,this.concurrent))},t}(),$t=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Jt(this),r=this.destination;r.add(e);var n=Qt(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Kt);function te(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Xt(_,t)}function ee(){return te(1)}function re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ee()(Q.apply(void 0,t))}function ne(t){return new E((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?Gt(r):W()).subscribe(e)}))}function ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(a(r))return oe(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return oe(n.map((function(t){return r[t]})),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return oe(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(St((function(t){return i.apply(void 0,t)})))}return oe(t,null)}function oe(t,e){return new E((function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,s=0,u=function(u){var c=Gt(t[u]),h=!1;r.add(c.subscribe({next:function(t){h||(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce((function(t,e,r){return t[e]=i[r],t}),{}):i),r.complete())}}))},c=0;c<n;c++)u(c);else r.complete()}))}function se(t,e,r,n){return o(r)&&(n=r,r=void 0),n?se(t,e,r).pipe(St((function(t){return a(t)?n.apply(void 0,t):n(t)}))):new E((function(n){ue(t,e,(function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function ue(t,e,r,n,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,r,i),o=function(){return s.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,r),o=function(){return u.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),o=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,a=t.length;h<a;h++)ue(t[h],e,r,n,i)}n.add(o)}function ce(t,e,r){return r?ce(t,e).pipe(St((function(t){return a(t)?r.apply(void 0,t):r(t)}))):new E((function(r){var n,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(i)}catch(t){return void r.error(t)}if(o(e))return function(){return e(i,n)}}))}function he(t,e,r,n,i){var o,s;if(1==arguments.length){var u=t;s=u.initialState,e=u.condition,r=u.iterate,o=u.resultSelector||_,i=u.scheduler}else void 0===n||z(n)?(s=t,o=_,i=n):(s=t,o=n);return new E((function(t){var n=s;if(i)return i.schedule(ae,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){return void t.error(e)}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){return void t.error(e)}}}))}function ae(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(r){var n=void 0;try{n=r(t.state)}catch(t){return void e.error(t)}if(!n)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function le(t,e,r){return void 0===e&&(e=L),void 0===r&&(r=L),ne((function(){return t()?e:r}))}function fe(t){return!a(t)&&t-parseFloat(t)+1>=0}function pe(t,e){return void 0===t&&(t=0),void 0===e&&(e=pt),(!fe(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=pt),new E((function(r){return r.add(e.schedule(de,t,{subscriber:r,counter:0,period:t})),r}))}function de(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function be(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return z(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof E?t[0]:te(r)(K(t,n))}var ve=new E(wt);function ye(){return ve}function me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return L;var r=t[0],n=t.slice(1);return 1===t.length&&a(r)?me.apply(void 0,r):new E((function(t){var e=function(){return t.add(me.apply(void 0,n).subscribe(t))};return Gt(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function we(t,e){return new E(e?function(r){var n=Object.keys(t),i=new p;return i.add(e.schedule(_e,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function _e(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function xe(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}function ge(t,e){return function(r){return r.lift(new Ee(t,e))}}var Ee=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Se(t,this.predicate,this.thisArg))},t}(),Se=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(v);function Ie(t,e,r){return[ge(e,r)(new E(Dt(t))),ge(xe(e,r))(new E(Dt(t)))]}function Te(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return K(t,void 0).lift(new je)}var je=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t))},t}(),Ne=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=Ut(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Vt);function Oe(t,e,r){return void 0===t&&(t=0),new E((function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(ke,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}}))}function ke(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function Ae(t,e,r){void 0===t&&(t=0);var n=-1;return fe(e)?n=Number(e)<1?1:Number(e):z(e)&&(r=e),z(r)||(r=pt),new E((function(e){var i=fe(t)?t:+t-r.now();return r.schedule(Ce,i,{index:0,period:n,subscriber:e})}))}function Ce(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function Pe(t,e){return new E((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var o=(i?Gt(i):L).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}}))}function Ve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),K(t,void 0).lift(new Fe(r))}var Fe=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ye(t,this.resultSelector))},t}(),Ye=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new Re(t)):"function"==typeof t[Mt]?e.push(new Me(t[Mt]())):e.push(new qe(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(i=!0),u.done)return void r.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v),Me=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),Re=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Mt]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),qe=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Mt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Qt(this.observable,new Jt(this))},e}(Kt)}}]);
|