@smals-belgium-shared/vidis-delivered-medication-detail 3.1.1-snapshot.2 → 3.1.1-snapshot.3

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.
@@ -26,7 +26,7 @@ ${t.map((a,n)=>`${n+1}) ${a.toString()}`).join(`
26
26
  `,BQ=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
27
27
  `,$l=(()=>{const t=class t extends Qy{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})()),s(t,"ɵcmp",it({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,r){n&2&&(Ln("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Fl(r.color?"mat-"+r.color:""),Rn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[En],ngContentSelectors:Jy,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(fi(Xy),un(0,"span",0),Zn(1),re(2,"span",1),Zn(3,1),ae(),Zn(4,2),un(5,"span",2)(6,"span",3)),n&2&&Rn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}
28
28
  `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
29
- `],encapsulation:2,changeDetection:0}));let e=t;return e})(),zQ=(()=>{const t=class t extends jQ{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})()),s(t,"ɵcmp",it({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,r){n&2&&(Ln("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Fl(r.color?"mat-"+r.color:""),Rn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[En],ngContentSelectors:Jy,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(fi(Xy),un(0,"span",0),Zn(1),re(2,"span",1),Zn(3,1),ae(),Zn(4,2),un(5,"span",2)(6,"span",3)),n&2&&Rn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[VQ,BQ],encapsulation:2,changeDetection:0}));let e=t;return e})(),e1=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",tn({type:t})),s(t,"ɵinj",Jt({imports:[ri,XK,ri]}));let e=t;return e})(),t1=(()=>{const t=class t{constructor(){s(this,"changes",new xe);s(this,"itemsPerPageLabel","Items per page:");s(this,"nextPageLabel","Next page");s(this,"previousPageLabel","Previous page");s(this,"firstPageLabel","First page");s(this,"lastPageLabel","Last page");s(this,"getRangeLabel",(n,r,i)=>{if(i==0||r==0)return`0 of ${i}`;i=Math.max(i,0);let o=n*r,l=o<i?Math.min(o+r,i):o+r;return`${o+1} – ${l} of ${i}`})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),Ce=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Ce||{}),ga="*";function HQ(e,t=null){return{type:Ce.Sequence,steps:e,options:t}}function uf(e){return{type:Ce.Style,styles:e,offset:null}}var ro=class{constructor(e=0,t=0){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finished",!1);s(this,"_position",0);s(this,"parentPlayer",null);s(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},n1=class{constructor(e){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_onDestroyFns",[]);s(this,"parentPlayer",null);s(this,"totalTime",0);s(this,"players");this.players=e;let t=0,a=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++t==r&&this._onFinish()}),i.onDestroy(()=>{++a==r&&this._onDestroy()}),i.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((i,o)=>Math.max(i,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(a=>{let n=a.totalTime?Math.min(1,t/a.totalTime):1;a.setPosition(n)})}getPosition(){let e=this.players.reduce((t,a)=>t===null||a.totalTime>t.totalTime?a:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},zh="!";function cf(e){return new G(3e3,!1)}function qQ(){return new G(3100,!1)}function $Q(){return new G(3101,!1)}function GQ(e){return new G(3001,!1)}function UQ(e){return new G(3003,!1)}function WQ(e){return new G(3004,!1)}function ZQ(e,t){return new G(3005,!1)}function YQ(){return new G(3006,!1)}function KQ(){return new G(3007,!1)}function QQ(e,t){return new G(3008,!1)}function XQ(e){return new G(3002,!1)}function JQ(e,t,a,n,r){return new G(3010,!1)}function eX(){return new G(3011,!1)}function tX(){return new G(3012,!1)}function nX(){return new G(3200,!1)}function aX(){return new G(3202,!1)}function rX(){return new G(3013,!1)}function iX(e){return new G(3014,!1)}function oX(e){return new G(3015,!1)}function sX(e){return new G(3016,!1)}function lX(e,t){return new G(3404,!1)}function uX(e){return new G(3502,!1)}function cX(e){return new G(3503,!1)}function dX(){return new G(3300,!1)}function hX(e){return new G(3504,!1)}function pX(e){return new G(3301,!1)}function mX(e,t){return new G(3302,!1)}function fX(e){return new G(3303,!1)}function gX(e,t){return new G(3400,!1)}function vX(e){return new G(3401,!1)}function bX(e){return new G(3402,!1)}function yX(e,t){return new G(3505,!1)}function Ra(e){switch(e.length){case 0:return new ro;case 1:return e[0];default:return new n1(e)}}function a1(e,t,a=new Map,n=new Map){let r=[],i=[],o=-1,l=null;if(t.forEach(c=>{let u=c.get("offset"),d=u==o,m=d&&l||new Map;c.forEach((b,g)=>{let w=g,x=b;if(g!=="offset")switch(w=e.normalizePropertyName(w,r),x){case zh:x=a.get(g);break;case ga:x=n.get(g);break;default:x=e.normalizeStyleValue(g,w,x,r);break}m.set(w,x)}),d||i.push(m),l=m,o=u}),r.length)throw uX();return i}function Hh(e,t,a,n){switch(t){case"start":e.onStart(()=>n(a&&Fu(a,"start",e)));break;case"done":e.onDone(()=>n(a&&Fu(a,"done",e)));break;case"destroy":e.onDestroy(()=>n(a&&Fu(a,"destroy",e)));break}}function Fu(e,t,a){let n=a.totalTime,r=!!a.disabled,i=qh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,r),o=e._data;return o!=null&&(i._data=o),i}function qh(e,t,a,n,r="",i=0,o){return{element:e,triggerName:t,fromState:a,toState:n,phaseName:r,totalTime:i,disabled:!!o}}function on(e,t,a){let n=e.get(t);return n||e.set(t,n=a),n}function df(e){let t=e.indexOf(":"),a=e.substring(1,t),n=e.slice(t+1);return[a,n]}var _X=typeof document>"u"?null:document.documentElement;function $h(e){let t=e.parentNode||e.host||null;return t===_X?null:t}function wX(e){return e.substring(1,6)=="ebkit"}var Xa=null,hf=!1;function xX(e){Xa||(Xa=EX()||{},hf=Xa.style?"WebkitAppearance"in Xa.style:!1);let t=!0;return Xa.style&&!wX(e)&&(t=e in Xa.style,!t&&hf&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Xa.style)),t}function EX(){return typeof document<"u"?document.body:null}function r1(e,t){for(;t;){if(t===e)return!0;t=$h(t)}return!1}function i1(e,t,a){if(a)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var SX=1e3,o1="{{",kX="}}",s1="ng-enter",Qc="ng-leave",ds="ng-trigger",hl=".ng-trigger",pf="ng-animating",Xc=".ng-animating";function pa(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Jc(parseFloat(t[1]),t[2])}function Jc(e,t){switch(t){case"s":return e*SX;default:return e}}function pl(e,t,a){return e.hasOwnProperty("duration")?e:CX(e,t,a)}function CX(e,t,a){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof e=="string"){let l=e.match(n);if(l===null)return t.push(cf()),{duration:0,delay:0,easing:""};r=Jc(parseFloat(l[1]),l[2]);let c=l[3];c!=null&&(i=Jc(parseFloat(c),l[4]));let u=l[5];u&&(o=u)}else r=e;if(!a){let l=!1,c=t.length;r<0&&(t.push(qQ()),l=!0),i<0&&(t.push($Q()),l=!0),l&&t.splice(c,0,cf())}return{duration:r,delay:i,easing:o}}function IX(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function $n(e,t,a){t.forEach((n,r)=>{let i=Gh(r);a&&!a.has(r)&&a.set(r,e.style[i]),e.style[i]=n})}function sr(e,t){t.forEach((a,n)=>{let r=Gh(n);e.style[r]=""})}function Ci(e){return Array.isArray(e)?e.length==1?e[0]:HQ(e):e}function DX(e,t,a){let n=t.params||{},r=l1(e);r.length&&r.forEach(i=>{n.hasOwnProperty(i)||a.push(GQ())})}var ed=new RegExp(`${o1}\\s*(.+?)\\s*${kX}`,"g");function l1(e){let t=[];if(typeof e=="string"){let a;for(;a=ed.exec(e);)t.push(a[1]);ed.lastIndex=0}return t}function io(e,t,a){let n=`${e}`,r=n.replace(ed,(i,o)=>{let l=t[o];return l==null&&(a.push(UQ()),l=""),l.toString()});return r==n?e:r}var TX=/-+([a-z0-9])/g;function Gh(e){return e.replace(TX,(...t)=>t[1].toUpperCase())}function NX(e,t){return e===0||t===0}function OX(e,t,a){if(a.size&&t.length){let n=t[0],r=[];if(a.forEach((i,o)=>{n.has(o)||r.push(o),n.set(o,i)}),r.length)for(let i=1;i<t.length;i++){let o=t[i];r.forEach(l=>o.set(l,Uh(e,l)))}}return t}function an(e,t,a){switch(t.type){case Ce.Trigger:return e.visitTrigger(t,a);case Ce.State:return e.visitState(t,a);case Ce.Transition:return e.visitTransition(t,a);case Ce.Sequence:return e.visitSequence(t,a);case Ce.Group:return e.visitGroup(t,a);case Ce.Animate:return e.visitAnimate(t,a);case Ce.Keyframes:return e.visitKeyframes(t,a);case Ce.Style:return e.visitStyle(t,a);case Ce.Reference:return e.visitReference(t,a);case Ce.AnimateChild:return e.visitAnimateChild(t,a);case Ce.AnimateRef:return e.visitAnimateRef(t,a);case Ce.Query:return e.visitQuery(t,a);case Ce.Stagger:return e.visitStagger(t,a);default:throw WQ(t.type)}}function Uh(e,t){return window.getComputedStyle(e)[t]}var MX=(()=>{const t=class t{validateStyleProperty(n){return xX(n)}containsElement(n,r){return r1(n,r)}getParentElement(n){return $h(n)}query(n,r,i){return i1(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,l,c=[],u){return new ro(i,o)}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Ju,u1=(Ju=class{},s(Ju,"NOOP",new MX),Ju),Wh=class{},RX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),AX=class extends Wh{normalizePropertyName(e,t){return Gh(e)}normalizeStyleValue(e,t,a,n){let r="",i=a.toString().trim();if(RX.has(t)&&a!==0&&a!=="0")if(typeof a=="number")r="px";else{let o=a.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(ZQ())}return i+r}},ml="*";function PX(e,t){let a=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>LX(n,a,t)):a.push(e),a}function LX(e,t,a){if(e[0]==":"){let c=FX(e,a);if(typeof c=="function"){t.push(c);return}e=c}let n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return a.push(oX()),t;let r=n[1],i=n[2],o=n[3];t.push(mf(r,o));let l=r==ml&&o==ml;i[0]=="<"&&!l&&t.push(mf(o,r))}function FX(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,n)=>parseFloat(n)>parseFloat(a);case":decrement":return(a,n)=>parseFloat(n)<parseFloat(a);default:return t.push(sX()),"* => *"}}var hs=new Set(["true","1"]),ps=new Set(["false","0"]);function mf(e,t){let a=hs.has(e)||ps.has(e),n=hs.has(t)||ps.has(t);return(r,i)=>{let o=e==ml||e==r,l=t==ml||t==i;return!o&&a&&typeof r=="boolean"&&(o=r?hs.has(e):ps.has(e)),!l&&n&&typeof i=="boolean"&&(l=i?hs.has(t):ps.has(t)),o&&l}}var c1=":self",jX=new RegExp(`s*${c1}s*,?`,"g");function d1(e,t,a,n){return new VX(e).build(t,a,n)}var ff="",VX=class{constructor(e){s(this,"_driver");this._driver=e}build(e,t,a){let n=new HX(t);return this._resetContextStyleTimingState(n),an(this,Ci(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ff,e.collectedStyles=new Map,e.collectedStyles.set(ff,new Map),e.currentTime=0}visitTrigger(e,t){let a=t.queryCount=0,n=t.depCount=0,r=[],i=[];return e.name.charAt(0)=="@"&&t.errors.push(YQ()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Ce.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,t))}),l.name=c}else if(o.type==Ce.Transition){let l=this.visitTransition(o,t);a+=l.queryCount,n+=l.depCount,i.push(l)}else t.errors.push(KQ())}),{type:Ce.Trigger,name:e.name,states:r,transitions:i,queryCount:a,depCount:n,options:null}}visitState(e,t){let a=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(a.containsDynamicStyles){let r=new Set,i=n||{};a.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{l1(l).forEach(c=>{i.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(QQ(e.name,[...r.values()]))}return{type:Ce.State,name:e.name,style:a,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let a=an(this,Ci(e.animation),t),n=PX(e.expr,t.errors);return{type:Ce.Transition,matchers:n,animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Ja(e.options)}}visitSequence(e,t){return{type:Ce.Sequence,steps:e.steps.map(a=>an(this,a,t)),options:Ja(e.options)}}visitGroup(e,t){let a=t.currentTime,n=0,r=e.steps.map(i=>{t.currentTime=a;let o=an(this,i,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:Ce.Group,steps:r,options:Ja(e.options)}}visitAnimate(e,t){let a=$X(e.timings,t.errors);t.currentAnimateTimings=a;let n,r=e.styles?e.styles:uf({});if(r.type==Ce.Keyframes)n=this.visitKeyframes(r,t);else{let i=e.styles,o=!1;if(!i){o=!0;let c={};a.easing&&(c.easing=a.easing),i=uf(c)}t.currentTime+=a.duration+a.delay;let l=this.visitStyle(i,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:Ce.Animate,timings:a,style:n,options:null}}visitStyle(e,t){let a=this._makeStyleAst(e,t);return this._validateStyleAst(a,t),a}_makeStyleAst(e,t){let a=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===ga?a.push(o):t.errors.push(XQ()):a.push(new Map(Object.entries(o)));let r=!1,i=null;return a.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(i=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(o1)>=0){r=!0;break}}}),{type:Ce.Style,styles:a,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let a=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;a&&r>0&&(r-=a.duration+a.delay),e.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),d=!0;u&&(r!=n&&r>=u.startTime&&n<=u.endTime&&(t.errors.push(JQ(l,u.startTime,u.endTime)),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:n}),t.options&&DX(o,t.options,t.errors)})})}visitKeyframes(e,t){let a={type:Ce.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(eX()),a;let n=1,r=0,i=[],o=!1,l=!1,c=0,u=e.steps.map(S=>{let T=this._makeStyleAst(S,t),A=T.offset!=null?T.offset:qX(T.styles),O=0;return A!=null&&(r++,O=T.offset=A),l=l||O<0||O>1,o=o||O<c,c=O,i.push(O),T});l&&t.errors.push(tX()),o&&t.errors.push(nX());let d=e.steps.length,m=0;r>0&&r<d?t.errors.push(aX()):r==0&&(m=n/(d-1));let b=d-1,g=t.currentTime,w=t.currentAnimateTimings,x=w.duration;return u.forEach((S,T)=>{let A=m>0?T==b?1:m*T:i[T],O=A*x;t.currentTime=g+w.delay+O,w.duration=O,this._validateStyleAst(S,t),S.offset=A,a.styles.push(S)}),a}visitReference(e,t){return{type:Ce.Reference,animation:an(this,Ci(e.animation),t),options:Ja(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ce.AnimateChild,options:Ja(e.options)}}visitAnimateRef(e,t){return{type:Ce.AnimateRef,animation:this.visitReference(e.animation,t),options:Ja(e.options)}}visitQuery(e,t){let a=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,i]=BX(e.selector);t.currentQuerySelector=a.length?a+" "+r:r,on(t.collectedStyles,t.currentQuerySelector,new Map);let o=an(this,Ci(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=a,{type:Ce.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Ja(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(rX());let a=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pl(e.timings,t.errors,!0);return{type:Ce.Stagger,animation:an(this,Ci(e.animation),t),timings:a,options:null}}};function BX(e){let t=!!e.split(/\s*,\s*/).find(a=>a==c1);return t&&(e=e.replace(jX,"")),e=e.replace(/@\*/g,hl).replace(/@\w+/g,a=>hl+"-"+a.slice(1)).replace(/:animating/g,Xc),[e,t]}function zX(e){return e?se({},e):null}var HX=class{constructor(e){s(this,"errors");s(this,"queryCount",0);s(this,"depCount",0);s(this,"currentTransition",null);s(this,"currentQuery",null);s(this,"currentQuerySelector",null);s(this,"currentAnimateTimings",null);s(this,"currentTime",0);s(this,"collectedStyles",new Map);s(this,"options",null);s(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function qX(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(a=>{if(a instanceof Map&&a.has("offset")){let n=a;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let a=e;t=parseFloat(a.get("offset")),a.delete("offset")}return t}function $X(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=pl(e,t).duration;return ju(r,0,"")}let a=e;if(a.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ju(0,0,"");return r.dynamic=!0,r.strValue=a,r}let n=pl(a,t);return ju(n.duration,n.delay,n.easing)}function Ja(e){return e?(e=se({},e),e.params&&(e.params=zX(e.params))):e={},e}function ju(e,t,a){return{duration:e,delay:t,easing:a}}function Zh(e,t,a,n,r,i,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:a,postStyleProps:n,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:l}}var Yh=class{constructor(){s(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let a=this._map.get(e);a||this._map.set(e,a=[]),a.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},GX=1,UX=":enter",WX=new RegExp(UX,"g"),ZX=":leave",YX=new RegExp(ZX,"g");function h1(e,t,a,n,r,i=new Map,o=new Map,l,c,u=[]){return new KX().buildKeyframes(e,t,a,n,r,i,o,l,c,u)}var KX=class{buildKeyframes(e,t,a,n,r,i,o,l,c,u=[]){c=c||new Yh;let d=new QX(e,t,c,n,r,u,[]);d.options=l;let m=l.delay?pa(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([i],null,d.errors,l),an(this,a,d);let b=d.timelines.filter(g=>g.containsAnimation());if(b.length&&o.size){let g;for(let w=b.length-1;w>=0;w--){let x=b[w];if(x.element===t){g=x;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([o],null,d.errors,l)}return b.length?b.map(g=>g.buildKeyframes()):[Zh(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let a=t.subInstructions.get(t.element);if(a){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(a,n,n.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){let a=t.createSubContext(e.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,a),this.visitReference(e.animation,a),t.transformIntoNewTimeline(a.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,a){for(let n of e){let r=n==null?void 0:n.delay;if(r){let i=typeof r=="number"?r:pa(io(r,(n==null?void 0:n.params)??{},t.errors));a.delayNextStep(i)}}}_visitSubInstructions(e,t,a){let n=t.currentTimeline.currentTime,r=a.duration!=null?pa(a.duration):null,i=a.delay!=null?pa(a.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,i);n=Math.max(n,l.duration+l.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),an(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let a=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==Ce.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=fl);let i=pa(r.delay);n.delayNextStep(i)}e.steps.length&&(e.steps.forEach(i=>an(this,i,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>a&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let a=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?pa(e.options.delay):0;e.steps.forEach(i=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),an(this,i,o),n=Math.max(n,o.currentTimeline.currentTime),a.push(o.currentTimeline)}),a.forEach(i=>t.currentTimeline.mergeTimelineCollectedStyles(i)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let a=e.strValue,n=t.params?io(a,t.params,t.errors):a;return pl(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let a=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;a.delay&&(t.incrementTime(a.delay),n.snapshotCurrentStyles());let r=e.style;r.type==Ce.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(a.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let a=t.currentTimeline,n=t.currentAnimateTimings;!n&&a.hasCurrentStyleProperties()&&a.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?a.applyEmptyStep(r):a.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let a=t.currentAnimateTimings,n=t.currentTimeline.duration,r=a.duration,i=t.createSubContext().currentTimeline;i.easing=a.easing,e.styles.forEach(o=>{let l=o.offset||0;i.forwardTime(l*r),i.setStyles(o.styles,o.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let a=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?pa(n.delay):0;r&&(t.previousNode.type===Ce.Style||a==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fl);let i=a,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(l=d.currentTimeline),an(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;i=Math.max(i,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let a=t.parentContext,n=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1),l=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=a.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;an(this,e.animation,t),t.previousNode=e,a.currentStaggerTime=n.currentTime-u+(n.startTime-a.currentTimeline.startTime)}},fl={},QX=class p1{constructor(t,a,n,r,i,o,l,c){s(this,"_driver");s(this,"element");s(this,"subInstructions");s(this,"_enterClassName");s(this,"_leaveClassName");s(this,"errors");s(this,"timelines");s(this,"parentContext",null);s(this,"currentTimeline");s(this,"currentAnimateTimings",null);s(this,"previousNode",fl);s(this,"subContextCount",0);s(this,"options",{});s(this,"currentQueryIndex",0);s(this,"currentQueryTotal",0);s(this,"currentStaggerTime",0);this._driver=t,this.element=a,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.currentTimeline=c||new m1(this._driver,a,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,a){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=pa(n.duration)),n.delay!=null&&(r.delay=pa(n.delay));let i=n.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(l=>{(!a||!o.hasOwnProperty(l))&&(o[l]=io(i[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let a=this.options.params;if(a){let n=t.params={};Object.keys(a).forEach(r=>{n[r]=a[r]})}}return t}createSubContext(t=null,a,n){let r=a||this.element,i=new p1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=fl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,a,n){let r={duration:a??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},i=new XX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,a,n,r,i,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(WX,"."+this._enterClassName),t=t.replace(YX,"."+this._leaveClassName);let c=n!=1,u=this._driver.query(this.element,t,c);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push(...u)}return!i&&l.length==0&&o.push(iX()),l}},m1=class f1{constructor(t,a,n,r){s(this,"_driver");s(this,"element");s(this,"startTime");s(this,"_elementTimelineStylesLookup");s(this,"duration",0);s(this,"easing",null);s(this,"_previousKeyframe",new Map);s(this,"_currentKeyframe",new Map);s(this,"_keyframes",new Map);s(this,"_styleSummary",new Map);s(this,"_localTimelineStyles",new Map);s(this,"_globalTimelineStyles");s(this,"_pendingStyles",new Map);s(this,"_backFill",new Map);s(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=a,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+t),a&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,a){return this.applyStylesToKeyframe(),new f1(this._driver,t,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=GX,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,a){this._localTimelineStyles.set(t,a),this._globalTimelineStyles.set(t,a),this._styleSummary.set(t,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[a,n]of this._globalTimelineStyles)this._backFill.set(a,n||ga),this._currentKeyframe.set(a,ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,a,n,r){a&&this._previousKeyframe.set("easing",a);let i=r&&r.params||{},o=JX(t,this._globalTimelineStyles);for(let[l,c]of o){let u=io(c,i,n);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??ga),this._updateStyle(l,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,a)=>{this._currentKeyframe.set(a,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,t)}))}snapshotCurrentStyles(){for(let[t,a]of this._localTimelineStyles)this._pendingStyles.set(t,a),this._updateStyle(t,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let a in this._currentKeyframe)t.push(a);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((a,n)=>{let r=this._styleSummary.get(n);(!r||a.time>r.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,a=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,c)=>{let u=new Map([...this._backFill,...l]);u.forEach((d,m)=>{d===zh?t.add(m):d===ga&&a.add(m)}),n||u.set("offset",c/this.duration),r.push(u)});let i=[...t.values()],o=[...a.values()];if(n){let l=r[0],c=new Map(l);l.set("offset",0),c.set("offset",1),r=[l,c]}return Zh(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},XX=class extends m1{constructor(t,a,n,r,i,o,l=!1){super(t,a,o.delay);s(this,"keyframes");s(this,"preStyleProps");s(this,"postStyleProps");s(this,"_stretchStartingKeyframe");s(this,"timings");this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:a,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&a){let i=[],o=n+a,l=a/o,c=new Map(t[0]);c.set("offset",0),i.push(c);let u=new Map(t[0]);u.set("offset",gf(l)),i.push(u);let d=t.length-1;for(let m=1;m<=d;m++){let b=new Map(t[m]),g=b.get("offset"),w=a+g*n;b.set("offset",gf(w/o)),i.push(b)}n=o,a=0,r="",t=i}return Zh(this.element,t,this.preStyleProps,this.postStyleProps,n,a,r,!0)}};function gf(e,t=3){let a=Math.pow(10,t-1);return Math.round(e*a)/a}function JX(e,t){let a=new Map,n;return e.forEach(r=>{if(r==="*"){n??(n=t.keys());for(let i of n)a.set(i,ga)}else for(let[i,o]of r)a.set(i,o)}),a}function vf(e,t,a,n,r,i,o,l,c,u,d,m,b){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:a,fromStyles:i,toState:n,toStyles:o,timelines:l,queriedElements:c,preStyleProps:u,postStyleProps:d,totalTime:m,errors:b}}var Vu={},g1=class{constructor(e,t,a){s(this,"_triggerName");s(this,"ast");s(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=a}match(e,t,a,n){return eJ(this.ast.matchers,e,t,a,n)}buildStyles(e,t,a){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e==null?void 0:e.toString())||n),n?n.buildStyles(t,a):new Map}build(e,t,a,n,r,i,o,l,c,u){var _t;let d=[],m=this.ast.options&&this.ast.options.params||Vu,b=o&&o.params||Vu,g=this.buildStyles(a,b,d),w=l&&l.params||Vu,x=this.buildStyles(n,w,d),S=new Set,T=new Map,A=new Map,O=n==="void",Y={params:v1(w,m),delay:(_t=this.ast.options)==null?void 0:_t.delay},ie=u?[]:h1(e,t,this.ast.animation,r,i,g,x,Y,c,d),me=0;return ie.forEach(ot=>{me=Math.max(ot.duration+ot.delay,me)}),d.length?vf(t,this._triggerName,a,n,O,g,x,[],[],T,A,me,d):(ie.forEach(ot=>{let $e=ot.element,ht=on(T,$e,new Set);ot.preStyleProps.forEach(H=>ht.add(H));let Z=on(A,$e,new Set);ot.postStyleProps.forEach(H=>Z.add(H)),$e!==t&&S.add($e)}),vf(t,this._triggerName,a,n,O,g,x,ie,[...S.values()],T,A,me))}};function eJ(e,t,a,n,r){return e.some(i=>i(t,a,n,r))}function v1(e,t){let a=se({},t);return Object.entries(e).forEach(([n,r])=>{r!=null&&(a[n]=r)}),a}var tJ=class{constructor(e,t,a){s(this,"styles");s(this,"defaultParams");s(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=a}buildStyles(e,t){let a=new Map,n=v1(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((i,o)=>{i&&(i=io(i,n,t));let l=this.normalizer.normalizePropertyName(o,t);i=this.normalizer.normalizeStyleValue(o,l,i,t),a.set(o,i)})}),a}};function nJ(e,t,a){return new aJ(e,t,a)}var aJ=class{constructor(e,t,a){s(this,"name");s(this,"ast");s(this,"_normalizer");s(this,"transitionFactories",[]);s(this,"fallbackTransition");s(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=a,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new tJ(n.style,r,a))}),bf(this.states,"true","1"),bf(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new g1(e,n,this.states))}),this.fallbackTransition=rJ(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,a,n){return this.transitionFactories.find(r=>r.match(e,t,a,n))||null}matchStyles(e,t,a){return this.fallbackTransition.buildStyles(e,t,a)}};function rJ(e,t,a){let n=[(o,l)=>!0],r={type:Ce.Sequence,steps:[],options:null},i={type:Ce.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new g1(e,i,t)}function bf(e,t,a){e.has(t)?e.has(a)||e.set(a,e.get(t)):e.has(a)&&e.set(t,e.get(a))}var iJ=new Yh,oJ=class{constructor(e,t,a){s(this,"bodyNode");s(this,"_driver");s(this,"_normalizer");s(this,"_animations",new Map);s(this,"_playersById",new Map);s(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=a}register(e,t){let a=[],n=[],r=d1(this._driver,t,a,n);if(a.length)throw cX();this._animations.set(e,r)}_buildPlayer(e,t,a){let n=e.element,r=a1(this._normalizer,e.keyframes,t,a);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,a={}){let n=[],r=this._animations.get(e),i,o=new Map;if(r?(i=h1(this._driver,t,r,s1,Qc,new Map,new Map,a,iJ,n),i.forEach(u=>{let d=on(o,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(n.push(dX()),i=[]),n.length)throw hX();o.forEach((u,d)=>{u.forEach((m,b)=>{u.set(b,this._driver.computeStyle(d,b,ga))})});let l=i.map(u=>{let d=o.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Ra(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let a=this.players.indexOf(t);a>=0&&this.players.splice(a,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw pX();return t}listen(e,t,a,n){let r=qh(t,"","","");return Hh(this._getPlayer(e),a,r,n),()=>{}}command(e,t,a,n){if(a=="register"){this.register(e,n[0]);return}if(a=="create"){let i=n[0]||{};this.create(e,t,i);return}let r=this._getPlayer(e);switch(a){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},yf="ng-animate-queued",sJ=".ng-animate-queued",Bu="ng-animate-disabled",lJ=".ng-animate-disabled",uJ="ng-star-inserted",cJ=".ng-star-inserted",dJ=[],b1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dn="__ng_removed",td=class{constructor(e,t=""){s(this,"namespaceId");s(this,"value");s(this,"options");this.namespaceId=t;let a=e&&e.hasOwnProperty("value"),n=a?e.value:e;if(this.value=gJ(n),a){let r=e,{value:i}=r,o=f7(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let a=this.options.params;Object.keys(t).forEach(n=>{a[n]==null&&(a[n]=t[n])})}}},zi="void",zu=new td(zi),pJ=class{constructor(e,t,a){s(this,"id");s(this,"hostElement");s(this,"_engine");s(this,"players",[]);s(this,"_triggers",new Map);s(this,"_queue",[]);s(this,"_elementListeners",new Map);s(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=a,this._hostClassName="ng-tns-"+e,vn(t,this._hostClassName)}listen(e,t,a,n){if(!this._triggers.has(t))throw mX();if(a==null||a.length==0)throw fX();if(!vJ(a))throw gX();let r=on(this._elementListeners,e,[]),i={name:t,phase:a,callback:n};r.push(i);let o=on(this._engine.statesByElement,e,new Map);return o.has(t)||(vn(e,ds),vn(e,ds+"-"+t),o.set(t,zu)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(i);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vX();return t}trigger(e,t,a,n=!0){let r=this._getTrigger(t),i=new nd(this.id,t,e),o=this._engine.statesByElement.get(e);o||(vn(e,ds),vn(e,ds+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new td(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=zu),c.value!==zi&&l.value===c.value){if(!_J(l.params,c.params)){let b=[],g=r.matchStyles(l.value,l.params,b),w=r.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{sr(e,g),$n(e,w)})}return}let u=on(this._engine.playersByElement,e,[]);u.forEach(b=>{b.namespaceId==this.id&&b.triggerName==t&&b.queued&&b.destroy()});let d=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!d){if(!n)return;d=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:c,player:i,isFallbackTransition:m}),m||(vn(e,yf),i.onStart(()=>{Nr(e,yf)})),i.onDone(()=>{let b=this.players.indexOf(i);b>=0&&this.players.splice(b,1);let g=this._engine.playersByElement.get(e);if(g){let w=g.indexOf(i);w>=0&&g.splice(w,1)}}),this.players.push(i),u.push(i),i}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,a)=>{this._elementListeners.set(a,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(a=>a.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let a=this._engine.driver.query(e,hl,!0);a.forEach(n=>{if(n[Dn])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(i=>i.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>a.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,a,n){let r=this._engine.statesByElement.get(e),i=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(i.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,zi,n);u&&o.push(u)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,i),a&&Ra(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(t&&a){let n=new Set;t.forEach(r=>{let i=r.name;if(n.has(i))return;n.add(i);let o=this._triggers.get(i).fallbackTransition,l=a.get(i)||zu,c=new td(zi),u=new nd(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:o,fromState:l,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(a.totalAnimations){let r=a.players.length?a.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let i=e;for(;i=i.parentNode;)if(a.statesByElement.get(i)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)a.markElementAsRemoved(this.id,e,!1,t);else{let r=e[Dn];(!r||r===b1)&&(a.afterFlush(()=>this.clearElementCache(e)),a.destroyInnerAnimations(e),a._onRemovalComplete(e,t))}}insertNode(e,t){vn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(a=>{let n=a.player;if(n.destroyed)return;let r=a.element,i=this._elementListeners.get(r);i&&i.forEach(o=>{if(o.name==a.triggerName){let l=qh(r,a.triggerName,a.fromState.value,a.toState.value);l._data=e,Hh(a.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(a)}),this._queue=[],t.sort((a,n)=>{let r=a.transition.ast.depCount,i=n.transition.ast.depCount;return r==0||i==0?r-i:this._engine.driver.containsElement(a.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mJ=class{constructor(e,t,a){s(this,"bodyNode");s(this,"driver");s(this,"_normalizer");s(this,"players",[]);s(this,"newHostElements",new Map);s(this,"playersByElement",new Map);s(this,"playersByQueriedElement",new Map);s(this,"statesByElement",new Map);s(this,"disabledNodes",new Set);s(this,"totalAnimations",0);s(this,"totalQueuedPlayers",0);s(this,"_namespaceLookup",{});s(this,"_namespaceList",[]);s(this,"_flushFns",[]);s(this,"_whenQuietFns",[]);s(this,"namespacesByHostElement",new Map);s(this,"collectedEnterElements",[]);s(this,"collectedLeaveElements",[]);s(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=a}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(a=>{a.queued&&e.push(a)})}),e}createNamespace(e,t){let a=new pJ(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(a,t):(this.newHostElements.set(t,a),this.collectEnterElement(t)),this._namespaceLookup[e]=a}_balanceNamespaceList(e,t){let a=this._namespaceList,n=this.namespacesByHostElement;if(a.length-1>=0){let r=!1,i=this.driver.getParentElement(t);for(;i;){let o=n.get(i);if(o){let l=a.indexOf(o);a.splice(l+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}r||a.unshift(e)}else a.push(e);return n.set(t,e),e}register(e,t){let a=this._namespaceLookup[e];return a||(a=this.createNamespace(e,t)),a}registerTrigger(e,t,a){let n=this._namespaceLookup[e];n&&n.register(t,a)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let a=this._fetchNamespace(e);this.namespacesByHostElement.delete(a.hostElement);let n=this._namespaceList.indexOf(a);n>=0&&this._namespaceList.splice(n,1),a.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,a=this.statesByElement.get(e);if(a){for(let n of a.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,a,n){if(ms(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,a,n),!0}return!1}insertNode(e,t,a,n){if(!ms(t))return;let r=t[Dn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let i=this.collectedLeaveElements.indexOf(t);i>=0&&this.collectedLeaveElements.splice(i,1)}if(e){let i=this._fetchNamespace(e);i&&i.insertNode(t,a)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),vn(e,Bu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Nr(e,Bu))}removeNode(e,t,a){if(ms(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,a):this.markElementAsRemoved(e,t,!1,a);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,a)}else this._onRemovalComplete(t,a)}markElementAsRemoved(e,t,a,n,r){this.collectedLeaveElements.push(t),t[Dn]={namespaceId:e,setForRemoval:n,hasAnimation:a,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,a,n,r){return ms(t)?this._fetchNamespace(e).listen(t,a,n,r):()=>{}}_buildInstruction(e,t,a,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,a,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,hl,!0);t.forEach(a=>this.destroyActiveAnimationsForElement(a)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Xc,!0),t.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(a=>{a.queued?a.markedForDestroy=!0:a.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(a=>a.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ra(this.players).onDone(()=>e());e()})}processLeaveNode(e){var a;let t=e[Dn];if(t&&t.setForRemoval){if(e[Dn]=b1,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(a=e.classList)!=null&&a.contains(Bu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lJ,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((a,n)=>this._balanceNamespaceList(a,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++){let n=this.collectedEnterElements[a];vn(n,uJ)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let a=[];try{t=this._flushAnimations(a,e)}finally{for(let n=0;n<a.length;n++)a[n]()}}else for(let a=0;a<this.collectedLeaveElements.length;a++){let n=this.collectedLeaveElements[a];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){let a=this._whenQuietFns;this._whenQuietFns=[],t.length?Ra(t).onDone(()=>{a.forEach(n=>n())}):a.forEach(n=>n())}}reportError(e){throw bX()}_flushAnimations(e,t){let a=new Yh,n=[],r=new Map,i=[],o=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(L=>{u.add(L);let j=this.driver.query(L,sJ,!0);for(let U=0;U<j.length;U++)u.add(j[U])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),b=xf(m,this.collectedEnterElements),g=new Map,w=0;b.forEach((L,j)=>{let U=s1+w++;g.set(j,U),L.forEach(Ee=>vn(Ee,U))});let x=[],S=new Set,T=new Set;for(let L=0;L<this.collectedLeaveElements.length;L++){let j=this.collectedLeaveElements[L],U=j[Dn];U&&U.setForRemoval&&(x.push(j),S.add(j),U.hasAnimation?this.driver.query(j,cJ,!0).forEach(Ee=>S.add(Ee)):T.add(j))}let A=new Map,O=xf(m,Array.from(S));O.forEach((L,j)=>{let U=Qc+w++;A.set(j,U),L.forEach(Ee=>vn(Ee,U))}),e.push(()=>{b.forEach((L,j)=>{let U=g.get(j);L.forEach(Ee=>Nr(Ee,U))}),O.forEach((L,j)=>{let U=A.get(j);L.forEach(Ee=>Nr(Ee,U))}),x.forEach(L=>{this.processLeaveNode(L)})});let Y=[],ie=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(t).forEach(j=>{let U=j.player,Ee=j.element;if(Y.push(U),this.collectedEnterElements.length){let Ge=Ee[Dn];if(Ge&&Ge.setForMove){if(Ge.previousTriggersValues&&Ge.previousTriggersValues.has(j.triggerName)){let Lt=Ge.previousTriggersValues.get(j.triggerName),wt=this.statesByElement.get(j.element);if(wt&&wt.has(j.triggerName)){let jn=wt.get(j.triggerName);jn.value=Lt,wt.set(j.triggerName,jn)}}U.destroy();return}}let He=!d||!this.driver.containsElement(d,Ee),Pt=A.get(Ee),De=g.get(Ee),Me=this._buildInstruction(j,a,De,Pt,He);if(Me.errors&&Me.errors.length){ie.push(Me);return}if(He){U.onStart(()=>sr(Ee,Me.fromStyles)),U.onDestroy(()=>$n(Ee,Me.toStyles)),n.push(U);return}if(j.isFallbackTransition){U.onStart(()=>sr(Ee,Me.fromStyles)),U.onDestroy(()=>$n(Ee,Me.toStyles)),n.push(U);return}let Je=[];Me.timelines.forEach(Ge=>{Ge.stretchStartingKeyframe=!0,this.disabledNodes.has(Ge.element)||Je.push(Ge)}),Me.timelines=Je,a.append(Ee,Me.timelines);let Sn={instruction:Me,player:U,element:Ee};i.push(Sn),Me.queriedElements.forEach(Ge=>on(o,Ge,[]).push(U)),Me.preStyleProps.forEach((Ge,Lt)=>{if(Ge.size){let wt=l.get(Lt);wt||l.set(Lt,wt=new Set),Ge.forEach((jn,Ia)=>wt.add(Ia))}}),Me.postStyleProps.forEach((Ge,Lt)=>{let wt=c.get(Lt);wt||c.set(Lt,wt=new Set),Ge.forEach((jn,Ia)=>wt.add(Ia))})});if(ie.length){let L=[];ie.forEach(j=>{L.push(yX(j.triggerName,j.errors))}),Y.forEach(j=>j.destroy()),this.reportError(L)}let me=new Map,_t=new Map;i.forEach(L=>{let j=L.element;a.has(j)&&(_t.set(j,j),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,me))}),n.forEach(L=>{let j=L.element;this._getPreviousPlayers(j,!1,L.namespaceId,L.triggerName,null).forEach(U=>{on(me,j,[]).push(U),U.destroy()})});let ot=x.filter(L=>Ef(L,l,c)),$e=new Map;wf($e,this.driver,T,c,ga).forEach(L=>{Ef(L,l,c)&&ot.push(L)});let ht=new Map;b.forEach((L,j)=>{wf(ht,this.driver,new Set(L),l,zh)}),ot.forEach(L=>{let j=$e.get(L),U=ht.get(L);$e.set(L,new Map([...(j==null?void 0:j.entries())??[],...(U==null?void 0:U.entries())??[]]))});let Z=[],H=[],ge={};i.forEach(L=>{let{element:j,player:U,instruction:Ee}=L;if(a.has(j)){if(u.has(j)){U.onDestroy(()=>$n(j,Ee.toStyles)),U.disabled=!0,U.overrideTotalTime(Ee.totalTime),n.push(U);return}let He=ge;if(_t.size>1){let De=j,Me=[];for(;De=De.parentNode;){let Je=_t.get(De);if(Je){He=Je;break}Me.push(De)}Me.forEach(Je=>_t.set(Je,He))}let Pt=this._buildAnimation(U.namespaceId,Ee,me,r,ht,$e);if(U.setRealPlayer(Pt),He===ge)Z.push(U);else{let De=this.playersByElement.get(He);De&&De.length&&(U.parentPlayer=Ra(De)),n.push(U)}}else sr(j,Ee.fromStyles),U.onDestroy(()=>$n(j,Ee.toStyles)),H.push(U),u.has(j)&&n.push(U)}),H.forEach(L=>{let j=r.get(L.element);if(j&&j.length){let U=Ra(j);L.setRealPlayer(U)}}),n.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L<x.length;L++){let j=x[L],U=j[Dn];if(Nr(j,Qc),U&&U.hasAnimation)continue;let Ee=[];if(o.size){let Pt=o.get(j);Pt&&Pt.length&&Ee.push(...Pt);let De=this.driver.query(j,Xc,!0);for(let Me=0;Me<De.length;Me++){let Je=o.get(De[Me]);Je&&Je.length&&Ee.push(...Je)}}let He=Ee.filter(Pt=>!Pt.destroyed);He.length?bJ(this,j,He):this.processLeaveNode(j)}return x.length=0,Z.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();let j=this.players.indexOf(L);this.players.splice(j,1)}),L.play()}),Z}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,a,n,r){let i=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(i=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==zi;o.forEach(c=>{c.queued||!l&&c.triggerName!=n||i.push(c)})}}return(a||n)&&(i=i.filter(o=>!(a&&a!=o.namespaceId||n&&n!=o.triggerName))),i}_beforeAnimationBuild(e,t,a){let n=t.triggerName,r=t.element,i=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,u=c!==r,d=on(a,c,[]);this._getPreviousPlayers(c,u,i,o,t.toState).forEach(m=>{let b=m.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),m.destroy(),d.push(m)})}sr(r,t.fromStyles)}_buildAnimation(e,t,a,n,r,i){let o=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,m=t.timelines.map(g=>{let w=g.element;u.add(w);let x=w[Dn];if(x&&x.removedBeforeQueried)return new ro(g.duration,g.delay);let S=w!==l,T=yJ((a.get(w)||dJ).map(me=>me.getRealPlayer())).filter(me=>{let _t=me;return _t.element?_t.element===w:!1}),A=r.get(w),O=i.get(w),Y=a1(this._normalizer,g.keyframes,A,O),ie=this._buildPlayer(g,Y,T);if(g.subTimeline&&n&&d.add(w),S){let me=new nd(e,o,w);me.setRealPlayer(ie),c.push(me)}return ie});c.forEach(g=>{on(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>fJ(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>vn(g,pf));let b=Ra(m);return b.onDestroy(()=>{u.forEach(g=>Nr(g,pf)),$n(l,t.toStyles)}),d.forEach(g=>{on(n,g,[]).push(b)}),b}_buildPlayer(e,t,a){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,a):new ro(e.duration,e.delay)}},nd=class{constructor(e,t,a){s(this,"namespaceId");s(this,"triggerName");s(this,"element");s(this,"_player",new ro);s(this,"_containsRealPlayer",!1);s(this,"_queuedCallbacks",new Map);s(this,"destroyed",!1);s(this,"parentPlayer",null);s(this,"markedForDestroy",!1);s(this,"disabled",!1);s(this,"queued",!0);s(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=a}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,a)=>{t.forEach(n=>Hh(e,a,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){on(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function fJ(e,t,a){let n=e.get(t);if(n){if(n.length){let r=n.indexOf(a);n.splice(r,1)}n.length==0&&e.delete(t)}return n}function gJ(e){return e??null}function ms(e){return e&&e.nodeType===1}function vJ(e){return e=="start"||e=="done"}function _f(e,t){let a=e.style.display;return e.style.display=t??"none",a}function wf(e,t,a,n,r){let i=[];a.forEach(c=>i.push(_f(c)));let o=[];n.forEach((c,u)=>{let d=new Map;c.forEach(m=>{let b=t.computeStyle(u,m,r);d.set(m,b),(!b||b.length==0)&&(u[Dn]=hJ,o.push(u))}),e.set(u,d)});let l=0;return a.forEach(c=>_f(c,i[l++])),o}function xf(e,t){let a=new Map;if(e.forEach(l=>a.set(l,[])),t.length==0)return a;let n=1,r=new Set(t),i=new Map;function o(l){if(!l)return n;let c=i.get(l);if(c)return c;let u=l.parentNode;return a.has(u)?c=u:r.has(u)?c=n:c=o(u),i.set(l,c),c}return t.forEach(l=>{let c=o(l);c!==n&&a.get(c).push(l)}),a}function vn(e,t){var a;(a=e.classList)==null||a.add(t)}function Nr(e,t){var a;(a=e.classList)==null||a.remove(t)}function bJ(e,t,a){Ra(a).onDone(()=>e.processLeaveNode(t))}function yJ(e){let t=[];return y1(e,t),t}function y1(e,t){for(let a=0;a<e.length;a++){let n=e[a];n instanceof n1?y1(n.players,t):t.push(n)}}function _J(e,t){let a=Object.keys(e),n=Object.keys(t);if(a.length!=n.length)return!1;for(let r=0;r<a.length;r++){let i=a[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}function Ef(e,t,a){let n=a.get(e);if(!n)return!1;let r=t.get(e);return r?n.forEach(i=>r.add(i)):t.set(e,n),a.delete(e),!0}var ad=class{constructor(e,t,a){s(this,"_driver");s(this,"_normalizer");s(this,"_transitionEngine");s(this,"_timelineEngine");s(this,"_triggerCache",{});s(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=a,this._transitionEngine=new mJ(e.body,t,a),this._timelineEngine=new oJ(e.body,t,a),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,a,n,r){let i=e+"-"+n,o=this._triggerCache[i];if(!o){let l=[],c=[],u=d1(this._driver,r,l,c);if(l.length)throw lX();o=nJ(n,u,this._normalizer),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,a,n){this._transitionEngine.insertNode(e,t,a,n)}onRemove(e,t,a){this._transitionEngine.removeNode(e,t,a)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,a,n){if(a.charAt(0)=="@"){let[r,i]=df(a),o=n;this._timelineEngine.command(r,t,i,o)}else this._transitionEngine.trigger(e,t,a,n)}listen(e,t,a,n,r){if(a.charAt(0)=="@"){let[i,o]=df(a);return this._timelineEngine.listen(i,t,o,r)}return this._transitionEngine.listen(e,t,a,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function wJ(e,t){let a=null,n=null;return Array.isArray(t)&&t.length?(a=Hu(t[0]),t.length>1&&(n=Hu(t[t.length-1]))):t instanceof Map&&(a=Hu(t)),a||n?new xJ(e,a,n):null}var xJ=(()=>{const t=class t{constructor(n,r,i){s(this,"_element");s(this,"_startStyles");s(this,"_endStyles");s(this,"_state",0);s(this,"_initialStyles");this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&$n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($n(this._element,this._initialStyles),this._endStyles&&($n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sr(this._element,this._endStyles),this._endStyles=null),$n(this._element,this._initialStyles),this._state=3)}};s(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function Hu(e){let t=null;return e.forEach((a,n)=>{EJ(n)&&(t=t||new Map,t.set(n,a))}),t}function EJ(e){return e==="display"||e==="position"}var Sf=class{constructor(e,t,a,n){s(this,"element");s(this,"keyframes");s(this,"options");s(this,"_specialStyles");s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_duration");s(this,"_delay");s(this,"_initialized",!1);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finalKeyframe");s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"domPlayer");s(this,"time",0);s(this,"parentPlayer",null);s(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=a,this._specialStyles=n,this._duration=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(a=>{t.push(Object.fromEntries(a))}),t}_triggerWebAnimation(e,t,a){return e.animate(this._convertKeyframesToObject(t),a)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{a!=="offset"&&e.set(a,this._finished?t:Uh(this.element,a))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},SJ=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return r1(e,t)}getParentElement(e){return $h(e)}query(e,t,a){return i1(e,t,a)}computeStyle(e,t,a){return Uh(e,t)}animate(e,t,a,n,r,i=[]){let o=n==0?"both":"forwards",l={duration:a,delay:n,fill:o};r&&(l.easing=r);let c=new Map,u=i.filter(b=>b instanceof Sf);NX(a,n)&&u.forEach(b=>{b.currentSnapshot.forEach((g,w)=>c.set(w,g))});let d=IX(t).map(b=>new Map(b));d=OX(e,d,c);let m=wJ(e,d);return new Sf(e,d,l,m)}},As="@",_1="@.disabled",w1=class{constructor(e,t,a,n){s(this,"namespaceId");s(this,"delegate");s(this,"engine");s(this,"_onDestroy");s(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=a,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){var t,a;(a=(t=this.delegate).destroyNode)==null||a.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,a,n=!0){this.delegate.insertBefore(e,t,a),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,a){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,a,n){this.delegate.setAttribute(e,t,a,n)}removeAttribute(e,t,a){this.delegate.removeAttribute(e,t,a)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,a,n){this.delegate.setStyle(e,t,a,n)}removeStyle(e,t,a){this.delegate.removeStyle(e,t,a)}setProperty(e,t,a){t.charAt(0)==As&&t==_1?this.disableAnimations(e,!!a):this.delegate.setProperty(e,t,a)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,a,n){return this.delegate.listen(e,t,a,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},kJ=class extends w1{constructor(t,a,n,r,i){super(a,n,r,i);s(this,"factory");this.factory=t,this.namespaceId=a}setProperty(t,a,n){a.charAt(0)==As?a.charAt(1)=="."&&a==_1?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,a.slice(1),n):this.delegate.setProperty(t,a,n)}listen(t,a,n,r){if(a.charAt(0)==As){let i=CJ(t),o=a.slice(1),l="";return o.charAt(0)!=As&&([o,l]=IJ(o)),this.engine.listen(this.namespaceId,i,o,l,c=>{let u=c._data||-1;this.factory.scheduleListenerCallback(u,n,c)})}return this.delegate.listen(t,a,n,r)}};function CJ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function IJ(e){let t=e.indexOf("."),a=e.substring(0,t),n=e.slice(t+1);return[a,n]}var DJ=class{constructor(e,t,a){s(this,"delegate");s(this,"engine");s(this,"_zone");s(this,"_currentId",0);s(this,"_microtaskId",1);s(this,"_animationCallbacksBuffer",[]);s(this,"_rendererCache",new Map);s(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=a,t.onRemovalComplete=(n,r)=>{r==null||r.removeChild(null,n)}}createRenderer(e,t){var l;let a="",n=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let c=this._rendererCache,u=c.get(n);if(!u){let d=()=>c.delete(n);u=new w1(a,n,this.engine,d),c.set(n,u)}return u}let r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,i,e,c.name,c)};return t.data.animation.forEach(o),new kJ(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(a));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[i,o]=r;i(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,a])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,a;this.engine.flush(),(a=(t=this.delegate).componentReplaced)==null||a.call(t,e)}},TJ=(()=>{const t=class t extends ad{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}};s(t,"ɵfac",function(n){return new(n||t)(te(Le),te(u1),te(Wh))}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function NJ(){return new AX}function OJ(e,t,a){return new DJ(e,t,a)}var MJ=[{provide:Wh,useFactory:NJ},{provide:ad,useClass:TJ},{provide:Pn,useFactory:OJ,deps:[qc,ad,je]}],RJ=[{provide:u1,useFactory:()=>new SJ},{provide:pi,useFactory:()=>"BrowserAnimations"},...MJ];function AJ(){return yr("NgEagerAnimations"),[...RJ]}var PJ=(()=>{const t=class t extends t1{constructor(n){super(),this.translate=n,this.getRangeLabel=(r,i,o)=>{if(o===0||i===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*i,c=l<o?Math.min(l+i,o):l+i;return`${l+1} - ${c} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(n){return new(n||t)(te(Ca))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})(),x1=6048e5,LJ=864e5,FJ=6e4,jJ=36e5,VJ=1e3,kf=Symbol.for("constructDateFrom");function Tt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kf in e?e[kf](t):e instanceof Date?new e.constructor(t):new Date(t)}function kt(e,t){return Tt(t||e,e)}function E1(e,t,a){let n=kt(e,a==null?void 0:a.in);return isNaN(t)?Tt((a==null?void 0:a.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var BJ={};function vi(){return BJ}function qa(e,t){var l,c,u,d;let a=vi(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??a.weekStartsOn??((d=(u=a.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,r=kt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?7:0)+i-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ii(e,t){return qa(e,Ut(se({},t),{weekStartsOn:1}))}function S1(e,t){let a=kt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Tt(a,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=ii(r),o=Tt(a,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let l=ii(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function gl(e){let t=kt(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function zJ(e,...t){let a=Tt.bind(null,t.find(n=>typeof n=="object"));return t.map(a)}function Cf(e,t){let a=kt(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function HJ(e,t,a){let[n,r]=zJ(a==null?void 0:a.in,e,t),i=Cf(n),o=Cf(r),l=+i-gl(i),c=+o-gl(o);return Math.round((l-c)/LJ)}function qJ(e,t){let a=S1(e,t),n=Tt(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),ii(n)}function $J(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function GJ(e){return!(!$J(e)&&typeof e!="number"||isNaN(+kt(e)))}function UJ(e,t){let a=kt(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var WJ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZJ=(e,t,a)=>{let n,r=WJ[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function qu(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var YJ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KJ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QJ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XJ={date:qu({formats:YJ,defaultWidth:"full"}),time:qu({formats:KJ,defaultWidth:"full"}),dateTime:qu({formats:QJ,defaultWidth:"full"})},JJ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eee=(e,t,a,n)=>JJ[e];function Ii(e){return(t,a)=>{let n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=a!=null&&a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}let i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}var tee={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nee={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aee={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ree={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iee={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oee={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},see=(e,t)=>{let a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},lee={ordinalNumber:see,era:Ii({values:tee,defaultWidth:"wide"}),quarter:Ii({values:nee,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ii({values:aee,defaultWidth:"wide"}),day:Ii({values:ree,defaultWidth:"wide"}),dayPeriod:Ii({values:iee,defaultWidth:"wide",formattingValues:oee,defaultFormattingWidth:"wide"})};function Di(e){return(t,a={})=>{let n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;let o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?cee(l,m=>m.test(o)):uee(l,m=>m.test(o)),u;u=e.valueCallback?e.valueCallback(c):c,u=a.valueCallback?a.valueCallback(u):u;let d=t.slice(o.length);return{value:u,rest:d}}}function uee(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function cee(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function dee(e){return(t,a={})=>{let n=t.match(e.matchPattern);if(!n)return null;let r=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=a.valueCallback?a.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var hee=/^(\d+)(th|st|nd|rd)?/i,pee=/\d+/i,mee={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fee={any:[/^b/i,/^(a|c)/i]},gee={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vee={any:[/1/i,/2/i,/3/i,/4/i]},bee={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yee={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_ee={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wee={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xee={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Eee={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},See={ordinalNumber:dee({matchPattern:hee,parsePattern:pee,valueCallback:e=>parseInt(e,10)}),era:Di({matchPatterns:mee,defaultMatchWidth:"wide",parsePatterns:fee,defaultParseWidth:"any"}),quarter:Di({matchPatterns:gee,defaultMatchWidth:"wide",parsePatterns:vee,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Di({matchPatterns:bee,defaultMatchWidth:"wide",parsePatterns:yee,defaultParseWidth:"any"}),day:Di({matchPatterns:_ee,defaultMatchWidth:"wide",parsePatterns:wee,defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:xee,defaultMatchWidth:"any",parsePatterns:Eee,defaultParseWidth:"any"})},k1={code:"en-US",formatDistance:ZJ,formatLong:XJ,formatRelative:eee,localize:lee,match:See,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kee(e,t){let a=kt(e,t==null?void 0:t.in);return HJ(a,UJ(a))+1}function C1(e,t){let a=kt(e,t==null?void 0:t.in),n=+ii(a)-+qJ(a);return Math.round(n/x1)+1}function Kh(e,t){var d,m,b,g;let a=kt(e,t==null?void 0:t.in),n=a.getFullYear(),r=vi(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(b=r.locale)==null?void 0:b.options)==null?void 0:g.firstWeekContainsDate)??1,o=Tt((t==null?void 0:t.in)||e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);let l=qa(o,t),c=Tt((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);let u=qa(c,t);return+a>=+l?n+1:+a>=+u?n:n-1}function Cee(e,t){var o,l,c,u;let a=vi(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(c=a.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,r=Kh(e,t),i=Tt((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),qa(i,t)}function I1(e,t){let a=kt(e,t==null?void 0:t.in),n=+qa(a,t)-+Cee(a,t);return Math.round(n/x1)+1}function Be(e,t){let a=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return a+n}var Na={y(e,t){let a=e.getFullYear(),n=a>0?a:1-a;return Be(t==="yy"?n%100:n,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):Be(a+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){let a=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,a-3));return Be(r,t.length)}},Dr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},If={G:function(e,t,a){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let n=e.getFullYear(),r=n>0?n:1-n;return a.ordinalNumber(r,{unit:"year"})}return Na.y(e,t)},Y:function(e,t,a,n){let r=Kh(e,n),i=r>0?r:1-r;if(t==="YY"){let o=i%100;return Be(o,2)}return t==="Yo"?a.ordinalNumber(i,{unit:"year"}):Be(i,t.length)},R:function(e,t){let a=S1(e);return Be(a,t.length)},u:function(e,t){let a=e.getFullYear();return Be(a,t.length)},Q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Be(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Be(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){let n=e.getMonth();switch(t){case"M":case"MM":return Na.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Be(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){let r=I1(e,n);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},I:function(e,t,a){let n=C1(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):Be(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):Na.d(e,t)},D:function(e,t,a){let n=kee(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Be(n,t.length)},E:function(e,t,a){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Be(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Be(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){let n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Be(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){let n=e.getHours(),r;switch(n===12?r=Dr.noon:n===0?r=Dr.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){let n=e.getHours(),r;switch(n>=17?r=Dr.evening:n>=12?r=Dr.afternoon:n>=4?r=Dr.morning:r=Dr.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return Na.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):Na.H(e,t)},K:function(e,t,a){let n=e.getHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Be(n,t.length)},k:function(e,t,a){let n=e.getHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):Be(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):Na.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):Na.s(e,t)},S:function(e,t){return Na.S(e,t)},X:function(e,t,a){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Tf(n);case"XXXX":case"XX":return nr(n);case"XXXXX":case"XXX":default:return nr(n,":")}},x:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"x":return Tf(n);case"xxxx":case"xx":return nr(n);case"xxxxx":case"xxx":default:return nr(n,":")}},O:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Df(n,":");case"OOOO":default:return"GMT"+nr(n,":")}},z:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Df(n,":");case"zzzz":default:return"GMT"+nr(n,":")}},t:function(e,t,a){let n=Math.trunc(+e/1e3);return Be(n,t.length)},T:function(e,t,a){return Be(+e,t.length)}};function Df(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),i=n%60;return i===0?a+String(r):a+String(r)+t+Be(i,2)}function Tf(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):nr(e,t)}function nr(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Be(Math.trunc(n/60),2),i=Be(n%60,2);return a+r+t+i}var Nf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Iee=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],n=a[1],r=a[2];if(!r)return Nf(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Nf(n,t)).replace("{{time}}",D1(r,t))},rd={p:D1,P:Iee},Dee=/^D+$/,Tee=/^Y+$/,Nee=["D","DD","YY","YYYY"];function T1(e){return Dee.test(e)}function N1(e){return Tee.test(e)}function id(e,t,a){let n=Oee(e,t,a);if(console.warn(n),Nee.includes(e))throw new RangeError(n)}function Oee(e,t,a){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Mee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ree=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Aee=/^'([^]*?)'?$/,Pee=/''/g,Lee=/[a-zA-Z]/;function O1(e,t,a){var d,m,b,g,w,x,S,T;let n=vi(),r=(a==null?void 0:a.locale)??n.locale??k1,i=(a==null?void 0:a.firstWeekContainsDate)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(b=n.locale)==null?void 0:b.options)==null?void 0:g.firstWeekContainsDate)??1,o=(a==null?void 0:a.weekStartsOn)??((x=(w=a==null?void 0:a.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((T=(S=n.locale)==null?void 0:S.options)==null?void 0:T.weekStartsOn)??0,l=kt(e,a==null?void 0:a.in);if(!GJ(l))throw new RangeError("Invalid time value");let c=t.match(Ree).map(A=>{let O=A[0];if(O==="p"||O==="P"){let Y=rd[O];return Y(A,r.formatLong)}return A}).join("").match(Mee).map(A=>{if(A==="''")return{isToken:!1,value:"'"};let O=A[0];if(O==="'")return{isToken:!1,value:Fee(A)};if(If[O])return{isToken:!0,value:A};if(O.match(Lee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:A}});r.localize.preprocessor&&(c=r.localize.preprocessor(l,c));let u={firstWeekContainsDate:i,weekStartsOn:o,locale:r};return c.map(A=>{if(!A.isToken)return A.value;let O=A.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&N1(O)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&T1(O))&&id(O,t,String(e));let Y=If[O[0]];return Y(l,O,r.localize,u)}).join("")}function Fee(e){let t=e.match(Aee);return t?t[1].replace(Pee,"'"):e}function M1(){return Object.assign({},vi())}function jee(e,t){let a=kt(e,t==null?void 0:t.in).getDay();return a===0?7:a}function Vee(e,t){let a=Bee(t)?new t(0):Tt(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}function Bee(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var zee=10,R1=class{constructor(){s(this,"subPriority",0)}validate(e,t){return!0}},Hee=class extends R1{constructor(e,t,a,n,r){super(),this.value=e,this.validateValue=t,this.setValue=a,this.priority=n,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,a){return this.setValue(e,t,this.value,a)}},qee=class extends R1{constructor(t,a){super();s(this,"priority",zee);s(this,"subPriority",-1);this.context=t||(n=>Tt(a,n))}set(t,a){return a.timestampIsSet?t:Tt(t,Vee(t,this.context))}},Fe=class{run(e,t,a,n){let r=this.parse(e,t,a,n);return r?{setter:new Hee(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,a){return!0}},$ee=class extends Fe{constructor(){super(...arguments);s(this,"priority",140);s(this,"incompatibleTokens",["R","u","t","T"])}parse(t,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,a,n){return a.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Gn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dt(e,t){return e&&{value:t(e.value),rest:e.rest}}function et(e,t){let a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function Un(e,t){let a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};let n=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0;return{value:n*(r*jJ+i*FJ+o*VJ),rest:t.slice(a[0].length)}}function A1(e){return et(ct.anyDigitsSigned,e)}function rt(e,t){switch(e){case 1:return et(ct.singleDigit,t);case 2:return et(ct.twoDigits,t);case 3:return et(ct.threeDigits,t);case 4:return et(ct.fourDigits,t);default:return et(new RegExp("^\\d{1,"+e+"}"),t)}}function vl(e,t){switch(e){case 1:return et(ct.singleDigitSigned,t);case 2:return et(ct.twoDigitsSigned,t);case 3:return et(ct.threeDigitsSigned,t);case 4:return et(ct.fourDigitsSigned,t);default:return et(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function P1(e,t){let a=t>0,n=a?t:1-t,r;if(n<=50)r=e||100;else{let i=n+50,o=Math.trunc(i/100)*100,l=e>=i%100;r=e+o-(l?100:0)}return a?r:1-r}function L1(e){return e%400===0||e%4===0&&e%100!==0}var Gee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="yy"});switch(a){case"y":return dt(rt(4,t),r);case"yo":return dt(n.ordinalNumber(t,{unit:"year"}),r);default:return dt(rt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n){let r=t.getFullYear();if(n.isTwoDigitYear){let o=P1(n.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let i=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Uee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="YY"});switch(a){case"Y":return dt(rt(4,t),r);case"Yo":return dt(n.ordinalNumber(t,{unit:"year"}),r);default:return dt(rt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n,r){let i=Kh(t,r);if(n.isTwoDigitYear){let l=P1(n.year,i);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),qa(t,r)}let o=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),qa(t,r)}},Wee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,a){return vl(a==="R"?4:a.length,t)}set(t,a,n){let r=Tt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ii(r)}},Zee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,a){return vl(a==="u"?4:a.length,t)}set(t,a,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Yee=class extends Fe{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"Q":case"QQ":return rt(a.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Kee=class extends Fe{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"q":case"qq":return rt(a.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Qee=class extends Fe{constructor(){super(...arguments);s(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);s(this,"priority",110)}parse(t,a,n){let r=i=>i-1;switch(a){case"M":return dt(et(ct.month,t),r);case"MM":return dt(rt(2,t),r);case"Mo":return dt(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},Xee=class extends Fe{constructor(){super(...arguments);s(this,"priority",110);s(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,a,n){let r=i=>i-1;switch(a){case"L":return dt(et(ct.month,t),r);case"LL":return dt(rt(2,t),r);case"Lo":return dt(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};function Jee(e,t,a){let n=kt(e,a==null?void 0:a.in),r=I1(n,a)-t;return n.setDate(n.getDate()-r*7),kt(n,a==null?void 0:a.in)}var ete=class extends Fe{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,a,n){switch(a){case"w":return et(ct.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n,r){return qa(Jee(t,n,r),r)}};function tte(e,t,a){let n=kt(e,a==null?void 0:a.in),r=C1(n,a)-t;return n.setDate(n.getDate()-r*7),n}var nte=class extends Fe{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,a,n){switch(a){case"I":return et(ct.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n){return ii(tte(t,n))}},ate=[31,28,31,30,31,30,31,31,30,31,30,31],rte=[31,29,31,30,31,30,31,31,30,31,30,31],ite=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"subPriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"d":return et(ct.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return rt(a.length,t)}}validate(t,a){let n=t.getFullYear(),r=L1(n),i=t.getMonth();return r?a>=1&&a<=rte[i]:a>=1&&a<=ate[i]}set(t,a,n){return t.setDate(n),t.setHours(0,0,0,0),t}},ote=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"subpriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,a,n){switch(a){case"D":case"DD":return et(ct.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return rt(a.length,t)}}validate(t,a){let n=t.getFullYear();return L1(n)?a>=1&&a<=366:a>=1&&a<=365}set(t,a,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}};function Xh(e,t,a){var d,m,b,g;let n=vi(),r=(a==null?void 0:a.weekStartsOn)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((g=(b=n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??0,i=kt(e,a==null?void 0:a.in),o=i.getDay(),l=(t%7+7)%7,c=7-r,u=t<0||t>6?t-(o+c)%7:(l+c)%7-(o+c)%7;return E1(i,u,a)}var ste=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}},lte=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"e":case"ee":return dt(rt(a.length,t),i);case"eo":return dt(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}},ute=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"c":case"cc":return dt(rt(a.length,t),i);case"co":return dt(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}};function cte(e,t,a){let n=kt(e,a==null?void 0:a.in),r=jee(n,a),i=t-r;return E1(n,i,a)}var dte=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,a,n){let r=i=>i===0?7:i;switch(a){case"i":case"ii":return rt(a.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return dt(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return dt(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return dt(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return dt(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,a){return a>=1&&a<=7}set(t,a,n){return t=cte(t,n),t.setHours(0,0,0,0),t}},hte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},pte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},mte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","b","t","T"])}parse(t,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},fte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,a,n){switch(a){case"h":return et(ct.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=12}set(t,a,n){let r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):!r&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}},gte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,a,n){switch(a){case"H":return et(ct.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=23}set(t,a,n){return t.setHours(n,0,0,0),t}},vte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,a,n){switch(a){case"K":return et(ct.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}},bte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,a,n){switch(a){case"k":return et(ct.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=24}set(t,a,n){let r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}},yte=class extends Fe{constructor(){super(...arguments);s(this,"priority",60);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"m":return et(ct.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setMinutes(n,0,0),t}},_te=class extends Fe{constructor(){super(...arguments);s(this,"priority",50);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"s":return et(ct.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setSeconds(n,0),t}},wte=class extends Fe{constructor(){super(...arguments);s(this,"priority",30);s(this,"incompatibleTokens",["t","T"])}parse(t,a){let n=r=>Math.trunc(r*Math.pow(10,-a.length+3));return dt(rt(a.length,t),n)}set(t,a,n){return t.setMilliseconds(n),t}},xte=class extends Fe{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","x"])}parse(t,a){switch(a){case"X":return Un(Gn.basicOptionalMinutes,t);case"XX":return Un(Gn.basic,t);case"XXXX":return Un(Gn.basicOptionalSeconds,t);case"XXXXX":return Un(Gn.extendedOptionalSeconds,t);case"XXX":default:return Un(Gn.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Tt(t,t.getTime()-gl(t)-n)}},Ete=class extends Fe{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","X"])}parse(t,a){switch(a){case"x":return Un(Gn.basicOptionalMinutes,t);case"xx":return Un(Gn.basic,t);case"xxxx":return Un(Gn.basicOptionalSeconds,t);case"xxxxx":return Un(Gn.extendedOptionalSeconds,t);case"xxx":default:return Un(Gn.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Tt(t,t.getTime()-gl(t)-n)}},Ste=class extends Fe{constructor(){super(...arguments);s(this,"priority",40);s(this,"incompatibleTokens","*")}parse(t){return A1(t)}set(t,a,n){return[Tt(t,n*1e3),{timestampIsSet:!0}]}},kte=class extends Fe{constructor(){super(...arguments);s(this,"priority",20);s(this,"incompatibleTokens","*")}parse(t){return A1(t)}set(t,a,n){return[Tt(t,n),{timestampIsSet:!0}]}},Cte={G:new $ee,y:new Gee,Y:new Uee,R:new Wee,u:new Zee,Q:new Yee,q:new Kee,M:new Qee,L:new Xee,w:new ete,I:new nte,d:new ite,D:new ote,E:new ste,e:new lte,c:new ute,i:new dte,a:new hte,b:new pte,B:new mte,h:new fte,H:new gte,K:new vte,k:new bte,m:new yte,s:new _te,S:new wte,X:new xte,x:new Ete,t:new Ste,T:new kte},Ite=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dte=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tte=/^'([^]*?)'?$/,Nte=/''/g,Ote=/\S/,Mte=/[a-zA-Z]/;function Rte(e,t,a,n){var S,T,A,O;let r=()=>Tt(a,NaN),i=M1(),o=i.locale??k1,l=i.firstWeekContainsDate??((T=(S=i.locale)==null?void 0:S.options)==null?void 0:T.firstWeekContainsDate)??1,c=i.weekStartsOn??((O=(A=i.locale)==null?void 0:A.options)==null?void 0:O.weekStartsOn)??0,u={firstWeekContainsDate:l,weekStartsOn:c,locale:o},d=[new qee(n==null?void 0:n.in,a)],m=t.match(Dte).map(Y=>{let ie=Y[0];if(ie in rd){let me=rd[ie];return me(Y,o.formatLong)}return Y}).join("").match(Ite),b=[];for(let Y of m){N1(Y)&&id(Y,t,e),T1(Y)&&id(Y,t,e);let ie=Y[0],me=Cte[ie];if(me){let{incompatibleTokens:_t}=me;if(Array.isArray(_t)){let $e=b.find(ht=>_t.includes(ht.token)||ht.token===ie);if($e)throw new RangeError(`The format string mustn't contain \`${$e.fullToken}\` and \`${Y}\` at the same time`)}else if(me.incompatibleTokens==="*"&&b.length>0)throw new RangeError(`The format string mustn't contain \`${Y}\` and any other token at the same time`);b.push({token:ie,fullToken:Y});let ot=me.run(e,Y,o.match,u);if(!ot)return r();d.push(ot.setter),e=ot.rest}else{if(ie.match(Mte))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(Y==="''"?Y="'":ie==="'"&&(Y=Ate(Y)),e.indexOf(Y)===0)e=e.slice(Y.length);else return r()}}if(e.length>0&&Ote.test(e))return r();let g=d.map(Y=>Y.priority).sort((Y,ie)=>ie-Y).filter((Y,ie,me)=>me.indexOf(Y)===ie).map(Y=>d.filter(ie=>ie.priority===Y).sort((ie,me)=>me.subPriority-ie.subPriority)).map(Y=>Y[0]),w=kt(a,n==null?void 0:n.in);if(isNaN(+w))return r();let x={};for(let Y of g){if(!Y.validate(w,u))return r();let ie=Y.set(w,x,u);Array.isArray(ie)?(w=ie[0],Object.assign(x,ie[1])):w=ie}return w}function Ate(e){return e.match(Tte)[1].replace(Nte,"'")}var D=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(D||{}),Jh=new K("ngx-mask config"),F1=new K("new ngx-mask config"),j1=new K("initial ngx-mask config"),Pte={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new Ft,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};D.HOURS_MINUTES_SECONDS,D.HOURS_MINUTES,D.MINUTES_SECONDS;D.PERCENT,D.HOURS_HOUR,D.SECONDS,D.MINUTES,D.SEPARATOR,D.DAYS_MONTHS_YEARS,D.DAYS_MONTHS,D.DAYS,D.MONTHS;var Lte=(()=>{const t=class t{constructor(){s(this,"_config",C(Jh));s(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);s(this,"hiddenInput",this._config.hiddenInput);s(this,"showTemplate");s(this,"clearIfNotMatch",this._config.clearIfNotMatch);s(this,"specialCharacters",this._config.specialCharacters);s(this,"patterns",this._config.patterns);s(this,"prefix",this._config.prefix);s(this,"suffix",this._config.suffix);s(this,"thousandSeparator",this._config.thousandSeparator);s(this,"decimalMarker",this._config.decimalMarker);s(this,"customPattern");s(this,"showMaskTyped",this._config.showMaskTyped);s(this,"placeHolderCharacter",this._config.placeHolderCharacter);s(this,"validation",this._config.validation);s(this,"separatorLimit",this._config.separatorLimit);s(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);s(this,"leadZeroDateTime",this._config.leadZeroDateTime);s(this,"leadZero",this._config.leadZero);s(this,"apm",this._config.apm);s(this,"inputTransformFn",this._config.inputTransformFn);s(this,"outputTransformFn",this._config.outputTransformFn);s(this,"keepCharacterPositions",this._config.keepCharacterPositions);s(this,"_shift",new Set);s(this,"plusOnePosition",!1);s(this,"maskExpression","");s(this,"actualValue","");s(this,"showKeepCharacterExp","");s(this,"shownMaskExpression","");s(this,"deletedSpecialCharacter",!1);s(this,"ipError");s(this,"cpfCnpjError");s(this,"_formatWithSeparators",(n,r,i,o)=>{var g;let l=[],c="";if(Array.isArray(i)){let w=new RegExp(i.map(x=>"[\\^$.|?*+()".indexOf(x)>=0?`\\${x}`:x).join("|"));l=n.split(w),c=((g=n.match(w))==null?void 0:g[0])??D.EMPTY_STRING}else l=n.split(i),c=i;let u=l.length>1?`${c}${l[1]}`:D.EMPTY_STRING,d=l[0]??D.EMPTY_STRING,m=this.separatorLimit.replace(/\s/g,D.EMPTY_STRING);m&&+m&&(d[0]===D.MINUS?d=`-${d.slice(1,d.length).slice(0,m.length)}`:d=d.slice(0,m.length));let b=/(\d+)(\d{3})/;for(;r&&b.test(d);)d=d.replace(b,"$1"+r+"$2");return typeof o>"u"?d+u:o===0?d:d+u.substring(0,o+1)});s(this,"percentage",n=>{let r=n.replace(",","."),i=Number(this.allowNegativeNumbers&&n.includes(D.MINUS)?r.slice(1,n.length):r);return!isNaN(i)&&i>=0&&i<=100});s(this,"getPrecision",n=>{let r=n.split(D.DOT);return r.length>1?Number(r[r.length-1]):1/0});s(this,"checkAndRemoveSuffix",n=>{var r,i,o,l;for(let c=((r=this.suffix)==null?void 0:r.length)-1;c>=0;c--){let u=this.suffix.substring(c,(i=this.suffix)==null?void 0:i.length);if(n.includes(u)&&c!==((o=this.suffix)==null?void 0:o.length)-1&&(c-1<0||!n.includes(this.suffix.substring(c-1,(l=this.suffix)==null?void 0:l.length))))return n.replace(u,D.EMPTY_STRING)}return n});s(this,"checkInputPrecision",(n,r,i)=>{var c;let o=n,l=i;if(r<1/0){Array.isArray(l)&&(l=l.find(g=>g!==this.thousandSeparator)||l[0]);let u=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),d=o.match(u),m=(d&&((c=d[0])==null?void 0:c.length))??0;if(m-1>r){let b=m-1-r;o=o.substring(0,o.length-b)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(n,r){let[i,o]=r;return this.customPattern=o,this.applyMask(n,i)}applyMask(n,r,i=0,o=!1,l=!1,c=()=>{}){var ot,$e,ht;if(!r||typeof n!="string")return D.EMPTY_STRING;let u=0,d="",m=!1,b=!1,g=1,w=!1,x=n,S=i;x.slice(0,this.prefix.length)===this.prefix&&(x=x.slice(this.prefix.length,x.length)),this.suffix&&x.length>0&&(x=this.checkAndRemoveSuffix(x)),x==="("&&this.prefix&&(x="");let T=x.toString().split(D.EMPTY_STRING);if(this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS&&(d+=x.slice(u,u+1)),r===D.IP){let Z=x.split(D.DOT);this.ipError=this._validIP(Z),r="099.099.099.099"}let A=[];for(let Z=0;Z<x.length;Z++)(ot=x[Z])!=null&&ot.match("\\d")&&A.push(x[Z]??D.EMPTY_STRING);if(r===D.CPF_CNPJ&&(this.cpfCnpjError=A.length!==11&&A.length!==14,A.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(D.PERCENT)){if(x.match("[a-z]|[A-Z]")||x.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){x=this._stripToDecimal(x);let ge=this.getPrecision(r);x=this.checkInputPrecision(x,ge,this.decimalMarker)}let Z=typeof this.decimalMarker=="string"?this.decimalMarker:D.DOT;if(x.indexOf(Z)>0&&!this.percentage(x.substring(0,x.indexOf(Z)))){let ge=x.substring(0,x.indexOf(Z)-1);this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS&&!l&&(ge=x.substring(0,x.indexOf(Z))),x=`${ge}${x.substring(x.indexOf(Z),x.length)}`}let H="";this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS?H=`${D.MINUS}${x.slice(u+1,u+x.length)}`:H=x,this.percentage(H)?d=this._splitPercentZero(x):d=this._splitPercentZero(x.substring(0,x.length-1))}else if(r.startsWith(D.SEPARATOR)){(x.match("[wа-яА-Я]")||x.match("[ЁёА-я]")||x.match("[a-z]|[A-Z]")||x.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||x.match("[^A-Za-z0-9,]"))&&(x=this._stripToDecimal(x));let Z=this.getPrecision(r),H=Array.isArray(this.decimalMarker)?this.thousandSeparator===D.DOT?D.COMMA:D.DOT:this.decimalMarker;if(Z===0?x=this.allowNegativeNumbers?x.length>2&&x[0]===D.MINUS&&x[1]===D.NUMBER_ZERO&&x[2]!==this.thousandSeparator&&x[2]!==D.COMMA&&x[2]!==D.DOT?"-"+x.slice(2,x.length):x[0]===D.NUMBER_ZERO&&x.length>1&&x[1]!==this.thousandSeparator&&x[1]!==D.COMMA&&x[1]!==D.DOT?x.slice(1,x.length):x:x.length>1&&x[0]===D.NUMBER_ZERO&&x[1]!==this.thousandSeparator&&x[1]!==D.COMMA&&x[1]!==D.DOT?x.slice(1,x.length):x:(x[0]===H&&x.length>1&&(x=D.NUMBER_ZERO+x.slice(0,x.length+1),this.plusOnePosition=!0),x[0]===D.NUMBER_ZERO&&x[1]!==H&&x[1]!==this.thousandSeparator&&(x=x.length>1?x.slice(0,1)+H+x.slice(1,x.length+1):x,this.plusOnePosition=!0),this.allowNegativeNumbers&&x[0]===D.MINUS&&(x[1]===H||x[1]===D.NUMBER_ZERO)&&(x=x[1]===H&&x.length>2?x.slice(0,1)+D.NUMBER_ZERO+x.slice(1,x.length):x[1]===D.NUMBER_ZERO&&x.length>2&&x[2]!==H?x.slice(0,2)+H+x.slice(2,x.length):x,this.plusOnePosition=!0)),l){let De=x.slice(this._findFirstNonZeroDigitIndex(x),x.length),Me=x[S]===D.NUMBER_ZERO||x[S]===H,Je=x[0]===D.NUMBER_ZERO,Sn=x[0]===D.MINUS,Ge=x[0]===this.thousandSeparator,Lt=x[1]===H,wt=x[1]===D.NUMBER_ZERO,jn=x[2]===H;Je&&Lt&&Me&&S<2&&(x=De),Sn&&wt&&jn&&Me&&S<3&&(x=D.MINUS+De),De!==D.MINUS&&(S===0&&(Je||Ge)||this.allowNegativeNumbers&&S===1&&Sn&&!wt)&&(x=Sn?D.MINUS+De:De)}let ge=this._charToRegExpExpression(this.thousandSeparator),L='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(ge,"");if(Array.isArray(this.decimalMarker))for(let De of this.decimalMarker)L=L.replace(this._charToRegExpExpression(De),D.EMPTY_STRING);else L=L.replace(this._charToRegExpExpression(this.decimalMarker),"");let j=new RegExp("["+L+"]");x.match(j)&&(x=x.substring(0,x.length-1)),x=this.checkInputPrecision(x,Z,this.decimalMarker);let U=x.replace(new RegExp(ge,"g"),"");d=this._formatWithSeparators(U,this.thousandSeparator,this.decimalMarker,Z);let Ee=d.indexOf(D.COMMA)-x.indexOf(D.COMMA),He=d.length-x.length,Pt=l&&d.length<n.length&&this.separatorLimit;if((d[S-1]===this.thousandSeparator||d[S-this.prefix.length])&&this.prefix&&l)S=S-1;else if(He>0&&d[S]!==this.thousandSeparator||Pt){b=!0;let De=0;do this._shift.add(S+De),De++;while(De<He)}else d[S-1]===this.thousandSeparator||He===-4||He===-3||d[S]===this.thousandSeparator?(this._shift.clear(),this._shift.add(S-1)):Ee!==0&&S>0&&!(d.indexOf(D.COMMA)>=S&&S>3)||!(d.indexOf(D.DOT)>=S&&S>3)&&He<=0?(this._shift.clear(),b=!0,g=He,S+=He,this._shift.add(S)):this._shift.clear()}else for(let Z=0,H=T[0];Z<T.length&&u!==r.length;Z++,H=T[Z]??D.EMPTY_STRING){let ge=D.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)&&r[u+1]===D.SYMBOL_QUESTION)d+=H,u+=2;else if(r[u+1]===D.SYMBOL_STAR&&m&&this._checkSymbolMask(H,r[u+2]??D.EMPTY_STRING))d+=H,u+=3,m=!1;else if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)&&r[u+1]===D.SYMBOL_STAR&&!ge)d+=H,m=!0;else if(r[u+1]===D.SYMBOL_QUESTION&&this._checkSymbolMask(H,r[u+2]??D.EMPTY_STRING))d+=H,u+=3;else if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)){if(r[u]===D.HOURS&&(this.apm?Number(H)>9:Number(H)>2)){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if(r[u]===D.HOUR&&(this.apm?d.length===1&&Number(d)>1||d==="1"&&Number(H)>2||x.slice(u-1,u).length===1&&Number(x.slice(u-1,u))>2||x.slice(u-1,u)==="1"&&Number(H)>2:d==="2"&&Number(H)>3||(d.slice(u-2,u)==="2"||d.slice(u-3,u)==="2"||d.slice(u-4,u)==="2"||d.slice(u-1,u)==="2")&&Number(H)>3&&u>10)){S=S+1,u+=1,Z--;continue}if((r[u]===D.MINUTE||r[u]===D.SECOND)&&Number(H)>5){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}let L=31,j=x[u],U=x[u+1],Ee=x[u+2],He=x[u-1],Pt=x[u-2],De=x.slice(u-3,u-1),Me=x.slice(u-1,u+1),Je=x.slice(u,u+2),Sn=x.slice(u-2,u);if(r[u]===D.DAY){let Ge=r.slice(0,2)===D.MONTHS,Lt=r.slice(0,2)===D.MONTHS&&this.specialCharacters.includes(Pt);if(Number(H)>3&&this.leadZeroDateTime||!Ge&&(Number(Je)>L||Number(Me)>L||this.specialCharacters.includes(U))||(Lt?Number(Me)>L||!this.specialCharacters.includes(j)&&this.specialCharacters.includes(Ee)||this.specialCharacters.includes(j):Number(Je)>L||this.specialCharacters.includes(U)&&!l)){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}if(r[u]===D.MONTH){let Ge=u===0&&(Number(H)>2||Number(Je)>12||this.specialCharacters.includes(U)&&!l),Lt=r.slice(u+2,u+3),wt=De.includes(Lt)&&r.includes("d0")&&(this.specialCharacters.includes(Pt)&&Number(Me)>12&&!this.specialCharacters.includes(j)||this.specialCharacters.includes(j)),jn=Number(De)<=L&&!this.specialCharacters.includes(De)&&this.specialCharacters.includes(He)&&(Number(Je)>12||this.specialCharacters.includes(U)),Ia=Number(Je)>12&&u===5||this.specialCharacters.includes(U)&&u===5,Bo=Number(De)>L&&!this.specialCharacters.includes(De)&&!this.specialCharacters.includes(Sn)&&Number(Sn)>12&&r.includes("d0"),zo=Number(De)<=L&&!this.specialCharacters.includes(De)&&!this.specialCharacters.includes(He)&&Number(Me)>12;if(Number(H)>1&&this.leadZeroDateTime||Ge||wt||zo||Bo||jn||Ia&&!this.leadZeroDateTime){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}d+=H,u++}else this.specialCharacters.includes(H)&&r[u]===H?(d+=H,u++):this.specialCharacters.indexOf(r[u]??D.EMPTY_STRING)!==-1?(d+=r[u],u++,this._shiftStep(r,u,T.length),Z--):r[u]===D.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,u,T.length):this.patterns[r[u]??D.EMPTY_STRING]&&(($e=this.patterns[r[u]??D.EMPTY_STRING])!=null&&$e.optional)?(T[u]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((ht=this.patterns[r[u]??D.EMPTY_STRING])!=null&&ht.optional)&&(d+=T[u]),r.includes(D.NUMBER_NINE+D.SYMBOL_STAR)&&r.includes(D.NUMBER_ZERO+D.SYMBOL_STAR)&&u++,u++,Z--):this.maskExpression[u+1]===D.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[u+2]??D.EMPTY_STRING)&&this._findSpecialChar(H)===this.maskExpression[u+2]&&m||this.maskExpression[u+1]===D.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[u+2]??D.EMPTY_STRING)&&this._findSpecialChar(H)===this.maskExpression[u+2]&&m?(u+=3,d+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(w=!0)}d.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??D.EMPTY_STRING)!==-1&&(d+=r[r.length-1]);let O=S+1;for(;this._shift.has(O);)g++,O++;let Y=o&&!r.startsWith(D.SEPARATOR)?u:this._shift.has(S)?g:0;w&&Y--,c(Y,b),g<0&&this._shift.clear();let ie=!1;l&&(ie=T.every(Z=>this.specialCharacters.includes(Z)));let me=`${this.prefix}${ie?D.EMPTY_STRING:d}${this.showMaskTyped?"":this.suffix}`;d.length===0&&(me=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`);let _t=x.length===1&&this.specialCharacters.includes(r[0])&&x!==r[0];if(!this._checkSymbolMask(x,r[1])&&_t)return"";if(d.includes(D.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&d===D.MINUS)return"";me=`${D.MINUS}${this.prefix}${d.split(D.MINUS).join(D.EMPTY_STRING)}${this.suffix}`}return me}_findDropSpecialChar(n){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===n):this._findSpecialChar(n)}_findSpecialChar(n){return this.specialCharacters.find(r=>r===n)}_checkSymbolMask(n,r){var i,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((i=this.patterns[r])==null?void 0:i.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(n)))??!1}_stripToDecimal(n){return n.split(D.EMPTY_STRING).filter((r,i)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===D.MINUS&&i===0&&this.allowNegativeNumbers}).join(D.EMPTY_STRING)}_charToRegExpExpression(n){return n&&(n===" "?"\\s":"[\\^$.|?*+()".indexOf(n)>=0?`\\${n}`:n)}_shiftStep(n,r,i){let o=/[*?]/g.test(n.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(n,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(n):n===r}_validIP(n){return!(n.length===4&&!n.some((r,i)=>n.length!==i+1?r===D.EMPTY_STRING||Number(r)>255:r===D.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(n){if(n===D.MINUS&&this.allowNegativeNumbers)return n;let r=typeof this.decimalMarker=="string"?n.indexOf(this.decimalMarker):n.indexOf(D.DOT),i=this.allowNegativeNumbers&&n.includes(D.MINUS)?"-":"";if(r===-1){let o=parseInt(i?n.slice(1,n.length):n,10);return isNaN(o)?D.EMPTY_STRING:`${i}${o}`}else{let o=parseInt(n.replace("-","").substring(0,r),10),l=n.substring(r+1),c=isNaN(o)?"":o.toString(),u=typeof this.decimalMarker=="string"?this.decimalMarker:D.DOT;return c===D.EMPTY_STRING?D.EMPTY_STRING:`${i}${c}${u}${l}`}}_findFirstNonZeroDigitIndex(n){for(let r=0;r<n.length;r++){let i=n[r];if(i&&i>="1"&&i<="9")return r}return-1}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Fte=(()=>{const t=class t extends Lte{constructor(){super(...arguments);s(this,"isNumberValue",!1);s(this,"maskIsShown","");s(this,"selStart",null);s(this,"selEnd",null);s(this,"writingValue",!1);s(this,"maskChanged",!1);s(this,"_maskExpressionArray",[]);s(this,"triggerOnMaskChange",!1);s(this,"_previousValue","");s(this,"_currentValue","");s(this,"_emitValue",!1);s(this,"_start");s(this,"_end");s(this,"onChange",r=>{});s(this,"_elementRef",C(At,{optional:!0}));s(this,"document",C(Le));s(this,"_config",C(Jh));s(this,"_renderer",C(mi,{optional:!0}))}applyMask(r,i,o=0,l=!1,c=!1,u=()=>{}){if(!i)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():D.EMPTY_STRING,this.maskExpression===D.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||D.HASH)),this.maskExpression===D.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||D.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let d=r&&typeof this.selStart=="number"?r[this.selStart]??D.EMPTY_STRING:D.EMPTY_STRING,m="",b=o;if(this.hiddenInput!==null&&!this.writingValue){let S=r&&r.length===1?r.split(D.EMPTY_STRING):this.actualValue.split(D.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==D.EMPTY_STRING&&S.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>S.length?S.splice(this.selStart,0,d):r.length<S.length&&(S.length-r.length===1?c?S.splice(this.selStart-1,1):S.splice(r.length-1,1):S.splice(this.selStart,this.selEnd-this.selStart))):S=[],this.showMaskTyped&&!this.hiddenInput&&(m=this.removeMask(r)),m=this.actualValue.length&&S.length<=r.length?this.shiftTypedSymbols(S.join(D.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(m=r),c&&this.specialCharacters.indexOf(this.maskExpression[b]??D.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(m=this._currentValue),this.deletedSpecialCharacter&&b&&(this.specialCharacters.includes(this.actualValue.slice(b,b+1))?b=b+1:i.slice(b-1,b+1)!==D.MONTHS&&(b=b-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(m=this.removeMask(r)),this.maskChanged?m=r:m=m&&m.length?m:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let S=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(S),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let g=super.applyMask(m,i,b,l,c,u);if(this.actualValue=this.getActualValue(g),this.thousandSeparator===D.DOT&&this.decimalMarker===D.DOT&&(this.decimalMarker=D.COMMA),this.maskExpression.startsWith(D.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(S=>!this._compareOrIncludes(S,this.decimalMarker,this.thousandSeparator))),(g||g==="")&&(this._previousValue=this._currentValue,this._currentValue=g,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(g)):this.formControlResult(g)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?c?this.hideInput(g,this.maskExpression):`${this.hideInput(g,this.maskExpression)}${this.maskIsShown.slice(g.length)}`:g;let w=g.length,x=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(D.HOURS)){let S=this._numberSkipedSymbols(g);return`${g}${x.slice(w+S)}`}else if(this.maskExpression===D.IP||this.maskExpression===D.CPF_CNPJ)return`${g}${x}`;return`${g}${x.slice(w)}`}_numberSkipedSymbols(r){let i=/(^|\D)(\d\D)/g,o=i.exec(r),l=0;for(;o!=null;)l+=1,o=i.exec(r);return l}applyValueChanges(r,i,o,l=()=>{}){var u;let c=(u=this._elementRef)==null?void 0:u.nativeElement;c&&(c.value=this.applyMask(c.value,this.maskExpression,r,i,o,l),c!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,i){return r.split(D.EMPTY_STRING).map((o,l)=>{var c,u;return this.patterns&&this.patterns[i[l]??D.EMPTY_STRING]&&((c=this.patterns[i[l]??D.EMPTY_STRING])!=null&&c.symbol)?(u=this.patterns[i[l]??D.EMPTY_STRING])==null?void 0:u.symbol:o}).join(D.EMPTY_STRING)}getActualValue(r){let i=r.split(D.EMPTY_STRING).filter((o,l)=>{let c=this.maskExpression[l]??D.EMPTY_STRING;return this._checkSymbolMask(o,c)||this.specialCharacters.includes(c)&&o===c});return i.join(D.EMPTY_STRING)===r?i.join(D.EMPTY_STRING):r}shiftTypedSymbols(r){let i="";return(r&&r.split(D.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??D.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return i=o,r[l+1];if(i.length){let c=i;return i=D.EMPTY_STRING,c}return o})||[]).join(D.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(D.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(D.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${D.MINUS}/`,D.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===D.IP)return this._checkForIp(r);if(this.maskExpression===D.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var i;let r=(i=this._elementRef)==null?void 0:i.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,D.EMPTY_STRING).length&&(this.formElementProperty=["value",D.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,i)})}checkDropSpecialCharAmount(r){return r.split(D.EMPTY_STRING).filter(i=>this._findDropSpecialChar(i)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===D.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let o=0;o<r.length;o++){let l=r[o]??D.EMPTY_STRING;l&&l.match("\\d")&&i.push(l)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===D.HASH)return i;let l=[];for(let c=0;c<r.length;c++){let u=r[c]??D.EMPTY_STRING;u&&u.match("\\d")&&l.push(u)}return l.length<=3?i.slice(l.length,i.length):l.length>3&&l.length<=6?i.slice(l.length+1,i.length):l.length>6&&l.length<=9?i.slice(l.length+2,i.length):l.length>9&&l.length<11?i.slice(l.length+3,i.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let i=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return i!=null&&i.activeElement?this._getActiveElement(i):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===D.EMPTY_STRING||this.maskExpression.startsWith(D.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(D.SEPARATOR))return String(r);let i=Number(r);if(this.maskExpression.startsWith(D.SEPARATOR)&&Number.isNaN(i)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(i)?r:i}_removeMask(r,i){return this.maskExpression.startsWith(D.PERCENT)&&r.includes(D.DOT)?r:r&&r.replace(this._regExpForRemove(i),D.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,D.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,D.EMPTY_STRING):r}_retrieveSeparatorValue(r){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(D.WHITE_SPACE)&&this.maskExpression.includes(D.SYMBOL_STAR)&&(i=i.filter(o=>o!==D.WHITE_SPACE)),this._removeMask(r,i)}_regExpForRemove(r){return new RegExp(r.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(i),D.DOT)}_checkSymbols(r){let i=r;if(i===D.EMPTY_STRING)return i;this.maskExpression.startsWith(D.PERCENT)&&this.decimalMarker===D.COMMA&&(i=i.replace(D.COMMA,D.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&o?i===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,i,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let c=(i=this.patterns[l])==null?void 0:i.pattern.toString(),u=(o=this.patterns[l])==null?void 0:o.pattern;if(c!=null&&c.includes(D.WHITE_SPACE)&&(u!=null&&u.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let i=r.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(r,i){let o=this.getPrecision(r),l=i;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===D.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(D.EMPTY_STRING).reduce((i,o,l)=>{if(this._start=o===D.CURLY_BRACKETS_LEFT?l:this._start,o!==D.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?i+o:i;this._end=l;let c=Number(r.slice(this._start+1,this._end)),u=new Array(c+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(D.LETTER_S)){let d=r.slice(0,this._start-1);return d.includes(D.CURLY_BRACKETS_LEFT)?i+u:d+i+u}else return i+u},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};s(t,"ɵfac",(()=>{let r;return function(i){return(r||(r=zt(t)))(i||t)}})()),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function jte(){let e=C(j1),t=C(F1);return t instanceof Function?se(se({},e),t()):se(se({},e),t)}function Vte(e){return[{provide:F1,useValue:e},{provide:j1,useValue:Pte},{provide:Jh,useFactory:jte},Fte]}function Bte(e){return Td(Vte(e))}function zte(e){var t,a,n,r;return((a=(t=e.userProfile)==null?void 0:t.children)==null?void 0:a.length)>0?e.userProfile.children[0].ssin:((r=(n=e.userProfile)==null?void 0:n.mandators)==null?void 0:r.length)>0?e.userProfile.mandators[0].ssin:e.userProfile.ssin}var V1=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(n){this._isProfessional=n}get patientSsin(){return this._patientSsin}set patientSsin(n){this._patientSsin=n}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(n){this._offlineDataStorageEnabled=n}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(n){this._isOfflineAuthenticated=n}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Hte="4.0",od=Hte,Aa=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(Aa||{}),qte=(()=>{const t=class t{constructor(){s(this,"version");s(this,"language");s(this,"configName");s(this,"services");s(this,"onPrint",new Ft);s(this,"_ngInitDone",!1);s(this,"correctlySetup",!1);s(this,"extraRequiredFields",[])}validateVersion(){let n=od.split(".").map(i=>parseInt(i)),r=(this.version||"").split(".").map(i=>parseInt(i));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==n[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${od})!`),!1):!0}validateInputs(){let n=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:i,presentFields:o}=r.reduce((l,c)=>(n[c]===void 0?l.missingFields.push(c):l.presentFields.push(c),l),{missingFields:[],presentFields:[]});return i.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${i.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(n){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(n):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(n){}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",it({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[xv],decls:0,vars:0,template:function(n,r){},encapsulation:2}));let e=t;return e})(),B1=class{constructor(e,t,a,n,r){s(this,"logId");s(this,"services");s(this,"key");s(this,"cacheFetchingKey");s(this,"offlineDataStorageEnabled");s(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=n,this.isOfflineAuthenticated=a}fetchBackendData(){return Et(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return Et(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return Et(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return Et(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return Et(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return Et(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},$te=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},oo=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}(oo||{}),rr=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}(rr||{}),h=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(h||{});h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE;var fs={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},$u={authorization:"Authorization",userType:"user-type",clientType:"client-type"},Ai=class extends Error{};Ai.prototype.name="InvalidTokenError";function Gte(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,a)=>{let n=a.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Ute(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Gte(t)}catch{return atob(t)}}function Wte(e,t){if(typeof e!="string")throw new Ai("Invalid token specified: must be a string");t||(t={});let a=t.header===!0?0:1,n=e.split(".")[a];if(typeof n!="string")throw new Ai(`Invalid token specified: missing part #${a+1}`);let r;try{r=Ute(n)}catch(i){throw new Ai(`Invalid token specified: invalid base64 for part #${a+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new Ai(`Invalid token specified: invalid json for part #${a+1} (${i.message})`)}}var Zte=class extends B1{constructor(e,t,a){super(e,oo.USER_INFOS,t,a,oo.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return Et(this,null,function*(){return Wte(yield this.getLocalAccessToken(""))})}},Gl=(()=>{const t=class t{setServices(n){this.services=n}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Yte=(()=>{const t=class t extends V1{constructor(){super(...arguments),this.servicesStore=C(Gl)}resolveSsin(){return Et(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let n=yield this.fetchUserToken();return zte(n)})}resolvePatientInfo(){return Et(this,null,function*(){return(yield this.fetchUserToken()).userProfile})}resolveUserInfo(){return Et(this,null,function*(){var d,m,b,g;let n=(yield this.fetchUserToken()).userProfile,r=n.lastName,i=n.firstName,o=this.extractProfessionalRole(n),l=((d=n==null?void 0:n.organizations)==null?void 0:d.length)>0&&((m=n==null?void 0:n.organizations[0])!=null&&m.pharmacy)?"pharmacist":void 0,c=(b=n==null?void 0:n.organizations)!=null&&b.length&&l!==void 0?n==null?void 0:n.organizations[0]:void 0,u=this.resolveProfessional(n,o)?n[o]:void 0;return{firstName:i,ssin:n.ssin,lastName:r,role:l||o,organization:c&&l?c:void 0,professional:u,mandator:((g=n==null?void 0:n.mandators)==null?void 0:g.length)>0}})}isMandator(){return Et(this,null,function*(){var n,r;return((r=(n=(yield this.fetchUserToken()).userProfile)==null?void 0:n.mandators)==null?void 0:r.length)>0})}resolveProfessional(n,r){return r?n[r]:void 0}extractProfessionalRole(n){let r=["physician","nurse","midwife","dentist"],i="patient";return r.forEach(o=>{n[o]&&(i=o)}),i}fetchUserToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(n,r){this.accessTokenService||(this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r,this.accessTokenService=new Zte(this.servicesStore.getServices(),n,r))}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kte=(()=>{const t=class t extends V1{resolveSsin(){return Et(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return Et(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(n,r){this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Qte=(()=>{const t=class t{constructor(){this.http=C(gi)}get(n,r,i){return gs()?this.http.get(n,{headers:i}):ut(r)}patch(n,r,i){return gs()?this.http.patch(n,{},{headers:i}):ut(r)}post(n,r,i){return gs()?this.http.post(n,{},{headers:i}):ut(r)}delete(n,r,i){return gs()?this.http.delete(n,{headers:i}):ut(r)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),gs=()=>window.Cypress;function Xte(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var Jte={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function z1(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let a of Jte[t]){let n=e.find(r=>r.lang===a);if(n)return n.value}return e.length>0?e[0].value:"Missing translation"}}var Ur=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(Ur||{}),va=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(va||{});function ene(e,t){return Et(this,null,function*(){t.next({status:Ur.LOADING});try{let a=yield e,n={status:Ur.SUCCESS,data:a};return t.next(n),n}catch(a){let n={status:Ur.ERROR,error:ane(a)};return t.next(n),n}})}var Of={[va.NO_DATA]:["VIDIS_0140"],[va.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[va.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[va.OTHER]:[]};function tne(e){for(let t of Object.keys(Of))if(Of[t].includes(e))return t;return va.OTHER}function nne(e,t,a){let n=e||"UNKNOWN",r=tne(n);return{code:n,message:a??"An unexpected error occurred",group:r,traceId:t}}function ane(e){var r,i,o;let t=((r=e.error)==null?void 0:r.code)??void 0,a=((i=e.error)==null?void 0:i.message)??e.message,n=(o=e.headers)==null?void 0:o.get("trace-id");return nne(t,n,a)}var rne=(()=>{const t=class t{constructor(){this.translate=C(Ca)}transform(n){return this.findTranslation(n.name)+" "+(n.prefix?n.prefix+" ":"")+(n.value?n.value+" ":"")+(n.unit?this.translate.instant("commons.units."+n.unit,{count:n.value||1}):"")}findTranslation(n){return z1(n,this.translate.currentLang)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),ine=(()=>{const t=class t{constructor(){this.http=C(gi),this.snackbarService=C(q1)}getLeaflet(n,r){this.http.get(`/v2/leaflet/${n}/${r}`,{responseType:"text"}).pipe(sn(1),Ed(i=>(this.snackbarService.showError(i.status===404?"error.no-leaflet":"error.fetch-leaflet"),Lg(()=>i)))).subscribe(i=>{window.open(i,"_blank")})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),bl=(()=>{const t=class t{constructor(){this.config=C(Vo),this.injector=C(at),this._instance=null}getInstance(){if(!this._instance){let n=this.config.getEnvironmentVariable("env")==="demo";this._instance=n?this.injector.get(Kte):this.injector.get(Yte)}return this._instance}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),one={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function sne(e,t){if(e&1){let a=Oo();re(0,"div",1)(1,"button",2),$a("click",function(){ya(a);let n=Re();return _a(n.action())}),_e(2),ae()()}if(e&2){let a=Re();X(2),Qt(" ",a.data.action," ")}}var lne=["label"];function une(e,t){}var cne=Math.pow(2,31)-1,sd=class{constructor(e,t){s(this,"_overlayRef");s(this,"instance");s(this,"containerInstance");s(this,"_afterDismissed",new xe);s(this,"_afterOpened",new xe);s(this,"_onAction",new xe);s(this,"_durationTimeoutId");s(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,cne))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},H1=new K("MatSnackBarData"),yl=class{constructor(){s(this,"politeness","assertive");s(this,"announcementMessage","");s(this,"viewContainerRef");s(this,"duration",0);s(this,"panelClass");s(this,"direction");s(this,"data",null);s(this,"horizontalPosition","center");s(this,"verticalPosition","bottom")}},dne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),hne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),pne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),mne=(()=>{const t=class t{constructor(){s(this,"snackBarRef",C(sd));s(this,"data",C(H1))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",it({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(re(0,"div",0),_e(1),ae(),gt(2,sne,3,1,"div",1)),n&2&&(X(),Qt(" ",r.data.message,`
29
+ `],encapsulation:2,changeDetection:0}));let e=t;return e})(),zQ=(()=>{const t=class t extends jQ{};s(t,"ɵfac",(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})()),s(t,"ɵcmp",it({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,r){n&2&&(Ln("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),Fl(r.color?"mat-"+r.color:""),Rn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[En],ngContentSelectors:Jy,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,r){n&1&&(fi(Xy),un(0,"span",0),Zn(1),re(2,"span",1),Zn(3,1),ae(),Zn(4,2),un(5,"span",2)(6,"span",3)),n&2&&Rn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[VQ,BQ],encapsulation:2,changeDetection:0}));let e=t;return e})(),e1=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵmod",tn({type:t})),s(t,"ɵinj",Jt({imports:[ri,XK,ri]}));let e=t;return e})(),t1=(()=>{const t=class t{constructor(){s(this,"changes",new xe);s(this,"itemsPerPageLabel","Items per page:");s(this,"nextPageLabel","Next page");s(this,"previousPageLabel","Previous page");s(this,"firstPageLabel","First page");s(this,"lastPageLabel","Last page");s(this,"getRangeLabel",(n,r,i)=>{if(i==0||r==0)return`0 of ${i}`;i=Math.max(i,0);let o=n*r,l=o<i?Math.min(o+r,i):o+r;return`${o+1} – ${l} of ${i}`})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),Ce=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Ce||{}),ga="*";function HQ(e,t=null){return{type:Ce.Sequence,steps:e,options:t}}function uf(e){return{type:Ce.Style,styles:e,offset:null}}var ro=class{constructor(e=0,t=0){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finished",!1);s(this,"_position",0);s(this,"parentPlayer",null);s(this,"totalTime");this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},n1=class{constructor(e){s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_onDestroyFns",[]);s(this,"parentPlayer",null);s(this,"totalTime",0);s(this,"players");this.players=e;let t=0,a=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++t==r&&this._onFinish()}),i.onDestroy(()=>{++a==r&&this._onDestroy()}),i.onStart(()=>{++n==r&&this._onStart()})}),this.totalTime=this.players.reduce((i,o)=>Math.max(i,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(a=>{let n=a.totalTime?Math.min(1,t/a.totalTime):1;a.setPosition(n)})}getPosition(){let e=this.players.reduce((t,a)=>t===null||a.totalTime>t.totalTime?a:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},zh="!";function cf(e){return new G(3e3,!1)}function qQ(){return new G(3100,!1)}function $Q(){return new G(3101,!1)}function GQ(e){return new G(3001,!1)}function UQ(e){return new G(3003,!1)}function WQ(e){return new G(3004,!1)}function ZQ(e,t){return new G(3005,!1)}function YQ(){return new G(3006,!1)}function KQ(){return new G(3007,!1)}function QQ(e,t){return new G(3008,!1)}function XQ(e){return new G(3002,!1)}function JQ(e,t,a,n,r){return new G(3010,!1)}function eX(){return new G(3011,!1)}function tX(){return new G(3012,!1)}function nX(){return new G(3200,!1)}function aX(){return new G(3202,!1)}function rX(){return new G(3013,!1)}function iX(e){return new G(3014,!1)}function oX(e){return new G(3015,!1)}function sX(e){return new G(3016,!1)}function lX(e,t){return new G(3404,!1)}function uX(e){return new G(3502,!1)}function cX(e){return new G(3503,!1)}function dX(){return new G(3300,!1)}function hX(e){return new G(3504,!1)}function pX(e){return new G(3301,!1)}function mX(e,t){return new G(3302,!1)}function fX(e){return new G(3303,!1)}function gX(e,t){return new G(3400,!1)}function vX(e){return new G(3401,!1)}function bX(e){return new G(3402,!1)}function yX(e,t){return new G(3505,!1)}function Ra(e){switch(e.length){case 0:return new ro;case 1:return e[0];default:return new n1(e)}}function a1(e,t,a=new Map,n=new Map){let r=[],i=[],o=-1,l=null;if(t.forEach(c=>{let u=c.get("offset"),d=u==o,m=d&&l||new Map;c.forEach((b,g)=>{let w=g,x=b;if(g!=="offset")switch(w=e.normalizePropertyName(w,r),x){case zh:x=a.get(g);break;case ga:x=n.get(g);break;default:x=e.normalizeStyleValue(g,w,x,r);break}m.set(w,x)}),d||i.push(m),l=m,o=u}),r.length)throw uX();return i}function Hh(e,t,a,n){switch(t){case"start":e.onStart(()=>n(a&&Fu(a,"start",e)));break;case"done":e.onDone(()=>n(a&&Fu(a,"done",e)));break;case"destroy":e.onDestroy(()=>n(a&&Fu(a,"destroy",e)));break}}function Fu(e,t,a){let n=a.totalTime,r=!!a.disabled,i=qh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,r),o=e._data;return o!=null&&(i._data=o),i}function qh(e,t,a,n,r="",i=0,o){return{element:e,triggerName:t,fromState:a,toState:n,phaseName:r,totalTime:i,disabled:!!o}}function on(e,t,a){let n=e.get(t);return n||e.set(t,n=a),n}function df(e){let t=e.indexOf(":"),a=e.substring(1,t),n=e.slice(t+1);return[a,n]}var _X=typeof document>"u"?null:document.documentElement;function $h(e){let t=e.parentNode||e.host||null;return t===_X?null:t}function wX(e){return e.substring(1,6)=="ebkit"}var Xa=null,hf=!1;function xX(e){Xa||(Xa=EX()||{},hf=Xa.style?"WebkitAppearance"in Xa.style:!1);let t=!0;return Xa.style&&!wX(e)&&(t=e in Xa.style,!t&&hf&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Xa.style)),t}function EX(){return typeof document<"u"?document.body:null}function r1(e,t){for(;t;){if(t===e)return!0;t=$h(t)}return!1}function i1(e,t,a){if(a)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var SX=1e3,o1="{{",kX="}}",s1="ng-enter",Qc="ng-leave",ds="ng-trigger",hl=".ng-trigger",pf="ng-animating",Xc=".ng-animating";function pa(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Jc(parseFloat(t[1]),t[2])}function Jc(e,t){switch(t){case"s":return e*SX;default:return e}}function pl(e,t,a){return e.hasOwnProperty("duration")?e:CX(e,t,a)}function CX(e,t,a){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof e=="string"){let l=e.match(n);if(l===null)return t.push(cf()),{duration:0,delay:0,easing:""};r=Jc(parseFloat(l[1]),l[2]);let c=l[3];c!=null&&(i=Jc(parseFloat(c),l[4]));let u=l[5];u&&(o=u)}else r=e;if(!a){let l=!1,c=t.length;r<0&&(t.push(qQ()),l=!0),i<0&&(t.push($Q()),l=!0),l&&t.splice(c,0,cf())}return{duration:r,delay:i,easing:o}}function IX(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function $n(e,t,a){t.forEach((n,r)=>{let i=Gh(r);a&&!a.has(r)&&a.set(r,e.style[i]),e.style[i]=n})}function sr(e,t){t.forEach((a,n)=>{let r=Gh(n);e.style[r]=""})}function Ci(e){return Array.isArray(e)?e.length==1?e[0]:HQ(e):e}function DX(e,t,a){let n=t.params||{},r=l1(e);r.length&&r.forEach(i=>{n.hasOwnProperty(i)||a.push(GQ())})}var ed=new RegExp(`${o1}\\s*(.+?)\\s*${kX}`,"g");function l1(e){let t=[];if(typeof e=="string"){let a;for(;a=ed.exec(e);)t.push(a[1]);ed.lastIndex=0}return t}function io(e,t,a){let n=`${e}`,r=n.replace(ed,(i,o)=>{let l=t[o];return l==null&&(a.push(UQ()),l=""),l.toString()});return r==n?e:r}var TX=/-+([a-z0-9])/g;function Gh(e){return e.replace(TX,(...t)=>t[1].toUpperCase())}function NX(e,t){return e===0||t===0}function OX(e,t,a){if(a.size&&t.length){let n=t[0],r=[];if(a.forEach((i,o)=>{n.has(o)||r.push(o),n.set(o,i)}),r.length)for(let i=1;i<t.length;i++){let o=t[i];r.forEach(l=>o.set(l,Uh(e,l)))}}return t}function an(e,t,a){switch(t.type){case Ce.Trigger:return e.visitTrigger(t,a);case Ce.State:return e.visitState(t,a);case Ce.Transition:return e.visitTransition(t,a);case Ce.Sequence:return e.visitSequence(t,a);case Ce.Group:return e.visitGroup(t,a);case Ce.Animate:return e.visitAnimate(t,a);case Ce.Keyframes:return e.visitKeyframes(t,a);case Ce.Style:return e.visitStyle(t,a);case Ce.Reference:return e.visitReference(t,a);case Ce.AnimateChild:return e.visitAnimateChild(t,a);case Ce.AnimateRef:return e.visitAnimateRef(t,a);case Ce.Query:return e.visitQuery(t,a);case Ce.Stagger:return e.visitStagger(t,a);default:throw WQ(t.type)}}function Uh(e,t){return window.getComputedStyle(e)[t]}var MX=(()=>{const t=class t{validateStyleProperty(n){return xX(n)}containsElement(n,r){return r1(n,r)}getParentElement(n){return $h(n)}query(n,r,i){return i1(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,l,c=[],u){return new ro(i,o)}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Ju,u1=(Ju=class{},s(Ju,"NOOP",new MX),Ju),Wh=class{},RX=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),AX=class extends Wh{normalizePropertyName(e,t){return Gh(e)}normalizeStyleValue(e,t,a,n){let r="",i=a.toString().trim();if(RX.has(t)&&a!==0&&a!=="0")if(typeof a=="number")r="px";else{let o=a.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(ZQ())}return i+r}},ml="*";function PX(e,t){let a=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>LX(n,a,t)):a.push(e),a}function LX(e,t,a){if(e[0]==":"){let c=FX(e,a);if(typeof c=="function"){t.push(c);return}e=c}let n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return a.push(oX()),t;let r=n[1],i=n[2],o=n[3];t.push(mf(r,o));let l=r==ml&&o==ml;i[0]=="<"&&!l&&t.push(mf(o,r))}function FX(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,n)=>parseFloat(n)>parseFloat(a);case":decrement":return(a,n)=>parseFloat(n)<parseFloat(a);default:return t.push(sX()),"* => *"}}var hs=new Set(["true","1"]),ps=new Set(["false","0"]);function mf(e,t){let a=hs.has(e)||ps.has(e),n=hs.has(t)||ps.has(t);return(r,i)=>{let o=e==ml||e==r,l=t==ml||t==i;return!o&&a&&typeof r=="boolean"&&(o=r?hs.has(e):ps.has(e)),!l&&n&&typeof i=="boolean"&&(l=i?hs.has(t):ps.has(t)),o&&l}}var c1=":self",jX=new RegExp(`s*${c1}s*,?`,"g");function d1(e,t,a,n){return new VX(e).build(t,a,n)}var ff="",VX=class{constructor(e){s(this,"_driver");this._driver=e}build(e,t,a){let n=new HX(t);return this._resetContextStyleTimingState(n),an(this,Ci(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ff,e.collectedStyles=new Map,e.collectedStyles.set(ff,new Map),e.currentTime=0}visitTrigger(e,t){let a=t.queryCount=0,n=t.depCount=0,r=[],i=[];return e.name.charAt(0)=="@"&&t.errors.push(YQ()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==Ce.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,t))}),l.name=c}else if(o.type==Ce.Transition){let l=this.visitTransition(o,t);a+=l.queryCount,n+=l.depCount,i.push(l)}else t.errors.push(KQ())}),{type:Ce.Trigger,name:e.name,states:r,transitions:i,queryCount:a,depCount:n,options:null}}visitState(e,t){let a=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(a.containsDynamicStyles){let r=new Set,i=n||{};a.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{l1(l).forEach(c=>{i.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(QQ(e.name,[...r.values()]))}return{type:Ce.State,name:e.name,style:a,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let a=an(this,Ci(e.animation),t),n=PX(e.expr,t.errors);return{type:Ce.Transition,matchers:n,animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Ja(e.options)}}visitSequence(e,t){return{type:Ce.Sequence,steps:e.steps.map(a=>an(this,a,t)),options:Ja(e.options)}}visitGroup(e,t){let a=t.currentTime,n=0,r=e.steps.map(i=>{t.currentTime=a;let o=an(this,i,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:Ce.Group,steps:r,options:Ja(e.options)}}visitAnimate(e,t){let a=$X(e.timings,t.errors);t.currentAnimateTimings=a;let n,r=e.styles?e.styles:uf({});if(r.type==Ce.Keyframes)n=this.visitKeyframes(r,t);else{let i=e.styles,o=!1;if(!i){o=!0;let c={};a.easing&&(c.easing=a.easing),i=uf(c)}t.currentTime+=a.duration+a.delay;let l=this.visitStyle(i,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:Ce.Animate,timings:a,style:n,options:null}}visitStyle(e,t){let a=this._makeStyleAst(e,t);return this._validateStyleAst(a,t),a}_makeStyleAst(e,t){let a=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===ga?a.push(o):t.errors.push(XQ()):a.push(new Map(Object.entries(o)));let r=!1,i=null;return a.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(i=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(o1)>=0){r=!0;break}}}),{type:Ce.Style,styles:a,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let a=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;a&&r>0&&(r-=a.duration+a.delay),e.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),d=!0;u&&(r!=n&&r>=u.startTime&&n<=u.endTime&&(t.errors.push(JQ(l,u.startTime,u.endTime)),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:n}),t.options&&DX(o,t.options,t.errors)})})}visitKeyframes(e,t){let a={type:Ce.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(eX()),a;let n=1,r=0,i=[],o=!1,l=!1,c=0,u=e.steps.map(S=>{let T=this._makeStyleAst(S,t),A=T.offset!=null?T.offset:qX(T.styles),O=0;return A!=null&&(r++,O=T.offset=A),l=l||O<0||O>1,o=o||O<c,c=O,i.push(O),T});l&&t.errors.push(tX()),o&&t.errors.push(nX());let d=e.steps.length,m=0;r>0&&r<d?t.errors.push(aX()):r==0&&(m=n/(d-1));let b=d-1,g=t.currentTime,w=t.currentAnimateTimings,x=w.duration;return u.forEach((S,T)=>{let A=m>0?T==b?1:m*T:i[T],O=A*x;t.currentTime=g+w.delay+O,w.duration=O,this._validateStyleAst(S,t),S.offset=A,a.styles.push(S)}),a}visitReference(e,t){return{type:Ce.Reference,animation:an(this,Ci(e.animation),t),options:Ja(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:Ce.AnimateChild,options:Ja(e.options)}}visitAnimateRef(e,t){return{type:Ce.AnimateRef,animation:this.visitReference(e.animation,t),options:Ja(e.options)}}visitQuery(e,t){let a=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,i]=BX(e.selector);t.currentQuerySelector=a.length?a+" "+r:r,on(t.collectedStyles,t.currentQuerySelector,new Map);let o=an(this,Ci(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=a,{type:Ce.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Ja(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(rX());let a=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pl(e.timings,t.errors,!0);return{type:Ce.Stagger,animation:an(this,Ci(e.animation),t),timings:a,options:null}}};function BX(e){let t=!!e.split(/\s*,\s*/).find(a=>a==c1);return t&&(e=e.replace(jX,"")),e=e.replace(/@\*/g,hl).replace(/@\w+/g,a=>hl+"-"+a.slice(1)).replace(/:animating/g,Xc),[e,t]}function zX(e){return e?se({},e):null}var HX=class{constructor(e){s(this,"errors");s(this,"queryCount",0);s(this,"depCount",0);s(this,"currentTransition",null);s(this,"currentQuery",null);s(this,"currentQuerySelector",null);s(this,"currentAnimateTimings",null);s(this,"currentTime",0);s(this,"collectedStyles",new Map);s(this,"options",null);s(this,"unsupportedCSSPropertiesFound",new Set);this.errors=e}};function qX(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(a=>{if(a instanceof Map&&a.has("offset")){let n=a;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let a=e;t=parseFloat(a.get("offset")),a.delete("offset")}return t}function $X(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=pl(e,t).duration;return ju(r,0,"")}let a=e;if(a.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ju(0,0,"");return r.dynamic=!0,r.strValue=a,r}let n=pl(a,t);return ju(n.duration,n.delay,n.easing)}function Ja(e){return e?(e=se({},e),e.params&&(e.params=zX(e.params))):e={},e}function ju(e,t,a){return{duration:e,delay:t,easing:a}}function Zh(e,t,a,n,r,i,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:a,postStyleProps:n,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:l}}var Yh=class{constructor(){s(this,"_map",new Map)}get(e){return this._map.get(e)||[]}append(e,t){let a=this._map.get(e);a||this._map.set(e,a=[]),a.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},GX=1,UX=":enter",WX=new RegExp(UX,"g"),ZX=":leave",YX=new RegExp(ZX,"g");function h1(e,t,a,n,r,i=new Map,o=new Map,l,c,u=[]){return new KX().buildKeyframes(e,t,a,n,r,i,o,l,c,u)}var KX=class{buildKeyframes(e,t,a,n,r,i,o,l,c,u=[]){c=c||new Yh;let d=new QX(e,t,c,n,r,u,[]);d.options=l;let m=l.delay?pa(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([i],null,d.errors,l),an(this,a,d);let b=d.timelines.filter(g=>g.containsAnimation());if(b.length&&o.size){let g;for(let w=b.length-1;w>=0;w--){let x=b[w];if(x.element===t){g=x;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([o],null,d.errors,l)}return b.length?b.map(g=>g.buildKeyframes()):[Zh(t,[],[],[],0,m,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let a=t.subInstructions.get(t.element);if(a){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(a,n,n.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){let a=t.createSubContext(e.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,a),this.visitReference(e.animation,a),t.transformIntoNewTimeline(a.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,a){for(let n of e){let r=n==null?void 0:n.delay;if(r){let i=typeof r=="number"?r:pa(io(r,(n==null?void 0:n.params)??{},t.errors));a.delayNextStep(i)}}}_visitSubInstructions(e,t,a){let n=t.currentTimeline.currentTime,r=a.duration!=null?pa(a.duration):null,i=a.delay!=null?pa(a.delay):null;return r!==0&&e.forEach(o=>{let l=t.appendInstructionToTimeline(o,r,i);n=Math.max(n,l.duration+l.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),an(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let a=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==Ce.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=fl);let i=pa(r.delay);n.delayNextStep(i)}e.steps.length&&(e.steps.forEach(i=>an(this,i,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>a&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let a=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?pa(e.options.delay):0;e.steps.forEach(i=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),an(this,i,o),n=Math.max(n,o.currentTimeline.currentTime),a.push(o.currentTimeline)}),a.forEach(i=>t.currentTimeline.mergeTimelineCollectedStyles(i)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let a=e.strValue,n=t.params?io(a,t.params,t.errors):a;return pl(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let a=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;a.delay&&(t.incrementTime(a.delay),n.snapshotCurrentStyles());let r=e.style;r.type==Ce.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(a.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let a=t.currentTimeline,n=t.currentAnimateTimings;!n&&a.hasCurrentStyleProperties()&&a.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?a.applyEmptyStep(r):a.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let a=t.currentAnimateTimings,n=t.currentTimeline.duration,r=a.duration,i=t.createSubContext().currentTimeline;i.easing=a.easing,e.styles.forEach(o=>{let l=o.offset||0;i.forwardTime(l*r),i.setStyles(o.styles,o.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let a=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?pa(n.delay):0;r&&(t.previousNode.type===Ce.Style||a==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fl);let i=a,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(l=d.currentTimeline),an(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;i=Math.max(i,m)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let a=t.parentContext,n=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1),l=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=a.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;an(this,e.animation,t),t.previousNode=e,a.currentStaggerTime=n.currentTime-u+(n.startTime-a.currentTimeline.startTime)}},fl={},QX=class p1{constructor(t,a,n,r,i,o,l,c){s(this,"_driver");s(this,"element");s(this,"subInstructions");s(this,"_enterClassName");s(this,"_leaveClassName");s(this,"errors");s(this,"timelines");s(this,"parentContext",null);s(this,"currentTimeline");s(this,"currentAnimateTimings",null);s(this,"previousNode",fl);s(this,"subContextCount",0);s(this,"options",{});s(this,"currentQueryIndex",0);s(this,"currentQueryTotal",0);s(this,"currentStaggerTime",0);this._driver=t,this.element=a,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.currentTimeline=c||new m1(this._driver,a,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,a){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=pa(n.duration)),n.delay!=null&&(r.delay=pa(n.delay));let i=n.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(l=>{(!a||!o.hasOwnProperty(l))&&(o[l]=io(i[l],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let a=this.options.params;if(a){let n=t.params={};Object.keys(a).forEach(r=>{n[r]=a[r]})}}return t}createSubContext(t=null,a,n){let r=a||this.element,i=new p1(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=fl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,a,n){let r={duration:a??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},i=new XX(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,a,n,r,i,o){let l=[];if(r&&l.push(this.element),t.length>0){t=t.replace(WX,"."+this._enterClassName),t=t.replace(YX,"."+this._leaveClassName);let c=n!=1,u=this._driver.query(this.element,t,c);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push(...u)}return!i&&l.length==0&&o.push(iX()),l}},m1=class f1{constructor(t,a,n,r){s(this,"_driver");s(this,"element");s(this,"startTime");s(this,"_elementTimelineStylesLookup");s(this,"duration",0);s(this,"easing",null);s(this,"_previousKeyframe",new Map);s(this,"_currentKeyframe",new Map);s(this,"_keyframes",new Map);s(this,"_styleSummary",new Map);s(this,"_localTimelineStyles",new Map);s(this,"_globalTimelineStyles");s(this,"_pendingStyles",new Map);s(this,"_backFill",new Map);s(this,"_currentEmptyStepKeyframe",null);this._driver=t,this.element=a,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+t),a&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,a){return this.applyStylesToKeyframe(),new f1(this._driver,t,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=GX,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,a){this._localTimelineStyles.set(t,a),this._globalTimelineStyles.set(t,a),this._styleSummary.set(t,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[a,n]of this._globalTimelineStyles)this._backFill.set(a,n||ga),this._currentKeyframe.set(a,ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,a,n,r){a&&this._previousKeyframe.set("easing",a);let i=r&&r.params||{},o=JX(t,this._globalTimelineStyles);for(let[l,c]of o){let u=io(c,i,n);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??ga),this._updateStyle(l,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,a)=>{this._currentKeyframe.set(a,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,t)}))}snapshotCurrentStyles(){for(let[t,a]of this._localTimelineStyles)this._pendingStyles.set(t,a),this._updateStyle(t,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let a in this._currentKeyframe)t.push(a);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((a,n)=>{let r=this._styleSummary.get(n);(!r||a.time>r.time)&&this._updateStyle(n,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,a=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((l,c)=>{let u=new Map([...this._backFill,...l]);u.forEach((d,m)=>{d===zh?t.add(m):d===ga&&a.add(m)}),n||u.set("offset",c/this.duration),r.push(u)});let i=[...t.values()],o=[...a.values()];if(n){let l=r[0],c=new Map(l);l.set("offset",0),c.set("offset",1),r=[l,c]}return Zh(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},XX=class extends m1{constructor(t,a,n,r,i,o,l=!1){super(t,a,o.delay);s(this,"keyframes");s(this,"preStyleProps");s(this,"postStyleProps");s(this,"_stretchStartingKeyframe");s(this,"timings");this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=l,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:a,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&a){let i=[],o=n+a,l=a/o,c=new Map(t[0]);c.set("offset",0),i.push(c);let u=new Map(t[0]);u.set("offset",gf(l)),i.push(u);let d=t.length-1;for(let m=1;m<=d;m++){let b=new Map(t[m]),g=b.get("offset"),w=a+g*n;b.set("offset",gf(w/o)),i.push(b)}n=o,a=0,r="",t=i}return Zh(this.element,t,this.preStyleProps,this.postStyleProps,n,a,r,!0)}};function gf(e,t=3){let a=Math.pow(10,t-1);return Math.round(e*a)/a}function JX(e,t){let a=new Map,n;return e.forEach(r=>{if(r==="*"){n??(n=t.keys());for(let i of n)a.set(i,ga)}else for(let[i,o]of r)a.set(i,o)}),a}function vf(e,t,a,n,r,i,o,l,c,u,d,m,b){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:a,fromStyles:i,toState:n,toStyles:o,timelines:l,queriedElements:c,preStyleProps:u,postStyleProps:d,totalTime:m,errors:b}}var Vu={},g1=class{constructor(e,t,a){s(this,"_triggerName");s(this,"ast");s(this,"_stateStyles");this._triggerName=e,this.ast=t,this._stateStyles=a}match(e,t,a,n){return eJ(this.ast.matchers,e,t,a,n)}buildStyles(e,t,a){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e==null?void 0:e.toString())||n),n?n.buildStyles(t,a):new Map}build(e,t,a,n,r,i,o,l,c,u){var _t;let d=[],m=this.ast.options&&this.ast.options.params||Vu,b=o&&o.params||Vu,g=this.buildStyles(a,b,d),w=l&&l.params||Vu,x=this.buildStyles(n,w,d),S=new Set,T=new Map,A=new Map,O=n==="void",Y={params:v1(w,m),delay:(_t=this.ast.options)==null?void 0:_t.delay},ie=u?[]:h1(e,t,this.ast.animation,r,i,g,x,Y,c,d),me=0;return ie.forEach(ot=>{me=Math.max(ot.duration+ot.delay,me)}),d.length?vf(t,this._triggerName,a,n,O,g,x,[],[],T,A,me,d):(ie.forEach(ot=>{let $e=ot.element,ht=on(T,$e,new Set);ot.preStyleProps.forEach(H=>ht.add(H));let Z=on(A,$e,new Set);ot.postStyleProps.forEach(H=>Z.add(H)),$e!==t&&S.add($e)}),vf(t,this._triggerName,a,n,O,g,x,ie,[...S.values()],T,A,me))}};function eJ(e,t,a,n,r){return e.some(i=>i(t,a,n,r))}function v1(e,t){let a=se({},t);return Object.entries(e).forEach(([n,r])=>{r!=null&&(a[n]=r)}),a}var tJ=class{constructor(e,t,a){s(this,"styles");s(this,"defaultParams");s(this,"normalizer");this.styles=e,this.defaultParams=t,this.normalizer=a}buildStyles(e,t){let a=new Map,n=v1(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((i,o)=>{i&&(i=io(i,n,t));let l=this.normalizer.normalizePropertyName(o,t);i=this.normalizer.normalizeStyleValue(o,l,i,t),a.set(o,i)})}),a}};function nJ(e,t,a){return new aJ(e,t,a)}var aJ=class{constructor(e,t,a){s(this,"name");s(this,"ast");s(this,"_normalizer");s(this,"transitionFactories",[]);s(this,"fallbackTransition");s(this,"states",new Map);this.name=e,this.ast=t,this._normalizer=a,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new tJ(n.style,r,a))}),bf(this.states,"true","1"),bf(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new g1(e,n,this.states))}),this.fallbackTransition=rJ(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,a,n){return this.transitionFactories.find(r=>r.match(e,t,a,n))||null}matchStyles(e,t,a){return this.fallbackTransition.buildStyles(e,t,a)}};function rJ(e,t,a){let n=[(o,l)=>!0],r={type:Ce.Sequence,steps:[],options:null},i={type:Ce.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new g1(e,i,t)}function bf(e,t,a){e.has(t)?e.has(a)||e.set(a,e.get(t)):e.has(a)&&e.set(t,e.get(a))}var iJ=new Yh,oJ=class{constructor(e,t,a){s(this,"bodyNode");s(this,"_driver");s(this,"_normalizer");s(this,"_animations",new Map);s(this,"_playersById",new Map);s(this,"players",[]);this.bodyNode=e,this._driver=t,this._normalizer=a}register(e,t){let a=[],n=[],r=d1(this._driver,t,a,n);if(a.length)throw cX();this._animations.set(e,r)}_buildPlayer(e,t,a){let n=e.element,r=a1(this._normalizer,e.keyframes,t,a);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,a={}){let n=[],r=this._animations.get(e),i,o=new Map;if(r?(i=h1(this._driver,t,r,s1,Qc,new Map,new Map,a,iJ,n),i.forEach(u=>{let d=on(o,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(n.push(dX()),i=[]),n.length)throw hX();o.forEach((u,d)=>{u.forEach((m,b)=>{u.set(b,this._driver.computeStyle(d,b,ga))})});let l=i.map(u=>{let d=o.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Ra(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let a=this.players.indexOf(t);a>=0&&this.players.splice(a,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw pX();return t}listen(e,t,a,n){let r=qh(t,"","","");return Hh(this._getPlayer(e),a,r,n),()=>{}}command(e,t,a,n){if(a=="register"){this.register(e,n[0]);return}if(a=="create"){let i=n[0]||{};this.create(e,t,i);return}let r=this._getPlayer(e);switch(a){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},yf="ng-animate-queued",sJ=".ng-animate-queued",Bu="ng-animate-disabled",lJ=".ng-animate-disabled",uJ="ng-star-inserted",cJ=".ng-star-inserted",dJ=[],b1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dn="__ng_removed",td=class{constructor(e,t=""){s(this,"namespaceId");s(this,"value");s(this,"options");this.namespaceId=t;let a=e&&e.hasOwnProperty("value"),n=a?e.value:e;if(this.value=gJ(n),a){let r=e,{value:i}=r,o=f7(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){let t=e.params;if(t){let a=this.options.params;Object.keys(t).forEach(n=>{a[n]==null&&(a[n]=t[n])})}}},zi="void",zu=new td(zi),pJ=class{constructor(e,t,a){s(this,"id");s(this,"hostElement");s(this,"_engine");s(this,"players",[]);s(this,"_triggers",new Map);s(this,"_queue",[]);s(this,"_elementListeners",new Map);s(this,"_hostClassName");this.id=e,this.hostElement=t,this._engine=a,this._hostClassName="ng-tns-"+e,vn(t,this._hostClassName)}listen(e,t,a,n){if(!this._triggers.has(t))throw mX();if(a==null||a.length==0)throw fX();if(!vJ(a))throw gX();let r=on(this._elementListeners,e,[]),i={name:t,phase:a,callback:n};r.push(i);let o=on(this._engine.statesByElement,e,new Map);return o.has(t)||(vn(e,ds),vn(e,ds+"-"+t),o.set(t,zu)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(i);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vX();return t}trigger(e,t,a,n=!0){let r=this._getTrigger(t),i=new nd(this.id,t,e),o=this._engine.statesByElement.get(e);o||(vn(e,ds),vn(e,ds+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new td(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=zu),c.value!==zi&&l.value===c.value){if(!_J(l.params,c.params)){let b=[],g=r.matchStyles(l.value,l.params,b),w=r.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{sr(e,g),$n(e,w)})}return}let u=on(this._engine.playersByElement,e,[]);u.forEach(b=>{b.namespaceId==this.id&&b.triggerName==t&&b.queued&&b.destroy()});let d=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!d){if(!n)return;d=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:c,player:i,isFallbackTransition:m}),m||(vn(e,yf),i.onStart(()=>{Nr(e,yf)})),i.onDone(()=>{let b=this.players.indexOf(i);b>=0&&this.players.splice(b,1);let g=this._engine.playersByElement.get(e);if(g){let w=g.indexOf(i);w>=0&&g.splice(w,1)}}),this.players.push(i),u.push(i),i}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,a)=>{this._elementListeners.set(a,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(a=>a.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let a=this._engine.driver.query(e,hl,!0);a.forEach(n=>{if(n[Dn])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(i=>i.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>a.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,a,n){let r=this._engine.statesByElement.get(e),i=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(i.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,zi,n);u&&o.push(u)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,i),a&&Ra(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(t&&a){let n=new Set;t.forEach(r=>{let i=r.name;if(n.has(i))return;n.add(i);let o=this._triggers.get(i).fallbackTransition,l=a.get(i)||zu,c=new td(zi),u=new nd(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:o,fromState:l,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(a.totalAnimations){let r=a.players.length?a.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let i=e;for(;i=i.parentNode;)if(a.statesByElement.get(i)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)a.markElementAsRemoved(this.id,e,!1,t);else{let r=e[Dn];(!r||r===b1)&&(a.afterFlush(()=>this.clearElementCache(e)),a.destroyInnerAnimations(e),a._onRemovalComplete(e,t))}}insertNode(e,t){vn(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(a=>{let n=a.player;if(n.destroyed)return;let r=a.element,i=this._elementListeners.get(r);i&&i.forEach(o=>{if(o.name==a.triggerName){let l=qh(r,a.triggerName,a.fromState.value,a.toState.value);l._data=e,Hh(a.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(a)}),this._queue=[],t.sort((a,n)=>{let r=a.transition.ast.depCount,i=n.transition.ast.depCount;return r==0||i==0?r-i:this._engine.driver.containsElement(a.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mJ=class{constructor(e,t,a){s(this,"bodyNode");s(this,"driver");s(this,"_normalizer");s(this,"players",[]);s(this,"newHostElements",new Map);s(this,"playersByElement",new Map);s(this,"playersByQueriedElement",new Map);s(this,"statesByElement",new Map);s(this,"disabledNodes",new Set);s(this,"totalAnimations",0);s(this,"totalQueuedPlayers",0);s(this,"_namespaceLookup",{});s(this,"_namespaceList",[]);s(this,"_flushFns",[]);s(this,"_whenQuietFns",[]);s(this,"namespacesByHostElement",new Map);s(this,"collectedEnterElements",[]);s(this,"collectedLeaveElements",[]);s(this,"onRemovalComplete",(e,t)=>{});this.bodyNode=e,this.driver=t,this._normalizer=a}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(a=>{a.queued&&e.push(a)})}),e}createNamespace(e,t){let a=new pJ(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(a,t):(this.newHostElements.set(t,a),this.collectEnterElement(t)),this._namespaceLookup[e]=a}_balanceNamespaceList(e,t){let a=this._namespaceList,n=this.namespacesByHostElement;if(a.length-1>=0){let r=!1,i=this.driver.getParentElement(t);for(;i;){let o=n.get(i);if(o){let l=a.indexOf(o);a.splice(l+1,0,e),r=!0;break}i=this.driver.getParentElement(i)}r||a.unshift(e)}else a.push(e);return n.set(t,e),e}register(e,t){let a=this._namespaceLookup[e];return a||(a=this.createNamespace(e,t)),a}registerTrigger(e,t,a){let n=this._namespaceLookup[e];n&&n.register(t,a)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let a=this._fetchNamespace(e);this.namespacesByHostElement.delete(a.hostElement);let n=this._namespaceList.indexOf(a);n>=0&&this._namespaceList.splice(n,1),a.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,a=this.statesByElement.get(e);if(a){for(let n of a.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,a,n){if(ms(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,a,n),!0}return!1}insertNode(e,t,a,n){if(!ms(t))return;let r=t[Dn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let i=this.collectedLeaveElements.indexOf(t);i>=0&&this.collectedLeaveElements.splice(i,1)}if(e){let i=this._fetchNamespace(e);i&&i.insertNode(t,a)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),vn(e,Bu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Nr(e,Bu))}removeNode(e,t,a){if(ms(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,a):this.markElementAsRemoved(e,t,!1,a);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,a)}else this._onRemovalComplete(t,a)}markElementAsRemoved(e,t,a,n,r){this.collectedLeaveElements.push(t),t[Dn]={namespaceId:e,setForRemoval:n,hasAnimation:a,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,a,n,r){return ms(t)?this._fetchNamespace(e).listen(t,a,n,r):()=>{}}_buildInstruction(e,t,a,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,a,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,hl,!0);t.forEach(a=>this.destroyActiveAnimationsForElement(a)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Xc,!0),t.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(a=>{a.queued?a.markedForDestroy=!0:a.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(a=>a.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ra(this.players).onDone(()=>e());e()})}processLeaveNode(e){var a;let t=e[Dn];if(t&&t.setForRemoval){if(e[Dn]=b1,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(a=e.classList)!=null&&a.contains(Bu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lJ,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((a,n)=>this._balanceNamespaceList(a,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++){let n=this.collectedEnterElements[a];vn(n,uJ)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let a=[];try{t=this._flushAnimations(a,e)}finally{for(let n=0;n<a.length;n++)a[n]()}}else for(let a=0;a<this.collectedLeaveElements.length;a++){let n=this.collectedLeaveElements[a];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){let a=this._whenQuietFns;this._whenQuietFns=[],t.length?Ra(t).onDone(()=>{a.forEach(n=>n())}):a.forEach(n=>n())}}reportError(e){throw bX()}_flushAnimations(e,t){let a=new Yh,n=[],r=new Map,i=[],o=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(L=>{u.add(L);let j=this.driver.query(L,sJ,!0);for(let U=0;U<j.length;U++)u.add(j[U])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),b=xf(m,this.collectedEnterElements),g=new Map,w=0;b.forEach((L,j)=>{let U=s1+w++;g.set(j,U),L.forEach(Ee=>vn(Ee,U))});let x=[],S=new Set,T=new Set;for(let L=0;L<this.collectedLeaveElements.length;L++){let j=this.collectedLeaveElements[L],U=j[Dn];U&&U.setForRemoval&&(x.push(j),S.add(j),U.hasAnimation?this.driver.query(j,cJ,!0).forEach(Ee=>S.add(Ee)):T.add(j))}let A=new Map,O=xf(m,Array.from(S));O.forEach((L,j)=>{let U=Qc+w++;A.set(j,U),L.forEach(Ee=>vn(Ee,U))}),e.push(()=>{b.forEach((L,j)=>{let U=g.get(j);L.forEach(Ee=>Nr(Ee,U))}),O.forEach((L,j)=>{let U=A.get(j);L.forEach(Ee=>Nr(Ee,U))}),x.forEach(L=>{this.processLeaveNode(L)})});let Y=[],ie=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(t).forEach(j=>{let U=j.player,Ee=j.element;if(Y.push(U),this.collectedEnterElements.length){let Ge=Ee[Dn];if(Ge&&Ge.setForMove){if(Ge.previousTriggersValues&&Ge.previousTriggersValues.has(j.triggerName)){let Lt=Ge.previousTriggersValues.get(j.triggerName),wt=this.statesByElement.get(j.element);if(wt&&wt.has(j.triggerName)){let jn=wt.get(j.triggerName);jn.value=Lt,wt.set(j.triggerName,jn)}}U.destroy();return}}let He=!d||!this.driver.containsElement(d,Ee),Pt=A.get(Ee),De=g.get(Ee),Me=this._buildInstruction(j,a,De,Pt,He);if(Me.errors&&Me.errors.length){ie.push(Me);return}if(He){U.onStart(()=>sr(Ee,Me.fromStyles)),U.onDestroy(()=>$n(Ee,Me.toStyles)),n.push(U);return}if(j.isFallbackTransition){U.onStart(()=>sr(Ee,Me.fromStyles)),U.onDestroy(()=>$n(Ee,Me.toStyles)),n.push(U);return}let Je=[];Me.timelines.forEach(Ge=>{Ge.stretchStartingKeyframe=!0,this.disabledNodes.has(Ge.element)||Je.push(Ge)}),Me.timelines=Je,a.append(Ee,Me.timelines);let Sn={instruction:Me,player:U,element:Ee};i.push(Sn),Me.queriedElements.forEach(Ge=>on(o,Ge,[]).push(U)),Me.preStyleProps.forEach((Ge,Lt)=>{if(Ge.size){let wt=l.get(Lt);wt||l.set(Lt,wt=new Set),Ge.forEach((jn,Ia)=>wt.add(Ia))}}),Me.postStyleProps.forEach((Ge,Lt)=>{let wt=c.get(Lt);wt||c.set(Lt,wt=new Set),Ge.forEach((jn,Ia)=>wt.add(Ia))})});if(ie.length){let L=[];ie.forEach(j=>{L.push(yX(j.triggerName,j.errors))}),Y.forEach(j=>j.destroy()),this.reportError(L)}let me=new Map,_t=new Map;i.forEach(L=>{let j=L.element;a.has(j)&&(_t.set(j,j),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,me))}),n.forEach(L=>{let j=L.element;this._getPreviousPlayers(j,!1,L.namespaceId,L.triggerName,null).forEach(U=>{on(me,j,[]).push(U),U.destroy()})});let ot=x.filter(L=>Ef(L,l,c)),$e=new Map;wf($e,this.driver,T,c,ga).forEach(L=>{Ef(L,l,c)&&ot.push(L)});let ht=new Map;b.forEach((L,j)=>{wf(ht,this.driver,new Set(L),l,zh)}),ot.forEach(L=>{let j=$e.get(L),U=ht.get(L);$e.set(L,new Map([...(j==null?void 0:j.entries())??[],...(U==null?void 0:U.entries())??[]]))});let Z=[],H=[],ge={};i.forEach(L=>{let{element:j,player:U,instruction:Ee}=L;if(a.has(j)){if(u.has(j)){U.onDestroy(()=>$n(j,Ee.toStyles)),U.disabled=!0,U.overrideTotalTime(Ee.totalTime),n.push(U);return}let He=ge;if(_t.size>1){let De=j,Me=[];for(;De=De.parentNode;){let Je=_t.get(De);if(Je){He=Je;break}Me.push(De)}Me.forEach(Je=>_t.set(Je,He))}let Pt=this._buildAnimation(U.namespaceId,Ee,me,r,ht,$e);if(U.setRealPlayer(Pt),He===ge)Z.push(U);else{let De=this.playersByElement.get(He);De&&De.length&&(U.parentPlayer=Ra(De)),n.push(U)}}else sr(j,Ee.fromStyles),U.onDestroy(()=>$n(j,Ee.toStyles)),H.push(U),u.has(j)&&n.push(U)}),H.forEach(L=>{let j=r.get(L.element);if(j&&j.length){let U=Ra(j);L.setRealPlayer(U)}}),n.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L<x.length;L++){let j=x[L],U=j[Dn];if(Nr(j,Qc),U&&U.hasAnimation)continue;let Ee=[];if(o.size){let Pt=o.get(j);Pt&&Pt.length&&Ee.push(...Pt);let De=this.driver.query(j,Xc,!0);for(let Me=0;Me<De.length;Me++){let Je=o.get(De[Me]);Je&&Je.length&&Ee.push(...Je)}}let He=Ee.filter(Pt=>!Pt.destroyed);He.length?bJ(this,j,He):this.processLeaveNode(j)}return x.length=0,Z.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();let j=this.players.indexOf(L);this.players.splice(j,1)}),L.play()}),Z}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,a,n,r){let i=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(i=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==zi;o.forEach(c=>{c.queued||!l&&c.triggerName!=n||i.push(c)})}}return(a||n)&&(i=i.filter(o=>!(a&&a!=o.namespaceId||n&&n!=o.triggerName))),i}_beforeAnimationBuild(e,t,a){let n=t.triggerName,r=t.element,i=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,u=c!==r,d=on(a,c,[]);this._getPreviousPlayers(c,u,i,o,t.toState).forEach(m=>{let b=m.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),m.destroy(),d.push(m)})}sr(r,t.fromStyles)}_buildAnimation(e,t,a,n,r,i){let o=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,m=t.timelines.map(g=>{let w=g.element;u.add(w);let x=w[Dn];if(x&&x.removedBeforeQueried)return new ro(g.duration,g.delay);let S=w!==l,T=yJ((a.get(w)||dJ).map(me=>me.getRealPlayer())).filter(me=>{let _t=me;return _t.element?_t.element===w:!1}),A=r.get(w),O=i.get(w),Y=a1(this._normalizer,g.keyframes,A,O),ie=this._buildPlayer(g,Y,T);if(g.subTimeline&&n&&d.add(w),S){let me=new nd(e,o,w);me.setRealPlayer(ie),c.push(me)}return ie});c.forEach(g=>{on(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>fJ(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>vn(g,pf));let b=Ra(m);return b.onDestroy(()=>{u.forEach(g=>Nr(g,pf)),$n(l,t.toStyles)}),d.forEach(g=>{on(n,g,[]).push(b)}),b}_buildPlayer(e,t,a){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,a):new ro(e.duration,e.delay)}},nd=class{constructor(e,t,a){s(this,"namespaceId");s(this,"triggerName");s(this,"element");s(this,"_player",new ro);s(this,"_containsRealPlayer",!1);s(this,"_queuedCallbacks",new Map);s(this,"destroyed",!1);s(this,"parentPlayer",null);s(this,"markedForDestroy",!1);s(this,"disabled",!1);s(this,"queued",!0);s(this,"totalTime",0);this.namespaceId=e,this.triggerName=t,this.element=a}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,a)=>{t.forEach(n=>Hh(e,a,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){on(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function fJ(e,t,a){let n=e.get(t);if(n){if(n.length){let r=n.indexOf(a);n.splice(r,1)}n.length==0&&e.delete(t)}return n}function gJ(e){return e??null}function ms(e){return e&&e.nodeType===1}function vJ(e){return e=="start"||e=="done"}function _f(e,t){let a=e.style.display;return e.style.display=t??"none",a}function wf(e,t,a,n,r){let i=[];a.forEach(c=>i.push(_f(c)));let o=[];n.forEach((c,u)=>{let d=new Map;c.forEach(m=>{let b=t.computeStyle(u,m,r);d.set(m,b),(!b||b.length==0)&&(u[Dn]=hJ,o.push(u))}),e.set(u,d)});let l=0;return a.forEach(c=>_f(c,i[l++])),o}function xf(e,t){let a=new Map;if(e.forEach(l=>a.set(l,[])),t.length==0)return a;let n=1,r=new Set(t),i=new Map;function o(l){if(!l)return n;let c=i.get(l);if(c)return c;let u=l.parentNode;return a.has(u)?c=u:r.has(u)?c=n:c=o(u),i.set(l,c),c}return t.forEach(l=>{let c=o(l);c!==n&&a.get(c).push(l)}),a}function vn(e,t){var a;(a=e.classList)==null||a.add(t)}function Nr(e,t){var a;(a=e.classList)==null||a.remove(t)}function bJ(e,t,a){Ra(a).onDone(()=>e.processLeaveNode(t))}function yJ(e){let t=[];return y1(e,t),t}function y1(e,t){for(let a=0;a<e.length;a++){let n=e[a];n instanceof n1?y1(n.players,t):t.push(n)}}function _J(e,t){let a=Object.keys(e),n=Object.keys(t);if(a.length!=n.length)return!1;for(let r=0;r<a.length;r++){let i=a[r];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}function Ef(e,t,a){let n=a.get(e);if(!n)return!1;let r=t.get(e);return r?n.forEach(i=>r.add(i)):t.set(e,n),a.delete(e),!0}var ad=class{constructor(e,t,a){s(this,"_driver");s(this,"_normalizer");s(this,"_transitionEngine");s(this,"_timelineEngine");s(this,"_triggerCache",{});s(this,"onRemovalComplete",(e,t)=>{});this._driver=t,this._normalizer=a,this._transitionEngine=new mJ(e.body,t,a),this._timelineEngine=new oJ(e.body,t,a),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,a,n,r){let i=e+"-"+n,o=this._triggerCache[i];if(!o){let l=[],c=[],u=d1(this._driver,r,l,c);if(l.length)throw lX();o=nJ(n,u,this._normalizer),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,a,n){this._transitionEngine.insertNode(e,t,a,n)}onRemove(e,t,a){this._transitionEngine.removeNode(e,t,a)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,a,n){if(a.charAt(0)=="@"){let[r,i]=df(a),o=n;this._timelineEngine.command(r,t,i,o)}else this._transitionEngine.trigger(e,t,a,n)}listen(e,t,a,n,r){if(a.charAt(0)=="@"){let[i,o]=df(a);return this._timelineEngine.listen(i,t,o,r)}return this._transitionEngine.listen(e,t,a,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function wJ(e,t){let a=null,n=null;return Array.isArray(t)&&t.length?(a=Hu(t[0]),t.length>1&&(n=Hu(t[t.length-1]))):t instanceof Map&&(a=Hu(t)),a||n?new xJ(e,a,n):null}var xJ=(()=>{const t=class t{constructor(n,r,i){s(this,"_element");s(this,"_startStyles");s(this,"_endStyles");s(this,"_state",0);s(this,"_initialStyles");this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&$n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($n(this._element,this._initialStyles),this._endStyles&&($n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(sr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sr(this._element,this._endStyles),this._endStyles=null),$n(this._element,this._initialStyles),this._state=3)}};s(t,"initialStylesByElement",new WeakMap);let e=t;return e})();function Hu(e){let t=null;return e.forEach((a,n)=>{EJ(n)&&(t=t||new Map,t.set(n,a))}),t}function EJ(e){return e==="display"||e==="position"}var Sf=class{constructor(e,t,a,n){s(this,"element");s(this,"keyframes");s(this,"options");s(this,"_specialStyles");s(this,"_onDoneFns",[]);s(this,"_onStartFns",[]);s(this,"_onDestroyFns",[]);s(this,"_duration");s(this,"_delay");s(this,"_initialized",!1);s(this,"_finished",!1);s(this,"_started",!1);s(this,"_destroyed",!1);s(this,"_finalKeyframe");s(this,"_originalOnDoneFns",[]);s(this,"_originalOnStartFns",[]);s(this,"domPlayer");s(this,"time",0);s(this,"parentPlayer",null);s(this,"currentSnapshot",new Map);this.element=e,this.keyframes=t,this.options=a,this._specialStyles=n,this._duration=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(a=>{t.push(Object.fromEntries(a))}),t}_triggerWebAnimation(e,t,a){return e.animate(this._convertKeyframesToObject(t),a)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{a!=="offset"&&e.set(a,this._finished?t:Uh(this.element,a))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(a=>a()),t.length=0}},SJ=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return r1(e,t)}getParentElement(e){return $h(e)}query(e,t,a){return i1(e,t,a)}computeStyle(e,t,a){return Uh(e,t)}animate(e,t,a,n,r,i=[]){let o=n==0?"both":"forwards",l={duration:a,delay:n,fill:o};r&&(l.easing=r);let c=new Map,u=i.filter(b=>b instanceof Sf);NX(a,n)&&u.forEach(b=>{b.currentSnapshot.forEach((g,w)=>c.set(w,g))});let d=IX(t).map(b=>new Map(b));d=OX(e,d,c);let m=wJ(e,d);return new Sf(e,d,l,m)}},As="@",_1="@.disabled",w1=class{constructor(e,t,a,n){s(this,"namespaceId");s(this,"delegate");s(this,"engine");s(this,"_onDestroy");s(this,"ɵtype",0);this.namespaceId=e,this.delegate=t,this.engine=a,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){var t,a;(a=(t=this.delegate).destroyNode)==null||a.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,a,n=!0){this.delegate.insertBefore(e,t,a),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,a){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,a,n){this.delegate.setAttribute(e,t,a,n)}removeAttribute(e,t,a){this.delegate.removeAttribute(e,t,a)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,a,n){this.delegate.setStyle(e,t,a,n)}removeStyle(e,t,a){this.delegate.removeStyle(e,t,a)}setProperty(e,t,a){t.charAt(0)==As&&t==_1?this.disableAnimations(e,!!a):this.delegate.setProperty(e,t,a)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,a,n){return this.delegate.listen(e,t,a,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},kJ=class extends w1{constructor(t,a,n,r,i){super(a,n,r,i);s(this,"factory");this.factory=t,this.namespaceId=a}setProperty(t,a,n){a.charAt(0)==As?a.charAt(1)=="."&&a==_1?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,a.slice(1),n):this.delegate.setProperty(t,a,n)}listen(t,a,n,r){if(a.charAt(0)==As){let i=CJ(t),o=a.slice(1),l="";return o.charAt(0)!=As&&([o,l]=IJ(o)),this.engine.listen(this.namespaceId,i,o,l,c=>{let u=c._data||-1;this.factory.scheduleListenerCallback(u,n,c)})}return this.delegate.listen(t,a,n,r)}};function CJ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function IJ(e){let t=e.indexOf("."),a=e.substring(0,t),n=e.slice(t+1);return[a,n]}var DJ=class{constructor(e,t,a){s(this,"delegate");s(this,"engine");s(this,"_zone");s(this,"_currentId",0);s(this,"_microtaskId",1);s(this,"_animationCallbacksBuffer",[]);s(this,"_rendererCache",new Map);s(this,"_cdRecurDepth",0);this.delegate=e,this.engine=t,this._zone=a,t.onRemovalComplete=(n,r)=>{r==null||r.removeChild(null,n)}}createRenderer(e,t){var l;let a="",n=this.delegate.createRenderer(e,t);if(!e||!((l=t==null?void 0:t.data)!=null&&l.animation)){let c=this._rendererCache,u=c.get(n);if(!u){let d=()=>c.delete(n);u=new w1(a,n,this.engine,d),c.set(n,u)}return u}let r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,i,e,c.name,c)};return t.data.animation.forEach(o),new kJ(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(a));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[i,o]=r;i(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,a])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){var t,a;this.engine.flush(),(a=(t=this.delegate).componentReplaced)==null||a.call(t,e)}},TJ=(()=>{const t=class t extends ad{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}};s(t,"ɵfac",function(n){return new(n||t)(te(Le),te(u1),te(Wh))}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function NJ(){return new AX}function OJ(e,t,a){return new DJ(e,t,a)}var MJ=[{provide:Wh,useFactory:NJ},{provide:ad,useClass:TJ},{provide:Pn,useFactory:OJ,deps:[qc,ad,je]}],RJ=[{provide:u1,useFactory:()=>new SJ},{provide:pi,useFactory:()=>"BrowserAnimations"},...MJ];function AJ(){return yr("NgEagerAnimations"),[...RJ]}var PJ=(()=>{const t=class t extends t1{constructor(n){super(),this.translate=n,this.getRangeLabel=(r,i,o)=>{if(o===0||i===0)return`0 / ${o}`;o=Math.max(o,0);let l=r*i,c=l<o?Math.min(l+i,o):l+i;return`${l+1} - ${c} / ${o}`},this.getAndInitTranslations=()=>{this.nextPageLabel=this.translate.instant("commons.matPaginator.nextPage"),this.previousPageLabel=this.translate.instant("commons.matPaginator.prevPage"),this.firstPageLabel=this.translate.instant("commons.matPaginator.firstPage"),this.lastPageLabel=this.translate.instant("commons.matPaginator.lastPage"),this.itemsPerPageLabel=this.translate.instant("commons.matPaginator.itemsPerPage"),this.getRangeLabel=this.getRangeLabel.bind(this),this.changes.next()},this.translate.onLangChange.subscribe(()=>{this.getAndInitTranslations()}),this.getAndInitTranslations()}};t.ɵfac=function(n){return new(n||t)(te(Ca))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})(),x1=6048e5,LJ=864e5,FJ=6e4,jJ=36e5,VJ=1e3,kf=Symbol.for("constructDateFrom");function Tt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kf in e?e[kf](t):e instanceof Date?new e.constructor(t):new Date(t)}function kt(e,t){return Tt(t||e,e)}function E1(e,t,a){let n=kt(e,a==null?void 0:a.in);return isNaN(t)?Tt((a==null?void 0:a.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var BJ={};function vi(){return BJ}function qa(e,t){var l,c,u,d;let a=vi(),n=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??a.weekStartsOn??((d=(u=a.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,r=kt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?7:0)+i-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}function ii(e,t){return qa(e,Ut(se({},t),{weekStartsOn:1}))}function S1(e,t){let a=kt(e,t==null?void 0:t.in),n=a.getFullYear(),r=Tt(a,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=ii(r),o=Tt(a,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let l=ii(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function gl(e){let t=kt(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function zJ(e,...t){let a=Tt.bind(null,t.find(n=>typeof n=="object"));return t.map(a)}function Cf(e,t){let a=kt(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function HJ(e,t,a){let[n,r]=zJ(a==null?void 0:a.in,e,t),i=Cf(n),o=Cf(r),l=+i-gl(i),c=+o-gl(o);return Math.round((l-c)/LJ)}function qJ(e,t){let a=S1(e,t),n=Tt(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),ii(n)}function $J(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function GJ(e){return!(!$J(e)&&typeof e!="number"||isNaN(+kt(e)))}function UJ(e,t){let a=kt(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}var WJ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZJ=(e,t,a)=>{let n,r=WJ[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function qu(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var YJ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},KJ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QJ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},XJ={date:qu({formats:YJ,defaultWidth:"full"}),time:qu({formats:KJ,defaultWidth:"full"}),dateTime:qu({formats:QJ,defaultWidth:"full"})},JJ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eee=(e,t,a,n)=>JJ[e];function Ii(e){return(t,a)=>{let n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&e.formattingValues){let o=e.defaultFormattingWidth||e.defaultWidth,l=a!=null&&a.width?String(a.width):o;r=e.formattingValues[l]||e.formattingValues[o]}else{let o=e.defaultWidth,l=a!=null&&a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}let i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}var tee={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nee={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aee={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ree={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iee={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oee={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},see=(e,t)=>{let a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},lee={ordinalNumber:see,era:Ii({values:tee,defaultWidth:"wide"}),quarter:Ii({values:nee,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ii({values:aee,defaultWidth:"wide"}),day:Ii({values:ree,defaultWidth:"wide"}),dayPeriod:Ii({values:iee,defaultWidth:"wide",formattingValues:oee,defaultFormattingWidth:"wide"})};function Di(e){return(t,a={})=>{let n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;let o=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?cee(l,m=>m.test(o)):uee(l,m=>m.test(o)),u;u=e.valueCallback?e.valueCallback(c):c,u=a.valueCallback?a.valueCallback(u):u;let d=t.slice(o.length);return{value:u,rest:d}}}function uee(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function cee(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function dee(e){return(t,a={})=>{let n=t.match(e.matchPattern);if(!n)return null;let r=n[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=a.valueCallback?a.valueCallback(o):o;let l=t.slice(r.length);return{value:o,rest:l}}}var hee=/^(\d+)(th|st|nd|rd)?/i,pee=/\d+/i,mee={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fee={any:[/^b/i,/^(a|c)/i]},gee={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vee={any:[/1/i,/2/i,/3/i,/4/i]},bee={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yee={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_ee={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wee={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xee={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Eee={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},See={ordinalNumber:dee({matchPattern:hee,parsePattern:pee,valueCallback:e=>parseInt(e,10)}),era:Di({matchPatterns:mee,defaultMatchWidth:"wide",parsePatterns:fee,defaultParseWidth:"any"}),quarter:Di({matchPatterns:gee,defaultMatchWidth:"wide",parsePatterns:vee,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Di({matchPatterns:bee,defaultMatchWidth:"wide",parsePatterns:yee,defaultParseWidth:"any"}),day:Di({matchPatterns:_ee,defaultMatchWidth:"wide",parsePatterns:wee,defaultParseWidth:"any"}),dayPeriod:Di({matchPatterns:xee,defaultMatchWidth:"any",parsePatterns:Eee,defaultParseWidth:"any"})},k1={code:"en-US",formatDistance:ZJ,formatLong:XJ,formatRelative:eee,localize:lee,match:See,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kee(e,t){let a=kt(e,t==null?void 0:t.in);return HJ(a,UJ(a))+1}function C1(e,t){let a=kt(e,t==null?void 0:t.in),n=+ii(a)-+qJ(a);return Math.round(n/x1)+1}function Kh(e,t){var d,m,b,g;let a=kt(e,t==null?void 0:t.in),n=a.getFullYear(),r=vi(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(b=r.locale)==null?void 0:b.options)==null?void 0:g.firstWeekContainsDate)??1,o=Tt((t==null?void 0:t.in)||e,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);let l=qa(o,t),c=Tt((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);let u=qa(c,t);return+a>=+l?n+1:+a>=+u?n:n-1}function Cee(e,t){var o,l,c,u;let a=vi(),n=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??a.firstWeekContainsDate??((u=(c=a.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,r=Kh(e,t),i=Tt((t==null?void 0:t.in)||e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),qa(i,t)}function I1(e,t){let a=kt(e,t==null?void 0:t.in),n=+qa(a,t)-+Cee(a,t);return Math.round(n/x1)+1}function Be(e,t){let a=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return a+n}var Na={y(e,t){let a=e.getFullYear(),n=a>0?a:1-a;return Be(t==="yy"?n%100:n,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):Be(a+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){let a=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,a-3));return Be(r,t.length)}},Dr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},If={G:function(e,t,a){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let n=e.getFullYear(),r=n>0?n:1-n;return a.ordinalNumber(r,{unit:"year"})}return Na.y(e,t)},Y:function(e,t,a,n){let r=Kh(e,n),i=r>0?r:1-r;if(t==="YY"){let o=i%100;return Be(o,2)}return t==="Yo"?a.ordinalNumber(i,{unit:"year"}):Be(i,t.length)},R:function(e,t){let a=S1(e);return Be(a,t.length)},u:function(e,t){let a=e.getFullYear();return Be(a,t.length)},Q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Be(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Be(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){let n=e.getMonth();switch(t){case"M":case"MM":return Na.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Be(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){let r=I1(e,n);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},I:function(e,t,a){let n=C1(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):Be(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):Na.d(e,t)},D:function(e,t,a){let n=kee(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):Be(n,t.length)},E:function(e,t,a){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Be(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});case"eeee":default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){let r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Be(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});case"cccc":default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){let n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return Be(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){let n=e.getHours(),r;switch(n===12?r=Dr.noon:n===0?r=Dr.midnight:r=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){let n=e.getHours(),r;switch(n>=17?r=Dr.evening:n>=12?r=Dr.afternoon:n>=4?r=Dr.morning:r=Dr.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return Na.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):Na.H(e,t)},K:function(e,t,a){let n=e.getHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):Be(n,t.length)},k:function(e,t,a){let n=e.getHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):Be(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):Na.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):Na.s(e,t)},S:function(e,t){return Na.S(e,t)},X:function(e,t,a){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Tf(n);case"XXXX":case"XX":return nr(n);case"XXXXX":case"XXX":default:return nr(n,":")}},x:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"x":return Tf(n);case"xxxx":case"xx":return nr(n);case"xxxxx":case"xxx":default:return nr(n,":")}},O:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Df(n,":");case"OOOO":default:return"GMT"+nr(n,":")}},z:function(e,t,a){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Df(n,":");case"zzzz":default:return"GMT"+nr(n,":")}},t:function(e,t,a){let n=Math.trunc(+e/1e3);return Be(n,t.length)},T:function(e,t,a){return Be(+e,t.length)}};function Df(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),i=n%60;return i===0?a+String(r):a+String(r)+t+Be(i,2)}function Tf(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):nr(e,t)}function nr(e,t=""){let a=e>0?"-":"+",n=Math.abs(e),r=Be(Math.trunc(n/60),2),i=Be(n%60,2);return a+r+t+i}var Nf=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Iee=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],n=a[1],r=a[2];if(!r)return Nf(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Nf(n,t)).replace("{{time}}",D1(r,t))},rd={p:D1,P:Iee},Dee=/^D+$/,Tee=/^Y+$/,Nee=["D","DD","YY","YYYY"];function T1(e){return Dee.test(e)}function N1(e){return Tee.test(e)}function id(e,t,a){let n=Oee(e,t,a);if(console.warn(n),Nee.includes(e))throw new RangeError(n)}function Oee(e,t,a){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Mee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ree=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Aee=/^'([^]*?)'?$/,Pee=/''/g,Lee=/[a-zA-Z]/;function O1(e,t,a){var d,m,b,g,w,x,S,T;let n=vi(),r=(a==null?void 0:a.locale)??n.locale??k1,i=(a==null?void 0:a.firstWeekContainsDate)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(b=n.locale)==null?void 0:b.options)==null?void 0:g.firstWeekContainsDate)??1,o=(a==null?void 0:a.weekStartsOn)??((x=(w=a==null?void 0:a.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((T=(S=n.locale)==null?void 0:S.options)==null?void 0:T.weekStartsOn)??0,l=kt(e,a==null?void 0:a.in);if(!GJ(l))throw new RangeError("Invalid time value");let c=t.match(Ree).map(A=>{let O=A[0];if(O==="p"||O==="P"){let Y=rd[O];return Y(A,r.formatLong)}return A}).join("").match(Mee).map(A=>{if(A==="''")return{isToken:!1,value:"'"};let O=A[0];if(O==="'")return{isToken:!1,value:Fee(A)};if(If[O])return{isToken:!0,value:A};if(O.match(Lee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:A}});r.localize.preprocessor&&(c=r.localize.preprocessor(l,c));let u={firstWeekContainsDate:i,weekStartsOn:o,locale:r};return c.map(A=>{if(!A.isToken)return A.value;let O=A.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&N1(O)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&T1(O))&&id(O,t,String(e));let Y=If[O[0]];return Y(l,O,r.localize,u)}).join("")}function Fee(e){let t=e.match(Aee);return t?t[1].replace(Pee,"'"):e}function M1(){return Object.assign({},vi())}function jee(e,t){let a=kt(e,t==null?void 0:t.in).getDay();return a===0?7:a}function Vee(e,t){let a=Bee(t)?new t(0):Tt(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}function Bee(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var zee=10,R1=class{constructor(){s(this,"subPriority",0)}validate(e,t){return!0}},Hee=class extends R1{constructor(e,t,a,n,r){super(),this.value=e,this.validateValue=t,this.setValue=a,this.priority=n,r&&(this.subPriority=r)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,a){return this.setValue(e,t,this.value,a)}},qee=class extends R1{constructor(t,a){super();s(this,"priority",zee);s(this,"subPriority",-1);this.context=t||(n=>Tt(a,n))}set(t,a){return a.timestampIsSet?t:Tt(t,Vee(t,this.context))}},Fe=class{run(e,t,a,n){let r=this.parse(e,t,a,n);return r?{setter:new Hee(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(e,t,a){return!0}},$ee=class extends Fe{constructor(){super(...arguments);s(this,"priority",140);s(this,"incompatibleTokens",["R","u","t","T"])}parse(t,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,a,n){return a.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Gn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function dt(e,t){return e&&{value:t(e.value),rest:e.rest}}function et(e,t){let a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function Un(e,t){let a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};let n=a[1]==="+"?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0;return{value:n*(r*jJ+i*FJ+o*VJ),rest:t.slice(a[0].length)}}function A1(e){return et(ct.anyDigitsSigned,e)}function rt(e,t){switch(e){case 1:return et(ct.singleDigit,t);case 2:return et(ct.twoDigits,t);case 3:return et(ct.threeDigits,t);case 4:return et(ct.fourDigits,t);default:return et(new RegExp("^\\d{1,"+e+"}"),t)}}function vl(e,t){switch(e){case 1:return et(ct.singleDigitSigned,t);case 2:return et(ct.twoDigitsSigned,t);case 3:return et(ct.threeDigitsSigned,t);case 4:return et(ct.fourDigitsSigned,t);default:return et(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Qh(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function P1(e,t){let a=t>0,n=a?t:1-t,r;if(n<=50)r=e||100;else{let i=n+50,o=Math.trunc(i/100)*100,l=e>=i%100;r=e+o-(l?100:0)}return a?r:1-r}function L1(e){return e%400===0||e%4===0&&e%100!==0}var Gee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="yy"});switch(a){case"y":return dt(rt(4,t),r);case"yo":return dt(n.ordinalNumber(t,{unit:"year"}),r);default:return dt(rt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n){let r=t.getFullYear();if(n.isTwoDigitYear){let o=P1(n.year,r);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}let i=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Uee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,a,n){let r=i=>({year:i,isTwoDigitYear:a==="YY"});switch(a){case"Y":return dt(rt(4,t),r);case"Yo":return dt(n.ordinalNumber(t,{unit:"year"}),r);default:return dt(rt(a.length,t),r)}}validate(t,a){return a.isTwoDigitYear||a.year>0}set(t,a,n,r){let i=Kh(t,r);if(n.isTwoDigitYear){let l=P1(n.year,i);return t.setFullYear(l,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),qa(t,r)}let o=!("era"in a)||a.era===1?n.year:1-n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),qa(t,r)}},Wee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,a){return vl(a==="R"?4:a.length,t)}set(t,a,n){let r=Tt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ii(r)}},Zee=class extends Fe{constructor(){super(...arguments);s(this,"priority",130);s(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,a){return vl(a==="u"?4:a.length,t)}set(t,a,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}},Yee=class extends Fe{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"Q":case"QQ":return rt(a.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Kee=class extends Fe{constructor(){super(...arguments);s(this,"priority",120);s(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"q":case"qq":return rt(a.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=1&&a<=4}set(t,a,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}},Qee=class extends Fe{constructor(){super(...arguments);s(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);s(this,"priority",110)}parse(t,a,n){let r=i=>i-1;switch(a){case"M":return dt(et(ct.month,t),r);case"MM":return dt(rt(2,t),r);case"Mo":return dt(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},Xee=class extends Fe{constructor(){super(...arguments);s(this,"priority",110);s(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,a,n){let r=i=>i-1;switch(a){case"L":return dt(et(ct.month,t),r);case"LL":return dt(rt(2,t),r);case"Lo":return dt(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};function Jee(e,t,a){let n=kt(e,a==null?void 0:a.in),r=I1(n,a)-t;return n.setDate(n.getDate()-r*7),kt(n,a==null?void 0:a.in)}var ete=class extends Fe{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,a,n){switch(a){case"w":return et(ct.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n,r){return qa(Jee(t,n,r),r)}};function tte(e,t,a){let n=kt(e,a==null?void 0:a.in),r=C1(n,a)-t;return n.setDate(n.getDate()-r*7),n}var nte=class extends Fe{constructor(){super(...arguments);s(this,"priority",100);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,a,n){switch(a){case"I":return et(ct.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=53}set(t,a,n){return ii(tte(t,n))}},ate=[31,28,31,30,31,30,31,31,30,31,30,31],rte=[31,29,31,30,31,30,31,31,30,31,30,31],ite=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"subPriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"d":return et(ct.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return rt(a.length,t)}}validate(t,a){let n=t.getFullYear(),r=L1(n),i=t.getMonth();return r?a>=1&&a<=rte[i]:a>=1&&a<=ate[i]}set(t,a,n){return t.setDate(n),t.setHours(0,0,0,0),t}},ote=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"subpriority",1);s(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,a,n){switch(a){case"D":case"DD":return et(ct.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return rt(a.length,t)}}validate(t,a){let n=t.getFullYear();return L1(n)?a>=1&&a<=366:a>=1&&a<=365}set(t,a,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}};function Xh(e,t,a){var d,m,b,g;let n=vi(),r=(a==null?void 0:a.weekStartsOn)??((m=(d=a==null?void 0:a.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((g=(b=n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??0,i=kt(e,a==null?void 0:a.in),o=i.getDay(),l=(t%7+7)%7,c=7-r,u=t<0||t>6?t-(o+c)%7:(l+c)%7-(o+c)%7;return E1(i,u,a)}var ste=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}},lte=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"e":case"ee":return dt(rt(a.length,t),i);case"eo":return dt(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}},ute=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,a,n,r){let i=o=>{let l=Math.floor((o-1)/7)*7;return(o+r.weekStartsOn+6)%7+l};switch(a){case"c":case"cc":return dt(rt(a.length,t),i);case"co":return dt(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,a){return a>=0&&a<=6}set(t,a,n,r){return t=Xh(t,n,r),t.setHours(0,0,0,0),t}};function cte(e,t,a){let n=kt(e,a==null?void 0:a.in),r=jee(n,a),i=t-r;return E1(n,i,a)}var dte=class extends Fe{constructor(){super(...arguments);s(this,"priority",90);s(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,a,n){let r=i=>i===0?7:i;switch(a){case"i":case"ii":return rt(a.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return dt(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return dt(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return dt(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return dt(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,a){return a>=1&&a<=7}set(t,a,n){return t=cte(t,n),t.setHours(0,0,0,0),t}},hte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},pte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},mte=class extends Fe{constructor(){super(...arguments);s(this,"priority",80);s(this,"incompatibleTokens",["a","b","t","T"])}parse(t,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,a,n){return t.setHours(Qh(n),0,0,0),t}},fte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,a,n){switch(a){case"h":return et(ct.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=12}set(t,a,n){let r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):!r&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}},gte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,a,n){switch(a){case"H":return et(ct.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=23}set(t,a,n){return t.setHours(n,0,0,0),t}},vte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,a,n){switch(a){case"K":return et(ct.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=11}set(t,a,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}},bte=class extends Fe{constructor(){super(...arguments);s(this,"priority",70);s(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,a,n){switch(a){case"k":return et(ct.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return rt(a.length,t)}}validate(t,a){return a>=1&&a<=24}set(t,a,n){let r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}},yte=class extends Fe{constructor(){super(...arguments);s(this,"priority",60);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"m":return et(ct.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setMinutes(n,0,0),t}},_te=class extends Fe{constructor(){super(...arguments);s(this,"priority",50);s(this,"incompatibleTokens",["t","T"])}parse(t,a,n){switch(a){case"s":return et(ct.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return rt(a.length,t)}}validate(t,a){return a>=0&&a<=59}set(t,a,n){return t.setSeconds(n,0),t}},wte=class extends Fe{constructor(){super(...arguments);s(this,"priority",30);s(this,"incompatibleTokens",["t","T"])}parse(t,a){let n=r=>Math.trunc(r*Math.pow(10,-a.length+3));return dt(rt(a.length,t),n)}set(t,a,n){return t.setMilliseconds(n),t}},xte=class extends Fe{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","x"])}parse(t,a){switch(a){case"X":return Un(Gn.basicOptionalMinutes,t);case"XX":return Un(Gn.basic,t);case"XXXX":return Un(Gn.basicOptionalSeconds,t);case"XXXXX":return Un(Gn.extendedOptionalSeconds,t);case"XXX":default:return Un(Gn.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Tt(t,t.getTime()-gl(t)-n)}},Ete=class extends Fe{constructor(){super(...arguments);s(this,"priority",10);s(this,"incompatibleTokens",["t","T","X"])}parse(t,a){switch(a){case"x":return Un(Gn.basicOptionalMinutes,t);case"xx":return Un(Gn.basic,t);case"xxxx":return Un(Gn.basicOptionalSeconds,t);case"xxxxx":return Un(Gn.extendedOptionalSeconds,t);case"xxx":default:return Un(Gn.extended,t)}}set(t,a,n){return a.timestampIsSet?t:Tt(t,t.getTime()-gl(t)-n)}},Ste=class extends Fe{constructor(){super(...arguments);s(this,"priority",40);s(this,"incompatibleTokens","*")}parse(t){return A1(t)}set(t,a,n){return[Tt(t,n*1e3),{timestampIsSet:!0}]}},kte=class extends Fe{constructor(){super(...arguments);s(this,"priority",20);s(this,"incompatibleTokens","*")}parse(t){return A1(t)}set(t,a,n){return[Tt(t,n),{timestampIsSet:!0}]}},Cte={G:new $ee,y:new Gee,Y:new Uee,R:new Wee,u:new Zee,Q:new Yee,q:new Kee,M:new Qee,L:new Xee,w:new ete,I:new nte,d:new ite,D:new ote,E:new ste,e:new lte,c:new ute,i:new dte,a:new hte,b:new pte,B:new mte,h:new fte,H:new gte,K:new vte,k:new bte,m:new yte,s:new _te,S:new wte,X:new xte,x:new Ete,t:new Ste,T:new kte},Ite=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dte=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tte=/^'([^]*?)'?$/,Nte=/''/g,Ote=/\S/,Mte=/[a-zA-Z]/;function Rte(e,t,a,n){var S,T,A,O;let r=()=>Tt(a,NaN),i=M1(),o=i.locale??k1,l=i.firstWeekContainsDate??((T=(S=i.locale)==null?void 0:S.options)==null?void 0:T.firstWeekContainsDate)??1,c=i.weekStartsOn??((O=(A=i.locale)==null?void 0:A.options)==null?void 0:O.weekStartsOn)??0,u={firstWeekContainsDate:l,weekStartsOn:c,locale:o},d=[new qee(n==null?void 0:n.in,a)],m=t.match(Dte).map(Y=>{let ie=Y[0];if(ie in rd){let me=rd[ie];return me(Y,o.formatLong)}return Y}).join("").match(Ite),b=[];for(let Y of m){N1(Y)&&id(Y,t,e),T1(Y)&&id(Y,t,e);let ie=Y[0],me=Cte[ie];if(me){let{incompatibleTokens:_t}=me;if(Array.isArray(_t)){let $e=b.find(ht=>_t.includes(ht.token)||ht.token===ie);if($e)throw new RangeError(`The format string mustn't contain \`${$e.fullToken}\` and \`${Y}\` at the same time`)}else if(me.incompatibleTokens==="*"&&b.length>0)throw new RangeError(`The format string mustn't contain \`${Y}\` and any other token at the same time`);b.push({token:ie,fullToken:Y});let ot=me.run(e,Y,o.match,u);if(!ot)return r();d.push(ot.setter),e=ot.rest}else{if(ie.match(Mte))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(Y==="''"?Y="'":ie==="'"&&(Y=Ate(Y)),e.indexOf(Y)===0)e=e.slice(Y.length);else return r()}}if(e.length>0&&Ote.test(e))return r();let g=d.map(Y=>Y.priority).sort((Y,ie)=>ie-Y).filter((Y,ie,me)=>me.indexOf(Y)===ie).map(Y=>d.filter(ie=>ie.priority===Y).sort((ie,me)=>me.subPriority-ie.subPriority)).map(Y=>Y[0]),w=kt(a,n==null?void 0:n.in);if(isNaN(+w))return r();let x={};for(let Y of g){if(!Y.validate(w,u))return r();let ie=Y.set(w,x,u);Array.isArray(ie)?(w=ie[0],Object.assign(x,ie[1])):w=ie}return w}function Ate(e){return e.match(Tte)[1].replace(Nte,"'")}var D=function(e){return e.SEPARATOR="separator",e.PERCENT="percent",e.IP="IP",e.CPF_CNPJ="CPF_CNPJ",e.MONTH="M",e.MONTHS="M0",e.MINUTE="m",e.HOUR="h",e.HOURS="H",e.MINUTES="m0",e.HOURS_HOUR="Hh",e.SECONDS="s0",e.HOURS_MINUTES_SECONDS="Hh:m0:s0",e.EMAIL_MASK="A*@A*.A*",e.HOURS_MINUTES="Hh:m0",e.MINUTES_SECONDS="m0:s0",e.DAYS_MONTHS_YEARS="d0/M0/0000",e.DAYS_MONTHS="d0/M0",e.DAYS="d0",e.DAY="d",e.SECOND="s",e.LETTER_S="S",e.DOT=".",e.COMMA=",",e.CURLY_BRACKETS_LEFT="{",e.CURLY_BRACKETS_RIGHT="}",e.MINUS="-",e.OR="||",e.HASH="#",e.EMPTY_STRING="",e.SYMBOL_STAR="*",e.SYMBOL_QUESTION="?",e.SLASH="/",e.WHITE_SPACE=" ",e.NUMBER_ZERO="0",e.NUMBER_NINE="9",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.DOUBLE_ZERO="00",e}(D||{}),Jh=new K("ngx-mask config"),F1=new K("new ngx-mask config"),j1=new K("initial ngx-mask config"),Pte={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:null,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new Ft,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}};D.HOURS_MINUTES_SECONDS,D.HOURS_MINUTES,D.MINUTES_SECONDS;D.PERCENT,D.HOURS_HOUR,D.SECONDS,D.MINUTES,D.SEPARATOR,D.DAYS_MONTHS_YEARS,D.DAYS_MONTHS,D.DAYS,D.MONTHS;var Lte=(()=>{const t=class t{constructor(){s(this,"_config",C(Jh));s(this,"dropSpecialCharacters",this._config.dropSpecialCharacters);s(this,"hiddenInput",this._config.hiddenInput);s(this,"showTemplate");s(this,"clearIfNotMatch",this._config.clearIfNotMatch);s(this,"specialCharacters",this._config.specialCharacters);s(this,"patterns",this._config.patterns);s(this,"prefix",this._config.prefix);s(this,"suffix",this._config.suffix);s(this,"thousandSeparator",this._config.thousandSeparator);s(this,"decimalMarker",this._config.decimalMarker);s(this,"customPattern");s(this,"showMaskTyped",this._config.showMaskTyped);s(this,"placeHolderCharacter",this._config.placeHolderCharacter);s(this,"validation",this._config.validation);s(this,"separatorLimit",this._config.separatorLimit);s(this,"allowNegativeNumbers",this._config.allowNegativeNumbers);s(this,"leadZeroDateTime",this._config.leadZeroDateTime);s(this,"leadZero",this._config.leadZero);s(this,"apm",this._config.apm);s(this,"inputTransformFn",this._config.inputTransformFn);s(this,"outputTransformFn",this._config.outputTransformFn);s(this,"keepCharacterPositions",this._config.keepCharacterPositions);s(this,"_shift",new Set);s(this,"plusOnePosition",!1);s(this,"maskExpression","");s(this,"actualValue","");s(this,"showKeepCharacterExp","");s(this,"shownMaskExpression","");s(this,"deletedSpecialCharacter",!1);s(this,"ipError");s(this,"cpfCnpjError");s(this,"_formatWithSeparators",(n,r,i,o)=>{var g;let l=[],c="";if(Array.isArray(i)){let w=new RegExp(i.map(x=>"[\\^$.|?*+()".indexOf(x)>=0?`\\${x}`:x).join("|"));l=n.split(w),c=((g=n.match(w))==null?void 0:g[0])??D.EMPTY_STRING}else l=n.split(i),c=i;let u=l.length>1?`${c}${l[1]}`:D.EMPTY_STRING,d=l[0]??D.EMPTY_STRING,m=this.separatorLimit.replace(/\s/g,D.EMPTY_STRING);m&&+m&&(d[0]===D.MINUS?d=`-${d.slice(1,d.length).slice(0,m.length)}`:d=d.slice(0,m.length));let b=/(\d+)(\d{3})/;for(;r&&b.test(d);)d=d.replace(b,"$1"+r+"$2");return typeof o>"u"?d+u:o===0?d:d+u.substring(0,o+1)});s(this,"percentage",n=>{let r=n.replace(",","."),i=Number(this.allowNegativeNumbers&&n.includes(D.MINUS)?r.slice(1,n.length):r);return!isNaN(i)&&i>=0&&i<=100});s(this,"getPrecision",n=>{let r=n.split(D.DOT);return r.length>1?Number(r[r.length-1]):1/0});s(this,"checkAndRemoveSuffix",n=>{var r,i,o,l;for(let c=((r=this.suffix)==null?void 0:r.length)-1;c>=0;c--){let u=this.suffix.substring(c,(i=this.suffix)==null?void 0:i.length);if(n.includes(u)&&c!==((o=this.suffix)==null?void 0:o.length)-1&&(c-1<0||!n.includes(this.suffix.substring(c-1,(l=this.suffix)==null?void 0:l.length))))return n.replace(u,D.EMPTY_STRING)}return n});s(this,"checkInputPrecision",(n,r,i)=>{var c;let o=n,l=i;if(r<1/0){Array.isArray(l)&&(l=l.find(g=>g!==this.thousandSeparator)||l[0]);let u=new RegExp(this._charToRegExpExpression(l)+`\\d{${r}}.*$`),d=o.match(u),m=(d&&((c=d[0])==null?void 0:c.length))??0;if(m-1>r){let b=m-1-r;o=o.substring(0,o.length-b)}r===0&&this._compareOrIncludes(o[o.length-1],l,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o})}applyMaskWithPattern(n,r){let[i,o]=r;return this.customPattern=o,this.applyMask(n,i)}applyMask(n,r,i=0,o=!1,l=!1,c=()=>{}){var ot,$e,ht;if(!r||typeof n!="string")return D.EMPTY_STRING;let u=0,d="",m=!1,b=!1,g=1,w=!1,x=n,S=i;x.slice(0,this.prefix.length)===this.prefix&&(x=x.slice(this.prefix.length,x.length)),this.suffix&&x.length>0&&(x=this.checkAndRemoveSuffix(x)),x==="("&&this.prefix&&(x="");let T=x.toString().split(D.EMPTY_STRING);if(this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS&&(d+=x.slice(u,u+1)),r===D.IP){let Z=x.split(D.DOT);this.ipError=this._validIP(Z),r="099.099.099.099"}let A=[];for(let Z=0;Z<x.length;Z++)(ot=x[Z])!=null&&ot.match("\\d")&&A.push(x[Z]??D.EMPTY_STRING);if(r===D.CPF_CNPJ&&(this.cpfCnpjError=A.length!==11&&A.length!==14,A.length>11?r="00.000.000/0000-00":r="000.000.000-00"),r.startsWith(D.PERCENT)){if(x.match("[a-z]|[A-Z]")||x.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!l){x=this._stripToDecimal(x);let ge=this.getPrecision(r);x=this.checkInputPrecision(x,ge,this.decimalMarker)}let Z=typeof this.decimalMarker=="string"?this.decimalMarker:D.DOT;if(x.indexOf(Z)>0&&!this.percentage(x.substring(0,x.indexOf(Z)))){let ge=x.substring(0,x.indexOf(Z)-1);this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS&&!l&&(ge=x.substring(0,x.indexOf(Z))),x=`${ge}${x.substring(x.indexOf(Z),x.length)}`}let H="";this.allowNegativeNumbers&&x.slice(u,u+1)===D.MINUS?H=`${D.MINUS}${x.slice(u+1,u+x.length)}`:H=x,this.percentage(H)?d=this._splitPercentZero(x):d=this._splitPercentZero(x.substring(0,x.length-1))}else if(r.startsWith(D.SEPARATOR)){(x.match("[wа-яА-Я]")||x.match("[ЁёА-я]")||x.match("[a-z]|[A-Z]")||x.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||x.match("[^A-Za-z0-9,]"))&&(x=this._stripToDecimal(x));let Z=this.getPrecision(r),H=Array.isArray(this.decimalMarker)?this.thousandSeparator===D.DOT?D.COMMA:D.DOT:this.decimalMarker;if(Z===0?x=this.allowNegativeNumbers?x.length>2&&x[0]===D.MINUS&&x[1]===D.NUMBER_ZERO&&x[2]!==this.thousandSeparator&&x[2]!==D.COMMA&&x[2]!==D.DOT?"-"+x.slice(2,x.length):x[0]===D.NUMBER_ZERO&&x.length>1&&x[1]!==this.thousandSeparator&&x[1]!==D.COMMA&&x[1]!==D.DOT?x.slice(1,x.length):x:x.length>1&&x[0]===D.NUMBER_ZERO&&x[1]!==this.thousandSeparator&&x[1]!==D.COMMA&&x[1]!==D.DOT?x.slice(1,x.length):x:(x[0]===H&&x.length>1&&(x=D.NUMBER_ZERO+x.slice(0,x.length+1),this.plusOnePosition=!0),x[0]===D.NUMBER_ZERO&&x[1]!==H&&x[1]!==this.thousandSeparator&&(x=x.length>1?x.slice(0,1)+H+x.slice(1,x.length+1):x,this.plusOnePosition=!0),this.allowNegativeNumbers&&x[0]===D.MINUS&&(x[1]===H||x[1]===D.NUMBER_ZERO)&&(x=x[1]===H&&x.length>2?x.slice(0,1)+D.NUMBER_ZERO+x.slice(1,x.length):x[1]===D.NUMBER_ZERO&&x.length>2&&x[2]!==H?x.slice(0,2)+H+x.slice(2,x.length):x,this.plusOnePosition=!0)),l){let De=x.slice(this._findFirstNonZeroDigitIndex(x),x.length),Me=x[S]===D.NUMBER_ZERO||x[S]===H,Je=x[0]===D.NUMBER_ZERO,Sn=x[0]===D.MINUS,Ge=x[0]===this.thousandSeparator,Lt=x[1]===H,wt=x[1]===D.NUMBER_ZERO,jn=x[2]===H;Je&&Lt&&Me&&S<2&&(x=De),Sn&&wt&&jn&&Me&&S<3&&(x=D.MINUS+De),De!==D.MINUS&&(S===0&&(Je||Ge)||this.allowNegativeNumbers&&S===1&&Sn&&!wt)&&(x=Sn?D.MINUS+De:De)}let ge=this._charToRegExpExpression(this.thousandSeparator),L='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(ge,"");if(Array.isArray(this.decimalMarker))for(let De of this.decimalMarker)L=L.replace(this._charToRegExpExpression(De),D.EMPTY_STRING);else L=L.replace(this._charToRegExpExpression(this.decimalMarker),"");let j=new RegExp("["+L+"]");x.match(j)&&(x=x.substring(0,x.length-1)),x=this.checkInputPrecision(x,Z,this.decimalMarker);let U=x.replace(new RegExp(ge,"g"),"");d=this._formatWithSeparators(U,this.thousandSeparator,this.decimalMarker,Z);let Ee=d.indexOf(D.COMMA)-x.indexOf(D.COMMA),He=d.length-x.length,Pt=l&&d.length<n.length&&this.separatorLimit;if((d[S-1]===this.thousandSeparator||d[S-this.prefix.length])&&this.prefix&&l)S=S-1;else if(He>0&&d[S]!==this.thousandSeparator||Pt){b=!0;let De=0;do this._shift.add(S+De),De++;while(De<He)}else d[S-1]===this.thousandSeparator||He===-4||He===-3||d[S]===this.thousandSeparator?(this._shift.clear(),this._shift.add(S-1)):Ee!==0&&S>0&&!(d.indexOf(D.COMMA)>=S&&S>3)||!(d.indexOf(D.DOT)>=S&&S>3)&&He<=0?(this._shift.clear(),b=!0,g=He,S+=He,this._shift.add(S)):this._shift.clear()}else for(let Z=0,H=T[0];Z<T.length&&u!==r.length;Z++,H=T[Z]??D.EMPTY_STRING){let ge=D.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)&&r[u+1]===D.SYMBOL_QUESTION)d+=H,u+=2;else if(r[u+1]===D.SYMBOL_STAR&&m&&this._checkSymbolMask(H,r[u+2]??D.EMPTY_STRING))d+=H,u+=3,m=!1;else if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)&&r[u+1]===D.SYMBOL_STAR&&!ge)d+=H,m=!0;else if(r[u+1]===D.SYMBOL_QUESTION&&this._checkSymbolMask(H,r[u+2]??D.EMPTY_STRING))d+=H,u+=3;else if(this._checkSymbolMask(H,r[u]??D.EMPTY_STRING)){if(r[u]===D.HOURS&&(this.apm?Number(H)>9:Number(H)>2)){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}if(r[u]===D.HOUR&&(this.apm?d.length===1&&Number(d)>1||d==="1"&&Number(H)>2||x.slice(u-1,u).length===1&&Number(x.slice(u-1,u))>2||x.slice(u-1,u)==="1"&&Number(H)>2:d==="2"&&Number(H)>3||(d.slice(u-2,u)==="2"||d.slice(u-3,u)==="2"||d.slice(u-4,u)==="2"||d.slice(u-1,u)==="2")&&Number(H)>3&&u>10)){S=S+1,u+=1,Z--;continue}if((r[u]===D.MINUTE||r[u]===D.SECOND)&&Number(H)>5){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}let L=31,j=x[u],U=x[u+1],Ee=x[u+2],He=x[u-1],Pt=x[u-2],De=x.slice(u-3,u-1),Me=x.slice(u-1,u+1),Je=x.slice(u,u+2),Sn=x.slice(u-2,u);if(r[u]===D.DAY){let Ge=r.slice(0,2)===D.MONTHS,Lt=r.slice(0,2)===D.MONTHS&&this.specialCharacters.includes(Pt);if(Number(H)>3&&this.leadZeroDateTime||!Ge&&(Number(Je)>L||Number(Me)>L||this.specialCharacters.includes(U))||(Lt?Number(Me)>L||!this.specialCharacters.includes(j)&&this.specialCharacters.includes(Ee)||this.specialCharacters.includes(j):Number(Je)>L||this.specialCharacters.includes(U)&&!l)){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}if(r[u]===D.MONTH){let Ge=u===0&&(Number(H)>2||Number(Je)>12||this.specialCharacters.includes(U)&&!l),Lt=r.slice(u+2,u+3),wt=De.includes(Lt)&&r.includes("d0")&&(this.specialCharacters.includes(Pt)&&Number(Me)>12&&!this.specialCharacters.includes(j)||this.specialCharacters.includes(j)),jn=Number(De)<=L&&!this.specialCharacters.includes(De)&&this.specialCharacters.includes(He)&&(Number(Je)>12||this.specialCharacters.includes(U)),Ia=Number(Je)>12&&u===5||this.specialCharacters.includes(U)&&u===5,Bo=Number(De)>L&&!this.specialCharacters.includes(De)&&!this.specialCharacters.includes(Sn)&&Number(Sn)>12&&r.includes("d0"),zo=Number(De)<=L&&!this.specialCharacters.includes(De)&&!this.specialCharacters.includes(He)&&Number(Me)>12;if(Number(H)>1&&this.leadZeroDateTime||Ge||wt||zo||Bo||jn||Ia&&!this.leadZeroDateTime){S=this.leadZeroDateTime?S:S+1,u+=1,this._shiftStep(r,u,T.length),Z--,this.leadZeroDateTime&&(d+="0");continue}}d+=H,u++}else this.specialCharacters.includes(H)&&r[u]===H?(d+=H,u++):this.specialCharacters.indexOf(r[u]??D.EMPTY_STRING)!==-1?(d+=r[u],u++,this._shiftStep(r,u,T.length),Z--):r[u]===D.NUMBER_NINE&&this.showMaskTyped?this._shiftStep(r,u,T.length):this.patterns[r[u]??D.EMPTY_STRING]&&(($e=this.patterns[r[u]??D.EMPTY_STRING])!=null&&$e.optional)?(T[u]&&r!=="099.099.099.099"&&r!=="000.000.000-00"&&r!=="00.000.000/0000-00"&&!r.match(/^9+\.0+$/)&&!((ht=this.patterns[r[u]??D.EMPTY_STRING])!=null&&ht.optional)&&(d+=T[u]),r.includes(D.NUMBER_NINE+D.SYMBOL_STAR)&&r.includes(D.NUMBER_ZERO+D.SYMBOL_STAR)&&u++,u++,Z--):this.maskExpression[u+1]===D.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[u+2]??D.EMPTY_STRING)&&this._findSpecialChar(H)===this.maskExpression[u+2]&&m||this.maskExpression[u+1]===D.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[u+2]??D.EMPTY_STRING)&&this._findSpecialChar(H)===this.maskExpression[u+2]&&m?(u+=3,d+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(w=!0)}d.length+1===r.length&&this.specialCharacters.indexOf(r[r.length-1]??D.EMPTY_STRING)!==-1&&(d+=r[r.length-1]);let O=S+1;for(;this._shift.has(O);)g++,O++;let Y=o&&!r.startsWith(D.SEPARATOR)?u:this._shift.has(S)?g:0;w&&Y--,c(Y,b),g<0&&this._shift.clear();let ie=!1;l&&(ie=T.every(Z=>this.specialCharacters.includes(Z)));let me=`${this.prefix}${ie?D.EMPTY_STRING:d}${this.showMaskTyped?"":this.suffix}`;d.length===0&&(me=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`);let _t=x.length===1&&this.specialCharacters.includes(r[0])&&x!==r[0];if(!this._checkSymbolMask(x,r[1])&&_t)return"";if(d.includes(D.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(l&&d===D.MINUS)return"";me=`${D.MINUS}${this.prefix}${d.split(D.MINUS).join(D.EMPTY_STRING)}${this.suffix}`}return me}_findDropSpecialChar(n){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===n):this._findSpecialChar(n)}_findSpecialChar(n){return this.specialCharacters.find(r=>r===n)}_checkSymbolMask(n,r){var i,o;return this.patterns=this.customPattern?this.customPattern:this.patterns,(((i=this.patterns[r])==null?void 0:i.pattern)&&((o=this.patterns[r])==null?void 0:o.pattern.test(n)))??!1}_stripToDecimal(n){return n.split(D.EMPTY_STRING).filter((r,i)=>{let o=typeof this.decimalMarker=="string"?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||r===D.MINUS&&i===0&&this.allowNegativeNumbers}).join(D.EMPTY_STRING)}_charToRegExpExpression(n){return n&&(n===" "?"\\s":"[\\^$.|?*+()".indexOf(n)>=0?`\\${n}`:n)}_shiftStep(n,r,i){let o=/[*?]/g.test(n.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(n,r,i){return Array.isArray(r)?r.filter(o=>o!==i).includes(n):n===r}_validIP(n){return!(n.length===4&&!n.some((r,i)=>n.length!==i+1?r===D.EMPTY_STRING||Number(r)>255:r===D.EMPTY_STRING||Number(r.substring(0,3))>255))}_splitPercentZero(n){if(n===D.MINUS&&this.allowNegativeNumbers)return n;let r=typeof this.decimalMarker=="string"?n.indexOf(this.decimalMarker):n.indexOf(D.DOT),i=this.allowNegativeNumbers&&n.includes(D.MINUS)?"-":"";if(r===-1){let o=parseInt(i?n.slice(1,n.length):n,10);return isNaN(o)?D.EMPTY_STRING:`${i}${o}`}else{let o=parseInt(n.replace("-","").substring(0,r),10),l=n.substring(r+1),c=isNaN(o)?"":o.toString(),u=typeof this.decimalMarker=="string"?this.decimalMarker:D.DOT;return c===D.EMPTY_STRING?D.EMPTY_STRING:`${i}${c}${u}${l}`}}_findFirstNonZeroDigitIndex(n){for(let r=0;r<n.length;r++){let i=n[r];if(i&&i>="1"&&i<="9")return r}return-1}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})(),Fte=(()=>{const t=class t extends Lte{constructor(){super(...arguments);s(this,"isNumberValue",!1);s(this,"maskIsShown","");s(this,"selStart",null);s(this,"selEnd",null);s(this,"writingValue",!1);s(this,"maskChanged",!1);s(this,"_maskExpressionArray",[]);s(this,"triggerOnMaskChange",!1);s(this,"_previousValue","");s(this,"_currentValue","");s(this,"_emitValue",!1);s(this,"_start");s(this,"_end");s(this,"onChange",r=>{});s(this,"_elementRef",C(At,{optional:!0}));s(this,"document",C(Le));s(this,"_config",C(Jh));s(this,"_renderer",C(mi,{optional:!0}))}applyMask(r,i,o=0,l=!1,c=!1,u=()=>{}){if(!i)return r!==this.actualValue?this.actualValue:r;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():D.EMPTY_STRING,this.maskExpression===D.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||D.HASH)),this.maskExpression===D.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(r||D.HASH)),!r&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let d=r&&typeof this.selStart=="number"?r[this.selStart]??D.EMPTY_STRING:D.EMPTY_STRING,m="",b=o;if(this.hiddenInput!==null&&!this.writingValue){let S=r&&r.length===1?r.split(D.EMPTY_STRING):this.actualValue.split(D.EMPTY_STRING);typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):r!==D.EMPTY_STRING&&S.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(r.length>S.length?S.splice(this.selStart,0,d):r.length<S.length&&(S.length-r.length===1?c?S.splice(this.selStart-1,1):S.splice(r.length-1,1):S.splice(this.selStart,this.selEnd-this.selStart))):S=[],this.showMaskTyped&&!this.hiddenInput&&(m=this.removeMask(r)),m=this.actualValue.length&&S.length<=r.length?this.shiftTypedSymbols(S.join(D.EMPTY_STRING)):r}if(l&&(this.hiddenInput||!this.hiddenInput)&&(m=r),c&&this.specialCharacters.indexOf(this.maskExpression[b]??D.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(m=this._currentValue),this.deletedSpecialCharacter&&b&&(this.specialCharacters.includes(this.actualValue.slice(b,b+1))?b=b+1:i.slice(b-1,b+1)!==D.MONTHS&&(b=b-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(m=this.removeMask(r)),this.maskChanged?m=r:m=m&&m.length?m:r,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!l&&!this.writingValue){let S=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(S),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let g=super.applyMask(m,i,b,l,c,u);if(this.actualValue=this.getActualValue(g),this.thousandSeparator===D.DOT&&this.decimalMarker===D.DOT&&(this.decimalMarker=D.COMMA),this.maskExpression.startsWith(D.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(S=>!this._compareOrIncludes(S,this.decimalMarker,this.thousandSeparator))),(g||g==="")&&(this._previousValue=this._currentValue,this._currentValue=g,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this.writingValue||this._previousValue===this._currentValue&&l),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(g)):this.formControlResult(g)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?c?this.hideInput(g,this.maskExpression):`${this.hideInput(g,this.maskExpression)}${this.maskIsShown.slice(g.length)}`:g;let w=g.length,x=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes(D.HOURS)){let S=this._numberSkipedSymbols(g);return`${g}${x.slice(w+S)}`}else if(this.maskExpression===D.IP||this.maskExpression===D.CPF_CNPJ)return`${g}${x}`;return`${g}${x.slice(w)}`}_numberSkipedSymbols(r){let i=/(^|\D)(\d\D)/g,o=i.exec(r),l=0;for(;o!=null;)l+=1,o=i.exec(r);return l}applyValueChanges(r,i,o,l=()=>{}){var u;let c=(u=this._elementRef)==null?void 0:u.nativeElement;c&&(c.value=this.applyMask(c.value,this.maskExpression,r,i,o,l),c!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(r,i){return r.split(D.EMPTY_STRING).map((o,l)=>{var c,u;return this.patterns&&this.patterns[i[l]??D.EMPTY_STRING]&&((c=this.patterns[i[l]??D.EMPTY_STRING])!=null&&c.symbol)?(u=this.patterns[i[l]??D.EMPTY_STRING])==null?void 0:u.symbol:o}).join(D.EMPTY_STRING)}getActualValue(r){let i=r.split(D.EMPTY_STRING).filter((o,l)=>{let c=this.maskExpression[l]??D.EMPTY_STRING;return this._checkSymbolMask(o,c)||this.specialCharacters.includes(c)&&o===c});return i.join(D.EMPTY_STRING)===r?i.join(D.EMPTY_STRING):r}shiftTypedSymbols(r){let i="";return(r&&r.split(D.EMPTY_STRING).map((o,l)=>{if(this.specialCharacters.includes(r[l+1]??D.EMPTY_STRING)&&r[l+1]!==this.maskExpression[l+1])return i=o,r[l+1];if(i.length){let c=i;return i=D.EMPTY_STRING,c}return o})||[]).join(D.EMPTY_STRING)}numberToString(r){return!r&&r!==0||this.maskExpression.startsWith(D.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(D.SEPARATOR)&&this.separatorLimit.length>14&&String(r).length>14?String(r):Number(r).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${D.MINUS}/`,D.MINUS)}showMaskInInput(r){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(r){if(this.maskExpression===D.IP)return this._checkForIp(r);if(this.maskExpression===D.CPF_CNPJ)return this._checkForCpfCnpj(r)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){var i;let r=(i=this._elementRef)==null?void 0:i.nativeElement;r&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==r.value.replace(this.placeHolderCharacter,D.EMPTY_STRING).length&&(this.formElementProperty=["value",D.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([r,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>{var o,l;return(l=this._renderer)==null?void 0:l.setProperty((o=this._elementRef)==null?void 0:o.nativeElement,r,i)})}checkDropSpecialCharAmount(r){return r.split(D.EMPTY_STRING).filter(i=>this._findDropSpecialChar(i)).length}removeMask(r){return this._removeMask(this._removeSuffix(this._removePrefix(r)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(r){if(r===D.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let o=0;o<r.length;o++){let l=r[o]??D.EMPTY_STRING;l&&l.match("\\d")&&i.push(l)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(r){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,o=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(r===D.HASH)return i;let l=[];for(let c=0;c<r.length;c++){let u=r[c]??D.EMPTY_STRING;u&&u.match("\\d")&&l.push(u)}return l.length<=3?i.slice(l.length,i.length):l.length>3&&l.length<=6?i.slice(l.length+1,i.length):l.length>6&&l.length<=9?i.slice(l.length+2,i.length):l.length>9&&l.length<11?i.slice(l.length+3,i.length):l.length===11?"":l.length===12?r.length===17?o.slice(16,o.length):o.slice(15,o.length):l.length>12&&l.length<=14?o.slice(l.length+4,o.length):""}_getActiveElement(r=this.document){var o;let i=(o=r==null?void 0:r.activeElement)==null?void 0:o.shadowRoot;return i!=null&&i.activeElement?this._getActiveElement(i):r.activeElement}formControlResult(r){if(this.writingValue&&!r){this.onChange("");return}if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(r)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===r?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(r)))))):this.onChange(this.outputTransformFn(this._toNumber(r)))}_toNumber(r){if(!this.isNumberValue||r===D.EMPTY_STRING||this.maskExpression.startsWith(D.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return r;if(String(r).length>14&&this.maskExpression.startsWith(D.SEPARATOR))return String(r);let i=Number(r);if(this.maskExpression.startsWith(D.SEPARATOR)&&Number.isNaN(i)){let o=String(r).replace(",",".");return Number(o)}return Number.isNaN(i)?r:i}_removeMask(r,i){return this.maskExpression.startsWith(D.PERCENT)&&r.includes(D.DOT)?r:r&&r.replace(this._regExpForRemove(i),D.EMPTY_STRING)}_removePrefix(r){return this.prefix?r&&r.replace(this.prefix,D.EMPTY_STRING):r}_removeSuffix(r){return this.suffix?r&&r.replace(this.suffix,D.EMPTY_STRING):r}_retrieveSeparatorValue(r){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(o=>this.dropSpecialCharacters.includes(o)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&r.includes(D.WHITE_SPACE)&&this.maskExpression.includes(D.SYMBOL_STAR)&&(i=i.filter(o=>o!==D.WHITE_SPACE)),this._removeMask(r,i)}_regExpForRemove(r){return new RegExp(r.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(r){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return r.replace(this._regExpForRemove(i),D.DOT)}_checkSymbols(r){let i=r;if(i===D.EMPTY_STRING)return i;this.maskExpression.startsWith(D.PERCENT)&&this.decimalMarker===D.COMMA&&(i=i.replace(D.COMMA,D.DOT));let o=this._retrieveSeparatorPrecision(this.maskExpression),l=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&o?i===this.decimalMarker?null:l.length>14?String(l):this._checkPrecision(this.maskExpression,l):l}_checkPatternForSpace(){var r,i,o;for(let l in this.patterns)if(this.patterns[l]&&((r=this.patterns[l])!=null&&r.hasOwnProperty("pattern"))){let c=(i=this.patterns[l])==null?void 0:i.pattern.toString(),u=(o=this.patterns[l])==null?void 0:o.pattern;if(c!=null&&c.includes(D.WHITE_SPACE)&&(u!=null&&u.test(this.maskExpression)))return!0}return!1}_retrieveSeparatorPrecision(r){let i=r.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(r,i){let o=this.getPrecision(r),l=i;return r.indexOf("2")>0||this.leadZero&&Number(o)>0?(this.decimalMarker===D.COMMA&&this.leadZero&&(l=l.replace(",",".")),this.leadZero?Number(l).toFixed(Number(o)):Number(l).toFixed(2)):this.numberToString(l)}_repeatPatternSymbols(r){return r.match(/{[0-9]+}/)&&r.split(D.EMPTY_STRING).reduce((i,o,l)=>{if(this._start=o===D.CURLY_BRACKETS_LEFT?l:this._start,o!==D.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(o)?i+o:i;this._end=l;let c=Number(r.slice(this._start+1,this._end)),u=new Array(c+1).join(r[this._start-1]);if(r.slice(0,this._start).length>1&&r.includes(D.LETTER_S)){let d=r.slice(0,this._start-1);return d.includes(D.CURLY_BRACKETS_LEFT)?i+u:d+i+u}else return i+u},"")||r}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}};s(t,"ɵfac",(()=>{let r;return function(i){return(r||(r=zt(t)))(i||t)}})()),s(t,"ɵprov",V({token:t,factory:t.ɵfac}));let e=t;return e})();function jte(){let e=C(j1),t=C(F1);return t instanceof Function?se(se({},e),t()):se(se({},e),t)}function Vte(e){return[{provide:F1,useValue:e},{provide:j1,useValue:Pte},{provide:Jh,useFactory:jte},Fte]}function Bte(e){return Td(Vte(e))}function zte(e){var t,a;return((t=e==null?void 0:e.children)==null?void 0:t.length)>0?e.children[0].ssin:((a=e==null?void 0:e.mandators)==null?void 0:a.length)>0?e.mandators[0].ssin:e.ssin}var V1=(()=>{const t=class t{get isProfessional(){return this._isProfessional}set isProfessional(n){this._isProfessional=n}get patientSsin(){return this._patientSsin}set patientSsin(n){this._patientSsin=n}get isOfflineDataStorageEnabled(){return this._offlineDataStorageEnabled}set isOfflineDataStorageEnabled(n){this._offlineDataStorageEnabled=n}get isOfflineAuthenticated(){return this._isOfflineAuthenticated}set isOfflineAuthenticated(n){this._isOfflineAuthenticated=n}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Hte="4.0",od=Hte,Aa=(e=>(e.DEV="dev",e.DEMO="demo",e.INT="int",e.ACC="acc",e.PROD="prod",e))(Aa||{}),qte=(()=>{const t=class t{constructor(){s(this,"version");s(this,"language");s(this,"configName");s(this,"services");s(this,"onPrint",new Ft);s(this,"_ngInitDone",!1);s(this,"correctlySetup",!1);s(this,"extraRequiredFields",[])}validateVersion(){let n=od.split(".").map(i=>parseInt(i)),r=(this.version||"").split(".").map(i=>parseInt(i));return r.length!==2?(console.error(`[BaseWebComponent] The given version (${this.version}) has the wrong format <major>.<minor>!`),!1):r[0]!==n[0]?(console.error(`[BaseWebComponent] The given version (${this.version})'s major is not compatible with this component's major version (${od})!`),!1):!0}validateInputs(){let n=this,r=["language","configName","services","version",...this.extraRequiredFields],{missingFields:i,presentFields:o}=r.reduce((l,c)=>(n[c]===void 0?l.missingFields.push(c):l.presentFields.push(c),l),{missingFields:[],presentFields:[]});return i.length?(console.log(`[BaseWebComponent] Waiting for missing inputs: ${i.join(", ")}; Present inputs: ${o.join(", ")}`),!1):(console.log("[BaseWebComponent] All required inputs are present"),this.validateVersion()?this.services.cacheDataStorage==null?(console.error("[BaseWebComponent] The given services input does not contain a cache service!"),!1):this.services.getAccessToken==null?(console.error("[BaseWebComponent] The given services input does not contain a getAccessToken() function!"),!1):this.services.registerRefreshCallback==null?(console.error("[BaseWebComponent] The given services input does not contain a registerRefreshCallback() function!"),!1):!0:!1)}ngOnChanges(n){this.correctlySetup=this.validateInputs(),this.correctlySetup&&(this._ngInitDone?this.onPropsChanged(n):(this.onInitialized(),this._ngInitDone=!0))}isCorrectlySetup(){return this.correctlySetup}onInitialized(){}onPropsChanged(n){}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",it({type:t,selectors:[["ng-component"]],inputs:{version:"version",language:"language",configName:"configName",services:"services"},outputs:{onPrint:"onPrint"},features:[xv],decls:0,vars:0,template:function(n,r){},encapsulation:2}));let e=t;return e})(),B1=class{constructor(e,t,a,n,r){s(this,"logId");s(this,"services");s(this,"key");s(this,"cacheFetchingKey");s(this,"offlineDataStorageEnabled");s(this,"isOfflineAuthenticated");this.logId=r,this.services=e,this.key=t,this.cacheFetchingKey=`fetching-${this.key}`,this.offlineDataStorageEnabled=n,this.isOfflineAuthenticated=a}fetchBackendData(){return Et(this,null,function*(){let e=yield this.getDataFromBackend();return e&&(yield this.updateStoredData(e)),e})}fetchOfflineData(){return Et(this,null,function*(){if(this.services.offlineDataStorage==null)return null;let e=yield this.services.offlineDataStorage.get(this.key);return e==null&&this.logId&&console.log("[%s] Offline data not found for key [%s]",this.logId,this.key),this.logId&&console.log("[%s] Found valid data in offline store for key [%s]: [%s]",this.logId,this.key,e),this.storeDataInCache(e),e})}storeDataOffline(e){return Et(this,null,function*(){this.offlineDataStorageEnabled&&this.services.offlineDataStorage&&e&&(yield this.services.offlineDataStorage.set(this.key,e),this.logId&&console.log("[%s] Updated data in the offline store",this.logId))})}storeDataInCache(e){e&&(this.logId&&console.log("[%s] updating data in cache at [%s]",this.logId,this.key),this.services.cacheDataStorage.set(this.key,e))}getDataFromCache(){return Et(this,null,function*(){let e=t=>{this.services.cacheDataStorage.get(this.cacheFetchingKey)?(this.logId&&console.log("[%s] Another WC is fetching data... Waiting a bit.",this.logId),setTimeout(()=>{e(t)},500)):t(this.services.cacheDataStorage.get(this.key))};return this.logId&&console.log("[%s] Trying to get data from cache...",this.logId),new Promise(t=>{e(t)})})}getData(e=!1){return Et(this,null,function*(){let t=null;if(this.isOfflineAuthenticated){if(this.offlineDataStorageEnabled&&this.services.offlineDataStorage)return yield this.fetchOfflineData();throw new Error(`[${this.logId}] Trying to access offline store while it is not present or not enabled`)}if(!e){if(t=yield this.getDataFromCache(),t)return this.logId&&console.log("[%s] Data pulled from cache: ",this.logId,t),t;this.logId&&console.log("[%s] No data in cache",this.logId)}try{return this.services.cacheDataStorage.set(this.cacheFetchingKey,!0),yield this.fetchBackendData()}finally{this.services.cacheDataStorage.remove(this.cacheFetchingKey)}})}updateStoredData(e){return Et(this,null,function*(){this.storeDataInCache(e),yield this.storeDataOffline(e)})}},$te=()=>{let e=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!navigator.userAgent.match(t)},oo=function(e){return e.DIARY_NOTES="diarynotes",e.PRESCRIPTIONS="prescriptions",e.MEDICATION_SCHEME="medicationScheme",e.MEDICATION_SCHEME_PAGE_STATE="medicationSchemePageState",e.DELIVERED_MEDICATIONS="deliveredMedications",e.USER_INFOS="userInfos",e.MANDATE_TYPE="mandateType",e}(oo||{}),rr=function(e){return e.CNK="cnk",e.INN="inn",e.VMP="vmp",e.EAN="ean",e.COMPOUND="compound",e}(rr||{}),h=function(e){return e.NL="nl",e.FR="fr",e.DE="de",e.EN="en",e}(h||{});h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE,h.EN,h.NL,h.FR,h.DE;var fs={getAuthorizationHeader:e=>`Bearer ${e}`,getUserType:e=>e.isProfessional?"professional":"patient",clientType:{webApp:"webapp",mobileApp:"mobapp"}},$u={authorization:"Authorization",userType:"user-type",clientType:"client-type"},Ai=class extends Error{};Ai.prototype.name="InvalidTokenError";function Gte(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,a)=>{let n=a.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Ute(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Gte(t)}catch{return atob(t)}}function Wte(e,t){if(typeof e!="string")throw new Ai("Invalid token specified: must be a string");t||(t={});let a=t.header===!0?0:1,n=e.split(".")[a];if(typeof n!="string")throw new Ai(`Invalid token specified: missing part #${a+1}`);let r;try{r=Ute(n)}catch(i){throw new Ai(`Invalid token specified: invalid base64 for part #${a+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new Ai(`Invalid token specified: invalid json for part #${a+1} (${i.message})`)}}var Zte=class extends B1{constructor(e,t,a){super(e,oo.USER_INFOS,t,a,oo.USER_INFOS),this.getLocalAccessToken=e.getAccessToken}getDataFromBackend(){return Et(this,null,function*(){return Wte(yield this.getLocalAccessToken("")).userProfile})}},Gl=(()=>{const t=class t{setServices(n){this.services=n}getServices(){if(!this.services)throw new Error("ComponentServices has not been set yet.");return this.services}hasServices(){return!!this.services}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Yte=(()=>{const t=class t extends V1{constructor(){super(...arguments),this.servicesStore=C(Gl)}resolveSsin(){return Et(this,null,function*(){if(this.isProfessional===!0)return this.patientSsin;let n=yield this.fetchUserProfileToken();return zte(n)})}resolvePatientInfo(){return Et(this,null,function*(){return yield this.fetchUserProfileToken()})}resolveUserInfo(){return Et(this,null,function*(){var d,m,b,g;let n=yield this.fetchUserProfileToken(),r=n.lastName,i=n.firstName,o=this.extractProfessionalRole(n),l=((d=n==null?void 0:n.organizations)==null?void 0:d.length)>0&&((m=n==null?void 0:n.organizations[0])!=null&&m.pharmacy)?"pharmacist":void 0,c=(b=n==null?void 0:n.organizations)!=null&&b.length&&l!==void 0?n==null?void 0:n.organizations[0]:void 0,u=this.resolveProfessional(n,o)?n[o]:void 0;return{firstName:i,ssin:n.ssin,lastName:r,role:l||o,organization:c&&l?c:void 0,professional:u,mandator:((g=n==null?void 0:n.mandators)==null?void 0:g.length)>0}})}isMandator(){return Et(this,null,function*(){var n,r;return((r=(n=yield this.fetchUserProfileToken())==null?void 0:n.mandators)==null?void 0:r.length)>0})}resolveProfessional(n,r){return r?n[r]:void 0}extractProfessionalRole(n){let r=["physician","nurse","midwife","dentist"],i="patient";return r.forEach(o=>{n[o]&&(i=o)}),i}fetchUserProfileToken(){return this.accessTokenService.getData(!0)}registerAccessTokenService(n,r){this.accessTokenService||(this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r,this.accessTokenService=new Zte(this.servicesStore.getServices(),n,r))}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Kte=(()=>{const t=class t extends V1{resolveSsin(){return Et(this,null,function*(){return Promise.resolve("00000000097")})}resolvePatientInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097"})}resolveUserInfo(){return Promise.resolve({firstName:"John",lastName:"Doe",ssin:"00000000097",role:"patient",organization:void 0,professional:void 0,mandator:!1})}isMandator(){return Et(this,null,function*(){return Promise.resolve(!1)})}registerAccessTokenService(n,r){this.isOfflineAuthenticated=n,this.isOfflineDataStorageEnabled=r}};t.ɵfac=(()=>{let n;return function(r){return(n||(n=zt(t)))(r||t)}})(),t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),Qte=(()=>{const t=class t{constructor(){this.http=C(gi)}get(n,r,i){return gs()?this.http.get(n,{headers:i}):ut(r)}patch(n,r,i){return gs()?this.http.patch(n,{},{headers:i}):ut(r)}post(n,r,i){return gs()?this.http.post(n,{},{headers:i}):ut(r)}delete(n,r,i){return gs()?this.http.delete(n,{headers:i}):ut(r)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),gs=()=>window.Cypress;function Xte(e){return e.firstName&&e.lastName?e.firstName+" "+e.lastName:e.name}var Jte={fr:["fr","nl","de","en"],nl:["nl","fr","de","en"],de:["de","fr","nl","en"],en:["en","nl","fr","de"]};function z1(e,t){if(e){t=t==null?void 0:t.substring(0,2);for(let a of Jte[t]){let n=e.find(r=>r.lang===a);if(n)return n.value}return e.length>0?e[0].value:"Missing translation"}}var Ur=function(e){return e.INITIAL="INITIAL",e.LOADING="LOADING",e.SUCCESS="SUCCESS",e.UPDATING="UPDATING",e.ERROR="ERROR",e}(Ur||{}),va=function(e){return e.NO_DATA="NO_DATA",e.TEMP_UNAVAILABLE="TEMP_UNAVAILABLE",e.NOT_AUTHORIZED="NOT_AUTHORIZED",e.OTHER="OTHER",e}(va||{});function ene(e,t){return Et(this,null,function*(){t.next({status:Ur.LOADING});try{let a=yield e,n={status:Ur.SUCCESS,data:a};return t.next(n),n}catch(a){let n={status:Ur.ERROR,error:ane(a)};return t.next(n),n}})}var Of={[va.NO_DATA]:["VIDIS_0140"],[va.TEMP_UNAVAILABLE]:["VIDIS_0121","VIDIS_0122","VIDIS_0123","VIDIS_0124","VIDIS_0125","VIDIS_0126","VIDIS_0131","VIDIS_0132","VIDIS_0133","VIDIS_0134","VIDIS_0135","VIDIS_0136"],[va.NOT_AUTHORIZED]:["VIDIS_3150","VIDIS_3090","VIDIS_3140","VIDIS_3100","VIDIS_3120","VIDIS_0400","VIDIS_3030","VIDIS_0100","VIDIS_0120","VIDIS_0110","VIDIS_0200","VIDIS_0340","VIDIS_0341"],[va.OTHER]:[]};function tne(e){for(let t of Object.keys(Of))if(Of[t].includes(e))return t;return va.OTHER}function nne(e,t,a){let n=e||"UNKNOWN",r=tne(n);return{code:n,message:a??"An unexpected error occurred",group:r,traceId:t}}function ane(e){var r,i,o;let t=((r=e.error)==null?void 0:r.code)??void 0,a=((i=e.error)==null?void 0:i.message)??e.message,n=(o=e.headers)==null?void 0:o.get("trace-id");return nne(t,n,a)}var rne=(()=>{const t=class t{constructor(){this.translate=C(Ca)}transform(n){return this.findTranslation(n.name)+" "+(n.prefix?n.prefix+" ":"")+(n.value?n.value+" ":"")+(n.unit?this.translate.instant("commons.units."+n.unit,{count:n.value||1}):"")}findTranslation(n){return z1(n,this.translate.currentLang)}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),ine=(()=>{const t=class t{constructor(){this.http=C(gi),this.snackbarService=C(q1)}getLeaflet(n,r){this.http.get(`/v2/leaflet/${n}/${r}`,{responseType:"text"}).pipe(sn(1),Ed(i=>(this.snackbarService.showError(i.status===404?"error.no-leaflet":"error.fetch-leaflet"),Lg(()=>i)))).subscribe(i=>{window.open(i,"_blank")})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),bl=(()=>{const t=class t{constructor(){this.config=C(Vo),this.injector=C(at),this._instance=null}getInstance(){if(!this._instance){let n=this.config.getEnvironmentVariable("env")==="demo";this._instance=n?this.injector.get(Kte):this.injector.get(Yte)}return this._instance}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),one={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function sne(e,t){if(e&1){let a=Oo();re(0,"div",1)(1,"button",2),$a("click",function(){ya(a);let n=Re();return _a(n.action())}),_e(2),ae()()}if(e&2){let a=Re();X(2),Qt(" ",a.data.action," ")}}var lne=["label"];function une(e,t){}var cne=Math.pow(2,31)-1,sd=class{constructor(e,t){s(this,"_overlayRef");s(this,"instance");s(this,"containerInstance");s(this,"_afterDismissed",new xe);s(this,"_afterOpened",new xe);s(this,"_onAction",new xe);s(this,"_durationTimeoutId");s(this,"_dismissedByAction",!1);this._overlayRef=t,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,cne))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},H1=new K("MatSnackBarData"),yl=class{constructor(){s(this,"politeness","assertive");s(this,"announcementMessage","");s(this,"viewContainerRef");s(this,"duration",0);s(this,"panelClass");s(this,"direction");s(this,"data",null);s(this,"horizontalPosition","center");s(this,"verticalPosition","bottom")}},dne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}));let e=t;return e})(),hne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}));let e=t;return e})(),pne=(()=>{const t=class t{};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵdir",Wt({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}));let e=t;return e})(),mne=(()=>{const t=class t{constructor(){s(this,"snackBarRef",C(sd));s(this,"data",C(H1))}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵcmp",it({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(re(0,"div",0),_e(1),ae(),gt(2,sne,3,1,"div",1)),n&2&&(X(),Qt(" ",r.data.message,`
30
30
  `),X(),It(r.hasAction?2:-1))},dependencies:[$l,dne,hne,pne],styles:[`.mat-mdc-simple-snack-bar{display:flex}
31
31
  `],encapsulation:2,changeDetection:0}));let e=t;return e})(),Gu="_mat-snack-bar-enter",Uu="_mat-snack-bar-exit",fne=(()=>{const t=class t extends Hl{constructor(){super();s(this,"_ngZone",C(je));s(this,"_elementRef",C(At));s(this,"_changeDetectorRef",C(Mo));s(this,"_platform",C(pn));s(this,"_rendersRef");s(this,"_animationsDisabled",C(pi,{optional:!0})==="NoopAnimations");s(this,"snackBarConfig",C(yl));s(this,"_document",C(Le));s(this,"_trackedModals",new Set);s(this,"_enterFallback");s(this,"_exitFallback");s(this,"_renders",new xe);s(this,"_announceDelay",150);s(this,"_announceTimeoutId");s(this,"_destroyed",!1);s(this,"_portalOutlet");s(this,"_onAnnounce",new xe);s(this,"_onExit",new xe);s(this,"_onEnter",new xe);s(this,"_animationState","void");s(this,"_live");s(this,"_label");s(this,"_role");s(this,"_liveElementId",C(jo).getId("mat-snack-bar-container-live-"));s(this,"attachDomPortal",r=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(r);return this._afterPortalAttached(),i});let r=this.snackBarConfig;r.politeness==="assertive"&&!r.announcementMessage?this._live="assertive":r.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=f0(()=>this._renders.next(),{manualCleanup:!0})}attachComponentPortal(r){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(r);return this._afterPortalAttached(),i}attachTemplatePortal(r){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(r);return this._afterPortalAttached(),i}onAnimationEnd(r){r===Uu?this._completeExit():r===Gu&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Gu)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Gu)},200)))}exit(){return this._destroyed?ut(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(sn(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Uu)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Uu),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let r=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(c=>r.classList.add(c)):r.classList.add(i)),this._exposeToModals();let o=this._label.nativeElement,l="mdc-snackbar__label";o.classList.toggle(l,!o.querySelector(`.${l}`))}_exposeToModals(){let r=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let l=i[o],c=l.getAttribute("aria-owns");this._trackedModals.add(l),c?c.indexOf(r)===-1&&l.setAttribute("aria-owns",c+" "+r):l.setAttribute("aria-owns",r)}}_clearFromModals(){this._trackedModals.forEach(r=>{let i=r.getAttribute("aria-owns");if(i){let o=i.replace(this._liveElementId,"").trim();o.length>0?r.setAttribute("aria-owns",o):r.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let r=this._elementRef.nativeElement,i=r.querySelector("[aria-hidden]"),o=r.querySelector("[aria-live]");if(i&&o){let l=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(l=document.activeElement),i.removeAttribute("aria-hidden"),o.appendChild(i),l==null||l.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};s(t,"ɵfac",function(r){return new(r||t)}),s(t,"ɵcmp",it({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,i){if(r&1&&(Ac(no,7),Ac(lne,7)),r&2){let o;Pc(o=Lc())&&(i._portalOutlet=o.first),Pc(o=Lc())&&(i._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(r,i){r&1&&$a("animationend",function(o){return i.onAnimationEnd(o.animationName)})("animationcancel",function(o){return i.onAnimationEnd(o.animationName)}),r&2&&Rn("mat-snack-bar-container-enter",i._animationState==="visible")("mat-snack-bar-container-exit",i._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!i._animationsDisabled)},features:[En],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,i){r&1&&(re(0,"div",1)(1,"div",2,0)(3,"div",3),gt(4,une,0,0,"ng-template",4),ae(),un(5,"div"),ae()()),r&2&&(X(5),Ln("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[no],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
32
32
  `],encapsulation:2}));let e=t;return e})();function gne(){return new yl}var vne=new K("mat-snack-bar-default-options",{providedIn:"root",factory:gne}),bne=(()=>{const t=class t{constructor(){s(this,"_overlay",C(Ga));s(this,"_live",C(LK));s(this,"_injector",C(at));s(this,"_breakpointObserver",C(Cy));s(this,"_parentSnackBar",C(t,{optional:!0,skipSelf:!0}));s(this,"_defaultConfig",C(vne));s(this,"_snackBarRefAtThisLevel",null);s(this,"simpleSnackBarComponent",mne);s(this,"snackBarContainerComponent",fne);s(this,"handsetCssClass","mat-mdc-snack-bar-handset")}get _openedSnackBarRef(){let n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}openFromComponent(n,r){return this._attach(n,r)}openFromTemplate(n,r){return this._attach(n,r)}open(n,r="",i){let o=se(se({},this._defaultConfig),i);return o.data={message:n,action:r},o.announcementMessage===n&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(n,r){let i=r&&r.viewContainerRef&&r.viewContainerRef.injector,o=at.create({parent:i||this._injector,providers:[{provide:yl,useValue:r}]}),l=new to(this.snackBarContainerComponent,r.viewContainerRef,o),c=n.attach(l);return c.instance.snackBarConfig=r,c.instance}_attach(n,r){let i=se(se(se({},new yl),this._defaultConfig),r),o=this._createOverlay(i),l=this._attachSnackBarContainer(o,i),c=new sd(l,o);if(n instanceof ei){let u=new Lh(n,null,{$implicit:i.data,snackBarRef:c});c.instance=l.attachTemplatePortal(u)}else{let u=this._createInjector(i,c),d=new to(n,void 0,u),m=l.attachComponentPortal(d);c.instance=m.instance}return this._breakpointObserver.observe(one.HandsetPortrait).pipe(fo(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),i.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(c,i),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(n,r){n.afterDismissed().subscribe(()=>{this._openedSnackBarRef==n&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),r.duration&&r.duration>0&&n.afterOpened().subscribe(()=>n._dismissAfter(r.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter()}_createOverlay(n){let r=new Fh;r.direction=n.direction;let i=this._overlay.position().global(),o=n.direction==="rtl",l=n.horizontalPosition==="left"||n.horizontalPosition==="start"&&!o||n.horizontalPosition==="end"&&o,c=!l&&n.horizontalPosition!=="center";return l?i.left("0"):c?i.right("0"):i.centerHorizontally(),n.verticalPosition==="top"?i.top("0"):i.bottom("0"),r.positionStrategy=i,this._overlay.create(r)}_createInjector(n,r){let i=n&&n.viewContainerRef&&n.viewContainerRef.injector;return at.create({parent:i||this._injector,providers:[{provide:sd,useValue:r},{provide:H1,useValue:n.data}]})}};s(t,"ɵfac",function(n){return new(n||t)}),s(t,"ɵprov",V({token:t,factory:t.ɵfac,providedIn:"root"}));let e=t;return e})(),q1=(()=>{const t=class t{constructor(){this.snackbar=C(bne),this.translate=C(Ca)}showSuccess(n,r="commons.close",i=5e3){return this.snackbar.open(this.translate.instant(n),this.translate.instant(r),{duration:i,panelClass:"mh-snackbar--success"})}showError(n,r="commons.close",i=5e3){return this.snackbar.open(this.translate.instant(n),this.translate.instant(r),{duration:i,panelClass:"mh-snackbar--error"})}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),yne={demo:{env:Aa.DEMO},dev:{apiUrl:"http://vidis-fake-api.test.paas.vasdc.be",env:Aa.DEV},int:{apiUrl:"https://vidis-api.int.pub.vascloud.be/REST/vidis",env:Aa.INT},acc:{apiUrl:"https://vidis-api.acc.vasha.be/REST/vidis",env:Aa.ACC},prod:{apiUrl:"https://vidis-api.vasha.be/REST/vidis",env:Aa.PROD}},Vo=(()=>{const t=class t{setEnvironment(n){this.configVariables=yne[Aa[n.toUpperCase()]]||{}}getEnvironmentVariable(n){return this.configVariables[n]}};t.ɵfac=function(n){return new(n||t)},t.ɵprov=V({token:t,factory:t.ɵfac,providedIn:"root"});let e=t;return e})(),_ne=(e,t)=>{let a=C(bl),n=C(Gl),r=C(Vo).getEnvironmentVariable("apiUrl");if(e.url.includes("assets/")||e.url.startsWith("http")||!r||a.getInstance().isOfflineAuthenticated)return t(e);let i=e.headers||new ai,o=a.getInstance().isProfessional;return vr(n.getServices().getAccessToken("")).pipe($i(l=>t(e.clone({url:`${r}${e.url}`,headers:i.set($u.authorization,fs.getAuthorizationHeader(l)).set($u.userType,fs.getUserType({isProfessional:o})).set($u.clientType,$te()?fs.clientType.mobileApp:fs.clientType.webApp)}))))};function wne(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var xne=["de",[["AM","PM"],void 0,void 0],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],void 0,void 0],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euro",{ATS:["öS"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"р."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl£"],GHS:[void 0,"₵"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"₱"],RON:[void 0,"L"],RUR:[void 0,"р."],RWF:[void 0,"F.Rw"],SYP:[],THB:["฿"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",wne];function Ene(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var Sne=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Ene];function kne(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:n===0&&t!==0&&t%1e6===0&&a===0||!(n>=0&&n<=5)?4:5}var Cne=["fr",[["AM","PM"],void 0,void 0],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant Jésus-Christ","après Jésus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} 'à' {0}",void 0],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"р."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"¥"],COP:["$CO","$"],CYP:["£CY"],EGP:[void 0,"£E"],FJD:["$FJ","$"],FKP:["£FK","£"],FRF:["F"],GBP:["£GB","£"],GIP:["£GI","£"],HKD:[void 0,"$"],IEP:["£IE"],ILP:["£IL"],ITL:["₤IT"],JPY:[void 0,"¥"],KMF:[void 0,"FC"],LBP:["£LB","£L"],MTP:["£MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"₱"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",kne];function Ine(e){let t=Math.floor(Math.abs(e)),a=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&a===0?1:5}var Dne=["nl",[["a.m.","p.m."],void 0,void 0],void 0,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],void 0,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,"{1} 'om' {0}",void 0],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤ -#,##0.00","#E0"],"EUR","€","Euro",{AUD:["AU$","$"],BYN:[void 0,"р."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP¥","¥"],PHP:[void 0,"₱"],RUR:[void 0,"р."],SBD:["SI$","$"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",Ine];zl(xne,"de");zl(Dne,"nl");zl(Cne,"fr");zl(Sne,"en");var Tne=class{handleError(e){throw new Error(e)}},Nne=class extends rQ{getFirstDayOfWeek(){return 1}format(e){return O1(e,"dd/MM/yyyy")}parse(e){return Rte(e,"dd/MM/yyyy",new Date)}},One={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:{year:"numeric",month:"long"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Mne=[AJ(),KY(QY([_ne])),Bte(),{provide:An,useClass:Tne},{provide:Oy,useClass:Nne,deps:[Yc]},{provide:qK,useValue:One},{provide:t1,useClass:PJ},{provide:qy,useValue:{panelClass:"mh-dialog-container"}}],Rne=Kf(v7(),1),Ane=new K("MESSAGE_FORMAT_CONFIG"),Pne={biDiSupport:!1,formatters:{},strictNumberSign:!1,currency:"USD",strictPluralKeys:!0,throwOnError:!1,fallbackPrefix:void 0},Lne=(()=>{const t=class t extends Po{constructor(n){super(),this.mfCache=new Map;let{formatters:r,biDiSupport:i,strictNumberSign:o,currency:l,strictPluralKeys:c,throwOnError:u,fallbackPrefix:d}=se(se({},Pne),n);this.messageFormatOptions={customFormatters:r,biDiSupport:i,strict:o,currency:l,strictPluralKeys:c},this.throwOnError=!!u,this.fallbackPrefix=d}compile(n,r){if(this.fallbackPrefix&&n.startsWith(this.fallbackPrefix))return n.slice(this.fallbackPrefix.length);let i;try{i=this.getMessageFormatInstance(r).compile(n)}catch(o){if(this.throwOnError)throw o;console.error(o),console.error(`[ngx-translate-messageformat-compiler] Could not compile message for lang '${r}': '${n}'`),i=jne(n,r)}return this.throwOnError||(i=Fne(i,n)),i}compileTranslations(n,r){return typeof n=="string"?this.compile(n,r):Object.keys(n).reduce((i,o)=>{let l=n[o];return i[o]=this.compileTranslations(l,r),i},{})}getMessageFormatInstance(n){return this.mfCache.has(n)||this.mfCache.set(n,new Rne.default(n,this.messageFormatOptions)),this.mfCache.get(n)}};t.ɵfac=function(n){return new(n||t)(te(Ane,8))},t.ɵprov=V({token:t,factory:t.ɵfac});let e=t;return e})();function Fne(e,t){return a=>{let n=t;try{n=e(a)}catch(r){console.error(r),console.error(`[ngx-translate-messageformat-compiler] Could not interpolate '${t}' with params '${a}'`)}return n}}function jne(e,t){return()=>(console.warn(`[ngx-translate-messageformat-compiler] Falling back to original invalid message: '${e}' ('${t}')`),String(e))}var $1={};oe($1,{"00001":()=>G1,"00002":()=>U1,"00003":()=>W1,"00004":()=>Z1,"00005":()=>Y1,"00006":()=>K1,"00007":()=>Q1,"00008":()=>X1,"00009":()=>J1,"00010":()=>e_,"00011":()=>t_,"00012":()=>n_,"00013":()=>a_,"00014":()=>r_,"00015":()=>i_,"00016":()=>o_,"00017":()=>s_,"00018":()=>l_,"00019":()=>u_,"00020":()=>c_,"00021":()=>d_,"00022":()=>h_,"00023":()=>p_,"00024":()=>m_,"00025":()=>f_,"00026":()=>g_,"00027":()=>v_,"00028":()=>b_,"00029":()=>y_,"00030":()=>__,ampoule:()=>U_,bandage:()=>z_,bottle:()=>W_,box:()=>q_,cm:()=>w_,default:()=>Vne,dropsperminute:()=>x_,"effervescent-tablet":()=>V_,gm:()=>E_,internationalunits:()=>S_,iu:()=>F_,liter:()=>$_,"mck/h":()=>k_,"mck/kg/minute":()=>C_,measure:()=>I_,meq:()=>P_,mg:()=>R_,"mg/h":()=>D_,"mg/ml":()=>A_,micrograms:()=>B_,miu:()=>L_,"ml/h":()=>T_,mmol:()=>j_,piece:()=>H_,syringe:()=>G_,"syringe-ampoule":()=>Z_,tbl:()=>N_,tsp:()=>O_,"unt/h":()=>M_});var G1="{count, plural, one{kaffeelöffel (5 ml)} other{kaffeelöffellen (5 ml)}}",U1="{count, plural, one{Ampulle} other{Ampullen}}",W1="anwenden",Z1="{count, plural, one{Kapsel} other{Kapseln}}",Y1="{count, plural, one{Tablette} other{Tabletten}}",K1="Dosis",Q1="{count, plural, one{Tropf} other{Tropfen}}",X1="{count, plural, one{Fläsche} other{Fläschchen}}",J1="{count, plural, one{Implantat} other{Implantate}}",e_="{count, plural, one{Infusion} other{Infusionen}}",t_="{count, plural, one{Inhalation} other{Inhalationen}}",n_="Einstechen",a_="Kaugummi",r_="{count, plural, one{Kompresse} other{Kompressen}}",i_="{count, plural, one{Einlauf} other{Einläufe}}",o_="ml",s_="Ov.",l_="{count, plural, one{Perle} other{Perlen}}",u_="{count, plural, one{Pastille} other{Pastillen}}",c_="Pflaster",d_="cart",h_="Pen",p_="{count, plural, one{Puff} other{Puffs}}",m_="{count, plural, one{Schwamm} other{Schwämme}}",f_="{count, plural, one{Stift} other{Stifte}}",g_="Suppo",v_="Tube",b_="{count, plural, one{Docht} other{Dochte}}",y_="Beutel",__="Beutel",w_="Zentimeter",x_="{count, plural, one{Tropf pro Minute} other{Tropfen pro Minute}}",E_="Gramm",S_="{count, plural, one{Internationale Einheit} other{Internationale Einheiten}}",k_="Mikrogramm pro Stunde",C_="Mikrogramm pro Kilogramm pro Minute",I_="Maß",D_="Miligramm pro Stunde",T_="Milliliter pro Stunde",N_="Esslöffel",O_="Kaffeelöffel",M_="{count, plural, one{Einheit pro Stunde} other{Einheiten pro Stunde}}",R_="Milligramm",A_="Milligramm pro Millimeter",P_="meq",L_="miu",F_="iu",j_="mmol",V_="effervescent-tablet",B_="micrograms",z_="{count, plural, one{bandage} other{bandagen}}",H_="{count, plural, one{stück} other{stücke}}",q_="schachteln",$_="liter",G_="{count, plural, one{spritze} other{spritzen}}",U_="{count, plural, one{glühbirn} other{glühbirnen}}",W_="{count, plural, one{Fläsche} other{Fläschchen}}",Z_="{count, plural, one{spritze-ampulle} other{spritzen-ampulle}}",Vne={"00001":G1,"00002":U1,"00003":W1,"00004":Z1,"00005":Y1,"00006":K1,"00007":Q1,"00008":X1,"00009":J1,"00010":e_,"00011":t_,"00012":n_,"00013":a_,"00014":r_,"00015":i_,"00016":o_,"00017":s_,"00018":l_,"00019":u_,"00020":c_,"00021":d_,"00022":h_,"00023":p_,"00024":m_,"00025":f_,"00026":g_,"00027":v_,"00028":b_,"00029":y_,"00030":__,cm:w_,dropsperminute:x_,gm:E_,internationalunits:S_,"mck/h":k_,"mck/kg/minute":C_,measure:I_,"mg/h":D_,"ml/h":T_,tbl:N_,tsp:O_,"unt/h":M_,mg:R_,"mg/ml":A_,meq:P_,miu:L_,iu:F_,mmol:j_,"effervescent-tablet":V_,micrograms:B_,bandage:z_,piece:H_,box:q_,liter:$_,syringe:G_,ampoule:U_,bottle:W_,"syringe-ampoule":Z_},Y_={};oe(Y_,{"00001":()=>K_,"00002":()=>Q_,"00003":()=>X_,"00004":()=>J_,"00005":()=>ew,"00006":()=>tw,"00007":()=>nw,"00008":()=>aw,"00009":()=>rw,"00010":()=>iw,"00011":()=>ow,"00012":()=>sw,"00013":()=>lw,"00014":()=>uw,"00015":()=>cw,"00016":()=>dw,"00017":()=>hw,"00018":()=>pw,"00019":()=>mw,"00020":()=>fw,"00021":()=>gw,"00022":()=>vw,"00023":()=>bw,"00024":()=>yw,"00025":()=>_w,"00026":()=>ww,"00027":()=>xw,"00028":()=>Ew,"00029":()=>Sw,"00030":()=>kw,ampoule:()=>Qw,bandage:()=>Uw,bottle:()=>Xw,box:()=>Zw,cm:()=>Cw,default:()=>Bne,dropsperminute:()=>Iw,"effervescent-tablet":()=>$w,gm:()=>Dw,internationalunits:()=>Tw,iu:()=>Hw,liter:()=>Yw,"mck/h":()=>Nw,"mck/kg/minute":()=>Ow,measure:()=>Mw,meq:()=>Bw,mg:()=>jw,"mg/h":()=>Rw,"mg/ml":()=>Vw,micrograms:()=>Gw,miu:()=>zw,"ml/h":()=>Aw,mmol:()=>qw,piece:()=>Ww,syringe:()=>Kw,"syringe-ampoule":()=>Jw,tbl:()=>Pw,tsp:()=>Lw,"unt/h":()=>Fw});var K_="{count, plural, one{Teaspoon (5 ml)} other{Teaspoons (5 ml)}}",Q_="{count, plural, one{ampoule} other{ampoules}}",X_="applic.",J_="{count, plural, one{capsule} other{capsules}}",ew="{count, plural, one{tablet} other{tablets}}",tw="{count, plural, one{dose} other{doses}}",nw="{count, plural, one{drop} other{drops}}",aw="{count, plural, one{bottle} other{bottles}}",rw="{count, plural, one{implant} other{implants}}",iw="{count, plural, one{perfusion} other{perfusions}}",ow="{count, plural, one{inhalation} other{inhalations}}",sw="insert",lw="{count, plural, one{chewing gum} other{chewing gums}}",uw="{count, plural, one{compress} other{compresses}}",cw="enema",dw="ml",hw="{count, plural, one{ovule} other{ovules}}",pw="{count, plural, one{pearl} other{pearls}}",mw="{count, plural, one{pastille} other{pastilles}}",fw="{count, plural, one{patch} other{patches}}",gw="{count, plural, one{cartridge} other{cartridges}}",vw="{count, plural, one{pen} other{pens}}",bw="{count, plural, one{puff} other{puffs}}",yw="{count, plural, one{sponge} other{sponges}}",_w="{count, plural, one{stylo} other{stylos}}",ww="{count, plural, one{supository} other{supositories}}",xw="{count, plural, one{tube} other{tubes}}",Ew="{count, plural, one{wick} other{wicks}}",Sw="{count, plural, one{bag} other{bags}}",kw="{count, plural, one{small bag} other{small bags}}",Cw="centimeter",Iw="{count, plural, one{drop per minute} other{drops per minute}}",Dw="gram",Tw="international units",Nw="microgram per hour",Ow="microgram per kilogram per minute",Mw="{count, plural, one{measure} other{measures}}",Rw="milligram per hour",Aw="milliliter per hour",Pw="{count, plural, one{tablespoon} other{tablespoons}}",Lw="{count, plural, one{teaspoon} other{teaspoons}}",Fw="{count, plural, one{unit per hour} other{units per hour}}",jw="milligram",Vw="milligram per milliliter",Bw="milli-equivalent",zw="miu",Hw="international units",qw="millimole",$w="{count, plural, one{effervescent tablet} other{effervescent tablets}}",Gw="microgram",Uw="{count, plural, one{bandage} other{bandages}}",Ww="{count, plural, one{piece} other{pieces}}",Zw="{count, plural, one{spray} other{sprays}}",Yw="liter",Kw="{count, plural, one{syringe} other{syringes}}",Qw="{count, plural, one{ampoule} other{ampoules}}",Xw="{count, plural, one{bottle} other{bottles}}",Jw="{count, plural, one{syringe ampoule} other{syringe ampoules}}",Bne={"00001":K_,"00002":Q_,"00003":X_,"00004":J_,"00005":ew,"00006":tw,"00007":nw,"00008":aw,"00009":rw,"00010":iw,"00011":ow,"00012":sw,"00013":lw,"00014":uw,"00015":cw,"00016":dw,"00017":hw,"00018":pw,"00019":mw,"00020":fw,"00021":gw,"00022":vw,"00023":bw,"00024":yw,"00025":_w,"00026":ww,"00027":xw,"00028":Ew,"00029":Sw,"00030":kw,cm:Cw,dropsperminute:Iw,gm:Dw,internationalunits:Tw,"mck/h":Nw,"mck/kg/minute":Ow,measure:Mw,"mg/h":Rw,"ml/h":Aw,tbl:Pw,tsp:Lw,"unt/h":Fw,mg:jw,"mg/ml":Vw,meq:Bw,miu:zw,iu:Hw,mmol:qw,"effervescent-tablet":$w,micrograms:Gw,bandage:Uw,piece:Ww,box:Zw,liter:Yw,syringe:Kw,ampoule:Qw,bottle:Xw,"syringe-ampoule":Jw},ex={};oe(ex,{"00001":()=>tx,"00002":()=>nx,"00003":()=>ax,"00004":()=>rx,"00005":()=>ix,"00006":()=>ox,"00007":()=>sx,"00008":()=>lx,"00009":()=>ux,"00010":()=>cx,"00011":()=>dx,"00012":()=>hx,"00013":()=>px,"00014":()=>mx,"00015":()=>fx,"00016":()=>gx,"00017":()=>vx,"00018":()=>bx,"00019":()=>yx,"00020":()=>_x,"00021":()=>wx,"00022":()=>xx,"00023":()=>Ex,"00024":()=>Sx,"00025":()=>kx,"00026":()=>Cx,"00027":()=>Ix,"00028":()=>Dx,"00029":()=>Tx,"00030":()=>Nx,ampoule:()=>nE,bandage:()=>Qx,bottle:()=>aE,box:()=>Jx,cm:()=>Ox,default:()=>zne,dropsperminute:()=>Mx,"effervescent-tablet":()=>Yx,gm:()=>Rx,internationalunits:()=>Ax,iu:()=>Wx,liter:()=>eE,"mck/h":()=>Px,"mck/kg/minute":()=>Lx,measure:()=>Fx,meq:()=>Gx,mg:()=>qx,"mg/h":()=>jx,"mg/ml":()=>$x,micrograms:()=>Kx,miu:()=>Ux,"ml/h":()=>Vx,mmol:()=>Zx,piece:()=>Xx,syringe:()=>tE,"syringe-ampoule":()=>rE,tbl:()=>Bx,tsp:()=>zx,"unt/h":()=>Hx});var tx="{count, plural, one{cuillère à café (5 ml)} other{cuillères à café (5 ml)}}",nx="amp.",ax="applic.",rx="caps.",ix="compr.",ox="{count, plural, one{dose} other{doses}}",sx="{count, plural, one{goutte} other{gouttes}}",lx="flac.",ux="{count, plural, one{implant} other{implants}}",cx="{count, plural, one{perfusion} other{perfusions}}",dx="{count, plural, one{inhalation} other{inhalations}}",hx="insert",px="{count, plural, one{gomme à mâcher} other{gommes à mâcher}}",mx="{count, plural, one{compres(se)} other{compres(ses)}}",fx="{count, plural, one{lavement} other{lavements}}",gx="ml",vx="ov.",bx="{count, plural, one{perle} other{perles}}",yx="{count, plural, one{pastille} other{pastilles}}",_x="{count, plural, one{patch} other{patchs}}",wx="patr.",xx="{count, plural, one{stylo} other{stylos}}",Ex="{count, plural, one{puff} other{puffs}}",Sx="{count, plural, one{éponge} other{éponges}}",kx="{count, plural, one{stylo} other{stylos}}",Cx="suppo",Ix="{count, plural, one{tube} other{tubes}}",Dx="{count, plural, one{mèche} other{mèches}}",Tx="{count, plural, one{sac} other{sacs}}",Nx="{count, plural, one{sachet} other{sachets}}",Ox="{count, plural, one{centimètre} other{centimètres}}",Mx="{count, plural, one{goute par minute} other{goutes par minute}}",Rx="{count, plural, one{gramme} other{grammes}}",Ax="{count, plural, one{unité internationales} other{unités internationales}}",Px="{count, plural, one{microgramme par heure} other{microgrammes par heure}}",Lx="{count, plural, one{microgramme par kilogramme par minute} other{microgrammes par kilogramme par minute}}",Fx="{count, plural, one{mesure} other{mesures}}",jx="{count, plural, one{milligramme par heure} other{milligrammes par heure}}",Vx="{count, plural, one{millilitre par heure} other{millilitres par heure}}",Bx="{count, plural, one{cuillère à soupe} other{cuillères à soupe}}",zx="{count, plural, one{cuillère à café} other{cuillères à café}}",Hx="{count, plural, one{unité par heure} other{unités par heure}}",qx="{count, plural, one{miligramme} other{miligrammes}}",$x="{count, plural, one{milligramme par millimètre} other{milligrammes par millimètre}}",Gx="milli-équivalent",Ux="miu",Wx="{count, plural, one{unité internationales} other{unités internationales}}",Zx="millimol",Yx="{count, plural, one{comprimé effervescent} other{comprimés effervescents}}",Kx="{count, plural, one{microgramme} other{microgrammes}}",Qx="{count, plural, one{bandage} other{bandages}}",Xx="{count, plural, one{pièce} other{pièces}}",Jx="{count, plural, one{vaporisateur} other{vaporisateurs}}",eE="{count, plural, one{litre} other{litres}}",tE="{count, plural, one{seringue} other{seringues}}",nE="{count, plural, one{ampoule} other{ampoules}}",aE="{count, plural, one{fiole} other{fioles}}",rE="{count, plural, one{ampoule de seringue} other{ampoules de seringue}}",zne={"00001":tx,"00002":nx,"00003":ax,"00004":rx,"00005":ix,"00006":ox,"00007":sx,"00008":lx,"00009":ux,"00010":cx,"00011":dx,"00012":hx,"00013":px,"00014":mx,"00015":fx,"00016":gx,"00017":vx,"00018":bx,"00019":yx,"00020":_x,"00021":wx,"00022":xx,"00023":Ex,"00024":Sx,"00025":kx,"00026":Cx,"00027":Ix,"00028":Dx,"00029":Tx,"00030":Nx,cm:Ox,dropsperminute:Mx,gm:Rx,internationalunits:Ax,"mck/h":Px,"mck/kg/minute":Lx,measure:Fx,"mg/h":jx,"ml/h":Vx,tbl:Bx,tsp:zx,"unt/h":Hx,mg:qx,"mg/ml":$x,meq:Gx,miu:Ux,iu:Wx,mmol:Zx,"effervescent-tablet":Yx,micrograms:Kx,bandage:Qx,piece:Xx,box:Jx,liter:eE,syringe:tE,ampoule:nE,bottle:aE,"syringe-ampoule":rE},iE={};oe(iE,{"00001":()=>oE,"00002":()=>sE,"00003":()=>lE,"00004":()=>uE,"00005":()=>cE,"00006":()=>dE,"00007":()=>hE,"00008":()=>pE,"00009":()=>mE,"00010":()=>fE,"00011":()=>gE,"00012":()=>vE,"00013":()=>bE,"00014":()=>yE,"00015":()=>_E,"00016":()=>wE,"00017":()=>xE,"00018":()=>EE,"00019":()=>SE,"00020":()=>kE,"00021":()=>CE,"00022":()=>IE,"00023":()=>DE,"00024":()=>TE,"00025":()=>NE,"00026":()=>OE,"00027":()=>ME,"00028":()=>RE,"00029":()=>AE,"00030":()=>PE,ampoule:()=>sS,bandage:()=>nS,bottle:()=>lS,box:()=>rS,cm:()=>LE,default:()=>Hne,dropsperminute:()=>FE,"effervescent-tablet":()=>eS,gm:()=>jE,internationalunits:()=>VE,iu:()=>XE,liter:()=>iS,"mck/h":()=>BE,"mck/kg/minute":()=>zE,measure:()=>HE,meq:()=>KE,mg:()=>ZE,"mg/h":()=>qE,"mg/ml":()=>YE,micrograms:()=>tS,miu:()=>QE,"ml/h":()=>$E,mmol:()=>JE,piece:()=>aS,syringe:()=>oS,"syringe-ampoule":()=>uS,tbl:()=>GE,tsp:()=>UE,"unt/h":()=>WE});var oE="{count, plural, one{Koffielepel (5 ml)} other{Koffielepels (5 ml)}}",sE="{count, plural, one{ampule} other{ampullen}}",lE="aanbrengen",uE="{count, plural, one{capsule} other{capsules}}",cE="{count, plural, one{tablet} other{tabletten}}",dE="{count, plural, one{dose} other{dosissen}}",hE="{count, plural, one{druppel} other{druppels}}",pE="{count, plural, one{flesje} other{flesjes}}",mE="{count, plural, one{implantaat} other{implantaten}}",fE="{count, plural, one{infuus} other{infusen}}",gE="{count, plural, one{inhalatie} other{inhalaties}}",vE="inbrengen",bE="{count, plural, one{kauwgom} other{kauwgommen}}",yE="{count, plural, one{kompres} other{kompressen}}",_E="lavement",wE="ml",xE="{count, plural, one{ovule} other{ovules}}",EE="{count, plural, one{parel} other{parels}}",SE="{count, plural, one{pastille} other{pastilles}}",kE="{count, plural, one{pleister} other{pleisters}}",CE="{count, plural, one{patroon} other{patronen}}",IE="{count, plural, one{pen} other{pennen}}",DE="{count, plural, one{puff} other{puffs}}",TE="{count, plural, one{spons} other{sponsen}}",NE="{count, plural, one{stylo} other{stylos}}",OE="{count, plural, one{zetpil} other{zetpillen}}",ME="{count, plural, one{tube} other{tubes}}",RE="{count, plural, one{wiek} other{wieken}}",AE="{count, plural, one{zak} other{zakken}}",PE="{count, plural, one{zakje} other{zakjes}}",LE="centimeter",FE="{count, plural, one{druppel per minuut} other{druppels per minuut}}",jE="gram",VE="internationale eenheden",BE="microgram per uur",zE="microgram per kilogram per minuut",HE="{count, plural, one{maat} other{maten}}",qE="milligram per uur",$E="milliliter per uur",GE="{count, plural, one{eetlepel} other{eetlepels}}",UE="{count, plural, one{koffielepel} other{koffielepels}}",WE="{count, plural, one{eenheid per uur} other{eenheden per uur}}",ZE="miligram",YE="miligram per milimeter",KE="milli-equivalent",QE="miu",XE="internationale eenheden",JE="millimol",eS="{count, plural, one{bruistablet} other{bruistabletten}}",tS="microgram",nS="{count, plural, one{verband} other{verbanden}}",aS="{count, plural, one{stuk} other{stuks}}",rS="{count, plural, one{verstuiving} other{verstuivingen}}",iS="liter",oS="{count, plural, one{spuit} other{spuiten}}",sS="{count, plural, one{ampul} other{ampullen}}",lS="{count, plural, one{fles} other{flessen}}",uS="{count, plural, one{spuitampul} other{spuitampullen}}",Hne={"00001":oE,"00002":sE,"00003":lE,"00004":uE,"00005":cE,"00006":dE,"00007":hE,"00008":pE,"00009":mE,"00010":fE,"00011":gE,"00012":vE,"00013":bE,"00014":yE,"00015":_E,"00016":wE,"00017":xE,"00018":EE,"00019":SE,"00020":kE,"00021":CE,"00022":IE,"00023":DE,"00024":TE,"00025":NE,"00026":OE,"00027":ME,"00028":RE,"00029":AE,"00030":PE,cm:LE,dropsperminute:FE,gm:jE,internationalunits:VE,"mck/h":BE,"mck/kg/minute":zE,measure:HE,"mg/h":qE,"ml/h":$E,tbl:GE,tsp:UE,"unt/h":WE,mg:ZE,"mg/ml":YE,meq:KE,miu:QE,iu:XE,mmol:JE,"effervescent-tablet":eS,micrograms:tS,bandage:nS,piece:aS,box:rS,liter:iS,syringe:oS,ampoule:sS,bottle:lS,"syringe-ampoule":uS},qne={nl:iE,fr:ex,de:$1,en:Y_},cS={};oe(cS,{default:()=>$ne,friday:()=>fS,monday:()=>dS,saturday:()=>gS,sunday:()=>vS,thursday:()=>mS,tuesday:()=>hS,wednesday:()=>pS});var dS="Montag",hS="Dienstag",pS="Mittwoch",mS="Donnerstag",fS="Freitag",gS="Samstag",vS="Sonntag",$ne={monday:dS,tuesday:hS,wednesday:pS,thursday:mS,friday:fS,saturday:gS,sunday:vS},bS={};oe(bS,{default:()=>Gne,friday:()=>ES,monday:()=>yS,saturday:()=>SS,sunday:()=>kS,thursday:()=>xS,tuesday:()=>_S,wednesday:()=>wS});var yS="Monday",_S="Tuesday",wS="Wednesday",xS="Thursday",ES="Friday",SS="Saturday",kS="Sunday",Gne={monday:yS,tuesday:_S,wednesday:wS,thursday:xS,friday:ES,saturday:SS,sunday:kS},CS={};oe(CS,{default:()=>Une,friday:()=>OS,monday:()=>IS,saturday:()=>MS,sunday:()=>RS,thursday:()=>NS,tuesday:()=>DS,wednesday:()=>TS});var IS="Lundi",DS="Mardi",TS="Mercredi",NS="Jeudi",OS="Vendredi",MS="Samedi",RS="Dimanche",Une={monday:IS,tuesday:DS,wednesday:TS,thursday:NS,friday:OS,saturday:MS,sunday:RS},AS={};oe(AS,{default:()=>Wne,friday:()=>VS,monday:()=>PS,saturday:()=>BS,sunday:()=>zS,thursday:()=>jS,tuesday:()=>LS,wednesday:()=>FS});var PS="Maandag",LS="Dinsdag",FS="Woensdag",jS="Donderdag",VS="Vrijdag",BS="Zaterdag",zS="Zondag",Wne={monday:PS,tuesday:LS,wednesday:FS,thursday:jS,friday:VS,saturday:BS,sunday:zS},Zne={nl:AS,fr:CS,de:cS,en:bS},HS={};oe(HS,{VIDIS_0035:()=>qS,VIDIS_0050:()=>$S,VIDIS_0090:()=>GS,VIDIS_0100:()=>wk,VIDIS_0110:()=>Ek,VIDIS_0120:()=>xk,VIDIS_0121:()=>US,VIDIS_0122:()=>WS,VIDIS_0123:()=>ZS,VIDIS_0124:()=>YS,VIDIS_0125:()=>KS,VIDIS_0126:()=>QS,VIDIS_0131:()=>XS,VIDIS_0132:()=>JS,VIDIS_0133:()=>ek,VIDIS_0134:()=>tk,VIDIS_0135:()=>nk,VIDIS_0136:()=>ak,VIDIS_0190:()=>rk,VIDIS_0200:()=>Sk,VIDIS_0210:()=>ik,VIDIS_0211:()=>ok,VIDIS_0230:()=>sk,VIDIS_0290:()=>lk,VIDIS_0330:()=>uk,VIDIS_0340:()=>kk,VIDIS_0341:()=>Ck,VIDIS_0400:()=>yk,VIDIS_04001:()=>Ik,VIDIS_0435:()=>ck,VIDIS_0440:()=>dk,VIDIS_3030:()=>_k,VIDIS_3090:()=>fk,VIDIS_3100:()=>vk,VIDIS_3120:()=>bk,VIDIS_3140:()=>gk,VIDIS_3150:()=>mk,VIDIS_5000:()=>hk,VIDIS_7000:()=>pk,"action-not-authorized-close-button":()=>Zk,"action-not-authorized-title":()=>Wk,"data-not-available-title":()=>Uk,default:()=>Yne,general:()=>Tk,"has-hidden-prescriptions":()=>Fk,invalid_date_format:()=>Ak,myHealth:()=>Ok,myHealthUrl:()=>Mk,network_error:()=>Rk,"no-access":()=>Nk,prescriptionList:()=>Dk,"report-message-confirm-toast":()=>Gk,"report-message-content":()=>Bk,"report-message-explanation":()=>Vk,"report-message-ignore-button":()=>$k,"report-message-link":()=>Hk,"report-message-report-button":()=>qk,"report-message-term-use":()=>zk,"report-message-title":()=>jk,"status-message-content":()=>Lk,"status-message-title":()=>Pk});var qS="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0035)",$S="Die Patienten-INSS fehlt. (VIDIS_0050)",GS="Die angegebenen persönlichen Daten wurden nicht erkannt. (VIDIS_0090)",US="Die Einsichtnahme in die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",WS="Die Einsichtnahme in die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",ZS="Die Einsichtnahme in die Daten eines Brüsseler Kinder von einem Elternteil ist derzeit nicht erlaubt.",YS="Die Einsichtnahme in die Daten eines wallonischen Kinder von einem Elternteil ist derzeit nicht erlaubt.",KS="Die Einsichtnahme in die Daten eines Brüsseler Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",QS="Die Einsichtnahme in die Daten eines wallonischen Patienten von einem Bevollmächtigter ist derzeit nicht erlaubt.",XS="Der Zugriff auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",JS="Der Zugriff auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",ek="Der Zugriff eines Elternteils auf die Daten eines Brüsseler Kindes ist derzeit nicht erlaubt.",tk="Der Zugriff eines Elternteils auf die Daten eines wallonischen Kindes ist derzeit nicht erlaubt.",nk="Der Zugriff eines Bevollmächtigten auf die Daten eines Brüsseler Patienten ist derzeit nicht erlaubt.",ak="Der Zugriff eines Bevollmächtigten auf die Daten eines wallonischen Patienten ist derzeit nicht erlaubt.",rk="Ungültige INSS-Patientennummer. (VIDIS_0190)",ik="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0210)",ok="Die Anmeldung war nicht erfolgreich. Versuchen Sie es erneut? (VIDIS_0211)",sk="Der Vorgang ist ungültig (VIDIS_0230)",lk='Die Benutzerrolle muss "Bürger" sein. (VIDIS_0290)',uk="Ihre Authentifizierungsstufe erlaubt keinen Zugriff auf diese Seite. Bitte melden Sie sich mit einem anderen Authentifizierungsmittel an (itsme, eID oder mit einem per E-Mail oder App verschickten Sicherheitscode). (VIDIS_0330)",ck="Die Speicherregion für den Medikamentenplan kann nicht bestimmt werden. (VIDIS_0435)",dk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_0440)",hk="Leider konnten wir Ihre Daten nicht abrufen. Versuchen Sie es bitte noch einmal? (VIDIS_5000)",pk="Leider ging dies nicht gut. Versuchen Sie es bitte noch einmal? (VIDIS_7000)",mk="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",fk="Das Rezept ist abgelaufen.",gk="Reservierungen müssen bei derselben Apotheke erfolgen wie die, bei der das Visi-Flag gesetzt wurde. Sie können das Visi-Flag auch offen lassen.",vk="Das Visi-Flag muss auf dieselbe Apotheke gesetzt sein, bei der Sie reserviert haben.",bk="Der Patient in der Sitzung ist nicht derselbe wie der Patient in der Anfrage.",yk="Der Benutzer ist nicht berechtigt, die Anfrage zu stellen.",_k="Kein Mandat zwischen Patient und Bevollmächtigtem gefunden.",wk="Vorgang nicht erlaubt.",xk="Es besteht keine therapeutische Beziehung zwischen Anfragendem und Patient.",Ek="Keine Zustimmung zur Weitergabe von Gesundheitsdaten.",Sk="Der Benutzer darf die Bearbeitung nicht vornehmen, da Antragsteller und Patient sich ausschließen.",kk="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, da Ihr Visum nicht aktiv ist. Bitte wenden Sie sich per E-Mail unter visa@health.belgium.be an den FÖD Gesundheit.",Ck="Sie sind nicht berechtigt, die Daten dieses Patienten abzurufen, entweder weil Ihr Visum nicht aktiv ist, bitte wenden Sie sich in diesem Fall per E-Mail an den FÖD Gesundheit unter visa@health.belgium.be, oder weil die LIKIV-Nummer der Apotheke ungültig ist, bitte kontaktieren Sie in diesem Fall das LIKIV per E-Mail unter dossierpharma@riziv-inami.fgov.be.",Ik="Ihre Anfrage ist ungültig. Bitte versuchen Sie es später erneut.",Dk="Leider war es nicht möglich, die Details der Verschreibung abzurufen. Versuchen Sie es erneut?",Tk="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",Nk="Ein interner technischer Fehler ist aufgetreten. Bitte versuchen Sie es später nochmal.",Ok="Zurück zum Portal Meine Gesundheit",Mk="https://wwwint.meinegesundheit.belgien.be/#/",Rk="Es ist leider ein Netzwerkfehler aufgetreten. Bitte wenden Sie sich an Ihren Netzwerkadministrator, wenn das Problem weiterhin besteht.",Ak="Ungültiges Datumsformat.",Pk="Dienst vorübergehend nicht verfügbar",Lk=`Wir haben derzeit ein Problem mit der Verbindung zum Server.
@@ -1 +1 @@
1
- import"./assets/polyfills-CGYnV-49.js";import"./assets/main-QbVeg5GZ.js";/* empty css */
1
+ import"./assets/polyfills-CGYnV-49.js";import"./assets/main-C7-w5qh8.js";/* empty css */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smals-belgium-shared/vidis-delivered-medication-detail",
3
- "version": "3.1.1-snapshot.2",
3
+ "version": "3.1.1-snapshot.3",
4
4
  "description": "Delivered medication details web component",
5
5
  "main": "delivered-medication-detail.js",
6
6
  "author": "smals",